0d2bc0da55c082b78c0dfe20ef137abcef173146
[gnulib.git] / ChangeLog
1 2011-10-01  Bruno Haible  <bruno@clisp.org>
2
3         isfinite: Fix syntax error in configure test.
4         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5
6         isfinite: Fix typo.
7         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9
10 2011-10-01  Bruno Haible  <bruno@clisp.org>
11
12         nonblocking tests: Fix test failure on Linux/IA-64.
13         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
14         Set to 270000.
15
16 2011-10-01  Bruno Haible  <bruno@clisp.org>
17
18         mkfifoat tests: Fix a test failure on mingw.
19         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
20         with error ENOSYS.
21
22 2011-09-30  Bruno Haible  <bruno@clisp.org>
23
24         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
25         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
26         'long double'. Set REPLACE_ITOLD.
27         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
28         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
29         * lib/itold.c: New file.
30         * modules/float (Files): Add lib/itold.c.
31         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
32         (Makefile.am): Substitute REPLACE_ITOLD.
33         * modules/math (Depends-on): Add float.
34         (Makefile.am): Substitute REPLACE_ITOLD.
35         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
36         * doc/posix-headers/math.texi: Likewise.
37         * doc/posix-functions/logl.texi: Likewise.
38
39 2011-09-30  Bruno Haible  <bruno@clisp.org>
40
41         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
42         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
43         Set to 140000.
44
45 2011-09-30  Bruno Haible  <bruno@clisp.org>
46
47         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
48         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
49         invocation, say "right after AC_PROG_CC_STDC", not "right after
50         AC_PROG_CC".
51         Reported by Gary V. Vaughan <gary@gnu.org>.
52
53 2011-09-30  Bruno Haible  <bruno@clisp.org>
54
55         Centralize C99 requirement.
56         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
57         * modules/stdarg (configure.ac-early): Invoke it instead of
58         AC_PROG_CC_STDC.
59         Reported by Gary V. Vaughan and Paul Eggert.
60
61 2011-09-29  Bruno Haible  <bruno@clisp.org>
62
63         float: Fix LDBL_MAX value on Linux/PowerPC.
64         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
65         on Linux/PowerPC.
66         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
67         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
68         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
69         platform.
70         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
71
72 2011-09-29  Bruno Haible  <bruno@clisp.org>
73
74         doc: Improve doc about gl_EARLY.
75         * doc/gnulib-tool.texi (Initial import): Mention where to place an
76         AC_PROG_CC_STDC invocation.
77         Reported by Gary V. Vaughan <gary@gnu.org>.
78
79 2011-09-28  Bruno Haible  <bruno@clisp.org>
80
81         fgetc, fputc, fread, fwrite tests: Fix link error.
82         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
83         on non-MSVC platforms.
84         * tests/test-fputc.c (main): Likewise.
85         * tests/test-fread.c (main): Likewise.
86         * tests/test-fwrite.c (main): Likewise.
87         Reported by Jim Meyering.
88
89 2011-09-27  Bruno Haible  <bruno@clisp.org>
90
91         fputc, fwrite tests: Avoid test failure on MSVC.
92         * tests/test-fgetc.c: Include msvc-inval.h.
93         (main): Invoke gl_msvc_inval_ensure_handler.
94         * tests/test-fputc.c: Include msvc-inval.h.
95         (main): Invoke gl_msvc_inval_ensure_handler.
96         * tests/test-fread.c: Include msvc-inval.h.
97         (main): Invoke gl_msvc_inval_ensure_handler.
98         * tests/test-fwrite.c: Include msvc-inval.h.
99         (main): Invoke gl_msvc_inval_ensure_handler.
100         * modules/fgetc-tests (Depends-on): Add msvc-inval.
101         * modules/fputc-tests (Depends-on): Likewise.
102         * modules/fread-tests (Depends-on): Likewise.
103         * modules/fwrite-tests (Depends-on): Likewise.
104
105 2011-09-27  Bruno Haible  <bruno@clisp.org>
106
107         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
108         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
109         (raise): Remove older, duplicated declaration.
110         (_gl_raise_SIGPIPE): New declaration.
111         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
112         (rpl_raise): Remove function.
113         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
114         a gnulib-defined SIGPIPE here.
115         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
116         'sigprocmask' has detected missing signal-blocking and the module
117         'sigpipe' is enabled.
118         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
119
120 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
121
122         base64-tests: avoid memory leak
123         * tests/test-base64.c (main): Plug memory leak.
124
125         base32: new module
126         * modules/base32: New module.
127         * lib/base32.c: New file.
128         * lib/base32.h: Likewise.
129         * m4/base32.m4: Likewise.
130         * modules/base32-tests: New test.
131         * tests/test-base32.c: Likewise.
132         * MODULES.html.sh (Misc): Mention it.
133
134 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
135
136         gnulib: use more-standard license notice wording
137         * gnulib-tool (func_emit_copyright_notice): When emitting a
138         license notice into a file, use the standard wording as suggested
139         by the current information for GNU maintainers, except say "file"
140         rather than "program".  The new wording gives a license version
141         number, which addresses an issue raised by Glenn Morris in
142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
143         * m4/onceonly.m4: Use that same wording here, too.
144
145         dup2: minor simplification
146         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
147         as lib/dup2.c no longer uses 'inline'.
148
149 2011-09-25  Bruno Haible  <bruno@clisp.org>
150
151         strings: Fix compilation error on MSVC.
152         * lib/strings.in.h: Include <stddef.h> for size_t.
153
154 2011-09-25  Bruno Haible  <bruno@clisp.org>
155
156         fflush et al.: Document limitation on MSVC.
157         * doc/posix-functions/fflush.texi: Document possible crash in handling
158         mode other than DEFAULT_HANDLING.
159         * doc/posix-functions/fgetc.texi: Likewise.
160         * doc/posix-functions/fputc.texi: Likewise.
161         * doc/posix-functions/fread.texi: Likewise.
162         * doc/posix-functions/fwrite.texi: Likewise.
163
164 2011-09-25  Bruno Haible  <bruno@clisp.org>
165
166         msvc-inval: Allow three invalid parameter handling modes.
167         * lib/msvc-inval.h: Don't include <stdlib.h> here.
168         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
169         macros.
170         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
171         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
172         SANE_LIBRARY_HANDLING as a no-op.
173         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
174         <stdlib.h>.
175         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
176
177 2011-09-25  Bruno Haible  <bruno@clisp.org>
178
179         msvc-inval: Make handler multithread-safe.
180         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
181         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
182         declarations.
183         (gl_msvc_inval_current): New declaration.
184         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
185         Operate on the structure returned by gl_msvc_inval_current().
186         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
187         Remove varaiables.
188         (tls_index, tls_initialized): New variables.
189         (not_per_thread): New variable.
190         (gl_msvc_inval_current): New function.
191         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
192         returned by gl_msvc_inval_current().
193
194 2011-09-25  Bruno Haible  <bruno@clisp.org>
195
196         msvc-inval: Install handler globally.
197         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
198         !_MSC_VER.
199         (gl_msvc_invalid_parameter_handler): Remove declaration.
200         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
201         declarations.
202         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
203         Install the handler globally, don't uninstall it.
204         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
205         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
206         currently valid, call RaiseException instead.
207         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
208         for !_MSC_VER.
209
210 2011-09-25  Bruno Haible  <bruno@clisp.org>
211
212         strerror_r-posix: Fix for MSVC 9.
213         * lib/strerror_r.c (local_snprintf): New function.
214         (snprintf): Define to local_snprintf, not to _snprintf.
215
216 2011-09-25  Bruno Haible  <bruno@clisp.org>
217
218         ftruncate: Support for MSVC 9.
219         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
220         (chsize_nothrow): New function.
221         (chsize): Redefine as a macro.
222         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
223         * modules/ftruncate (Depends-on): Add msvc-inval.
224
225 2011-09-25  Bruno Haible  <bruno@clisp.org>
226
227         New module 'fstat'.
228         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
229         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
230         * lib/fchdir.c (rpl_fstat): Remove function.
231         * m4/fstat.m4: New file.
232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
234         declared.
235         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
236         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
237         * modules/fstat: New file.
238         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
239         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
240         is set.
241         * doc/posix-functions/fstat.texi: Mention the new module and the
242         problem on MSVC.
243         * NEWS: Mention the change.
244         * modules/acl (Depends-on): Add fstat.
245         * modules/chdir-safer (Depends-on): Likewise.
246         * modules/chown (Depends-on): Likewise.
247         * modules/copy-file (Depends-on): Likewise.
248         * modules/fchdir (Depends-on): Likewise.
249         * modules/fdopendir (Depends-on): Likewise.
250         * modules/fopen (Depends-on): Likewise.
251         * modules/fts (Depends-on): Likewise.
252         * modules/getcwd (Depends-on): Likewise.
253         * modules/isapipe (Depends-on): Likewise.
254         * modules/linkat (Depends-on): Likewise.
255         * modules/lseek (Depends-on): Likewise.
256         * modules/mkdir-p (Depends-on): Likewise.
257         * modules/open (Depends-on): Likewise.
258         * modules/openat (Depends-on): Likewise.
259         * modules/read-file (Depends-on): Likewise.
260         * modules/renameat (Depends-on): Likewise.
261         * modules/utimens (Depends-on): Likewise.
262
263 2011-09-25  Bruno Haible  <bruno@clisp.org>
264
265         linkat: Fix compilation on MSVC 9.
266         * lib/linkat.c: Don't include <stdint.h>.
267
268 2011-09-25  Bruno Haible  <bruno@clisp.org>
269
270         fclose: Support for MSVC 9.
271         * lib/fclose.c: Include msvc-inval.h.
272         (fclose_nothrow): New function.
273         (rpl_fclose): Use it.
274         * modules/fclose (Depends-on): Add msvc-inval.
275         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
276
277 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
278
279         dup2: minor simplifications
280         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
281         that it's a performance win.
282         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
283         ! defined __CYGWIN__)" to "ifdef F_GETFL".
284
285 2011-09-24  Jim Meyering  <meyering@redhat.com>
286
287         test-futimens: avoid a warning from gcc -Wshadow
288         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
289         to avoid a shadowing warning.
290
291 2011-09-24  Bruno Haible  <bruno@clisp.org>
292
293         fdopen: Support for MSVC 9.
294         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
295         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
296         * lib/fdopen.c: Include msvc-inval.h.
297         (fdopen_nothrow): New function.
298         (rpl_fdopen): Use it.
299         * modules/fdopen (Depends-on): Add msvc-inval.
300         * modules/fclose-tests (Depends-on): Add fdopen.
301         * modules/fflush-tests (Depends-on): Likewise.
302         * modules/fgetc-tests (Depends-on): Likewise.
303         * modules/fputc-tests (Depends-on): Likewise.
304         * modules/fread-tests (Depends-on): Likewise.
305         * modules/freopen-tests (Depends-on): Likewise.
306         * modules/fseeko-tests (Depends-on): Likewise.
307         * modules/ftello-tests (Depends-on): Likewise.
308         * modules/fwrite-tests  (Depends-on): Likewise.
309         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
310
311 2011-09-24  Bruno Haible  <bruno@clisp.org>
312
313         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
314         * modules/fgetc-tests (Depends-on): Add unistd.
315         * modules/fputc-tests (Depends-on): Likewise.
316         * modules/fread-tests (Depends-on): Likewise.
317         * modules/fwrite-tests (Depends-on): Likewise.
318
319 2011-09-24  Bruno Haible  <bruno@clisp.org>
320
321         dup: Simplify autoconf test.
322         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
323         on gl_MSVC_INVAL's result.
324
325 2011-09-24  Bruno Haible  <bruno@clisp.org>
326
327         Tests for function fwrite().
328         * modules/fwrite-tests: New file.
329         * tests/test-fwrite.c: New file.
330         * modules/stdio-tests (Depends-on): Add fwrite-tests.
331
332         Tests for function fread().
333         * modules/fread-tests: New file.
334         * tests/test-fread.c: New file.
335         * modules/stdio-tests (Depends-on): Add fread-tests.
336
337         Activate fputc tests.
338         * modules/stdio-tests (Depends-on): Add fputc-tests.
339
340         Enhance fgetc, fputc tests.
341         * tests/test-fgetc.c (main): Also test the stream's error indicator.
342         * tests/test-fputc.c (main): Likewise.
343
344 2011-09-24  Bruno Haible  <bruno@clisp.org>
345
346         write: Support for MSVC 9.
347         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
348         is not 1.
349         * lib/write.c (write_nothrow): New function.
350         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
351         not 1. Use write_nothrow.
352         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
353         invalid parameter handler.
354         (gl_PREREQ_WRITE): New macro.
355         * modules/write (Depends-on): Add msvc-inval.
356         (configure.ac): Invoke gl_PREREQ_WRITE.
357         * doc/posix-functions/write.texi: Mention the problem on MSVC.
358
359 2011-09-24  Bruno Haible  <bruno@clisp.org>
360
361         read: Fix last commit.
362         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
363
364 2011-09-24  Bruno Haible  <bruno@clisp.org>
365
366         dup2: Fix last commit.
367         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
368         (rpl_dup2): Disable fcntl workaround on native Windows.
369
370         sigprocmask: Make code safer.
371         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
372         section that changes macro definitions for this compilation unit.
373
374 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
375
376         dup2: clarify by coalescing Windows-specific material
377         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
378         "msvc-nothrow.h"' to the Windows-specific section, so that the
379         Emacs source need not contain these include files.
380         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
381         Windows-specific fixes into this function rather than just the
382         nothrow fix, as this shortens and clarifies the code.  Always
383         define as a function, as that's a bit cleaner than having it be
384         sometimes a function and sometimes a macro.
385         (rpl_dup2): Move the Windows-specific stuff out of here and into
386         ms_windows_dup2.  Don't protect the Haiku-related fix with
387         "#if !defined __linux__", as the same code also works around
388         a Linux kernel bug, and it doesn't add any system calls on any
389         platform.  Add comment about FreeBSD 6.1.
390
391         sigprocmask: move #include directive
392         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
393         Windows-specific section, so that the Emacs source need not
394         contain msvc-inval.h.
395
396 2011-09-23  Bruno Haible  <bruno@clisp.org>
397
398         read: Support for MSVC 9.
399         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
400         is not 1.
401         * lib/read.c (read_nothrow): New function.
402         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
403         read_nothrow.
404         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
405         invalid parameter handler.
406         (gl_PREREQ_READ): New macro.
407         * modules/read (Depends-on): Add msvc-inval.
408         (configure.ac): Invoke gl_PREREQ_READ.
409         * doc/posix-functions/read.texi: Mention the problem on MSVC.
410
411 2011-09-23  Bruno Haible  <bruno@clisp.org>
412
413         close: Support for MSVC 9.
414         * lib/close.c: Include <errno.h>, msvc-inval.h.
415         (close_nothrow): New function.
416         (rpl_close): Use it.
417         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
418         invalid parameter handler.
419         * modules/close (Depends-on): Add msvc-inval.
420         * modules/dup2-tests (Depends-on): Add close.
421         * modules/dup3-tests (Depends-on): Likewise.
422         * modules/fcntl-tests (Depends-on): Likewise.
423         * modules/spawn-pipe-tests (Depends-on): Likewise.
424         * modules/unistd-safer-tests (Depends-on): Likewise.
425         * doc/posix-functions/close.texi: Mention the problem on MSVC.
426
427 2011-09-23  Bruno Haible  <bruno@clisp.org>
428
429         New module 'dup'.
430         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
431         Allow replacement.
432         * lib/dup.c: New file.
433         * lib/fchdir.c (rpl_dup): Remove function.
434         * m4/dup.m4: New file.
435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
436         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
437         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
438         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
439         * modules/dup: New file.
440         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
441         'dup' module is in use.
442         * modules/fdopendir (Depends-on): Add dup.
443         * modules/fdutimensat-tests (Depends-on): Likewise.
444         * modules/fts (Depends-on): Likewise.
445         * modules/futimens-tests (Depends-on): Likewise.
446         * modules/posix_spawnp-tests (Depends-on): Likewise.
447         * modules/unistd-safer-tests (Depends-on): Likewise.
448         * modules/utimens-tests (Depends-on): Likewise.
449         * doc/posix-functions/dup.texi: Mention the new module and the problem
450         on MSVC.
451
452 2011-09-23  Bruno Haible  <bruno@clisp.org>
453
454         getdtablesize: Support for MSVC 9.
455         * lib/getdtablesize.c: Include msvc-inval.h.
456         (_setmaxstdio_nothrow): New function.
457         (_setmaxstdio): Redefine it.
458         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
459         * modules/getdtablesize (Depends-on): Add msvc-inval.
460         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
461
462 2011-09-23  Bruno Haible  <bruno@clisp.org>
463
464         signal-h: Rename from signal.
465         * modules/signal-h: Renamed from modules/signal.
466         * modules/pthread_sigmask (Depends-on): Update.
467         * modules/raise (Depends-on): Likewise.
468         * modules/sigaction (Depends-on): Likewise.
469         * modules/sigpipe (Depends-on): Likewise.
470         * modules/sigprocmask (Depends-on): Likewise.
471         * modules/sys_select (Depends-on): Likewise.
472         * modules/signal-h-tests: Renamed from modules/signal-tests.
473         (Files, Depends-on, Makefile.am): Update.
474         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
475         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
476         (Files, Makefile.am): Update.
477         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
478         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
479         * modules/signal: New placeholder file.
480         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
481         * doc/posix-headers/signal.texi: Update.
482         * NEWS: Mention the change.
483
484 2011-09-23  Bruno Haible  <bruno@clisp.org>
485
486         sigprocmask: Avoid crashes through signal() on MSVC 9.
487         * lib/sigprocmask.c: Include msvc-inval.h.
488         (signal_nothrow): New function.
489         (signal): Redefine it.
490         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
491         * modules/sigprocmask (Depends-on): Add msvc-inval.
492         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
493
494 2011-09-23  Bruno Haible  <bruno@clisp.org>
495
496         Tests for module 'raise'.
497         * modules/raise-tests: New file.
498         * tests/test-raise.c: New file.
499
500         raise: Support for MSVC.
501         * lib/signal.in.h (raise): New declaration.
502         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
503         for native Windows platforms.
504         * m4/raise.m4: New file.
505         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
506         HAVE_RAISE, REPLACE_RAISE.
507         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
508         REPLACE_RAISE.
509         * modules/raise (Status, Notice): Remove fields.
510         (Files): Add m4/raise.m4.
511         (Depends-on): Add signal, msvc-inval.
512         (configure.ac): Use the common idioms.
513         (Maintainer): Add me.
514         * tests/test-signal-c++.cc: Check the signature of raise.
515         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
516
517 2011-09-23  Bruno Haible  <bruno@clisp.org>
518
519         pipe2: Fix compilation on pre-C99 compilers.
520         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
521
522 2011-09-23  Bruno Haible  <bruno@clisp.org>
523
524         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
525         * lib/msvc-nothrow.h: New file.
526         * lib/msvc-nothrow.c: New file.
527         * m4/msvc-nothrow.m4: New file.
528         * modules/msvc-nothrow: New file.
529         * lib/dup2.c: Include msvc-nothrow.h.
530         (rpl_dup2): No need to protect _get_osfhandle call here.
531         * lib/accept4.c: Include msvc-nothrow.h.
532         * lib/error.c: Likewise.
533         * lib/fcntl.c: Likewise.
534         * lib/lseek.c: Likewise.
535         * lib/nonblocking.c: Likewise.
536         * lib/poll.c: Likewise.
537         * lib/read.c: Likewise.
538         * lib/select.c: Likewise.
539         * lib/sockets.h: Likewise.
540         * lib/sockets.c: Likewise.
541         * lib/stdio-read.c: Likewise.
542         * lib/stdio-write.c: Likewise.
543         * lib/write.c: Likewise.
544         * lib/w32sock.h: Likewise.
545         * lib/w32spawn.h: Likewise.
546         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
547         * lib/fsync.c: Likewise.
548         * lib/isapipe.c: Likewise.
549         * modules/dup2 (Depends-on): Add msvc-nothrow.
550         * modules/accept4 (Depends-on): Likewise.
551         * modules/error (Depends-on): Likewise.
552         * modules/fcntl (Depends-on): Likewise.
553         * modules/lseek (Depends-on): Likewise.
554         * modules/nonblocking (Depends-on): Likewise.
555         * modules/poll (Depends-on): Likewise.
556         * modules/read (Depends-on): Likewise.
557         * modules/select (Depends-on): Likewise.
558         * modules/sockets (Depends-on): Likewise.
559         * modules/sigpipe (Depends-on): Likewise.
560         * modules/write (Depends-on): Likewise.
561         * modules/accept (Depends-on): Likewise.
562         * modules/bind (Depends-on): Likewise.
563         * modules/connect (Depends-on): Likewise.
564         * modules/gethostname (Depends-on): Likewise.
565         * modules/getpeername (Depends-on): Likewise.
566         * modules/getsockname (Depends-on): Likewise.
567         * modules/getsockopt (Depends-on): Likewise.
568         * modules/ioctl (Depends-on): Likewise.
569         * modules/listen (Depends-on): Likewise.
570         * modules/recv (Depends-on): Likewise.
571         * modules/recvfrom (Depends-on): Likewise.
572         * modules/send (Depends-on): Likewise.
573         * modules/sendto (Depends-on): Likewise.
574         * modules/setsockopt (Depends-on): Likewise.
575         * modules/shutdown (Depends-on): Likewise.
576         * modules/socket (Depends-on): Likewise.
577         * modules/execute (Depends-on): Likewise.
578         * modules/spawn-pipe (Depends-on): Likewise.
579         * modules/flock (Depends-on): Likewise.
580         * modules/fsync (Depends-on): Likewise.
581         * modules/isapipe (Depends-on): Likewise.
582         * tests/test-cloexec.c: Include msvc-nothrow.h.
583         * tests/test-dup-safer.c: Likewise.
584         * tests/test-dup2.c: Likewise.
585         * tests/test-dup3.c: Likewise.
586         * tests/test-fcntl.c: Likewise.
587         * tests/test-pipe.c: Likewise.
588         * tests/test-pipe2.c: Likewise.
589         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
590         * modules/unistd-safer-tests (Depends-on): Likewise.
591         * modules/dup2-tests (Depends-on): Likewise.
592         * modules/dup3-tests (Depends-on): Likewise.
593         * modules/fcntl-tests (Depends-on): Likewise.
594         * modules/pipe-posix-tests (Depends-on): Likewise.
595         * modules/pipe2-tests (Depends-on): Likewise.
596
597 2011-09-23  Bruno Haible  <bruno@clisp.org>
598
599         dup2: Make code more maintainable.
600         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
601         (rpl_dup2): Use it.
602         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
603         * modules/dup2 (configure.ac): Invoke it.
604         Reported by Paul Eggert.
605
606 2011-09-23  Bruno Haible  <bruno@clisp.org>
607
608         msvc-inval: Fix compilation error.
609         * lib/msvc-inval.h: Include <excpt.h>.
610
611 2011-09-23  Bruno Haible  <bruno@clisp.org>
612
613         mkdir: Tweak for MSVC 9.
614         * lib/sys_stat.in.h: Update comments.
615         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
616
617         Tests for module 'chdir'.
618         * modules/chdir-tests: New file.
619         * tests/test-chdir.c: New file.
620
621         New module 'chdir'.
622         * modules/chdir: New file.
623         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
624         (chdir): New declaration.
625         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
626         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
627         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
628         * tests/test-unistd-c++.cc: Check signature of chdir.
629         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
630         * modules/chdir-long (Depends-on): Add chdir.
631         * modules/fchdir (Depends-on): Likewise.
632         * modules/rename (Depends-on): Likewise.
633         * modules/savewd (Depends-on): Likewise.
634
635         rmdir: Support for mingw, MSVC 9.
636         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
637         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
638
639         getcwd: Tweak for MSVC 9.
640         * lib/unistd.in.h: Update comments.
641         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
642
643 2011-09-22  Bruno Haible  <bruno@clisp.org>
644
645         strerror_r-posix: Avoid a link error on MSVC.
646         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
647         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
648
649 2011-09-22  Bruno Haible  <bruno@clisp.org>
650
651         select: Avoid link errors on MSVC.
652         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
653         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
654         * modules/pselect (Link): Likewise.
655         * NEWS: Mention the change.
656         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
657         test-select-stdin against $(LIB_SELECT).
658         * modules/pselect-tests (Makefile.am): Link test-pselect against
659         $(LIB_SELECT).
660
661 2011-09-22  Bruno Haible  <bruno@clisp.org>
662
663         select: Avoid compilation error on MSVC.
664         * lib/select.c: Don't include <stdbool.h>.
665
666 2011-09-21  Bruno Haible  <bruno@clisp.org>
667
668         Consolidate all uses of PATH_MAX in *.m4 files.
669         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
670         macros.
671         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
672         and gl_PATHMAX_SNIPPET.
673         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
674         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
675         * modules/chdir-long (Files): Add m4/pathmax.m4.
676         * modules/getcwd (Files): Likewise.
677
678 2011-09-21  Bruno Haible  <bruno@clisp.org>
679
680         ftruncate: Un-deprecate, concentrate on Win32 support.
681         * modules/ftruncate (Status, Notice): Remove sections.
682         (Depends-on): Add largefile.
683         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
684         non-mingw platforms.
685         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
686         include <io.h>.
687         * modules/perror-tests (Depends-on): Add ftruncate.
688         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
689         'ftruncate' module.
690
691 2011-09-21  Bruno Haible  <bruno@clisp.org>
692
693         Add dependencies to new dirent related modules.
694         * modules/opendir (Depends-on): Add closedir.
695         * modules/getcwd (Depends-on): Add opendir, closedir.
696         * modules/dirent-safer-tests (Depends-on): Likewise.
697         * modules/fdopendir-tests (Depends-on): Likewise.
698         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
699         * modules/renameat-tests (Depends-on): Likewise.
700
701 2011-09-21  Bruno Haible  <bruno@clisp.org>
702
703         opendir: Avoid compilation error on mingw.
704         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
705         * modules/opendir (Depends-on): Add unistd.
706
707 2011-09-21  Bruno Haible  <bruno@clisp.org>
708
709         ftruncate tests: Avoid a test failure on mingw.
710         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
711
712 2011-09-21  Bruno Haible  <bruno@clisp.org>
713
714         select tests: Avoid test failures on OSF/1 5.1 and mingw.
715         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
716         native Windows.
717
718 2011-09-21  Bruno Haible  <bruno@clisp.org>
719
720         New module 'fdopen'.
721         * lib/stdio.in.h (fdopen): New declaration.
722         * lib/fdopen.c: New file.
723         * m4/fdopen.m4: New file.
724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
725         REPLACE_FDOPEN.
726         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
727         REPLACE_FDOPEN.
728         * modules/fdopen: New file.
729         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
730         * tests/test-stdio-c++.cc: Check signature of fdopen.
731         * doc/posix-functions/fdopen.texi: Mention the new module.
732
733 2011-09-21  Bruno Haible  <bruno@clisp.org>
734
735         unlockpt tests: Avoid test failure on NetBSD 5.1.
736         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
737         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
738
739 2011-09-21  Bruno Haible  <bruno@clisp.org>
740
741         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
742         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
743         * tests/test-getlogin_r.c (main): Likewise.
744
745 2011-09-20  Bruno Haible  <bruno@clisp.org>
746
747         time tests: Don't require pid_t.
748         * doc/posix-headers/time.texi: Revert last change.
749         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
750         * tests/test-time.c: Comment out the check for pid_t.
751
752 2011-09-20  Bruno Haible  <bruno@clisp.org>
753
754         fsync tests: Avoid a test failure on mingw.
755         * tests/test-fsync.c (main): Allow a failure with EIO.
756
757 2011-09-20  Bruno Haible  <bruno@clisp.org>
758
759         euidaccess: Update comments.
760         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
761
762 2011-09-20  Bruno Haible  <bruno@clisp.org>
763
764         Ensure EBADF returns for socket functions on mingw.
765         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
766         descriptor is invalid.
767         * lib/bind.c (rpl_bind): Likewise.
768         * lib/connect.c (rpl_connect): Likewise.
769         * lib/getpeername.c (rpl_getpeername): Likewise.
770         * lib/getsockname.c (rpl_getsockname): Likewise.
771         * lib/getsockopt.c (rpl_getsockopt): Likewise.
772         * lib/listen.c (rpl_listen): Likewise.
773         * lib/recv.c (rpl_recv): Likewise.
774         * lib/recvfrom.c (rpl_recvfrom): Likewise.
775         * lib/send.c (rpl_send): Likewise.
776         * lib/sendto.c (rpl_sendto): Likewise.
777         * lib/setsockopt.c (rpl_setsockopt): Likewise.
778         * lib/shutdown.c (rpl_shutdown): Likewise.
779
780 2011-09-20  Bruno Haible  <bruno@clisp.org>
781
782         select tests: EBADF tests.
783         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
784         test_bad_fd): New functions.
785         (test_function): Invoke also test_bad_fd.
786
787 2011-09-20  Bruno Haible  <bruno@clisp.org>
788
789         Tests for module 'posix_spawn_file_actions_addopen.
790         * modules/posix_spawn_file_actions_addopen-tests: New file.
791         * tests/test-posix_spawn_file_actions_addopen.c: New file.
792
793         Tests for module 'posix_spawn_file_actions_adddup2'.
794         * modules/posix_spawn_file_actions_adddup2-tests: New file.
795         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
796
797         Tests for module 'posix_spawn_file_actions_addclose'.
798         * modules/posix_spawn_file_actions_addclose-tests: New file.
799         * tests/test-posix_spawn_file_actions_addclose.c: New file.
800
801 2011-09-20  Bruno Haible  <bruno@clisp.org>
802
803         Tests for module 'unlockpt'.
804         * modules/unlockpt-tests: New file.
805         * tests/test-unlockpt.c: New file.
806         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
807
808         Tests for module 'grantpt'.
809         * modules/grantpt-tests: New file.
810         * tests/test-grantpt.c: New file.
811         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
812
813 2011-09-20  Bruno Haible  <bruno@clisp.org>
814
815         freopen tests: EBADF tests.
816         * tests/test-freopen.c: Include errno.h, unistd.h.
817         (main): Add tests for EBADF, commented out for the moment.
818
819         fclose tests: EBADF tests.
820         * tests/test-fclose.c (main): Add tests for EBADF.
821
822         fflush tests: EBADF tests.
823         * tests/test-fflush.c: Include errno.h, macros.h.
824         (main): Add tests for EBADF.
825
826         ftello tests: EBADF tests.
827         * tests/test-ftello4.sh: New file.
828         * tests/test-ftello4.c: New file.
829         * modules/ftello-tests (Files): Add them.
830         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
831
832         fseeko tests: EBADF tests.
833         * tests/test-fseeko4.sh: New file.
834         * tests/test-fseeko4.c: New file.
835         * modules/fseeko-tests (Files): Add them.
836         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
837
838         Tests for function fputc().
839         * modules/fputc-tests: New file.
840         * tests/test-fputc.c: New file.
841         * modules/stdio-tests (Depends-on): Add fputc-tests.
842
843         Tests for function fgetc().
844         * modules/fgetc-tests: New file.
845         * tests/test-fgetc.c: New file.
846         * modules/stdio-tests (Depends-on): Add fgetc-tests.
847
848         Tests for function fdopen().
849         * modules/fdopen-tests: New file.
850         * tests/test-fdopen.c: New file.
851         * modules/stdio-tests (Depends-on): Add fdopen-tests.
852
853         Tests for module 'vdprintf'.
854         * modules/vdprintf-tests: New file.
855         * tests/test-vdprintf.c: New file.
856
857         Tests for module 'dprintf'.
858         * modules/dprintf-tests: New file.
859         * tests/test-dprintf.c: New file.
860
861 2011-09-20  Bruno Haible  <bruno@clisp.org>
862
863         Tests for module 'ioctl'.
864         * modules/ioctl-tests: New file.
865         * tests/test-ioctl.c: New file.
866
867 2011-09-20  Bruno Haible  <bruno@clisp.org>
868
869         fcntl tests: EBADF tests.
870         * tests/test-fcntl.c (main): Add more tests for EBADF.
871
872 2011-09-20  Bruno Haible  <bruno@clisp.org>
873
874         utimensat tests: EBADF tests.
875         * tests/test-utimensat.c (main): Add tests for EBADF.
876
877         renameat tests: EBADF tests.
878         * tests/test-renameat.c (main): Add tests for EBADF.
879
880         mkfifoat tests: EBADF tests.
881         * tests/test-mkfifoat.c (main): Add tests for EBADF.
882
883         readlinkat tests: EBADF tests.
884         * tests/test-readlinkat.c (main): Add tests for EBADF.
885
886         symlinkat tests: EBADF tests.
887         * tests/test-symlinkat.c (main): Add tests for EBADF.
888
889         linkat tests: EBADF tests.
890         * tests/test-linkat.c (main): Add tests for EBADF.
891
892         Tests for module 'faccessat'.
893         * modules/faccessat-tests: New file.
894         * tests/test-faccessat.c: New file.
895
896         fdopendir tests: EBADF tests.
897         * tests/test-fdopendir.c (main): Add more tests for EBADF.
898
899         openat tests: EBADF tests.
900         * tests/test-fchownat.c (main): Add tests for EBADF.
901         * tests/test-fstatat.c (main): Likewise.
902         * tests/test-mkdirat.c (main): Likewise.
903         * tests/test-openat.c (main): Likewise.
904         * tests/test-unlinkat.c (main): Likewise.
905         * tests/test-fchmodat.c: New file.
906         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
907         (Makefile.am): Also run 'test-fchmodat'.
908
909 2011-09-20  Bruno Haible  <bruno@clisp.org>
910
911         utimens, futimens, fdutimensat tests: EBADF tests.
912         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
913
914         Tests for function fstat().
915         * modules/fstat-tests: New file.
916         * tests/test-fstat.c: New file.
917         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
918
919 2011-09-20  Bruno Haible  <bruno@clisp.org>
920
921         test-ttyname_r tests: EBADF tests.
922         * tests/test-ttyname_r.c (main): Add tests for EBADF.
923
924         Tests for module 'isatty'.
925         * modules/isatty-tests: New file.
926         * tests/test-isatty.c: New file.
927
928         Tests for module 'write'.
929         * modules/write-tests: New file.
930         * tests/test-write.c: New file.
931
932         Tests for module 'read'.
933         * modules/read-tests: New file.
934         * tests/test-read.c: New file.
935
936         pwrite tests: EBADF tests.
937         * tests/test-pwrite.c (main): Add tests for EBADF.
938
939         pread tests: EBADF tests.
940         * tests/test-pread.c (main): Add tests for EBADF.
941
942         lseek tests: EBADF tests.
943         * tests/test-lseek.c (main): Add more tests for EBADF.
944
945         Tests for module 'ftruncate'.
946         * modules/ftruncate-tests: New file.
947         * tests/test-ftruncate.sh: New file.
948         * tests/test-ftruncate.c: New file.
949
950         fsync tests: EBADF tests.
951         * tests/test-fsync.c (main): Add more tests for EBADF.
952
953         fdatasync tests: EBADF tests.
954         * tests/test-fdatasync.c (main): Add more tests for EBADF.
955
956         Tests for module 'fchown'.
957         * modules/fchown-tests: New file.
958         * tests/test-fchown.c: New file.
959
960         Tests for module 'fchmod'.
961         * modules/fchmod-tests: New file.
962         * tests/test-fchmod.c: New file.
963
964         fchdir tests: EBADF tests.
965         * tests/test-fchdir.c (main): Add more tests for EBADF.
966
967         dup2 tests: EBADF tests.
968         * tests/test-dup2.c (main): Add more tests for EBADF.
969
970         Tests for module 'dup'.
971         * modules/dup-tests: New file.
972         * tests/test-dup.c: New file.
973
974         Tests for module 'close'.
975         * modules/close-tests: New file.
976         * tests/test-close.c: New file.
977
978 2011-09-20  Bruno Haible  <bruno@clisp.org>
979
980         Tests for module 'shutdown'.
981         * modules/shutdown-tests: New file.
982         * tests/test-shutdown.c: New file.
983
984         Tests for module 'setsockopt'.
985         * modules/setsockopt-tests: New file.
986         * tests/test-setsockopt.c: New file.
987
988         Tests for module 'sendto'.
989         * modules/sendto-tests: New file.
990         * tests/test-sendto.c: New file.
991
992         Tests for module 'send'.
993         * modules/send-tests: New file.
994         * tests/test-send.c: New file.
995
996         Tests for module 'recvfrom'.
997         * modules/recvfrom-tests: New file.
998         * tests/test-recvfrom.c: New file.
999
1000         Tests for module 'recv'.
1001         * modules/recv-tests: New file.
1002         * tests/test-recv.c: New file.
1003
1004         Tests for module 'listen'.
1005         * modules/listen-tests: New file.
1006         * tests/test-listen.c: New file.
1007
1008         Tests for module 'getsockopt'.
1009         * modules/getsockopt-tests: New file.
1010         * tests/test-getsockopt.c: New file.
1011
1012         Tests for module 'getsockname'.
1013         * modules/getsockname-tests: New file.
1014         * tests/test-getsockname.c: New file.
1015
1016         Tests for module 'getpeername'.
1017         * modules/getpeername-tests: New file.
1018         * tests/test-getpeername.c: New file.
1019
1020         Tests for module 'connect'.
1021         * modules/connect-tests: New file.
1022         * tests/test-connect.c: New file.
1023
1024         Tests for module 'bind'.
1025         * modules/bind-tests: New file.
1026         * tests/test-bind.c: New file.
1027
1028         accept4 tests: Fix for native Windows.
1029         * tests/test-accept4.c: Include sockets.h.
1030         (main): Invoke gl_sockets_startup.
1031         * modules/accept4-tests (Depends-on): Add sockets.
1032
1033         accept tests: Fix for native Windows.
1034         * tests/test-accept.c: Include sockets.h.
1035         (main): Invoke gl_sockets_startup.
1036         * modules/accept-tests (Depends-on): Add sockets.
1037
1038 2011-09-19  Bruno Haible  <bruno@clisp.org>
1039
1040         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
1041         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
1042         do...while(0).
1043         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
1044         Suggested by Paul Eggert.
1045
1046 2011-09-19  Bruno Haible  <bruno@clisp.org>
1047
1048         sched: Ensure pid_t is defined.
1049         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
1050         not define pid_t.
1051         * lib/sched.in.h: Include <sys/types.h>.
1052         * doc/posix-headers/sched.texi: Mention the pid_t problem.
1053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1054
1055 2011-09-19  Bruno Haible  <bruno@clisp.org>
1056
1057         msvc-inval: Ensure the entire expansion is a single statement.
1058         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
1059         of braces.
1060
1061 2011-09-19  Jim Meyering  <meyering@redhat.com>
1062
1063         tests: use printf, not echo in init.sh's warn_ function
1064         * tests/init.sh (warn_): Use printf, not echo.  The latter would
1065         misbehave when given strings containing a backslash or starting
1066         with e.g., -n.  James Youngman suggested setting IFS.
1067
1068 2011-09-19  Eric Blake  <eblake@redhat.com>
1069
1070         futimens: enhance test
1071         * tests/test-futimens.h (test_futimens): Also check for EBADF on
1072         closed non-negative fd.
1073
1074         date: accept 'hence' as opposite of 'ago'
1075         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
1076         * tests/test-parse-datetime.c (main): Enhance test.
1077         Suggested by Jesse Wilson.
1078
1079 2011-09-19  Jim Meyering  <meyering@redhat.com>
1080
1081         getcwd: don't fail in a deep directory on a system without openat
1082         Before this change, getcwd would fail when called from a directory
1083         of depth PATH_MAX / 3 or greater.  That was due to the fact that
1084         the non-openat implementation used "..", "../..", "../../..", etc.
1085         to access ancestor directories.  With too many, that string would
1086         be longer than PATH_MAX.
1087         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
1088         using gnulib's openat replacement.
1089         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
1090         we're using the replacement function.
1091
1092 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
1093
1094         maint.mk: avoid warnings from perl about missing files
1095         * top/maint.mk (def_sym_regex): Ignore files listed in
1096         $(gl_other_headers_) that do not exist, say because a project
1097         does not use a corresponding module.
1098
1099 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1100
1101         stat: use pathmax.h only if needed
1102         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
1103         This is better for Emacs, which does not have a mingw port and
1104         therefore can avoid the pathmax module.
1105
1106         utimens: remove dependency on dup2
1107         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
1108         to work around the Linux kernel bug.
1109         * modules/utimens (Depends-on): Remove dup2.
1110
1111 2011-09-18  Bruno Haible  <bruno@clisp.org>
1112
1113         inet_ntop, inet_pton: Look for it also in libresolv.
1114         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
1115         libnsl, search for it in libresolv.
1116         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1117         Needed on Solaris 7.
1118
1119 2011-09-18  Bruno Haible  <bruno@clisp.org>
1120
1121         accept, accept4 tests: Avoid link error on Solaris.
1122         * modules/accept-tests (Makefile.am): Link test-accept against
1123         $(LIBSOCKET).
1124         * modules/accept4-tests (Makefile.am): Link test-accept4 against
1125         $(LIBSOCKET).
1126
1127         accept4: Avoid link error on Solaris.
1128         * modules/accept4 (Link): New section.
1129
1130         socket functions: Avoid link errors on Solaris.
1131         * modules/accept (Depends-on): Add socketlib.
1132         (Link): New section.
1133         * modules/bind (Depends-on): Add socketlib.
1134         (Link): New section.
1135         * modules/connect (Depends-on): Add socketlib.
1136         (Link): New section.
1137         * modules/getpeername (Depends-on): Add socketlib.
1138         (Link): New section.
1139         * modules/getsockname (Depends-on): Add socketlib.
1140         (Link): New section.
1141         * modules/getsockopt (Depends-on): Add socketlib.
1142         (Link): New section.
1143         * modules/listen (Depends-on): Add socketlib.
1144         (Link): New section.
1145         * modules/recv (Depends-on): Add socketlib.
1146         (Link): New section.
1147         * modules/recvfrom (Depends-on): Add socketlib.
1148         (Link): New section.
1149         * modules/send (Depends-on): Add socketlib.
1150         (Link): New section.
1151         * modules/sendto (Depends-on): Add socketlib.
1152         (Link): New section.
1153         * modules/setsockopt (Depends-on): Add socketlib.
1154         (Link): New section.
1155         * modules/shutdown (Depends-on): Add socketlib.
1156         (Link): New section.
1157         * modules/socket (Depends-on): Add socketlib.
1158         (Link): New section.
1159
1160 2011-09-18  Bruno Haible  <bruno@clisp.org>
1161
1162         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
1163         * tests/test-ptsname.c (main): Terminate the test if it takes longer
1164         than 5 seconds.
1165         * modules/ptsname-tests (configure.ac): Test for alarm.
1166
1167 2011-09-18  Bruno Haible  <bruno@clisp.org>
1168
1169         posix_spawn_file_actions_add*: Fix module dependencies.
1170         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
1171         posix_spawn_file_actions_init.
1172         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
1173         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
1174
1175 2011-09-18  Bruno Haible  <bruno@clisp.org>
1176
1177         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
1178         * tests/test-rename.h (test_rename): Allow error code EEXIST.
1179         * tests/test-renameat.c (main): Likewise.
1180
1181 2011-09-18  Bruno Haible  <bruno@clisp.org>
1182
1183         Tests for module 'accept4'.
1184         * modules/accept4-tests: New file.
1185         * tests/test-accept4.c: New file.
1186
1187 2011-09-18  Bruno Haible  <bruno@clisp.org>
1188
1189         Tests for module 'accept'.
1190         * modules/accept-tests: New file.
1191         * tests/test-accept.c: New file.
1192
1193 2011-09-18  Bruno Haible  <bruno@clisp.org>
1194
1195         dup2: Support for MSVC.
1196         * lib/dup2.c: Include msvc-inval.h.
1197         (rpl_dup2): Handle invalid parameter notifications during dup2 and
1198         _get_osfhandle calls.
1199         * modules/dup2 (Depends-on): Add msvc-inval.
1200         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
1201
1202         New module 'msvc-inval'.
1203         * lib/msvc-inval.h: New file.
1204         * lib/msvc-inval.c: New file.
1205         * m4/msvc-inval.m4: New file.
1206         * modules/msvc-inval: New file.
1207
1208 2011-09-17  Bruno Haible  <bruno@clisp.org>
1209
1210         Tests for module 'pclose'.
1211         * modules/pclose-tests: New file.
1212
1213         New module 'pclose'.
1214         * lib/stdio.in.h (pclose): New declaration.
1215         * lib/pclose.c: New file.
1216         * m4/pclose.m4: New file.
1217         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
1218         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
1219         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
1220         * modules/pclose: New file.
1221         * modules/popen-tests (Depends-on): Add pclose.
1222         * modules/popen-safer-tests (Depends-on): Likewise.
1223         * doc/posix-functions/pclose.texi: Mention the new module.
1224
1225 2011-09-17  Bruno Haible  <bruno@clisp.org>
1226
1227         popen: Support for MSVC.
1228         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
1229         * lib/popen.c (popen): Provide alternate definition for native Windows.
1230         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
1231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
1232         * modules/popen (Depends-on, configure.ac): Update condition.
1233         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
1234         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
1235         fixed.
1236
1237 2011-09-17  Bruno Haible  <bruno@clisp.org>
1238
1239         isnanl, isnand, isnanf: Work around MSVC bug.
1240         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
1241
1242 2011-09-17  Bruno Haible  <bruno@clisp.org>
1243
1244         sys_socket tests: Fix recent mistake.
1245         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
1246
1247 2011-09-17  Bruno Haible  <bruno@clisp.org>
1248
1249         putenv: Support for MSVC.
1250         * modules/putenv (Depends-on): Add environ.
1251         * lib/putenv.c (environ): Disable declaration.
1252         * lib/unistd.in.h: Update comment.
1253
1254 2011-09-17  Bruno Haible  <bruno@clisp.org>
1255
1256         math: Avoid macro redefinition warnings on MSVC.
1257         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
1258         Undefine before redefining.
1259
1260 2011-09-17  Bruno Haible  <bruno@clisp.org>
1261
1262         doc: Mention functions which are declared as macros.
1263         * doc/posix-functions/*[fl].texi: Mention that some functions are
1264         defined as macros with arguments only.
1265
1266 2011-09-17  Bruno Haible  <bruno@clisp.org>
1267
1268         Add dependencies to new dirent related modules.
1269         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
1270         * modules/fts (Depends-on): Likewise.
1271         * modules/glob (Depends-on): Likewise.
1272         * modules/savedir (Depends-on): Likewise.
1273         * modules/scandir (Depends-on): Likewise.
1274         * modules/dirent-safer (Depends-on): Add opendir, closedir.
1275         * modules/fdopendir (Depends-on): Add opendir.
1276
1277 2011-09-17  Bruno Haible  <bruno@clisp.org>
1278
1279         inet_pton: Support for MSVC on Windows Vista or newer.
1280         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
1281         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
1282         HAVE_DECL_INET_PTON is defined.
1283         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1284         On platforms with <winsock2.h>, test whether inet_pton is declared in
1285         <ws2tcpip.h>. If so, arrange to replace it.
1286         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1287         REPLACE_INET_PTON.
1288         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
1289         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
1290         (Depends-on, configure.ac): Update condition.
1291         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
1292
1293 2011-09-17  Bruno Haible  <bruno@clisp.org>
1294
1295         inet_ntop: Support for MSVC on Windows Vista or newer.
1296         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
1297         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
1298         HAVE_DECL_INET_NTOP is defined.
1299         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1300         On platforms with <winsock2.h>, test whether inet_ntop is declared in
1301         <ws2tcpip.h>. If so, arrange to replace it.
1302         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1303         REPLACE_INET_NTOP.
1304         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
1305         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
1306         (Depends-on, configure.ac): Update condition.
1307         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
1308
1309 2011-09-16  Eric Blake  <eblake@redhat.com>
1310
1311         test-fsync: yet another enhancement
1312         * tests/test-fsync.c (main): Also test behavior on read-only text
1313         file.
1314
1315 2011-09-16  Bruno Haible  <bruno@clisp.org>
1316
1317         Enhance fsync, fdatasync tests.
1318         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
1319         * tests/test-fdatasync.c (main): Likewise.
1320
1321 2011-09-16  Bruno Haible  <bruno@clisp.org>
1322
1323         Support for MSVC compiler: Ensure mode_t gets defined.
1324         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
1325         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1327         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
1328         * tests/test-fcntl-h.c: Check that mode_t is defined.
1329         * tests/test-sys_stat.c: Likewise.
1330         * tests/test-sys_types.c: Likewise.
1331         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
1332         * doc/posix-headers/sys_stat.texi: Likewise.
1333         * doc/posix-headers/sys_types.texi: Likewise.
1334
1335 2011-09-16  Bruno Haible  <bruno@clisp.org>
1336
1337         sys_stat: Support for MSVC.
1338         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
1339         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
1340         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
1341         MSVC.
1342
1343 2011-09-16  Bruno Haible  <bruno@clisp.org>
1344
1345         Support for MSVC compiler: Ensure off_t gets defined.
1346         * lib/unistd.in.h: Include <sys/types.h>.
1347         * tests/test-fcntl-h.c: Check that off_t is defined.
1348         * tests/test-sys_stat.c: Likewise.
1349         * tests/test-sys_types.c: Likewise.
1350
1351 2011-09-16  Eric Blake  <eblake@redhat.com>
1352
1353         fdatasync: port to Solaris
1354         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
1355         * modules/fdatasync (Link): Document it.
1356         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
1357
1358         fdatasync: port to MacOS X 10.7
1359         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
1360         declared.
1361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
1362         * modules/unistd (Makefile.am): Substitute it.
1363         * lib/unistd.in.h (fdatasync): Declare on MacOS.
1364         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
1365
1366         fdatasync: minor improvements
1367         * modules/fdatasync (Depends-on): Add condition for fsync.
1368         * lib/fdatasync.c (fdatasync): Add comment.
1369         * tests/test-unistd-c++.cc: Test fdatasync.
1370
1371         unistd: update refs to newer POSIX
1372         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
1373         Suggested by Bruno Haible.
1374
1375         fdatasync: new module
1376         * modules/fsync (Description): Document difference to fdatasync.
1377         * modules/fdatasync: New module.
1378         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
1379         * lib/fdatasync.c (fdatasync): Likewise.
1380         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
1381         defaults.
1382         * modules/unistd (Makefile.am): Set witnesses.
1383         * lib/unistd.in.h (fdatasync): Declare.
1384         * MODULES.html.sh: Document it.
1385         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
1386         * modules/fdatasync-tests: New test.
1387         * tests/test-fdatasync.c: Likewise.
1388
1389 2011-09-16  Eric Blake  <eblake@redhat.com>
1390
1391         test-fsync: enhance tests
1392         * modules/fsync-tests (Depends-on): Add errno, for mingw.
1393         * tests/test-fsync.c (main): Enhance test.
1394
1395 2011-09-15  Bruno Haible  <bruno@clisp.org>
1396
1397         Support for MSVC compiler: Ensure ssize_t gets defined.
1398         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
1399         * doc/posix-headers/stdio.texi: Likewise.
1400         * modules/stdio (Depends-on): Add ssize_t.
1401         * modules/sys_socket (Depends-on): Likewise.
1402         * modules/sys_types (Depends-on): Likewise.
1403         * modules/sys_uio (Depends-on): Likewise.
1404         * modules/unistd (Depends-on): Likewise.
1405         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
1406         * tests/test-sys_types.c: Check that ssize_t is defined.
1407
1408 2011-09-14  Bruno Haible  <bruno@clisp.org>
1409
1410         Avoid using #, the m4 comment starter character, near brackets.
1411         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1412         delimiter character in sed expressions.
1413         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1414         Suggested by Eric Blake.
1415
1416         Properly quote AC_CHECK_DECLS' 4th argument.
1417         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
1418         argument.
1419         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1420         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1421         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1422         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1423         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1424         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
1425         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
1426         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
1427         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
1428         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
1429         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
1430         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1431         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1432         * m4/isinf.m4 (gl_ISINF): Likewise.
1433         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1434         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1435         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1436         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1437         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1438         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1439         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1440         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1441         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
1442         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1443         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1444         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
1446         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1448         Reported by Eric Blake.
1449
1450         Properly quote AC_CHECK_DECL's 4th argument.
1451         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
1452         argument.
1453         * m4/argp.m4 (gl_ARGP): Likewise.
1454         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1455         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1456         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1457         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1458         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
1459         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1460         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1461         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1462         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1463         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1464         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1465         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1466         Reported by Eric Blake.
1467
1468 2011-09-14  Eric Blake  <eblake@redhat.com>
1469
1470         opendir: avoid compile warning
1471         * lib/opendir.c (includes): Always include errno.h.
1472         Reported by Tatsuro MATSUOKA.
1473
1474 2011-09-14  Jim Meyering  <meyering@redhat.com>
1475
1476         maint.mk: sc_tight_scope: propagate failure from sub-make
1477         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
1478         Reported by Martin von Gagern.
1479
1480 2011-09-13  Bruno Haible  <bruno@clisp.org>
1481
1482         tempname: Support for MSVC.
1483         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
1484         MSVC.
1485         * modules/tempname (Depends-on): Add fcntl-h.
1486
1487 2011-09-13  Bruno Haible  <bruno@clisp.org>
1488
1489         sys_time: Support for MSVC.
1490         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
1491         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
1492         include <winsock2.h>.
1493         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
1494         function declarations that collide with POSIX.
1495         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
1496         (Makefile.am): Substitute HAVE_WINSOCK2_H.
1497
1498 2011-09-13  Bruno Haible  <bruno@clisp.org>
1499
1500         stat: Support for MSVC.
1501         * lib/stat.c: Include pathmax.h.
1502         * modules/stat (Depends-on): Add pathmax.
1503
1504         pathmax: Support for native Windows.
1505         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
1506
1507 2011-09-12  Bruno Haible  <bruno@clisp.org>
1508
1509         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
1510         * lib/dirent.in.h (struct dirent): New type.
1511         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
1512         DT_WHT): New macros.
1513         (DIR): New type.
1514         (opendir, closedir): Declare only if the module 'opendir' is enabled.
1515         (readdir, rewinddir): New declarations.
1516         * lib/dirent-private.h: New file.
1517         * lib/opendir.c: New file.
1518         * lib/readdir.c: New file.
1519         * lib/rewinddir.c: New file.
1520         * lib/closedir.c: New file.
1521         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
1522         * m4/opendir.m4: New file.
1523         * m4/readdir.m4: New file.
1524         * m4/rewinddir.m4: New file.
1525         * m4/closedir.m4: New file.
1526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
1527         REPLACE_CLOSEDIR here.
1528         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
1529         readdir, rewinddir are declared.
1530         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
1531         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
1532         HAVE_REWINDDIR, HAVE_CLOSEDIR.
1533         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
1534         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
1535         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
1536         * modules/opendir: New file.
1537         * modules/readdir: New file.
1538         * modules/rewinddir: New file.
1539         * modules/closedir: New file.
1540         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
1541         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
1542         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
1543         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
1544         * NEWS: Mention the 'fchdir' change.
1545
1546 2011-09-11  Bruno Haible  <bruno@clisp.org>
1547
1548         asm-underscore.m4: Support for MSVC.
1549         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
1550         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
1551
1552 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
1553
1554         Doc about crypt functions.
1555         * doc/posix-functions/crypt.texi: Expand range of glibc versions
1556         needing for _GNU_SOURCE to get crypt.
1557         * doc/posix-functions/encrypt.texi: Likewise.
1558         * doc/posix-functions/setkey.texi: Likewise.
1559
1560 2011-09-11  Bruno Haible  <bruno@clisp.org>
1561
1562         doc: Update regarding MSVC 9.
1563         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
1564         tested".
1565         * doc/posix-functions/*.texi: Update with info about MSVC 9.
1566         * doc/posix-headers/*.texi: Likewise.
1567         * doc/pastposix-functions/*.texi: Likewise.
1568         * doc/glibc-functions/*.texi: Likewise.
1569         * doc/glibc-headers/*.texi: Likewise.
1570
1571 2011-09-11  Bruno Haible  <bruno@clisp.org>
1572
1573         unistd et al.: Don't assume <unistd.h> exists.
1574         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
1575         does not exist.
1576         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
1577         exist. But include <stdlib.h>.
1578         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
1579         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
1580         symlink() does not exist.
1581         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
1582         include <io.h> instead.
1583         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
1584         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
1585         include <direct.h> instead.
1586         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1587         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1588         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
1589         <io.h> instead.
1590         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
1591         correctly if the system does not have hard links.
1592         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
1593         <direct.h> instead.
1594         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
1595         it when looking for function declarations.
1596         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
1597         <direct.h> and <io.h> instead.
1598         * doc/posix-headers/unistd.texi: More details about MSVC problem.
1599
1600 2011-09-11  Bruno Haible  <bruno@clisp.org>
1601
1602         strcase: Support for MSVC.
1603         * modules/strcase (Status, Notice): Remove obsoletion mark.
1604         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
1605         * doc/posix-functions/strncasecmp.texi: Likewise.
1606
1607         strings: Don't assume <strings.h> exists.
1608         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
1609         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
1610         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
1611         * doc/posix-headers/strings.texi: Mention the MSVC problem.
1612
1613 2011-09-11  Bruno Haible  <bruno@clisp.org>
1614
1615         dirent: Don't assume <dirent.h> exists.
1616         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
1617         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
1618         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
1619         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
1620
1621 2011-09-11  Bruno Haible  <bruno@clisp.org>
1622
1623         Fix wint_t on MSVC.
1624         * lib/wchar.in.h (wint_t): On MSVC, override it.
1625         * lib/wctype.in.h (wint_t): Likewise.
1626         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
1627         MSVC.
1628         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
1629         * doc/posix-headers/wctype.texi: Likewise.
1630
1631 2011-09-11  Bruno Haible  <bruno@clisp.org>
1632
1633         sys_types: Fix typo.
1634         * lib/sys_types.in.h: Fix typo in comment.
1635         Reported by Paul Eggert.
1636
1637         Support for MSVC compiler: Ensure size_t gets defined.
1638         * modules/strings (Depends-on): Add 'sys_types'.
1639         * modules/sys_uio (Depends-on): Likewise.
1640         * lib/sys_uio.in.h: Update comment.
1641
1642         C++ tests for module 'sys_types'.
1643         * modules/sys_types-c++-tests: New file.
1644         * tests/test-sys_types-c++.cc: New file.
1645
1646         Tests for module 'sys_types'.
1647         * modules/sys_types-tests: New file.
1648         * tests/test-sys_types.c: New file.
1649
1650         New module 'sys_types'.
1651         * lib/sys_types.in.h: New file.
1652         * m4/sys_types_h.m4: New file.
1653         * modules/sys_types: New file.
1654         * doc/posix-headers/sys_types.texi: Mention the new module and the
1655         size_t problem on MSVC 9.
1656
1657 2011-09-11  Bruno Haible  <bruno@clisp.org>
1658
1659         Support for MSVC compiler: Avoid division by a literal 0.
1660         * lib/math.in.h (NAN): Define through a function call also on MSVC.
1661         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
1662         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
1663         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
1664         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1665         * tests/infinity.h: New file.
1666         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1667         on MSVC.
1668         * tests/test-ceilf1.c: Include infinity.h.
1669         (main): Use Infinityf.
1670         * tests/test-ceil1.c: Include infinity.h.
1671         (main): Use Infinityd.
1672         * tests/test-ceill.c: Include infinity.h.
1673         (main): Use Infinityl.
1674         * tests/test-dprintf-posix.c: Include infinity.h.
1675         (test_function): Use Infinityd.
1676         * tests/test-floorf1.c: Include infinity.h.
1677         (main): Use Infinityf.
1678         * tests/test-floor1.c: Include infinity.h.
1679         (main): Use Infinityd.
1680         * tests/test-floorl.c: Include infinity.h.
1681         (main): Use Infinityl.
1682         * tests/test-fprintf-posix.c: Include infinity.h.
1683         (test_function): Use Infinityd.
1684         * tests/test-frexp.c: Include infinity.h.
1685         (main): Use Infinityd.
1686         * tests/test-frexpl.c: Include infinity.h.
1687         (main): Use Infinityl.
1688         * tests/test-isfinite.c: Include infinity.h.
1689         (test_isfinitef): Use Infinityf.
1690         (test_isfinited): Use Infinityd.
1691         (test_isfinitel): Use Infinityl.
1692         * tests/test-isinf.c: Include infinity.h.
1693         (test_isinff): Use Infinityf.
1694         (test_isinfd): Use Infinityd.
1695         (test_isinfl): Use Infinityl.
1696         * tests/test-isnan.c: Include infinity.h.
1697         (test_float): Use Infinityf.
1698         (test_double): Use Infinityd.
1699         (test_long_double): Use Infinityl.
1700         * tests/test-isnanf.h: Include infinity.h.
1701         (main): Use Infinityf.
1702         * tests/test-isnand.h: Include infinity.h.
1703         (main): Use Infinityd.
1704         * tests/test-isnanl.h: Include infinity.h.
1705         (main): Use Infinityl.
1706         * tests/test-ldexpl.c: Include infinity.h.
1707         (main): Use Infinityl.
1708         * tests/test-printf-posix.h: Include infinity.h.
1709         (test_function): Use Infinityd.
1710         * tests/test-roundf1.c: Include infinity.h.
1711         (main): Use Infinityf.
1712         * tests/test-round1.c: Include infinity.h.
1713         (main): Use Infinityd.
1714         * tests/test-roundl.c: Include infinity.h.
1715         (main): Use Infinityl.
1716         * tests/test-signbit.c: Include infinity.h.
1717         (test_signbitf): Use Infinityf.
1718         (test_signbitd): Use Infinityd.
1719         (test_signbitl): Use Infinityl.
1720         * tests/test-snprintf-posix.h: Include infinity.h.
1721         (test_function): Use Infinityd, Infinityl.
1722         * tests/test-sprintf-posix.h: Include infinity.h.
1723         (test_function): Use Infinityd, Infinityl.
1724         * tests/test-truncf1.c: Include infinity.h.
1725         (main): Use Infinityf.
1726         * tests/test-trunc1.c: Include infinity.h.
1727         (main): Use Infinityd.
1728         * tests/test-truncl.c: Include infinity.h.
1729         (main): Use Infinityl.
1730         * tests/test-vasnprintf-posix.c: Include infinity.h.
1731         (test_function): Use Infinityd, Infinityl.
1732         * tests/test-vasprintf-posix.c: Include infinity.h.
1733         (test_function): Use Infinityd, Infinityl.
1734         * modules/ceilf-tests (Files): Add tests/infinity.h.
1735         * modules/ceil-tests (Files): Likewise.
1736         * modules/ceill-tests (Files): Likewise.
1737         * modules/dprintf-posix-tests (Files): Likewise.
1738         * modules/floorf-tests (Files): Likewise.
1739         * modules/floor-tests (Files): Likewise.
1740         * modules/floorl-tests (Files): Likewise.
1741         * modules/fprintf-posix-tests (Files): Likewise.
1742         * modules/frexp-tests (Files): Likewise.
1743         * modules/frexp-nolibm-tests (Files): Likewise.
1744         * modules/frexpl-tests (Files): Likewise.
1745         * modules/frexpl-nolibm-tests (Files): Likewise.
1746         * modules/isfinite-tests (Files): Likewise.
1747         * modules/isinf-tests (Files): Likewise.
1748         * modules/isnan-tests (Files): Likewise.
1749         * modules/isnanf-tests (Files): Likewise.
1750         * modules/isnanf-nolibm-tests (Files): Likewise.
1751         * modules/isnand-tests (Files): Likewise.
1752         * modules/isnand-nolibm-tests (Files): Likewise.
1753         * modules/isnanl-tests (Files): Likewise.
1754         * modules/isnanl-nolibm-tests (Files): Likewise.
1755         * modules/ldexpl-tests (Files): Likewise.
1756         * modules/printf-posix-tests (Files): Likewise.
1757         * modules/roundf-tests (Files): Likewise.
1758         * modules/round-tests (Files): Likewise.
1759         * modules/roundl-tests (Files): Likewise.
1760         * modules/signbit-tests (Files): Likewise.
1761         * modules/snprintf-posix-tests (Files): Likewise.
1762         * modules/sprintf-posix-tests (Files): Likewise.
1763         * modules/truncf-tests (Files): Likewise.
1764         * modules/trunc-tests (Files): Likewise.
1765         * modules/truncl-tests (Files): Likewise.
1766         * modules/vasnprintf-posix-tests (Files): Likewise.
1767         * modules/vasprintf-posix-tests (Files): Likewise.
1768         * modules/vdprintf-posix-tests (Files): Likewise.
1769         * modules/vfprintf-posix-tests (Files): Likewise.
1770         * modules/vprintf-posix-tests (Files): Likewise.
1771         * modules/vsnprintf-posix-tests (Files): Likewise.
1772         * modules/vsprintf-posix-tests (Files): Likewise.
1773         * modules/xprintf-posix-tests (Files): Likewise.
1774
1775 2011-09-11  Bruno Haible  <bruno@clisp.org>
1776
1777         Ensure pid_t gets defined.
1778         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1779         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1780         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1781         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1782         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1783         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1784         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1785         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1786         * tests/test-fcntl-h.c: Check that pid_t is defined.
1787         * tests/test-sched.c: Likewise.
1788         * tests/test-termios.c: Likewise.
1789         * tests/test-time.c: Likewise.
1790         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1791         * doc/posix-headers/signal.texi: Likewise.
1792         * doc/posix-headers/sys_types.texi: Likewise.
1793         * doc/posix-headers/time.texi: Likewise.
1794
1795 2011-09-11  Bruno Haible  <bruno@clisp.org>
1796
1797         acl: Fix compilation on Solaris 10 (older version).
1798         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1799         of ACE_EVERYONE.
1800         * lib/set-mode-acl.c (qset_acl): Likewise.
1801         Reported by Christian Jullien <eligis@orange.fr>.
1802
1803 2011-09-10  Bruno Haible  <bruno@clisp.org>
1804
1805         iconv, unsetenv: Add support for MSVC compiler.
1806         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1807         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1808
1809 2011-09-10  Bruno Haible  <bruno@clisp.org>
1810
1811         *printf: Add support for MSVC compiler.
1812         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1813         handles the exception caused by the %n directive. When cross-compiling,
1814         guess no on native Windows.
1815         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1816         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1817         emulate it through vsnprintf.
1818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1819         * doc/posix-functions/dprintf.texi: Update documentation regarding
1820         MSVC 9.
1821         * doc/posix-functions/fprintf.texi: Likewise.
1822         * doc/posix-functions/printf.texi: Likewise.
1823         * doc/posix-functions/snprintf.texi: Likewise.
1824         * doc/posix-functions/sprintf.texi: Likewise.
1825         * doc/posix-functions/swprintf.texi: Likewise.
1826         * doc/posix-functions/vdprintf.texi: Likewise.
1827         * doc/posix-functions/vfprintf.texi: Likewise.
1828         * doc/posix-functions/vprintf.texi: Likewise.
1829         * doc/posix-functions/vsnprintf.texi: Likewise.
1830         * doc/posix-functions/vsprintf.texi: Likewise.
1831         * doc/glibc-functions/asprintf.texi: Likewise.
1832         * doc/glibc-functions/obstack_printf.texi: Likewise.
1833         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1834         * doc/glibc-functions/vasprintf.texi: Likewise.
1835
1836 2011-09-10  Bruno Haible  <bruno@clisp.org>
1837
1838         nocrash: Add support for native Windows.
1839         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1840
1841 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1842             Bruno Haible  <bruno@clisp.org>
1843
1844         absolute-header, include-next: Add support for MSVC compiler.
1845         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1846         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1847         directory separator in #line directives.
1848         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1849         recognize also backslash as directory separator in #line directives.
1850
1851 2011-09-08  Jim Meyering  <meyering@redhat.com>
1852
1853         maint.mk: mark the post-release commit log with "maint: " prefix
1854         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1855         one-line commit-log summary.
1856
1857 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1858             Bruno Haible  <bruno@clisp.org>
1859
1860         Doc about crypt functions.
1861         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1862         systems.
1863         * doc/posix-functions/encrypt.texi: Likewise.
1864         * doc/posix-functions/setkey.texi: Likewise.
1865
1866 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1867
1868         * lib/gc.h: Fix copyright header.
1869
1870 2011-09-07  Bruno Haible  <bruno@clisp.org>
1871
1872         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1873         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1874         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1875
1876 2011-09-07  Bruno Haible  <bruno@clisp.org>
1877
1878         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1879         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1880         * lib/freopen.c: Likewise.
1881         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1882         * lib/lstat.c: Likewise.
1883         * lib/stat.c: Likewise.
1884         * lib/open.c: Use different syntax for include of <fcntl.h>.
1885         * lib/openat.c: Include fcntl.h again, explicitly.
1886
1887 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1888
1889         parse-datetime: document the newly accepted format
1890         * doc/parse-datetime.texi (Combined date and time of day items):
1891         New section.
1892
1893 2011-09-06  Bruno Haible  <bruno@clisp.org>
1894
1895         acl: Fix a test failure on newer Solaris 10 with ZFS.
1896         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1897         ENOSYS as no ACL.
1898         Reported by Jim Meyering.
1899
1900 2011-09-06  Bruno Haible  <bruno@clisp.org>
1901
1902         acl: Update for AIX >= 5.3 with NFS.
1903         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1904         ENOSYS as no ACL.
1905
1906         acl: Fix a test failure on AIX >= 5.3 with NFS.
1907         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1908         as no ACL.
1909
1910 2011-09-06  Bruno Haible  <bruno@clisp.org>
1911
1912         acl: Fix a test failure on IRIX 6.5 with NFS.
1913         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1914         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1915         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1916         * lib/copy-acl.c (qcopy_acl): Likewise.
1917
1918 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1919
1920         openat: port to AIX 7.1 with large files
1921         AIX 7.1 does a "#define openat open64at" if large files are in use,
1922         so we can't simply #undef openat.  Use the orig_openat trick (similar
1923         to orig_open in lib/open.c) to work around the problem.  Problem
1924         reported by Kevin Brott for GNU tar, in the thread containing
1925         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1926         * lib/openat.c (__need_system_fcntl_h): Define first.
1927         Include <fcntl.h> and <sys/types.h> before undefining.
1928         (orig_openat) [HAVE_OPENAT]: New inline function.
1929         (openat) [HAVE_OPENAT]: Do not undef.
1930         (rpl_openat): Use orig_openat, not openat.
1931
1932 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1933             Bruno Haible  <bruno@clisp.org>
1934
1935         acl: Avoid errors on NonStop Kernel.
1936         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1937         ENOTSUP errors.
1938
1939 2011-09-05  Bruno Haible  <bruno@clisp.org>
1940
1941         acl: Clean up Solaris code.
1942         * lib/acl-internal.h: Remove no-op #if.
1943         * lib/file-has-acl.c: Likewise.
1944         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1945         * lib/copy-acl.c (qcopy_acl): Likewise.
1946
1947 2011-09-05  Bruno Haible  <bruno@clisp.org>
1948
1949         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1950         binaries built on the original Solaris 10.
1951         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1952         trivial.
1953
1954 2011-09-05  Bruno Haible  <bruno@clisp.org>
1955
1956         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1957         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1958         10.
1959         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1960         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1961         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1962         instead of acl_get, facl_get, acl_set, facl_set.
1963
1964 2011-09-05  Bruno Haible  <bruno@clisp.org>
1965
1966         copy-file: Try unit tests on more file systems.
1967         * tests/test-copy-file-1.sh: New file.
1968         * tests/test-copy-file-2.sh: New file.
1969         * modules/copy-file-tests (Files): Add them.
1970         (Makefile.am): Add them to TESTS.
1971
1972         acl: Try unit tests on more file systems.
1973         * tests/test-file-has-acl-1.sh: New file.
1974         * tests/test-file-has-acl-2.sh: New file.
1975         * tests/test-set-mode-acl-1.sh: New file.
1976         * tests/test-set-mode-acl-2.sh: New file.
1977         * tests/test-copy-acl-1.sh: New file.
1978         * tests/test-copy-acl-2.sh: New file.
1979         * modules/acl-tests (Files): Add them.
1980         (Makefile.am): Add them to TESTS.
1981
1982 2011-09-04  Bruno Haible  <bruno@clisp.org>
1983
1984         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1985         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1986         10.
1987         (OLD_ALLOW, OLD_DENY): New macros.
1988         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1989         ACE_ACCESS_ALLOWED_ACE_TYPE.
1990         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1991         ACE_ACCESS_DENIED_ACE_TYPE.
1992         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1993         (NEW_ACE_EXECUTE): Fix value.
1994         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1995         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1996         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1997         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1998         NEW_ACE_SYNCHRONIZE): New macros.
1999         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
2000         instead of acl_fromtext, acl_set, facl_set.
2001         Fixes a coreutils/tests/cp/perm failure.
2002
2003 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2004
2005         openat: test for fstatat (..., 0) bug
2006         Further testing with tar suggests that fstatat (..., 0)
2007         does not work in general, on AIX 7.1; see
2008         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
2009         So, give up entirely on AIX 7.1's fstatat, and fall back on our
2010         replacement fstatat (which is what older AIX releases were using
2011         anyway).
2012         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
2013         use is now changed to orig_fstatat.  This was probably the right
2014         thing to do anyway.
2015         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
2016         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
2017         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
2018         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
2019         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
2020         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
2021         if the bug is found.
2022
2023         openat: test for fstatat (AT_FDCWD, ..., 0) bug
2024         This tests for another fstatat bug on AIX 7.1:
2025         fstatat (AT_FDCWD, ..., 0) does not work.  See
2026         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
2027         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
2028         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
2029         (rpl_fstatat): Adjust so that it works around either (or both)
2030         bugs if present.
2031         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
2032
2033 2011-09-03  Karl Berry  <karl@gnu.org>
2034
2035         * doc/regex.texi (Character Class Operators): Avoid literal ":"
2036         in index entries.
2037
2038 2011-09-02  Bruno Haible  <bruno@clisp.org>
2039
2040         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
2041         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
2042         values of AR, ARFLAGS, RANLIB.
2043         Reported by John W. Eaton <jwe@gnu.org> for Octave.
2044
2045 2011-09-02  Bruno Haible  <bruno@clisp.org>
2046
2047         Find 'ar' program that fits with --host argument.
2048         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
2049
2050 2011-09-02  Bruno Haible  <bruno@clisp.org>
2051
2052         tests: init.sh: Support any non-GNU diff.
2053         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
2054         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
2055         Solaris 8.
2056
2057 2011-09-02  Bruno Haible  <bruno@clisp.org>
2058
2059         tests: init.sh: work also with any non-GNU diff that supports -u
2060         * tests/init.sh: Relax check for diff -u support.
2061         Rather than checking for GNU diff via --version, simply check
2062         for support for -u itself.  Useful at least on OpenBSD 4.9,
2063         AIX 7.1, IRIX 6.5, and Solaris 10.
2064
2065 2011-09-01  Bruno Haible  <bruno@clisp.org>
2066
2067         strtoimax, strtoumax: Document problem on HP-UX 11.
2068         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
2069         * doc/posix-functions/strtoumax.texi: Likewise.
2070
2071 2011-09-01  Bruno Haible  <bruno@clisp.org>
2072
2073         strtoumax: Avoid link error on OSF/1 with DTK cc.
2074         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
2075         defined as a function.
2076         * modules/strtoumax (Depends-on, configure.ac): Test only whether
2077         strtoumax is defined, not whether it is declared.
2078
2079 2011-09-01  Bruno Haible  <bruno@clisp.org>
2080
2081         strtoimax: Avoid link error on OSF/1 with DTK cc.
2082         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
2083         defined as a function.
2084         * modules/strtoimax (Depends-on, configure.ac): Test only whether
2085         strtoimax is defined, not whether it is declared.
2086
2087 2011-09-01  Bruno Haible  <bruno@clisp.org>
2088
2089         imaxdiv: Avoid link error on OSF/1 with DTK cc.
2090         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
2091         as a function.
2092         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
2093         whether it is declared.
2094
2095 2011-09-01  Bruno Haible  <bruno@clisp.org>
2096
2097         imaxabs: Avoid link error on OSF/1 with DTK cc.
2098         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
2099         as a function.
2100         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
2101         whether it is declared.
2102
2103 2011-09-01  Bruno Haible  <bruno@clisp.org>
2104
2105         Tests for module 'strtoumax'.
2106         * modules/strtoumax-tests: New file.
2107         * tests/test-strtoumax.c: New file.
2108
2109         Tests for module 'strtoimax'.
2110         * modules/strtoimax-tests: New file.
2111         * tests/test-strtoimax.c: New file.
2112
2113         Tests for module 'imaxdiv'.
2114         * modules/imaxdiv-tests: New file.
2115         * tests/test-imaxdiv.c: New file.
2116
2117         Tests for module 'imaxabs'.
2118         * modules/imaxabs-tests: New file.
2119         * tests/test-imaxabs.c: New file.
2120
2121 2011-09-01  Bruno Haible  <bruno@clisp.org>
2122
2123         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
2124         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
2125         pthread_create.
2126
2127 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2128
2129         openat: work around AIX 7.1 fstatat issue
2130         This should fix the problem that was not properly fixed
2131         in the previous change, dated 2011-08-30.
2132         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
2133         __need_system_stat_h defined.
2134         (orig_fstatat) [HAVE_FSTATAT]: New function.
2135         (rpl_fstatat): Go back to the old way of doing things,
2136         except call orig_fstatat instead of fstatat.
2137         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
2138         Remove unnecessary check whether fstatat fills in st_size etc.
2139
2140 2011-09-01  Bruno Haible  <bruno@clisp.org>
2141
2142         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
2143         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
2144         just include the system's header.
2145
2146 2011-08-31  Jim Meyering  <meyering@redhat.com>
2147
2148         tests: avoid spurious assertion failure in test-float.c on ppc64
2149         * tests/test-float.c (test_long_double): Comment out an assertion,
2150         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
2151         with gcc-4.4.4.
2152
2153         maint: indent with spaces, not TABs
2154         I need to get in the habit of running gnulib's "make check".
2155         Both of these would have been caught.
2156         * m4/largefile.m4: Indent with spaces, not TABs.
2157         * lib/parse-datetime.y (iso_8601_time): Likewise.
2158         Spotted by Pádraig Brady.
2159
2160         test-parse-datetime.c: accommodate a relatively strict gcc warning
2161         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
2162         to avoid a warning from gcc's -Werror=missing-declarations.
2163         Insert a few spaces-before-funcall-parenthesis.
2164
2165 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
2166
2167         parse-datetime: accept ISO 8601 date and time rep with "T" separator
2168         The parser now accepts ISO 8601 date-time strings with "T" as the
2169         separator.  It has long parsed dates like "2004-02-29 16:21:42"
2170         with a space between the date and time strings.  Now it also parses
2171         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
2172         variants like "2004-02-29T16:21:42.333-07:00"
2173         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
2174         of day representation using the 'T' separator character.
2175         * doc/parse-datetime.texi (General date syntax): replace use of
2176         deprecated --iso-8601 option with --rfc-3339 in example of date
2177         command output formats that can be parsed.
2178         * tests/test-parse-datetime.c (tm_diff): New function, taken from
2179         lib/parse-datetime.y.
2180         (gmt_offset): New function.
2181         (main): Add additional test cases to validate ISO8601 extended
2182         date and time of day parsing.
2183
2184 2011-08-31  Bruno Haible  <bruno@clisp.org>
2185
2186         freopen: Documentation.
2187         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
2188         name.
2189         Reported by Claudio Bley <claudio.bley@gmail.com>.
2190
2191 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
2192
2193         freopen: Don't crash if the filename argument is NULL.
2194         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
2195         NULL.
2196
2197 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2198
2199         openat: work around AIX 7.1 fstatat bug
2200         Problem reported by Kevin Brott for GNU tar, in the thread containing
2201         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
2202         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
2203         FSTATAT_ST_SIZE_ETC_BROKEN.
2204         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
2205         rpl_fstatat.
2206         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
2207         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
2208         AC_CHECK_FUNCS_ONCE for fstatat.
2209         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
2210         fchmodat, mkdirat, openat and unlinkat.
2211
2212 2011-08-30  Bruno Haible  <bruno@clisp.org>
2213
2214         Avoid endless recursions if config.h includes some header files.
2215         * lib/fopen.c (__need_FILE): Define already before including config.h.
2216         * lib/freopen.c (__need_FILE): Likewise.
2217         * lib/open.c (__need_system_fcntl_h): Likewise.
2218         * lib/stat.c (__need_system_sys_stat_h): Likewise.
2219         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
2220         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2221
2222 2011-08-25  Karl Berry  <karl@gnu.org>
2223
2224         * config/srclist.txt (ylwrap): new try.
2225         * build-aux/ylwrap: new file.
2226
2227 2011-08-23  Bruno Haible  <bruno@clisp.org>
2228
2229         tmpdir: Use a good default directory on native Windows.
2230         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
2231         (P_tmpdir): Default to _P_tmpdir on native Windows.
2232         (path_search): On native Windows, try the value returned by GetTempPath
2233         before trying P_tmpdir.
2234         * modules/tmpdir (Depends-on): Add pathmax.
2235         Suggested by John Darrington <john@darrington.wattle.id.au>.
2236
2237 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
2238
2239         doc: fix typo in README-release
2240         * top/README-release: Capitalize first word of a sentence.
2241
2242 2011-08-19  Jim Meyering  <meyering@redhat.com>
2243
2244         fts: do not exhaust memory when processing million-entry directories
2245         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
2246         directory would require about 256*N bytes of memory.  Thus, it was
2247         easy to construct a directory too large to be processed by any of
2248         those tools.  With this change, fts' maximum memory utilization is
2249         now limited to around 30MB.
2250         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
2251         (fts_read): When we've processed the final entry (i.e., when
2252         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
2253         using the parent entry to read any remaining entries.  Dispatch
2254         depending on what fts_build returns:
2255         - NULL+stop, aka failure: stop
2256         - NULL otherwise: move up in the dir hierarchy
2257         - non-NULL: handle this new entry
2258         (fts_build): Declare and use new local, continue_readdir.
2259         Prepare to be called from fts_read, when the entries
2260         from a partially-read directory have just been exhausted.
2261         In that case, we'll skip the opendir and instead use the parent's
2262         fts_dirp and derive dir_fd from that.
2263         Finally, in the readdir loop, if we read max_entries entries,
2264         exit the loop ensuring *not* to call closedir.  This is required
2265         so that fts_dirp can be reused on a subsequent call.
2266         Prompted by Ben England's report of memory exhaustion in find
2267         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
2268
2269         maint: fts: move decl of `dp' down into while loop; split a long line
2270         * lib/fts.c (fts_build): No semantic change.
2271
2272         fts: add/use new struct member, fts_dirp
2273         We are about to use this to manage any directory with
2274         too many entries to read all of them into memory at once.
2275         To do that, we'll need to save the DIR* pointer in each
2276         affected FTSENT struct.
2277         * lib/fts_.h: Include <dirent.h>.
2278         (struct FTSENT) [fts_dirp]: New member.
2279         * lib/fts.c (closedir_and_clear): Define.
2280         Use it in place of closedir so that we are sure to
2281         clear the new fts_dirp member when done with it.
2282         (fts_alloc): Initialize the new member.
2283         (fts_lfree): Free, if needed.
2284
2285         maint: fts: give __opendir2 a new parameter and rename
2286         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
2287         than surreptitiously using sole caller's "dir_fd".
2288         (fts_opendir): Rename from __opendir2.
2289
2290         maint: fts.c: remove __opendir2's now-unused parameter, oflag
2291         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
2292
2293         maint: fts.c: correct off-by-one indentation
2294         * lib/fts.c (fts_build): Correct indentation, change style
2295         of a couple of block comments, and bracing style.
2296
2297         maint: fts.c: move __opendir2 #define "up" out of function body
2298         * lib/fts.c (__opendir2): Move "up".  No semantic change.
2299
2300         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
2301         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
2302         out for a long time and besides was useful only on BSD systems.
2303
2304 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2305
2306         regex: port to Stratus OpenVOS
2307         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
2308         define to empty, rather than attempting nonportable optimizations.
2309         Problem reported by Paul Green in:
2310         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
2311         and fix suggested by Eric Blake in:
2312         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
2313
2314 2011-08-17  Eric Blake  <eblake@redhat.com>
2315
2316         getcwd: fix test failures on mingw
2317         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
2318         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
2319         test if long directory cannot be created, and allow mingw errno.
2320
2321         getcwd-lgpl: fix m4 to match relaxed test for BSD
2322         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
2323         (gl_FUNC_GETCWD_SIGNATURE): New macro.
2324         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
2325         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
2326         signature problem.
2327
2328         getcwd: fix compilation on mingw64
2329         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
2330         getcwd.
2331         Reported by Marc-André Lureau.
2332
2333         pipe2: silence compiler warning
2334         * lib/pipe2.c (pipe2): Hide label if it is not used.
2335
2336 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
2337
2338         relocatable-prog: fix link error
2339         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
2340         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
2341         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
2342         into modules/relocatable-lib without noticing that
2343         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
2344         also needs to build relocatable.c.
2345
2346 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2347
2348         getaddrinfo: fix sh typo in gai_strerrorA decl checking
2349         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
2350         shell code: it contained a 'break' that was not in a loop.
2351         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
2352         via a shell-language loop; this may have been true in old Autoconf
2353         versions, but it's not true in Autoconf 2.68.  I found this bug
2354         when testing coreutils git on Solaris 8, whose shell complains
2355         about the syntax error.
2356
2357 2011-08-12  Simon Josefsson  <simon@josefsson.org>
2358
2359         * lib/base64.c: Fix comment to reference RFC 4648.
2360         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
2361         <gvtulder@gmail.com>.
2362
2363 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2364
2365         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
2366
2367         po/Makefile.in.in: fix make -q problem
2368         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
2369         rule, since there's no file named 'check-macro-version' and its
2370         use as a file breaks make -q.
2371         (all): Don't depend on check-macro-version.
2372         (CHECK_MACRO_VERSION): New macro.
2373         (stamp-po): Use it.
2374
2375         configmake: fix make -q problem
2376         * modules/configmake (configmake.h): Update configmake.h's time stamp
2377         even if the file does not change.  Otherwise, 'make -q' fails.
2378         Problem reported by Simon Josefsson in
2379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
2380
2381 2011-08-11  Jim Meyering  <meyering@redhat.com>
2382
2383         git-version-gen: correct the advice in a comment
2384         * build-aux/git-version-gen: Correct comment.
2385         Don't recommend to list .tarball-version in .gitignore.
2386
2387 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2388
2389         base64: fix off-by-one buffer size bug
2390         Problem and (trivial) fix reported by Gijs van Tulder in
2391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
2392         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
2393         * tests/test-base64.c (main): Catch the bug.
2394
2395 2011-08-10  Eric Blake  <eblake@redhat.com>
2396
2397         closein: correct comments
2398         * lib/closein.c (close_stdin): Improve comments.
2399
2400 2011-08-09  Bruno Haible  <bruno@clisp.org>
2401
2402         More tests for 'fseeko'.
2403         * tests/test-fseeko3.c: New file, from Eric Blake.
2404         * tests/test-fseeko3.sh: New file.
2405         * modules/fseeko-tests (Files): Add them.
2406         (TESTS): Add test-fseeko3.sh.
2407         (check_PROGRAMS): Add test-fseeko3.
2408
2409 2011-08-09  Eric Blake  <eblake@redhat.com>
2410
2411         fseeko: remove unneeded hack
2412         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
2413
2414         fseeko: fix bug on glibc
2415         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
2416         Reported by John W. Eaton.
2417
2418 2011-08-08  Bruno Haible  <bruno@clisp.org>
2419
2420         unictype/base: Fix interoperability with preinstalled libunistring.
2421         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
2422         Reported by Simon Josefsson.
2423
2424 2011-08-08  Bruno Haible  <bruno@clisp.org>
2425
2426         iswblank: Detect declaration correctly.
2427         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
2428         AC_CHECK_DECLS invocation.
2429
2430 2011-08-08  Bruno Haible  <bruno@clisp.org>
2431
2432         tcgetsid: Detect declaration correctly.
2433         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
2434         AC_CHECK_DECLS invocation.
2435         Reported by Simon Josefsson.
2436
2437 2011-08-08  Eric Blake  <eblake@redhat.com>
2438
2439         largefile: fix typo that regressed large file support
2440         * modules/largefile (configure.ac-early): Fix section name.
2441
2442 2011-08-06  Karl Berry  <karl@gnu.org>
2443
2444         * MODULES.html.sh (func_all_files): _Noreturn is no longer
2445         a separate module.
2446
2447 2011-08-05  Simon Josefsson  <simon@josefsson.org>
2448
2449         openat: Fix warnings and commens when building unlinkat.c on Hurd.
2450         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
2451         get prototype for free.
2452
2453 2011-08-04  Bruno Haible  <bruno@clisp.org>
2454
2455         Tests for module 'pathmax'.
2456         * modules/pathmax-tests: New file.
2457         * tests/test-pathmax.c: New file.
2458
2459         canonicalize-lgpl: Support larger filenames on the Hurd.
2460         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
2461         Reported by Paul Eggert.
2462
2463         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
2464         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
2465         * lib/chdir-long.h: Include pathmax.h.
2466         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
2467         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
2468         (PATH_MAX): Remove code that is done by pathmax.h.
2469         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
2470         * lib/tmpfile.c: Add a comment.
2471         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
2472         * modules/chdir-long (Depends-on): Add pathmax.
2473         * modules/getcwd (Depends-on): Add pathmax.
2474         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
2475         is not defined.
2476         * doc/posix-headers/limits.texi: Mention the pathmax module.
2477         * NEWS: Mention the change.
2478
2479 2011-08-02  Bruno Haible  <bruno@clisp.org>
2480
2481         pthread_sigmask: Actually use results of gl_THREADLIB.
2482         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
2483         gl_THREADLIB, not gl_[]THREADLIB.
2484         Reported by Eric Blake.
2485
2486 2011-08-02  Jim Meyering  <meyering@redhat.com>
2487
2488         maint.mk: relax the default _gl_TS_function_match regexp
2489         * top/maint.mk (_gl_TS_function_match): Don't require at least one
2490         space between function name and "(" in an "extern" declaration.
2491         That would fail to match a decl with no space there: extern void foo();
2492
2493 2011-07-31  Iain Nicol  <iain@thenicols.net>
2494
2495         git-version-gen: document that EXTRA_DIST must include .version
2496         * build-aux/git-version-gen: In the how-to-use comment, document
2497         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
2498         will fail when run from an unpacked distribution tarball.
2499
2500 2011-08-01  Bruno Haible  <bruno@clisp.org>
2501
2502         wctype-h: Fix last change.
2503         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
2504         REPLACE_TOWLOWER to 0.
2505         Reported by Sam Steingold <sds@gnu.org>.
2506
2507 2011-07-31  Bruno Haible  <bruno@clisp.org>
2508
2509         frexpl: Update autoconf test.
2510         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
2511         according to changes of 2011-06-20.
2512
2513 2011-07-31  Bruno Haible  <bruno@clisp.org>
2514
2515         sys_utsname: Add support for Minix.
2516         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
2517         <sys/utsname.h>.
2518         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2519         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
2520
2521 2011-07-31  Bruno Haible  <bruno@clisp.org>
2522
2523         strings: Add support for Minix.
2524         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
2525         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2526         * doc/posix-headers/strings.texi: Document the Minix problem.
2527
2528 2011-07-31  Bruno Haible  <bruno@clisp.org>
2529
2530         wctype-h: Add support for Minix.
2531         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
2532         REPLACE_TOWLOWER.
2533         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
2534         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
2535         REPLACE_ISWCNTRL.
2536
2537 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2538
2539         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
2540         This is a performance improvement for 64-bit hosts: it causes the
2541         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
2542
2543 2011-07-31  Bruno Haible  <bruno@clisp.org>
2544
2545         stdioext: Add support for Minix.
2546         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
2547         * lib/fpurge.c (fpurge): Likewise.
2548         * lib/freadahead.c (freadahead): Likewise.
2549         * lib/freadable.c (freadable): Likewise.
2550         * lib/freading.c (freading): Likewise.
2551         * lib/freadptr.c (freadptr): Likewise.
2552         * lib/freadseek.c (freadptrinc): Likewise.
2553         * lib/fseeko.c (rpl_fseeko): Likewise.
2554         * lib/fseterr.c (fseterr): Likewise.
2555         * lib/fwritable.c (fwritable): Likewise.
2556         * lib/fwriting.c (fwriting): Likewise.
2557         * lib/fflush.c (clear_ungetc_buffer): Update comment.
2558         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
2559
2560 2011-07-31  Bruno Haible  <bruno@clisp.org>
2561
2562         errno: Port to Minix.
2563         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
2564         ECONNABORTED are defined.
2565         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
2566         GNULIB_defined_ECONNABORTED): New macros.
2567         * lib/strerror-override.h (strerror_override): Test also
2568         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
2569         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
2570         ECONNABORTED.
2571         * doc/posix-headers/errno.texi: Mention the Minix problem.
2572
2573 2011-07-31  Bruno Haible  <bruno@clisp.org>
2574
2575         Work around declaration collisions on Minix.
2576         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
2577         defined, set REPLACE_MBSINIT.
2578         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
2579         defined, set REPLACE_MBRTOWC.
2580         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
2581         set REPLACE_MBRLEN.
2582         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
2583         defined, set REPLACE_MBSRTOWCS.
2584         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
2585         defined, set REPLACE_WCRTOMB.
2586         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
2587         defined, set REPLACE_WCSRTOMBS.
2588
2589 2011-07-31  Bruno Haible  <bruno@clisp.org>
2590
2591         Add support for Minix with ACK compiler.
2592         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
2593         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
2594         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
2595
2596 2011-07-31  Bruno Haible  <bruno@clisp.org>
2597
2598         Documentation about Minix.
2599         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
2600         * doc/glibc-headers/*.texi: Likewise.
2601         * doc/posix-functions/*.texi: Likewise.
2602         * doc/glibc-functions/*.texi: Likewise.
2603
2604 2011-07-31  Bruno Haible  <bruno@clisp.org>
2605
2606         snippet/warn-on-use: Fix indentation.
2607         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
2608
2609 2011-07-25  Jim Meyering  <meyering@redhat.com>
2610
2611         tests: test-update-copyright.sh: remove unnecessary "rm" commands
2612         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
2613         commands.
2614
2615 2011-07-27  Jim Meyering  <meyering@redhat.com>
2616
2617         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
2618         * top/maint.mk (gl_extract_significant_defines_): Now that
2619         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
2620         gnulib/lib/signal.in.h, and now that we recommend to
2621         define-if-undefined those two symbols in application code,
2622         we must filter them out of the "significant" list.
2623         This avoids a "make syntax-check" failure in coreutils.
2624
2625 2011-07-26  Eric Blake  <eblake@redhat.com>
2626
2627         warnings: add comments about previous patch
2628         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
2629         * m4/include_next.m4: Likewise.
2630         * m4/warn-on-use.m4: Likewise.
2631         * m4/warnings.m4: Likewise, and simplify use.
2632         Suggested by Stefano Lattarini.
2633
2634         include-next, warnings: support older autoconf
2635         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
2636         AS_VAR_PUSHDEF in a way that works with older autoconf.
2637         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
2638         Reported by Daniel P. Berrange.
2639
2640 2011-07-25  Bruno Haible  <bruno@clisp.org>
2641
2642         fseek, ftell: Fix doc.
2643         * doc/posix-functions/fseek.texi: Reword statement about
2644         AC_SYS_LARGEFILE.
2645         * doc/posix-functions/ftell.texi: Likewise.
2646
2647 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2648             Bruno Haible  <bruno@clisp.org>
2649
2650         Add dependencies to the 'largefile' module.
2651         * modules/fopen (Depends-on): Add 'largefile'.
2652         * modules/freopen (Depends-on): Likewise.
2653         * modules/fseeko (Depends-on): Likewise.
2654         * modules/ftello (Depends-on): Likewise.
2655         * modules/glob (Depends-on): Likewise.
2656         * modules/lseek (Depends-on): Likewise.
2657         * modules/lstat (Depends-on): Likewise.
2658         * modules/mkostemp (Depends-on): Likewise.
2659         * modules/mkostemps (Depends-on): Likewise.
2660         * modules/mkstemp (Depends-on): Likewise.
2661         * modules/mkstemps (Depends-on): Likewise.
2662         * modules/open (Depends-on): Likewise.
2663         * modules/openat (Depends-on): Likewise.
2664         * modules/pread (Depends-on): Likewise.
2665         * modules/pwrite (Depends-on): Likewise.
2666         * modules/scandir (Depends-on): Likewise.
2667         * modules/stat (Depends-on): Likewise.
2668         * modules/tmpfile (Depends-on): Likewise.
2669         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2670         since the containing module now depends on the largefile module.
2671         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2672         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2673         off_t is fixed by gnulib.
2674         * doc/posix-functions/freopen.texi: Likewise.
2675         * doc/posix-functions/fseeko.texi: Likewise.
2676         * doc/posix-functions/fstatat.texi: Likewise.
2677         * doc/posix-functions/ftello.texi: Likewise.
2678         * doc/posix-functions/glob.texi: Likewise.
2679         * doc/posix-functions/lseek.texi: Likewise.
2680         * doc/posix-functions/lstat.texi: Likewise.
2681         * doc/posix-functions/mkstemp.texi: Likewise.
2682         * doc/posix-functions/open.texi: Likewise.
2683         * doc/posix-functions/openat.texi: Likewise.
2684         * doc/posix-functions/pread.texi: Likewise.
2685         * doc/posix-functions/pwrite.texi: Likewise.
2686         * doc/posix-functions/scandir.texi: Likewise.
2687         * doc/posix-functions/stat.texi: Likewise.
2688         * doc/posix-functions/tmpfile.texi: Likewise.
2689         * doc/glibc-functions/mkostemp.texi: Likewise.
2690         * doc/glibc-functions/mkostemps.texi: Likewise.
2691         * doc/glibc-functions/mkstemps.texi: Likewise.
2692
2693 2011-07-25  Bruno Haible  <bruno@clisp.org>
2694
2695         fcntl: Move AC_LIBOBJ invocation to module description.
2696         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2697         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2698
2699         fcntl: Remove call-in from fchdir.m4.
2700         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2701         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2702
2703         dup3: Remove potential call-in from fchdir.m4.
2704         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2706
2707         dup2: Move AC_LIBOBJ invocation to module description.
2708         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2709         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2710         Don't invoke AC_LIBOBJ.
2711         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2712
2713         dup2: Remove call-in from fchdir.m4.
2714         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2716
2717         fclose: Move AC_LIBOBJ invocation to module description.
2718         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2719         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2720         to 1.
2721         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2722
2723         fclose: Remove call-in from close.m4.
2724         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2725         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2726
2727         close: Move AC_LIBOBJ invocation to module description.
2728         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2729         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2730         1.
2731         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2732
2733         close: Remove call-in from fchdir.m4.
2734         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2736
2737         open: Move AC_LIBOBJ invocation to module description.
2738         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2739         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2740         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2741
2742         open: Remove call-in from fchdir.m4.
2743         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2745
2746         fchdir: Start to remove gl_REPLACE_* idiom.
2747         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2748         (gl_FUNC_FCHDIR): Invoke it.
2749
2750 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2751
2752         * lib/ftell.c (ftell): Comment out cast.
2753
2754         close: use gl_REPLACE_FCLOSE only if defined
2755         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2756         is defined.  The close module doesn't depend on the fclose module
2757         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2759         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2760
2761 2011-07-24  Jim Meyering  <meyering@redhat.com>
2762
2763         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2764         * tests/test-select.h (test_function): Declare as "static".
2765
2766 2011-07-24  Bruno Haible  <bruno@clisp.org>
2767
2768         doc: Mention the effects of AC_SYS_LARGEFILE.
2769         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2770         on this function.
2771         * doc/posix-functions/aio_error.texi: Likewise.
2772         * doc/posix-functions/aio_fsync.texi: Likewise.
2773         * doc/posix-functions/aio_read.texi: Likewise.
2774         * doc/posix-functions/aio_return.texi: Likewise.
2775         * doc/posix-functions/aio_suspend.texi: Likewise.
2776         * doc/posix-functions/aio_write.texi: Likewise.
2777         * doc/posix-functions/fgetpos.texi: Likewise.
2778         * doc/posix-functions/fopen.texi: Likewise.
2779         * doc/posix-functions/freopen.texi: Likewise.
2780         * doc/posix-functions/fsetpos.texi: Likewise.
2781         * doc/posix-functions/fstatvfs.texi: Likewise.
2782         * doc/posix-functions/ftruncate.texi: Likewise.
2783         * doc/posix-functions/ftw.texi: Likewise.
2784         * doc/posix-functions/getrlimit.texi: Likewise.
2785         * doc/posix-functions/glob.texi: Likewise.
2786         * doc/posix-functions/lio_listio.texi: Likewise.
2787         * doc/posix-functions/lockf.texi: Likewise.
2788         * doc/posix-functions/mkstemp.texi: Likewise.
2789         * doc/posix-functions/mmap.texi: Likewise.
2790         * doc/posix-functions/nftw.texi: Likewise.
2791         * doc/posix-functions/openat.texi: Likewise.
2792         * doc/posix-functions/opendir.texi: Likewise.
2793         * doc/posix-functions/posix_fadvise.texi: Likewise.
2794         * doc/posix-functions/posix_fallocate.texi: Likewise.
2795         * doc/posix-functions/pread.texi: Likewise.
2796         * doc/posix-functions/pwrite.texi: Likewise.
2797         * doc/posix-functions/readdir.texi: Likewise.
2798         * doc/posix-functions/readdir_r.texi: Likewise.
2799         * doc/posix-functions/rewinddir.texi: Likewise.
2800         * doc/posix-functions/scandir.texi: Likewise.
2801         * doc/posix-functions/seekdir.texi: Likewise.
2802         * doc/posix-functions/setrlimit.texi: Likewise.
2803         * doc/posix-functions/statvfs.texi: Likewise.
2804         * doc/posix-functions/telldir.texi: Likewise.
2805         * doc/posix-functions/tmpfile.texi: Likewise.
2806         * doc/posix-functions/truncate.texi: Likewise.
2807         * doc/glibc-functions/fallocate.texi: Likewise.
2808         * doc/glibc-functions/fstatfs.texi: Likewise.
2809         * doc/glibc-functions/fts_children.texi: Likewise.
2810         * doc/glibc-functions/fts_read.texi: Likewise.
2811         * doc/glibc-functions/getdirentries.texi: Likewise.
2812         * doc/glibc-functions/mkostemp.texi: Likewise.
2813         * doc/glibc-functions/mkostemps.texi: Likewise.
2814         * doc/glibc-functions/mkstemps.texi: Likewise.
2815         * doc/glibc-functions/preadv.texi: Likewise.
2816         * doc/glibc-functions/pwritev.texi: Likewise.
2817         * doc/glibc-functions/sendfile.texi: Likewise.
2818         * doc/glibc-functions/statfs.texi: Likewise.
2819
2820 2011-07-24  Bruno Haible  <bruno@clisp.org>
2821
2822         doc: Fix typo.
2823         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2824
2825 2011-07-24  Bruno Haible  <bruno@clisp.org>
2826
2827         doc: Mention fsusage.
2828         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2829
2830 2011-07-24  Bruno Haible  <bruno@clisp.org>
2831
2832         doc: Mention new glibc headers and functions.
2833         * doc/glibc-headers/gshadow.texi: New file.
2834         * doc/glibc-functions/endsgent.texi: New file.
2835         * doc/glibc-functions/fgetsgent.texi: New file.
2836         * doc/glibc-functions/fgetsgent_r.texi: New file.
2837         * doc/glibc-functions/getsgent.texi: New file.
2838         * doc/glibc-functions/getsgent_r.texi: New file.
2839         * doc/glibc-functions/getsgnam.texi: New file.
2840         * doc/glibc-functions/getsgnam_r.texi: New file.
2841         * doc/glibc-functions/putsgent.texi: New file.
2842         * doc/glibc-functions/setsgent.texi: New file.
2843         * doc/glibc-functions/sgetsgent.texi: New file.
2844         * doc/glibc-functions/sgetsgent_r.texi: New file.
2845         * doc/glibc-functions/malloc_info.texi: New file.
2846         * doc/glibc-functions/preadv.texi: New file.
2847         * doc/glibc-functions/pwritev.texi: New file.
2848         * doc/glibc-functions/register_printf_modifier.texi: New file.
2849         * doc/glibc-functions/register_printf_specifier.texi: New file.
2850         * doc/glibc-functions/register_printf_type.texi: New file.
2851         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2852         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2853         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2854         * doc/glibc-functions/pthread_getname_np.texi: New file.
2855         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2856         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2857         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2858         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2859         * doc/glibc-functions/pthread_setname_np.texi: New file.
2860         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2861         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2862         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2863         * doc/glibc-functions/qsort_r.texi: New file.
2864         * doc/glibc-functions/quick_exit.texi: New file.
2865         * doc/glibc-functions/syncfs.texi: New file.
2866         * doc/gnulib.texi: Include them.
2867         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2868         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2869         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2870         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2871         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2872         * doc/glibc-functions/execvpe.texi: Likewise.
2873
2874 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2875
2876         ftell: don't include <unistd.h>
2877         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2878         guaranteed to define off_t, and the ftell module depends on the
2879         stdio module.
2880
2881         ftell: do not assume wraparound signed arithmetic
2882         * lib/ftell.c: Include <limits.h>.
2883         (ftell): Don't assume wraparound signed arithmetic.
2884
2885 2011-07-24  Bruno Haible  <bruno@clisp.org>
2886
2887         close: No longer depend on module 'fclose'.
2888         * modules/close (Depends-on): Remove fclose.
2889         * NEWS: Mention the change.
2890         Suggested by Sam Steingold <sds@gnu.org>.
2891
2892 2011-07-24  Bruno Haible  <bruno@clisp.org>
2893
2894         fsusage: Enable large volume support on AIX >= 5.2.
2895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2896         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2897         instead of STAT_STATVFS.
2898         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2899
2900         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2902         f_blocks field only on MacOS X.
2903
2904         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2905         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2906         * modules/fsusage (Depends-on): Add largefile.
2907
2908 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2909
2910         * README: Modernize discussion of signed integers.
2911         Assuming overflow wraparound is no longer safe.
2912         Mention ones' complement and signed magnitude.
2913
2914 2011-07-22  Bruno Haible  <bruno@clisp.org>
2915
2916         select tests, pselect tests: Refactor.
2917         * tests/test-select.h: New file, extracted from tests/test-select.c.
2918         (select_fn): New type.
2919         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2920         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2921         test_pipe): Add my_select argument.
2922         (test_function): Renamed from main. Add my_select argument.
2923         * tests/test-select.c: Move most code to tests/test-select.h. Include
2924         test-select.h.
2925         * modules/select-tests (Files): Add tests/test-select.h.
2926         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2927         (my_select, main): New functions.
2928         * modules/pselect-tests (Files): Add tests/test-select.h,
2929         tests/macros.h, tests/signature.h.
2930         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2931         (configure.ac): Check for <sys/wait.h>.
2932
2933 2011-07-22  Bruno Haible  <bruno@clisp.org>
2934
2935         sys_select tests: Check the signature of FD_*.
2936         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2937         signature tests from here...
2938         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2939         here.
2940         * modules/sys_select-tests (Files): Add tests/signature.h.
2941
2942 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2943
2944         largefile: new module, replacing large-inode
2945         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2946         * MODULES.html.sh: Add largefile, remove large-inode.
2947         * modules/largefile, m4/largefile.m4: New files.
2948         * modules/large-inode, m4/large-inode.m4: Remove.
2949
2950         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2951         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2952         implementations that use only 32 bits to count blocks.
2953         On typical hosts with 1024-byte blocks, this fails with file
2954         systems as small as 4 TiB.  Problem reported by Herb Wartens
2955         <http://debbugs.gnu.org/9140> and this should also fix a similar
2956         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2957
2958         large-inode: New module
2959         * MODULES.html.sh: Add it.
2960         * modules/large-inode, m4/large-inode.m4: New files.
2961
2962         extensions: Enable extensions on MacOS X 10.5 and later.
2963         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2964
2965 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2966
2967         file-has-acl: use acl_extended_file_nofollow if available
2968         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2969         (acl_extended_file): New macro.
2970         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2971         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2972
2973 2011-07-21  Bruno Haible  <bruno@clisp.org>
2974
2975         Declare system functions in a way that works with C++.
2976         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2977         declare fdopendir as extern "C".
2978         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2979         declare frexpl as extern "C".
2980         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2981         declare gai_strerror as extern "C".
2982         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2983         programs, declare gai_strerror as extern "C".
2984         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2985         declare getlogin_r as extern "C".
2986         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2987         as extern "C".
2988         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2989         declare ldexpl as extern "C".
2990         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2991         as extern "C".
2992         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2993         program, declare getmntinfo as extern "C".
2994         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2995         stpncpy as extern "C".
2996         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2997         program, declare __xpg_strerror_r as extern "C".
2998         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2999         strndup as extern "C".
3000         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
3001         declare memset and bzero as extern "C".
3002         Reported by Sam Steingold <sds@gnu.org>.
3003
3004 2011-07-12  Jim Meyering  <meyering@redhat.com>
3005
3006         maint.mk: prohibit inclusion of "verify.h" without use
3007         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
3008
3009 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3010
3011         timer-time: A new module to check for timer_settime()
3012         * m4/timer_time.m4: Check for the posix function.
3013         * modules/timer-time: Add the new module.
3014         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
3015         Mention it.
3016
3017 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
3018             Bruno Haible  <bruno@clisp.org>
3019
3020         pthread_sigmask: assume POSIX threads if --avoid=threadlib
3021         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
3022         not defined, assume POSIX threads and look for pthread_sigmask in
3023         $LIBS, without changing $CPPFLAGS.
3024
3025 2011-07-19  Bruno Haible  <bruno@clisp.org>
3026
3027         strstr: Update cross-compilation guess.
3028         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
3029         CPUs, guess no, in view of glibc
3030         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
3031         Suggested by Eric Blake. Reported by Reuben Thomas.
3032
3033 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3034
3035         getopt-gnu: suppress core dumps from detection code
3036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
3037         to suppress core dumps that may well occur on glibc systems.
3038         * modules/getopt-gnu: Depend on nocrash.
3039
3040 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3041
3042         pthread_sigmask: ensure usleep is declared
3043         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
3044         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
3045
3046 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3047
3048         doc: Document NonStop portability issues.
3049         * doc/posix-functions/sigaction.texi (sigaction):
3050         * doc/posix-headers/signal.texi (signal.h):
3051         Document NonStop.  See Joachim Schmitz in
3052         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
3053
3054 2011-07-15  Bruno Haible  <bruno@clisp.org>
3055
3056         ffsl, ffsll: Avoid unportable behaviour.
3057         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
3058
3059 2011-07-15  Bruno Haible  <bruno@clisp.org>
3060
3061         ffs: More tests.
3062         * tests/test-ffs.c (NBITS): New macro.
3063         (main): Add more tests.
3064         * tests/test-ffsl.c (NBITS): New macro.
3065         (main): Add more tests.
3066         * tests/test-ffsll.c (NBITS): New macro.
3067         (main): Add more tests.
3068
3069 2011-07-15  Eric Blake  <eblake@redhat.com>
3070
3071         ffsl, ffsll: new modules
3072         * modules/ffsl: New file.
3073         * modules/ffsll: Likewise.
3074         * m4/ffsl.m4: Likewise.
3075         * m4/ffsll.m4: Likewise.
3076         * lib/ffsl.c: Likewise.
3077         * lib/ffsl.h: Likewise.
3078         * lib/ffsll.c: Likewise.
3079         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
3080         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
3081         * modules/string (Makefile.am): Substitute witnesses.
3082         * lib/strings.in.h (ffsl, ffsll): Declare.
3083         * modules/ffsl-tests: New test file.
3084         * modules/ffsll-tests: Likewise.
3085         * tests/test-ffsl.c: Likewise.
3086         * tests/test-ffsll.c: Likewise.
3087         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3088         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
3089         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
3090
3091         ffs: fix m4 prerequisite
3092         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
3093
3094         ffs: avoid undefined behavior
3095         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
3096         * tests/test-ffs.c (naive, main): Avoid signed shifts.
3097         Reported by Bruno Haible.
3098
3099 2011-07-12  Bruno Haible  <bruno@clisp.org>
3100
3101         pthread_sigmask: Rely on module 'threadlib'.
3102         * modules/pthread_sigmask (Depends-on): Add threadlib.
3103         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
3104         is defined.
3105
3106 2011-07-12  Bruno Haible  <bruno@clisp.org>
3107
3108         regex: Depend on module 'strcase'.
3109         * modules/regex (Depends-on): Add strcase, for strcasecmp().
3110
3111 2011-07-12  Jim Meyering  <meyering@redhat.com>
3112
3113         warn-on-use: fix typo in file name
3114         * modules/snippet/warn-on-use (Files): Correct file name:
3115         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
3116
3117 2011-07-12  Bruno Haible  <bruno@clisp.org>
3118
3119         strings: Document module.
3120         * doc/posix-headers/strings.texi: Mention module 'strings'.
3121
3122 2011-07-12  Bruno Haible  <bruno@clisp.org>
3123
3124         Rename module '_Noreturn' to 'snippet/_Noreturn'.
3125         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
3126         (Files, Makefile.am): Update.
3127         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
3128         * modules/stdlib (Depends-on): Update.
3129
3130 2011-07-12  Bruno Haible  <bruno@clisp.org>
3131
3132         * NEWS: Mention the changes.
3133
3134         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
3135         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
3136         (Files, Makefile.am): Update.
3137         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
3138         * modules/arpa_inet (Depends-on): Update.
3139         * modules/ctype (Depends-on): Update.
3140         * modules/dirent (Depends-on): Update.
3141         * modules/fcntl-h (Depends-on): Update.
3142         * modules/glob (Depends-on): Update.
3143         * modules/iconv-h (Depends-on): Update.
3144         * modules/inttypes-incomplete (Depends-on): Update.
3145         * modules/langinfo (Depends-on): Update.
3146         * modules/locale (Depends-on): Update.
3147         * modules/math (Depends-on): Update.
3148         * modules/netdb (Depends-on): Update.
3149         * modules/poll-h (Depends-on): Update.
3150         * modules/pty (Depends-on): Update.
3151         * modules/search (Depends-on): Update.
3152         * modules/signal (Depends-on): Update.
3153         * modules/spawn (Depends-on): Update.
3154         * modules/stdio (Depends-on): Update.
3155         * modules/stdlib (Depends-on): Update.
3156         * modules/string (Depends-on): Update.
3157         * modules/strings (Depends-on): Update.
3158         * modules/sys_file (Depends-on): Update.
3159         * modules/sys_ioctl (Depends-on): Update.
3160         * modules/sys_select (Depends-on): Update.
3161         * modules/sys_socket (Depends-on): Update.
3162         * modules/sys_stat (Depends-on): Update.
3163         * modules/sys_time (Depends-on): Update.
3164         * modules/sys_times (Depends-on): Update.
3165         * modules/sys_utsname (Depends-on): Update.
3166         * modules/sys_wait (Depends-on): Update.
3167         * modules/termios (Depends-on): Update.
3168         * modules/time (Depends-on): Update.
3169         * modules/unistd (Depends-on): Update.
3170         * modules/wchar (Depends-on): Update.
3171         * modules/wctype-h (Depends-on): Update.
3172         * MODULES.html.sh (Support for building libraries and executables):
3173         Update.
3174
3175         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
3176         * modules/snippet/unused-parameter: Renamed from
3177         modules/unused-parameter.
3178         (Files, Makefile.am): Update.
3179         * build-aux/snippet/unused-parameter.h: Renamed from
3180         build-aux/unused-parameter.h.
3181         * modules/selinux-h (Depends-on): Update.
3182         * modules/unistr/base (Depends-on): Update.
3183         * MODULES.html.sh (Core language properties): Update.
3184
3185         Rename module 'link-warning' to 'snippet/link-warning'.
3186         * modules/snippet/link-warning: Renamed from modules/link-warning.
3187         (Files, Makefile.am): Update.
3188         * build-aux/snippet/link-warning.h: Renamed from
3189         build-aux/link-warning.h.
3190         * MODULES.html.sh (Support for building libraries and executables):
3191         Update.
3192
3193         Rename module 'c++defs' to 'snippet/c++defs'.
3194         * modules/snippet/c++defs: Renamed from modules/c++defs.
3195         (Files, Makefile.am): Update.
3196         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
3197         * modules/arpa_inet (Depends-on): Update.
3198         * modules/ctype (Depends-on): Update.
3199         * modules/dirent (Depends-on): Update.
3200         * modules/fcntl-h (Depends-on): Update.
3201         * modules/glob (Depends-on): Update.
3202         * modules/iconv-h (Depends-on): Update.
3203         * modules/langinfo (Depends-on): Update.
3204         * modules/locale (Depends-on): Update.
3205         * modules/math (Depends-on): Update.
3206         * modules/netdb (Depends-on): Update.
3207         * modules/poll-h (Depends-on): Update.
3208         * modules/pty (Depends-on): Update.
3209         * modules/search (Depends-on): Update.
3210         * modules/signal (Depends-on): Update.
3211         * modules/spawn (Depends-on): Update.
3212         * modules/stdio (Depends-on): Update.
3213         * modules/stdlib (Depends-on): Update.
3214         * modules/string (Depends-on): Update.
3215         * modules/strings (Depends-on): Update.
3216         * modules/sys_ioctl (Depends-on): Update.
3217         * modules/sys_select (Depends-on): Update.
3218         * modules/sys_socket (Depends-on): Update.
3219         * modules/sys_stat (Depends-on): Update.
3220         * modules/sys_time (Depends-on): Update.
3221         * modules/sys_wait (Depends-on): Update.
3222         * modules/termios (Depends-on): Update.
3223         * modules/time (Depends-on): Update.
3224         * modules/unistd (Depends-on): Update.
3225         * modules/wchar (Depends-on): Update.
3226         * modules/wctype-h (Depends-on): Update.
3227
3228         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
3229         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
3230         (Files, Makefile.am): Update.
3231         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
3232         * modules/argv-iter (Depends-on): Update.
3233         * modules/arpa_inet (Depends-on): Update.
3234         * modules/dirent (Depends-on): Update.
3235         * modules/fcntl-h (Depends-on): Update.
3236         * modules/fnmatch (Depends-on): Update.
3237         * modules/getopt-posix (Depends-on): Update.
3238         * modules/glob (Depends-on): Update.
3239         * modules/iconv-h (Depends-on): Update.
3240         * modules/inttypes-incomplete (Depends-on): Update.
3241         * modules/locale (Depends-on): Update.
3242         * modules/math (Depends-on): Update.
3243         * modules/netdb (Depends-on): Update.
3244         * modules/search (Depends-on): Update.
3245         * modules/signal (Depends-on): Update.
3246         * modules/spawn (Depends-on): Update.
3247         * modules/stdio (Depends-on): Update.
3248         * modules/stdlib (Depends-on): Update.
3249         * modules/string (Depends-on): Update.
3250         * modules/strings (Depends-on): Update.
3251         * modules/sys_socket (Depends-on): Update.
3252         * modules/sys_stat (Depends-on): Update.
3253         * modules/sys_time (Depends-on): Update.
3254         * modules/sys_times (Depends-on): Update.
3255         * modules/sys_utsname (Depends-on): Update.
3256         * modules/time (Depends-on): Update.
3257         * modules/unistd (Depends-on): Update.
3258         * modules/wchar (Depends-on): Update.
3259         * MODULES.html.sh (Support for building libraries and executables):
3260         Update.
3261
3262 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         Improvements on _Noreturn and related modules.
3265
3266         modules/_Exit-tests: test _Noreturn too
3267         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
3268         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
3269         (main): Use them.
3270
3271         stdnoreturn, stdnoreturn-tests: remove modules
3272         They're not needed here and a bit premature for use elsewhere.  See
3273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
3274         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3275         * tests/test-stdnoreturn.c: Remove files.
3276         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
3277         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
3278         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
3279         and using noreturn.
3280         * modules/openat, modules/sigpipe-die, modules/xalloc:
3281         * modules/xmemdup0, modules/xstrtol:
3282         Remove dependency on stdnoreturn.
3283
3284         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
3285         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
3286         Reparenthesize to avoid GCC warning.
3287         Support Microsoft's syntax.
3288         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
3289
3290         _Noreturn-tests: remove module
3291         * modules/_Noreturn-tests: Remove.
3292         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
3293         * tests/test-_Noreturn.c: Remove.
3294         * tests/test-stdnoreturn.c: Merge from the old
3295         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
3296
3297 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3298
3299         _Noreturn, stdnoreturn, and related modules.
3300
3301         * top/maint.mk: Adjust to new noreturn support.
3302         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
3303         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
3304
3305         xalloc: use stdnoreturn.h
3306         * lib/xalloc.h: Include <stdnoreturn.h>.
3307         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3308         * modules/xalloc (Depends-on): Add stdnoreturn.
3309
3310         xstrtol: use stdnoreturn.h
3311         * lib/xstrtol.h: Include <stdnoreturn.h>.
3312         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3313         * modules/xstrtol (Depends-on): Add stdnoreturn.
3314
3315         xmemdup0: use stdnoreturn.h
3316         * lib/xmemdup0.h: Include <stdnoreturn.h>.
3317         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3318         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
3319
3320         sigpipe-die: use stdnoreturn.h
3321         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
3322         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3323         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
3324
3325         openat: use stdnoreturn.h
3326         * lib/openat.h: Include <stdnoreturn.h>.
3327         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3328         * modules/openat (Depends-on): Add stdnoreturn.
3329
3330         * lib/openat-die.c (openat_save_fail): Modernize comment.
3331
3332         * lib/xalloc-die.c (xalloc_die): Modernize comment.
3333
3334         * lib/glthread/thread.h: Modernize comment.
3335
3336         obstack: use _Noreturn
3337         * lib/obstack.c (__attribute__): Remove macro.
3338         (print_and_abort): Use _Noreturn.
3339
3340         c-stack: use _Noreturn
3341         * lib/c-stack.c (die, overflow_handler, segv_handler):
3342         Use _Noreturn rather than __attribute__((noreturn)).
3343
3344         argmatch-tests, exclude_tests: use _Noreturn
3345         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
3346         Remove.
3347         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
3348
3349         stdlib: use _Noreturn
3350         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
3351         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
3352         * modules/stdlib (Depends-on): Add _Noreturn.
3353         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
3354
3355         stdnoreturn-tests: new module
3356         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
3357
3358         stdnoreturn: new module
3359         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
3360         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
3361
3362         _Noreturn-tests: new module
3363         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
3364
3365         _Noreturn: new module
3366         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
3367         New section, mentioning it.
3368         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
3369
3370         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
3371
3372 2011-07-11  Eric Blake  <eblake@redhat.com>
3373
3374         ffs: new module
3375         * modules/ffs: New file.
3376         * m4/ffs.m4: Likewise.
3377         * lib/ffs.c: Likewise.
3378         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
3379         * modules/strings (Makefile.am): Substitute witness.
3380         (Depends-on): Add c++defs.
3381         * lib/strings.in.h (ffs): Declare.
3382         * modules/ffs-tests: New test file.
3383         * tests/test-ffs.c: Test new module.
3384         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3385         * doc/posix-functions/ffs.texi (ffs): Likewise.
3386
3387         regex: avoid compiler warning
3388         * lib/regex.c (includes): Include <strings.h>, for use of
3389         strcasecmp in regcomp.c.
3390         Reported by Joachim Schmitz.
3391
3392 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3393
3394         stdint: respect system's intmax_t if INTMAX_MAX
3395         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
3396         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
3397         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
3398         long but int64_t is long long, and where we will clash with the
3399         system intmax_t if we override it.  See
3400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
3401         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
3402         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
3403         similarly for UINTMAX_C.
3404
3405 2011-07-08  Bruno Haible  <bruno@clisp.org>
3406
3407         pthread_sigmask tests: Avoid a compiler warning.
3408         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
3409         non-zero.
3410
3411         sigprocmask tests: A better way to avoid a compiler warning.
3412         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
3413         (main): Complain if system() returns non-zero.
3414         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
3415
3416 2011-07-08  Bruno Haible  <bruno@clisp.org>
3417
3418         pthread_sigmask: Work around IRIX bug.
3419         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
3420         bug.
3421         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
3422         there may be unblocked pending signals.
3423         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
3424
3425 2011-07-08  Bruno Haible  <bruno@clisp.org>
3426
3427         pthread_sigmask: Work around Cygwin bug.
3428         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
3429         bug.
3430         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
3431         the system's pthread_sigmask function.
3432         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
3433
3434 2011-07-08  Bruno Haible  <bruno@clisp.org>
3435
3436         pthread_sigmask: Work around bug in single-threaded implementation.
3437         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
3438         FreeBSD, HP-UX, Solaris bug.
3439         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
3440         * lib/pthread_sigmask.c: Include <stddef.h>.
3441         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
3442         the system's pthread_sigmask function.
3443         * modules/pthread_sigmask (configure.ac): Invoke
3444         gl_PREREQ_PTHREAD_SIGMASK.
3445         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
3446         HP-UX, Solaris.
3447
3448 2011-07-08  Eric Blake  <eblake@redhat.com>
3449
3450         test-sigprocmask: avoid compiler warning
3451         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
3452         * tests/test-sigprocmask.c (main): Use it to silence warning.
3453         Reported by Jim Meyering.
3454
3455         test-snprintf: avoid compiler warning
3456         * tests/test-snprintf.c (main): Avoid shadowed declaration.
3457         * tests/test-vsnprintf.c (main): Likewise.
3458         Reported by Jim Meyering.
3459
3460 2011-07-08  Bruno Haible  <bruno@clisp.org>
3461
3462         Tests for module 'pthread_sigmask'.
3463         * modules/pthread_sigmask-tests: New file.
3464         * tests/test-pthread_sigmask1.c: New file, based on
3465         tests/test-sigprocmask.c.
3466         * tests/test-pthread_sigmask2.c: New file.
3467
3468 2011-07-08  Jim Meyering  <meyering@redhat.com>
3469
3470         test-getopt.h: avoid warning about an unused variable
3471         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
3472
3473 2011-07-07  Jim Meyering  <meyering@redhat.com>
3474
3475         maint: reduce list of files exempt from sc_prohibit_leading_TABs
3476         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
3477         now that it no longer contains leading TABs.
3478         Remove unused "url=FIXME" statement.
3479
3480 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3481
3482         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
3483         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3484         When gl_THREADLIB is not in use, assume that the POSIX sematics
3485         are desired.  This is better for Emacs, which uses POSIX semantics
3486         on GNUish and/or POSIXish platforms, and does not use threads at
3487         all otherwise.
3488
3489         pthread_sigmask: fix typo when testing for libraries
3490         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3491         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
3492
3493 2011-07-08  Eric Blake  <eblake@redhat.com>
3494
3495         fts: introduce FTS_NOATIME
3496         * lib/fts_.h (FTS_NOATIME): New bit flag.
3497         (FTS_OPTIONMASK): Adjust.
3498         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
3499         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
3500
3501 2011-07-08  Bruno Haible  <bruno@clisp.org>
3502
3503         Tests for module 'thread'.
3504         * modules/thread-tests: New file.
3505         * tests/test-thread_self.c: New file.
3506         * tests/test-thread_create.cc: New file.
3507
3508 2011-07-08  Bruno Haible  <bruno@clisp.org>
3509
3510         thread: Avoid gcc warnings when using gl_thread_self().
3511         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
3512         'void *'.
3513         (gl_thread_self_pointer): Update.
3514
3515 2011-07-07  Bruno Haible  <bruno@clisp.org>
3516
3517         signal-c++-tests: Check declaration of pthread_sigmask.
3518         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
3519         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
3520         $(LIB_PTHREAD_SIGMASK).
3521
3522 2011-07-07  Bruno Haible  <bruno@clisp.org>
3523
3524         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
3525         * lib/signal.in.h (pthread_sigmask): Override if
3526         REPLACE_PTHREAD_SIGMASK is 1.
3527         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3528         REPLACE_PTHREAD_SIGMASK.
3529         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
3530         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
3531         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
3532         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3533         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
3534
3535 2011-07-07  Bruno Haible  <bruno@clisp.org>
3536
3537         pthread_sigmask: Ensure declaration in <signal.h>.
3538         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
3539         include <pthread.h>.
3540         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
3541         problem.
3542
3543 2011-07-07  Bruno Haible  <bruno@clisp.org>
3544
3545         pthread_sigmask: Document the module.
3546         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
3547
3548 2011-07-07  Bruno Haible  <bruno@clisp.org>
3549
3550         pthread_sigmask: Follow gnulib conventions.
3551         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
3552         gl_PTHREAD_SIGMASK.
3553         * modules/pthread_sigmask (configure.ac): Update.
3554
3555 2011-07-07  Bruno Haible  <bruno@clisp.org>
3556
3557         pthread_sigmask: Make declaration C++ safe.
3558         * lib/signal.in.h: In two special conditions, just do an #include_next.
3559         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3560         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
3561         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3562         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3563         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
3564         not REPLACE_PTHREAD_MASK.
3565         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
3566         not REPLACE_PTHREAD_MASK.
3567         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3568
3569 2011-07-07  Bruno Haible  <bruno@clisp.org>
3570
3571         pthread_sigmask: Fix return value.
3572         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
3573         * lib/pthread_sigmask.c: New file.
3574         * modules/pthread_sigmask (Files): Add it.
3575         (configure.ac): Invoke AC_LIBOBJ.
3576
3577 2011-07-07  Eric Blake  <eblake@redhat.com>
3578
3579         getopt: more portable argv creation
3580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
3581         const, use char arrays rather than strings.
3582         Suggested by Paul Eggert.
3583
3584 2011-07-07  Bruno Haible  <bruno@clisp.org>
3585
3586         Tests for module 'sigprocmask'.
3587         * modules/sigprocmask-tests: New file.
3588         * tests/test-sigprocmask.c: New file.
3589
3590 2011-07-07  Bruno Haible  <bruno@clisp.org>
3591
3592         float tests: Tweak.
3593         * tests/test-float.c (main): Tweak skip message.
3594
3595 2011-07-07  Eric Blake  <eblake@redhat.com>
3596
3597         getopt: avoid compiler warning during configure
3598         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
3599         assigning string literals to non-const pointer.
3600
3601         getopt-gnu: avoid crash in glibc getopt
3602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
3603         * tests/test-getopt.h (test_getopt): Enhance test.
3604         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3605         * doc/posix-functions/getopt.texi (getopt): Document it.
3606         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3607         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3608         Likewise.
3609
3610 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3611
3612         getopt: handle W; without long options in getopt [BZ #12922]
3613         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
3614         but no long options are defined, just return 'W'.
3615
3616 2011-07-07  Bruno Haible  <bruno@clisp.org>
3617
3618         Avoid literal tabs.
3619         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
3620         variable containing a tab instead of a literal tab.
3621         Reported by Jim Meyering.
3622
3623 2011-07-07  Bruno Haible  <bruno@clisp.org>
3624
3625         Comments.
3626         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
3627
3628 2011-07-06  Bruno Haible  <bruno@clisp.org>
3629
3630         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
3631         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
3632         <winsock2.h>.
3633         (rpl_fd_isset, FD_ISSET): New definitions, copied from
3634         lib/sys_socket.in.h.
3635         (close, gethostname): Hide declarations from <winsock2.h>.
3636         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3637         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
3638         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
3639         (select): Don't override if gnulib's <sys/select.h> was already
3640         included.
3641         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3642         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3643         setsockopt, shutdown, select): Tweak indentation.
3644
3645 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3646
3647         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
3648         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
3649         in an application that does not use the sys_select module.
3650
3651 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
3652
3653         poll: do not return 0 on timeout=-1
3654         * lib/poll.c: Loop with yield if no events occured
3655
3656 2011-07-06  Eric Blake  <eblake@redhat.com>
3657
3658         pthread_sigmask: always replace when not using pthread
3659         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
3660         replacement when using some threading other than pthread.  Fix
3661         logic bug.
3662
3663 2011-07-06  Bruno Haible  <bruno@clisp.org>
3664
3665         Comments.
3666         * m4/printf.m4: Update comments about mingw.
3667
3668 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3669
3670         sys_select: define sigset_t more portably
3671         * lib/sys_select.in.h: Always include <sys/types.h>, since
3672         we now need sigset_t and mingw defines it there.
3673         Include <signal.h> before split inclusion guard, to avoid
3674         mishaps on Solaris, whose <signal.h> eventually includes us.
3675         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3676         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3677         which come from ...
3678         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3679         gl_CHECK_TYPE_SIGSET_T.
3680         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3681         does the real work.
3682         * modules/sys_select (Depends-on): Add 'signal'.
3683
3684         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3685         Suggested by Bruno Haible.
3686
3687         pselect: Use pthread_sigmask, not sigprocmask.
3688         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3689         multithreaded apps better than sigprocmask does.
3690         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3691         sigprocmask directly.
3692
3693 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3694
3695         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3696         Don't #undef,  since we don't need any underlying pselect.
3697         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3698         (Depends-on): Add select.
3699         (Link): Add $(LIBSOCKET).
3700         These changes suggested by Bruno Haible.
3701
3702         pselect: document better
3703         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3704         * doc/posix-functions/pselect.texi (pselect): Document new module.
3705
3706         pthread_sigmask: new module
3707         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3708         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3709         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3710         This is done only as a macro; I don't know how well that'll
3711         work for C++.  Move <sys/types.h> include before the include_next,
3712         to avoid mishap on Solaris.
3713         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3714         * modules/signal (Makefile.am): Substitute the check's results.
3715         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3716
3717         test-pselect: new module
3718         * modules/pselect-tests, tests/test-pselect.c: New files.
3719         * tests/test-select.c, tests/test-sys_select-c++.cc:
3720         If TEST_PSELECT is defined, test pselect instead of testing select.
3721
3722         * tests/test-sys_select.c (sigset_t): Test for it, too.
3723         Suggested by Bruno Haible.
3724
3725 2011-07-05  Eric Blake  <eblake@redhat.com>
3726
3727         snprintf: guarantee %1$d, for libintl
3728         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3729         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3730         * doc/posix-functions/snprintf.texi (snprintf): Update.
3731         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3732         * tests/test-snprintf.c (main): Enhance test.
3733         * tests/test-vsnprintf.c (main): Likewise.
3734
3735 2011-07-05  Jim Meyering  <meyering@redhat.com>
3736
3737         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3738         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3739         per Bruno's request, to accommodate this idiom (no space after "#")
3740         even when the function is inside an #if block:
3741         char *
3742         gets (char *s)
3743         #undef gets
3744         {
3745           ...
3746         }
3747
3748 2011-07-04  Jim Meyering  <meyering@redhat.com>
3749
3750         maint: indent with spaces, not TABs, and add a rule to check this
3751         * tests/test-userspec.c: Indent with spaces, not TABs.
3752         * tests/test-argp.c: Likewise.
3753         * tests/test-c-stack2.sh: Likewise.
3754         * tests/test-parse-duration.sh: Likewise
3755         * m4/strtod.m4: Likewise.
3756         * m4/alloca.m4: Likewise.
3757         * m4/pselect.m4: Likewise.
3758         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3759
3760 2011-07-03  Jim Meyering  <meyering@redhat.com>
3761
3762         maint.mk: correct omissions in prohibit_argmatch_without_use check
3763         This rule would mistakenly report that argmatch.h is included without
3764         use even when both the argmatch and invalid_arg macro were used.
3765         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3766         of argmatch and invalid_arg.
3767
3768 2011-07-03  Bruno Haible  <bruno@clisp.org>
3769
3770         Comments about EINTR.
3771         * lib/safe-read.h: Explain the purpose of this module.
3772         * lib/safe-write.h: Likewise.
3773         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3774         module.
3775         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3776         module.
3777         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3778
3779 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3780
3781         xnanosleep: Rewrite to use new dtotimespec module.
3782         It has the conversion code that used to be in xnanosleep.
3783         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3784         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3785         (TIME_T_MAX): Remove.
3786         (xnanosleep): Rewrite in terms of dtotimespec.
3787         * modules/xnanosleep (Depends-on): Add dtotimespec.
3788         Remove intprops, stdbool.
3789
3790         timespec-add, timespec-sub: new modules
3791         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3792         * lib/timespec-add.c, lib/timespec-sub.c:
3793         * modules/timespec-add, modules/timespec-sub: New files.
3794
3795         dtotimespec: new module
3796         * lib/timespec.h (dtotimespec): New decl.
3797         * lib/dtotimespec.c, modules/dtotimespec: New files.
3798
3799         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3800
3801         pselect: new module
3802         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3803         (pselect): New decls.
3804         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3805         since the standard pselect decl uses 'restrict'.
3806         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3807         HAVE_PSELECT, REPLACE_PSELECT.
3808         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3809         HAVE_PSELECT, REPLACE_PSELECT.
3810         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3811
3812         sys_select: don't depend on sys_socket
3813         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3815         This fix works on GNU and GNU-like platforms, but has not been tested
3816         on native Windows.
3817         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3818         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3819         gl_HEADER_SYS_SOCKET.
3820         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3821         gl_PREREQ_SYS_H_WINSOCK2.
3822
3823 2011-06-29  Eric Blake  <eblake@redhat.com>
3824
3825         pipe2: fix C89 compile problem
3826         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3827         Reported by Bruno Haible.
3828
3829         pipe, pipe2: don't corrupt fd on error
3830         * lib/pipe.c (pipe): Leave fd unchanged on error.
3831         * lib/pipe2.c (pipe2): Likewise.
3832         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3833         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3834
3835 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3836
3837         mmap-anon: do not use regular expressions inadvertently
3838         * m4/mmap-anon.m4: Remove trailing period from strings sought
3839         in the output.
3840
3841 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3842
3843         nanosleep: fix integer overflow problem
3844         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3845         arithmetic wraps around on overflow.
3846
3847         nanosleep: simplify carrying
3848         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3849         first call to the underyling nanosleep, not for the last one.
3850         This doesn't fix any bugs, but it simplifies the computation of
3851         the remaining delay.  Found while auditing integer overflow issues.
3852
3853         dup2: remove test for existence of fcntl
3854         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3855         "#if HAVE_FCNTL", in the configure-time test program.
3856         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3857         and therefore speeds up "configure" a bit.  Found while
3858         adding the dup2 module to Emacs.
3859
3860 2011-06-24  Eric Blake  <eblake@redhat.com>
3861
3862         maint.mk: enhance useless header checks
3863         * top/maint.mk (_sc_header_without_use): Check both include
3864         styles.
3865         (sc_prohibit_assert_without_use)
3866         (sc_prohibit_close_stream_without_use)
3867         (sc_prohibit_getopt_without_use)
3868         (sc_prohibit_quotearg_without_use)
3869         (sc_prohibit_quote_without_use)
3870         (sc_prohibit_long_options_without_use)
3871         (sc_prohibit_inttostr_without_use)
3872         (sc_prohibit_ignore_value_without_use)
3873         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3874         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3875         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3876         (sc_prohibit_hash_pjw_without_use)
3877         (sc_prohibit_safe_read_without_use)
3878         (sc_prohibit_argmatch_without_use)
3879         (sc_prohibit_canonicalize_without_use)
3880         (sc_prohibit_root_dev_ino_without_use)
3881         (sc_prohibit_openat_without_use)
3882         (sc_prohibit_c_ctype_without_use)
3883         (sc_prohibit_signal_without_use)
3884         (sc_prohibit_stdio--_without_use)
3885         (sc_prohibit_stdio-safer_without_use)
3886         (sc_prohibit_strings_without_use)
3887         (sc_prohibit_intprops_without_use)
3888         (sc_prohibit_stddef_without_use)
3889         (sc_prohibit_xfreopen_without_use): Update clients.
3890
3891 2011-06-24  Jim Meyering  <meyering@redhat.com>
3892
3893         syntax-check: keep one maint.mk rule in sync with its header
3894         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3895         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3896         I prefer to avoid temporary files here, so use <(...), but that
3897         is not supported by /bin/sh, so...
3898         (SHELL): Define to /bin/bash.
3899
3900 2011-06-24  Eric Blake  <eblake@redhat.com>
3901
3902         maint.mk: update sc_prohibit_intprops_without_use
3903         * top/maint.mk (_intprops_names): Match recent changes.
3904
3905 2011-06-24  Bruno Haible  <bruno@clisp.org>
3906
3907         strerror-override: No-op tweak.
3908         * lib/strerror-override.h (strerror_override): Reorder conditions,
3909         for consistency with lib/strerror-override.c.
3910
3911 2011-06-23  Eric Blake  <eblake@redhat.com>
3912
3913         maint.mk: test further PATH_MAX issues
3914         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3915         (sc_prohibit_path_max_allocation): ...and also test alloca.
3916         Suggested by Jim Meyering.
3917
3918 2011-06-22  Eric Blake  <eblake@redhat.com>
3919
3920         maint.mk: add syntax-check to avoid char[PATH_MAX]
3921         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3922
3923         stat: be robust to PATH_MAX definition
3924         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3925         * modules/stat (Depends-on): Add verify.
3926
3927         link: work around IRIX bug
3928         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3929         * lib/link.c (rpl_link): Work around it.
3930         * tests/test-link.h (test_link): Enhance test.
3931         * doc/posix-functions/link.texi (link): Document the bug.
3932
3933         getopt: silence clang warning
3934         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3935         dereference.
3936         Reported by Gustavo Martin Domato.
3937
3938 2011-06-22  Jim Meyering  <meyering@redhat.com>
3939
3940         bootstrap: do not insert a blank line into each .gitignore file
3941         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3942
3943 2011-06-21  Eric Blake  <eblake@redhat.com>
3944
3945         perror: test for output mismatch
3946         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3947         perror on IRIX.
3948
3949         strerror_r: fix OpenBSD behavior on out-of-range
3950         * lib/strerror_r.c (strerror_r): Always use maximal string.
3951         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3952
3953         strerror_r: fix OpenBSD behavior on 0
3954         * lib/strerror-override.c (strerror_override): Also override 0
3955         when needed.
3956         * lib/strerror-override.h (strerror_override): Likewise.
3957         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3958         earlier.
3959         * lib/strerror_r.c (strerror_r): Likewise.
3960         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3961         behavior...
3962         (gl_FUNC_STRERROR_0): ...into new macro.
3963         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3964         is overridden.
3965         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3966         * modules/strerror-override (Files): Add strerror.m4.
3967         (configure.ac): Also provide override for 0 when needed.
3968         * doc/posix-functions/strerror.texi (strerror): Document this.
3969         * doc/posix-functions/perror.texi (perror): Likewise.
3970
3971         perror: adjust array size
3972         * modules/perror (Depends-on): Add strerror-override.
3973         * lib/perror.c (perror): Use it to avoid magic number.
3974
3975         strerror-override: reduce size
3976         * lib/strerror-override.c (strerror_override): Use fewer lines.
3977
3978 2011-06-20  Bruno Haible  <bruno@clisp.org>
3979
3980         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3981         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3982
3983 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3984
3985         alloca: port to compilers that can optimize like GCC 4.6.0
3986         * lib/alloca.c (find_stack_direction): New signature, taken from
3987         Autoconf git.  This works with GCC 4.6.0.  This code should never
3988         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3989         be used with other compilers that optimize as well as GCC 4.6.0 does.
3990         (alloca): Adjust to new signature.
3991         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3992         New macro, which patches Autoconf in a similar way.
3993
3994         c-stack: stop worrying about stack direction
3995         * lib/c-stack.c (find_stack_direction): Remove.
3996         (segv_handler): Don't worry about stack direction growth, as it's
3997         too much of a pain to configure this correctly, given how compilers
3998         are optimizing-away our stack-growth detection code.  Instead, assume
3999         that any access to just before or just after the stack is OK.
4000         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4001         Don't require AC_FUNC_ALLOCA; no longer needed.
4002
4003 2011-06-20  Eric Blake  <eblake@redhat.com>
4004
4005         test-stat: don't allocate PATH_MAX bytes
4006         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
4007         PATH_MAX-sized buffer.
4008         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
4009         * modules/stat-tests (Depends-on): Likewise.
4010         * tests/test-fstatat.c (includes): Drop pathmax.h.
4011         * tests/test-stat.c (includes): Likewise.
4012         Reported by Bruno Haible.
4013
4014 2011-06-20  Bruno Haible  <bruno@clisp.org>
4015
4016         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
4017         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
4018         * lib/float.c: New file.
4019         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
4020         REPLACE_FLOAT_LDBL.
4021         * modules/float (Files): Add lib/float.c.
4022         (configure.ac): Invoke AC_LIBOBJ.
4023         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
4024
4025 2011-06-20  Bruno Haible  <bruno@clisp.org>
4026
4027         Tests for module 'float'.
4028         * modules/float-tests: New file.
4029         * tests/test-float.c: New file.
4030
4031 2011-06-19  Bruno Haible  <bruno@clisp.org>
4032
4033         isinf: Coding style.
4034         * lib/isinf.c: Use GNU coding style.
4035
4036 2011-06-19  Bruno Haible  <bruno@clisp.org>
4037
4038         linkat test: Avoid test failure on AIX 7.1.
4039         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
4040         * tests/test-link.h (test_link): Likewise.
4041
4042 2011-06-19  Bruno Haible  <bruno@clisp.org>
4043
4044         pread test: Avoid test failure on OpenBSD 4.9.
4045         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
4046
4047 2011-06-19  Bruno Haible  <bruno@clisp.org>
4048
4049         sprintf-posix: Fix test failure on AIX 7.1.
4050         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
4051         * doc/posix-functions/dprintf.texi: Mention limited precision problem
4052         on AIX.
4053         * doc/posix-functions/fprintf.texi: Likewise.
4054         * doc/posix-functions/printf.texi: Likewise.
4055         * doc/posix-functions/snprintf.texi: Likewise.
4056         * doc/posix-functions/sprintf.texi: Likewise.
4057         * doc/posix-functions/vdprintf.texi: Likewise.
4058         * doc/posix-functions/vfprintf.texi: Likewise.
4059         * doc/posix-functions/vprintf.texi: Likewise.
4060         * doc/posix-functions/vsnprintf.texi: Likewise.
4061         * doc/posix-functions/vsprintf.texi: Likewise.
4062
4063 2011-06-19  Bruno Haible  <bruno@clisp.org>
4064
4065         roundl-ieee: Fix test failure on AIX 7.1.
4066         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
4067         * doc/posix-functions/roundl.texi: Mention problem with negative
4068         arguments.
4069
4070 2011-06-19  Bruno Haible  <bruno@clisp.org>
4071
4072         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4073         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
4074         * doc/posix-functions/round.texi: Mention problem with negative
4075         arguments.
4076         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
4077
4078 2011-06-19  Bruno Haible  <bruno@clisp.org>
4079
4080         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4081         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
4082         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
4083         * doc/posix-functions/roundf.texi: Mention problem with negative
4084         arguments.
4085         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
4086
4087 2011-06-19  Bruno Haible  <bruno@clisp.org>
4088
4089         ceilf-ieee: Work around bug on MacOS X 10.5.
4090         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
4091
4092         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
4093         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
4094         IEEE compliant, avoid compiler optimizations.
4095         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4096         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4097         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4098         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4099         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4100         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4101         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4102         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4103         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4104         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4105
4106 2011-06-19  Bruno Haible  <bruno@clisp.org>
4107
4108         ceilf-ieee: Work around bug on AIX 7.1.
4109         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
4110         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
4111
4112 2011-06-19  Bruno Haible  <bruno@clisp.org>
4113
4114         ceil-ieee: Work around bug on AIX 7.1.
4115         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
4116         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
4117
4118 2011-06-18  Bruno Haible  <bruno@clisp.org>
4119
4120         fsync test: Avoid test failure on MacOS X and AIX.
4121         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
4122         EINVAL.
4123
4124 2011-06-18  Bruno Haible  <bruno@clisp.org>
4125
4126         openat, fdopendir tests: Fix link errors.
4127         * modules/openat-tests (Depends-on): Add progname.
4128         * modules/fdopendir-tests (Depends-on): Likewise.
4129         * tests/test-fchownat.c: Include progname.h.
4130         (main): Call set_program_name.
4131         * tests/test-fstatat.c: Include progname.h.
4132         (main): Call set_program_name.
4133         * tests/test-mkdirat.c: Include progname.h.
4134         (main): Call set_program_name.
4135         * tests/test-openat.c: Include progname.h.
4136         (main): Call set_program_name.
4137         * tests/test-unlinkat.c: Include progname.h.
4138         (main): Call set_program_name.
4139         * tests/test-fdopendir.c: Include progname.h.
4140         (main): Call set_program_name.
4141
4142 2011-06-18  Bruno Haible  <bruno@clisp.org>
4143
4144         Doc update.
4145         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
4146         HP-UX.
4147         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
4148
4149 2011-06-18  Bruno Haible  <bruno@clisp.org>
4150
4151         getcwd tests: Avoid compilation error on HP-UX 11.31.
4152         * modules/getcwd-tests (Depends-on): Add pathmax.
4153         * tests/test-getcwd.c: Include pathmax.h.
4154
4155 2011-06-18  Bruno Haible  <bruno@clisp.org>
4156
4157         isfinite, isinf: Fix link error on AIX 6 and 7.
4158         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
4159         needed, also test the macro with a 'float' argument.
4160         * m4/isinf.m4 (gl_ISINF): Likewise.
4161
4162 2011-06-18  Bruno Haible  <bruno@clisp.org>
4163
4164         getloadavg: Don't clobber LIBS. Regression from previous commit.
4165         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
4166         AC_CHECK_LIB from here...
4167         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
4168         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
4169         gl_func_getloadavg_done.
4170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4171
4172 2011-06-18  Bruno Haible  <bruno@clisp.org>
4173
4174         clean-temp: Improve documentation.
4175         * lib/clean-temp.h: Explain better how to use this module.
4176         Reported by John Darrington <john@darrington.wattle.id.au>.
4177
4178 2011-06-17  Bruno Haible  <bruno@clisp.org>
4179
4180         pread, pwrite: Avoid cc warning on AIX.
4181         * lib/unistd.in.h (pread): Undefine before defining as a macro.
4182         (pwrite): Likewise.
4183
4184 2011-06-17  Bruno Haible  <bruno@clisp.org>
4185
4186         spawn-pipe tests: Fix link error.
4187         * tests/test-spawn-pipe-child.c: Undefine fprintf.
4188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4189
4190 2011-06-17  Bruno Haible  <bruno@clisp.org>
4191
4192         Tests: Remove unnecessary dependency.
4193         * modules/canonicalize-tests (Depends-on): Remove progname.
4194         * modules/chown-tests (Depends-on): Likewise.
4195         * modules/dirname-tests (Depends-on): Likewise.
4196         * modules/fdopendir-tests (Depends-on): Likewise.
4197         * modules/fdutimensat-tests (Depends-on): Likewise.
4198         * modules/hash-tests (Depends-on): Likewise.
4199         * modules/lchown-tests (Depends-on): Likewise.
4200         * modules/linkat-tests (Depends-on): Likewise.
4201         * modules/renameat-tests (Depends-on): Likewise.
4202         * modules/spawn-pipe-tests (Depends-on): Likewise.
4203         * modules/utimensat-tests (Depends-on): Likewise.
4204
4205 2011-06-17  Bruno Haible  <bruno@clisp.org>
4206
4207         spawn-pipe tests: Fix link error.
4208         * tests/test-spawn-pipe-child.c: Undefine fflush.
4209
4210 2011-06-17  Bruno Haible  <bruno@clisp.org>
4211
4212         Fix tests link errors.
4213         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
4214         * modules/chown-tests (Makefile.am): Don't link test-chown with
4215         LIBINTL.
4216         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
4217         LIBINTL.
4218         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
4219         LIBINTL.
4220         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
4221         LIBINTL.
4222
4223 2011-06-16  Bruno Haible  <bruno@clisp.org>
4224
4225         crypto/gc-sha1: Fix recent regression.
4226         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
4227         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
4228
4229         crypto/gc-md5: Fix recent regression.
4230         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
4231
4232         crypto/gc-md4: Fix recent regression.
4233         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
4234         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
4235
4236         crypto/gc-arctwo: Fix recent regression.
4237         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
4238         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
4239
4240         crypto/gc-rijndael: Fix recent regression.
4241         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
4242         (configure.ac): Invoke AC_LIBOBJ here.
4243         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
4244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4245
4246         crypto/gc-hmac-sha1: Fix recent regression.
4247         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
4248         (configure.ac): Invoke AC_LIBOBJ here.
4249         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
4250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4251
4252         crypto/gc-hmac-md5: Fix recent regression.
4253         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
4254         (configure.ac): Invoke AC_LIBOBJ here.
4255         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
4256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4257
4258         crypto/gc-des: Fix recent regression.
4259         * modules/crypto/gc-des (Files): Remove m4/des.m4.
4260         (configure.ac): Invoke AC_LIBOBJ here.
4261         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
4262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4263
4264         crypto/gc-arcfour: Fix recent regression.
4265         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
4266         (configure.ac): Invoke AC_LIBOBJ here.
4267         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
4268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4269
4270 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4271
4272         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
4273         After the 2011-05-21 change, this macro requires
4274         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
4275         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4276
4277 2011-06-16  Bruno Haible  <bruno@clisp.org>
4278
4279         fprintftime: Move AC_LIBOBJ invocations to module description.
4280         * m4/fprintftime.m4: Remove file.
4281         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
4282         (configure.ac): Remove gl_FPRINTFTIME call.
4283         (Makefile.am): Augment lib_SOURCES.
4284         Reported by Jim Meyering.
4285
4286 2011-06-16  Bruno Haible  <bruno@clisp.org>
4287
4288         tmpfile-safer: Finish 2011-05-23 commit.
4289         * m4/stdio-safer.m4: Really remove file.
4290         Reported by Jim Meyering.
4291
4292 2011-06-16  Bruno Haible  <bruno@clisp.org>
4293
4294         syntax-check: Fix typo.
4295         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
4296         printf-posix.m4.
4297         Reported by Jim Meyering.
4298
4299 2011-06-13  Jim Meyering  <meyering@redhat.com>
4300
4301         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
4302         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
4303
4304 2011-05-23  Bruno Haible  <bruno@clisp.org>
4305
4306         yesno: Move AC_LIBOBJ invocations to module description.
4307         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
4308         * modules/yesno (Makefile.am): Augment lib_SOURCES.
4309
4310 2011-05-23  Bruno Haible  <bruno@clisp.org>
4311
4312         xstrtol: Move AC_LIBOBJ invocations to module description.
4313         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
4314         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
4315
4316 2011-05-23  Bruno Haible  <bruno@clisp.org>
4317
4318         xstrtold: Move AC_LIBOBJ invocations to module description.
4319         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
4320         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
4321
4322 2011-05-23  Bruno Haible  <bruno@clisp.org>
4323
4324         xstrtod: Move AC_LIBOBJ invocations to module description.
4325         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
4326         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
4327
4328 2011-05-23  Bruno Haible  <bruno@clisp.org>
4329
4330         xnanosleep: Move AC_LIBOBJ invocations to module description.
4331         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
4332         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
4333
4334 2011-05-23  Bruno Haible  <bruno@clisp.org>
4335
4336         xgetcwd: Move AC_LIBOBJ invocations to module description.
4337         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
4338         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
4339
4340 2011-05-23  Bruno Haible  <bruno@clisp.org>
4341
4342         xalloc: Move AC_LIBOBJ invocations to module description.
4343         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
4344         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
4345
4346 2011-05-23  Bruno Haible  <bruno@clisp.org>
4347
4348         write-any-file: Move AC_LIBOBJ invocations to module description.
4349         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
4350         invocation.
4351         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
4352
4353 2011-05-23  Bruno Haible  <bruno@clisp.org>
4354
4355         utimens: Move AC_LIBOBJ invocations to module description.
4356         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
4357         * modules/utimens (Makefile.am): Augment lib_SOURCES.
4358
4359 2011-05-23  Bruno Haible  <bruno@clisp.org>
4360
4361         utimecmp: Move AC_LIBOBJ invocations to module description.
4362         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
4363         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
4364
4365 2011-05-23  Bruno Haible  <bruno@clisp.org>
4366
4367         userspec: Move AC_LIBOBJ invocations to module description.
4368         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
4369         * modules/userspec (Makefile.am): Augment lib_SOURCES.
4370
4371 2011-05-23  Bruno Haible  <bruno@clisp.org>
4372
4373         unlinkdir: Move AC_LIBOBJ invocations to module description.
4374         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
4375         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
4376
4377 2011-05-23  Bruno Haible  <bruno@clisp.org>
4378
4379         unistd-safer: Move AC_LIBOBJ invocations to module description.
4380         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
4381         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
4382
4383 2011-05-23  Bruno Haible  <bruno@clisp.org>
4384
4385         tempname: Move AC_LIBOBJ invocations to module description.
4386         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
4387         * modules/tempname (Makefile.am): Augment lib_SOURCES.
4388
4389 2011-05-23  Bruno Haible  <bruno@clisp.org>
4390
4391         strftime: Move AC_LIBOBJ invocations to module description.
4392         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
4393         * modules/strftime (Makefile.am): Augment lib_SOURCES.
4394
4395 2011-05-23  Bruno Haible  <bruno@clisp.org>
4396
4397         stdlib-safer: Move AC_LIBOBJ invocations to module description.
4398         * m4/stdlib-safer.m4: Remove file.
4399         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
4400         (configure.ac): Remove gl_STDLIB_SAFER call.
4401         (Makefile.am): Augment lib_SOURCES.
4402
4403 2011-05-23  Bruno Haible  <bruno@clisp.org>
4404
4405         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
4406         * m4/stdio-safer.m4: Remove file.
4407         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
4408         (configure.ac): Remove gl_TMPFILE_SAFER call.
4409         (Makefile.am): Augment lib_SOURCES.
4410
4411 2011-05-23  Bruno Haible  <bruno@clisp.org>
4412
4413         popen-safer: Move AC_LIBOBJ invocations to module description.
4414         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
4415         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
4416         (configure.ac): Remove gl_POPEN_SAFER call.
4417         (Makefile.am): Augment lib_SOURCES.
4418
4419 2011-05-23  Bruno Haible  <bruno@clisp.org>
4420
4421         freopen-safer: Move AC_LIBOBJ invocations to module description.
4422         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
4423         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
4424         (configure.ac): Remove gl_FREOPEN_SAFER call.
4425         (Makefile.am): Augment lib_SOURCES.
4426
4427 2011-05-23  Bruno Haible  <bruno@clisp.org>
4428
4429         fopen-safer: Move AC_LIBOBJ invocations to module description.
4430         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
4431         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
4432         (configure.ac): Remove gl_FOPEN_SAFER call.
4433         (Makefile.am): Augment lib_SOURCES.
4434
4435 2011-05-23  Bruno Haible  <bruno@clisp.org>
4436
4437         crypto/sha512: Move AC_LIBOBJ invocations to module description.
4438         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
4439         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
4440
4441 2011-05-23  Bruno Haible  <bruno@clisp.org>
4442
4443         crypto/sha256: Move AC_LIBOBJ invocations to module description.
4444         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
4445         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
4446
4447 2011-05-23  Bruno Haible  <bruno@clisp.org>
4448
4449         crypto/sha1: Move AC_LIBOBJ invocations to module description.
4450         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
4451         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
4452
4453 2011-05-23  Bruno Haible  <bruno@clisp.org>
4454
4455         settime: Move AC_LIBOBJ invocations to module description.
4456         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
4457         * modules/settime (Makefile.am): Augment lib_SOURCES.
4458
4459 2011-05-23  Bruno Haible  <bruno@clisp.org>
4460
4461         savedir: Move AC_LIBOBJ invocations to module description.
4462         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
4463         * modules/savedir (Makefile.am): Augment lib_SOURCES.
4464
4465 2011-05-23  Bruno Haible  <bruno@clisp.org>
4466
4467         save-cwd: Move AC_LIBOBJ invocations to module description.
4468         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
4469         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
4470
4471 2011-05-23  Bruno Haible  <bruno@clisp.org>
4472
4473         same: Move AC_LIBOBJ invocations to module description.
4474         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
4475         * modules/same (Makefile.am): Augment lib_SOURCES.
4476
4477 2011-05-23  Bruno Haible  <bruno@clisp.org>
4478
4479         safe-write: Move AC_LIBOBJ invocations to module description.
4480         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
4481         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
4482         instead of gl_SAFE_WRITE.
4483         (Makefile.am): Augment lib_SOURCES.
4484
4485 2011-05-23  Bruno Haible  <bruno@clisp.org>
4486
4487         safe-read: Move AC_LIBOBJ invocations to module description.
4488         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
4489         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
4490         of gl_SAFE_READ.
4491         (Makefile.am): Augment lib_SOURCES.
4492
4493 2011-05-23  Bruno Haible  <bruno@clisp.org>
4494
4495         safe-alloc: Move AC_LIBOBJ invocations to module description.
4496         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
4497         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
4498
4499 2011-05-23  Bruno Haible  <bruno@clisp.org>
4500
4501         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
4502         * m4/rijndael.m4: Remove file.
4503         * modules/crypto/rijndael (Files): Remove it.
4504         (configure.ac): Remove gl_RIJNDAEL call.
4505         (Makefile.am): Augment lib_SOURCES.
4506
4507 2011-05-23  Bruno Haible  <bruno@clisp.org>
4508
4509         readtokens: Move AC_LIBOBJ invocations to module description.
4510         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
4511         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
4512
4513 2011-05-23  Bruno Haible  <bruno@clisp.org>
4514
4515         read-file: Move AC_LIBOBJ invocations to module description.
4516         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
4517         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
4518         of gl_FUNC_READ_FILE.
4519         (Makefile.am): Augment lib_SOURCES.
4520
4521 2011-05-23  Bruno Haible  <bruno@clisp.org>
4522
4523         quotearg: Move AC_LIBOBJ invocations to module description.
4524         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
4525         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
4526
4527 2011-05-23  Bruno Haible  <bruno@clisp.org>
4528
4529         quote: Move AC_LIBOBJ invocations to module description.
4530         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
4531         * modules/quote (Makefile.am): Augment lib_SOURCES.
4532
4533 2011-05-23  Bruno Haible  <bruno@clisp.org>
4534
4535         posixver: Move AC_LIBOBJ invocations to module description.
4536         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
4537         * modules/posixver (Makefile.am): Augment lib_SOURCES.
4538
4539 2011-05-23  Bruno Haible  <bruno@clisp.org>
4540
4541         posixtm: Move AC_LIBOBJ invocations to module description.
4542         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
4543         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
4544
4545 2011-05-23  Bruno Haible  <bruno@clisp.org>
4546
4547         physmem: Move AC_LIBOBJ invocations to module description.
4548         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
4549         * modules/physmem (Makefile.am): Augment lib_SOURCES.
4550
4551 2011-05-23  Bruno Haible  <bruno@clisp.org>
4552
4553         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
4554         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
4555         invocation.
4556         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
4557
4558 2011-05-23  Bruno Haible  <bruno@clisp.org>
4559
4560         mpsort: Move AC_LIBOBJ invocations to module description.
4561         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
4562         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
4563
4564 2011-05-23  Bruno Haible  <bruno@clisp.org>
4565
4566         modechange: Move AC_LIBOBJ invocations to module description.
4567         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
4568         * modules/modechange (Makefile.am): Augment lib_SOURCES.
4569
4570 2011-05-23  Bruno Haible  <bruno@clisp.org>
4571
4572         mkdir-p: Move AC_LIBOBJ invocations to module description.
4573         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
4574         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
4575
4576 2011-05-23  Bruno Haible  <bruno@clisp.org>
4577
4578         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4579         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
4580         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
4581
4582 2011-05-23  Bruno Haible  <bruno@clisp.org>
4583
4584         mgetgroups: Move AC_LIBOBJ invocations to module description.
4585         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
4586         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
4587
4588 2011-05-23  Bruno Haible  <bruno@clisp.org>
4589
4590         memxor: Move AC_LIBOBJ invocations to module description.
4591         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
4592         * modules/memxor (Makefile.am): Augment lib_SOURCES.
4593
4594 2011-05-23  Bruno Haible  <bruno@clisp.org>
4595
4596         memcoll: Move AC_LIBOBJ invocations to module description.
4597         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
4598         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
4599
4600 2011-05-23  Bruno Haible  <bruno@clisp.org>
4601
4602         memcasecmp: Move AC_LIBOBJ invocations to module description.
4603         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
4604         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
4605
4606 2011-05-23  Bruno Haible  <bruno@clisp.org>
4607
4608         crypto/md5: Move AC_LIBOBJ invocations to module description.
4609         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
4610         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
4611
4612 2011-05-23  Bruno Haible  <bruno@clisp.org>
4613
4614         crypto/md4: Move AC_LIBOBJ invocations to module description.
4615         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
4616         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
4617
4618 2011-05-23  Bruno Haible  <bruno@clisp.org>
4619
4620         crypto/md2: Move AC_LIBOBJ invocations to module description.
4621         * m4/md2.m4: Remove file.
4622         * modules/crypto/md2 (Files): Remove it.
4623         (configure.ac): Remove gl_MD2 call.
4624         (Makefile.am): Augment lib_SOURCES.
4625
4626 2011-05-23  Bruno Haible  <bruno@clisp.org>
4627
4628         long-options: Move AC_LIBOBJ invocations to module description.
4629         * m4/long-options.m4: Remove file.
4630         * modules/long-options (Files): Remove it.
4631         (configure.ac): Remove gl_LONG_OPTIONS call.
4632         (Makefile.am): Augment lib_SOURCES.
4633
4634 2011-05-23  Bruno Haible  <bruno@clisp.org>
4635
4636         i-ring: Move AC_LIBOBJ invocations to module description.
4637         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
4638         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
4639
4640 2011-05-23  Bruno Haible  <bruno@clisp.org>
4641
4642         idcache: Move AC_LIBOBJ invocations to module description.
4643         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
4644         * modules/idcache (Makefile.am): Augment lib_SOURCES.
4645
4646 2011-05-23  Bruno Haible  <bruno@clisp.org>
4647
4648         human: Move AC_LIBOBJ invocations to module description.
4649         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
4650         * modules/human (Makefile.am): Augment lib_SOURCES.
4651
4652 2011-05-23  Bruno Haible  <bruno@clisp.org>
4653
4654         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4655         * m4/hmac-sha1.m4: Remove file.
4656         * modules/crypto/hmac-sha1 (Files): Remove it.
4657         (configure.ac): Remove gl_HMAC_SHA1 call.
4658         (Makefile.am): Augment lib_SOURCES.
4659
4660 2011-05-23  Bruno Haible  <bruno@clisp.org>
4661
4662         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
4663         * m4/hmac-md5.m4: Remove file.
4664         * modules/crypto/hmac-md5 (Files): Remove it.
4665         (configure.ac): Remove gl_HMAC_MD5 call.
4666         (Makefile.am): Augment lib_SOURCES.
4667
4668 2011-05-23  Bruno Haible  <bruno@clisp.org>
4669
4670         hash: Move AC_LIBOBJ invocations to module description.
4671         * m4/hash.m4: Remove file.
4672         * modules/hash (Files): Remove it.
4673         (configure.ac): Remove gl_HASH call.
4674         (Makefile.am): Augment lib_SOURCES.
4675
4676 2011-05-23  Bruno Haible  <bruno@clisp.org>
4677
4678         hard-locale: Move AC_LIBOBJ invocations to module description.
4679         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4680         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4681
4682 2011-05-23  Bruno Haible  <bruno@clisp.org>
4683
4684         getugroups: Move AC_LIBOBJ invocations to module description.
4685         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4686         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4687
4688 2011-05-23  Bruno Haible  <bruno@clisp.org>
4689
4690         gettime: Move AC_LIBOBJ invocations to module description.
4691         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4692         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4693
4694 2011-05-23  Bruno Haible  <bruno@clisp.org>
4695
4696         getndelim2: Move AC_LIBOBJ invocations to module description.
4697         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4698         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4699
4700 2011-05-23  Bruno Haible  <bruno@clisp.org>
4701
4702         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4703         * m4/gc-pbkdf2-sha1.m4: Remove file.
4704         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4705         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4706         (Makefile.am): Augment lib_SOURCES.
4707
4708 2011-05-23  Bruno Haible  <bruno@clisp.org>
4709
4710         fts: Move AC_LIBOBJ invocations to module description.
4711         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4712         * modules/fts (configure.ac): ... to here.
4713
4714 2011-05-23  Bruno Haible  <bruno@clisp.org>
4715
4716         file-type: Move AC_LIBOBJ invocations to module description.
4717         * m4/file-type.m4: Remove file.
4718         * modules/file-type (Files): Remove it.
4719         (configure.ac): Remove gl_FILE_TYPE call.
4720         (Makefile.am): Augment lib_SOURCES.
4721
4722 2011-05-23  Bruno Haible  <bruno@clisp.org>
4723
4724         filenamecat*: Respect rules for use of AC_LIBOBJ.
4725         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4726         Remove AC_LIBOBJ invocation.
4727         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4728         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4729
4730 2011-05-23  Bruno Haible  <bruno@clisp.org>
4731
4732         filemode: Move AC_LIBOBJ invocations to module description.
4733         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4734         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4735
4736 2011-05-23  Bruno Haible  <bruno@clisp.org>
4737
4738         openat-safer: Move AC_LIBOBJ invocations to module description.
4739         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4740         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4741
4742 2011-05-23  Bruno Haible  <bruno@clisp.org>
4743
4744         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4745         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4746         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4747
4748 2011-05-23  Bruno Haible  <bruno@clisp.org>
4749
4750         exclude: Move AC_LIBOBJ invocations to module description.
4751         * m4/exclude.m4: Remove file.
4752         * modules/exclude (Files): Remove it.
4753         (configure.ac): Remove gl_EXCLUDE call.
4754         (Makefile.am): Augment lib_SOURCES.
4755
4756 2011-05-23  Bruno Haible  <bruno@clisp.org>
4757
4758         dirname*: Respect rules for use of AC_LIBOBJ.
4759         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4760         invocations.
4761         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4762         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4763
4764 2011-05-23  Bruno Haible  <bruno@clisp.org>
4765
4766         dirent-safer: Move AC_LIBOBJ invocations to module description.
4767         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4768         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4769
4770 2011-05-23  Bruno Haible  <bruno@clisp.org>
4771
4772         crypto/des: Move AC_LIBOBJ invocations to module description.
4773         * m4/des.m4: Remove file.
4774         * modules/crypto/des (Files): Remove it.
4775         (configure.ac): Remove gl_DES call.
4776         (Makefile.am): Augment lib_SOURCES.
4777
4778 2011-05-23  Bruno Haible  <bruno@clisp.org>
4779
4780         cycle-check: Move AC_LIBOBJ invocations to module description.
4781         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4782         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4783
4784 2011-05-23  Bruno Haible  <bruno@clisp.org>
4785
4786         c-strtold: Move AC_LIBOBJ invocations to module description.
4787         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4788         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4789
4790 2011-05-23  Bruno Haible  <bruno@clisp.org>
4791
4792         c-strtod: Move AC_LIBOBJ invocations to module description.
4793         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4794         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4795
4796 2011-05-23  Bruno Haible  <bruno@clisp.org>
4797
4798         crc: Move AC_LIBOBJ invocations to module description.
4799         * m4/crc.m4: Remove file.
4800         * modules/crc (Files): Remove it.
4801         (configure.ac): Remove gl_CRC call.
4802         (Makefile.am): Augment lib_SOURCES.
4803
4804 2011-05-23  Bruno Haible  <bruno@clisp.org>
4805
4806         close-stream: Move AC_LIBOBJ invocations to module description.
4807         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4808         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4809
4810 2011-05-23  Bruno Haible  <bruno@clisp.org>
4811
4812         closeout: Move AC_LIBOBJ invocations to module description.
4813         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4814         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4815
4816 2011-05-23  Bruno Haible  <bruno@clisp.org>
4817
4818         closein: Move AC_LIBOBJ invocations to module description.
4819         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4820         * modules/closein (Makefile.am): Augment lib_SOURCES.
4821
4822 2011-05-23  Bruno Haible  <bruno@clisp.org>
4823
4824         cloexec: Move AC_LIBOBJ invocations to module description.
4825         * m4/cloexec.m4: Remove file.
4826         * modules/cloexec (Files): Remove it.
4827         (configure.ac): Remove gl_CLOEXEC call.
4828         (Makefile.am): Augment lib_SOURCES.
4829
4830 2011-05-23  Bruno Haible  <bruno@clisp.org>
4831
4832         check-version: Move AC_LIBOBJ invocations to module description.
4833         * m4/check-version.m4: Remove file.
4834         * modules/check-version (Files): Remove it.
4835         (configure.ac): Remove gl_CHECK_VERSION call.
4836         (Makefile.am): Augment lib_SOURCES.
4837
4838 2011-05-23  Bruno Haible  <bruno@clisp.org>
4839
4840         chdir-safer: Move AC_LIBOBJ invocations to module description.
4841         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4842         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4843
4844 2011-05-23  Bruno Haible  <bruno@clisp.org>
4845
4846         canonicalize: Move AC_LIBOBJ invocations to module description.
4847         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4848         AC_LIBOBJ invocation.
4849         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4850
4851 2011-05-23  Bruno Haible  <bruno@clisp.org>
4852
4853         canon-host: Move AC_LIBOBJ invocations to module description.
4854         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4855         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4856         instead of gl_CANON_HOST.
4857         (Makefile.am): Augment lib_SOURCES.
4858
4859 2011-05-23  Bruno Haible  <bruno@clisp.org>
4860
4861         backupfile: Move AC_LIBOBJ invocations to module description.
4862         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4863         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4864
4865 2011-05-23  Bruno Haible  <bruno@clisp.org>
4866
4867         argmatch: Move AC_LIBOBJ invocations to module description.
4868         * m4/argmatch.m4: Remove file.
4869         * modules/argmatch (Files): Remove it.
4870         (configure.ac): Remove gl_ARGMATCH call.
4871         (Makefile.am): Augment lib_SOURCES.
4872
4873 2011-05-23  Bruno Haible  <bruno@clisp.org>
4874
4875         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4876         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4877         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4878
4879 2011-05-23  Bruno Haible  <bruno@clisp.org>
4880
4881         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4882         * m4/arcfour.m4: Remove file.
4883         * modules/crypto/arcfour (Files): Remove it.
4884         (configure.ac): Remove gl_ARCFOUR call.
4885         (Makefile.am): Augment lib_SOURCES.
4886
4887 2011-05-22  Bruno Haible  <bruno@clisp.org>
4888
4889         write: Move AC_LIBOBJ invocations to module description.
4890         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4891         * modules/write (configure.ac): ... to here.
4892
4893 2011-05-22  Bruno Haible  <bruno@clisp.org>
4894
4895         wmemset: Move AC_LIBOBJ invocations to module description.
4896         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4897         here...
4898         * modules/wmemset (configure.ac): ... to here.
4899
4900 2011-05-22  Bruno Haible  <bruno@clisp.org>
4901
4902         wmemmove: Move AC_LIBOBJ invocations to module description.
4903         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4904         here...
4905         * modules/wmemmove (configure.ac): ... to here.
4906
4907 2011-05-22  Bruno Haible  <bruno@clisp.org>
4908
4909         wmemcpy: Move AC_LIBOBJ invocations to module description.
4910         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4911         here...
4912         * modules/wmemcpy (configure.ac): ... to here.
4913
4914 2011-05-22  Bruno Haible  <bruno@clisp.org>
4915
4916         wmemcmp: Move AC_LIBOBJ invocations to module description.
4917         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4918         here...
4919         * modules/wmemcmp (configure.ac): ... to here.
4920
4921 2011-05-22  Bruno Haible  <bruno@clisp.org>
4922
4923         wmemchr: Move AC_LIBOBJ invocations to module description.
4924         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4925         here...
4926         * modules/wmemchr (configure.ac): ... to here.
4927
4928 2011-05-22  Bruno Haible  <bruno@clisp.org>
4929
4930         wcswidth: Move AC_LIBOBJ invocations to module description.
4931         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4932         here...
4933         * modules/wcswidth (configure.ac): ... to here.
4934
4935 2011-05-22  Bruno Haible  <bruno@clisp.org>
4936
4937         wcwidth: Respect rules for use of AC_LIBOBJ.
4938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4939         invocation from here...
4940         * modules/wcwidth (configure.ac): ... to here.
4941         (Depends-on): Update conditions.
4942
4943 2011-05-22  Bruno Haible  <bruno@clisp.org>
4944
4945         wctype: Move AC_LIBOBJ invocations to module description.
4946         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4947         invocation from here...
4948         * modules/wctype (configure.ac): ... to here.
4949         (Depends-on): Update conditions.
4950
4951 2011-05-22  Bruno Haible  <bruno@clisp.org>
4952
4953         wctrans: Move AC_LIBOBJ invocations to module description.
4954         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4955         invocation from here...
4956         * modules/wctrans (configure.ac): ... to here.
4957
4958 2011-05-22  Bruno Haible  <bruno@clisp.org>
4959
4960         wctomb: Move AC_LIBOBJ invocations to module description.
4961         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4962         invocations from here...
4963         * modules/wctomb (configure.ac): ... to here.
4964
4965 2011-05-22  Bruno Haible  <bruno@clisp.org>
4966
4967         wctob: Move AC_LIBOBJ invocations to module description.
4968         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4969         gl_PREREQ_WCTOB invocations from here...
4970         * modules/wctob (configure.ac): ... to here.
4971         (Depends-on): Update conditions.
4972
4973 2011-05-22  Bruno Haible  <bruno@clisp.org>
4974
4975         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4976         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4977         here...
4978         * modules/wcsxfrm (configure.ac): ... to here.
4979
4980 2011-05-22  Bruno Haible  <bruno@clisp.org>
4981
4982         wcstok: Move AC_LIBOBJ invocations to module description.
4983         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4984         * modules/wcstok (configure.ac): ... to here.
4985
4986 2011-05-22  Bruno Haible  <bruno@clisp.org>
4987
4988         wcsstr: Move AC_LIBOBJ invocations to module description.
4989         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4990         * modules/wcsstr (configure.ac): ... to here.
4991
4992 2011-05-22  Bruno Haible  <bruno@clisp.org>
4993
4994         wcsspn: Move AC_LIBOBJ invocations to module description.
4995         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4996         * modules/wcsspn (configure.ac): ... to here.
4997
4998 2011-05-22  Bruno Haible  <bruno@clisp.org>
4999
5000         wcsrtombs: Move AC_LIBOBJ invocations to module description.
5001         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
5002         gl_PREREQ_WCSRTOMBS invocations from here...
5003         * modules/wcsrtombs (configure.ac): ... to here.
5004
5005 2011-05-22  Bruno Haible  <bruno@clisp.org>
5006
5007         wcsrchr: Move AC_LIBOBJ invocations to module description.
5008         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
5009         here...
5010         * modules/wcsrchr (configure.ac): ... to here.
5011
5012 2011-05-22  Bruno Haible  <bruno@clisp.org>
5013
5014         wcspbrk: Move AC_LIBOBJ invocations to module description.
5015         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
5016         here...
5017         * modules/wcspbrk (configure.ac): ... to here.
5018
5019 2011-05-22  Bruno Haible  <bruno@clisp.org>
5020
5021         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
5022         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
5023         gl_PREREQ_WCSNRTOMBS invocations from here...
5024         * modules/wcsnrtombs (configure.ac): ... to here.
5025
5026 2011-05-22  Bruno Haible  <bruno@clisp.org>
5027
5028         wcsnlen: Move AC_LIBOBJ invocations to module description.
5029         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
5030         here...
5031         * modules/wcsnlen (configure.ac): ... to here.
5032
5033 2011-05-22  Bruno Haible  <bruno@clisp.org>
5034
5035         wcsncpy: Move AC_LIBOBJ invocations to module description.
5036         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
5037         here...
5038         * modules/wcsncpy (configure.ac): ... to here.
5039
5040 2011-05-22  Bruno Haible  <bruno@clisp.org>
5041
5042         wcsncmp: Move AC_LIBOBJ invocations to module description.
5043         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
5044         here...
5045         * modules/wcsncmp (configure.ac): ... to here.
5046
5047 2011-05-22  Bruno Haible  <bruno@clisp.org>
5048
5049         wcsncat: Move AC_LIBOBJ invocations to module description.
5050         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
5051         here...
5052         * modules/wcsncat (configure.ac): ... to here.
5053
5054 2011-05-22  Bruno Haible  <bruno@clisp.org>
5055
5056         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
5057         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
5058         from here...
5059         * modules/wcsncasecmp (configure.ac): ... to here.
5060
5061 2011-05-22  Bruno Haible  <bruno@clisp.org>
5062
5063         wcslen: Move AC_LIBOBJ invocations to module description.
5064         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
5065         * modules/wcslen (configure.ac): ... to here.
5066
5067 2011-05-22  Bruno Haible  <bruno@clisp.org>
5068
5069         wcsdup: Move AC_LIBOBJ invocations to module description.
5070         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
5071         * modules/wcsdup (configure.ac): ... to here.
5072
5073 2011-05-22  Bruno Haible  <bruno@clisp.org>
5074
5075         wcscspn: Move AC_LIBOBJ invocations to module description.
5076         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
5077         here...
5078         * modules/wcscspn (configure.ac): ... to here.
5079
5080 2011-05-22  Bruno Haible  <bruno@clisp.org>
5081
5082         wcscpy: Move AC_LIBOBJ invocations to module description.
5083         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
5084         * modules/wcscpy (configure.ac): ... to here.
5085
5086 2011-05-22  Bruno Haible  <bruno@clisp.org>
5087
5088         wcscoll: Move AC_LIBOBJ invocations to module description.
5089         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
5090         here...
5091         * modules/wcscoll (configure.ac): ... to here.
5092
5093 2011-05-22  Bruno Haible  <bruno@clisp.org>
5094
5095         wcscmp: Move AC_LIBOBJ invocations to module description.
5096         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
5097         * modules/wcscmp (configure.ac): ... to here.
5098
5099 2011-05-22  Bruno Haible  <bruno@clisp.org>
5100
5101         wcschr: Move AC_LIBOBJ invocations to module description.
5102         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
5103         * modules/wcschr (configure.ac): ... to here.
5104
5105 2011-05-22  Bruno Haible  <bruno@clisp.org>
5106
5107         wcscat: Move AC_LIBOBJ invocations to module description.
5108         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
5109         * modules/wcscat (configure.ac): ... to here.
5110
5111 2011-05-22  Bruno Haible  <bruno@clisp.org>
5112
5113         wcscasecmp: Move AC_LIBOBJ invocations to module description.
5114         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
5115         here...
5116         * modules/wcscasecmp (configure.ac): ... to here.
5117
5118 2011-05-22  Bruno Haible  <bruno@clisp.org>
5119
5120         wcrtomb: Move AC_LIBOBJ invocations to module description.
5121         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
5122         invocations from here...
5123         * modules/wcrtomb (configure.ac): ... to here.
5124
5125 2011-05-22  Bruno Haible  <bruno@clisp.org>
5126
5127         wcpncpy: Move AC_LIBOBJ invocations to module description.
5128         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
5129         here...
5130         * modules/wcpncpy (configure.ac): ... to here.
5131
5132 2011-05-22  Bruno Haible  <bruno@clisp.org>
5133
5134         wcpcpy: Move AC_LIBOBJ invocations to module description.
5135         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
5136         * modules/wcpcpy (configure.ac): ... to here.
5137
5138 2011-05-22  Bruno Haible  <bruno@clisp.org>
5139
5140         waitpid: Move AC_LIBOBJ invocations to module description.
5141         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
5142         invocation from here...
5143         * modules/waitpid (configure.ac): ... to here.
5144
5145 2011-05-22  Bruno Haible  <bruno@clisp.org>
5146
5147         utimensat: Move AC_LIBOBJ invocations to module description.
5148         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
5149         here...
5150         * modules/utimensat (configure.ac): ... to here.
5151
5152 2011-05-22  Bruno Haible  <bruno@clisp.org>
5153
5154         usleep: Move AC_LIBOBJ invocations to module description.
5155         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
5156         here...
5157         * modules/usleep (configure.ac): ... to here.
5158
5159 2011-05-22  Bruno Haible  <bruno@clisp.org>
5160
5161         unlockpt: Move AC_LIBOBJ invocations to module description.
5162         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
5163         gl_PREREQ_UNLOCKPT invocations from here...
5164         * modules/unlockpt (configure.ac): ... to here.
5165
5166 2011-05-22  Bruno Haible  <bruno@clisp.org>
5167
5168         unlink: Respect rules for use of AC_LIBOBJ.
5169         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
5170         * modules/unlink (configure.ac): ... to here.
5171
5172 2011-05-22  Bruno Haible  <bruno@clisp.org>
5173
5174         uname: Move AC_LIBOBJ invocations to module description.
5175         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
5176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
5177         here...
5178         * modules/uname (configure.ac): ... to here.
5179
5180 2011-05-22  Bruno Haible  <bruno@clisp.org>
5181
5182         ttyname_r: Move AC_LIBOBJ invocations to module description.
5183         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
5184         gl_PREREQ_TTYNAME_R invocations from here...
5185         * modules/ttyname_r (configure.ac): ... to here.
5186
5187 2011-05-22  Bruno Haible  <bruno@clisp.org>
5188
5189         tsearch: Move AC_LIBOBJ invocations to module description.
5190         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
5191         invocations from here...
5192         * modules/tsearch (configure.ac): ... to here.
5193
5194 2011-05-22  Bruno Haible  <bruno@clisp.org>
5195
5196         towctrans: Move AC_LIBOBJ invocations to module description.
5197         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
5198         AC_LIBOBJ invocation from here...
5199         * modules/towctrans (configure.ac): ... to here.
5200
5201 2011-05-22  Bruno Haible  <bruno@clisp.org>
5202
5203         tmpfile: Move AC_LIBOBJ invocations to module description.
5204         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
5205         invocations from here...
5206         * modules/tmpfile (configure.ac): ... to here.
5207
5208 2011-05-22  Bruno Haible  <bruno@clisp.org>
5209
5210         times: Move AC_LIBOBJ invocations to module description.
5211         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
5212         * modules/times (configure.ac): ... to here.
5213
5214 2011-05-22  Bruno Haible  <bruno@clisp.org>
5215
5216         time_r: Move AC_LIBOBJ invocations to module description.
5217         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
5218         invocations from here...
5219         * modules/time_r (configure.ac): ... to here.
5220
5221 2011-05-22  Bruno Haible  <bruno@clisp.org>
5222
5223         timegm: Move AC_LIBOBJ invocations to module description.
5224         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
5225         invocations from here...
5226         * modules/timegm (configure.ac): ... to here.
5227
5228 2011-05-22  Bruno Haible  <bruno@clisp.org>
5229
5230         tcgetsid: Move AC_LIBOBJ invocations to module description.
5231         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
5232         and gl_PREREQ_TCGETSID invocations from here...
5233         * modules/tcgetsid (configure.ac): ... to here.
5234         (Depends-on): Update conditions.
5235
5236 2011-05-22  Bruno Haible  <bruno@clisp.org>
5237
5238         symlinkat: Move AC_LIBOBJ invocations to module description.
5239         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
5240         here...
5241         * modules/symlinkat (configure.ac): ... to here.
5242
5243 2011-05-22  Bruno Haible  <bruno@clisp.org>
5244
5245         symlink: Move AC_LIBOBJ invocations to module description.
5246         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
5247         here...
5248         * modules/symlink (configure.ac): ... to here.
5249
5250 2011-05-22  Bruno Haible  <bruno@clisp.org>
5251
5252         strverscmp: Move AC_LIBOBJ invocations to module description.
5253         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
5254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
5255         from here...
5256         * modules/strverscmp (configure.ac): ... to here.
5257
5258 2011-05-22  Bruno Haible  <bruno@clisp.org>
5259
5260         strtok_r: Move AC_LIBOBJ invocations to module description.
5261         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
5262         and gl_PREREQ_STRTOK_R invocations from here...
5263         * modules/strtok_r (configure.ac): ... to here.
5264         (Depends-on): Update conditions.
5265
5266 2011-05-22  Bruno Haible  <bruno@clisp.org>
5267
5268         strtoumax: Move AC_LIBOBJ invocations to module description.
5269         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
5270         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
5271         from here...
5272         * modules/strtoumax (configure.ac): ... to here.
5273
5274 2011-05-22  Bruno Haible  <bruno@clisp.org>
5275
5276         strtoimax: Move AC_LIBOBJ invocations to module description.
5277         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
5278         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
5279         from here...
5280         * modules/strtoimax (configure.ac): ... to here.
5281
5282 2011-05-22  Bruno Haible  <bruno@clisp.org>
5283
5284         strtoull: Move AC_LIBOBJ invocations to module description.
5285         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
5286         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
5287         from here...
5288         * modules/strtoull (configure.ac): ... to here.
5289
5290 2011-05-22  Bruno Haible  <bruno@clisp.org>
5291
5292         strtoll: Move AC_LIBOBJ invocations to module description.
5293         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
5294         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
5295         here...
5296         * modules/strtoll (configure.ac): ... to here.
5297
5298 2011-05-22  Bruno Haible  <bruno@clisp.org>
5299
5300         strtoul: Move AC_LIBOBJ invocations to module description.
5301         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
5302         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5303         * modules/strtoul (configure.ac): ... to here.
5304
5305 2011-05-22  Bruno Haible  <bruno@clisp.org>
5306
5307         strtol: Move AC_LIBOBJ invocations to module description.
5308         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
5309         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5310         * modules/strtol (configure.ac): ... to here.
5311
5312 2011-05-22  Bruno Haible  <bruno@clisp.org>
5313
5314         strtod: Move AC_LIBOBJ invocations to module description.
5315         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
5316         invocations from here...
5317         * modules/strtod (configure.ac): ... to here.
5318
5319 2011-05-22  Bruno Haible  <bruno@clisp.org>
5320
5321         strstr*: Move AC_LIBOBJ invocations to module description.
5322         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
5323         invocations from here...
5324         * modules/strstr-simple (configure.ac): ... to here.
5325         * modules/strstr (configure.ac): ... and here.
5326
5327 2011-05-22  Bruno Haible  <bruno@clisp.org>
5328
5329         strsignal: Move AC_LIBOBJ invocations to module description.
5330         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
5331         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
5332         * modules/strsignal (configure.ac): ... to here.
5333         (Depends-on): Update conditions.
5334
5335 2011-05-22  Bruno Haible  <bruno@clisp.org>
5336
5337         strsep: Move AC_LIBOBJ invocations to module description.
5338         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
5339         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
5340         here...
5341         * modules/strsep (configure.ac): ... to here.
5342
5343 2011-05-22  Bruno Haible  <bruno@clisp.org>
5344
5345         strptime: Move AC_LIBOBJ invocations to module description.
5346         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
5347         gl_PREREQ_STRPTIME invocations from here...
5348         * modules/strptime (configure.ac): ... to here.
5349
5350 2011-05-22  Bruno Haible  <bruno@clisp.org>
5351
5352         strpbrk: Move AC_LIBOBJ invocations to module description.
5353         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
5354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
5355         here...
5356         * modules/strpbrk (configure.ac): ... to here.
5357
5358 2011-05-22  Bruno Haible  <bruno@clisp.org>
5359
5360         strnlen: Move AC_LIBOBJ invocations to module description.
5361         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
5362         invocations from here...
5363         * modules/strnlen (configure.ac): ... to here.
5364
5365 2011-05-22  Bruno Haible  <bruno@clisp.org>
5366
5367         strndup: Move AC_LIBOBJ invocations to module description.
5368         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
5369         invocations from here...
5370         * modules/strndup (configure.ac): ... to here.
5371         (Depends-on): Update conditions.
5372
5373 2011-05-22  Bruno Haible  <bruno@clisp.org>
5374
5375         strncat: Move AC_LIBOBJ invocations to module description.
5376         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5377         invocations from here...
5378         * modules/strncat (configure.ac): ... to here.
5379
5380 2011-05-22  Bruno Haible  <bruno@clisp.org>
5381
5382         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
5383         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
5384         invocations from here...
5385         * modules/strdup (configure.ac): ... to here.
5386         * modules/strdup-posix (configure.ac): ... and here.
5387
5388 2011-05-22  Bruno Haible  <bruno@clisp.org>
5389
5390         strcspn: Move AC_LIBOBJ invocations to module description.
5391         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
5392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
5393         here...
5394         * modules/strcspn (configure.ac): ... to here.
5395
5396 2011-05-22  Bruno Haible  <bruno@clisp.org>
5397
5398         strchrnul: Move AC_LIBOBJ invocations to module description.
5399         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
5400         gl_PREREQ_STRCHRNUL invocations from here...
5401         * modules/strchrnul (configure.ac): ... to here.
5402
5403 2011-05-22  Bruno Haible  <bruno@clisp.org>
5404
5405         strcasestr*: Move AC_LIBOBJ invocations to module description.
5406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5407         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
5408         * modules/strcasestr-simple (configure.ac): ... to here.
5409         * modules/strcasestr (configure.ac): ... and here.
5410
5411 2011-05-22  Bruno Haible  <bruno@clisp.org>
5412
5413         strcase: Move AC_LIBOBJ invocations to module description.
5414         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
5415         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
5416         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
5417         gl_PREREQ_STRNCASECMP invocations from here...
5418         * modules/strcase (configure.ac): ... to here.
5419
5420 2011-05-22  Bruno Haible  <bruno@clisp.org>
5421
5422         stpncpy: Move AC_LIBOBJ invocations to module description.
5423         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
5424         here...
5425         * modules/stpncpy (configure.ac): ... to here.
5426
5427 2011-05-22  Bruno Haible  <bruno@clisp.org>
5428
5429         stpcpy: Move AC_LIBOBJ invocations to module description.
5430         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
5431         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
5432         here...
5433         * modules/stpcpy (configure.ac): ... to here.
5434
5435 2011-05-21  Bruno Haible  <bruno@clisp.org>
5436
5437         stat: Move AC_LIBOBJ invocations to module description.
5438         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
5439         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
5440         here...
5441         * modules/stat (configure.ac): ... to here.
5442
5443 2011-05-21  Bruno Haible  <bruno@clisp.org>
5444
5445         sleep: Move AC_LIBOBJ invocations to module description.
5446         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
5447         * modules/sleep (configure.ac): ... to here.
5448
5449 2011-05-21  Bruno Haible  <bruno@clisp.org>
5450
5451         signbit: Move AC_LIBOBJ invocations to module description.
5452         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
5453         * modules/signbit (configure.ac): ... to here.
5454
5455 2011-05-21  Bruno Haible  <bruno@clisp.org>
5456
5457         sigprocmask: Move AC_LIBOBJ invocations to module description.
5458         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
5459         gl_PREREQ_SIGPROMASK invocations from here...
5460         * modules/sigprocmask (configure.ac): ... to here.
5461
5462 2011-05-21  Bruno Haible  <bruno@clisp.org>
5463
5464         sigaction: Move AC_LIBOBJ invocations to module description.
5465         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
5466         gl_PREREQ_SIGACTION invocations from here...
5467         * modules/sigaction (configure.ac): ... to here.
5468
5469 2011-05-21  Bruno Haible  <bruno@clisp.org>
5470
5471         sig2str: Move AC_LIBOBJ invocations to module description.
5472         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
5473         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
5474         here...
5475         * modules/sig2str (configure.ac): ... to here.
5476
5477 2011-05-21  Bruno Haible  <bruno@clisp.org>
5478
5479         setlocale: Move AC_LIBOBJ invocations to module description.
5480         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
5481         gl_PREREQ_SETLOCALE invocations from here...
5482         * modules/setlocale (configure.ac): ... to here.
5483
5484 2011-05-21  Bruno Haible  <bruno@clisp.org>
5485
5486         unsetenv: Move AC_LIBOBJ invocations to module description.
5487         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
5488         and gl_PREREQ_UNSETENV invocations from here...
5489         * modules/unsetenv (configure.ac): ... to here.
5490         (Depends-on): Update.
5491
5492 2011-05-21  Bruno Haible  <bruno@clisp.org>
5493
5494         setenv: Move AC_LIBOBJ invocations to module description.
5495         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
5496         here...
5497         * modules/setenv (configure.ac): ... to here.
5498
5499 2011-05-21  Bruno Haible  <bruno@clisp.org>
5500
5501         selinux-h: Move AC_LIBOBJ invocations to module description.
5502         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
5503         AC_LIBOBJ invocation from here...
5504         * modules/selinux-h (configure.ac): ... to here.
5505
5506 2011-05-21  Bruno Haible  <bruno@clisp.org>
5507
5508         select: Respect rules for use of AC_LIBOBJ.
5509         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
5510         here...
5511         * modules/select (configure.ac): ... to here.
5512
5513 2011-05-21  Bruno Haible  <bruno@clisp.org>
5514
5515         scandir: Move AC_LIBOBJ invocations to module description.
5516         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
5517         invocations from here...
5518         * modules/scandir (configure.ac): ... to here.
5519
5520 2011-05-21  Bruno Haible  <bruno@clisp.org>
5521
5522         rpmatch: Move AC_LIBOBJ invocations to module description.
5523         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
5524         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
5525         here...
5526         * modules/rpmatch (configure.ac): ... to here.
5527
5528 2011-05-21  Bruno Haible  <bruno@clisp.org>
5529
5530         rmdir: Respect rules for use of AC_LIBOBJ.
5531         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
5532         * modules/rmdir (configure.ac): ... to here.
5533
5534 2011-05-21  Bruno Haible  <bruno@clisp.org>
5535
5536         renameat: Move AC_LIBOBJ invocations to module description.
5537         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
5538         here...
5539         * modules/renameat (configure.ac): ... to here.
5540
5541 2011-05-21  Bruno Haible  <bruno@clisp.org>
5542
5543         rename: Respect rules for use of AC_LIBOBJ.
5544         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
5545         here...
5546         * modules/rename (configure.ac): ... to here.
5547
5548 2011-05-21  Bruno Haible  <bruno@clisp.org>
5549
5550         remove: Move AC_LIBOBJ invocations to module description.
5551         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
5552         here...
5553         * modules/remove (configure.ac): ... to here.
5554
5555 2011-05-21  Bruno Haible  <bruno@clisp.org>
5556
5557         relocatable-lib: Move AC_LIBOBJ invocations to module description.
5558         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
5559         macro.
5560         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
5561         * modules/relocatable-lib (configure.ac): ... to here.
5562         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5563         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
5564
5565 2011-05-21  Bruno Haible  <bruno@clisp.org>
5566
5567         relocatable-prog: Move AC_LIBOBJ invocations to module description.
5568         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
5569         here...
5570         * modules/relocatable-prog (configure.ac): ... to here.
5571
5572 2011-05-21  Bruno Haible  <bruno@clisp.org>
5573
5574         regex: Move AC_LIBOBJ invocations to module description.
5575         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
5576         invocations from here...
5577         * modules/regex (configure.ac): ... to here.
5578
5579 2011-05-21  Bruno Haible  <bruno@clisp.org>
5580
5581         realloc-*: Move AC_LIBOBJ invocations to module description.
5582         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
5583         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
5584         AC_LIBOBJ invocations from here...
5585         * modules/realloc-gnu (configure.ac): ... to here.
5586         * modules/realloc-posix (configure.ac): ... and here.
5587
5588 2011-05-21  Bruno Haible  <bruno@clisp.org>
5589
5590         readutmp: Move AC_LIBOBJ invocations to module description.
5591         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
5592         * modules/readutmp (configure.ac): ... to here.
5593
5594 2011-05-21  Bruno Haible  <bruno@clisp.org>
5595
5596         readlinkat: Move AC_LIBOBJ invocations to module description.
5597         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
5598         here...
5599         * modules/readlinkat (configure.ac): ... to here.
5600
5601 2011-05-21  Bruno Haible  <bruno@clisp.org>
5602
5603         readlink: Move AC_LIBOBJ invocations to module description.
5604         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
5605         gl_PREREQ_READLINK invocations from here...
5606         * modules/readlink (configure.ac): ... to here.
5607
5608 2011-05-21  Bruno Haible  <bruno@clisp.org>
5609
5610         readline: Move AC_LIBOBJ invocations to module description.
5611         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
5612         gl_PREREQ_READLINE invocations from here...
5613         * modules/readline (configure.ac): ... to here.
5614
5615 2011-05-21  Bruno Haible  <bruno@clisp.org>
5616
5617         read: Move AC_LIBOBJ invocations to module description.
5618         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
5619         * modules/read (configure.ac): ... to here.
5620
5621 2011-05-21  Bruno Haible  <bruno@clisp.org>
5622
5623         rawmemchr: Move AC_LIBOBJ invocations to module description.
5624         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
5625         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
5626         from here...
5627         * modules/rawmemchr (configure.ac): ... to here.
5628
5629 2011-05-21  Bruno Haible  <bruno@clisp.org>
5630
5631         random_r: Move AC_LIBOBJ invocations to module description.
5632         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
5633         gl_PREREQ_RANDOM_R invocations from here...
5634         * modules/random_r (configure.ac): ... to here.
5635
5636 2011-05-21  Bruno Haible  <bruno@clisp.org>
5637
5638         pwrite: Move AC_LIBOBJ invocations to module description.
5639         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
5640         * modules/pwrite (configure.ac): ... to here.
5641
5642 2011-05-21  Bruno Haible  <bruno@clisp.org>
5643
5644         putenv: Move AC_LIBOBJ invocations to module description.
5645         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
5646         * modules/putenv (configure.ac): ... to here.
5647
5648 2011-05-21  Bruno Haible  <bruno@clisp.org>
5649
5650         login_tty: Move AC_LIBOBJ invocations to module description.
5651         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
5652         * modules/login_tty (configure.ac): ... to here.
5653
5654 2011-05-21  Bruno Haible  <bruno@clisp.org>
5655
5656         openpty: Move AC_LIBOBJ invocations to module description.
5657         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
5658         * modules/openpty (configure.ac): ... to here.
5659
5660 2011-05-21  Bruno Haible  <bruno@clisp.org>
5661
5662         forkpty: Move AC_LIBOBJ invocations to module description.
5663         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
5664         * modules/forkpty (configure.ac): ... to here.
5665
5666 2011-05-21  Bruno Haible  <bruno@clisp.org>
5667
5668         ptsname: Move AC_LIBOBJ invocations to module description.
5669         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5670         invocations from here...
5671         * modules/ptsname (configure.ac): ... to here.
5672
5673 2011-05-21  Bruno Haible  <bruno@clisp.org>
5674
5675         pread: Move AC_LIBOBJ invocations to module description.
5676         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5677         * modules/pread (configure.ac): ... to here.
5678
5679 2011-05-21  Bruno Haible  <bruno@clisp.org>
5680
5681         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5682         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5683         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5684         * modules/posix_spawn (configure.ac): ... to here.
5685         * modules/posix_spawnp (configure.ac): ... and here.
5686
5687 2011-05-21  Bruno Haible  <bruno@clisp.org>
5688
5689         popen: Move AC_LIBOBJ invocations to module description.
5690         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5691         invocations from here...
5692         * modules/popen (configure.ac): ... to here.
5693
5694 2011-05-21  Bruno Haible  <bruno@clisp.org>
5695
5696         poll: Move AC_LIBOBJ invocations to module description.
5697         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5698         invocations from here...
5699         * modules/poll (configure.ac): ... to here.
5700
5701 2011-05-21  Bruno Haible  <bruno@clisp.org>
5702
5703         pipe-posix: Move AC_LIBOBJ invocations to module description.
5704         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5705         * modules/pipe-posix (configure.ac): ... to here.
5706
5707 2011-05-21  Bruno Haible  <bruno@clisp.org>
5708
5709         openat: Respect rules for use of AC_LIBOBJ.
5710         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5711         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5712         * modules/openat (configure.ac): ... to here.
5713
5714 2011-05-21  Bruno Haible  <bruno@clisp.org>
5715
5716         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5717         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5718         invocation from here...
5719         * modules/obstack-printf (configure.ac): ... to here.
5720         * modules/obstack-printf-posix (configure.ac): ... and here.
5721
5722 2011-05-21  Bruno Haible  <bruno@clisp.org>
5723
5724         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5725         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5726         from here...
5727         * modules/nl_langinfo (configure.ac): ... to here.
5728
5729 2011-05-21  Bruno Haible  <bruno@clisp.org>
5730
5731         nanosleep: Move AC_LIBOBJ invocations to module description.
5732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5733         gl_PREREQ_NANOSLEEP invocations from here...
5734         * modules/nanosleep (configure.ac): ... to here.
5735
5736 2011-05-21  Bruno Haible  <bruno@clisp.org>
5737
5738         mountlist: Move AC_LIBOBJ invocations to module description.
5739         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5740         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5741         * modules/mountlist (configure.ac): ... to here.
5742
5743 2011-05-21  Bruno Haible  <bruno@clisp.org>
5744
5745         mktime: Respect rules for use of AC_LIBOBJ.
5746         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5747         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5748         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5749         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5750         * modules/mktime (configure.ac): ... to here.
5751         * modules/mktime-internal (configure.ac): ... and here.
5752         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5753
5754 2011-05-21  Bruno Haible  <bruno@clisp.org>
5755
5756         mkstemps: Move AC_LIBOBJ invocations to module description.
5757         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5758         here...
5759         * modules/mkstemps (configure.ac): ... to here.
5760
5761 2011-05-21  Bruno Haible  <bruno@clisp.org>
5762
5763         mkstemp: Move AC_LIBOBJ invocations to module description.
5764         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5765         gl_PREREQ_MKSTEMP invocations from here...
5766         * modules/mkstemp (configure.ac): ... to here.
5767
5768 2011-05-21  Bruno Haible  <bruno@clisp.org>
5769
5770         mkostemps: Move AC_LIBOBJ invocations to module description.
5771         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5772         here...
5773         * modules/mkostemps (configure.ac): ... to here.
5774
5775 2011-05-21  Bruno Haible  <bruno@clisp.org>
5776
5777         mkostemp: Move AC_LIBOBJ invocations to module description.
5778         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5779         gl_PREREQ_MKOSTEMP invocations from here...
5780         * modules/mkostemp (configure.ac): ... to here.
5781
5782 2011-05-21  Bruno Haible  <bruno@clisp.org>
5783
5784         mknod: Move AC_LIBOBJ invocations to module description.
5785         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5786         * modules/mknod (configure.ac): ... to here.
5787
5788 2011-05-21  Bruno Haible  <bruno@clisp.org>
5789
5790         mkfifoat: Move AC_LIBOBJ invocations to module description.
5791         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5792         here...
5793         * modules/mkfifoat (configure.ac): ... to here.
5794
5795 2011-05-21  Bruno Haible  <bruno@clisp.org>
5796
5797         mkfifo: Respect rules for use of AC_LIBOBJ.
5798         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5799         here...
5800         * modules/mkfifo (configure.ac): ... to here.
5801
5802 2011-05-21  Bruno Haible  <bruno@clisp.org>
5803
5804         mkdtemp: Move AC_LIBOBJ invocations to module description.
5805         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5806         invocations from here...
5807         * modules/mkdtemp (configure.ac): ... to here.
5808
5809 2011-05-21  Bruno Haible  <bruno@clisp.org>
5810
5811         mkdir: Move AC_LIBOBJ invocations to module description.
5812         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5813         * modules/mkdir (configure.ac): ... to here.
5814
5815 2011-05-21  Bruno Haible  <bruno@clisp.org>
5816
5817         memset: Move AC_LIBOBJ invocations to module description.
5818         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5820         here...
5821         * modules/memset (configure.ac): ... to here.
5822
5823 2011-05-21  Bruno Haible  <bruno@clisp.org>
5824
5825         memrchr: Move AC_LIBOBJ invocations to module description.
5826         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5828         here...
5829         * modules/memrchr (configure.ac): ... to here.
5830
5831 2011-05-21  Bruno Haible  <bruno@clisp.org>
5832
5833         mempcpy: Move AC_LIBOBJ invocations to module description.
5834         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5835         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5836         here...
5837         * modules/mempcpy (configure.ac): ... to here.
5838
5839 2011-05-21  Bruno Haible  <bruno@clisp.org>
5840
5841         memmove: Move AC_LIBOBJ invocations to module description.
5842         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5844         here...
5845         * modules/memmove (configure.ac): ... to here.
5846
5847 2011-05-21  Bruno Haible  <bruno@clisp.org>
5848
5849         memmem*: Move AC_LIBOBJ invocations to module description.
5850         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5851         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5852         here...
5853         (gl_FUNC_MEMMEM): ... and here...
5854         * modules/memmem-simple (configure.ac): ... to here.
5855         * modules/memmem (configure.ac): ... and here.
5856
5857 2011-05-21  Bruno Haible  <bruno@clisp.org>
5858
5859         memcpy: Move AC_LIBOBJ invocations to module description.
5860         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5861         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5862         here...
5863         * modules/memcpy (configure.ac): ... to here.
5864
5865 2011-05-21  Bruno Haible  <bruno@clisp.org>
5866
5867         memcmp: Simplify autoconf macro.
5868         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5869         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5870         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5871
5872 2011-05-21  Bruno Haible  <bruno@clisp.org>
5873
5874         memcmp: Move AC_LIBOBJ invocations to module description.
5875         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5876         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5877         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5878         * modules/memcmp (configure.ac): ... to here.
5879         (Depends-on): Update conditions.
5880
5881 2011-05-21  Bruno Haible  <bruno@clisp.org>
5882
5883         memchr: Respect rules for use of AC_LIBOBJ.
5884         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5885         invocations from here...
5886         * modules/memchr (configure.ac): ... to here.
5887
5888 2011-05-21  Bruno Haible  <bruno@clisp.org>
5889
5890         mbtowc: Move AC_LIBOBJ invocations to module description.
5891         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5892         invocations from here...
5893         * modules/mbtowc (configure.ac): ... to here.
5894
5895 2011-05-21  Bruno Haible  <bruno@clisp.org>
5896
5897         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5898         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5899         gl_PREREQ_MBSRTOWCS invocations from here...
5900         * modules/mbsrtowcs (configure.ac): ... to here.
5901
5902 2011-05-21  Bruno Haible  <bruno@clisp.org>
5903
5904         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5905         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5906         gl_PREREQ_MBSNRTOWCS invocations from here...
5907         * modules/mbsnrtowcs (configure.ac): ... to here.
5908
5909 2011-05-21  Bruno Haible  <bruno@clisp.org>
5910
5911         mbsinit: Move AC_LIBOBJ invocations to module description.
5912         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5913         invocations from here...
5914         * modules/mbsinit (configure.ac): ... to here.
5915
5916 2011-05-21  Bruno Haible  <bruno@clisp.org>
5917
5918         mbrlen: Move AC_LIBOBJ invocations to module description.
5919         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5920         invocations from here...
5921         * modules/mbrlen (configure.ac): ... to here.
5922
5923 2011-05-21  Bruno Haible  <bruno@clisp.org>
5924
5925         mbrtowc: Respect rules for use of AC_LIBOBJ.
5926         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5927         invocations from here...
5928         * modules/mbrtowc (configure.ac): ... to here.
5929
5930 2011-05-21  Bruno Haible  <bruno@clisp.org>
5931
5932         malloc-*: Move AC_LIBOBJ invocations to module description.
5933         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5934         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5935         AC_LIBOBJ invocations from here...
5936         * modules/malloc-gnu (configure.ac): ... to here.
5937         * modules/malloc-posix (configure.ac): ... and here.
5938
5939 2011-05-21  Bruno Haible  <bruno@clisp.org>
5940
5941         lstat, openat: Respect rules for use of AC_LIBOBJ.
5942         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5943         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5944         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5945         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5946         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5947         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5948         here.
5949         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5950
5951 2011-05-21  Bruno Haible  <bruno@clisp.org>
5952
5953         lseek: Move AC_LIBOBJ invocations to module description.
5954         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5955         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5956         * modules/lseek (configure.ac): ... to here.
5957
5958 2011-05-21  Bruno Haible  <bruno@clisp.org>
5959
5960         linkat: Move AC_LIBOBJ invocations to module description.
5961         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5962         here...
5963         * modules/linkat (configure.ac): ... to here.
5964
5965 2011-05-21  Bruno Haible  <bruno@clisp.org>
5966
5967         link: Respect rules for use of AC_LIBOBJ.
5968         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5969         * modules/link (configure.ac): ... to here.
5970
5971 2011-05-21  Bruno Haible  <bruno@clisp.org>
5972
5973         lchown: Move AC_LIBOBJ invocations to module description.
5974         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5975         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5976         * modules/lchown (configure.ac): ... to here.
5977
5978 2011-05-21  Bruno Haible  <bruno@clisp.org>
5979
5980         iswctype: Move AC_LIBOBJ invocations to module description.
5981         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5982         here...
5983         * modules/iswctype (configure.ac): ... to here.
5984
5985 2011-05-21  Bruno Haible  <bruno@clisp.org>
5986
5987         iswblank: Move AC_LIBOBJ invocations to module description.
5988         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5989         here...
5990         * modules/iswblank (configure.ac): ... to here.
5991
5992 2011-05-21  Bruno Haible  <bruno@clisp.org>
5993
5994         atanl: Move AC_LIBOBJ invocations to module description.
5995         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5996         * modules/atanl (configure.ac): ... to here.
5997
5998 2011-05-21  Bruno Haible  <bruno@clisp.org>
5999
6000         acosl: Move AC_LIBOBJ invocations to module description.
6001         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
6002         * modules/acosl (configure.ac): ... to here.
6003
6004 2011-05-21  Bruno Haible  <bruno@clisp.org>
6005
6006         asinl: Respect rules for use of AC_LIBOBJ.
6007         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
6008         * modules/asinl (configure.ac): ... to here.
6009
6010 2011-05-21  Bruno Haible  <bruno@clisp.org>
6011
6012         tanl: Move AC_LIBOBJ invocations to module description.
6013         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
6014         * modules/tanl (configure.ac): ... to here.
6015
6016 2011-05-21  Bruno Haible  <bruno@clisp.org>
6017
6018         cosl: Move AC_LIBOBJ invocations to module description.
6019         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
6020         * modules/cosl (configure.ac): ... to here.
6021
6022 2011-05-21  Bruno Haible  <bruno@clisp.org>
6023
6024         sinl: Move AC_LIBOBJ invocations to module description.
6025         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
6026         * modules/sinl (configure.ac): ... to here.
6027
6028 2011-05-21  Bruno Haible  <bruno@clisp.org>
6029
6030         logl: Move AC_LIBOBJ invocations to module description.
6031         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
6032         * modules/logl (configure.ac): ... to here.
6033
6034 2011-05-21  Bruno Haible  <bruno@clisp.org>
6035
6036         expl: Move AC_LIBOBJ invocations to module description.
6037         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
6038         * modules/expl (configure.ac): ... to here.
6039
6040 2011-05-21  Bruno Haible  <bruno@clisp.org>
6041
6042         roundl: Move AC_LIBOBJ invocations to module description.
6043         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
6044         * modules/roundl (configure.ac): ... to here.
6045
6046 2011-05-21  Bruno Haible  <bruno@clisp.org>
6047
6048         round: Move AC_LIBOBJ invocations to module description.
6049         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
6050         * modules/round (configure.ac): ... to here.
6051
6052 2011-05-21  Bruno Haible  <bruno@clisp.org>
6053
6054         roundf: Move AC_LIBOBJ invocations to module description.
6055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
6056         * modules/roundf (configure.ac): ... to here.
6057
6058 2011-05-21  Bruno Haible  <bruno@clisp.org>
6059
6060         truncl: Move AC_LIBOBJ invocations to module description.
6061         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
6062         * modules/truncl (configure.ac): ... to here.
6063
6064 2011-05-21  Bruno Haible  <bruno@clisp.org>
6065
6066         trunc: Move AC_LIBOBJ invocations to module description.
6067         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
6068         * modules/trunc (configure.ac): ... to here.
6069
6070 2011-05-21  Bruno Haible  <bruno@clisp.org>
6071
6072         truncf: Move AC_LIBOBJ invocations to module description.
6073         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
6074         * modules/truncf (configure.ac): ... to here.
6075
6076 2011-05-21  Bruno Haible  <bruno@clisp.org>
6077
6078         ceill: Move AC_LIBOBJ invocations to module description.
6079         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
6080         * modules/ceill (configure.ac): ... to here.
6081
6082 2011-05-21  Bruno Haible  <bruno@clisp.org>
6083
6084         ceil: Move AC_LIBOBJ invocations to module description.
6085         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
6086         * modules/ceil (configure.ac): ... to here.
6087
6088 2011-05-21  Bruno Haible  <bruno@clisp.org>
6089
6090         ceilf: Move AC_LIBOBJ invocations to module description.
6091         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
6092         * modules/ceilf (configure.ac): ... to here.
6093
6094 2011-05-21  Bruno Haible  <bruno@clisp.org>
6095
6096         floorl: Respect rules for use of AC_LIBOBJ.
6097         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
6098         * modules/floorl (configure.ac): ... to here.
6099
6100 2011-05-21  Bruno Haible  <bruno@clisp.org>
6101
6102         floor: Respect rules for use of AC_LIBOBJ.
6103         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
6104         * modules/floor (configure.ac): ... to here.
6105
6106 2011-05-21  Bruno Haible  <bruno@clisp.org>
6107
6108         floorf: Move AC_LIBOBJ invocations to module description.
6109         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
6110         * modules/floorf (configure.ac): ... to here.
6111
6112 2011-05-20  Bruno Haible  <bruno@clisp.org>
6113
6114         sqrtl: Respect rules for use of AC_LIBOBJ.
6115         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
6116         * modules/sqrtl (configure.ac): ... to here.
6117
6118 2011-05-20  Bruno Haible  <bruno@clisp.org>
6119
6120         ldexpl: Respect rules for use of AC_LIBOBJ.
6121         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
6122         * modules/ldexpl (configure.ac): ... to here.
6123
6124 2011-05-20  Bruno Haible  <bruno@clisp.org>
6125
6126         frexpl*: Respect rules for use of AC_LIBOBJ.
6127         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
6128         invocation from here...
6129         * modules/frexpl (configure.ac): ... to here.
6130         * modules/frexpl-nolibm (configure.ac): ... and here.
6131
6132 2011-05-20  Bruno Haible  <bruno@clisp.org>
6133
6134         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
6135         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
6136         invocation from here...
6137         * modules/frexp (configure.ac): ... to here.
6138         * modules/frexp-nolibm (configure.ac): ... and here.
6139
6140 2011-05-20  Bruno Haible  <bruno@clisp.org>
6141
6142         isnan: Respect rules for use of AC_LIBOBJ.
6143         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
6144         invocations here.
6145         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
6146         REPLACE_ISNAN.
6147         * modules/isnand (configure.ac): Likewise.
6148         * modules/isnanl (configure.ac): Likewise.
6149
6150 2011-05-20  Bruno Haible  <bruno@clisp.org>
6151
6152         isnanl*: Respect rules for use of AC_LIBOBJ.
6153         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
6154         invocation from here...
6155         * modules/isnanl (configure.ac): ... to here.
6156         * modules/isnanl-nolibm (configure.ac): ... and here.
6157
6158 2011-05-20  Bruno Haible  <bruno@clisp.org>
6159
6160         isnand*: Move AC_LIBOBJ invocations to module description.
6161         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
6162         invocation from here...
6163         * modules/isnand (configure.ac): ... to here.
6164         * modules/isnand-nolibm (configure.ac): ... and here.
6165
6166 2011-05-20  Bruno Haible  <bruno@clisp.org>
6167
6168         isnanf*: Move AC_LIBOBJ invocations to module description.
6169         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
6170         invocation from here...
6171         * modules/isnanf (configure.ac): ... to here.
6172         * modules/isnanf-nolibm (configure.ac): ... and here.
6173
6174 2011-05-20  Bruno Haible  <bruno@clisp.org>
6175
6176         isnan*: Separate the AC_LIBOBJ invocations.
6177         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
6178         AC_LIBOBJ invocation.
6179         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
6180         here.
6181         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
6182         AC_LIBOBJ invocation.
6183         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
6184         here.
6185         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
6186         AC_LIBOBJ invocation.
6187         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
6188         here.
6189         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
6190
6191 2011-05-08  Bruno Haible  <bruno@clisp.org>
6192
6193         isinf: Move AC_LIBOBJ invocations to module description.
6194         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
6195         * modules/isinf (configure.ac): ... to here.
6196
6197 2011-05-08  Bruno Haible  <bruno@clisp.org>
6198
6199         isfinite: Move AC_LIBOBJ invocations to module description.
6200         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
6201         * modules/isfinite (configure.ac): ... to here.
6202
6203 2011-05-08  Bruno Haible  <bruno@clisp.org>
6204
6205         isblank: Move AC_LIBOBJ invocations to module description.
6206         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
6207         here...
6208         * modules/isblank (configure.ac): ... to here.
6209
6210 2011-05-08  Bruno Haible  <bruno@clisp.org>
6211
6212         isapipe: Move AC_LIBOBJ invocations to module description.
6213         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
6214         gl_PREREQ_ISAPIPE invocations from here...
6215         * modules/isapipe (configure.ac): ... to here.
6216         (Depends-on): Update condition.
6217
6218 2011-05-08  Bruno Haible  <bruno@clisp.org>
6219
6220         ioctl: Move AC_LIBOBJ invocations to module description.
6221         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
6222         invocations from here...
6223         * modules/ioctl (configure.ac): ... to here.
6224         (Depends-on): Update condition.
6225
6226 2011-05-08  Bruno Haible  <bruno@clisp.org>
6227
6228         imaxdiv: Move AC_LIBOBJ invocations to module description.
6229         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
6230         invocations from here...
6231         * modules/imaxdiv (configure.ac): ... to here.
6232
6233 2011-05-08  Bruno Haible  <bruno@clisp.org>
6234
6235         imaxabs: Move AC_LIBOBJ invocations to module description.
6236         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
6237         invocations from here...
6238         * modules/imaxabs (configure.ac): ... to here.
6239
6240 2011-05-08  Bruno Haible  <bruno@clisp.org>
6241
6242         getaddrinfo: Move AC_LIBOBJ invocations to module description.
6243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
6244         AC_LIBOBJ invocations from here...
6245         * modules/getaddrinfo (configure.ac): ... to here.
6246         (Depends-on): Add conditions.
6247
6248 2011-05-08  Bruno Haible  <bruno@clisp.org>
6249
6250         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6251         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
6252         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6253         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
6254         (gl_PREREQ_INET_PTON): ... from here.
6255         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
6256         gl_PREREQ_INET_PTON here.
6257         (Depends-on): Update condition.
6258
6259 2011-05-08  Bruno Haible  <bruno@clisp.org>
6260
6261         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6262         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
6263         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6264         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
6265         (gl_PREREQ_INET_NTOP): ... from here.
6266         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
6267         gl_PREREQ_INET_NTOP here.
6268         (Depends-on): Update condition.
6269
6270 2011-05-08  Bruno Haible  <bruno@clisp.org>
6271
6272         iconv_open: Move AC_LIBOBJ invocations to module description.
6273         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
6274         AC_LIBOBJ invocations from here...
6275         * modules/iconv_open (configure.ac): ... to here.
6276
6277 2011-05-08  Bruno Haible  <bruno@clisp.org>
6278
6279         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
6280         If module 'iconv_open' is among the main modules and module
6281         'iconv_open-utf' is among the tests dependencies, then
6282         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
6283         return the special iconv_t values. Therefore iconv() and iconv_close()
6284         must support these special iconv_t values, already in lib, not only in
6285         tests.
6286         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
6287         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
6288         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
6289         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
6290         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
6291         (Depends-on): Add the dependencies of iconv_open-utf.
6292         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
6293         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
6294         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
6295
6296 2011-05-08  Bruno Haible  <bruno@clisp.org>
6297
6298         group-member: Move AC_LIBOBJ invocations to module description.
6299         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
6300         gl_PREREQ_GROUP_MEMBER invocations from here...
6301         * modules/group-member (configure.ac): ... to here.
6302
6303 2011-05-08  Bruno Haible  <bruno@clisp.org>
6304
6305         grantpt: Move AC_LIBOBJ invocations to module description.
6306         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
6307         invocations from here...
6308         * modules/grantpt (configure.ac): ... to here.
6309
6310 2011-05-08  Bruno Haible  <bruno@clisp.org>
6311
6312         glob: Move AC_LIBOBJ invocations to module description.
6313         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
6314         from here...
6315         * modules/glob (configure.ac): ... to here.
6316
6317 2011-05-08  Bruno Haible  <bruno@clisp.org>
6318
6319         getusershell: Move AC_LIBOBJ invocations to module description.
6320         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
6321         Move AC_LIBOBJ invocation from here...
6322         * modules/getusershell (configure.ac): ... to here.
6323         (Depends-on): Update condition.
6324
6325 2011-05-08  Bruno Haible  <bruno@clisp.org>
6326
6327         gettimeofday: Move AC_LIBOBJ invocations to module description.
6328         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6329         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
6330         gl_PREREQ_GETTIMEOFDAY invocations from here...
6331         * modules/gettimeofday (configure.ac): ... to here.
6332
6333 2011-05-08  Bruno Haible  <bruno@clisp.org>
6334
6335         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
6336         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
6337         just gl_FUNC_TZSET.
6338         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
6339         (gl_FUNC_TZSET_CLOBBER): Remove actions.
6340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
6341         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
6342
6343 2011-05-08  Bruno Haible  <bruno@clisp.org>
6344
6345         getsubopt: Move AC_LIBOBJ invocations to module description.
6346         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
6347         gl_PREREQ_GETSUBOPT invocations from here...
6348         * modules/getsubopt (configure.ac): ... to here.
6349
6350 2011-05-08  Bruno Haible  <bruno@clisp.org>
6351
6352         getpass-gnu: Move AC_LIBOBJ invocations to module description.
6353         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
6354         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
6355         * modules/getpass-gnu (configure.ac): ... to here.
6356
6357 2011-05-08  Bruno Haible  <bruno@clisp.org>
6358
6359         getpass: Move AC_LIBOBJ invocations to module description.
6360         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
6361         gl_PREREQ_GETPASS invocations from here...
6362         * modules/getpass (configure.ac): ... to here.
6363
6364 2011-05-08  Bruno Haible  <bruno@clisp.org>
6365
6366         getpagesize: Move AC_LIBOBJ invocations to module description.
6367         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
6368         from here...
6369         * modules/getpagesize (configure.ac): ... to here.
6370
6371 2011-05-08  Bruno Haible  <bruno@clisp.org>
6372
6373         getopt: Move AC_LIBOBJ invocations to module description.
6374         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
6375         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
6376         invocations from here...
6377         * modules/getopt-gnu (configure.ac): ... to here.
6378         * modules/getopt-posix (configure.ac): ... and here.
6379         (Depends-on): Update condition.
6380
6381 2011-05-08  Bruno Haible  <bruno@clisp.org>
6382
6383         getopt, argp: Respect rules for use of AC_LIBOBJ.
6384         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
6385         (gl_REPLACE_GETOPT_ALWAYS): New macro.
6386         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
6387         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
6388
6389 2011-05-08  Bruno Haible  <bruno@clisp.org>
6390
6391         getlogin_r: Move AC_LIBOBJ invocations to module description.
6392         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
6393         gl_PREREQ_GETLOGIN_R invocations from here...
6394         * modules/getlogin_r (configure.ac): ... to here.
6395
6396 2011-05-08  Bruno Haible  <bruno@clisp.org>
6397
6398         getlogin: Move AC_LIBOBJ invocations to module description.
6399         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
6400         here...
6401         * modules/getlogin (configure.ac): ... to here.
6402
6403 2011-05-08  Bruno Haible  <bruno@clisp.org>
6404
6405         getloadavg: Move AC_LIBOBJ invocations to module description.
6406         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
6407         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
6408         * modules/getloadavg (configure.ac): ... to here.
6409
6410 2011-05-08  Bruno Haible  <bruno@clisp.org>
6411
6412         gethrxtime: Move AC_LIBOBJ invocations to module description.
6413         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
6414         LIB_GETHRXTIME from here...
6415         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
6416         invocations from here...
6417         * modules/gethrxtime (configure.ac): ... to here.
6418
6419 2011-05-08  Bruno Haible  <bruno@clisp.org>
6420
6421         gethostname: Move AC_LIBOBJ invocations to module description.
6422         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
6423         gl_PREREQ_GETHOSTNAME invocations from here...
6424         * modules/gethostname (configure.ac): ... to here.
6425
6426 2011-05-08  Bruno Haible  <bruno@clisp.org>
6427
6428         getgroups: Move AC_LIBOBJ invocations to module description.
6429         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
6430         here...
6431         * modules/getgroups (configure.ac): ... to here.
6432
6433 2011-05-08  Bruno Haible  <bruno@clisp.org>
6434
6435         getdtablesize: Move AC_LIBOBJ invocations to module description.
6436         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
6437         invocation from here...
6438         * modules/getdtablesize (configure.ac): ... to here.
6439
6440 2011-05-08  Bruno Haible  <bruno@clisp.org>
6441
6442         getdomainname: Move AC_LIBOBJ invocations to module description.
6443         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
6444         gl_PREREQ_GETDOMAINNAME invocations from here...
6445         * modules/getdomainname (configure.ac): ... to here.
6446
6447 2011-05-08  Bruno Haible  <bruno@clisp.org>
6448
6449         getline: Move AC_LIBOBJ invocations to module description.
6450         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
6451         invocations from here...
6452         * modules/getline (configure.ac): ... to here.
6453
6454 2011-05-08  Bruno Haible  <bruno@clisp.org>
6455
6456         getline: Simplify.
6457         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
6458         It's already handled through the module dependency.
6459
6460 2011-05-08  Bruno Haible  <bruno@clisp.org>
6461
6462         getdelim: Move AC_LIBOBJ invocations to module description.
6463         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
6464         and gl_PREREQ_GETDELIM invocations from here...
6465         * modules/getdelim (configure.ac): ... to here.
6466         (Depends-on): Fix condition.
6467
6468 2011-05-08  Bruno Haible  <bruno@clisp.org>
6469
6470         getcwd: Move AC_LIBOBJ invocations to module description.
6471         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
6472         invocations from here...
6473         * modules/getcwd (configure.ac): ... to here.
6474
6475 2011-05-08  Bruno Haible  <bruno@clisp.org>
6476
6477         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
6478         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
6479         here...
6480         * modules/getcwd-lgpl (configure.ac): ... to here.
6481
6482 2011-05-07  Bruno Haible  <bruno@clisp.org>
6483
6484         crypto/gc: Move AC_LIBOBJ invocations to module description.
6485         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
6486         * modules/crypto/gc (configure.ac): ... to here.
6487
6488 2011-05-07  Bruno Haible  <bruno@clisp.org>
6489
6490         fwriting: Move AC_LIBOBJ invocations to module description.
6491         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
6492         here...
6493         * modules/fwriting (configure.ac): ... to here.
6494
6495 2011-05-07  Bruno Haible  <bruno@clisp.org>
6496
6497         fwritable: Move AC_LIBOBJ invocations to module description.
6498         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
6499         here...
6500         * modules/fwritable (configure.ac): ... to here.
6501
6502 2011-05-07  Bruno Haible  <bruno@clisp.org>
6503
6504         futimens: Move AC_LIBOBJ invocations to module description.
6505         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
6506         here...
6507         * modules/futimens (configure.ac): ... to here.
6508
6509 2011-05-07  Bruno Haible  <bruno@clisp.org>
6510
6511         ftruncate: Move AC_LIBOBJ invocations to module description.
6512         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
6513         gl_PREREQ_FTRUNCATE invocations from here...
6514         * modules/ftruncate (configure.ac): ... to here.
6515
6516 2011-05-07  Bruno Haible  <bruno@clisp.org>
6517
6518         fsync: Move AC_LIBOBJ invocations to module description.
6519         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
6520         invocations from here...
6521         * modules/fsync (configure.ac): ... to here.
6522
6523 2011-05-07  Bruno Haible  <bruno@clisp.org>
6524
6525         fsusage: Move AC_LIBOBJ invocations to module description.
6526         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
6527         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
6528         * modules/fsusage (configure.ac): ... to here.
6529
6530 2011-05-07  Bruno Haible  <bruno@clisp.org>
6531
6532         freopen: Move AC_LIBOBJ invocations to module description.
6533         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
6534         invocations from here...
6535         * modules/freopen (configure.ac): ... to here.
6536
6537 2011-05-07  Bruno Haible  <bruno@clisp.org>
6538
6539         free: Move AC_LIBOBJ invocations to module description.
6540         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
6541         invocations from here...
6542         * modules/free (configure.ac): ... to here.
6543
6544 2011-05-07  Bruno Haible  <bruno@clisp.org>
6545
6546         freadable: Move AC_LIBOBJ invocations to module description.
6547         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
6548         here...
6549         * modules/freadable (configure.ac): ... to here.
6550
6551 2011-05-07  Bruno Haible  <bruno@clisp.org>
6552
6553         fpurge: Move AC_LIBOBJ invocations to module description.
6554         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
6555         invocations from here...
6556         * modules/fpurge (configure.ac): ... to here.
6557
6558 2011-05-07  Bruno Haible  <bruno@clisp.org>
6559
6560         fpending: Move AC_LIBOBJ invocations to module description.
6561         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
6562         gl_FUNC_FPENDING.
6563         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
6564         invocations from here...
6565         * modules/fpending (configure.ac): ... to here.
6566
6567 2011-05-07  Bruno Haible  <bruno@clisp.org>
6568
6569         fopen: Move AC_LIBOBJ invocations to module description.
6570         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
6571         invocations from here...
6572         * modules/fopen (configure.ac): ... to here.
6573
6574 2011-05-07  Bruno Haible  <bruno@clisp.org>
6575
6576         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
6577         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
6578         gl_FUNC_FNMATCH_POSIX.
6579         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
6580         invocations from here...
6581         * modules/fnmatch (configure.ac): ... to here.
6582         * modules/fnmatch-gnu (configure.ac): ... and here.
6583
6584 2011-05-07  Bruno Haible  <bruno@clisp.org>
6585
6586         flock: Move AC_LIBOBJ invocations to module description.
6587         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
6588         invocations from here...
6589         * modules/flock (configure.ac): ... to here.
6590
6591 2011-05-07  Bruno Haible  <bruno@clisp.org>
6592
6593         fileblocks: Move AC_LIBOBJ invocations to module description.
6594         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
6595         gl_PREREQ_FILEBLOCKS invocations from here...
6596         * modules/fileblocks (configure.ac): ... to here.
6597
6598 2011-05-06  Bruno Haible  <bruno@clisp.org>
6599
6600         fflush: Move AC_LIBOBJ invocations to module description.
6601         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
6602         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
6603         invocations from here...
6604         * modules/fflush (configure.ac): ... to here.
6605
6606 2011-05-06  Bruno Haible  <bruno@clisp.org>
6607
6608         fdopendir: Move AC_LIBOBJ invocations to module description.
6609         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
6610         here...
6611         * modules/fdopendir (configure.ac): ... to here.
6612         (Depends-on): Improve conditions.
6613
6614 2011-05-06  Bruno Haible  <bruno@clisp.org>
6615
6616         _Exit: Move AC_LIBOBJ invocations to module description.
6617         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
6618         invocations from here...
6619         * modules/_Exit (configure.ac): ... to here.
6620
6621 2011-05-21  Bruno Haible  <bruno@clisp.org>
6622
6623         euidaccess: Respect rules for use of AC_LIBOBJ.
6624         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6625         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
6626         from here...
6627         * modules/euidaccess (configure.ac): ... to here.
6628
6629 2011-05-06  Bruno Haible  <bruno@clisp.org>
6630
6631         error: Move AC_LIBOBJ invocations to module description.
6632         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
6633         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
6634         invocations from here...
6635         * modules/error (configure.ac): ... to here.
6636
6637 2011-05-06  Bruno Haible  <bruno@clisp.org>
6638
6639         duplocale: Move AC_LIBOBJ invocations to module description.
6640         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
6641         gl_PREREQ_DUPLOCALE invocations from here...
6642         * modules/duplocale (configure.ac): ... to here.
6643
6644 2011-05-05  Bruno Haible  <bruno@clisp.org>
6645
6646         dirfd: Move AC_LIBOBJ invocations to module description.
6647         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
6648         gl_FUNC_DIRFD.
6649         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
6650         here...
6651         * modules/dirfd (configure.ac): ... to here.
6652         (Depends-on): Fix condition.
6653
6654 2011-05-05  Bruno Haible  <bruno@clisp.org>
6655
6656         chown: Respect rules for use of AC_LIBOBJ.
6657         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
6658         * modules/chown (configure.ac): ... to here.
6659
6660 2011-05-05  Bruno Haible  <bruno@clisp.org>
6661
6662         chdir-long: Move AC_LIBOBJ invocations to module description.
6663         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
6664         gl_PREREQ_CHDIR_LONG invocations from here...
6665         * modules/chdir-long (configure.ac): ... to here.
6666
6667 2011-05-05  Bruno Haible  <bruno@clisp.org>
6668
6669         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6670         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6671         from here...
6672         * modules/canonicalize-lgpl (configure.ac): ... to here.
6673
6674 2011-05-05  Bruno Haible  <bruno@clisp.org>
6675
6676         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6677         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6678         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6679         REPLACE_CALLOC.
6680         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6681         * modules/calloc-gnu (configure.ac): Likewise.
6682
6683 2011-05-05  Bruno Haible  <bruno@clisp.org>
6684
6685         btowc: Move AC_LIBOBJ invocations to module description.
6686         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6687         invocations from here...
6688         * modules/btowc (configure.ac): ... to here.
6689
6690 2011-05-21  Bruno Haible  <bruno@clisp.org>
6691
6692         atexit: Move AC_LIBOBJ invocations to module description.
6693         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6694         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6695         here...
6696         * modules/atexit (configure.ac): ... to here.
6697
6698 2011-05-05  Bruno Haible  <bruno@clisp.org>
6699
6700         atoll: Move AC_LIBOBJ invocations to module description.
6701         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6702         invocations from here...
6703         * modules/atoll (configure.ac): ... to here.
6704
6705 2011-05-05  Bruno Haible  <bruno@clisp.org>
6706
6707         argz: Move AC_LIBOBJ invocations to module description.
6708         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6709         * modules/argz (configure.ac): ... to here.
6710
6711 2011-05-05  Bruno Haible  <bruno@clisp.org>
6712
6713         alphasort: Move AC_LIBOBJ invocations to module description.
6714         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6715         gl_PREREQ_ALPHASORT invocations from here...
6716         * modules/alphasort (configure.ac): ... to here.
6717
6718 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6719
6720         verify: new macro verify_expr; verify_true deprecated
6721         * NEWS: Mention this.
6722         * doc/verify.texi (Compile-time Assertions): Document this.
6723         * lib/verify.h (verify_true): Deprecate.
6724         (verify_expr): New macro.
6725         * tests/test-verify.c (function): Test verify_expr.
6726
6727 2011-06-14  Jim Meyering  <meyering@redhat.com>
6728
6729         init.sh: give more portable redirection-related advice in a comment
6730         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6731         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6732         for lots of discussion.  Stefano Lattarini suggested the solution
6733         of putting "9>&2" after the command.  Reported by Bruno Haible.
6734
6735 2011-06-13  Bruno Haible  <bruno@clisp.org>
6736
6737         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6738         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6739         'none'.
6740
6741 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6742
6743         ftoastr: use strtof only if HAVE_STRTOF
6744         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6746         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6747         * modules/ftoastr (configure.ac): Check for strtof.
6748
6749 2011-06-13  Bruno Haible  <bruno@clisp.org>
6750
6751         gnulib-tool: Addendum to 2011-06-08 commit.
6752         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6753         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6754
6755 2011-06-13  Bruno Haible  <bruno@clisp.org>
6756
6757         fseeko: Provide a non-inline replacement of fseek().
6758         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6759         * modules/fseeko (Depends-on): Add fseek.
6760         * modules/fseek (License): Change to LGPLv2+.
6761
6762 2011-06-13  Bruno Haible  <bruno@clisp.org>
6763
6764         ftello: Provide a non-inline replacement of ftell().
6765         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6766         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6767         not have ftello() (such as on mingw).
6768         * modules/ftello (Depends-on): Add ftell.
6769         * modules/ftell (License): Change to LGPLv2+.
6770
6771 2011-05-07  Bruno Haible  <bruno@clisp.org>
6772
6773         ftell: Move AC_LIBOBJ invocations to module description.
6774         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6775         * modules/ftell (configure.ac): ... to here.
6776
6777 2011-05-07  Bruno Haible  <bruno@clisp.org>
6778
6779         ftello: Respect rules for use of AC_LIBOBJ.
6780         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6781         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6782         here...
6783         * modules/ftello (configure.ac): ... to here.
6784
6785 2011-05-07  Bruno Haible  <bruno@clisp.org>
6786
6787         fseeko: Simplify.
6788         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6789         (gl_FUNC_FSEEKO): Inline it here.
6790
6791 2011-05-07  Bruno Haible  <bruno@clisp.org>
6792
6793         fseek: Move AC_LIBOBJ invocations to module description.
6794         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6795         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6796         * modules/fseek (configure.ac): ... to here.
6797
6798 2011-05-07  Bruno Haible  <bruno@clisp.org>
6799
6800         fseek: Respect rules for use of AC_LIBOBJ.
6801         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6802         here...
6803         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6804
6805 2011-05-07  Bruno Haible  <bruno@clisp.org>
6806
6807         fseeko: Respect rules for use of AC_LIBOBJ.
6808         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6809         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6810         here...
6811         * modules/fseeko (configure.ac): ... to here.
6812
6813 2011-06-13  Bruno Haible  <bruno@clisp.org>
6814
6815         gnulib-tool: Allow comments in the 'Depends-on' section.
6816         * doc/gnulib.texi (Module description): Mention comment syntax in the
6817         Depends-on section.
6818         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6819
6820 2011-06-13  Bruno Haible  <bruno@clisp.org>
6821
6822         file-set.h: guard __attibute__ use, now that it's not always defined
6823         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6824         versions that support it.  This fixes a coreutils build failure with
6825         the vendor cc on HP-UX 11.31.
6826
6827 2011-06-12  Bruno Haible  <bruno@clisp.org>
6828
6829         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6830         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6831         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6832         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6833         (acl, aclsort): New declarations.
6834         (aclv_nontrivial): New declaration.
6835         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6836         (file_has_acl): Read also the second kind of HP-UX ACLs.
6837         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6838         kind of HP-UX ACLs if the first kind fails.
6839         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6840         second kind of HP-UX ACLs.
6841         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6842         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6843         agree.
6844         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6845         hpuxjfs.
6846         Handle hpuxjfs.
6847         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6848         hpuxjfs.
6849         Handle hpuxjfs.
6850         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6851         (func_test_same_acls): Use both lsacl and getacl.
6852         Handle hpuxjfs.
6853         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6854         (func_test_same_acls): Use both lsacl and getacl.
6855         Handle hpuxjfs.
6856
6857 2011-06-12  Bruno Haible  <bruno@clisp.org>
6858
6859         acl: Complete the 2010-08-10 fix.
6860         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6861         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6862         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6863         explicitly.
6864         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6865         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6866
6867 2011-06-12  Bruno Haible  <bruno@clisp.org>
6868
6869         spawn-pipe tests: Comments.
6870         * tests/test-spawn-pipe-child.c (main): Update comment.
6871         Reported by James Youngman <jay@gnu.org>.
6872
6873 2011-06-11  James Youngman  <jay@gnu.org>
6874
6875         New module 'stat-size'.
6876         * modules/stat-size: New module.  Provides macros for accessing
6877         file size information in instances of struct stat.  Depends on the
6878         fileblocks module because it calls st_blocks.
6879         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6880         * doc/gnulib.texi: Include stat-size.texi.
6881         * doc/stat-size.texi: Documentation for this module.
6882         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6883         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6884         AC_STRUCT_ST_BLOCKS.
6885
6886 2011-06-09  Bruno Haible  <bruno@clisp.org>
6887
6888         thread: Support pthreads-win32.
6889         * lib/glthread/thread.h (gl_thread_self): Define differently on
6890         pthreads-win32.
6891         (gl_null_thread): New declaration.
6892         (gl_thread_self_pointer): New macro.
6893         * lib/glthread/thread.c (gl_null_thread): New constant.
6894         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6895         gl_thread_self.
6896         * tests/test-tls.c: Likewise.
6897         Suggested by Paul Eggert. Reported by Eric Blake.
6898
6899 2011-06-09  Bruno Haible  <bruno@clisp.org>
6900
6901         thread: Fix confusion between NULL and 0.
6902         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6903         Reported by Paul Eggert.
6904
6905 2011-06-09  Bruno Haible  <bruno@clisp.org>
6906
6907         spawn-pipe tests: Avoid test failure on HP-UX 11.
6908         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6909         is closed.
6910
6911 2011-06-09  Bruno Haible  <bruno@clisp.org>
6912
6913         acl tests: Fix compilation error on HP-UX 11.
6914         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6915
6916 2011-06-09  Bruno Haible  <bruno@clisp.org>
6917
6918         rmdir: Avoid test failure on HP-UX 10.20.
6919         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6920         EEXIST.
6921
6922 2011-06-08  Eric Blake  <eblake@redhat.com>
6923
6924         perror: fix test on mingw
6925         * modules/perror-tests (Depends-on): Add dup2.
6926
6927         strerror_r-posix: fix on MacOS
6928         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6929         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6930         logic bug.
6931         * lib/strerror_r.c (strerror_r): Fix the bug.
6932         * lib/strerror.c (strerror): Likewise.
6933         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6934         problem.
6935         * doc/posix-functions/strerror.texi (strerror): Likewise.
6936         * doc/posix-functions/perror.texi (perror): Likewise.
6937         * tests/test-strerror.c (main): Enhance test.
6938         * tests/test-strerror_r.c (main): Likewise.
6939
6940 2011-06-08  Bruno Haible  <bruno@clisp.org>
6941
6942         gnulib-tool: Better isolation between different gnulib-tool invocations.
6943         * gnulib-tool: New option --witness-c-macro.
6944         (witness_c_macro): New variable.
6945         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6946         AM_CPPFLAGS define it as a C macro.
6947         (func_emit_tests_Makefile_am): Likewise.
6948         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6949         read it from there.
6950         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6951         m4_define, not AC_DEFUN.
6952         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6953         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6954         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6955         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6956         s|...|...|, to substitute the values of the GNULIB_* module indicator
6957         variables.
6958         * modules/dirent (Makefile.am): Likewise.
6959         * modules/fcntl-h (Makefile.am): Likewise.
6960         * modules/iconv-h (Makefile.am): Likewise.
6961         * modules/langinfo (Makefile.am): Likewise.
6962         * modules/locale (Makefile.am): Likewise.
6963         * modules/math (Makefile.am): Likewise.
6964         * modules/netdb (Makefile.am): Likewise.
6965         * modules/poll-h (Makefile.am): Likewise.
6966         * modules/pty (Makefile.am): Likewise.
6967         * modules/search (Makefile.am): Likewise.
6968         * modules/signal (Makefile.am): Likewise.
6969         * modules/spawn (Makefile.am): Likewise.
6970         * modules/stdio (Makefile.am): Likewise.
6971         * modules/stdlib (Makefile.am): Likewise.
6972         * modules/string (Makefile.am): Likewise.
6973         * modules/sys_ioctl (Makefile.am): Likewise.
6974         * modules/sys_select (Makefile.am): Likewise.
6975         * modules/sys_socket (Makefile.am): Likewise.
6976         * modules/sys_stat (Makefile.am): Likewise.
6977         * modules/sys_times (Makefile.am): Likewise.
6978         * modules/sys_utsname (Makefile.am): Likewise.
6979         * modules/sys_wait (Makefile.am): Likewise.
6980         * modules/termios (Makefile.am): Likewise.
6981         * modules/time (Makefile.am): Likewise.
6982         * modules/unistd (Makefile.am): Likewise.
6983         * modules/wchar (Makefile.am): Likewise.
6984
6985 2011-06-08  Eric Blake  <eblake@redhat.com>
6986
6987         strerror: simplify replacement
6988         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6989         * modules/strerror (configure.ac): No prereqs needed here...
6990         * modules/strerror-override (configure.ac): ...but this needs it.
6991         (Files): Add file for needed prereq macro.
6992
6993 2011-06-08  Bruno Haible  <bruno@clisp.org>
6994
6995         strerror_r-posix: Tweaks.
6996         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6997         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6998         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6999         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
7000         (gl_FUNC_STRERROR_R): ... to here.
7001         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
7002
7003 2011-06-07  Eric Blake  <eblake@redhat.com>
7004
7005         perror: document fixed bugs
7006         * doc/posix-functions/perror.texi (perror): Document recent
7007         patches.
7008
7009 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7010
7011         stat-time: get_stat_birthtime failure is better-defined
7012         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
7013         return a timestamp whose tv_sec and tv_nsec values are both -1.
7014         Previously, the spec said only that the tv_nsec value was negative.
7015         This upward-compatible change simplifies GNU tar a bit.
7016
7017 2011-06-07  Eric Blake  <eblake@redhat.com>
7018
7019         strerror_r-posix: work around cygwin 1.7.9
7020         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
7021         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
7022         bug without replacing strerror_r.
7023         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
7024         strerror_r is buggy, but without requiring strerror_r compilation.
7025         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
7026
7027         test-perror: relax test to ignore cygwin bug
7028         * tests/test-perror2.c (main): Relax test on requiring detection
7029         of stream errors, and use unbuffered stream.
7030         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
7031         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
7032         * doc/posix-functions/fputc.texi (fputc): Likewise.
7033         * doc/posix-functions/fputs.texi (fputs): Likewise.
7034         * doc/posix-functions/fputws.texi (fputws): Likewise.
7035         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
7036         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
7037         * doc/posix-functions/getopt.texi (getopt): Likewise.
7038         * doc/posix-functions/perror.texi (perror): Likewise.
7039         * doc/posix-functions/printf.texi (printf): Likewise.
7040         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
7041         * doc/posix-functions/psignal.texi (psignal): Likewise.
7042         * doc/posix-functions/putc.texi (putc): Likewise.
7043         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
7044         Likewise.
7045         * doc/posix-functions/putchar.texi (putchar): Likewise.
7046         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
7047         Likewise.
7048         * doc/posix-functions/puts.texi (puts): Likewise.
7049         * doc/posix-functions/putwc.texi (putwc): Likewise.
7050         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
7051         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
7052         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7053         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
7054         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7055         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7056         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
7057         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
7058
7059 2011-05-22  Bruno Haible  <bruno@clisp.org>
7060
7061         strerror: Move AC_LIBOBJ invocations to module description.
7062         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
7063         gl_PREREQ_STRERROR invocations from here...
7064         * modules/strerror (configure.ac): ... to here.
7065
7066 2011-05-21  Bruno Haible  <bruno@clisp.org>
7067
7068         perror: Use common idiom.
7069         * modules/perror (configure.ac): Reorder statements.
7070
7071 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7072
7073         tests: fix usage message in 'mktempd_'
7074         * tests/init.sh (mktempd_): In the usage message, use literal
7075         'mktempd_', not '$ME' (which is even undefined), as the name of
7076         the subroutine.
7077
7078 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7079
7080         tests init: new function 'fatal_', for hard errors
7081         Before this patch, the only way offered by tests/init.sh to
7082         properly signal a hard error was the `framework_failure_'
7083         function.  But the error message issued by that function,
7084         as its name would suggest, refers to a set-up failure in the
7085         testsuite, while hard errors can obviously also be due to
7086         other reasons.  The best way to fix this inconsistency is to
7087         introduce a new function with a more general error message.
7088         * tests/init.sh (fatal_): New function.
7089
7090 2011-06-06  Eric Blake  <eblake@redhat.com>
7091
7092         canonicalize-lgpl: use common idiom
7093         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
7094         over newer POSIX -Rf.
7095         Reported by Bruno Haible.
7096
7097         canonicalize-lgpl: work around AIX realpath bug
7098         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
7099         * doc/posix-functions/realpath.texi (realpath): Document it.
7100         Reported by Bruno Haible.
7101
7102         strerror: work around FreeBSD bug
7103         * lib/strerror.c (strerror): Special case 0.
7104         Reported by Bruno Haible.
7105
7106         strerror-override: avoid bloating errno module
7107         * modules/errno (Files, configure.ac): Move replacement strings...
7108         * modules/strerror-override: ...to new module.
7109         * modules/strerror (Depends-on): Add strerror-override.
7110         * modules/strerror_r-posix (Depends-on): Likewise.
7111         * MODULES.html.sh: Document new module.
7112         Reported by Bruno Haible.
7113
7114 2011-06-06  Bruno Haible  <bruno@clisp.org>
7115
7116         spawn-pipe tests: Rename program.
7117         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
7118         * tests/test-spawn-pipe-child.c: Update comment.
7119         * tests/test-spawn-pipe.sh: Update.
7120         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
7121
7122         spawn-pipe tests: Link the child program only against libc.
7123         * tests/test-spawn-pipe-child.c: New file, extracted from
7124         tests/test-spawn-pipe.c.
7125         (main): Expect only one argument.
7126         (is_open): New function, copied from tests/test-pipe.c.
7127         * tests/test-spawn-pipe.c: Don't include <errno.h>.
7128         (child_main): Remove function.
7129         (test_pipe): Pass only one argument to the child program.
7130         (main): Remove child process code. Expect the child program's name as
7131         first argument.
7132         * tests/test-spawn-pipe.sh: Pass the child program's name as first
7133         argument.
7134         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
7135         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
7136         test-spawn-pipe-child against no libraries.
7137
7138 2011-06-06  Bruno Haible  <bruno@clisp.org>
7139
7140         careadlinkat: Avoid mismatch between ssize_t and int.
7141         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
7142         * lib/careadlinkat.c (careadlinkatcwd): Define always.
7143
7144 2011-06-06  Jim Meyering  <meyering@redhat.com>
7145
7146         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
7147         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
7148         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
7149
7150 2011-06-05  Bruno Haible  <bruno@clisp.org>
7151
7152         ansi-c++-opt: Interoperability with libtool.
7153         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
7154         set the variable to "no", not to ":".
7155         * NEWS: Mention the change.
7156
7157 2011-06-05  Bruno Haible  <bruno@clisp.org>
7158
7159         acl: Fix test failure on AIX 7.
7160         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
7161         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
7162
7163 2011-06-05  Bruno Haible  <bruno@clisp.org>
7164
7165         pipe-filter-ii: Fix test failure on AIX and IRIX.
7166         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
7167         with EAGAIN, retry with a smaller buffer size.
7168
7169 2011-06-05  Bruno Haible  <bruno@clisp.org>
7170
7171         localename: Fix link dependencies.
7172         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
7173         * modules/localename-tests (Makefile.am): Link test-localename with
7174         $(LIBTHREAD).
7175
7176 2011-06-05  Bruno Haible  <bruno@clisp.org>
7177
7178         error: Avoid gcc warning.
7179         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
7180
7181 2011-06-05  Bruno Haible  <bruno@clisp.org>
7182
7183         unsetenv: Avoid gcc warning.
7184         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
7185
7186 2011-06-05  Bruno Haible  <bruno@clisp.org>
7187
7188         setenv: Avoid gcc warning.
7189         * lib/setenv.c (setenv): Provide declaration if system lacks it.
7190
7191 2011-06-05  Bruno Haible  <bruno@clisp.org>
7192
7193         sys_select: Ensure memset is declared also on AIX 7.
7194         * lib/sys_select.in.h: Include <string.h> also on AIX.
7195         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
7196         self-contained also on AIX 7.1.
7197
7198 2011-06-04  Jim Meyering  <meyering@redhat.com>
7199
7200         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
7201         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
7202         function name, "error".
7203         (_gl_translatable_diag_func_re): New configurable variable.
7204
7205 2011-06-04  Bruno Haible  <bruno@clisp.org>
7206
7207         getopt: Avoid gcc warning.
7208         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
7209
7210 2011-06-04  Bruno Haible  <bruno@clisp.org>
7211
7212         strerror_r: Fix comments.
7213         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
7214         commit.
7215
7216 2011-06-04  Bruno Haible  <bruno@clisp.org>
7217
7218         perror: Fix compilation error.
7219         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
7220         Undefine fprintf, not sprintf.
7221         * modules/perror (Depends-on): Remove intprops, verify.
7222
7223 2011-06-04  Bruno Haible  <bruno@clisp.org>
7224
7225         setlocale: Enable replacement on Cygwin 1.5.
7226         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
7227         Cygwin 1.5.x.
7228         * doc/posix-functions/setlocale.texi: Mention that the problem with the
7229         LC_CTYPE category also exists on Cygwin 1.5.x.
7230
7231 2011-06-04  Bruno Haible  <bruno@clisp.org>
7232
7233         strerror-override: Don't disable symbol renamings.
7234         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
7235         * lib/strerror-override.c: Include config.h.
7236         (strerror_override): Don't undefine.
7237
7238 2011-06-03  Bruno Haible  <bruno@clisp.org>
7239
7240         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
7241         * lib/localename.h: Update copyright header.
7242         * lib/localename.c: Likewise.
7243         * lib/relocatable.h: Likewise.
7244         * lib/relocatable.c: Likewise.
7245
7246 2011-06-02  Bruno Haible  <bruno@clisp.org>
7247
7248         doc: Fix a module name.
7249         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
7250
7251 2011-06-02  Bruno Haible  <bruno@clisp.org>
7252
7253         pipe2: Remove dependency on 'nonblocking' module.
7254         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
7255         O_NONBLOCK is defined by gnulib.
7256         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
7257         is zero.
7258         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
7259         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
7260         defined by gnulib.
7261         (get_nonblocking_flag): New function.
7262         (main): Test O_NONBLOCK flag only if it is nonzero.
7263         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
7264
7265 2011-06-03  Jim Meyering  <meyering@redhat.com>
7266
7267         maint: three new prohibit-header-without-use rules
7268         Prohibit use of cloexec.h, posixver.h, same.h without use.
7269         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
7270         (sc_prohibit_posixver_without_use): Likewise.
7271         (sc_prohibit_same_without_use): Likewise.
7272
7273 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7274
7275         allocator: 'die' routine is now given requested size
7276         * lib/allocator.h (struct allocator.die): New size arg.
7277         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
7278         If the actual problem is an ssize_t limitation, not a size_t or
7279         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
7280
7281 2011-06-01  Eric Blake  <eblake@redhat.com>
7282
7283         strerror: drop strerror_r dependency
7284         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
7285         * lib/strerror-override.c (strerror_override): ...to new file.
7286         * lib/strerror-override.h: Add prototype.
7287         * lib/strerror-impl.h: Delete.
7288         * lib/strerror.c (strerror): New implementation.
7289         * modules/errno (Files): Add new files.
7290         (configure.ac): Compile new file as appropriate.
7291         * modules/strerror (Files): Drop unused file.
7292         (Depends-on): Drop strerror_r-posix.
7293         * MODULES.html.sh: Document strerror_r-posix.
7294         Requested by Sam Steingold.
7295
7296         perror: call strerror_r directly
7297         * modules/perror (Files): Drop strerror-impl.h.
7298         * lib/perror.c (perror): Use our own stack buffer, rather than
7299         calling a wrapper that uses static storage.
7300         * doc/posix-functions/perror.texi (perror): Document a limitation
7301         of our replacement.
7302
7303         strerror_r: fix includes for FreeBSD
7304         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
7305         since we use abort on some platforms.
7306         Reported by Matthias Bolte.
7307
7308 2011-05-31  Bruno Haible  <bruno@clisp.org>
7309
7310         Fix link errors in tests: openat-die uses gettext-h.
7311         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
7312         against $(LIBINTL).
7313         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
7314         against $(LIBINTL).
7315         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
7316         $(LIBINTL).
7317         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
7318         against $(LIBINTL).
7319         * modules/linkat-tests (Makefile.am): Link test-linkat against
7320         $(LIBINTL).
7321         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
7322         $(LIBINTL).
7323         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
7324         against $(LIBINTL).
7325         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
7326         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
7327         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
7328         $(LIBINTL).
7329         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
7330         $(LIBINTL).
7331         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
7332         $(LIBINTL).
7333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7334
7335 2011-05-31  Bruno Haible  <bruno@clisp.org>
7336
7337         Fix link errors in tests: wait-process uses gettext-h.
7338         * modules/nonblocking-pipe-tests (Makefile.am): Set
7339         test_nonblocking_pipe_main_LDADD.
7340         * modules/nonblocking-socket-tests (Makefile.am): Link
7341         test-nonblocking-socket-main against $(LIBINTL).
7342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7343
7344 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7345
7346         assert-h: work around 'verify' incompatibility
7347         * lib/verify.h: Use @...@ directives, not ifdef.
7348         * modules/assert-h (assert.h): Implement the directives.
7349         (assert.h): Substitute the symbol-prefix more consistently.
7350
7351 2011-05-29  Jim Meyering  <meyering@redhat.com>
7352
7353         trim: remove three superfluous assignments
7354         * lib/trim.c (trim2): Remove three superfluous assignments
7355         and correct brace positioning.
7356
7357 2011-05-29  Bruno Haible  <bruno@clisp.org>
7358
7359         wctype-h: Avoid namespace pollution on Solaris 2.6.
7360         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
7361         identifiers.
7362         * doc/posix-headers/wctype.texi: Mention the problem.
7363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7364
7365 2011-05-28  Jim Meyering  <meyering@redhat.com>
7366
7367         parse-datetime.y: accommodate -Wstrict-overflow
7368         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
7369         placate -Wstrict-overflow.
7370
7371         trim: avoid a warning from -O2 -Wstrict-overflow
7372         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
7373
7374 2011-05-29  Bruno Haible  <bruno@clisp.org>
7375
7376         gnulib-tool: Fix bug in yesterday's commit.
7377         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
7378         twice.
7379
7380 2011-05-29  Bruno Haible  <bruno@clisp.org>
7381
7382         Allow multiple gnulib generated include files to be combined.
7383         * gnulib-tool (func_compute_include_guard_prefix): New function.
7384         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
7385         ${gl_include_guard_prefix} references.
7386         (func_import, func_create_testdir): Invoke
7387         func_compute_include_guard_prefix.
7388         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
7389         * lib/ctype.in.h: Likewise.
7390         * lib/dirent.in.h: Likewise.
7391         * lib/errno.in.h: Likewise.
7392         * lib/fcntl.in.h: Likewise.
7393         * lib/float.in.h: Likewise.
7394         * lib/getopt.in.h: Likewise.
7395         * lib/iconv.in.h: Likewise.
7396         * lib/langinfo.in.h: Likewise.
7397         * lib/locale.in.h: Likewise.
7398         * lib/math.in.h: Likewise.
7399         * lib/netdb.in.h: Likewise.
7400         * lib/netinet_in.in.h: Likewise.
7401         * lib/poll.in.h: Likewise.
7402         * lib/pthread.in.h: Likewise.
7403         * lib/pty.in.h: Likewise.
7404         * lib/sched.in.h: Likewise.
7405         * lib/se-selinux.in.h: Likewise.
7406         * lib/search.in.h: Likewise.
7407         * lib/signal.in.h: Likewise.
7408         * lib/spawn.in.h: Likewise.
7409         * lib/stdarg.in.h: Likewise.
7410         * lib/stddef.in.h: Likewise.
7411         * lib/stdint.in.h: Likewise.
7412         * lib/stdio.in.h: Likewise.
7413         * lib/stdlib.in.h: Likewise.
7414         * lib/string.in.h: Likewise.
7415         * lib/strings.in.h: Likewise.
7416         * lib/sys_file.in.h: Likewise.
7417         * lib/sys_ioctl.in.h: Likewise.
7418         * lib/sys_select.in.h: Likewise.
7419         * lib/sys_socket.in.h: Likewise.
7420         * lib/sys_stat.in.h: Likewise.
7421         * lib/sys_time.in.h: Likewise.
7422         * lib/sys_times.in.h: Likewise.
7423         * lib/sys_uio.in.h: Likewise.
7424         * lib/sys_utsname.in.h: Likewise.
7425         * lib/sys_wait.in.h: Likewise.
7426         * lib/sysexits.in.h: Likewise.
7427         * lib/termios.in.h: Likewise.
7428         * lib/time.in.h: Likewise.
7429         * lib/unistd.in.h: Likewise.
7430         * lib/wchar.in.h: Likewise.
7431         * lib/wctype.in.h: Likewise.
7432         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
7433         * modules/ctype (Makefile.am): Likewise.
7434         * modules/dirent (Makefile.am): Likewise.
7435         * modules/errno (Makefile.am): Likewise.
7436         * modules/fcntl-h (Makefile.am): Likewise.
7437         * modules/float (Makefile.am): Likewise.
7438         * modules/getopt-posix (Makefile.am): Likewise.
7439         * modules/iconv-h (Makefile.am): Likewise.
7440         * modules/langinfo (Makefile.am): Likewise.
7441         * modules/locale (Makefile.am): Likewise.
7442         * modules/math (Makefile.am): Likewise.
7443         * modules/netdb (Makefile.am): Likewise.
7444         * modules/netinet_in (Makefile.am): Likewise.
7445         * modules/poll-h (Makefile.am): Likewise.
7446         * modules/pthread (Makefile.am): Likewise.
7447         * modules/pty (Makefile.am): Likewise.
7448         * modules/sched (Makefile.am): Likewise.
7449         * modules/search (Makefile.am): Likewise.
7450         * modules/selinux-h (Makefile.am): Likewise.
7451         * modules/signal (Makefile.am): Likewise.
7452         * modules/spawn (Makefile.am): Likewise.
7453         * modules/stdarg (Makefile.am): Likewise.
7454         * modules/stddef (Makefile.am): Likewise.
7455         * modules/stdint (Makefile.am): Likewise.
7456         * modules/stdio (Makefile.am): Likewise.
7457         * modules/stdlib (Makefile.am): Likewise.
7458         * modules/string (Makefile.am): Likewise.
7459         * modules/strings (Makefile.am): Likewise.
7460         * modules/sys_file (Makefile.am): Likewise.
7461         * modules/sys_ioctl (Makefile.am): Likewise.
7462         * modules/sys_select (Makefile.am): Likewise.
7463         * modules/sys_socket (Makefile.am): Likewise.
7464         * modules/sys_stat (Makefile.am): Likewise.
7465         * modules/sys_time (Makefile.am): Likewise.
7466         * modules/sys_times (Makefile.am): Likewise.
7467         * modules/sys_uio (Makefile.am): Likewise.
7468         * modules/sys_utsname (Makefile.am): Likewise.
7469         * modules/sys_wait (Makefile.am): Likewise.
7470         * modules/sysexits (Makefile.am): Likewise.
7471         * modules/termios (Makefile.am): Likewise.
7472         * modules/time (Makefile.am): Likewise.
7473         * modules/unistd (Makefile.am): Likewise.
7474         * modules/wchar (Makefile.am): Likewise.
7475         * modules/wctype-h (Makefile.am): Likewise.
7476         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
7477
7478 2011-05-29  Bruno Haible  <bruno@clisp.org>
7479
7480         assert-h: Allow multiple gnulib generated replacements to coexist.
7481         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
7482
7483 2011-05-29  Bruno Haible  <bruno@clisp.org>
7484
7485         argp: Allow coexistence with strerror_r-posix module.
7486         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
7487         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
7488         by gnulib's <string.h> replacement), assume it has the POSIX signature,
7489         not the glibc signature.
7490
7491 2011-05-28  Bruno Haible  <bruno@clisp.org>
7492
7493         gnulib-tool: Alternative structure of testdirs, similar to --import.
7494         * gnulib-tool: New option --single-configure.
7495         (func_usage): Document it.
7496         (single_configure): New variable.
7497         (func_modules_transitive_closure_separately,
7498         func_modules_transitive_closure_separately,
7499         func_determine_use_libtests, func_modules_add_dummy_separately,
7500         func_modules_to_filelist_separately): New functions, extracted from
7501         func_import.
7502         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
7503         (func_import): Use the new functions.
7504         (func_create_testdir): Set final_modules. Handle $single_configure =
7505         true case.
7506
7507 2011-05-28  Bruno Haible  <bruno@clisp.org>
7508
7509         getloadavg: Remove an unreliable safety check.
7510         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
7511         getloadavg.c is in place.
7512         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
7513         Reported by Sam Steingold <sds@gnu.org>.
7514
7515 2011-05-28  Bruno Haible  <bruno@clisp.org>
7516
7517         doc: Cleanup yet another file produced by texinfo.tex.
7518         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
7519
7520 2011-05-28  Bruno Haible  <bruno@clisp.org>
7521
7522         Finish the conditional dependencies mechanism.
7523         * gnulib-tool: New option --no-conditional-dependencies.
7524         (func_usage): Document it. Don't mark --conditional-dependencies as
7525         experimental.
7526         (cond_dependencies): The possible values can now be true, false, empty.
7527         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
7528         (func_import): Store setting in gnulib-cache.m4 and read it from there.
7529         * doc/gnulib-tool.texi (Conditional dependencies): New section.
7530
7531 2011-05-28  Bruno Haible  <bruno@clisp.org>
7532
7533         doc: Use a recent texinfo.tex.
7534         * doc/Makefile (tex_opts): New variable.
7535         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
7536
7537 2011-05-28  Jim Meyering  <meyering@redhat.com>
7538
7539         intprops.h: adjust comment to match code change
7540         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
7541         only once, it *may* have side effects.  Also fix an unrelated typo.
7542         (_GL_INT_SIGNED): Likewise.
7543
7544 2011-05-26  Simon Josefsson  <simon@josefsson.org>
7545
7546         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
7547
7548 2011-05-26  Bruno Haible  <bruno@clisp.org>
7549
7550         mbsrchr: Avoid collision with system function on Interix.
7551         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
7552         Reported by Markus Duft <mduft@gentoo.org>.
7553
7554 2011-05-15  James Youngman  <jay@gnu.org>
7555
7556         getopt: for ambiguous options, enumerate the possibilities.
7557         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
7558         the ambiguous options when an ambiguous prefix is given. This was
7559         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
7560         glibc change was
7561         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
7562
7563 2011-05-25  Eric Blake  <eblake@redhat.com>
7564
7565         getcwd: work around mingw bug
7566         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
7567         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7568         Reported by Matthias Bolte.
7569
7570 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7571
7572         test-intprops: disable -Wtype-limits diagnostics
7573         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
7574         diagnostics.  Otherwise, the integer overflow macros generate many
7575         diagnostics.  Reported by Jim Meyering in
7576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7577
7578         intprops: shorten, to pacify gcc -Woverlength-strings
7579         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
7580         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
7581         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
7582         likely to run afoul of C compiler limits for string constant lengths.
7583         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7584
7585 2011-05-24  Eric Blake  <eblake@redhat.com>
7586
7587         docs: document recently fixed glibc printf bug
7588         * doc/posix-functions/fprintf.texi (fprintf): Document it.
7589         * doc/posix-functions/printf.texi (printf): Likewise.
7590         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7591         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7592
7593         closein-tests: convert to init.sh
7594         * modules/closein-tests (Files): Add init.sh
7595         * tests/test-closein.sh Use it.
7596
7597         yesno-tests: convert to init.sh
7598         * modules/yesno-tests (Files): Add init.sh.
7599         * tests/test-yesno.sh: Use it.
7600
7601         atexit-tests: ensure reliable exit status
7602         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
7603         Reported by Bruno Haible.
7604
7605 2011-05-24  Bruno Haible  <bruno@clisp.org>
7606
7607         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
7608         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
7609         gl_PREREQ_STRERROR_R invocations from here...
7610         * modules/strerror_r-posix (configure.ac): ... to here.
7611
7612 2011-05-24  Eric Blake  <eblake@redhat.com>
7613
7614         strerror_r: fix missing header
7615         * lib/strerror_r.c: Avoid compiler warning about snprintf.
7616
7617         strerror_r: fix AIX test failures
7618         * lib/strerror_r.c (strerror_r): Convert silent truncation to
7619         ERANGE failure.
7620
7621         strerror_r: fix Solaris test failures
7622         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
7623         failures.
7624         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7625
7626         strerror_r: enforce POSIX recommendations
7627         * lib/strerror_r.c (safe_copy): New helper method.
7628         (strerror_r): Guarantee a non-empty string.
7629         * tests/test-strerror_r.c (main): Enhance tests to incorporate
7630         recent POSIX rulings and to match our strerror guarantees.
7631         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7632
7633 2011-05-24  Jim Meyering  <meyering@redhat.com>
7634
7635         test-perror2.c: avoid warning about unused variable
7636         * tests/test-perror2.c (main): Remove declaration of unused "fp".
7637
7638 2011-05-24  Eric Blake  <eblake@redhat.com>
7639
7640         perror: avoid spurious test failure on HP-UX
7641         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
7642
7643         tests: fix logic bug in init.sh
7644         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
7645         shell.
7646
7647 2011-05-24  Jim Meyering  <meyering@redhat.com>
7648
7649         utimensat: do not reference an out-of-scope buffer
7650         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
7651         declared in an inner scope, yet "times" would be dereferenced outside
7652         the scope in which "ts" was valid.
7653         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
7654         of ts[2] "out/up", so that the use of aliased "times" (via
7655         "times = ts;") does not end up referencing an out-of-scope "ts"
7656
7657         opendir-safer.c: don't clobber errno; don't close negative FD
7658         * lib/opendir-safer.c (opendir_safer):
7659         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
7660         file descriptor, and more importantly, don't clobber the
7661         offending errno value with EINVAL.  Before, upon failure
7662         of dup_safer, we would pass the negative file descriptor to
7663         fdopendir, which would clobber errno.
7664
7665 2011-05-23  Bruno Haible  <bruno@clisp.org>
7666
7667         idcache: Fix module description.
7668         * modules/idcache (Include): Set to "idcache.h".
7669
7670 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7671
7672         gnulib-tool: fix portability problem with MacOS sed
7673         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7674         before the "}".  Problem reported by Leo in
7675         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7676         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7677         sed_extract_condition1, sed_extract_condition2.
7678
7679 2011-05-23  Bruno Haible  <bruno@clisp.org>
7680
7681         hash: Simplify autoconf macro.
7682         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7683
7684 2011-05-23  Bruno Haible  <bruno@clisp.org>
7685
7686         getugroups: Fix module description.
7687         * modules/getugroups (Include): Set to "getugroups.h".
7688
7689 2011-05-23  Bruno Haible  <bruno@clisp.org>
7690
7691         linkat: Simplify autoconf macro.
7692         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7693
7694 2011-05-23  Bruno Haible  <bruno@clisp.org>
7695             Eric Blake  <eblake@redhat.com>
7696
7697         linkat, renameat: Update dependencies.
7698         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7699         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7700         symlinkat.
7701
7702 2011-05-23  Jim Meyering  <meyering@redhat.com>
7703
7704         maint.mk: more tight_scope improvements
7705         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7706         (_gl_TS_headers): Define only in if-0'd block.
7707         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7708         sometimes we must *not* use it.  Adjust uses accordingly.
7709         (sc_tight_scope): Use much simpler grep-based test to determine
7710         whether we skip this rule.
7711
7712         maint.mk: generalize/improve the tight-scope rule
7713         * top/maint.mk: Emit a warning when the test is skipped.
7714         (_gl_TS_dir): Add $(srcdir)/ prefix.
7715         (_gl_TS_function_match): Simplify, rather than trying
7716         to enumerate common types.  Otherwise, it would fail to match an
7717         "extern unsigned char const *" declaration in idutils.
7718         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7719         a way to support use of that type of macro.
7720         (_gl_TS_var_match): Simplify regexp.
7721         (_gl_TS_obj_files): New configurable variable.
7722         (_gl_TS_headers): Likewise.
7723
7724 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7725
7726         verify: fix bug when gnulib <assert.h> is also included
7727         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7728         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7729         Perhaps there's a better way, but this fixes the immediate problem.
7730         Problem reported by Bruno Haible in
7731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7732
7733 2011-05-22  Bruno Haible  <bruno@clisp.org>
7734
7735         xgetcwd: Simplify autoconf macro.
7736         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7737
7738 2011-05-22  Bruno Haible  <bruno@clisp.org>
7739
7740         New module 'mktime-internal'.
7741         * modules/mktime-internal: New file.
7742         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7743         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7744         mktime_internal as a C macro if libc has __mktime_internal.
7745         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7746         conditions.
7747         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7748
7749 2011-05-22  Bruno Haible  <bruno@clisp.org>
7750
7751         timegm: Correct mktime replacement statements.
7752         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7753         defining mktime as a C macro. This completes a 2009-07-28 commit.
7754
7755 2011-05-22  Bruno Haible  <bruno@clisp.org>
7756
7757         timegm: Simplify autoconf macro.
7758         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7759
7760 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7761
7762         clock-time: change to LGPLv2+.
7763         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7764         BSD-like but we have no mark for that; this is good enough for now.
7765
7766 2011-05-21  Bruno Haible  <bruno@clisp.org>
7767
7768         strerror_r: Fix comments.
7769         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7770
7771 2011-05-21  Bruno Haible  <bruno@clisp.org>
7772
7773         relocatable-prog-wrapper: Fix possible link error.
7774         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7775         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7776         (gl_FUNC_SETENV): ... to here.
7777         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7778         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7779
7780 2011-05-21  Bruno Haible  <bruno@clisp.org>
7781
7782         relocatable-prog-wrapper: Assume strerror() exists.
7783         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7784         m4/strerror.m4.
7785         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7786         * lib/relocwrapper.c: Remove mention of strerror module.
7787         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7788         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7789         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7790         C macro.
7791
7792 2011-05-21  Bruno Haible  <bruno@clisp.org>
7793
7794         select: Simplify replacement idiom.
7795         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7796         Win32 platforms.
7797         * lib/sys_select.in.h (select): Simplify accordingly.
7798         * modules/select (Depends-on): Likewise.
7799
7800 2011-05-21  Bruno Haible  <bruno@clisp.org>
7801
7802         mkdir-p: Simplify autoconf macro.
7803         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7804         gl_FUNC_LCHOWN.
7805
7806 2011-05-21  Eric Blake  <eblake@redhat.com>
7807
7808         strerror_r: avoid clobbering strerror on cygwin
7809         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7810         fall back instead to sys_errlist.
7811         * modules/strerror (configure.ac): Add witness.
7812         * tests/test-strerror_r.c (main): Enhance test.
7813         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7814         * tests/test-perror2.c (main): Free memory before exit.
7815
7816 2011-05-21  Bruno Haible  <bruno@clisp.org>
7817
7818         mkdtemp: Use gnulib naming conventions.
7819         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7820         * modules/mkdtemp (configure.ac): Update.
7821
7822 2011-05-20  Eric Blake  <eblake@redhat.com>
7823
7824         strerror_r: avoid corrupting errno on Solaris
7825         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7826         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7827
7828         strerror_r: avoid compiler warning
7829         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7830
7831         strerror_r: simplify AIX code
7832         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7833
7834         test-perror: avoid spurious failure on FreeBSD
7835         * modules/perror-tests (Depends-on): Add strerror, now that
7836         strerror_r no longer pulls it in.
7837
7838 2011-05-20  Bruno Haible  <bruno@clisp.org>
7839
7840         strerror_r-posix: Remove unused dependencies.
7841         * modules/strerror_r-posix (Depends-on): Remove strerror.
7842         Reported by Eric Blake.
7843
7844 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7845
7846         intprops: remove assumption about A|B representation
7847         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7848         is a valid integer if both A and B are.  Although this is true for
7849         all known practical hosts, the C standard doesn't guarantee it,
7850         and the code need not assume it.  Also, this change may work around
7851         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7853
7854 2011-05-20  Eric Blake  <eblake@redhat.com>
7855
7856         perror: work around FreeBSD bug
7857         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7858         is broken.  Move AC_LIBOBJ...
7859         * modules/perror (configure.ac): Here.
7860         * doc/posix-functions/perror.texi (perror): Document this.
7861         * tests/test-perror2.c (main): Enhance test.
7862
7863         test-perror: check for strerror interactions
7864         * tests/macros.h (STREQ): Add macro.
7865         * modules/perror-tests (Files): Add second test.
7866         * tests/test-perror2.c (main): New file.
7867         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7868
7869         test-perror: rewrite to use init script
7870         * modules/perror-tests (Files): Add init.sh.
7871         * tests/test-perror.sh: Use temporary directory.
7872
7873 2011-05-20  Jim Meyering  <meyering@redhat.com>
7874
7875         maint: replace misused "a" with "an"
7876         * doc/intprops.texi: "a integer"
7877         * doc/regex.texi: "a explanation"
7878         * lib/alignof.h: "a object"
7879         * lib/argmatch.h: "a explanation"
7880         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7881         * lib/stdint.in.h: "a integer"
7882         * lib/userspec.c: "a owner"
7883         * doc/gnulib.texi: Fix "a idea", and reword.
7884
7885 2011-05-19  Jim Meyering  <meyering@redhat.com>
7886
7887         maint: correct misuse of "a" and "an"
7888         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7889         * lib/argp-help.c: "an docum...": s/an/a/
7890         * lib/argp-parse.c: "An vector": s/An/A/
7891         * lib/execute.c: "an native": s/an/a/
7892         * lib/spawn-pipe.c: Likewise.
7893         * lib/gc.h: "an Gc_rc": s/an/a/
7894         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7895         * lib/fts.c: "an stat.st_dev": s/an/a/
7896
7897 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7898
7899         intprops-tests: work around HP-UX 11.23 cc bug with constants
7900         * tests/test-intprops.c (VERIFY): New macro.
7901         (main): Use it, instead of verify, to work around the compiler bug; see
7902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7903
7904         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7905         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7906         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7907         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7908         (_GL_REMAINDER_OVERFLOW): Use it.
7909
7910         intprops-tests: revert unsigned part of previous change
7911         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7912         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7913         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7915
7916 2011-05-19  Bruno Haible  <bruno@clisp.org>
7917
7918         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7919         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7920         strerror_r() returned without filling the buffer.
7921         Reported by Eric Blake.
7922
7923 2011-05-19  Eric Blake  <eblake@redhat.com>
7924
7925         strerror_r: guarantee unchanged errno
7926         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7927         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7928         failure.
7929         * tests/test-strerror_r.c (main): Enhance test.
7930
7931 2011-05-19  Bruno Haible  <bruno@clisp.org>
7932
7933         strerror_r: Reorder #if blocks.
7934         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7935         for consistency with the previous commit.
7936
7937 2011-05-19  Bruno Haible  <bruno@clisp.org>
7938
7939         perror: Avoid clobbering the strerror buffer when possible.
7940         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7941         * lib/strerror.c: Include it.
7942         * modules/strerror (Files): Add lib/strerror-impl.h.
7943         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7944         (my_strerror): New function, defined through lib/strerror-impl.h.
7945         (perror): Use it instead of strerror.
7946         * modules/perror (Files): Add lib/strerror-impl.h.
7947         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7948
7949 2011-05-19  Eric Blake  <eblake@redhat.com>
7950
7951         strerror_r: fix on newer cygwin
7952         * lib/strerror_r.c (strerror_r): Cygwin now has
7953         __xpg_strerror_r, use it.
7954
7955 2011-05-19  Bruno Haible  <bruno@clisp.org>
7956
7957         strerror_r: Avoid clobbering the strerror buffer when possible.
7958         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7959         (sys_nerr, sys_errlist): New declarations.
7960         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7961         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7962         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7963
7964 2011-05-19  Bruno Haible  <bruno@clisp.org>
7965
7966         strerror_r: Fix test failure on mingw.
7967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7968         EXTEND_STRERROR_R.
7969         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7970         macros from errno.in.h instead.
7971
7972 2011-05-19  Eric Blake  <eblake@redhat.com>
7973
7974         strerror: relax test for Solaris
7975         * tests/test-strerror.c (main): Permit Solaris behavior.
7976         * tests/test-strerror_r.c (main): Likewise.
7977
7978         strerror: enforce POSIX ruling on strerror(0)
7979         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7980         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7981         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7982         * doc/posix-functions/strerror.texi (strerror): Document it.
7983         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7984         * tests/test-strerror.c (main): Strengthen test.
7985         * tests/test-strerror_r.c (main): Likewise.
7986
7987 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7988
7989         intprop-tests: port to older and more-pedantic compilers
7990         * modules/intprops-tests (Files): Add tests/macros.h.
7991         * tests/test-intprops.c: Include macros.h.
7992         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7993         it's no longer documented to expand to an integer constant expression.
7994         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7995         argument is floating point, as it's no longer documented to expand
7996         to an integer constant expression in that case.
7997         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7998         compiler bugs reported by Bruno Haible.  See
7999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8000         (U0, U1): New constants, to work around the same bugs.  Also,
8001         in tests, use e.g., "(unsigned int) 39" rather than "39u".
8002
8003         intprops: work around C compiler bugs
8004         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
8005         bug in Sun C 5.11 2010/08/13 and other compilers; see
8006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8007
8008         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
8009         * doc/intprops.texi (Integer Type Determination): Fix
8010         documentation for TYPE_IS_INTEGER: it returns an constant
8011         expression, not an integer constant expression.  Fix doc for
8012         TYPE_SIGNED: it returns an integer constant expression only if its
8013         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
8014         hardly worth documented that way....)
8015
8016 2011-05-18  Bruno Haible  <bruno@clisp.org>
8017
8018         strerror_r: Avoid clobbering the strerror buffer when possible.
8019         * lib/strerror_r.c (strerror_r): Merge the three implementations.
8020         Handle gnulib defined errno values here. When strerror() returns NULL
8021         or an empty string, return EINVAL.
8022         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
8023         gnulib defined errno values here.
8024         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
8025
8026 2011-05-18  Eric Blake  <eblake@redhat.com>
8027
8028         fnmatch: avoid compiler warning
8029         * lib/fnmatch_loop.c (FCT): Use correct type.
8030         Reported by Matthias Bolte.
8031
8032 2011-05-13  Jim Meyering  <meyering@redhat.com>
8033
8034         maint.mk: three new prohibit_<HDR>_without_use rules
8035         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
8036         (sc_prohibit_stdio-safer_without_use): Likewise.
8037         (sc_prohibit_xfreopen_without_use): Likewise.
8038
8039 2011-05-17  Jim Meyering  <meyering@redhat.com>
8040
8041         announce-gen: fail if the NEWS delta is empty
8042         If there's nothing noteworthy in NEWS, then either you forgot
8043         or you shouldn't be releasing.
8044         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
8045
8046 2011-05-17  Pádraig Brady <P@draigBrady.com>
8047
8048         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
8049         reserved symbols starting with double underscore from the check.
8050
8051 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8052
8053         intprops: add doc
8054         * doc/intprops.texi: New file, documenting intprops.
8055         * doc/gnulib.texi (Particular Modules): Include it.
8056
8057         verify: add doc to gnulib manual and fix example
8058         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
8059         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
8060         (Compile-time Assertions): Fix example so it can't overflow.
8061
8062 2011-05-17  Jim Meyering  <meyering@redhat.com>
8063
8064         warnings.m4: don't usurp save_CPPFLAGS variable name
8065         * m4/warnings.m4: Prefix local temporary variable name with gl_.
8066
8067         doc: fix typo
8068         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
8069
8070 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8071             Bruno Haible  <bruno@clisp.org>
8072
8073         doc: Tweak recent change.
8074         * README (Portability guidelines): Tweak new text.
8075         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
8076         Interix 6.1.
8077
8078 2011-05-16  Eric Blake  <eblake@redhat.com>
8079
8080         inttypes: avoid autoconf warning
8081         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
8082         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8083
8084 2011-05-16  Sam Steingold <sds@gnu.org>
8085         and Eric Blake  <eblake@redhat.com>
8086
8087         vc-list-files: accept multiple directory operands
8088         * build-aux/vc-list-files: Iterate over all remaining operands.
8089
8090 2011-05-16  Bruno Haible  <bruno@clisp.org>
8091
8092         Fix confusion regarding deprecated modules.
8093         * modules/calloc (Status, Notice): Mark module as deprecated, not
8094         obsolete.
8095         * modules/fnmatch-posix (Status, Notice): Likewise.
8096         * modules/getdate (Status, Notice): Likewise.
8097         * modules/getopt (Status, Notice): Likewise.
8098         * modules/malloc (Status, Notice): Likewise.
8099         * modules/pipe (Status, Notice): Likewise.
8100         * modules/realloc (Status, Notice): Likewise.
8101         * modules/rename-dest-slash (Status, Notice): Likewise.
8102         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
8103         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
8104         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
8105         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
8106         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
8107
8108 2011-05-16  Bruno Haible  <bruno@clisp.org>
8109
8110         doc: List the target platforms.
8111         * doc/gnulib-intro.texi (Target Platforms): New section.
8112         * doc/gnulib.texi (Introduction): Update menu.
8113         * README (Portability guidelines): Refer to the new section. Update
8114         statement about oldest supported environment. Remove rationale why
8115         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
8116         unportable C89 function.
8117         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
8118         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
8119
8120 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8121
8122         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
8123
8124 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8125
8126         intprops-tests: new module
8127         * modules/intprops-tests, tests/test-intprops.c: New files.
8128
8129         intprops: add safe, portable integer overflow checking
8130         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
8131         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
8132         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
8133         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
8134         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
8135         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
8136         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
8137         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
8138         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
8139         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
8140         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
8141
8142 2011-05-12  James Youngman  <jay@gnu.org>
8143
8144         Add a test for glibc's Bugzilla bug #12378.
8145         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
8146         doesn't allow the literal matching of a lone "[" (which is
8147         required by POSIX).
8148         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
8149
8150 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
8151
8152         Sync glibc change fixing Bugzilla bug #12378.
8153         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
8154         beginning and fall back to matching as normal character if the
8155         string ends before the matching ']' is found.  This is what POSIX
8156         requires.
8157
8158 2011-05-13  Eric Blake  <eblake@redhat.com>
8159
8160         getcwd-lgpl: relax test for FreeBSD
8161         * doc/posix-functions/getcwd.texi (getcwd): Document portability
8162         issue.
8163         * tests/test-getcwd-lgpl.c (main): Relax test.
8164         Reported by Matthias Bolte.
8165
8166 2011-05-11  Eric Blake  <eblake@redhat.com>
8167
8168         test-fflush: silence compiler warning
8169         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
8170
8171 2011-05-11  Bruno Haible  <bruno@clisp.org>
8172
8173         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
8174         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
8175         * modules/canonicalize (Depends-on): Add 'nocrash'.
8176         * modules/canonicalize-lgpl (Depends-on): Likewise.
8177         * doc/posix-functions/realpath.texi: Update platforms list.
8178         Reported by Ryan Schmidt <ryandesign@macports.org>.
8179
8180 2011-05-11  Bruno Haible  <bruno@clisp.org>
8181
8182         group-member: Declare function in <unistd.h>.
8183         * lib/unistd.in.h (group_member): New declaration.
8184         * lib/group-member.h: Remove file.
8185         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
8186         * tests/test-unistd-c++.cc: Check signature of group_member.
8187         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
8188         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
8189         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
8190         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
8191         HAVE_GROUP_MEMBER.
8192         * modules/group-member (Files): Remove lib/group-member.h.
8193         (Depends-on): Add unistd. Specify conditions.
8194         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8195         (Include): Change to <unistd.h>.
8196         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
8197         HAVE_GROUP_MEMBER.
8198         * NEWS: Mention the change.
8199         * lib/euidaccess.c: Don't include group-member.h.
8200
8201 2011-05-11  Bruno Haible  <bruno@clisp.org>
8202
8203         group-member: Document module.
8204         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
8205         module.
8206
8207 2011-05-11  Bruno Haible  <bruno@clisp.org>
8208
8209         fclose: Fix mistake earlier today.
8210         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
8211
8212 2011-05-11  Eric Blake  <eblake@redhat.com>
8213
8214         fclose: preserve fflush errors
8215         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
8216         Reported by Jim Meyering.
8217
8218         bootstrap: support a prereq of 'rpcgen -' on RHEL5
8219         * build-aux/bootstrap (check_versions): When no specific version
8220         is required, merely check that the app produces an exit status
8221         that indicates its existence.
8222
8223         maint.mk: drop redundant check
8224         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
8225         the same but better.
8226
8227 2011-05-11  Bruno Haible  <bruno@clisp.org>
8228
8229         fclose: Fix possible link error.
8230         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
8231         unregister_shadow_fd. Improve comments.
8232         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
8233         Eric Blake.
8234
8235 2011-05-11  Jim Meyering  <meyering@redhat.com>
8236
8237         maint.mk: improve "can not" detection and generalize rule name
8238         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
8239         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
8240         Use the same technique as in sc_prohibit_doubled_word, so that
8241         we recognize "can not" also when the words are separated by a newline.
8242         Suggested by Eric Blake.
8243         (perl_filename_lineno_text_): Define.  Factored out of...
8244         (prohibit_doubled_word_): ...here.  Use the new definition.
8245         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
8246         (prohibit_undesirable_word_seq_RE_): New overridable variable.
8247         (ignore_undesirable_word_sequence_RE_): New overridable variable.
8248
8249 2011-05-10  Eric Blake  <eblake@redhat.com>
8250
8251         fclose: avoid double close race when possible
8252         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
8253         all but WINDOWS_SOCKETS.
8254
8255 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
8256
8257         openat: correct new comment
8258         * lib/openat-proc.c (openat_proc_name): Correct the comment.
8259
8260 2011-05-10  Jim Meyering  <meyering@redhat.com>
8261
8262         openat: add comments
8263         * lib/openat-proc.c (openat_proc_name): Add comments,
8264         mostly from Eric Blake.
8265
8266 2011-05-09  Eric Blake  <eblake@redhat.com>
8267
8268         openat: reduce syscalls in first probe of /proc
8269         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
8270         be a directory.  Simplify the probe for .. bugs.
8271         * modules/openat (Depends-on): Drop same-inode.
8272         Reported by Bastien ROUCARIES.
8273
8274 2011-05-09  Jim Meyering  <meyering@redhat.com>
8275
8276         maint.mk: change semantics/name of tight_scope variables
8277         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
8278         Rename variables to align with semantics that make them more useful.
8279
8280         maint.mk: tweak new rule's name not to impinge
8281         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
8282         (sc_tight_scope): Use new rule name rather than $@-0.
8283
8284         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
8285         * top/maint.mk (sc_tight_scope): New rule.
8286         (sc_tight_scope-0): New rule, ifdef'd out.
8287         (_gl_TS_dir): Default.
8288         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
8289         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
8290
8291 2011-05-09  Simon Josefsson  <simon@josefsson.org>
8292
8293         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
8294         Haible <bruno@clisp.org>.
8295
8296 2011-05-08  Bruno Haible  <bruno@clisp.org>
8297
8298         Comments.
8299         * m4/isnanf.m4: Add comment.
8300         * m4/isnanl.m4: Likewise.
8301
8302 2011-05-08  Bruno Haible  <bruno@clisp.org>
8303
8304         glob: Remove obsolete macro.
8305         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
8306
8307 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8308
8309         intprops: Sun C 5.11 supports __typeof__
8310         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
8311         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
8312         which is new.
8313         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
8314
8315         intprops: switch to usual gnulib indenting and naming
8316         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
8317         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
8318
8319         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
8320
8321 2011-05-08  Jim Meyering  <meyering@redhat.com>
8322
8323         maint.mk: suppress "Entering/Leaving directory" diag in announcement
8324         * top/maint.mk (release-prep): Use make's --no-print-directory
8325         option when generating the announcement.  This eliminates the
8326         pesky "make[2]: Entering/Leaving directory" diagnostics in the
8327         generated announcement template.
8328
8329 2011-05-08  Bruno Haible  <bruno@clisp.org>
8330
8331         tzset: Fix gettimeofday wrapper on Solaris 2.6.
8332         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
8333         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
8334
8335 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8336
8337         ignore-value, verify: Omit include files from lib_SOURCES.
8338         * modules/ignore-value, modules/verify (Makefile.am):
8339         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
8340         that leads Automake to duplicate use of am__objects_... variables
8341         in Makefile.in.  See
8342         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
8343
8344 2011-05-07  Bruno Haible  <bruno@clisp.org>
8345
8346         fclose: Simplify autoconf macro.
8347         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
8348         defined.
8349
8350 2011-05-07  Bruno Haible  <bruno@clisp.org>
8351
8352         canonicalize-lgpl: Fix autoconf macro ordering bug.
8353         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
8354         gl_STDLIB_H_DEFAULTS.
8355
8356 2011-05-06  Eric Blake  <eblake@redhat.com>
8357
8358         maintainer-makefile: make sc_po_check easier to tune
8359         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
8360         to probe for strings, such as an alternate location for gnulib.
8361
8362         fclose: guarantee behavior on seekable stdin
8363         * modules/fclose (Depends-on): Add fflush.
8364         * doc/posix-functions/fclose.texi (fclose): Document this.
8365         * tests/test-fclose.c (main): Make test for this unconditional.
8366
8367 2011-05-06  Bruno Haible  <bruno@clisp.org>
8368
8369         fflush, fpurge: Relicense under LGPLv2+.
8370         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
8371         * modules/fpurge (License): Likewise.
8372         With permission from Eric Blake and Jim Meyering.
8373         Suggested by Eric Blake.
8374
8375 2011-05-06  Karl Berry  <karl@gnu.org>
8376
8377         * MODULES.html.sh (func_all_modules): remove exit.
8378
8379 2011-05-06  Jim Meyering  <meyering@redhat.com>
8380
8381         maint.mk: use info-gnu@ as the default only for a stable release
8382         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
8383         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
8384         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
8385         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
8386
8387 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8388
8389         assert-h: new module, which supports C1X-style static_assert
8390         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
8391         * lib/verify.h: Revamp so that this can be copied into assert.h,
8392         while retaining the ability to use it standalone as before.
8393         Rename private identifiers so as not to encroach on the
8394         standard C namespace, since this is now used by assert.h.
8395         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
8396         the old verify_true.
8397         (_GL_VERIFY_TRUE): New macro, with much of the contents of
8398         the old verify_true.  Use _GL_VERIFY_TYPE.
8399         (_GL_VERIFY): New macro, with much of the contents of the old verify.
8400         (static_assert): New macro, if _GL_STATIC_ASSERT_H
8401         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
8402         defined when this file is copied into the replacement assert.h.
8403         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
8404         and _Static_assert is not built in.
8405         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
8406         defined, and use the new macros mentioned above.
8407         * doc/posix-headers/assert.texi: Document this.
8408
8409 2011-05-05  Bruno Haible  <bruno@clisp.org>
8410
8411         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8412         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
8413         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
8414         gl_REPLACE_FCLOSE here.
8415         * modules/fflush (Depends-on): Remove fclose.
8416         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
8417         combination with module 'fclose'.
8418
8419 2011-05-05  Bruno Haible  <bruno@clisp.org>
8420
8421         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
8422         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
8423         gl_FUNC_FFLUSH.
8424         (gl_FUNC_FFLUSH): Use it.
8425         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
8426         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
8427         gl_REPLACE_FSEEKO here.
8428
8429 2011-05-05  Bruno Haible  <bruno@clisp.org>
8430
8431         tzset: Relicense under LGPL.
8432         * modules/tzset (License): Change to LGPL.
8433         No agreement needed; it's a no-op.
8434
8435         strtoimax, strtoumax: Relicense under LGPL.
8436         * modules/strtoimax (License): Change to LGPL.
8437         * modules/strtoumax (License): Likewise.
8438         With permission from Jim Meyering, Paul Eggert:
8439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
8440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
8441
8442         getgroups: Relicense under LGPL.
8443         * modules/getgroups (License): Change to LGPL.
8444         With permission from Jim Meyering, Paul Eggert, Eric Blake:
8445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8448
8449         nanosleep: Relicense under LGPL.
8450         * modules/nanosleep (License): Change to LGPL.
8451         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
8452         Haible:
8453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8457
8458         futimens: Relicense under LGPL.
8459         * modules/futimens (License): Change to LGPL.
8460         With permission from Eric Blake:
8461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8462
8463         fflush: Relicense under LGPL.
8464         * modules/fflush (License): Change to LGPL.
8465         With permission from Eric Blake, Bruno Haible, Jim Meyering:
8466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
8469
8470         tmpfile: Relicense under LGPL.
8471         * modules/tmpfile (License): Change to LGPL.
8472         With permission from Ben Pfaff:
8473         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8474
8475         isfinite: Relicense under LGPL.
8476         * modules/isfinite (License): Change to LGPL.
8477         With permission from Ben Pfaff, Bruno Haible:
8478         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
8480
8481         acosl..tanl: Relicense under LGPL.
8482         * modules/acosl (License): Change to LGPL.
8483         * modules/asinl (License): Likewise.
8484         * modules/atanl (License): Likewise.
8485         * modules/cosl (License): Likewise.
8486         * modules/expl (License): Likewise.
8487         * modules/logl (License): Likewise.
8488         * modules/sinl (License): Likewise.
8489         * modules/sqrtl (License): Likewise.
8490         * modules/tanl (License): Likewise.
8491         Source code originally from glibc and Paolo Bonzini. Agreements:
8492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
8493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
8494
8495 2011-05-05  Bruno Haible  <bruno@clisp.org>
8496
8497         signal: Define sighandler_t.
8498         * lib/signal.in.h (sighandler_t): New type.
8499         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
8500         whether sighandler_t is defined.
8501         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
8502         * modules/signal (Depends-on): Add extensions.
8503         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
8504         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
8505         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
8506
8507 2011-05-05  Eric Blake  <eblake@redhat.com>
8508
8509         maint: remove useless REPLACE_*_H macros
8510         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
8511         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8512         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8513         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
8514         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8515         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8516         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
8517         * m4/btowc.m4: Update callers.
8518         * m4/dirfd.m4: Likewise.
8519         * m4/duplocale.m4: Likewise.
8520         * m4/fchdir.m4: Likewise.
8521         * m4/fdopendir.m4: Likewise.
8522         * m4/inet_ntop.m4: Likewise.
8523         * m4/inet_pton.m4: Likewise.
8524         * m4/ioctl.m4: Likewise.
8525         * m4/mbrlen.m4: Likewise.
8526         * m4/mbrtowc.m4: Likewise.
8527         * m4/mbsinit.m4: Likewise.
8528         * m4/mbsnrtowcs.m4: Likewise.
8529         * m4/mbsrtowcs.m4: Likewise.
8530         * m4/poll.m4: Likewise.
8531         * m4/setlocale.m4: Likewise.
8532         * m4/wcrtomb.m4: Likewise.
8533         * m4/wcsnrtombs.m4: Likewise.
8534         * m4/wcsrtombs.m4: Likewise.
8535         * m4/wctob.m4: Likewise.
8536         * m4/wcwidth.m4: Likewise.
8537         * modules/posix_spawn: Likewise.
8538         * modules/posix_spawn_file_actions_addclose: Likewise.
8539         * modules/posix_spawn_file_actions_adddup2: Likewise.
8540         * modules/posix_spawn_file_actions_addopen: Likewise.
8541         * modules/posix_spawn_file_actions_destroy: Likewise.
8542         * modules/posix_spawn_file_actions_init: Likewise.
8543         * modules/posix_spawnattr_destroy: Likewise.
8544         * modules/posix_spawnattr_getflags: Likewise.
8545         * modules/posix_spawnattr_getpgroup: Likewise.
8546         * modules/posix_spawnattr_getschedparam: Likewise.
8547         * modules/posix_spawnattr_getschedpolicy: Likewise.
8548         * modules/posix_spawnattr_getsigdefault: Likewise.
8549         * modules/posix_spawnattr_getsigmask: Likewise.
8550         * modules/posix_spawnattr_init: Likewise.
8551         * modules/posix_spawnattr_setflags: Likewise.
8552         * modules/posix_spawnattr_setpgroup: Likewise.
8553         * modules/posix_spawnattr_setschedparam: Likewise.
8554         * modules/posix_spawnattr_setschedpolicy: Likewise.
8555         * modules/posix_spawnattr_setsigdefault: Likewise.
8556         * modules/posix_spawnattr_setsigmask: Likewise.
8557         * modules/posix_spawnp: Likewise.
8558
8559 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
8560
8561         Add option to do-release-commit-and-tag to specify branch.
8562         * build-aux/do-release-commit-and-tag: Add --branch.
8563
8564 2011-05-03  Bruno Haible  <bruno@clisp.org>
8565
8566         Avoid unnecessary compilation units, through conditional dependencies.
8567         * modules/accept (Depends-on): Add conditions to the dependencies.
8568         * modules/acosl (Depends-on): Likewise.
8569         * modules/argz (Depends-on): Likewise.
8570         * modules/asinl (Depends-on): Likewise.
8571         * modules/atanl (Depends-on): Likewise.
8572         * modules/atoll (Depends-on): Likewise.
8573         * modules/bind (Depends-on): Likewise.
8574         * modules/btowc (Depends-on): Likewise.
8575         * modules/canonicalize-lgpl (Depends-on): Likewise.
8576         * modules/ceil (Depends-on): Likewise.
8577         * modules/ceilf (Depends-on): Likewise.
8578         * modules/ceill (Depends-on): Likewise.
8579         * modules/chdir-long (Depends-on): Likewise.
8580         * modules/chown (Depends-on): Likewise.
8581         * modules/close (Depends-on): Likewise.
8582         * modules/connect (Depends-on): Likewise.
8583         * modules/cosl (Depends-on): Likewise.
8584         * modules/dirfd (Depends-on): Likewise.
8585         * modules/dprintf (Depends-on): Likewise.
8586         * modules/dprintf-posix (Depends-on): Likewise.
8587         * modules/error (Depends-on): Likewise.
8588         * modules/euidaccess (Depends-on): Likewise.
8589         * modules/expl (Depends-on): Likewise.
8590         * modules/faccessat (Depends-on): Likewise.
8591         * modules/fchdir (Depends-on): Likewise.
8592         * modules/fclose (Depends-on): Likewise.
8593         * modules/fcntl (Depends-on): Likewise.
8594         * modules/fdopendir (Depends-on): Likewise.
8595         * modules/fflush (Depends-on): Likewise.
8596         * modules/floor (Depends-on): Likewise.
8597         * modules/floorf (Depends-on): Likewise.
8598         * modules/floorl (Depends-on): Likewise.
8599         * modules/fnmatch (Depends-on): Likewise.
8600         * modules/fopen (Depends-on): Likewise.
8601         * modules/fprintf-posix (Depends-on): Likewise.
8602         * modules/frexp (Depends-on): Likewise.
8603         * modules/frexp-nolibm (Depends-on): Likewise.
8604         * modules/frexpl (Depends-on): Likewise.
8605         * modules/frexpl-nolibm (Depends-on): Likewise.
8606         * modules/fseek (Depends-on): Likewise.
8607         * modules/fsusage (Depends-on): Likewise.
8608         * modules/ftell (Depends-on): Likewise.
8609         * modules/ftello (Depends-on): Likewise.
8610         * modules/futimens (Depends-on): Likewise.
8611         * modules/getcwd (Depends-on): Likewise.
8612         * modules/getcwd-lgpl (Depends-on): Likewise.
8613         * modules/getdelim (Depends-on): Likewise.
8614         * modules/getdomainname (Depends-on): Likewise.
8615         * modules/getgroups (Depends-on): Likewise.
8616         * modules/gethostname (Depends-on): Likewise.
8617         * modules/getline (Depends-on): Likewise.
8618         * modules/getlogin_r (Depends-on): Likewise.
8619         * modules/getopt-posix (Depends-on): Likewise.
8620         * modules/getpeername (Depends-on): Likewise.
8621         * modules/getsockname (Depends-on): Likewise.
8622         * modules/getsockopt (Depends-on): Likewise.
8623         * modules/getsubopt (Depends-on): Likewise.
8624         * modules/getusershell (Depends-on): Likewise.
8625         * modules/glob (Depends-on): Likewise.
8626         * modules/grantpt (Depends-on): Likewise.
8627         * modules/iconv_open (Depends-on): Likewise.
8628         * modules/iconv_open-utf (Depends-on): Likewise.
8629         * modules/inet_ntop (Depends-on): Likewise.
8630         * modules/inet_pton (Depends-on): Likewise.
8631         * modules/ioctl (Depends-on): Likewise.
8632         * modules/isapipe (Depends-on): Likewise.
8633         * modules/isfinite (Depends-on): Likewise.
8634         * modules/isinf (Depends-on): Likewise.
8635         * modules/lchown (Depends-on): Likewise.
8636         * modules/ldexpl (Depends-on): Likewise.
8637         * modules/link (Depends-on): Likewise.
8638         * modules/linkat (Depends-on): Likewise.
8639         * modules/listen (Depends-on): Likewise.
8640         * modules/logl (Depends-on): Likewise.
8641         * modules/lstat (Depends-on): Likewise.
8642         * modules/mbrlen (Depends-on): Likewise.
8643         * modules/mbrtowc (Depends-on): Likewise.
8644         * modules/mbsinit (Depends-on): Likewise.
8645         * modules/mbsnrtowcs (Depends-on): Likewise.
8646         * modules/mbsrtowcs (Depends-on): Likewise.
8647         * modules/mbtowc (Depends-on): Likewise.
8648         * modules/memcmp (Depends-on): Likewise.
8649         * modules/mkdir (Depends-on): Likewise.
8650         * modules/mkdtemp (Depends-on): Likewise.
8651         * modules/mkfifo (Depends-on): Likewise.
8652         * modules/mkfifoat (Depends-on): Likewise.
8653         * modules/mknod (Depends-on): Likewise.
8654         * modules/mkostemp (Depends-on): Likewise.
8655         * modules/mkostemps (Depends-on): Likewise.
8656         * modules/mkstemp (Depends-on): Likewise.
8657         * modules/mkstemps (Depends-on): Likewise.
8658         * modules/mktime (Depends-on): Likewise.
8659         * modules/nanosleep (Depends-on): Likewise.
8660         * modules/open (Depends-on): Likewise.
8661         * modules/openat (Depends-on): Likewise.
8662         * modules/perror (Depends-on): Likewise.
8663         * modules/poll (Depends-on): Likewise.
8664         * modules/popen (Depends-on): Likewise.
8665         * modules/posix_spawn (Depends-on): Likewise.
8666         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8667         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8668         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8669         * modules/posix_spawnp (Depends-on): Likewise.
8670         * modules/pread (Depends-on): Likewise.
8671         * modules/printf-posix (Depends-on): Likewise.
8672         * modules/ptsname (Depends-on): Likewise.
8673         * modules/putenv (Depends-on): Likewise.
8674         * modules/pwrite (Depends-on): Likewise.
8675         * modules/readline (Depends-on): Likewise.
8676         * modules/readlink (Depends-on): Likewise.
8677         * modules/readlinkat (Depends-on): Likewise.
8678         * modules/recv (Depends-on): Likewise.
8679         * modules/recvfrom (Depends-on): Likewise.
8680         * modules/regex (Depends-on): Likewise.
8681         * modules/remove (Depends-on): Likewise.
8682         * modules/rename (Depends-on): Likewise.
8683         * modules/renameat (Depends-on): Likewise.
8684         * modules/rmdir (Depends-on): Likewise.
8685         * modules/round (Depends-on): Likewise.
8686         * modules/roundf (Depends-on): Likewise.
8687         * modules/roundl (Depends-on): Likewise.
8688         * modules/rpmatch (Depends-on): Likewise.
8689         * modules/select (Depends-on): Likewise.
8690         * modules/send (Depends-on): Likewise.
8691         * modules/sendto (Depends-on): Likewise.
8692         * modules/setenv (Depends-on): Likewise.
8693         * modules/setlocale (Depends-on): Likewise.
8694         * modules/setsockopt (Depends-on): Likewise.
8695         * modules/shutdown (Depends-on): Likewise.
8696         * modules/sigaction (Depends-on): Likewise.
8697         * modules/signbit (Depends-on): Likewise.
8698         * modules/sigprocmask (Depends-on): Likewise.
8699         * modules/sinl (Depends-on): Likewise.
8700         * modules/sleep (Depends-on): Likewise.
8701         * modules/snprintf (Depends-on): Likewise.
8702         * modules/snprintf-posix (Depends-on): Likewise.
8703         * modules/socket (Depends-on): Likewise.
8704         * modules/sprintf-posix (Depends-on): Likewise.
8705         * modules/sqrtl (Depends-on): Likewise.
8706         * modules/stat (Depends-on): Likewise.
8707         * modules/strchrnul (Depends-on): Likewise.
8708         * modules/strdup-posix (Depends-on): Likewise.
8709         * modules/strerror (Depends-on): Likewise.
8710         * modules/strerror_r-posix (Depends-on): Likewise.
8711         * modules/strndup (Depends-on): Likewise.
8712         * modules/strnlen (Depends-on): Likewise.
8713         * modules/strptime (Depends-on): Likewise.
8714         * modules/strsep (Depends-on): Likewise.
8715         * modules/strsignal (Depends-on): Likewise.
8716         * modules/strstr-simple (Depends-on): Likewise.
8717         * modules/strtod (Depends-on): Likewise.
8718         * modules/strtoimax (Depends-on): Likewise.
8719         * modules/strtok_r (Depends-on): Likewise.
8720         * modules/strtoumax (Depends-on): Likewise.
8721         * modules/symlink (Depends-on): Likewise.
8722         * modules/symlinkat (Depends-on): Likewise.
8723         * modules/tanl (Depends-on): Likewise.
8724         * modules/tcgetsid (Depends-on): Likewise.
8725         * modules/tmpfile (Depends-on): Likewise.
8726         * modules/trunc (Depends-on): Likewise.
8727         * modules/truncf (Depends-on): Likewise.
8728         * modules/truncl (Depends-on): Likewise.
8729         * modules/uname (Depends-on): Likewise.
8730         * modules/unlink (Depends-on): Likewise.
8731         * modules/unlockpt (Depends-on): Likewise.
8732         * modules/unsetenv (Depends-on): Likewise.
8733         * modules/usleep (Depends-on): Likewise.
8734         * modules/utimensat (Depends-on): Likewise.
8735         * modules/vasprintf (Depends-on): Likewise.
8736         * modules/vdprintf (Depends-on): Likewise.
8737         * modules/vdprintf-posix (Depends-on): Likewise.
8738         * modules/vfprintf-posix (Depends-on): Likewise.
8739         * modules/vprintf-posix (Depends-on): Likewise.
8740         * modules/vsnprintf (Depends-on): Likewise.
8741         * modules/vsnprintf-posix (Depends-on): Likewise.
8742         * modules/vsprintf-posix (Depends-on): Likewise.
8743         * modules/wcrtomb (Depends-on): Likewise.
8744         * modules/wcscasecmp (Depends-on): Likewise.
8745         * modules/wcscspn (Depends-on): Likewise.
8746         * modules/wcsdup (Depends-on): Likewise.
8747         * modules/wcsncasecmp (Depends-on): Likewise.
8748         * modules/wcsnrtombs (Depends-on): Likewise.
8749         * modules/wcspbrk (Depends-on): Likewise.
8750         * modules/wcsrtombs (Depends-on): Likewise.
8751         * modules/wcsspn (Depends-on): Likewise.
8752         * modules/wcsstr (Depends-on): Likewise.
8753         * modules/wcstok (Depends-on): Likewise.
8754         * modules/wcswidth (Depends-on): Likewise.
8755         * modules/wctob (Depends-on): Likewise.
8756         * modules/wctomb (Depends-on): Likewise.
8757         * modules/wctype (Depends-on): Likewise.
8758         * modules/wcwidth (Depends-on): Likewise.
8759         * modules/write (Depends-on): Likewise.
8760
8761 2011-05-03  Bruno Haible  <bruno@clisp.org>
8762
8763         Support for conditional dependencies.
8764         * doc/gnulib.texi (Module description): Document the syntax of
8765         conditional dependencies.
8766         * gnulib-tool: New option --conditional-dependencies.
8767         (func_usage): Document it.
8768         (cond_dependencies): New variable.
8769         (func_get_automake_snippet_conditional,
8770         func_get_automake_snippet_unconditional): New functions, extracted from
8771         func_get_automake_snippet.
8772         (func_get_automake_snippet): Use them.
8773         (sed_first_32_chars): New variable.
8774         (func_module_shellfunc_name): New function.
8775         (func_module_shellvar_name): New function.
8776         (func_module_conditional_name): New function.
8777         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8778         func_cond_module_condition): New functions.
8779         (func_modules_transitive_closure): Add support for conditional
8780         dependencies.
8781         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8782         conditional automake snippet in an automake conditional.
8783         (func_emit_autoconf_snippets): Emit shell functions that contain the
8784         code for conditional modules.
8785         (func_import, func_create_testdir): Update specification.
8786
8787 2011-05-03  Eric Blake  <eblake@redhat.com>
8788
8789         test-getaddrinfo: report error information
8790         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8791
8792 2011-05-03  Jim Meyering  <meyering@redhat.com>
8793
8794         bootstrap: avoid build failure when $GZIP is set
8795         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8796         program name.  If defined at all, it is supposed to list gzip options.
8797         Reported by Alan Curry in http://debbugs.gnu.org/8609
8798
8799 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8800
8801         readme-release: new module with release instructions
8802         * modules/readme-release: New module.
8803         * top/README-release: New file, from coreutils, grep, diffutils.
8804         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8805
8806 2011-05-02  Eric Blake  <eblake@redhat.com>
8807
8808         fflush: also replace fclose when fixing fflush
8809         * modules/fflush (Depends-on): Add fclose.
8810         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8811         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8812         memstreams with no backing fd.
8813         * doc/posix-functions/fclose.texi (fclose): Document the use of
8814         fflush module to fix the bug.
8815         * tests/test-fclose.c (main): Relax test when fclose is used in
8816         isolation.
8817
8818         fclose: add some tests
8819         * modules/fclose-tests: New test module.
8820         * tests/test-fclose.c: New file.
8821         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8822
8823         fclose: reduced dependencies
8824         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8825         simpler lseek.
8826         * lib/fclose.c (rpl_fclose): Likewise.
8827         Reported by Simon Josefsson.
8828
8829         exit: drop remaining clients
8830         * modules/argmatch (Depends-on): Replace exit with stdlib.
8831         * modules/copy-file (Depends-on): Likewise.
8832         * modules/execute (Depends-on): Likewise.
8833         * modules/exitfail (Depends-on): Likewise.
8834         * modules/obstack (Depends-on): Likewise.
8835         * modules/pagealign_alloc (Depends-on): Likewise.
8836         * modules/pipe-filter-gi (Depends-on): Likewise.
8837         * modules/pipe-filter-ii (Depends-on): Likewise.
8838         * modules/savewd (Depends-on): Likewise.
8839         * modules/spawn-pipe (Depends-on): Likewise.
8840         * modules/wait-process (Depends-on): Likewise.
8841         * modules/xsetenv (Depends-on): Likewise.
8842         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8843         * modules/git-merge-changelog (Depends-on): Likewise.
8844         * modules/long-options (Depends-on): Likewise.
8845         * modules/pt_chown (Depends-on): Likewise.
8846         * modules/sysexits (Depends-on): Likewise.
8847
8848         freading: relax license from LGPLv3+ to LGPLv2+
8849         * modules/freading (License): Relax LGPL version.
8850
8851 2011-05-02  Bruno Haible  <bruno@clisp.org>
8852
8853         fchdir: Remove unused dependencies.
8854         * modules/fchdir (Depends-on): Remove include_next.
8855
8856 2011-05-02  Bruno Haible  <bruno@clisp.org>
8857
8858         gnulib-tool: Refactor.
8859         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8860         from func_emit_autoconf_snippets.
8861         (func_emit_autoconf_snippets): Use it.
8862
8863 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8864
8865         * NEWS: Document removal of 'exit'.
8866         * modules/exit: Remove file.
8867
8868 2011-05-01  Bruno Haible  <bruno@clisp.org>
8869
8870         Update DEPENDENCIES.
8871         * DEPENDENCIES (gettext): Recommend the newest release.
8872         Reported by Simon Josefsson.
8873
8874 2011-05-01  Bruno Haible  <bruno@clisp.org>
8875
8876         gnulib-tool: Reduce code duplication.
8877         * gnulib-tool (func_emit_autoconf_snippets): New function.
8878         (func_import, func_create_testdir): Use it.
8879
8880 2011-04-30  Eric Blake  <eblake@redhat.com>
8881
8882         fclose: don't fail on non-seekable input stream
8883         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8884         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8885         since fflush is allowed to fail in that case.
8886
8887 2011-04-30  Bruno Haible  <bruno@clisp.org>
8888
8889         dup3: cleanup
8890         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8891
8892 2011-04-30  Bruno Haible  <bruno@clisp.org>
8893
8894         netdb: Make it work in C++ mode.
8895         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8896         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8897         module.
8898         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8899         gl_MODULE_INDICATOR_FOR_TESTS.
8900         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8901         * modules/netdb-c++-tests: New file.
8902         * tests/test-netdb-c++.cc: New file.
8903
8904 2011-04-30  Bruno Haible  <bruno@clisp.org>
8905
8906         New modules 'vfscanf', 'vscanf'.
8907         * modules/vfscanf: New file.
8908         * modules/vscanf: New file.
8909         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8910         here.
8911         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8912         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8913
8914 2011-04-30  Bruno Haible  <bruno@clisp.org>
8915
8916         passfd: Add comments.
8917         * lib/passfd.c: Add comments about platforms.
8918
8919 2011-04-30  Bruno Haible  <bruno@clisp.org>
8920
8921         sys_uio: Make <sys/uio.h> self-contained.
8922         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8923         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8924
8925 2011-04-30  Bruno Haible  <bruno@clisp.org>
8926
8927         sys_socket: Ensure 'struct iovec' definition.
8928         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8929         <sys/socket.h>.
8930         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8931
8932 2011-04-30  Bruno Haible  <bruno@clisp.org>
8933
8934         sys_uio: Protect definition of 'struct iovec'.
8935         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8936         it as a C struct.
8937
8938 2011-04-30  Bruno Haible  <bruno@clisp.org>
8939
8940         manywarnings: fix indentation
8941         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8942
8943 2011-04-30  Pádraig Brady <P@draigBrady.com>
8944
8945         manywarnings: add -Wno-missing-field-initializers if needed.
8946         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8947         option if it's needed to allow initialization with { 0, }
8948
8949 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8950
8951         announce-gen: cosmetic improvement
8952         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8953
8954 2011-04-29  Jim Meyering  <meyering@redhat.com>
8955
8956         vc-list-files: indent with spaces, not TABs
8957         * build-aux/vc-list-files: Convert leading TABs to spaces,
8958         to match the style of most other files in gnulib.
8959
8960         announce-gen: indent with spaces, not TABs
8961         * build-aux/announce-gen: Convert all TABs to spaces, to match
8962         the style of most other files in gnulib.
8963
8964 2011-04-29  Eric Blake  <eblake@redhat.com>
8965
8966         quotearg: avoid uninitialized variable use
8967         * lib/quotearg.c (quoting_options_from_style): Initialize
8968         remaining fields, and ensure that custom styles are only used via
8969         quoting_options rather than quoting_style.
8970
8971 2011-04-29  Jim Meyering  <meyering@redhat.com>
8972
8973         maint.mk: remove unused VC-tag variable
8974         * top/maint.mk (VC-tag): Remove unused variable.
8975
8976 2011-04-29  Bruno Haible  <bruno@clisp.org>
8977
8978         netdb: fix gai_strerror replacements
8979         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8980         * modules/netdb: Substitute it.
8981
8982 2011-04-29  Jim Meyering  <meyering@redhat.com>
8983
8984         test-getcwd.c: avoid new set-but-not-used warning
8985         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8986         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8987         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8988         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8989
8990         test-hash.c: avoid a new shadowing warning
8991         * tests/test-hash.c (main): Don't shadow "dup".
8992
8993 2011-04-28  Eric Blake  <eblake@redhat.com>
8994
8995         getaddrinfo: fix gai_strerror signature
8996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8997         and work around mingw with UNICODE defined.
8998         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8999         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
9000         * modules/netdb (Makefile.am): Substitute it.
9001         * lib/netdb.in.h (gai_strerror): Declare replacement.
9002         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
9003         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
9004         the fix.
9005
9006         getsockopt: avoid compiler warning
9007         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
9008         Reported by Matthias Bolte.
9009
9010         tests: drop unused link dependency
9011         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
9012         * modules/dirent-safer-tests (Makefile.am): Likewise.
9013         * modules/fdopendir-tests (Makefile.am): Likewise.
9014         * modules/mkfifoat-tests (Makefile.am): Likewise.
9015         * modules/openat-safer-tests (Makefile.am): Likewise.
9016         * modules/openat-tests (Makefile.am): Likewise.
9017         * modules/readlinkat-tests (Makefile.am): Likewise.
9018         * modules/symlinkat-tests (Makefile.am): Likewise.
9019         * modules/linkat-tests (Makefile.am): Likewise.
9020         (Depends-on): Switch to filenamecat-lgpl.
9021         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
9022         LIBINTL.
9023         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
9024         * tests/test-linkat.c (main): Don't require xalloc.
9025
9026         hash, mgetgroups: drop xalloc dependency
9027         * lib/hash.c (includes): Adjust includes.
9028         * lib/mgetgroups.c (includes): Likewise.
9029         (xgetgroups): Move...
9030         * lib/xgetgroups.c: ...to new file.
9031         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
9032         * modules/xgetgroups: New file, split from...
9033         * modules/mgetgroups: ...here.
9034         (Depends-on): Add xalloc-oversized.
9035         * modules/hash (Depends-on): Likewise.
9036         * modules/hash-tests (Depends-on): Drop xalloc.
9037         (test_hash_LDADD): Drop unused library.
9038         * tests/test-hash.c (main): Break xalloc dependency.
9039         (includes): Drop unused include.
9040
9041         xalloc-oversized: new module
9042         * modules/xalloc-oversized: New module.
9043         * modules/xalloc (Depends-on): Add it.
9044         * lib/xalloc.h (xalloc_oversized): Move...
9045         * lib/xalloc-oversized.h: ...into new file.
9046
9047         utimecmp: drop dependency on xmalloc
9048         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
9049         due to memory pressure.
9050         * modules/utimecmp (Depends-on): Drop xalloc.
9051
9052 2011-04-27  Eric Blake  <eblake@redhat.com>
9053
9054         getcwd: fix mingw bugs
9055         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
9056         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
9057         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
9058
9059 2011-04-27  Bruno Haible  <bruno@clisp.org>
9060
9061         mkstemps: Ensure declaration on MacOS X 10.5.
9062         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
9063         * doc/glibc-functions/mkstemps.texi: Document header file problem on
9064         MacOS X.
9065
9066 2011-04-27  Bruno Haible  <bruno@clisp.org>
9067
9068         mkstemp: More documentation.
9069         * doc/posix-functions/mkstemp.texi: Document header file problem on
9070         MacOS X.
9071
9072 2011-04-27  Bruno Haible  <bruno@clisp.org>
9073
9074         mkstemp: Tweak configure message when cross-compiling.
9075         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
9076         result as a guess.
9077
9078 2011-04-27  Bruno Haible  <bruno@clisp.org>
9079
9080         clean-temp: Clarify what it does.
9081         * lib/clean-temp.h: Add more comments.
9082         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
9083         module.
9084         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
9085         * doc/glibc-functions/mkstemps.texi: Likewise.
9086         * doc/glibc-functions/mkostemps.texi: Likewise.
9087
9088 2011-04-27  Eric Blake  <eblake@redhat.com>
9089
9090         fchdir: avoid extra chdir and fix test
9091         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
9092         getcwd-lgpl.
9093         * lib/fchdir.c (get_name): Any absolute name will do; it does not
9094         have to be canonical.
9095         (canonicalize_file_name): Drop unused macro.
9096         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
9097
9098         filenamecat-lgpl: fix licence
9099         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
9100         when it was first created.
9101
9102         linkat, renameat: add missing dependency
9103         * modules/linkat (Depends-on): Require getcwd-lgpl.
9104         * modules/renameat (Depends-on): Likewise.
9105
9106         tests: reduce dependencies
9107         * tests/test-linkat.c (main): Use lighter-weight getcwd.
9108         * tests/test-renameat.c (main): Likewise.
9109         * modules/linkat-tests (Depends-on): Relax dependency.
9110         * modules/renameat-tests (Depends-on): Likewise.
9111         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
9112         dependency explicit.
9113
9114         save-cwd: reduce default dependency
9115         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
9116         * lib/save-cwd.c: Update comments.
9117         * NEWS: Document the semantic change.
9118
9119         getcwd: enhance tests
9120         * tests/test-getcwd-lgpl.c: New file, taken from...
9121         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
9122         repeat long path stress tests from m4 probe.
9123         * modules/getcwd-lgpl-tests: New module.
9124         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
9125         * m4/getcwd-abort-bug.m4: Update comment.
9126         * m4/getcwd-path-max.m4: Likewise.
9127
9128         getcwd-lgpl: new module
9129         * modules/getcwd-lgpl: New module.
9130         * lib/getcwd-lgpl.c: New file.
9131         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9132         * MODULES.html.sh (lacking POSIX:2008): Likewise.
9133         * modules/getcwd (configure.ac): Set C witness.
9134         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
9135
9136         getcwd: tweak comments
9137         * m4/getcwd-abort-bug.m4: Fix comments.
9138         * m4/getcwd-path-max.m4: Likewise.
9139         * m4/getcwd.m4: Likewise.
9140
9141 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9142         and Eric Blake  <eblake@redhat.com>
9143
9144         mkstemp: replace if system version uses wrong permissions
9145         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
9146         read/write mode bits set in file created by mkstemp.
9147         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
9148
9149 2011-04-27  Eric Blake  <eblake@redhat.com>
9150
9151         passfd: avoid compiler warning
9152         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
9153         Reported by Laine Stump.
9154
9155 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
9156
9157         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
9158         required by the NetBSD (and perhaps other 4.4BSD derived) join.
9159
9160 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9161         and Eric Blake  <eblake@redhat.com>
9162
9163         mkstemp: mention clean-temp module
9164         * lib/mkstemp.c: Add comment.
9165         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
9166
9167 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
9168
9169         inttypes: also provide default values for 32-bit tests
9170         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
9171         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
9172
9173 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
9174
9175         strtoumax: remove dependency on strtoimax
9176         This is like the strtoull change of yesterday.
9177         * modules/strtoumax (Files): Add lib/strtoimax.c.
9178         (Depends-on): Remove strtoimax and add verify.
9179
9180         inttypes-incomplete: new module
9181         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
9182         all but the PRI* and SCN* parts of gl_INTTYPES_H.
9183         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
9184         of gl_INTTYPES_H.
9185         (gl_INTTYPES_H): Rewrite in terms of these new macros.
9186         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
9187         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
9188         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
9189         * modules/strtoumax, modules/xstrtol (Depends-on):
9190         Depend on inttypes-incomplete, not inttypes.
9191         * modules/inttypes-incomplete: New module, containing the contents
9192         of the old modules/inttypes module, except that the Files: section
9193         omits m4/inttypes-pri.m4, and the configure.ac section invokes
9194         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
9195         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
9196         (Depends-on): Depend only on inttypes-incomplete.
9197         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
9198
9199         inttypes: omit now-redundant strtoimax and strtoumax work
9200         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
9201         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
9202
9203         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
9204         This supports apps that need pointers to strtoimax and strtoumax,
9205         and ports to HP-UX 11.00 64.bit, which has macros that expand to
9206         nonexistent functions.  See
9207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
9208         et seq.
9209         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
9210         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
9211         a macro.
9212         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9213
9214 2011-04-25  Simon Josefsson  <simon@josefsson.org>
9215
9216         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
9217
9218 2011-04-25  Bruno Haible  <bruno@clisp.org>
9219
9220         strtol, strtoul: Mark modules as obsolete.
9221         * modules/strtol (Status, Notice): New sections.
9222         * modules/strtoul (Status, Notice): New sections.
9223
9224 2011-04-25  Bruno Haible  <bruno@clisp.org>
9225
9226         strtod: Remove check for strtod, unless supporting old platforms.
9227         * modules/strtod-obsolete: New file.
9228         * m4/strtod-obsolete.m4: New file.
9229         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
9230         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
9231         * modules/strtod (Depends-on): Add strtod-obsolete.
9232         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
9233
9234 2011-04-25  Bruno Haible  <bruno@clisp.org>
9235
9236         strcase: Make module obsolete.
9237         * modules/strcase (Status, Notice): New sections.
9238
9239 2011-04-25  Bruno Haible  <bruno@clisp.org>
9240
9241         dup2: Remove check for dup2, unless supporting old obsolete platforms.
9242         * modules/dup2-obsolete: New file.
9243         * m4/dup2-obsolete.m4: New file.
9244         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
9245         gl_FUNC_DUP2_OBSOLETE is not also defined.
9246         * modules/dup2 (Depends-on): Add dup2-obsolete.
9247         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
9248
9249 2011-04-25  Bruno Haible  <bruno@clisp.org>
9250
9251         strnlen: Avoid memchr related link error on old obsolete platforms.
9252         * modules/memchr-obsolete: New file.
9253         * m4/memchr-obsolete.m4: New file.
9254         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
9255         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
9256         * modules/memchr (Depends-on): Add memchr-obsolete.
9257         * modules/strnlen (Depends-on): Likewise.
9258         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
9259
9260 2011-04-25  Jim Meyering  <meyering@redhat.com>
9261
9262         maint.mk: makefile_at_at_check extend and clean up
9263         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
9264         in addition to */Makefile.am.
9265         Exempt legitimate uses of @VAR@ notation, e.g.,
9266         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
9267         Remove obsolete coreutils-specific comment.
9268         Prompted by discussion here:
9269         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
9270
9271 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9272
9273         strtoul: remove dependency on strtol
9274         This is so that 'configure' need not check for strtol merely because
9275         the application needs strtoul.
9276         * modules/strtoul (Files): Add lib/strtol.c.
9277         (Depends-on): Remove strtol.
9278
9279         strtoull: remove dependency on strtoul
9280         This is like the strtoll change.
9281         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
9282         (Depends-on): Remove strtoul.
9283
9284         strtoll: remove dependency on strtol
9285         This is so that 'configure' need not check for strtol merely because
9286         the application needs strtoll.
9287         * modules/strtoll (Files): Add lib/strtol.c.
9288         (Depends-on): Remove strtol.
9289
9290 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9291
9292         inttypes: Move some configure check to module 'imaxdiv'.
9293         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
9294         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
9295         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
9296
9297 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9298
9299         inttypes: Move some configure check to module 'imaxabs'.
9300         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
9301         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
9302         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
9303
9304 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9305
9306         inttypes: Remove configure tests that are not needed since 2009-12-31.
9307         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
9308         gl_cv_header_working_inttypes_h.
9309
9310 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9311
9312         * modules/strnlen (Depends-on): Remove memchr.
9313         The strnlen implementation doesn't need the memchr module's fixes; see
9314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
9315
9316         strtol: remove dependency on wchar
9317         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
9318         * modules/strtol (Depends-on): Remove wchar.
9319
9320 2011-04-21  Eric Blake  <eblake@redhat.com>
9321
9322         passfd: fix test regression on Linux
9323         * modules/passfd-tests (configure.ac): Correct socketpair check.
9324
9325         passfd: speed up configure and drop unused code
9326         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
9327         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
9328         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
9329         Instead of probing at configure for unix_scm_rights_bsd44_way,
9330         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
9331         check to a struct member probe.
9332         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
9333         (sendfd, recvfd): Update preprocessor checks.
9334         * modules/passfd (Files): Reflect rename, and drop unused file.
9335         (Depends-on): Drop unused dependency.
9336
9337         passfd: allow compilation on mingw
9338         * modules/sys_socket (Depends-on): Add sys_uio.
9339         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
9340         iovec and a minimal struct msghdr.
9341         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
9342         * tests/test-sys_socket.c (main): Enhance test.
9343         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
9344         guaranteed to provide what we need.
9345         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
9346         * modules/passfd-tests (Depends-on): Add sys_wait.
9347         * tests/test-passfd.c (main): Skip test on mingw, for now.
9348         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
9349         partial 'struct msghdr' implementation.
9350
9351         sys_uio: new module
9352         * modules/sys_uio: New module.
9353         * modules/sys_uio-tests: Likewise.
9354         * lib/sys_uio.in.h: New file.
9355         * m4/sys_uio_h.m4: Likewise.
9356         * tests/test-sys_uio.c: Likewise.
9357         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
9358         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
9359
9360 2011-04-20  Jim Meyering  <meyering@redhat.com>
9361
9362         useless-if-before-free: avoid false-positive
9363         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
9364         disjunct so that it too requires a terminating ";".  Without that,
9365         this script would identify as useless one statement from gcc that
9366         was not:
9367           if (aligned_ptr)
9368             free (((void **) aligned_ptr) [-1]);
9369
9370 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
9371
9372         doc: update users.txt.
9373         * users.txt: Add barcode.
9374
9375 2011-04-19  Bruno Haible  <bruno@clisp.org>
9376
9377         ioctl: Remove link dependency on native Windows.
9378         * lib/fd-hook.h: Renamed from lib/close-hook.h.
9379         (gl_close_fn, gl_ioctl_fn): New types.
9380         (struct fd_hook): Renamed from struct close_hook. Change type of
9381         private_close_fn field. Add private_ioctl_fn field.
9382         (close_hook_fn): Add parameter for primary close method.
9383         (execute_close_hooks, execute_all_close_hooks): Likewise.
9384         (ioctl_hook_fn): New type.
9385         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
9386         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9387         argument.
9388         (unregister_fd_hook): Renamed from unregister_close_hook.
9389         * lib/fd-hook.c: Renamed from lib/close-hook.c.
9390         Don't include <unistd.h>.
9391         (close): Remove undef.
9392         (anchor): Update.
9393         (execute_close_hooks): Add argument for primary close method.
9394         (execute_all_close_hooks): Likewise.
9395         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
9396         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9397         argument. Allow each argument to be NULL.
9398         (unregister_fd_hook): Renamed from unregister_close_hook.
9399         * lib/close.c (rpl_close): Pass 'close' function pointer to
9400         execute_all_close_hooks.
9401         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
9402         (primary_ioctl): New function.
9403         (ioctl): Don't call ioctlsocket here. Instead, call
9404         execute_all_ioctl_hooks.
9405         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
9406         close method.
9407         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
9408         (fd_sockets_hook): Renamed from close_sockets_hook.
9409         (gl_sockets_startup, gl_sockets_cleanup): Update.
9410         * modules/fd-hook: Renamed from modules/close-hook. Update.
9411         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9412         * modules/sockets (Depends-on): Likewise.
9413         * modules/ioctl (Depends-on): Add fd-hook.
9414         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
9415         GNULIB_SOCKET.
9416
9417 2011-04-19  Bruno Haible  <bruno@clisp.org>
9418
9419         Move the support of O_NONBLOCK in open() to the 'open' module.
9420         * modules/nonblocking (Depends-on): Remove 'open'.
9421         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
9422         gl_cv_have_open_O_NONBLOCK.
9423         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
9424         O_NONBLOCK support.
9425         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
9426
9427 2011-04-17  Bruno Haible  <bruno@clisp.org>
9428
9429         pipe2: Simplify code.
9430         * lib/pipe2.c (pipe2): Reduce code duplication.
9431
9432 2011-04-17  Bruno Haible  <bruno@clisp.org>
9433
9434         nonblocking: Add comment.
9435         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
9436
9437 2011-04-17  Bruno Haible  <bruno@clisp.org>
9438
9439         nonblocking: Add tests for sockets.
9440         * tests/test-nonblocking-socket.sh: New file.
9441         * tests/test-nonblocking-socket-main.c: New file.
9442         * tests/test-nonblocking-socket-child.c: New file.
9443         * tests/test-nonblocking-socket.h: New file.
9444         * tests/socket-server.h: New file.
9445         * tests/socket-client.h: New file.
9446         * modules/nonblocking-socket-tests: New file.
9447         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
9448
9449 2011-04-17  Bruno Haible  <bruno@clisp.org>
9450
9451         nonblocking: Add tests for pipes.
9452         * tests/test-nonblocking-pipe.sh: New file.
9453         * tests/test-nonblocking-pipe-main.c: New file.
9454         * tests/test-nonblocking-pipe-child.c: New file.
9455         * tests/test-nonblocking-pipe.h: New file.
9456         * tests/test-nonblocking-writer.h: New file.
9457         * tests/test-nonblocking-reader.h: New file.
9458         * tests/test-nonblocking-misc.h: New file.
9459         * modules/nonblocking-pipe-tests: New file.
9460         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
9461
9462 2011-04-16  Bruno Haible  <bruno@clisp.org>
9463
9464         gettext: Clarify the needed programmer actions.
9465         * modules/gettext (Notice): New field.
9466         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9467
9468 2011-04-16  Bruno Haible  <bruno@clisp.org>
9469
9470         strchrnul: Tweak last commit.
9471         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
9472         bug.
9473         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
9474         as in _GL_FUNCDECL_SYS.
9475         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
9476         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
9477
9478 2011-04-15  Eric Blake  <eblake@redhat.com>
9479
9480         strchrnul: work around cygwin bug
9481         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
9482         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
9483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
9484         * modules/string (Makefile.am): Substitute it.
9485         * lib/string.in.h (strchrnul): Use it.
9486
9487 2011-04-15  Bruno Haible  <bruno@clisp.org>
9488
9489         Don't require lib/stdio-write.c when only module 'stdio' is used.
9490         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
9491         invocation.
9492         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
9493
9494 2011-04-14  Bruno Haible  <bruno@clisp.org>
9495
9496         Support non-blocking pipe I/O in read() on native Windows.
9497         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
9498         (read): New declaration.
9499         * lib/read.c: New file.
9500         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
9501         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
9502         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
9503         vscanf): New declarations.
9504         * lib/stdio-read.c: New file.
9505         * m4/read.m4: New file.
9506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
9507         REPLACE_READ.
9508         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
9509         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9510         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
9511         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
9512         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
9513         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9514         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9515         * modules/read: New file.
9516         * modules/nonblocking (Files): Add lib/stdio-read.c.
9517         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
9518         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
9519         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9520         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9521         * modules/pread (Depends-on): Add read.
9522         * modules/safe-read (Depends-on): Likewise.
9523         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
9524         gets, scanf, vfscanf, vscanf): Verify signatures.
9525         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
9526         problem with non-blocking pipes.
9527         * doc/posix-functions/fgetc.texi: Likewise.
9528         * doc/posix-functions/fgets.texi: Likewise.
9529         * doc/posix-functions/fread.texi: Likewise.
9530         * doc/posix-functions/fscanf.texi: Likewise.
9531         * doc/posix-functions/getc.texi: Likewise.
9532         * doc/posix-functions/getchar.texi: Likewise.
9533         * doc/posix-functions/gets.texi: Likewise.
9534         * doc/posix-functions/scanf.texi: Likewise.
9535         * doc/posix-functions/vfscanf.texi: Likewise.
9536         * doc/posix-functions/vscanf.texi: Likewise.
9537
9538 2011-04-14  Bruno Haible  <bruno@clisp.org>
9539
9540         Support non-blocking pipe I/O in write() on native Windows.
9541         * lib/write.c (rpl_write): Split a write request that failed merely
9542         because the byte count was larger than the pipe buffer's size.
9543         * doc/posix-functions/write.texi: Mention the problem with large byte
9544         counts.
9545
9546 2011-04-14  Bruno Haible  <bruno@clisp.org>
9547
9548         wchar: Ensure that wchar_t gets defined on uClibc.
9549         * lib/wchar.in.h: On uClibc, include <stddef.h>.
9550         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
9551
9552 2011-04-13  Bruno Haible  <bruno@clisp.org>
9553
9554         safe-write, full-read: Avoid unnecessary compilation units.
9555         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
9556         (Depends-on): Remove safe-read. Add ssize_t.
9557         * modules/full-read (Files): Add lib/full-write.c.
9558         (Depends-on): Add full-write.
9559
9560 2011-04-13  Bruno Haible  <bruno@clisp.org>
9561
9562         Support non-blocking pipe I/O and SIGPIPE in pwrite().
9563         * modules/pwrite (Depends-on): Add 'write'.
9564
9565 2011-04-13  Bruno Haible  <bruno@clisp.org>
9566
9567         Support non-blocking pipe I/O in write() on native Windows.
9568         * lib/unistd.in.h (write): Enable replacement also if
9569         GNULIB_UNISTD_H_NONBLOCKING is 1.
9570         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
9571         (rpl_write): When failing to write on a non-blocking pipe, change
9572         errno from ENOSPC to EAGAIN.
9573         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
9574         putchar, puts, vfprintf, vprintf): Enable replacement also if
9575         GNULIB_STDIO_H_NONBLOCKING is 1.
9576         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
9577         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
9578         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
9579         CALL_WITH_SIGPIPE_EMULATION.
9580         (CALL_WITH_SIGPIPE_EMULATION): Use them.
9581         * m4/nonblocking.m4: New file.
9582         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
9583         for non-blocking I/O support.
9584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9585         GNULIB_UNISTD_H_NONBLOCKING.
9586         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
9587         required for non-blocking I/O support.
9588         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
9589         * modules/nonblocking (Files): Add m4/nonblocking.m4,
9590         lib/stdio-write.c, m4/asm-underscore.m4.
9591         (Depends-on): Add stdio, unistd.
9592         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
9593         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
9594         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
9595         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
9596         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
9597         problem with non-blocking pipes.
9598         * doc/posix-functions/fputc.texi: Likewise.
9599         * doc/posix-functions/fputs.texi: Likewise.
9600         * doc/posix-functions/fwrite.texi: Likewise.
9601         * doc/posix-functions/printf.texi: Likewise.
9602         * doc/posix-functions/putc.texi: Likewise.
9603         * doc/posix-functions/putchar.texi: Likewise.
9604         * doc/posix-functions/puts.texi: Likewise.
9605         * doc/posix-functions/vfprintf.texi: Likewise.
9606         * doc/posix-functions/vprintf.texi: Likewise.
9607         * doc/posix-functions/write.texi: Likewise.
9608
9609 2011-04-10  Jim Meyering  <meyering@redhat.com>
9610
9611         maint.mk: prohibit doubled words
9612         Detect them also when they're separated by a newline.
9613         There are 3 ways to customize it:
9614           - disable the test on a per file basis, as usual with rules using
9615             $(VC_LIST_EXCEPT)
9616           - replace the default doubled-word-selecting regexp (affects all files)
9617           - ignore a particular file-vs-doubled-word match
9618         I nearly used that last one to ignore the "is is" match in
9619         coreutils' NEWS file, since the text was "ls -is is ..."
9620         To do that, I would have added this line to cfg.mk:
9621           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
9622         but it would have ignored any "is is" match in NEWS.
9623         Low probability, but still...
9624         Instead, I changed the text, slightly:
9625           -  ls -is is now consistent with ls -lis in ignoring values returned
9626           +  "ls -is" is now consistent with ls -lis in ignoring values returned
9627         * top/maint.mk (prohibit_double_word_RE_): Provide default.
9628         (prohibit_doubled_word_): Define.
9629         (sc_prohibit_doubled_word): New rule.
9630         (sc_prohibit_the_the): Remove.  Subsumed by the above.
9631
9632 2011-04-10  Jim Meyering  <meyering@redhat.com>
9633
9634         maint: fix doubled-word typo in comment
9635         * m4/gethostname.m4: s/is is/it is/
9636         * m4/getdomainname.m4: Likewise.
9637
9638 2011-04-10  Jim Meyering  <meyering@redhat.com>
9639
9640         maint: remove doubled word: s/it it/it/
9641         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
9642
9643 2011-04-10  Jim Meyering  <meyering@redhat.com>
9644
9645         maint.mk: remove useless semicolon and backslash
9646         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
9647         semicolon and backslash.
9648
9649 2011-04-10  Bruno Haible  <bruno@clisp.org>
9650
9651         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
9652         * modules/stdint-tests (Depends-on): Add wchar.
9653
9654 2011-04-10  Jim Meyering  <meyering@redhat.com>
9655
9656         maint: remove doubled words in comments, e.g., s/a a/a/
9657         * lib/strptime.c (day_of_the_week): s/the the/the/
9658         * tests/test-chown.h (test_chown): s/a a/a/
9659
9660         test-chown.h: correct a cast
9661         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
9662         when the destination is a stat.st_gid.
9663
9664 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9665
9666         getaddrinfo: Fix test for sa_len member.
9667         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9668         include <sys/types.h> before <sys/socket.h>.
9669
9670 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9671
9672         maint: change "can not" to "cannot"
9673         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9674         boundaries.
9675
9676 2011-04-09  Jim Meyering  <meyering@redhat.com>
9677
9678         maint: change "a a" to "a"
9679         * tests/test-lchown.h (test_lchown): s/a a/a/
9680
9681         maint.mk: prohibit \<the the\>
9682         * top/maint.mk (sc_prohibit_the_the): New rule.
9683
9684         maint: fix "the the" in comment
9685         * lib/count-one-bits.h: s/the the/the/
9686
9687         maint: change "can not" to "cannot"
9688         But do not change the occurrences in maintain.texi or in
9689         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9690         * doc/gnulib-tool.texi: s/can not/cannot/
9691         * doc/posix-functions/accept.texi (accept): Likewise.
9692         * doc/posix-functions/socket.texi (socket): Likewise.
9693         * lib/mbrtowc.c: Likewise.
9694
9695         maint.mk: prohibit use of "can not"
9696         * top/maint.mk (sc_prohibit_can_not): New rule.
9697         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9698
9699 2011-04-09  Bruno Haible  <bruno@clisp.org>
9700
9701         careadlinkat: Guard against misuse of careadlinkatcwd.
9702         * lib/careadlinkat.c: Include <stdlib.h>.
9703         (careadlinkatcwd): Check that the fd argument is as expected.
9704
9705 2011-04-09  Bruno Haible  <bruno@clisp.org>
9706
9707         careadlinkat: Use common coding style.
9708         * lib/careadlinkat.c: Move gnulib includes after system includes.
9709
9710 2011-04-09  Bruno Haible  <bruno@clisp.org>
9711
9712         careadlinkat: Clarify specification.
9713         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9714         (careadlinkatcwd): Add comment.
9715         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9716
9717 2011-04-09  Bruno Haible  <bruno@clisp.org>
9718
9719         areadlinkat: Avoid link error on many platforms.
9720         * modules/areadlinkat (Depends-on): Add areadlink.
9721
9722 2011-04-09  Bruno Haible  <bruno@clisp.org>
9723
9724         allocator, careadlinkat: Fix double-inclusion guard.
9725         * lib/allocator.h: Fix double-inclusion guard.
9726         * lib/careadlinkat.h: Likewise.
9727
9728 2011-04-09  Bruno Haible  <bruno@clisp.org>
9729
9730         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9731         * lib/relocwrapper.c: Update dependencies hierarchy.
9732         * build-aux/install-reloc: Update list of files to be compiled.
9733         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9734         lib/allocator.[hc].
9735
9736 2011-04-08  Eric Blake  <eblake@redhat.com>
9737
9738         strftime: silence gnulib-tool warning
9739         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9740
9741 2011-04-08  Bruno Haible  <bruno@clisp.org>
9742
9743         verify: Fix syntax error with GCC 4.6 in C++ mode.
9744         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9745         (HAVE_STATIC_ASSERT): New macro.
9746         (verify_true, verify): Use 'static_assert' if it is supported and
9747         '_Static_assert' is not supported.
9748
9749 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9750
9751         allocator: New module.
9752         * modules/allocator, lib/allocator.c: New files.
9753         * lib/allocator.h (stdlib_allocator): New decl.
9754         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9755         Remove.  Do not include <stdlib.h>.
9756         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9757         * modules/careadlinkat (Files): Remove lib/allocator.h.
9758         (Depends-on): Add allocator.
9759
9760         stdlib: let modules use system malloc, realloc
9761         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9762         if !_GL_USE_STDLIB_ALLOC.
9763         (malloc, realloc): Limit this change to a smaller scope.
9764
9765         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9766         (malloc, realloc): Don't #undef; no longer needed.
9767         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9768         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9769         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9770         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9771         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9772         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9773         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9774         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9775
9776         careadlinkat: rename members to avoid problem
9777         * lib/allocator.h (struct allocator): Rename members from
9778         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9779         and realloc are #define'd.  Reported by Eric Blake in
9780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9781         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9782
9783 2011-04-08  Eric Blake  <eblake@redhat.com>
9784
9785         nonblocking: reduce dependency
9786         * tests/test-nonblocking.c: Only test sockets when in use.
9787         * modules/nonblocking-tests (Depends-on): Drop socket.
9788         (Makefile.am): Link even if sockets are not present.
9789         * modules/pipe2-tests (Makefile.am): Likewise.
9790         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9791
9792         pipe2: fix O_NONBLOCK support on mingw
9793         * modules/pipe2 (Depends-on): Add nonblocking.
9794         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9795         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9796         * tests/test-nonblocking.c (main): Likewise.
9797         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9798
9799         fcntl-h: fix O_ACCMODE on cygwin
9800         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9801         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9802
9803         pipe-filter: drop O_NONBLOCK workarounds
9804         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9805         * modules/pipe-filter-ii (Depends-on): Likewise.
9806         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9807
9808         nonblocking: provide O_NONBLOCK for mingw
9809         * modules/nonblocking (Depends-on): Add open.
9810         (configure.ac): Set new witness macro.
9811         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9812         * modules/fcntl-h (Makefile.am): Substitute it.
9813         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9814         nonblocking module is in use.
9815         * lib/nonblocking.c: Adjust portability test.
9816         * lib/open.c (open): Don't let native open see gnulib flag.
9817         * tests/test-fcntl-h.c (main): Enhance test.
9818         * tests/test-open.h (test_open): Likewise.
9819         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9820
9821         careadlinkat: fix compilation error on mingw
9822         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9823         within struct allocator.
9824
9825 2011-04-06  Eric Blake  <eblake@redhat.com>
9826
9827         binary-io: relicense under LGPLv2+
9828         * modules/binary-io (License): Relax to LGPLv2+.
9829         Requested for libvirt, and required by pipe2.
9830
9831 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9832
9833         verify: use _Static_assert if available
9834         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9835         (verify_true, verify): Use it if available.  This generates better
9836         diagnostics with GCC 4.6.0 and later.
9837
9838 2011-04-05  Bruno Haible  <bruno@clisp.org>
9839
9840         Remove leftover generated .h files after config.status changed.
9841
9842         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9843         GL_GENERATE_ALLOCA_H.
9844         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9845         GL_GENERATE_ALLOCA_H evaluates to false.
9846
9847         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9848         GL_GENERATE_ARGZ_H.
9849         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9850         evaluates to false.
9851
9852         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9853         GL_GENERATE_BYTESWAP_H.
9854         * modules/byteswap (Makefile.am): Remove byteswap.h if
9855         GL_GENERATE_BYTESWAP_H evaluates to false.
9856
9857         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9858         GL_GENERATE_ERRNO_H.
9859         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9860         evaluates to false.
9861
9862         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9863         GL_GENERATE_FLOAT_H.
9864         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9865         evaluates to false.
9866
9867         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9868         GL_GENERATE_FNMATCH_H.
9869         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9870         GL_GENERATE_FNMATCH_H evaluates to false.
9871
9872         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9873         GL_GENERATE_GLOB_H.
9874         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9875         evaluates to false.
9876
9877         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9878         automake conditional GL_GENERATE_ICONV_H.
9879         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9880         evaluates to false.
9881
9882         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9883         GL_GENERATE_NETINET_IN_H.
9884         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9885         GL_GENERATE_NETINET_IN_H evaluates to false.
9886
9887         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9888         conditional GL_GENERATE_PTHREAD_H.
9889         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9890         * modules/pthread (Makefile.am): Remove pthread.h if
9891         GL_GENERATE_PTHREAD_H evaluates to false.
9892
9893         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9894         GL_GENERATE_SCHED_H.
9895         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9896         evaluates to false.
9897
9898         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9899         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9900         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9901         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9902
9903         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9904         GL_GENERATE_STDARG_H.
9905         * modules/stdarg (Makefile.am): Remove stdarg.h if
9906         GL_GENERATE_STDARG_H evaluates to false.
9907
9908         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9909         GL_GENERATE_STDBOOL_H.
9910         * modules/stdbool (Makefile.am): Remove stdbool.h if
9911         GL_GENERATE_STDBOOL_H evaluates to false.
9912
9913         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9914         conditional GL_GENERATE_STDDEF_H.
9915         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9916         * modules/stddef (Makefile.am): Remove stddef.h if
9917         GL_GENERATE_STDDEF_H evaluates to false.
9918
9919         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9920         GL_GENERATE_STDINT_H.
9921         * modules/stdint (Makefile.am): Remove stdint.h if
9922         GL_GENERATE_STDINT_H evaluates to false.
9923
9924         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9925         GL_GENERATE_SYSEXITS_H.
9926         * modules/sysexits (Makefile.am): Remove sysexits.h if
9927         GL_GENERATE_SYSEXITS_H evaluates to false.
9928
9929         Reported by Karl Berry and Ralf Wildenhues.
9930
9931 2011-04-05  Bruno Haible  <bruno@clisp.org>
9932
9933         Ensure to rebuild generated .h files when config.status has changed.
9934         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9935         config.status.
9936         * modules/ctype (Makefile.am): Likewise.
9937         * modules/dirent (Makefile.am): Likewise.
9938         * modules/errno (Makefile.am): Likewise.
9939         * modules/fcntl-h (Makefile.am): Likewise.
9940         * modules/float (Makefile.am): Likewise.
9941         * modules/getopt-posix (Makefile.am): Likewise.
9942         * modules/glob (Makefile.am): Likewise.
9943         * modules/iconv-h (Makefile.am): Likewise.
9944         * modules/inttypes (Makefile.am): Likewise.
9945         * modules/langinfo (Makefile.am): Likewise.
9946         * modules/locale (Makefile.am): Likewise.
9947         * modules/math (Makefile.am): Likewise.
9948         * modules/netdb (Makefile.am): Likewise.
9949         * modules/netinet_in (Makefile.am): Likewise.
9950         * modules/poll-h (Makefile.am): Likewise.
9951         * modules/pthread (Makefile.am): Likewise.
9952         * modules/pty (Makefile.am): Likewise.
9953         * modules/sched (Makefile.am): Likewise.
9954         * modules/search (Makefile.am): Likewise.
9955         * modules/selinux-h (Makefile.am): Likewise.
9956         * modules/signal (Makefile.am): Likewise.
9957         * modules/spawn (Makefile.am): Likewise.
9958         * modules/stdarg (Makefile.am): Likewise.
9959         * modules/stdbool (Makefile.am): Likewise.
9960         * modules/stddef (Makefile.am): Likewise.
9961         * modules/stdint (Makefile.am): Likewise.
9962         * modules/stdio (Makefile.am): Likewise.
9963         * modules/stdlib (Makefile.am): Likewise.
9964         * modules/string (Makefile.am): Likewise.
9965         * modules/strings (Makefile.am): Likewise.
9966         * modules/sys_file (Makefile.am): Likewise.
9967         * modules/sys_ioctl (Makefile.am): Likewise.
9968         * modules/sys_select (Makefile.am): Likewise.
9969         * modules/sys_socket (Makefile.am): Likewise.
9970         * modules/sys_stat (Makefile.am): Likewise.
9971         * modules/sys_time (Makefile.am): Likewise.
9972         * modules/sys_times (Makefile.am): Likewise.
9973         * modules/sys_utsname (Makefile.am): Likewise.
9974         * modules/sys_wait (Makefile.am): Likewise.
9975         * modules/sysexits (Makefile.am): Likewise.
9976         * modules/termios (Makefile.am): Likewise.
9977         * modules/time (Makefile.am): Likewise.
9978         * modules/unistd (Makefile.am): Likewise.
9979         * modules/wchar (Makefile.am): Likewise.
9980         * modules/wctype-h (Makefile.am): Likewise.
9981         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9982
9983 2011-04-05  Bruno Haible  <bruno@clisp.org>
9984
9985         pipe2: Relicense under LGPLv2+.
9986         * modules/pipe2 (License): Change to LGPLv2+.
9987         Requested by Eric Blake, for libvirt.
9988
9989 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9990
9991         bootstrap: compute gnulib_extra_files after updating build_aux
9992         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9993         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9994
9995 2011-04-05  Eric Blake  <eblake@redhat.com>
9996
9997         bootstrap: preserve git whitelist item sorting
9998         * build-aux/bootstrap (sort_patterns): New function.
9999         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
10000
10001 2011-04-05  Simon Josefsson  <simon@josefsson.org>
10002
10003         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
10004         sc_space_tab check.
10005
10006 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
10007
10008         areadlink, areadlinkat: rewrite in terms of careadlinkat
10009         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
10010         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
10011         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
10012         (malloc, realloc): Remove #undefs.
10013         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
10014         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
10015         readlink, ssize_t, stdint, unistd.
10016         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
10017         areadlink, stdint.
10018
10019         careadlinkat: new module
10020         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
10021         * modules/careadlinkat: New files, written by me with
10022         a review and feedback from Ben Pfaff in
10023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
10024
10025 2011-04-01  Bruno Haible  <bruno@clisp.org>
10026
10027         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
10028         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
10029         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
10030         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
10031         Reported by Bruce Korb <bruce.korb@gmail.com>.
10032
10033 2011-04-01  Bruno Haible  <bruno@clisp.org>
10034
10035         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
10036         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
10037         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
10038         * modules/wcpcpy (Depends-on): Add extensions.
10039         * modules/wcpncpy (Depends-on): Likewise.
10040         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
10041         systems.
10042         * doc/posix-functions/wcpncpy.texi: Likewise.
10043         * doc/posix-functions/wcwidth.texi: Likewise.
10044
10045 2011-03-31  Eric Blake  <eblake@redhat.com>
10046
10047         nonblocking: fix mingw test failures
10048         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
10049         non-blocking flag on regular file.
10050         (get_nonblocking_flag): Set errno on invalid fd.
10051         * tests/test-nonblocking.c (main): Avoid test failure on
10052         directories if fchdir is not active.
10053         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
10054
10055 2011-03-31  Bruno Haible  <bruno@clisp.org>
10056
10057         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
10058         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
10059         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
10060         Reported by Simon Josefsson <simon@josefsson.org>.
10061
10062 2011-03-31  Bruno Haible  <bruno@clisp.org>
10063         and Eric Blake  <eblake@redhat.com>
10064
10065         nonblocking: new module
10066         * modules/nonblocking: New module.
10067         * modules/nonblocking-tests: Likewise.
10068         * lib/nonblocking.h: New file.
10069         * lib/nonblocking.c: Likewise.
10070         * tests/test-nonblocking.c: New test.
10071         * lib/ioctl.c (ioctl) [mingw]: Update comment.
10072
10073 2011-03-30  Bruno Haible  <bruno@clisp.org>
10074
10075         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
10076         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
10077         instead of 'printf' format for GCC >= 4.4.
10078         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
10079         (fprintf, printf, vfprintf, vprintf): Declare with
10080         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
10081         the system's vfprintf() function.
10082         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
10083
10084 2011-03-30  Eric Blake  <eblake@redhat.com>
10085
10086         passfd: fix scoping bug
10087         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
10088         before sendmsg/recvmsg.
10089
10090         passfd: standardize coding conventions
10091         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
10092         can be learned at compile time.
10093         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
10094         ifdefs.
10095         (sendfd, recvfd): Follow gnulib code conventions.
10096
10097         passfd: fix incorrect sendmsg arguments
10098         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
10099         incorrect msg_controllen value.
10100         * modules/passfd-tests (Depends-on): Check for alarm.
10101         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
10102         Reported by Bastien ROUCARIES.
10103
10104 2011-03-30  Bruno Haible  <bruno@clisp.org>
10105
10106         c-strcasestr: Relicense under LGPLv2+.
10107         * modules/c-strcasestr (License): Change to LGPLv2+.
10108         Requested by Eric Blake, for libvirt.
10109
10110 2011-03-30  Simon Josefsson  <simon@josefsson.org>
10111
10112         * users.txt: Add libidn2.  Fix libtasn1 link.
10113
10114 2011-03-30  Jim Meyering  <meyering@redhat.com>
10115
10116         tests: readlink* ("",... fails with EINVAL on newer kernels
10117         readlink and readlinkat have typically failed with ENOENT for
10118         the invalid, empty file name,  "".  However, with the advent
10119         of linux-2.6.39, they fail with EINVAL.
10120         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
10121         when operating on the empty file name.
10122         * tests/test-readlink.h (test_readlink): Likewise.
10123
10124 2011-03-29  Bruno Haible  <bruno@clisp.org>
10125
10126         Relicense some modules under LGPLv2+, for libidn2.
10127         * modules/array-mergesort (License): Change to LGPLv2+.
10128         * modules/c-strcaseeq (License): Likewise.
10129         * modules/striconveh (License): Likewise.
10130         * modules/striconveha (License): Likewise.
10131         * modules/uniconv/base (License): Likewise.
10132         * modules/uniconv/u8-conv-from-enc (License): Likewise.
10133         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
10134         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
10135         * modules/unictype/base (License): Likewise.
10136         * modules/unictype/bidiclass-of (License): Likewise.
10137         * modules/unictype/category-M (License): Likewise.
10138         * modules/unictype/category-none (License): Likewise.
10139         * modules/unictype/category-of (License): Likewise.
10140         * modules/unictype/category-test (License): Likewise.
10141         * modules/unictype/category-test-withtable (License): Likewise.
10142         * modules/unictype/combining-class (License): Likewise.
10143         * modules/unictype/joiningtype-of (License): Likewise.
10144         * modules/unictype/scripts (License): Likewise.
10145         * modules/uninorm/base (License): Likewise.
10146         * modules/uninorm/canonical-decomposition (License): Likewise.
10147         * modules/uninorm/composition (License): Likewise.
10148         * modules/uninorm/decompose-internal (License): Likewise.
10149         * modules/uninorm/decomposition-table (License): Likewise.
10150         * modules/uninorm/nfc (License): Likewise.
10151         * modules/uninorm/nfd (License): Likewise.
10152         * modules/uninorm/u32-normalize (License): Likewise.
10153         * modules/unistr/base (License): Likewise.
10154         * modules/unistr/u32-cpy (License): Likewise.
10155         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
10156         * modules/unistr/u32-to-u8 (License): Likewise.
10157         * modules/unistr/u32-uctomb (License): Likewise.
10158         * modules/unistr/u8-check (License): Likewise.
10159         * modules/unistr/u8-mblen (License): Likewise.
10160         * modules/unistr/u8-mbtouc (License): Likewise.
10161         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
10162         * modules/unistr/u8-mbtoucr (License): Likewise.
10163         * modules/unistr/u8-prev (License): Likewise.
10164         * modules/unistr/u8-strlen (License): Likewise.
10165         * modules/unistr/u8-to-u32 (License): Likewise.
10166         * modules/unistr/u8-uctomb (License): Likewise.
10167         * modules/unitypes (License): Likewise.
10168         Requested by Simon Josefsson.
10169
10170 2011-03-29  Simon Josefsson  <simon@josefsson.org>
10171
10172         lib-symbol-visibility: Add a notice.
10173         * modules/lib-symbol-visibility (Notice): New field.
10174
10175 2011-03-29  Bruno Haible  <bruno@clisp.org>
10176
10177         getaddrinfo: Doc fix.
10178         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
10179         section "fixed in Gnulib".
10180
10181 2011-03-28  Simon Josefsson  <simon@josefsson.org>
10182
10183         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
10184         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
10185
10186 2011-03-26  Bruno Haible  <bruno@clisp.org>
10187
10188         unictype/property-byname: Reduce the number of load-time relocations.
10189         * lib/unictype/pr_byname.c: Include <stdlib.h>.
10190         (UC_PROPERTY_INDEX_*): New enumeration values.
10191         (uc_property_byname): Convert an index from the lookup table to an
10192         uc_property_t.
10193         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
10194         values.
10195
10196 2011-03-26  Bruno Haible  <bruno@clisp.org>
10197
10198         unictype/property-byname: Allow omitted word separators and aliases.
10199         * lib/unictype/pr_byname.gperf: Add property names without word
10200         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
10201         for 'space'.
10202
10203 2011-03-26  Bruno Haible  <bruno@clisp.org>
10204
10205         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
10206         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
10207         also hyphens to space.
10208         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
10209         without spaces.
10210         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
10211
10212 2011-03-26  Bruno Haible  <bruno@clisp.org>
10213
10214         unictype/joiningtype-byname: Recognize long names as well.
10215         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
10216         a long name.
10217         * lib/unictype/joiningtype_byname.c: Include <string.h>,
10218         unictype/joiningtype_byname.h.
10219         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
10220         * lib/unictype/joiningtype_byname.gperf: New file.
10221         * modules/unictype/joiningtype-byname (Files): Add
10222         lib/unictype/joiningtype_byname.gperf.
10223         (Depends-on): Add gperf.
10224         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
10225         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
10226         long names.
10227
10228         Tests for module 'unictype/joiningtype-longname'.
10229         * modules/unictype/joiningtype-longname-tests: New file.
10230         * tests/unictype/test-joiningtype_longname.c: New file.
10231
10232         New module 'unictype/joiningtype-longname'.
10233         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
10234         * lib/unictype/joiningtype_longname.c: New file.
10235         * modules/unictype/joiningtype-longname: New file.
10236         * modules/unictype/joiningtype-all (Depends-on): Add
10237         unictype/joiningtype-longname.
10238
10239 2011-03-26  Bruno Haible  <bruno@clisp.org>
10240
10241         unictype/bidiclass-byname: Recognize long names as well.
10242         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
10243         name.
10244         * lib/unictype/bidi_byname.c: Include <string.h>,
10245         unictype/bidi_byname.h.
10246         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
10247         * lib/unictype/bidi_byname.gperf: New file.
10248         * modules/unictype/bidiclass-byname (Files): Add
10249         lib/unictype/bidi_byname.gperf.
10250         (Depends-on): Add gperf.
10251         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
10252         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
10253         long names.
10254
10255         Tests for module 'unictype/bidiclass-longname'.
10256         * modules/unictype/bidiclass-longname-tests: New file.
10257         * tests/unictype/test-bidi_longname.c: New file.
10258
10259         New module 'unictype/bidiclass-longname'.
10260         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
10261         * lib/unictype/bidi_longname.c: New file.
10262         * modules/unictype/bidiclass-longname: New file.
10263         * modules/unictype/bidiclass-all (Depends-on): Add
10264         unictype/bidiclass-longname.
10265
10266 2011-03-26  Bruno Haible  <bruno@clisp.org>
10267
10268         unictype/bidi*: Rename modules.
10269         * modules/unictype/bidiclass-all: Renamed from
10270         modules/unictype/bidicategory-all.
10271         * modules/unictype/bidiclass-name: Renamed from
10272         modules/unictype/bidiclass-name.
10273         (Description): Update.
10274         * modules/unictype/bidiclass-name-tests: Renamed from
10275         modules/unictype/bidicategory-name-tests.
10276         * modules/unictype/bidiclass-byname: Renamed from
10277         modules/unictype/bidicategory-byname.
10278         (Description): Update.
10279         * modules/unictype/bidiclass-byname-tests: Renamed from
10280         modules/unictype/bidicategory-byname-tests.
10281         * modules/unictype/bidiclass-of: Renamed from
10282         modules/unictype/bidicategory-of.
10283         (Description): Update.
10284         * modules/unictype/bidiclass-of-tests: Renamed from
10285         modules/unictype/bidicategory-of-tests.
10286         * modules/unictype/bidiclass-test: Renamed from
10287         modules/unictype/bidicategory-test.
10288         (Description): Update.
10289         * modules/unictype/bidiclass-test-tests: Renamed from
10290         modules/unictype/bidicategory-test-tests.
10291         * modules/unictype/bidicategory-all: New file, a simple redirection.
10292         * modules/unictype/bidicategory-name: Likewise.
10293         * modules/unictype/bidicategory-byname: Likewise.
10294         * modules/unictype/bidicategory-of: Likewise.
10295         * modules/unictype/bidicategory-test: Likewise.
10296         * modules/unictype/property-bidi-* (Dependencies): Update.
10297         * lib/unictype/bidi_*.c: Update comment.
10298
10299 2011-03-26  Bruno Haible  <bruno@clisp.org>
10300
10301         unictype/bidi*: Rename functions, part 2.
10302         * modules/unictype/bidicategory-name (configure.ac): Update required
10303         libunistring version.
10304         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
10305
10306 2011-03-25  Bruno Haible  <bruno@clisp.org>
10307
10308         New module 'unictype/combining-class-all'.
10309         * modules/unictype/combining-class-all: New file.
10310
10311         Tests for module 'unictype/combining-class-byname'.
10312         * modules/unictype/combining-class-byname-tests: New file.
10313         * tests/unictype/test-combiningclass_byname.c: New file.
10314
10315         New module 'unictype/combining-class-byname'.
10316         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
10317         * lib/unictype/combiningclass_byname.c: New file.
10318         * lib/unictype/combiningclass_byname.gperf: New file.
10319         * modules/unictype/combining-class-byname: New file.
10320
10321         Tests for module 'unictype/combining-class-longname'.
10322         * modules/unictype/combining-class-longname-tests: New file.
10323         * tests/unictype/test-combiningclass_longname.c: New file.
10324
10325         New module 'unictype/combining-class-longname'.
10326         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
10327         * lib/unictype/combiningclass_longname.c: New file.
10328         * modules/unictype/combining-class-longname: New file.
10329
10330         Tests for module 'unictype/combining-class-name'.
10331         * modules/unictype/combining-class-name-tests: New file.
10332         * tests/unictype/test-combiningclass_name.c: New file.
10333
10334         New module 'unictype/combining-class-name'.
10335         * lib/unictype.in.h (uc_combining_class_name): New declaration.
10336         * lib/unictype/combiningclass_name.c: New file.
10337         * modules/unictype/combining-class-name: New file.
10338
10339 2011-03-25  Bruno Haible  <bruno@clisp.org>
10340
10341         unictype/combining-class: Rename source files.
10342         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
10343         of unictype/combining.h.
10344         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
10345         Update.
10346         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
10347         * modules/unictype/combining-class (Description): Fix.
10348         (Files, Makefile.am): Update.
10349         * tests/unictype/test-combiningclass.c: Renamed from
10350         tests/unictype/test-combining.c.
10351         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
10352
10353 2011-03-25  Bruno Haible  <bruno@clisp.org>
10354
10355         unictype: Update list of canonical combining classes.
10356         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
10357
10358 2011-03-25  Bruno Haible  <bruno@clisp.org>
10359
10360         unictype/category-byname: Recognize long names as well.
10361         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
10362         a long name.
10363         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
10364         unictype/categ_byname.h.
10365         (UC_CATEGORY_INDEX_*): New enumeration values.
10366         (uc_general_category_byname): Use uc_general_category_lookup and
10367         convert from index to value.
10368         * lib/unictype/categ_byname.gperf: New file.
10369         * modules/unictype/category-byname (Files): Add
10370         lib/unictype/categ_byname.gperf.
10371         (Depends-on): Add gperf.
10372         (Makefile.am): Add rule for generating unictype/categ_byname.h.
10373         * tests/unictype/test-categ_byname.c (main): Test the recognition of
10374         long names.
10375
10376         Tests for module 'unictype/category-longname'.
10377         * modules/unictype/category-longname-tests: New file.
10378         * tests/unictype/test-categ_longname.c: New file.
10379
10380         New module 'unictype/category-longname'.
10381         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
10382         * lib/unictype/categ_longname.c: New file.
10383         * modules/unictype/category-longname: New file.
10384         * modules/unictype/category-all (Depends-on): Add it.
10385
10386 2011-03-25  Bruno Haible  <bruno@clisp.org>
10387
10388         Tests for module 'unictype/category-LC'.
10389         * modules/unictype/category-LC-tests: New file.
10390         * tests/unictype/test-categ_LC.c: New file, automatically generated.
10391
10392         New module 'unictype/category-LC'.
10393         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
10394         (UC_CATEGORY_LC): New declaration.
10395         (UC_CASED_LETTER): New macro.
10396         * lib/gen-uni-tables.c (is_category_LC): New function.
10397         (output_categories): Also handle category LC.
10398         (UC_CATEGORY_MASK_LC): New enumeration value.
10399         (general_category_byname): Also handle category LC.
10400         * lib/unictype/categ_LC.c: New file.
10401         * lib/unictype/categ_LC.h: New file, automatically generated.
10402         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
10403         category LC.
10404         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
10405         * modules/unictype/category-LC: New file.
10406         * modules/unictype/category-byname (Depends-on): Add
10407         unictype/category-LC.
10408         * modules/unictype/category-all (Depends-on): Likewise.
10409
10410 2011-03-25  Eric Blake  <eblake@redhat.com>
10411
10412         xmalloc: revert yesterday's regression
10413         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
10414         realloc's underlying behavior (allowing allocation of zero-size
10415         objects, especially if malloc-gnu is also in use).
10416
10417 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
10418
10419         maint.mk: add missing version to VC-tag
10420         * top/maint.mk: git tag was missing actual tag name; add it.
10421
10422         valgrind: do leak checking, and exit with code 1 on error (not 0)
10423         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
10424         to VALGRIND.
10425
10426 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
10427
10428         posix-modules: say what it does.
10429         * posix-modules: Add a line to the --help output saying what it does.
10430
10431 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10432
10433         xmalloc: Do not leak if underlying realloc is C99 compatible.
10434         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
10435         This avoids a leak on C99-based systems.  See
10436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
10437
10438 2011-03-24  Eric Blake  <eblake@redhat.com>
10439
10440         realloc: document portability problem
10441         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
10442         passing 0 size to realloc.
10443
10444 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
10445
10446         doc: update users.txt
10447         * users.txt: Add cvsps, tmpwatch
10448
10449 2011-03-23  Matt Rice  <ratmice@gmail.com>
10450
10451         doc: update users.txt
10452         * users.txt: Add gdb.
10453
10454 2011-03-23  Jim Meyering  <meyering@redhat.com>
10455
10456         doc: update users.txt
10457         Looking through matches up to the following URL (there are still
10458         several more pages), I found several projects that use gnulib:
10459         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
10460         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
10461         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
10462
10463 2011-03-22  Bruno Haible  <bruno@clisp.org>
10464
10465         unictype/bidi*: Rename functions.
10466         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
10467         uc_bidi_class, uc_is_bidi_class): New declarations.
10468         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
10469         uc_bidi_category_byname.
10470         (uc_bidi_category_byname): New function.
10471         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
10472         u_bidi_category_name.
10473         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
10474         (uc_bidi_category_name): New function.
10475         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
10476         uc_bidi_category.
10477         (uc_bidi_category): New function.
10478         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
10479         uc_is_bidi_category. Invoke uc_bidi_class.
10480         (uc_is_bidi_category): New function.
10481         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
10482         instead of uc_bidi_category_byname.
10483         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
10484         instead of uc_bidi_category_name.
10485         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
10486         uc_bidi_category.
10487         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
10488         instead of uc_is_bidi_category.
10489
10490 2011-03-21  Bruno Haible  <bruno@clisp.org>
10491
10492         New module 'unictype/joininggroup-all'.
10493         * modules/unictype/joininggroup-all: New file.
10494
10495         Tests for module 'unictype/joininggroup-of'.
10496         * modules/unictype/joininggroup-of-tests: New file.
10497         * tests/unictype/test-joininggroup_of.c: New file.
10498         * tests/unictype/test-joininggroup_of.h: New file, automatically
10499         generated by gen-uni-tables.
10500
10501         New module 'unictype/joininggroup-of'.
10502         * modules/unictype/joininggroup-of: New file.
10503         * lib/unictype/joininggroup_of.c: New file.
10504         * lib/unictype/joininggroup_of.h: New file, automatically generated by
10505         gen-uni-tables.
10506
10507         Tests for module 'unictype/joininggroup-byname'.
10508         * modules/unictype/joininggroup-byname-tests: New file.
10509         * tests/unictype/test-joininggroup_byname.c: New file.
10510
10511         New module 'unictype/joininggroup-byname'.
10512         * modules/unictype/joininggroup-byname: New file.
10513         * lib/unictype/joininggroup_byname.c: New file.
10514         * lib/unictype/joininggroup_byname.gperf: New file.
10515
10516         Tests for module 'unictype/joininggroup-name'.
10517         * modules/unictype/joininggroup-name-tests: New file.
10518         * tests/unictype/test-joininggroup_name.c: New file.
10519
10520         New module 'unictype/joininggroup-name'.
10521         * modules/unictype/joininggroup-name: New file.
10522         * lib/unictype/joininggroup_name.c: New file.
10523         * lib/unictype/joininggroup_name.h: New file.
10524
10525         New module 'unictype/joiningtype-all'.
10526         * modules/unictype/joiningtype-all: New file.
10527
10528         Tests for module 'unictype/joiningtype-of'.
10529         * modules/unictype/joiningtype-of-tests: New file.
10530         * tests/unictype/test-joiningtype_of.c: New file.
10531         * tests/unictype/test-joiningtype_of.h: New file, automatically
10532         generated by gen-uni-tables.
10533
10534         New module 'unictype/joiningtype-of'.
10535         * modules/unictype/joiningtype-of: New file.
10536         * lib/unictype/joiningtype_of.c: New file.
10537         * lib/unictype/joiningtype_of.h: New file, automatically generated by
10538         gen-uni-tables.
10539
10540         Tests for module 'unictype/joiningtype-byname'.
10541         * modules/unictype/joiningtype-byname-tests: New file.
10542         * tests/unictype/test-joiningtype_byname.c: New file.
10543
10544         New module 'unictype/joiningtype-byname'.
10545         * modules/unictype/joiningtype-byname: New file.
10546         * lib/unictype/joiningtype_byname.c: New file.
10547
10548         Tests for module 'unictype/joiningtype-name'.
10549         * modules/unictype/joiningtype-name-tests: New file.
10550         * tests/unictype/test-joiningtype_name.c: New file.
10551
10552         New module 'unictype/joiningtype-name'.
10553         * modules/unictype/joiningtype-name: New file.
10554         * lib/unictype/joiningtype_name.c: New file.
10555
10556         unictype: Add support for Arabic shaping properties.
10557         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
10558         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
10559         declarations.
10560         (UC_JOINING_GROUP_*): New enumeration values.
10561         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
10562         declarations.
10563         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
10564         (unicode_joining_type): New variable.
10565         (UC_JOINING_GROUP_*): New enumeration values.
10566         (unicode_joining_group): New variable.
10567         (fill_arabicshaping, joining_type_as_c_identifier,
10568         output_joining_type_test, output_joining_type,
10569         joining_group_as_c_identifier, output_joining_group_test,
10570         output_joining_group): New functions.
10571         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
10572         fill_arabicshaping and output_joining_type_test, output_joining_type,
10573         output_joining_group_test, output_joining_group.
10574         Reported by Simon Josefsson.
10575
10576 2011-03-21  Jim Meyering  <meyering@redhat.com>
10577
10578         strftime: fix a bug in yesterday's change
10579         * lib/strftime.c (add): Accommodate width's initial value of -1.
10580         Otherwise, nstrftime would copy uninitialized data into
10581         the result buffer.
10582
10583 2011-03-21  Jim Meyering  <meyering@redhat.com>
10584
10585         tests: add strftime-tests module
10586         * tests/test-strftime.c: New file.
10587         * modules/strftime-tests: New module.
10588
10589 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10590
10591         strftime: don't assume a byte count fits in 'int'
10592         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
10593         found this problem by static analysis, using gcc -Wstrict-overflow
10594         (GCC 4.5.2, x86-64).  This reported an optimization that depended
10595         on an integer overflow having undefined behavior, but it turns out
10596         that the argument is a size, which might not fit in 'int' anyway,
10597
10598 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10599
10600         stdio: don't require ignore_value around fwrite
10601
10602         This patch works around libc bug 11959
10603         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
10604         Without this patch, applications must often write
10605         ignore_value (fwrite (...)) even though the ignore_value is
10606         not helpful here.  It's common to write many objects, using
10607         fwrite/printf/etc., and then use ferror to detect output error.
10608
10609         I considered making this patch optional, but decided against it,
10610         because libc is obviously being inconsistent here: there is no
10611         reason libc should insist that user code must inspect fwrite
10612         return's value without also insisting that it inspect printf's,
10613         putchar's, etc.  If user code wants to have a strict style where
10614         all these functions' values are checked (so that ferror need not
10615         be checked), we could add support for that style in a new gnulib
10616         module, but in the meantime it's better to be consistent and to
10617         support common usage.
10618
10619         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
10620         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
10621         that we are compiling in checking mode, and if not C++, and
10622         if not already wrapping fwrite for some other reason.
10623         (fwrite): #define to rpl_fwrite if the latter is defined.
10624
10625 2011-03-20  Bruno Haible  <bruno@clisp.org>
10626
10627         verror: Fix compilation error introduced on 2011-02-13.
10628         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
10629         instead of __attribute__.
10630         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10631
10632 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10633             Bruno Haible  <bruno@clisp.org>
10634
10635         socklen: do not depend on sys_socket
10636         While trying to modify Emacs to use gnulib's socklen module,
10637         I discovered a circular dependency: socklen depends on sys_socket
10638         and vice versa.  Emacs can use socklen, but it does not need
10639         sys_socket because it has its own substitute for sys/socket.h.
10640         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10641         gl_TYPE_SOCKLEN_T.
10642         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
10643         gl_PREREQ_SYS_H_SOCKET.
10644         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
10645         gl_PREREQ_SYS_H_SOCKET.
10646         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
10647         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
10648         * modules/socklen (Depends-on): Do not depend on sys_socket.
10649         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
10650
10651 2011-03-20  Jim Meyering  <meyering@redhat.com>
10652
10653         maint.mk: sort file names *after* new transformation
10654         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
10655         prefix would have led to an unwarranted failure in GNU parted.
10656         Sort after that transformation.
10657
10658 2011-03-19  Jim Meyering  <meyering@redhat.com>
10659
10660         maint.mk: fix po-file syntax-check rule
10661         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
10662         Patch by Bruno Haible.
10663
10664 2011-03-19  Bruno Haible  <bruno@clisp.org>
10665
10666         socklen: Update comment.
10667         * m4/socklen.m4: Update comment about platforms.
10668
10669 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10670             Bruno Haible  <bruno@clisp.org>
10671
10672         inet_ntop, inet_pton: Simplify.
10673         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10674         documented to provide socklen_t and we already depend on sys_socket.
10675         * modules/inet_pton (Depends-on): Likewise.
10676         * lib/arpa_inet.in.h: Adjust comment.
10677
10678 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10679             Bruno Haible  <bruno@clisp.org>
10680
10681         netdb: Simplify.
10682         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10683         documented to provide socklen_t and we already depend on sys_socket.
10684         * lib/netdb.in.h: Adjust comment.
10685
10686 2011-03-19  Bruno Haible  <bruno@clisp.org>
10687
10688         sys_socket, netdb: Document problem with socklen_t.
10689         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10690         platforms.
10691         * doc/posix-headers/netdb.texi: Likewise.
10692
10693 2011-03-18  Eric Blake  <eblake@redhat.com>
10694
10695         maint.mk: let po check work in VPATH build
10696         * top/maint.mk (po_file): Allow cfg.mk override.
10697         (sc_po_check): Allow VPATH use.
10698         Reported by Jiri Denemark.
10699
10700 2011-03-16  Jim Meyering  <meyering@redhat.com>
10701
10702         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10703         Before, you would have had to create one .x-sc_ file per rule in order
10704         to exempt offending files.  Now, you may instead use a Make variable --
10705         usually defined in cfg.mk -- whose name identifies the affected rule.
10706         * top/maint.mk (_sc_excl): Define.
10707         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10708         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10709
10710 2011-03-13  Bruno Haible  <bruno@clisp.org>
10711
10712         ignore-value tests: Avoid warnings.
10713         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10714         empty for gcc < 3.4.
10715
10716 2011-03-13  Bruno Haible  <bruno@clisp.org>
10717
10718         passfd: Fix link error on Solaris.
10719         * modules/passfd (Description): Correct.
10720         (Depends-on): Add socketlib.
10721         (Link): New section.
10722         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10723
10724 2011-03-13  Bruno Haible  <bruno@clisp.org>
10725
10726         passfd: Fix link error on AIX 5.2.
10727         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10728
10729 2011-03-13  Bruno Haible  <bruno@clisp.org>
10730
10731         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10732         * lib/sys_socket.in.h: Include <stddef.h>.
10733         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10734         CMSG_FIRSTHDR. Remove unused variable.
10735
10736 2011-03-13  Bruno Haible  <bruno@clisp.org>
10737
10738         passfd: Fix compilation error on OpenBSD.
10739         * lib/passfd.c: Include <sys/uio.h>.
10740
10741 2011-03-13  Bruno Haible  <bruno@clisp.org>
10742
10743         passfd test: Fix warnings.
10744         * tests/test-passfd.c: Include <sys/wait.h>.
10745         (main): Fix typo.
10746
10747 2011-03-13  Bruno Haible  <bruno@clisp.org>
10748
10749         passfd module, part 4, tweaks.
10750         * tests/test-passfd.c: Reorder includes.
10751         (main): Fix perror and printf calls.
10752
10753 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10754
10755         passfd module, part 4.
10756         * modules/passfd-tests: New file.
10757         * tests/test-passfd.c: New file.
10758
10759 2011-03-13  Jim Meyering  <meyering@redhat.com>
10760
10761         Makefile: rely on GNU make; derive syntax-check rule names
10762         Rather than requiring that each sc_ rule be listed as a dependent
10763         of "check", use features of GNU make to derive the list.
10764         * Makefile (syntax-check-rules): Define.
10765         (check): Depend on the new variable, not the hard-coded list.
10766
10767 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10768             Bruno Haible  <bruno@clisp.org>
10769
10770         passfd module, part 3.
10771         * lib/passfd.h (recvfd): Add a flags argument.
10772         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10773         (recvfd): Add a flags argument.
10774         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10775         exists.
10776         * modules/passfd (Depends-on): Add cloexec.
10777         Suggested by Eric Blake.
10778
10779 2011-03-13  Bruno Haible  <bruno@clisp.org>
10780
10781         passfd module, part 2, tweaks.
10782         * modules/passfd (Files): Reorder.
10783         (Depends-on): Remove errno.
10784         (Include): Remove <sys/socket.h>, <sys/un.h>.
10785         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10786         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10787         specification header. Include <sys/socket.h> always. Don't include
10788         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10789         (sendfd): Clarify that it sets errno when it fails.
10790         (recvfd): Fix specification.
10791
10792 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10793
10794         passfd module, part 2.
10795         * modules/passfd: New file.
10796         * lib/passfd.h: New file.
10797         * lib/passfd.c: New file.
10798
10799 2011-03-12  Bruno Haible  <bruno@clisp.org>
10800
10801         wcswidth, mbswidth: Avoid integer overflow.
10802         * lib/wcswidth.c: Include <limits.h>.
10803         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10804         * lib/mbswidth.c: Include <limits.h>.
10805         (mbsnwidth): Avoid 'int' overflow.
10806         Reported by Jim Meyering.
10807
10808 2011-03-12  Bruno Haible  <bruno@clisp.org>
10809
10810         futimens, utimensat: Avoid endless recursion on Solaris 10.
10811         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10812         Solaris.
10813         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10814         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10815
10816 2011-03-11  Jim Meyering  <meyering@redhat.com>
10817
10818         maint.mk: relax a regexp to accommodate other formatting styles
10819         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10820         between "ngettext" and the following "(".
10821
10822 2011-03-11  Pádraig Brady <P@draigBrady.com>
10823
10824         maint.mk: suppress a false positive warning
10825         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10826         diagnostics are marked with ngettext.
10827
10828 2011-03-10  Eric Blake  <eblake@redhat.com>
10829
10830         wchar: add explicit dependencies, for Tru64
10831         * modules/mbmemcasecoll (Depends-on): Add wchar.
10832         * modules/mbtowc (Depends-on): Likewise.
10833         * modules/vasnprintf (Depends-on): Likewise.
10834         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10835         * modules/wctomb (Depends-on): Likewise.
10836         Reported by Peter O'Gorman.
10837
10838 2011-03-08  Bruno Haible  <bruno@clisp.org>
10839
10840         passfd module, part 1, tweaks.
10841         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10842         Improve indentation. Improve AC_MSG_CHECKING messages.
10843         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10844         gl_SOCKET_FAMILIES.
10845
10846 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10847
10848         passfd module, part 1.
10849         * m4/afunix.m4: New file.
10850         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10851         sockets.
10852
10853 2011-03-08  Bruno Haible  <bruno@clisp.org>
10854
10855         regex-quote: New API.
10856         * lib/regex-quote.h: Include <stdbool.h>.
10857         (struct regex_quote_spec): New type.
10858         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10859         New declarations.
10860         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10861         'const struct regex_quote_spec *' argument.
10862         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10863         (pcre_special): New constant.
10864         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10865         New functions.
10866         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10867         'const struct regex_quote_spec *' argument.
10868         * modules/regex-quote (Depends-on): Add stdbool.
10869         * tests/test-regex-quote.c (check): Update for new API. Add test for
10870         anchored results.
10871         * NEWS: Mention the API change.
10872         Reported by Reuben Thomas and Eric Blake.
10873
10874 2011-03-06  Bruno Haible  <bruno@clisp.org>
10875
10876         regex-quote: Fix creation of POSIX extended regular expressions.
10877         * lib/regex-quote.c (ere_special): Add grouping and alternation
10878         operators.
10879
10880 2011-03-05  Bruno Haible  <bruno@clisp.org>
10881
10882         doc: Improve doc regarding autopoint vs. gnulib.
10883         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10884         disable autopoint while running autoreconf.
10885         Suggested by Ralf Wildenhues.
10886
10887 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10888
10889         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10890         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10891
10892 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10893
10894         parse-duration: remove xalloc.h dependency
10895         * lib/parse-duration.c (parse_period): handle NULL return from
10896         strdup instead of calling xstrdup().
10897         * modules/parse-duration: remove "xalloc" dependency
10898
10899 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10900
10901         bootstrap: honor m4_base when running aclocal
10902         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10903
10904 2011-03-02  Jim Meyering  <meyering@redhat.com>
10905
10906         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10907         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10908         on request from Matt Booth.
10909
10910 2011-03-01  Eric Blake  <eblake@redhat.com>
10911
10912         test-link: work on Hurd
10913         * tests/test-link.h (test_link): Hurd rejects linking directories
10914         with EISDIR instead of the POSIX-mandated EPERM.
10915
10916 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10917
10918         stdio: simplify by moving files to printf-posix, sigpipe
10919         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10920         since this symbol is needed only if printf is replaced.
10921         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10922         Require gl_ASM_SYMBOL_PREFIX.
10923         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10924         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10925         (Depends-on): Add 'raise'.
10926         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10927         * modules/stdio (Files): Remove lib/stdio-write.c,
10928         m4/asm-underscore.m4.
10929         (Depends-on): Remove 'raise'.
10930
10931         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10932         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10933         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10934         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10935
10936 2011-02-28  Bruno Haible  <bruno@clisp.org>
10937
10938         localcharset: Assume ANSI C behaviour of free().
10939         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10940         calling free().
10941         Suggested by Simon Josefsson <simon@josefsson.org>.
10942
10943 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10944             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10945             Bruno Haible  <bruno@clisp.org>  (tiny change)
10946
10947         On Cygwin, use /proc file system instead of win32 API.
10948         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10949         Win32 file names.
10950         (DllMain): Simplify by removing Cygwin specific code.
10951         (find_shared_library_fullname): Use Linux specific implementation also
10952         for Cygwin.
10953         (get_shared_library_fullname): Update accordingly.
10954         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10955         Win32 file names.
10956         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10957         Cygwin specific code.
10958
10959 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10960             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10961
10962         Fix OpenMP flag detection for various Fortran compilers.
10963         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10964         OpenMP-conditional compilation construct, to force compile
10965         failure with missing OpenMP flag.
10966         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10967
10968 2011-02-25  Eric Blake  <eblake@redhat.com>
10969
10970         strstr: expand test coverage
10971         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10972         compilation.
10973         * tests/test-memmem.c (main): Duplicate tests.
10974         * tests/test-strcasestr.c (main): Likewise.
10975         * tests/test-c-strcasestr.c (main): Likewise.
10976
10977 2011-02-25  Jim Meyering  <meyering@redhat.com>
10978
10979         maint.mk: detect missing-NL-at-EOF, too
10980         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10981         it also detects when a file lacks a newline at EOF.
10982         (require_exactly_one_NL_at_EOF_): Renamed from
10983         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10984         since people may well have .x-sc_... file names tied to the
10985         existing name.  Suggested by Eric Blake.
10986
10987 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10988
10989         dirname: move m4/dos.m4 functionality into lib/dosname.h
10990
10991         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10992         extracts symbols from it, puts them into config.h; but it's much
10993         easier to use the symbols directly.  filename.h already does this,
10994         but it disagrees with dos.m4 in some respects.  This patch
10995         introduces a different include file dosname.h that packages up
10996         dos.m4, and then later we can work on merging filename.h and
10997         dosname.h.  Applications that need only the easy-to-configure
10998         symbols should consider including dosname.h rather than dirname.h.
10999         * NEWS: Mention incompatible changes.
11000         * m4/dos.m4: Remove.
11001         * lib/dosname.h, modules/dosname: New files.
11002         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
11003         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
11004         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
11005         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
11006         Include dosname.h, not dirname.h.
11007         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
11008         Include dosname.h, for definitions of symbols like ISSLASH
11009         that used to be in config.h.
11010         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
11011         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11012         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11013         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11014         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
11015         * modules/rmdir (Files): Likewise.
11016         * modules/stat (Files): Likewise.
11017         * modules/unlink (Files): Likewise.
11018         * modules/dirname-lgpl (Depends-on): Add dosname.
11019         * modules/lstat (Depends-on): Likewise.
11020         * modules/openat (Depends-on): Likewise.
11021         * modules/rmdir (Depends-on): Likewise.
11022         * modules/savewd (Depends-on): Likewise.
11023         * modules/stat (Depends-on): Likewise.
11024         * modules/unlink (Depends-on): Likewise.
11025         * modules/openat (Depends-on): Remove dirname-lgpl.
11026         * modules/savewd (Depends-on): Likewise.
11027         * tests/test-dirname.c: Do not use removed symbols like
11028         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
11029         the remaining symbols, e.g., ISSLASH ('\\').
11030
11031 2011-02-25  Eric Blake  <eblake@redhat.com>
11032
11033         strstr: revert patches that introduced bug and pessimization
11034         * lib/str-two-way.h: Add another reference.
11035         (two_way_short_needle, two_way_long_needle): Revert changes from
11036         2011-02-24; they pessimize search speed.
11037         (critical_factorization): Partially revert changes from
11038         2010-06-22; they violate the requirement that the left half of the
11039         needle be smaller than the period of the needle.
11040
11041 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11042
11043         filenamecat: remove unnecessary dependency on dirname-lgpl
11044         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
11045         is no direct dependency, just an indirect one via filenamecat-lgpl.
11046
11047         remove: remove unnecessary use of m4/dos.m4
11048         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
11049         * modules/remove (FILES): Remove m4/dos.m4.
11050
11051         * lib/openat-proc.c: Don't include dirname.h; not needed.
11052
11053         backupfile: remove unnecessary use of m4/dos.m4
11054         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
11055         of its symbols are used by the backupfile code.  backupfile.c does
11056         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
11057         for the rare case of programs that want all their backup file
11058         names to live within 8+3 limits, and dos.m4 doesn't address that.
11059         * modules/backupfile (Files): Remove m4/dos.m4.
11060
11061 2011-02-24  Jim Meyering  <meyering@redhat.com>
11062
11063         strstr: fix a bug whereby strstr would mistakenly return NULL
11064         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
11065         in period calculation.
11066         (two_way_long_needle): Likewise.
11067         The original problem was reported by Mike Stump in
11068         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
11069         Ralf Wildenhues provided the short needle and haystack.
11070         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
11071         Add a more involved test to trigger the bug in two_way_long_needle.
11072
11073 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11074
11075         gnulib-tool: remove use of bold display in help screen
11076         * gnulib-tool (func_usage): Do not use bold display anymore in the
11077         help screen.  That was just meant to be a temporary emphasis for a
11078         backward-incompatible change.
11079
11080 2011-02-23  Bruno Haible  <bruno@clisp.org>
11081
11082         Fix misindentation of preprocessor directives.
11083         * lib/argp-namefrob.h: Reindent preprocessor directives.
11084         * lib/getopt_int.h (struct _getopt_data): Likewise.
11085         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
11086         * lib/vasnprintf.c (decode_long_double): Likewise.
11087         * tests/test-argmatch.c: Insert blank lines, for clarity.
11088         * tests/test-exclude.c: Likewise.
11089
11090 2011-02-22  Bruno Haible  <bruno@clisp.org>
11091
11092         ioctl: Fix for MacOS X in 64-bit mode.
11093         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
11094         value.
11095         Suggested by Eric Blake.
11096         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
11097
11098 2011-02-22  Jim Meyering  <meyering@redhat.com>
11099
11100         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
11101         * Makefile (sc_cpp_indent_check): Don't limit the check to files
11102         in lib/.
11103
11104 2011-02-22  Eric Blake  <eblake@redhat.com>
11105
11106         maint: avoid any CDPATH issue
11107         * Makefile (sc_cpp_indent_check): Anchor cd argument.
11108
11109         maint: adjust cpp indentation for my modules, as well
11110         * Makefile (sc_cpp_indent_check): Add my name.
11111         * lib/fbufmode.c: Filter through cppi.
11112         * lib/fpurge.c: Likewise.
11113         * lib/freadable.c: Likewise.
11114         * lib/freading.c: Likewise.
11115         * lib/fwritable.c: Likewise.
11116         * lib/fwriting.c: Likewise.
11117         * lib/sigaction.c: Likewise.
11118
11119 2011-02-22  Jim Meyering  <meyering@redhat.com>
11120
11121         maint: adjust cpp indentation to reflect nesting depth
11122         I.e., in a block of code that begins with an unnested "#if",
11123         put one space between the "#" in column 1 and following token.
11124         For example,
11125         -#include <sys/vfs.h>
11126         +# include <sys/vfs.h>
11127         Do this only in .c files that are part of a module I maintain.
11128         * lib/linkat.c: Filter through cppi.
11129         * lib/nanosleep.c: Likewise.
11130         * lib/openat.c: Likewise.
11131         * lib/openat-die.c: Likewise.
11132         * lib/dup3.c: Likewise.
11133         * lib/fchownat.c: Likewise.
11134         * lib/flock.c: Likewise.
11135         * lib/fsync.c: Likewise.
11136         * lib/fts.c: Likewise.
11137         * lib/getpass.c: Likewise.
11138         * lib/gettimeofday.c: Likewise.
11139         * lib/userspec.c: Likewise.
11140         * Makefile (sc_cpp_indent_check): New rule, to check this.
11141
11142 2011-02-22  Bruno Haible  <bruno@clisp.org>
11143
11144         New module 'wctomb'.
11145         * lib/stdlib.in.h (wctomb): New declaration.
11146         * lib/wctomb.c: New file.
11147         * lib/wctomb-impl.h: New file.
11148         * m4/wctomb.m4: New file.
11149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
11150         REPLACE_WCTOMB.
11151         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
11152         REPLACE_WCTOMB.
11153         * modules/wctomb: New file.
11154         * tests/test-stdlib-c++.cc: Test signature of wctomb.
11155         * doc/posix-functions/wctomb.texi: Mention the new module.
11156         * modules/wctob (Depends-on): Add wctomb.
11157
11158 2011-02-22  Bruno Haible  <bruno@clisp.org>
11159
11160         New module 'mbtowc'.
11161         * lib/stdlib.in.h (mbtowc): New declaration.
11162         * lib/mbtowc.c: New file.
11163         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
11164         * m4/mbtowc.m4: New file.
11165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
11166         REPLACE_MBTOWC.
11167         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
11168         REPLACE_MBTOWC.
11169         * modules/mbtowc: New file.
11170         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
11171         * doc/posix-functions/mbtowc.texi: Mention the new module.
11172         * modules/btowc (Depends-on): Add mbtowc.
11173
11174 2011-02-22  Bruno Haible  <bruno@clisp.org>
11175
11176         wcrtomb: Add more tests for native Windows platforms.
11177         * tests/test-wcrtomb-w32-1.sh: New file.
11178         * tests/test-wcrtomb-w32-2.sh: New file.
11179         * tests/test-wcrtomb-w32-3.sh: New file.
11180         * tests/test-wcrtomb-w32-4.sh: New file.
11181         * tests/test-wcrtomb-w32-5.sh: New file.
11182         * tests/test-wcrtomb-w32.c: New file.
11183         * modules/wcrtomb-tests (Files): Add them.
11184         (Makefile.am): Arrange to run these tests.
11185         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
11186         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
11187
11188 2011-02-20  Bruno Haible  <bruno@clisp.org>
11189
11190         wcrtomb: Enhance test.
11191         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
11192
11193 2011-02-20  Bruno Haible  <bruno@clisp.org>
11194
11195         mbrtowc: Tiny optimization.
11196         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
11197
11198 2011-02-20  Jim Meyering  <meyering@redhat.com>
11199
11200         test-exclude.c: remove unmatched #endif
11201         * tests/test-exclude.c: Remove stray #endif, left over from
11202         the change of a week ago.
11203
11204 2011-02-19  Jim Meyering  <meyering@redhat.com>
11205
11206         git-version-gen: skip "-dirty" check when appropriate
11207         * build-aux/git-version-gen: Don't run any git commands when the
11208         version string comes from .tarball-version.  Prior to this, we
11209         would run git update-index --refresh even from a just-unpacked
11210         tarball directory, and that could affect a .git/ directory in a
11211         parent of the build directory.  Reported by Mike Frysinger.
11212
11213 2011-02-19  Bruno Haible  <bruno@clisp.org>
11214
11215         unictype/property-byname: Reduce the size of the 'data' segment.
11216         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
11217
11218 2011-02-19  Bruno Haible  <bruno@clisp.org>
11219
11220         unictype/scripts: Reduce the size of the 'data' segment.
11221         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
11222         '%pic'.
11223         * lib/unictype/scripts_byname.gperf: Regenerated.
11224
11225 2011-02-19  Bruno Haible  <bruno@clisp.org>
11226
11227         stdint: Update documentation.
11228         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
11229
11230 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11231
11232         stdint: omit redundant check for wchar.h
11233         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
11234         always tests whether wchar.h exists, so remove the now-redundant test.
11235
11236 2011-02-18  Bruno Haible  <bruno@clisp.org>
11237
11238         stdint: Cut dependency to module 'wchar'.
11239         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
11240         include the necessary prerequisites.
11241         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
11242         * modules/stdint (Depends-on): Remove wchar.
11243         (Makefile.am): Substitute HAVE_WCHAR_H.
11244         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
11245
11246 2011-02-18  Eric Blake  <eblake@redhat.com>
11247
11248         longlong: skip, rather than fail, on cross-compilation
11249         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
11250         when cross-compiling; regression from 2011-02-16.
11251
11252 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11253
11254         * NEWS: Mention 2011-02-08 change to stdlib.
11255
11256 2011-02-17  Bruno Haible  <bruno@clisp.org>
11257
11258         getloadavg: Add comments about platforms.
11259         * m4/getloadavg.m4: Add comment.
11260         * lib/getloadavg.c: Likewise.
11261
11262 2011-02-17  Bruno Haible  <bruno@clisp.org>
11263
11264         getloadavg: Fix link error on Solaris 2.6.
11265         * modules/getloadavg (Link): New section.
11266         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
11267         linking test-getloadavg.
11268         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
11269         getloadavg.
11270
11271 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11272
11273         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
11274         It was 'int', but this doesn't match the IRIX 6.5 manual.
11275         Suggested by Bruno Haible in
11276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
11277
11278 2011-02-17  Bruno Haible  <bruno@clisp.org>
11279
11280         havelib: Fix comments.
11281         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
11282         change.
11283
11284 2011-02-17  Bruno Haible  <bruno@clisp.org>
11285
11286         havelib: Update config.rpath.
11287         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
11288
11289 2011-02-17  Bruno Haible  <bruno@clisp.org>
11290
11291         getloadavg test: Add some plausibility checks.
11292         * tests/test-getloadavg.c (check_avg): Print a warning when the value
11293         is improbable.
11294
11295 2011-02-16  Eric Blake  <eblake@redhat.com>
11296
11297         maintainer-makefile: make syntax-check a no-op from tarballs
11298         * top/maint.mk (no-vc-detected): New rule.
11299         (local-checks-available): Use it to avoid hanging if someone tries
11300         'make syntax-check' from a tarball.  Also append to any non-syntax
11301         checks already defined in cfg.mk.
11302
11303 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11304
11305         longlong: tune, particularly for common case of c99
11306
11307         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
11308         or running anything if c99, or if unsigned long long int does not
11309         work.  In either case, we know the answer without further tests.
11310         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
11311         it at most once, and use its results for both long long int and
11312         unsigned long long int.  This is more likely to be efficient in
11313         the common case where the program wants to check for both long
11314         long int and unsigned long long int.
11315         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
11316         since the answer is already known.
11317
11318 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
11319
11320         getloadavg: set errno
11321         * lib/getloadavg.c: Set errno when returning -1.  If no other
11322         error number looks appropriate, set it to ENOSYS if the getloadavg
11323         looks like it can't possibly ever work, ENOTSUP otherwise.
11324         Suggested by Bruno Haible in
11325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
11326
11327         getloadavg: trim unused parts and speed up 'configure'
11328         * NEWS: Document this.
11329         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
11330         always compiled if getloadavg is absent.
11331         Move test code to ...
11332         * tests/test-getloadavg.c: New file, containing previous
11333         contents of test from lib/getloadavg.c.  It also contains
11334         suggestions by Bruno Haible in
11335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
11336         * modules/getloadavg-tests: New file.
11337         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
11338         Do tests in the same order as they're needed for getloadavg.c.
11339         Omit setgid-related tests that generate symbols KMEM_GROUP,
11340         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
11341         Do only the tests that are needed to see whether the system has
11342         getloadavg, moving the other tests into ...
11343         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
11344         NLIST_NAME_UNION; nobody should be using it.  Do not define
11345         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
11346         relevant, as the user of this module shouldn't care how getloadavg
11347         is implemented.
11348
11349         getloadavg: omit unused var
11350         * lib/getloadavg.c (getloadavg): Omit unused local variable.
11351
11352 2011-02-15  Jim Meyering  <meyering@redhat.com>
11353
11354         doc: update users.txt
11355         * users.txt: Update iwhd's URL.
11356
11357 2011-02-13  Bruno Haible  <bruno@clisp.org>
11358
11359         Consistent macro naming for macros that use GCC __attribute__.
11360         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
11361         _ATTRIBUTE_NONNULL_.
11362         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
11363         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
11364         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
11365         ATTRIBUTE_DEPRECATED.
11366         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
11367         ATTRIBUTE_NORETURN.
11368         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11369         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11370         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11371         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11372         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
11373         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
11374         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
11375         ATTRIBUTE_SENTINEL.
11376         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
11377         ATTRIBUTE_RETURN_CHECK.
11378         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
11379         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
11380         ATTRIBUTE_NORETURN.
11381         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
11382         Reported by Paul Eggert.
11383
11384 2011-02-13  Bruno Haible  <bruno@clisp.org>
11385
11386         Don't interfere with a program's definition of __attribute__.
11387         * lib/argp.h (__attribute__): Remove definition.
11388         (_GL_ATTRIBUTE_FORMAT): New macro.
11389         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
11390         * lib/argp-fmtstream.h (__attribute__): Remove definition.
11391         (_GL_ATTRIBUTE_FORMAT): New macro.
11392         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
11393         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11394         GCC 3 or newer.
11395         * lib/error.h (__attribute__): Remove definition.
11396         (_GL_ATTRIBUTE_FORMAT): New macro.
11397         (error, error_at_line): Use it.
11398         * lib/hash.h (__attribute__): Remove definition.
11399         (ATTRIBUTE_WUR): Update definition. Define always.
11400         * lib/openat.h (__attribute__): Remove definition.
11401         (ATTRIBUTE_NORETURN): Update definition. Define always.
11402         * lib/sigpipe-die.h (__attribute__): Remove definition.
11403         (ATTRIBUTE_NORETURN): Update definition. Define always.
11404         * lib/vasnprintf.h (__attribute__): Remove definition.
11405         (_GL_ATTRIBUTE_FORMAT): New macro.
11406         (asnprintf, vasnprintf): Use it.
11407         * lib/xalloc.h (__attribute__): Remove definition.
11408         (ATTRIBUTE_NORETURN): Update definition. Define always.
11409         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11410         * lib/xmemdup0.h (__attribute__): Remove definition.
11411         (ATTRIBUTE_NORETURN): Update definition. Define always.
11412         * lib/xprintf.h (__attribute__): Remove definition.
11413         (_GL_ATTRIBUTE_FORMAT): New macro.
11414         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
11415         * lib/xstrtol.h (__attribute__): Remove definition.
11416         (ATTRIBUTE_NORETURN): Update definition. Define always.
11417         * lib/xvasprintf.h (__attribute__): Remove definition.
11418         (_GL_ATTRIBUTE_FORMAT): New macro.
11419         (xasprintf, xvasprintf): Use it.
11420         * tests/test-argmatch.c (__attribute__): Remove definition.
11421         (ATTRIBUTE_NORETURN): Update definition. Define always.
11422         * tests/test-exclude.c (__attribute__): Remove definition.
11423         (ATTRIBUTE_NORETURN): Update definition. Define always.
11424         Reported by Paul Eggert.
11425
11426 2011-02-13  Bruno Haible  <bruno@clisp.org>
11427
11428         mbrtowc: Add more tests for native Windows platforms.
11429         * tests/test-mbrtowc-w32-1.sh: New file.
11430         * tests/test-mbrtowc-w32-2.sh: New file.
11431         * tests/test-mbrtowc-w32-3.sh: New file.
11432         * tests/test-mbrtowc-w32-4.sh: New file.
11433         * tests/test-mbrtowc-w32-5.sh: New file.
11434         * tests/test-mbrtowc-w32.c: New file.
11435         * modules/mbrtowc-tests (Files): Add them.
11436         (Makefile.am): Arrange to run these tests.
11437         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
11438         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
11439
11440 2011-02-13  Bruno Haible  <bruno@clisp.org>
11441
11442         mbrtowc: Work around native Windows bug.
11443         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
11444         guess when no suitable locale for testing was found.
11445         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
11446
11447 2011-02-13  Bruno Haible  <bruno@clisp.org>
11448
11449         mbsinit: Work around mingw bug.
11450         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
11451         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
11452         Windows.
11453         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
11454
11455 2011-02-13  Bruno Haible  <bruno@clisp.org>
11456
11457         mbsinit: Don't crash for a NULL argument.
11458         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
11459         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
11460
11461 2011-02-13  Bruno Haible  <bruno@clisp.org>
11462
11463         Don't interfere with a program's definition of __attribute__.
11464         * lib/stdio.in.h (__attribute__): Remove definition.
11465         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
11466         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
11467         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
11468         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
11469         * lib/string.in.h (__attribute__): Remove definition.
11470         Reported by Paul Eggert.
11471
11472 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11473
11474         stdlib: don't get in the way of non-GCC __attribute__
11475         See thread starting at
11476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
11477         Revert previous stdlib change, installing the following instead:
11478         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
11479         to get in the way of a non-GCC compiler that supports __attribute__.
11480         (_GL_ATTRIBUTE_RETURN): New macro.
11481         (_Exit): Use it instead of __attribute__.
11482
11483 2011-02-12  Bruno Haible  <bruno@clisp.org>
11484
11485         quotearg test: Avoid test failure on mingw.
11486         * tests/test-quotearg.sh: Convert the locale identifier from native
11487         Windows syntax to Unix syntax.
11488
11489 2011-02-12  Bruno Haible  <bruno@clisp.org>
11490
11491         setlocale: Prefer gnulib's override over libintl's override.
11492         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
11493         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
11494         GNULIB_defined_setlocale is set.
11495
11496 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11497
11498         stdlib: support non-GCC __attribute__
11499
11500         Fix a serious and tricky problem encountered when attempting to
11501         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
11502         5.5, but it crashed due to memory corruption on Solaris 10 with
11503         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
11504         bits that are otherwise zero.  This tagging is optional inside
11505         Emacs but is preferred and is used when __attribute__ ((__aligned
11506         (8))) works, as it does with both recent-enough GCC and with Sun C
11507         5.11.  However, Sun C 5.11 is not GCC and does not #define
11508         __GNUC__ and __GNUC_MINOR__.
11509
11510         When I added the getloadavg module to Emacs, it brought in
11511         stdlib.in.h, which contained this fragment:
11512
11513            #ifndef __attribute__
11514            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
11515            #  define __attribute__(Spec)   /* empty */
11516            # endif
11517            #endif
11518
11519         When files that include <stdlib.h> were compiled with Sun C 5.11,
11520         the above code disabled __attribute__ ((__aligned (8))), which
11521         caused variables to not be properly aligned, which eventually led
11522         to the pointer corruption mentioned above.  (This was a bit hard
11523         to diagnose, unfortunately.)
11524
11525         Several "#define __attribute__(X) /* empty */" code snippets need
11526         to be eradicated from Gnulib to work with non-GCC compilers that
11527         support __attribute__.  The Autoconf way to do this is to test for
11528         each kind of attribute that we want support for, and selectively
11529         enable that in source code.
11530
11531         Fix this problem just for stdlib.h, by adding a test for the
11532         __noreturn__ attribute, and change stdlib.in.h to use that test
11533         when needed.  This technique can be easily generalized to the
11534         other *.in.h files and attributes, and a similar technique can be
11535         used for *.h and *.c files.  This patch is enough to solve the
11536         problem for Emacs + getloadavg, and I thought I'd publish it for
11537         feedback before undertaking further, similar fixes in other
11538         modules.
11539
11540         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
11541         because it's not needed for stdlib.h.  It merely substitutes the
11542         value directly into stdlib.h.  We may well need to #define it, or
11543         similar symbols, for other modules, but it's nice to also have an
11544         option to not #define it for applications like Emacs that do not
11545         need it.
11546
11547         * lib/stdlib.in.h (__attribute__): Do not #define.
11548         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
11549         be defined only if the _Exit module is also used.
11550         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
11551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
11552         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
11553         platforms.
11554         * modules/_Exit (Files): Add m4/attribute.m4.
11555         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
11556         * m4/attribute.m4: New file.
11557
11558 2011-02-12  Bruno Haible  <bruno@clisp.org>
11559
11560         wcsrtombs: Work around bug on native Windows.
11561         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
11562         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
11563         instead of len.
11564         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
11565
11566 2011-02-12  Bruno Haible  <bruno@clisp.org>
11567
11568         mbsrtowcs: Work around bug on native Windows.
11569         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
11570         against mingw bug.
11571         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
11572
11573 2011-02-12  Bruno Haible  <bruno@clisp.org>
11574
11575         Avoid setlocale bugs in tests.
11576         * modules/btowc (Dependencies): Add setlocale.
11577         * modules/c-strcase (Dependencies): Likewise.
11578         * modules/mbmemcasecmp (Dependencies): Likewise.
11579         * modules/mbmemcasecoll (Dependencies): Likewise.
11580         * modules/mbrtowc (Dependencies): Likewise.
11581         * modules/mbscasecmp (Dependencies): Likewise.
11582         * modules/mbscasestr (Dependencies): Likewise.
11583         * modules/mbschr (Dependencies): Likewise.
11584         * modules/mbscspn (Dependencies): Likewise.
11585         * modules/mbsinit (Dependencies): Likewise.
11586         * modules/mbsncasecmp (Dependencies): Likewise.
11587         * modules/mbsnrtowcs (Dependencies): Likewise.
11588         * modules/mbspbrk (Dependencies): Likewise.
11589         * modules/mbspcasecmp (Dependencies): Likewise.
11590         * modules/mbsrchr (Dependencies): Likewise.
11591         * modules/mbsrtowcs (Dependencies): Likewise.
11592         * modules/mbsspn (Dependencies): Likewise.
11593         * modules/mbsstr (Dependencies): Likewise.
11594         * modules/nl_langinfo (Dependencies): Likewise.
11595         * modules/quotearg (Dependencies): Likewise.
11596         * modules/unicase/locale-language (Dependencies): Likewise.
11597         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
11598         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
11599         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
11600         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
11601         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
11602         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
11603         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
11604         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
11605         * modules/vasnprintf-posix (Dependencies): Likewise.
11606         * modules/wcrtomb (Dependencies): Likewise.
11607         * modules/wcsnrtombs (Dependencies): Likewise.
11608         * modules/wcsrtombs (Dependencies): Likewise.
11609
11610 2011-02-12  Bruno Haible  <bruno@clisp.org>
11611
11612         setlocale: Workaround native Windows bug.
11613         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
11614         succeeds but sets LC_CTYPE to "C", report a failure.
11615         * tests/test-setlocale2.sh: New file.
11616         * tests/test-setlocale2.c: New file.
11617         * modules/setlocale-tests (Files): Add the new files.
11618         (Makefile.am): Enable test-setlocale2.sh test.
11619         * doc/posix-functions/setlocale.texi: Mention workaround.
11620
11621 2011-02-11  Bruno Haible  <bruno@clisp.org>
11622
11623         Tests for module 'setlocale'.
11624         * modules/setlocale-tests: New file.
11625         * tests/test-setlocale1.sh: New file.
11626         * tests/test-setlocale1.c: New file.
11627
11628         New module 'setlocale'.
11629         * lib/locale.in.h (setlocale): New declaration.
11630         * lib/setlocale.c: New file, based on
11631         gettext/gettext-runtime/intl/setlocale.c.
11632         * m4/setlocale.m4: New file.
11633         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
11634         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
11635         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
11636         REPLACE_SETLOCALE.
11637         * modules/setlocale: New file.
11638         * tests/test-locale-c++.cc: Test the declaration of setlocale.
11639         * doc/posix-functions/setlocale.texi: Mention the new module.
11640
11641 2011-02-11  Bruno Haible  <bruno@clisp.org>
11642
11643         Prepare for locale dependent tests on mingw.
11644         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
11645         because it has the wrong locale encoding.
11646         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
11647         French_France.1252 instead of "fr".
11648         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
11649         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
11650         because it has the wrong locale encoding.
11651         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
11652         native Windows, try Turkish_Turkey.65001.
11653         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
11654         Chinese_China.54936.
11655
11656         Prepare for locale dependent tests on mingw.
11657         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
11658         differently.
11659         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11660         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11661         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11662         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11663
11664 2011-02-11  Eric Blake  <eblake@redhat.com>
11665
11666         strptime: avoid compiler warnings
11667         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11668         compiler warnings about dead code.
11669         Reported by Daniel P. Berrange.
11670
11671 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11672
11673         doc: update users.txt
11674         * users.txt: Add rcs.
11675
11676 2011-02-10  John W. Eaton  <jwe@gnu.org>
11677
11678         doc: update users.txt
11679         * users.txt: Add octave.
11680
11681 2011-02-10  Jim Meyering  <meyering@redhat.com>
11682
11683         doc: update users.txt
11684         * users.txt: Add iwhd.
11685
11686 2011-02-09  Bruno Haible  <bruno@clisp.org>
11687
11688         gnulib-tool: Make copyright notice adjustment more robust.
11689         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11690         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11691         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11692         License".
11693         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11694
11695 2011-02-06  Bruno Haible  <bruno@clisp.org>
11696
11697         New module 'towctrans'.
11698         * modules/towctrans: New file.
11699         * lib/wctype.in.h (towctrans): New declaration.
11700         * lib/towctrans.c: New file.
11701         * lib/towctrans-impl.h: New file.
11702         * m4/towctrans.m4: New file.
11703         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11704         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11705         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11706         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11707         * doc/posix-functions/towctrans.texi: Mention the new module.
11708
11709 2011-02-06  Bruno Haible  <bruno@clisp.org>
11710
11711         New module 'wctrans'.
11712         * modules/wctrans: New file.
11713         * lib/wctype.in.h (wctrans): New declaration.
11714         * lib/wctrans.c: New file.
11715         * lib/wctrans-impl.h: New file.
11716         * m4/wctrans.m4: New file.
11717         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11718         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11719         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11720         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11721         * doc/posix-functions/wctrans.texi: Mention the new module.
11722
11723 2011-02-06  Bruno Haible  <bruno@clisp.org>
11724
11725         New module 'iswctype'.
11726         * modules/iswctype: New file.
11727         * lib/wctype.in.h (iswctype): New declaration.
11728         * lib/iswctype.c: New file.
11729         * lib/iswctype-impl.h: New file.
11730         * m4/iswctype.m4: New file.
11731         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11732         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11733         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11734         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11735         * doc/posix-functions/iswctype.texi: Mention the new module and the
11736         HP-UX 11.00 problem.
11737
11738 2011-02-06  Bruno Haible  <bruno@clisp.org>
11739
11740         New module 'wctype'.
11741         * modules/wctype: Change to represent the wctype() substitute.
11742         * lib/wctype.in.h (wctype): New declaration.
11743         * lib/wctype.c: New file.
11744         * lib/wctype-impl.h: New file.
11745         * m4/wctype.m4: New file.
11746         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11747         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11748         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11749         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11750         * doc/posix-functions/wctype.texi: Mention the new module and the
11751         HP-UX 11.00 problem.
11752
11753 2011-02-06  Bruno Haible  <bruno@clisp.org>
11754
11755         wctype-h: Ensure wctype_t and wctrans_t are defined.
11756         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11757         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11758         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11759         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11760         HAVE_WCTRANS_T.
11761         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11762
11763 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11764
11765         flock: fix license typo
11766
11767         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11768         omitted.
11769
11770 2011-02-08  Bruno Haible  <bruno@clisp.org>
11771
11772         Split large sed scripts, for HP-UX sed.
11773         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11774         to avoid HP-UX limit of 99 commands, in the near future.
11775         * modules/stdlib (Makefile.am): Likewise.
11776         * modules/unistd (Makefile.am): Likewise.
11777         * modules/wchar (Makefile.am): Likewise.
11778         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11779         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11780         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11781
11782 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11783             Bruno Haible  <bruno@clisp.org>
11784
11785         stdlib: improve random_r modularization
11786         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11787         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11788         you also need the random_r module to get this material right.
11789         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11790         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11791         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11792
11793 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11794
11795         stdlib: don't depend on stdint
11796         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11797         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11798         be independent of whether stdint.h is needed.
11799         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11800         here, instead of ...
11801         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11802         struct random_data should be using the random_r module, not just
11803         the stdlib module (which wouldn't make sense: what package needs
11804         just struct random_data without also needing random_r?).
11805         * modules/stdlib (Depends-on): Remove stdint.
11806
11807         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11808         See the thread rooted at
11809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11810         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11811         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11812         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11813         __VMS)); previously it was always included (via fcntl--.h).
11814         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11815         hand; this is good enough for load averages.  Also, do not use
11816         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11817         flags directly if available and don't bother otherwise.  (Packages
11818         that need the extra reliability should use the modules that define
11819         these flags on older platforms that lack them.)
11820         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11821         fcntl-safer.
11822
11823 2011-02-08  Jim Meyering  <meyering@redhat.com>
11824
11825         di-set.h, ino-map.h: add multiple-inclusion guard
11826         Technically, the guard is required only for ino-map.h, due to its
11827         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11828         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11829         * lib/ino-map.h: Likewise.
11830
11831 2011-02-06  Bruno Haible  <bruno@clisp.org>
11832
11833         iswblank: Ensure declaration on glibc systems.
11834         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11835         * modules/iswblank (Dependencies): Add 'extensions'.
11836         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11837
11838 2011-02-06  Bruno Haible  <bruno@clisp.org>
11839
11840         New module 'iswblank'.
11841         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11842         * modules/iswblank: New file.
11843         * modules/wctype-h (Files): Remove lib/iswblank.c.
11844         (Makefile.am): Substitute GNULIB_ISWBLANK.
11845         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11846         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11847         (gl_WCTYPE_H_DEFAULTS): New macro.
11848         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11849         * modules/iswblank-tests: New file.
11850         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11851         * tests/test-wctype-h.c (main): Remove iswblank tests.
11852         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11853         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11854         of 'wctype-h'.
11855         * NEWS: Mention the change.
11856         * modules/mbchar (Depends-on): Add iswblank.
11857
11858 2011-02-08  Bruno Haible  <bruno@clisp.org>
11859
11860         di-set tests: Refactor.
11861         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11862         unnecessary includes.
11863         (ASSERT): Remove macro.
11864         (main): Make C90 compliant by avoiding variable declaration after
11865         statement.
11866         * modules/di-set-tests (Files): Add tests/macros.h.
11867
11868 2011-02-08  Bruno Haible  <bruno@clisp.org>
11869
11870         ino-map tests: Refactor.
11871         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11872         unnecessary includes.
11873         (ASSERT): Remove macro.
11874         (main): Make C90 compliant by avoiding variable declaration after
11875         statement.
11876         * modules/ino-map-tests (Files): Add tests/macros.h.
11877
11878 2011-02-08  Jim Meyering  <meyering@redhat.com>
11879
11880         di-set: add "const" to a cast
11881         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11882         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11883
11884 2011-02-06  Bruno Haible  <bruno@clisp.org>
11885
11886         Rename module 'wctype' to 'wctype-h'.
11887         * modules/wctype-h: Renamed from modules/wctype.
11888         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11889         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11890         (Files, Depends-on, Makefile.am): Update.
11891         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11892         (Files, Makefile.am): Update.
11893         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11894         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11895         * doc/posix-headers/wctype.texi: Update.
11896         * doc/posix-functions/iswalnum.texi: Update.
11897         * doc/posix-functions/iswalpha.texi: Update.
11898         * doc/posix-functions/iswblank.texi: Update.
11899         * doc/posix-functions/iswcntrl.texi: Update.
11900         * doc/posix-functions/iswdigit.texi: Update.
11901         * doc/posix-functions/iswgraph.texi: Update.
11902         * doc/posix-functions/iswlower.texi: Update.
11903         * doc/posix-functions/iswprint.texi: Update.
11904         * doc/posix-functions/iswpunct.texi: Update.
11905         * doc/posix-functions/iswspace.texi: Update.
11906         * doc/posix-functions/iswupper.texi: Update.
11907         * doc/posix-functions/iswxdigit.texi: Update.
11908         * doc/posix-functions/towlower.texi: Update.
11909         * doc/posix-functions/towupper.texi: Update.
11910         * NEWS: Mention the change.
11911         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11912         * modules/mbchar (Dependencies): Likewise.
11913         * modules/mbswidth (Dependencies): Likewise.
11914         * modules/quotearg (Dependencies): Likewise.
11915         * modules/regex (Dependencies): Likewise.
11916         * modules/wcscasecmp (Dependencies): Likewise.
11917         * modules/wcsncasecmp (Dependencies): Likewise.
11918         * modules/wcwidth (Dependencies): Likewise.
11919
11920 2011-02-06  Bruno Haible  <bruno@clisp.org>
11921
11922         New module 'wcswidth'.
11923         * modules/wcswidth: New file.
11924         * lib/wchar.in.h (wcswidth): New declaration.
11925         * lib/wcswidth.c: New file.
11926         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11927         * m4/wcswidth.m4: New file.
11928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11930         REPLACE_WCSWIDTH.
11931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11932         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11933         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11934         * doc/posix-functions/wcswidth.texi: Mention the new module.
11935
11936 2011-02-06  Bruno Haible  <bruno@clisp.org>
11937
11938         New module 'wcstok'.
11939         * modules/wcstok: New file.
11940         * lib/wchar.in.h (wcstok): New declaration.
11941         * lib/wcstok.c: New file.
11942         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11943         * m4/wcstok.m4: New file.
11944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11947         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11948         * doc/posix-functions/wcstok.texi: Mention the new module.
11949
11950 2011-02-06  Bruno Haible  <bruno@clisp.org>
11951
11952         New module 'wcsstr'.
11953         * modules/wcsstr: New file.
11954         * lib/wchar.in.h (wcsstr): New declaration.
11955         * lib/wcsstr.c: New file.
11956         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11957         * m4/wcsstr.m4: New file.
11958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11960         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11961         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11962         * doc/posix-functions/wcsstr.texi: Mention the new module.
11963
11964 2011-02-06  Bruno Haible  <bruno@clisp.org>
11965
11966         New module 'wcspbrk'.
11967         * modules/wcspbrk: New file.
11968         * lib/wchar.in.h (wcspbrk): New declaration.
11969         * lib/wcspbrk.c: New file.
11970         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11971         * m4/wcspbrk.m4: New file.
11972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11975         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11976         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11977
11978 2011-02-06  Bruno Haible  <bruno@clisp.org>
11979
11980         New module 'wcsspn'.
11981         * modules/wcsspn: New file.
11982         * lib/wchar.in.h (wcsspn): New declaration.
11983         * lib/wcsspn.c: New file.
11984         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11985         * m4/wcsspn.m4: New file.
11986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11988         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11989         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11990         * doc/posix-functions/wcsspn.texi: Mention the new module.
11991
11992 2011-02-06  Bruno Haible  <bruno@clisp.org>
11993
11994         New module 'wcscspn'.
11995         * modules/wcscspn: New file.
11996         * lib/wchar.in.h (wcscspn): New declaration.
11997         * lib/wcscspn.c: New file.
11998         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11999         * m4/wcscspn.m4: New file.
12000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
12001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
12002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
12003         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
12004         * doc/posix-functions/wcscspn.texi: Mention the new module.
12005
12006 2011-02-06  Bruno Haible  <bruno@clisp.org>
12007
12008         New module 'wcsrchr'.
12009         * modules/wcsrchr: New file.
12010         * lib/wchar.in.h (wcsrchr): New declaration.
12011         * lib/wcsrchr.c: New file.
12012         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
12013         * m4/wcsrchr.m4: New file.
12014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
12015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
12016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
12017         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
12018         * doc/posix-functions/wcsrchr.texi: Mention the new module.
12019
12020 2011-02-06  Bruno Haible  <bruno@clisp.org>
12021
12022         New module 'wcschr'.
12023         * modules/wcschr: New file.
12024         * lib/wchar.in.h (wcschr): New declaration.
12025         * lib/wcschr.c: New file.
12026         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
12027         * m4/wcschr.m4: New file.
12028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
12029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
12030         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
12031         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
12032         * doc/posix-functions/wcschr.texi: Mention the new module.
12033
12034 2011-02-06  Bruno Haible  <bruno@clisp.org>
12035
12036         New module 'wcsdup'.
12037         * modules/wcsdup: New file.
12038         * lib/wchar.in.h (wcsdup): New declaration.
12039         * lib/wcsdup.c: New file.
12040         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
12041         * m4/wcsdup.m4: New file.
12042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
12043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
12044         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
12045         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
12046         * doc/posix-functions/wcsdup.texi: Mention the new module.
12047
12048 2011-02-06  Bruno Haible  <bruno@clisp.org>
12049
12050         New module 'wcsxfrm'.
12051         * modules/wcsxfrm: New file.
12052         * lib/wchar.in.h (wcsxfrm): New declaration.
12053         * lib/wcsxfrm.c: New file.
12054         * lib/wcsxfrm-impl.h: New file.
12055         * m4/wcsxfrm.m4: New file.
12056         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
12057         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
12058         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
12059         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
12060         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
12061
12062 2011-02-06  Bruno Haible  <bruno@clisp.org>
12063
12064         New module 'wcscoll'.
12065         * modules/wcscoll: New file.
12066         * lib/wchar.in.h (wcscoll): New declaration.
12067         * lib/wcscoll.c: New file.
12068         * lib/wcscoll-impl.h: New file.
12069         * m4/wcscoll.m4: New file.
12070         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
12071         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
12072         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
12073         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
12074         * doc/posix-functions/wcscoll.texi: Mention the new module.
12075
12076 2011-02-06  Bruno Haible  <bruno@clisp.org>
12077
12078         New module 'wcsncasecmp'.
12079         * modules/wcsncasecmp: New file.
12080         * lib/wchar.in.h (wcsncasecmp): New declaration.
12081         * lib/wcsncasecmp.c: New file.
12082         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
12083         * m4/wcsncasecmp.m4: New file.
12084         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
12085         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
12086         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
12087         HAVE_WCSNCASECMP.
12088         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
12089         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
12090
12091 2011-02-06  Bruno Haible  <bruno@clisp.org>
12092
12093         New module 'wcscasecmp'.
12094         * modules/wcscasecmp: New file.
12095         * lib/wchar.in.h (wcscasecmp): New declaration.
12096         * lib/wcscasecmp.c: New file.
12097         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
12098         * m4/wcscasecmp.m4: New file.
12099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
12100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
12101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
12102         HAVE_WCSCASECMP.
12103         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
12104         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
12105
12106 2011-02-05  Bruno Haible  <bruno@clisp.org>
12107
12108         New module 'wcsncmp'.
12109         * modules/wcsncmp: New file.
12110         * lib/wchar.in.h (wcsncmp): New declaration.
12111         * lib/wcsncmp.c: New file.
12112         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
12113         * m4/wcsncmp.m4: New file.
12114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
12115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
12116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
12117         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
12118         * doc/posix-functions/wcsncmp.texi: Mention the new module.
12119
12120 2011-02-05  Bruno Haible  <bruno@clisp.org>
12121
12122         New module 'wcscmp'.
12123         * modules/wcscmp: New file.
12124         * lib/wchar.in.h (wcscmp): New declaration.
12125         * lib/wcscmp.c: New file.
12126         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
12127         * m4/wcscmp.m4: New file.
12128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
12129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
12130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
12131         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
12132         * doc/posix-functions/wcscmp.texi: Mention the new module.
12133
12134 2011-02-05  Bruno Haible  <bruno@clisp.org>
12135
12136         New module 'wcsncat'.
12137         * modules/wcsncat: New file.
12138         * lib/wchar.in.h (wcsncat): New declaration.
12139         * lib/wcsncat.c: New file.
12140         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
12141         * m4/wcsncat.m4: New file.
12142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
12143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
12144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
12145         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
12146         * doc/posix-functions/wcsncat.texi: Mention the new module.
12147
12148 2011-02-05  Bruno Haible  <bruno@clisp.org>
12149
12150         New module 'wcscat'.
12151         * modules/wcscat: New file.
12152         * lib/wchar.in.h (wcscat): New declaration.
12153         * lib/wcscat.c: New file.
12154         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
12155         * m4/wcscat.m4: New file.
12156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
12157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
12158         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
12159         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
12160         * doc/posix-functions/wcscat.texi: Mention the new module.
12161
12162 2011-02-05  Bruno Haible  <bruno@clisp.org>
12163
12164         New module 'wcpncpy'.
12165         * modules/wcpncpy: New file.
12166         * lib/wchar.in.h (wcpncpy): New declaration.
12167         * lib/wcpncpy.c: New file.
12168         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
12169         * m4/wcpncpy.m4: New file.
12170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
12171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
12172         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
12173         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
12174         * doc/posix-functions/wcpncpy.texi: Mention the new module.
12175
12176 2011-02-05  Bruno Haible  <bruno@clisp.org>
12177
12178         New module 'wcsncpy'.
12179         * modules/wcsncpy: New file.
12180         * lib/wchar.in.h (wcsncpy): New declaration.
12181         * lib/wcsncpy.c: New file.
12182         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
12183         * m4/wcsncpy.m4: New file.
12184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
12185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
12186         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
12187         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
12188         * doc/posix-functions/wcsncpy.texi: Mention the new module.
12189
12190 2011-02-05  Bruno Haible  <bruno@clisp.org>
12191
12192         New module 'wcpcpy'.
12193         * modules/wcpcpy: New file.
12194         * lib/wchar.in.h (wcpcpy): New declaration.
12195         * lib/wcpcpy.c: New file.
12196         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
12197         * m4/wcpcpy.m4: New file.
12198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
12199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
12200         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
12201         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
12202         * doc/posix-functions/wcpcpy.texi: Mention the new module.
12203
12204 2011-02-05  Bruno Haible  <bruno@clisp.org>
12205
12206         New module 'wcscpy'.
12207         * modules/wcscpy: New file.
12208         * lib/wchar.in.h (wcscpy): New declaration.
12209         * lib/wcscpy.c: New file.
12210         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
12211         * m4/wcscpy.m4: New file.
12212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
12213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
12214         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
12215         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
12216         * doc/posix-functions/wcscpy.texi: Mention the new module.
12217
12218 2011-02-05  Bruno Haible  <bruno@clisp.org>
12219
12220         New module 'wcsnlen'.
12221         * modules/wcsnlen: New file.
12222         * lib/wchar.in.h (wcsnlen): New declaration.
12223         * lib/wcsnlen.c: New file.
12224         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
12225         * m4/wcsnlen.m4: New file.
12226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
12227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
12228         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
12229         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
12230         * doc/posix-functions/wcsnlen.texi: Mention the new module.
12231
12232 2011-02-05  Bruno Haible  <bruno@clisp.org>
12233
12234         New module 'wcslen'.
12235         * modules/wcslen: New file.
12236         * lib/wchar.in.h (wcslen): New declaration.
12237         * lib/wcslen.c: New file.
12238         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
12239         * m4/wcslen.m4: New file.
12240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
12241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
12242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
12243         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
12244         * doc/posix-functions/wcslen.texi: Mention the new module.
12245
12246 2011-02-05  Bruno Haible  <bruno@clisp.org>
12247
12248         New module 'wmemset'.
12249         * modules/wmemset: New file.
12250         * lib/wchar.in.h (wmemset): New declaration.
12251         * lib/wmemset.c: New file.
12252         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
12253         * m4/wmemset.m4: New file.
12254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
12255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
12256         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
12257         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
12258         * doc/posix-functions/wmemset.texi: Mention the new module.
12259
12260 2011-02-05  Bruno Haible  <bruno@clisp.org>
12261
12262         New module 'wmemmove'.
12263         * modules/wmemmove: New file.
12264         * lib/wchar.in.h (wmemmove): New declaration.
12265         * lib/wmemmove.c: New file.
12266         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
12267         * m4/wmemmove.m4: New file.
12268         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
12269         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
12270         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
12271         HAVE_WMEMMOVE.
12272         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
12273         * doc/posix-functions/wmemmove.texi: Mention the new module.
12274
12275 2011-02-05  Bruno Haible  <bruno@clisp.org>
12276
12277         New module 'wmemcpy'.
12278         * modules/wmemcpy: New file.
12279         * lib/wchar.in.h (wmemcpy): New declaration.
12280         * lib/wmemcpy.c: New file.
12281         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
12282         * m4/wmemcpy.m4: New file.
12283         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
12284         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
12285         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
12286         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
12287         * doc/posix-functions/wmemcpy.texi: Mention the new module.
12288
12289 2011-02-05  Bruno Haible  <bruno@clisp.org>
12290
12291         New module 'wmemcmp'.
12292         * modules/wmemcmp: New file.
12293         * lib/wchar.in.h (wmemcmp): New declaration.
12294         * lib/wmemcmp.c: New file.
12295         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
12296         * m4/wmemcmp.m4: New file.
12297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
12298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
12299         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
12300         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
12301         * doc/posix-functions/wmemcmp.texi: Mention the new module.
12302
12303 2011-02-07  Jim Meyering  <meyering@redhat.com>
12304
12305         di-set, ino-map: new modules, from coreutils
12306         * lib/di-set.c: New file.
12307         * lib/di-set.h: Likewise.
12308         * lib/ino-map.c: Likewise.
12309         * lib/ino-map.h: Likewise.
12310         * modules/di-set: Likewise.
12311         * modules/di-set-tests: Likewise.
12312         * modules/ino-map: Likewise.
12313         * modules/ino-map-tests: Likewise.
12314         * tests/test-di-set.c: Likewise.
12315         * tests/test-ino-map.c: Likewise.
12316
12317 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12318
12319         getloadavg: merge minor changes from Emacs
12320
12321         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
12322         (getloadavg): Use memset, not bzero.
12323
12324         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
12325         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12326         clash (bug#86).
12327
12328 2010-11-14  Bruno Haible  <bruno@clisp.org>
12329
12330         Allow multiple gnulib generated replacements to coexist.
12331         * lib/getopt.in.h (struct option): Avoid identical redefinition.
12332         * lib/inttypes.in.h (imaxdiv_t): Likewise.
12333         * lib/langinfo.in.h (nl_item): Likewise.
12334         * lib/math.in.h (_NaN, NAN): Likewise.
12335         * lib/netdb.in.h (struct addrinfo): Likewise.
12336         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
12337         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
12338         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
12339         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
12340         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
12341         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
12342         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
12343         pthread_mutexattr_init, pthread_mutexattr_settype,
12344         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
12345         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
12346         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
12347         pthread_spin_trylock, pthread_spin_unlock): Likewise.
12348         * lib/sched.in.h (struct sched_param): Likewise.
12349         * lib/se-selinux.in.h (security_class_t, security_context_t,
12350         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
12351         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
12352         lsetfilecon, fsetfilecon, security_check_context,
12353         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
12354         Likewise.
12355         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
12356         Likewise.
12357         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
12358         _gl_function_taking_int_returning_void_t, union sigval,
12359         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
12360         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
12361         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12362         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
12363         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
12364         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
12365         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
12366         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
12367         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
12368         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
12369         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
12370         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
12371         socklen_t, rpl_fd_isset): Likewise.
12372         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
12373         * lib/sys_time.in.h (struct timeval): Likewise.
12374         * lib/sys_times.in.h (struct tms): Likewise.
12375         * lib/sys_utsname.in.h (struct utsname):
12376         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
12377         * lib/unistd.in.h (getpagesize): Likewise.
12378         * lib/wchar.in.h (mbstate_t): Likewise.
12379         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12380         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
12381         towlower, towupper): Likewise.
12382         Reported by Sam Steingold <sds@gnu.org>.
12383
12384 2011-02-05  Eric Blake  <eblake@redhat.com>
12385
12386         unsetenv: work around Haiku issues
12387         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
12388         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
12389
12390 2010-12-30  Bruce Korb  <bkorb@gnu.org>
12391
12392         libposix: avoid calling error() within libposix
12393         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
12394         is defined.
12395
12396 2011-02-05  Eric Blake  <eblake@redhat.com>
12397
12398         strerror_r-posix: port to cygwin
12399         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
12400         implementation.
12401         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
12402         * tests/test-strerror_r.c (main): Fix test.
12403         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12404         issue.
12405
12406 2011-02-05  Bruno Haible  <bruno@clisp.org>
12407
12408         New module 'wmemchr'.
12409         * modules/wmemchr: New file.
12410         * lib/wchar.in.h (wmemchr): New declaration.
12411         * lib/wmemchr.c: New file.
12412         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
12413         * m4/wmemchr.m4: New file.
12414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
12415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
12416         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
12417         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
12418         * doc/posix-functions/wmemchr.texi: Mention the new module.
12419
12420 2011-02-04  Eric Blake  <eblake@redhat.com>
12421
12422         fdopendir: detect FreeBSD bug
12423         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
12424         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
12425
12426 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12427
12428         stdbool: do not define HAVE_STDBOOL_H
12429         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
12430         AC_HEADER_STDBOOL.  All uses changed.  Do not define
12431         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
12432         imported from the latest Autoconf git.  It was motivated by Emacs,
12433         which uses gnulib but does not need HAVE_STDBOOL_H.
12434
12435 2011-02-04  Bruno Haible  <bruno@clisp.org>
12436
12437         wcsnrtombs: Prepare for new module wwcsnrtombs.
12438         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
12439         * lib/wcsnrtombs.c: Include it.
12440         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
12441
12442         wcsrtombs: Prepare for new module wwcsrtombs.
12443         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
12444         * lib/wcsrtombs.c: Include it.
12445         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
12446
12447         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
12448         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
12449         * lib/mbsnrtowcs.c: Include it.
12450         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
12451
12452         mbsrtowcs: Prepare for new module mbsrtowwcs.
12453         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
12454         * lib/mbsrtowcs.c: Include it.
12455         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
12456
12457 2011-02-04  Bruno Haible  <bruno@clisp.org>
12458
12459         vasnprintf: Reduce use of malloc for small format strings.
12460         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12461         (arguments): Add room for the first 7 arguments.
12462         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
12463         (char_directives, u8_directives, u16_directives, u32_directives): Add
12464         room for the first 7 directives.
12465         * lib/printf-parse.c: Include <string.h>.
12466         (PRINTF_PARSE): Change memory handling code so that it uses the first
12467         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
12468         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
12469         Reported by Pádraig Brady <P@draigbrady.com>.
12470
12471 2011-01-31  Eric Blake  <eblake@redhat.com>
12472
12473         dup2: work around Haiku bug
12474         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
12475         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
12476         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12477         * tests/test-dup2.c (main): Enhance test.
12478
12479 2011-01-31  Simon Josefsson  <simon@josefsson.org>
12480
12481         doc: off_t is not available in eglibc 2.11.2 stdio.h.
12482         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
12483         declared by eglibc 2.11.2.
12484         * lib/stdio.in.h: Likewise.
12485
12486 2011-01-31  Eric Blake  <eblake@redhat.com>
12487
12488         ignore-value: add missing test dependency
12489         * tests/test-ignore-value.c: Revert previous change; stdio.h
12490         provides off_t.
12491         * modules/ignore-value-tests (Depends-on): Add missing dependency.
12492
12493 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
12494
12495         mktime: clarify long_int width checking
12496         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
12497         the top level, to make it clearer that the assumption about
12498         long_int width is being checked.  See
12499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
12500
12501 2011-01-30  Simon Josefsson  <simon@josefsson.org>
12502
12503         ignore-value: Fix self-test.
12504         * tests/test-ignore-value.c: Include sys/types.h for off_t.
12505
12506 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12507
12508         TYPE_MAXIMUM: avoid theoretically undefined behavior
12509         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
12510         negative number, which the C Standard says has undefined behavior.
12511         In practice this is not a problem, but might as well do it by the book.
12512         Reported by Rich Felker and Eric Blake; see
12513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
12514         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
12515         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12517         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
12518         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12519         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
12520
12521         mktime: #undef mktime before #defining it
12522         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
12523
12524         mktime: systematically normalize tm_isdst comparisons
12525         * lib/mktime.c (isdst_differ): New function.
12526         (__mktime_internal): Use it systematically for all isdst comparisons.
12527         This completes the fix for libc BZ #6723, and removes the need for
12528         normalizing tm_isdst.  See
12529         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
12530         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
12531
12532         mktime: fix some integer overflow issues and sidestep the rest
12533
12534         This was prompted by a bug report by Benjamin Lindner for MinGW
12535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
12536         His bug is due to signed integer overflow (0 - INT_MIN), and I
12537         I scanned through mktime.c looking for other integer overflow
12538         problems, fixing all the bugs I found.
12539
12540         Although the C Standard says the resulting code is still not safe
12541         in the presence of integer overflow, in practice it should be good
12542         enough for all real-world two's-complement implementations, except
12543         for debugging environments that deliberately trap on integer
12544         overflow (e.g., gcc -ftrapv).
12545
12546         * lib/mktime.c (WRAPV): New macro.
12547         (SHR): Also check that long_int and time_t shift right in the
12548         usual way, before using the fast-but-unportable method.
12549         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
12550         used.  The code already assumed two's complement, so there's
12551         no need to test for alternatives.  All uses removed.
12552         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
12553         the C standard.  Problem reported by Rich Felker in
12554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
12555         (twos_complement_arithmetic): Also check long_int and time_t.
12556         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
12557         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
12558         (__mktime_internal): Avoid integer overflow with unary subtraction
12559         in two instances where -1 - X is an adequate replacement for -X,
12560         since the calculations are approximate.
12561
12562 2011-01-29  Eric Blake  <eblake@redhat.com>
12563
12564         mktime: avoid infinite loop
12565         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
12566         type; behavior is still undefined but portable to all known targets.
12567         Reported by Rich Felker.
12568
12569 2011-01-29  Simon Josefsson  <simon@josefsson.org>
12570
12571         rename, unlink, same-inode: Relicense.
12572         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
12573         * modules/unlink (License): Likewise.
12574         * modules/same-inode (License): Likewise.
12575
12576 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12577
12578         mktime: avoid problems on NetBSD 5 / i386
12579         * lib/mktime.c (long_int): New type.  This works around a problem
12580         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
12581         but time_t is 64 bits, and where I expect the existing code is
12582         wrong in some cases.
12583         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
12584         (ydhms_diff): Bring back the compile-time check for wide-enough
12585         year and yday.
12586
12587         mktime: fix misspelling in comment
12588         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
12589         This merges all recent glibc changes of importance.
12590
12591 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12592
12593         move-if-change: cope with concurrent mv of identical file.
12594         * build-aux/move-if-change (CMPPROG): Accept environment
12595         variable as an override for `cmp'.
12596         (usage): Document CMPPROG.
12597         Adjust comparison to drop stdout.  Cope with failure of mv if
12598         the target file exists and is identical to the source, for
12599         parallel builds.
12600         Report from H.J. Lu against binutils in PR binutils/12283.
12601
12602 2011-01-28  Bruce Korb  <bkorb@gnu.org>
12603
12604         * users.txt: Mention sharutils.
12605
12606 2011-01-28  Simon Josefsson  <simon@josefsson.org>
12607
12608         * users.txt: Mention OATH Toolkit.
12609
12610 2011-01-27  Bruno Haible  <bruno@clisp.org>
12611
12612         Prepare for supporting FreeBSD 10.
12613         * build-aux/config.libpath: Remove handling of freebsd1*.
12614
12615 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
12616
12617         Prepare for supporting FreeBSD 10.
12618         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
12619         match FreeBSD 10.0.
12620
12621 2011-01-27  Bruno Haible  <bruno@clisp.org>
12622
12623         vma-iter, get-rusage-as: Add OpenBSD support.
12624         * modules/vma-iter (configure.ac): Test for mquery.
12625         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
12626         * lib/vma-iter.c: Include <sys/mman.h>.
12627         (vma_iterate): Add an implementation based on mquery().
12628         * lib/resource-ext.h (get_rusage_as): Update comments.
12629         * lib/get-rusage-as.c: Likewise.
12630         * lib/get-rusage-data.c: Likewise.
12631
12632 2011-01-26  Karl Berry  <karl@gnu.org>
12633
12634         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
12635         variables to make it easier to override the makeinfo program used.
12636
12637 2011-01-26  Eric Blake  <eblake@redhat.com>
12638
12639         fcntl: work around Haiku F_DUPFD bugs
12640         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
12641         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
12642         cloexec bit on duplication.
12643         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
12644
12645 2011-01-26  Bruno Haible  <bruno@clisp.org>
12646
12647         Enable memory leak tests on AIX.
12648         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
12649         * tests/test-fprintf-posix3.c (main): Likewise.
12650
12651 2011-01-26  Bruno Haible  <bruno@clisp.org>
12652
12653         Tests for module 'get-rusage-data'.
12654         * modules/get-rusage-data-tests: New file.
12655         * tests/test-get-rusage-data.c: New file.
12656
12657         New module 'get-rusage-data'.
12658         * lib/resource-ext.h (get_rusage_data): New declaration.
12659         * lib/get-rusage-data.c: New file.
12660         * modules/get-rusage-data: New file.
12661
12662 2011-01-25  Bruno Haible  <bruno@clisp.org>
12663
12664         get-rusage-as: Allow for easier testing.
12665         * lib/resource-ext.h (get_rusage_as): Add comment.
12666         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12667         (main): New function for interactive testing.
12668
12669 2011-01-25  Bruno Haible  <bruno@clisp.org>
12670
12671         vma-iter: Treat Haiku like BeOS.
12672         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12673         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12674
12675 2011-01-25  Eric Blake  <eblake@redhat.com>
12676
12677         c-stack: fix regression on cygwin when libsigsegv is present
12678         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12679
12680 2011-01-24  Bruno Haible  <bruno@clisp.org>
12681
12682         vma-iter: Avoid empty intervals.
12683         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12684         on an empty interval.
12685
12686 2011-01-24  Jim Meyering  <meyering@redhat.com>
12687
12688         u64: remove unnecessary #include
12689         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12690
12691 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12692
12693         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12694         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12695
12696 2011-01-23  Bruno Haible  <bruno@clisp.org>
12697
12698         New module 'vma-iter'.
12699         * lib/vma-iter.h: New file.
12700         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12701         * modules/vma-iter: New file.
12702         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12703         for get_rusage_as_via_iterator.
12704         (vma_iterate_callback): New function.
12705         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12706         * modules/get-rusage-as (Depends-on): Add vma-iter.
12707
12708 2011-01-23  Bruno Haible  <bruno@clisp.org>
12709
12710         uninorm: Tweak includes.
12711         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12712         Reported by Jim Meyering.
12713
12714 2011-01-23  Bruno Haible  <bruno@clisp.org>
12715
12716         get-rusage-as: Improve on NetBSD.
12717         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12718         /proc, like on FreeBSD.
12719
12720 2011-01-23  Jim Meyering  <meyering@redhat.com>
12721
12722         xreadlink.h: remove unnecessary #include
12723         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12724
12725         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12726         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12727
12728 2011-01-23  Bruno Haible  <bruno@clisp.org>
12729
12730         get-rusage-as: Fix bug.
12731         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12732         original limit when aborting the first loop.
12733
12734 2011-01-23  Bruno Haible  <bruno@clisp.org>
12735
12736         wctype: Ensure valid C syntax.
12737         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12738         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12739
12740 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12741
12742         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12743         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12744         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12745         as they are needed only for configure's test case.
12746         This removes two unnecessary symbols from config.h.
12747
12748         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12749         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12751         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12752         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12753         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12754         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12755         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12756         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12757         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12758         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12759         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12760         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12761         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12762         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12763         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12764         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12765         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12766
12767 2011-01-21  Eric Blake  <eblake@redhat.com>
12768
12769         maintainer-makefile: work with older git for submodule check
12770         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12771         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12772         Reported by Matthias Bolte.
12773
12774         bootstrap: minor portability fixes
12775         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12776         (usage): Omit leading capital and trailing . on help phrases, per
12777         GNU Coding Standards.
12778         (check_versions, top level): Prefix messages with script name.
12779
12780 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12781
12782         bootstrap: support --no-git option
12783         * build-aux/bootstrap: Add --no-git option, to be used when
12784         --gnulib-srcdir points to the exact desired checkout.
12785
12786 2011-01-21  Eric Blake  <eblake@redhat.com>
12787
12788         strerror_r-posix: work with glibc 2.13
12789         * lib/strerror_r.c (strerror_r): Fix return type.
12790
12791 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12792             Bruno Haible  <bruno@clisp.org>
12793
12794         uN_strstr: New unit tests.
12795         * modules/unistr/u8-strstr-tests: New file.
12796         * modules/unistr/u16-strstr-tests: New file.
12797         * modules/unistr/u32-strstr-tests: New file.
12798         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12799         * tests/unistr/test-u8-strstr.c: New file.
12800         * tests/unistr/test-u16-strstr.c: New file.
12801         * tests/unistr/test-u32-strstr.c: New file.
12802
12803 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12804             Bruno Haible  <bruno@clisp.org>
12805
12806         Make uN_strstr functions O(n) worst-case.
12807         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12808         16-bit and 32-bit unit cases, use the unibyte algorithm from
12809         lib/mbsstr.c.
12810         * lib/unistr/u8-strstr.c: Include <string.h>.
12811         (UNIT_IS_UINT8_T): New macro.
12812         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12813         (U_STRLEN, U_STRNLEN): New macros.
12814         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12815         (U_STRLEN, U_STRNLEN): New macros.
12816         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12817         (configure.ac): Update required libunistring version.
12818         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12819         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12820         malloca.
12821         (configure.ac): Update required libunistring version.
12822         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12823         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12824         malloca.
12825         (configure.ac): Update required libunistring version.
12826
12827 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12828             Bruno Haible  <bruno@clisp.org>
12829
12830         Prepare for faster uN_strstr functions.
12831         * lib/str-kmp.h: Support definable UNITs.
12832         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12833         needle_len argument.
12834         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12835         * lib/mbscasestr.c (mbscasestr): Likewise.
12836
12837 2011-01-21  Pádraig Brady <P@draigBrady.com>
12838
12839         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12840         * tests/test-malloca.c (main): Unset the environment variable
12841         to greatly speed up the test.
12842         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12843         * modules/malloca-tests: Depend on unsetenv.
12844
12845 2011-01-21  Pádraig Brady <P@draigBrady.com>
12846
12847         ignore-value: remove stdint dependency
12848         * lib/ignore-value.h: Remove <stdint.h>
12849         * modules/ignore-value: Remove stdint dependency.
12850
12851 2011-01-21  Jim Meyering  <meyering@redhat.com>
12852
12853         maint.mk: adjust variable name to be consistent with other gl_ vars
12854         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12855         to be lower case.
12856
12857 2011-01-20  Jim Meyering  <meyering@redhat.com>
12858
12859         maint.mk: make "check" depend on public-submodule-commit by default
12860         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12861
12862 2011-01-20  Bruno Haible  <bruno@clisp.org>
12863
12864         mbfile, mbiter: Complete change from 2008-12-21.
12865         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12866         * m4/mbiter.m4 (gl_MBITER): Likewise.
12867
12868 2011-01-20  Jim Meyering  <meyering@redhat.com>
12869
12870         init.sh: insert space between each function name and "()"
12871         * tests/init.sh: Make it a little easier to see that a function's
12872         name is "warn_", and not "warn" when looking at the first part of
12873         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12874
12875 2011-01-20  Jim Meyering  <meyering@redhat.com>
12876
12877         mountlist: clean up code formatting
12878         * lib/mountlist.c (read_file_system_list): Split a long line,
12879         correct bracing style, use NULL in place of "(struct statfs *)0",
12880         don't parenthesize return value, add spaces around "=" and after
12881         ";-in-for-stmt".
12882
12883 2011-01-14  Markus Duft <mduft@gentoo.org>
12884
12885         mountlist: add support for Interix
12886         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12887         Apply statvfs to all entries of /dev/fs.
12888         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12889         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12890
12891 2011-01-20  Jim Meyering  <meyering@redhat.com>
12892
12893         maint.mk: improve the public-submodule-commit rule
12894         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12895         to suppress printing of its commands... unless V=1.
12896         Add git submodule's --quiet option to suppress printing of e.g.,
12897         "Entering gnulib" output.
12898         "cd" into $(srcdir) before running git submodule.
12899
12900 2011-01-20  Bruno Haible  <bruno@clisp.org>
12901
12902         include_next: Fix bug introduced on 2011-01-18.
12903         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12904         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12905         ac_cv_header_... variable if the second argument is not 'check'.
12906         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12907         gl_NEXT_HEADERS_INTERNAL.
12908
12909 2011-01-20  Bruno Haible  <bruno@clisp.org>
12910
12911         Allow the user to avoid the GNULIB_TEST_* macros.
12912         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12913         Suggested by Paul Eggert.
12914
12915 2011-01-14  Jim Meyering  <meyering@redhat.com>
12916
12917         bootstrap: avoid failure when there is no .gitmodules file
12918         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12919         has been assigned to, even when its value is the empty string.
12920         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12921         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12922         Reported by John W. Eaton <jwe@gnu.org>.
12923
12924 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12925
12926         assume <ctype.h>, ..., <time.h> exist
12927         For years gnulib has been assuming the existence of the headers
12928         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12929         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12930         them, since they don't appear to be needed.
12931         * README (Portability guidelines): Document this.
12932         * lib/flock.c: Assume <fcntl.h> exists.
12933         * lib/regex_internal.h: Assume <locale.h> exists.
12934         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12935         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12936         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12937         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12938         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12939         * m4/regex.m4 (gl_REGEX): Likewise.
12940         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12941         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12942         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12943         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12944         * tests/test-argp.c: Likewise.
12945         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12946
12947         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12948         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12949         AA_APPLE_UNIVERSAL_BUILD.  See
12950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12951         * NEWS: Document this.
12952
12953 2011-01-19  Eric Blake  <eblake@redhat.com>
12954
12955         c-stack: assume stack overflow if SA_SIGINFO unsupported
12956         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12957         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12958         sigaction will work.
12959         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12960         behavior match Linux.
12961         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12962
12963         stdbool-tests: accomodate Haiku
12964         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12965
12966         binary-io: fix O_TEXT on Haiku
12967         * modules/binary-io (Depends-on): Add fcntl-h.
12968         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12969         than blindly undefining O_TEXT.
12970         Reported by Scott McCreary.
12971
12972 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12973
12974         include_next: do not check for standard headers like stddef.h
12975
12976         I found this problem when modifying Emacs to use gnulib.
12977         I noticed that it added HAVE_STDDEF_H to config.h, even though
12978         gnulib always assumes <stddef.h> exists as per README and this
12979         symbol is unnecessary.
12980         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12981         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12982         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12983         faster for headers like stddef.h that are known to exist.
12984         (gl_CHECK_NEXT_HEADERS): Use it.
12985         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12986         rather than gl_CHECK_NEXT_HEADERS.
12987         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12988         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12989
12990 2011-01-18  Eric Blake  <eblake@redhat.com>
12991
12992         ansi-c++-opt: skip C++ dependency style if C++ is unused
12993         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12994         tests when we know C++ compilation is not desired.
12995         Reported by Scott McCreary.
12996
12997 2011-01-18  Bruno Haible  <bruno@clisp.org>
12998
12999         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
13000         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
13001         (main): Perform test also when getrlimit and setrlimit don't exist or
13002         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
13003         limiting the address space size using setrlimit, compare the address
13004         space size before and after the the test.
13005         * tests/test-dprintf-posix2.c: Likewise.
13006         * tests/test-fprintf-posix3.sh: Update skip messages.
13007         * tests/test-dprintf-posix2.sh: Likewise.
13008         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
13009         * modules/dprintf-posix-tests (Depends-on): Likewise.
13010         Reported by Bruce Korb <bkorb@gnu.org> and
13011         Gary V. Vaughan <gary@gnu.org>.
13012
13013 2011-01-18  Bruno Haible  <bruno@clisp.org>
13014
13015         get-rusage-as: Improvement for Cygwin.
13016         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
13017         areas that are merely reserved.
13018
13019 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13020
13021         strftime: remove dependencies on multibyte modules
13022
13023         strftime depended on mbrlen, mbsinit, and wchar, but these modules
13024         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
13025         only if __osf__ is defined, and I suspect OSF doesn't need these
13026         other modules.  If my guess is wrong, we'll need to come up with a
13027         variant of strftime that doesn't need the multibyte modules.
13028
13029         I discovered this problem when attempting modify Emacs to use the
13030         strftime module.  With the previous gnulib, this caused Emacs to
13031         need 31 new files, ranging from lib/config.charset to
13032         m4/wint_t.m4.  This was overkill and I expect would be offputting
13033         to the Emacs maintainers.  After this change, only 6 new files are
13034         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
13035         stdbool.m4, and tm_gmtoff.m4.
13036
13037         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
13038         Suggested by Bruno Haible in
13039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
13040         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
13041         and do not check for wchar.h.
13042         * modules/strftime (Files): Remove m4/mbstate_t.m4.
13043         (Depends-on): Remove mbrlen, mbsinit, wchar.
13044
13045 2011-01-18  Bruno Haible  <bruno@clisp.org>
13046
13047         Tests for module 'get-rusage-as'.
13048         * modules/get-rusage-as-tests: New file.
13049         * tests/test-get-rusage-as.c: New file.
13050
13051         New module 'get-rusage-as'.
13052         * modules/get-rusage-as: New file.
13053         * lib/resource-ext.h: New file.
13054         * lib/get-rusage-as.c: New file.
13055
13056 2011-01-17  Eric Blake  <eblake@redhat.com>
13057
13058         sigaction: relax license from LGPLv3+ to LGPLv2+
13059         * modules/sigaction (License): Relax to LGPLv2+.
13060
13061 2011-01-14  Bruno Haible  <bruno@clisp.org>
13062
13063         filemode: Make function declarations usable in C++ mode.
13064         * lib/filemode.h: Enclose function declarations in extern "C" block.
13065         Reported by John W. Eaton <jwe@gnu.org>.
13066
13067 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
13068
13069         save-cwd: no longer include "xgetcwd.h"
13070         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
13071         This avoids a compilation failure in projects that use save-cwd
13072         without also using the xgetcwd module.
13073
13074 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13075
13076         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
13077         This is so that a program like Emacs, which needs only dtoastr,
13078         does not have to bother with distributing and compiling ftoastr
13079         and ldtoastr.
13080         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
13081         * modules/dtoastr, modules/ldtoastr: New files.
13082         * modules/ftoastr: Now works just for 'float'.
13083         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
13084         (Makefile.am): Remove ftoastr.h (not needed and no effect),
13085         dtoastr.c, ldtoastr.c.
13086
13087 2011-01-11  Jim Meyering  <meyering@redhat.com>
13088
13089         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
13090         There is no need to work around the lack of the fchdir function,
13091         since gnulib can now provide a replacement when required.
13092         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
13093         * modules/save-cwd (Depends-on): Add fchdir.
13094
13095 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13096
13097         openat, save-cwd: avoid xmalloc
13098
13099         This removes a direct (but undocumented) dependency of openat on
13100         xalloc, along with an indirect dependency via save-cwd.  It also
13101         removes a dependency of save-cwd on xgetcwd, and thereby
13102         indirectly on xalloc.  This change causes the openat substitute
13103         to fall back on save_cwd when memory is tight, and for save_cwd to
13104         fail instead of dying when memory is tight, but that's good enough.
13105         Problem and initial idea for fix reported by Bastien Roucaries in
13106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
13107
13108         * lib/openat-proc.c: Include stdlib.h (for malloc), not
13109         xalloc.h (for xmalloc).
13110         (openat_proc_name): Use malloc, not xmalloc.
13111         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
13112         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
13113
13114         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
13115         This avoids heap allocation for file names whose lengths are in
13116         the range 512..1023, with the upper bound increasing to at most
13117         4031 depending on the platform's PATH_MAX.  (We do not want
13118         pathmax.h here as it might supply a non-constant PATH_MAX.)
13119         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
13120         Perhaps they should be moved to malloca.h?
13121         (OPENAT_BUFFER_SIZE): Use them.
13122
13123 2011-01-10  Bruno Haible  <bruno@clisp.org>
13124
13125         doc: Update users.txt.
13126         * users.txt: Add recutils.
13127
13128 2011-01-09  Karl Berry  <karl@gnu.org>
13129
13130         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
13131
13132         * doc/configmake.texi: New file.
13133         * doc/gnulib.texi: Include it.
13134         * modules/configmake: Move documentation from here.
13135
13136 2011-01-09  Bruno Haible  <bruno@clisp.org>
13137
13138         Update to Unicode 6.0.0.
13139         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
13140         (get_lbp): Update for Unicode 6.0.0.
13141         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
13142         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
13143         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
13144         U+11001, U+11038..U+11046. Remove U+06DE.
13145         (uc_width): Fix bounds of planes.
13146         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13147         lib/uniwidth/width.c.
13148         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
13149         trailing whitespace removed.
13150         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
13151         without comments, but with the original copyright notice.
13152         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
13153         * lib/unicase/ignorable.h: Likewise.
13154         * lib/unicase/tocasefold.h: Likewise.
13155         * lib/unicase/tolower.h: Likewise.
13156         * lib/unicase/totitle.h: Likewise.
13157         * lib/unicase/toupper.h: Likewise.
13158         * lib/unictype/bidi_of.h: Likewise.
13159         * lib/unictype/blocks.h: Likewise.
13160         * lib/unictype/categ_C.h: Likewise.
13161         * lib/unictype/categ_Cn.h: Likewise.
13162         * lib/unictype/categ_L.h: Likewise.
13163         * lib/unictype/categ_Ll.h: Likewise.
13164         * lib/unictype/categ_Lm.h: Likewise.
13165         * lib/unictype/categ_Lo.h: Likewise.
13166         * lib/unictype/categ_Lu.h: Likewise.
13167         * lib/unictype/categ_M.h: Likewise.
13168         * lib/unictype/categ_Mc.h: Likewise.
13169         * lib/unictype/categ_Me.h: Likewise.
13170         * lib/unictype/categ_Mn.h: Likewise.
13171         * lib/unictype/categ_N.h: Likewise.
13172         * lib/unictype/categ_Nd.h: Likewise.
13173         * lib/unictype/categ_No.h: Likewise.
13174         * lib/unictype/categ_P.h: Likewise.
13175         * lib/unictype/categ_Po.h: Likewise.
13176         * lib/unictype/categ_S.h: Likewise.
13177         * lib/unictype/categ_Sc.h: Likewise.
13178         * lib/unictype/categ_Sk.h: Likewise.
13179         * lib/unictype/categ_Sm.h: Likewise.
13180         * lib/unictype/categ_So.h: Likewise.
13181         * lib/unictype/categ_of.h: Likewise.
13182         * lib/unictype/combining.h: Likewise.
13183         * lib/unictype/ctype_alnum.h: Likewise.
13184         * lib/unictype/ctype_alpha.h: Likewise.
13185         * lib/unictype/ctype_graph.h: Likewise.
13186         * lib/unictype/ctype_lower.h: Likewise.
13187         * lib/unictype/ctype_print.h: Likewise.
13188         * lib/unictype/ctype_punct.h: Likewise.
13189         * lib/unictype/ctype_upper.h: Likewise.
13190         * lib/unictype/decdigit.h: Likewise.
13191         * lib/unictype/digit.h: Likewise.
13192         * lib/unictype/numeric.h: Likewise.
13193         * lib/unictype/pr_alphabetic.h: Likewise.
13194         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13195         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13196         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13197         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13198         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13199         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13200         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13201         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13202         * lib/unictype/pr_case_ignorable.h: Likewise.
13203         * lib/unictype/pr_cased.h: Likewise.
13204         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
13205         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
13206         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
13207         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
13208         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
13209         * lib/unictype/pr_combining.h: Likewise.
13210         * lib/unictype/pr_composite.h: Likewise.
13211         * lib/unictype/pr_currency_symbol.h: Likewise.
13212         * lib/unictype/pr_decimal_digit.h: Likewise.
13213         * lib/unictype/pr_deprecated.h: Likewise.
13214         * lib/unictype/pr_format_control.h: Likewise.
13215         * lib/unictype/pr_grapheme_base.h: Likewise.
13216         * lib/unictype/pr_grapheme_extend.h: Likewise.
13217         * lib/unictype/pr_grapheme_link.h: Likewise.
13218         * lib/unictype/pr_id_continue.h: Likewise.
13219         * lib/unictype/pr_id_start.h: Likewise.
13220         * lib/unictype/pr_ideographic.h: Likewise.
13221         * lib/unictype/pr_lowercase.h: Likewise.
13222         * lib/unictype/pr_math.h: Likewise.
13223         * lib/unictype/pr_numeric.h: Likewise.
13224         * lib/unictype/pr_other_alphabetic.h: Likewise.
13225         * lib/unictype/pr_other_id_continue.h: Likewise.
13226         * lib/unictype/pr_other_math.h: Likewise.
13227         * lib/unictype/pr_punctuation.h: Likewise.
13228         * lib/unictype/pr_sentence_terminal.h: Likewise.
13229         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13230         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13231         * lib/unictype/pr_unified_ideograph.h: Likewise.
13232         * lib/unictype/pr_uppercase.h: Likewise.
13233         * lib/unictype/pr_xid_continue.h: Likewise.
13234         * lib/unictype/pr_xid_start.h: Likewise.
13235         * lib/unictype/scripts.h: Likewise.
13236         * lib/unictype/scripts_byname.gperf: Likewise.
13237         * lib/unictype/sy_java_ident.h: Likewise.
13238         * lib/unigbrk/gbrkprop.h: Likewise.
13239         * lib/unilbrk/lbrkprop1.h: Likewise.
13240         * lib/unilbrk/lbrkprop2.h: Likewise.
13241         * lib/uninorm/decomposition-table2.h: Likewise.
13242         * lib/uniwbrk/wbrkprop.h: Likewise.
13243         * tests/unicase/test-cased.c: Likewise.
13244         * tests/unicase/test-ignorable.c: Likewise.
13245         * tests/unicase/test-uc_tolower.c: Likewise.
13246         * tests/unicase/test-uc_totitle.c: Likewise.
13247         * tests/unicase/test-uc_toupper.c: Likewise.
13248         * tests/unictype/test-categ_C.c: Likewise.
13249         * tests/unictype/test-categ_Cn.c: Likewise.
13250         * tests/unictype/test-categ_L.c: Likewise.
13251         * tests/unictype/test-categ_Ll.c: Likewise.
13252         * tests/unictype/test-categ_Lm.c: Likewise.
13253         * tests/unictype/test-categ_Lo.c: Likewise.
13254         * tests/unictype/test-categ_Lu.c: Likewise.
13255         * tests/unictype/test-categ_M.c: Likewise.
13256         * tests/unictype/test-categ_Mc.c: Likewise.
13257         * tests/unictype/test-categ_Me.c: Likewise.
13258         * tests/unictype/test-categ_Mn.c: Likewise.
13259         * tests/unictype/test-categ_N.c: Likewise.
13260         * tests/unictype/test-categ_Nd.c: Likewise.
13261         * tests/unictype/test-categ_No.c: Likewise.
13262         * tests/unictype/test-categ_P.c: Likewise.
13263         * tests/unictype/test-categ_Po.c: Likewise.
13264         * tests/unictype/test-categ_S.c: Likewise.
13265         * tests/unictype/test-categ_Sc.c: Likewise.
13266         * tests/unictype/test-categ_Sk.c: Likewise.
13267         * tests/unictype/test-categ_Sm.c: Likewise.
13268         * tests/unictype/test-categ_So.c: Likewise.
13269         * tests/unictype/test-ctype_alnum.c: Likewise.
13270         * tests/unictype/test-ctype_alpha.c: Likewise.
13271         * tests/unictype/test-ctype_graph.c: Likewise.
13272         * tests/unictype/test-ctype_lower.c: Likewise.
13273         * tests/unictype/test-ctype_print.c: Likewise.
13274         * tests/unictype/test-ctype_punct.c: Likewise.
13275         * tests/unictype/test-ctype_upper.c: Likewise.
13276         * tests/unictype/test-decdigit.h: Likewise.
13277         * tests/unictype/test-digit.h: Likewise.
13278         * tests/unictype/test-numeric.h: Likewise.
13279         * tests/unictype/test-pr_alphabetic.c: Likewise.
13280         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13281         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
13282         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
13283         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13284         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13285         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13286         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13287         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13288         * tests/unictype/test-pr_case_ignorable.c: Likewise.
13289         * tests/unictype/test-pr_cased.c: Likewise.
13290         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
13291         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
13292         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
13293         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
13294         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
13295         * tests/unictype/test-pr_combining.c: Likewise.
13296         * tests/unictype/test-pr_composite.c: Likewise.
13297         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13298         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13299         * tests/unictype/test-pr_deprecated.c: Likewise.
13300         * tests/unictype/test-pr_format_control.c: Likewise.
13301         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13302         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13303         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13304         * tests/unictype/test-pr_id_continue.c: Likewise.
13305         * tests/unictype/test-pr_id_start.c: Likewise.
13306         * tests/unictype/test-pr_ideographic.c: Likewise.
13307         * tests/unictype/test-pr_lowercase.c: Likewise.
13308         * tests/unictype/test-pr_math.c: Likewise.
13309         * tests/unictype/test-pr_numeric.c: Likewise.
13310         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13311         * tests/unictype/test-pr_other_id_continue.c: Likewise.
13312         * tests/unictype/test-pr_other_math.c: Likewise.
13313         * tests/unictype/test-pr_punctuation.c: Likewise.
13314         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13315         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13316         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13317         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13318         * tests/unictype/test-pr_uppercase.c: Likewise.
13319         * tests/unictype/test-pr_xid_continue.c: Likewise.
13320         * tests/unictype/test-pr_xid_start.c: Likewise.
13321         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13322         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13323         changes.
13324         * lib/unictype/categ_Cc.h: Likewise.
13325         * lib/unictype/categ_Cf.h: Likewise.
13326         * lib/unictype/categ_Co.h: Likewise.
13327         * lib/unictype/categ_Cs.h: Likewise.
13328         * lib/unictype/categ_Lt.h: Likewise.
13329         * lib/unictype/categ_Nl.h: Likewise.
13330         * lib/unictype/categ_Pc.h: Likewise.
13331         * lib/unictype/categ_Pd.h: Likewise.
13332         * lib/unictype/categ_Pe.h: Likewise.
13333         * lib/unictype/categ_Pf.h: Likewise.
13334         * lib/unictype/categ_Pi.h: Likewise.
13335         * lib/unictype/categ_Ps.h: Likewise.
13336         * lib/unictype/categ_Z.h: Likewise.
13337         * lib/unictype/categ_Zl.h: Likewise.
13338         * lib/unictype/categ_Zp.h: Likewise.
13339         * lib/unictype/categ_Zs.h: Likewise.
13340         * lib/unictype/ctype_blank.h: Likewise.
13341         * lib/unictype/ctype_cntrl.h: Likewise.
13342         * lib/unictype/ctype_digit.h: Likewise.
13343         * lib/unictype/ctype_space.h: Likewise.
13344         * lib/unictype/ctype_xdigit.h: Likewise.
13345         * lib/unictype/mirror.h: Likewise.
13346         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13347         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13348         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13349         * lib/unictype/pr_bidi_control.h: Likewise.
13350         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13351         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13352         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13353         * lib/unictype/pr_bidi_pdf.h: Likewise.
13354         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13355         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13356         * lib/unictype/pr_dash.h: Likewise.
13357         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13358         * lib/unictype/pr_diacritic.h: Likewise.
13359         * lib/unictype/pr_extender.h: Likewise.
13360         * lib/unictype/pr_hex_digit.h: Likewise.
13361         * lib/unictype/pr_hyphen.h: Likewise.
13362         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13363         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13364         * lib/unictype/pr_ignorable_control.h: Likewise.
13365         * lib/unictype/pr_iso_control.h: Likewise.
13366         * lib/unictype/pr_join_control.h: Likewise.
13367         * lib/unictype/pr_left_of_pair.h: Likewise.
13368         * lib/unictype/pr_line_separator.h: Likewise.
13369         * lib/unictype/pr_logical_order_exception.h: Likewise.
13370         * lib/unictype/pr_non_break.h: Likewise.
13371         * lib/unictype/pr_not_a_character.h: Likewise.
13372         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13373         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13374         * lib/unictype/pr_other_id_start.h: Likewise.
13375         * lib/unictype/pr_other_lowercase.h: Likewise.
13376         * lib/unictype/pr_other_uppercase.h: Likewise.
13377         * lib/unictype/pr_paired_punctuation.h: Likewise.
13378         * lib/unictype/pr_paragraph_separator.h: Likewise.
13379         * lib/unictype/pr_pattern_syntax.h: Likewise.
13380         * lib/unictype/pr_pattern_white_space.h: Likewise.
13381         * lib/unictype/pr_private_use.h: Likewise.
13382         * lib/unictype/pr_quotation_mark.h: Likewise.
13383         * lib/unictype/pr_radical.h: Likewise.
13384         * lib/unictype/pr_soft_dotted.h: Likewise.
13385         * lib/unictype/pr_space.h: Likewise.
13386         * lib/unictype/pr_titlecase.h: Likewise.
13387         * lib/unictype/pr_variation_selector.h: Likewise.
13388         * lib/unictype/pr_white_space.h: Likewise.
13389         * lib/unictype/pr_zero_width.h: Likewise.
13390         * lib/unictype/sy_c_ident.h: Likewise.
13391         * lib/unictype/sy_c_whitespace.h: Likewise.
13392         * lib/unictype/sy_java_whitespace.h: Likewise.
13393         * lib/uninorm/composition-table.gperf: Likewise.
13394         * lib/uninorm/decomposition-table1.h: Likewise.
13395         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
13396         LB8.
13397         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13398         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13399         * modules/unictype/*: Bump version number of expected libunistring
13400         version.
13401
13402 2011-01-09  Bruno Haible  <bruno@clisp.org>
13403
13404         Update to Unicode 5.2.0.
13405         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
13406         trailing whitespace removed.
13407
13408 2011-01-09  Bruno Haible  <bruno@clisp.org>
13409
13410         New Unicode character properties, from Unicode 5.2.0.
13411         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13412         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
13413         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
13414         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
13415         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
13416         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
13417         uc_is_property_cased, uc_is_property_case_ignorable,
13418         uc_is_property_changes_when_lowercased,
13419         uc_is_property_changes_when_uppercased,
13420         uc_is_property_changes_when_titlecased,
13421         uc_is_property_changes_when_casefolded,
13422         uc_is_property_changes_when_casemapped): New declarations.
13423         * lib/unictype/pr_byname.gperf: Add the new properties.
13424         * modules/unictype/property-byname (Depends-on): Depend on the new
13425         properties modules.
13426         * modules/unictype/property-all (Depends-on): Likewise.
13427         * MODULES.html.sh (Unicode string functions): Add
13428         unictype/property-case-ignorable, unictype/property-cased,
13429         unictype/property-changes-when-casefolded,
13430         unictype/property-changes-when-casemapped,
13431         unictype/property-changes-when-lowercased,
13432         unictype/property-changes-when-titlecased,
13433         unictype/property-changes-when-uppercased.
13434
13435         New module 'unictype/property-changes-when-casemapped'.
13436         * modules/unictype/property-changes-when-casemapped: New file.
13437         * lib/unictype/pr_changes_when_casemapped.c: New file.
13438         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
13439         generated by gen-uni-tables.
13440         * modules/unictype/property-changes-when-casemapped-tests: New file.
13441         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
13442         automatically generated by gen-uni-tables.
13443
13444         New module 'unictype/property-changes-when-casefolded'.
13445         * modules/unictype/property-changes-when-casefolded: New file.
13446         * lib/unictype/pr_changes_when_casefolded.c: New file.
13447         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
13448         generated by gen-uni-tables.
13449         * modules/unictype/property-changes-when-casefolded-tests: New file.
13450         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
13451         automatically generated by gen-uni-tables.
13452
13453         New module 'unictype/property-changes-when-titlecased'.
13454         * modules/unictype/property-changes-when-titlecased: New file.
13455         * lib/unictype/pr_changes_when_titlecased.c: New file.
13456         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
13457         generated by gen-uni-tables.
13458         * modules/unictype/property-changes-when-titlecased-tests: New file.
13459         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
13460         automatically generated by gen-uni-tables.
13461
13462         New module 'unictype/property-changes-when-uppercased'.
13463         * modules/unictype/property-changes-when-uppercased: New file.
13464         * lib/unictype/pr_changes_when_uppercased.c: New file.
13465         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
13466         generated by gen-uni-tables.
13467         * modules/unictype/property-changes-when-uppercased-tests: New file.
13468         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
13469         automatically generated by gen-uni-tables.
13470
13471         New module 'unictype/property-changes-when-lowercased'.
13472         * modules/unictype/property-changes-when-lowercased: New file.
13473         * lib/unictype/pr_changes_when_lowercased.c: New file.
13474         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
13475         generated by gen-uni-tables.
13476         * modules/unictype/property-changes-when-lowercased-tests: New file.
13477         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
13478         automatically generated by gen-uni-tables.
13479
13480         New module 'unictype/property-case-ignorable'.
13481         * modules/unictype/property-case-ignorable: New file.
13482         * lib/unictype/pr_case_ignorable.c: New file.
13483         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
13484         by gen-uni-tables.
13485         * modules/unictype/property-case-ignorable-tests: New file.
13486         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
13487         generated by gen-uni-tables.
13488
13489         New module 'unictype/property-cased'.
13490         * modules/unictype/property-cased: New file.
13491         * lib/unictype/pr_cased.c: New file.
13492         * lib/unictype/pr_cased.h: New file, automatically generated by
13493         gen-uni-tables.
13494         * modules/unictype/property-cased-tests: New file.
13495         * tests/unictype/test-pr_cased.c: New file, automatically generated by
13496         gen-uni-tables.
13497
13498 2011-01-09  Bruno Haible  <bruno@clisp.org>
13499
13500         Update to Unicode 5.2.0.
13501         * lib/gen-uni-tables.c (output_predicate, output_category,
13502         output_combclass, output_bidi_category, output_decimal_digit_test,
13503         output_decimal_digit, output_digit_test, output_digit,
13504         output_numeric_test, output_numeric, output_mirror, output_scripts,
13505         output_scripts_byname, output_blocks, output_ident_category): Fix
13506         comment header.
13507         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
13508         get_wbp.
13509         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
13510         items.
13511         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
13512         Changes_When_Lowercased, Changes_When_Uppercased,
13513         Changes_When_Titlecased, Changes_When_Casefolded,
13514         Changes_When_Casemapped.
13515         (is_property_alphabetic, is_property_default_ignorable_code_point):
13516         Update for Unicode 5.2.0.
13517         (is_property_cased, is_property_case_ignorable,
13518         is_property_changes_when_lowercased,
13519         is_property_changes_when_uppercased,
13520         is_property_changes_when_titlecased,
13521         is_property_changes_when_casefolded,
13522         is_property_changes_when_casemapped): New functions.
13523         (output_properties): Output also the properties cased, case_ignorable,
13524         changes_when_lowercased, changes_when_uppercased,
13525         changes_when_titlecased, changes_when_casefolded,
13526         changes_when_casemapped.
13527         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
13528         Unicode TR#11 revision 17 -> 19.
13529         (LBP_CP): New enumeration value.
13530         (LBP_*): Adjust values accordingly.
13531         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13532         TR#14 revision 22 -> 24.
13533         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
13534         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
13535         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13536         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
13537         is_WBP_MIDLETTER.
13538         (output_composition_tables): Allow for 24 bits instead of 16 bits in
13539         the code1 and code2 of each composition rule.
13540         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
13541         * lib/unicase/ignorable.h: Likewise.
13542         * lib/unicase/tocasefold.h: Likewise.
13543         * lib/unicase/tolower.h: Likewise.
13544         * lib/unicase/totitle.h: Likewise.
13545         * lib/unicase/toupper.h: Likewise.
13546         * lib/unictype/bidi_of.h: Likewise.
13547         * lib/unictype/blocks.h: Likewise.
13548         * lib/unictype/categ_C.h: Likewise.
13549         * lib/unictype/categ_Cf.h: Likewise.
13550         * lib/unictype/categ_Cn.h: Likewise.
13551         * lib/unictype/categ_L.h: Likewise.
13552         * lib/unictype/categ_Ll.h: Likewise.
13553         * lib/unictype/categ_Lm.h: Likewise.
13554         * lib/unictype/categ_Lo.h: Likewise.
13555         * lib/unictype/categ_Lu.h: Likewise.
13556         * lib/unictype/categ_M.h: Likewise.
13557         * lib/unictype/categ_Mc.h: Likewise.
13558         * lib/unictype/categ_Mn.h: Likewise.
13559         * lib/unictype/categ_N.h: Likewise.
13560         * lib/unictype/categ_Nd.h: Likewise.
13561         * lib/unictype/categ_Nl.h: Likewise.
13562         * lib/unictype/categ_No.h: Likewise.
13563         * lib/unictype/categ_P.h: Likewise.
13564         * lib/unictype/categ_Pd.h: Likewise.
13565         * lib/unictype/categ_Po.h: Likewise.
13566         * lib/unictype/categ_S.h: Likewise.
13567         * lib/unictype/categ_Sc.h: Likewise.
13568         * lib/unictype/categ_So.h: Likewise.
13569         * lib/unictype/categ_of.h: Likewise.
13570         * lib/unictype/combining.h: Likewise.
13571         * lib/unictype/ctype_alnum.h: Likewise.
13572         * lib/unictype/ctype_alpha.h: Likewise.
13573         * lib/unictype/ctype_graph.h: Likewise.
13574         * lib/unictype/ctype_lower.h: Likewise.
13575         * lib/unictype/ctype_print.h: Likewise.
13576         * lib/unictype/ctype_punct.h: Likewise.
13577         * lib/unictype/ctype_upper.h: Likewise.
13578         * lib/unictype/decdigit.h: Likewise.
13579         * lib/unictype/digit.h: Likewise.
13580         * lib/unictype/numeric.h: Likewise.
13581         * lib/unictype/pr_alphabetic.h: Likewise.
13582         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13583         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13584         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13585         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13586         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13587         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13588         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13589         * lib/unictype/pr_combining.h: Likewise.
13590         * lib/unictype/pr_composite.h: Likewise.
13591         * lib/unictype/pr_currency_symbol.h: Likewise.
13592         * lib/unictype/pr_dash.h: Likewise.
13593         * lib/unictype/pr_decimal_digit.h: Likewise.
13594         * lib/unictype/pr_deprecated.h: Likewise.
13595         * lib/unictype/pr_diacritic.h: Likewise.
13596         * lib/unictype/pr_extender.h: Likewise.
13597         * lib/unictype/pr_grapheme_base.h: Likewise.
13598         * lib/unictype/pr_grapheme_extend.h: Likewise.
13599         * lib/unictype/pr_grapheme_link.h: Likewise.
13600         * lib/unictype/pr_id_continue.h: Likewise.
13601         * lib/unictype/pr_id_start.h: Likewise.
13602         * lib/unictype/pr_ideographic.h: Likewise.
13603         * lib/unictype/pr_ignorable_control.h: Likewise.
13604         * lib/unictype/pr_logical_order_exception.h: Likewise.
13605         * lib/unictype/pr_lowercase.h: Likewise.
13606         * lib/unictype/pr_numeric.h: Likewise.
13607         * lib/unictype/pr_other_alphabetic.h: Likewise.
13608         * lib/unictype/pr_punctuation.h: Likewise.
13609         * lib/unictype/pr_sentence_terminal.h: Likewise.
13610         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13611         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13612         * lib/unictype/pr_unified_ideograph.h: Likewise.
13613         * lib/unictype/pr_uppercase.h: Likewise.
13614         * lib/unictype/pr_xid_continue.h: Likewise.
13615         * lib/unictype/pr_xid_start.h: Likewise.
13616         * lib/unictype/pr_zero_width.h: Likewise.
13617         * lib/unictype/scripts.h: Likewise.
13618         * lib/unictype/scripts_byname.gperf: Likewise.
13619         * lib/unictype/sy_java_ident.h: Likewise.
13620         * lib/unigbrk/gbrkprop.h: Likewise.
13621         * lib/unilbrk/lbrkprop1.h: Likewise.
13622         * lib/unilbrk/lbrkprop2.h: Likewise.
13623         * lib/unilbrk/lbrktables.h: Likewise.
13624         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
13625         LBP_CP. Implement rule LB30.
13626         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
13627         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
13628         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
13629         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
13630         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
13631         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
13632         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
13633         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
13634         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
13635         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
13636         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
13637         bits instead of 16 bits in the code1 and code2 of each composition
13638         rule.
13639         (uc_composition): Update for Unicode 5.2.0.
13640         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
13641         * lib/uninorm/decomposition-table2.h: Likewise.
13642         * lib/uniwbrk/wbrkprop.h: Likewise.
13643         * tests/unicase/test-cased.c: Likewise.
13644         * tests/unicase/test-ignorable.c: Likewise.
13645         * tests/unicase/test-uc_tolower.c: Likewise.
13646         * tests/unicase/test-uc_totitle.c: Likewise.
13647         * tests/unicase/test-uc_toupper.c: Likewise.
13648         * tests/unictype/test-categ_C.c: Likewise.
13649         * tests/unictype/test-categ_Cf.c: Likewise.
13650         * tests/unictype/test-categ_Cn.c: Likewise.
13651         * tests/unictype/test-categ_L.c: Likewise.
13652         * tests/unictype/test-categ_Ll.c: Likewise.
13653         * tests/unictype/test-categ_Lm.c: Likewise.
13654         * tests/unictype/test-categ_Lo.c: Likewise.
13655         * tests/unictype/test-categ_Lu.c: Likewise.
13656         * tests/unictype/test-categ_M.c: Likewise.
13657         * tests/unictype/test-categ_Mc.c: Likewise.
13658         * tests/unictype/test-categ_Mn.c: Likewise.
13659         * tests/unictype/test-categ_N.c: Likewise.
13660         * tests/unictype/test-categ_Nd.c: Likewise.
13661         * tests/unictype/test-categ_Nl.c: Likewise.
13662         * tests/unictype/test-categ_No.c: Likewise.
13663         * tests/unictype/test-categ_P.c: Likewise.
13664         * tests/unictype/test-categ_Pd.c: Likewise.
13665         * tests/unictype/test-categ_Po.c: Likewise.
13666         * tests/unictype/test-categ_S.c: Likewise.
13667         * tests/unictype/test-categ_Sc.c: Likewise.
13668         * tests/unictype/test-categ_So.c: Likewise.
13669         * tests/unictype/test-ctype_alnum.c: Likewise.
13670         * tests/unictype/test-ctype_alpha.c: Likewise.
13671         * tests/unictype/test-ctype_graph.c: Likewise.
13672         * tests/unictype/test-ctype_lower.c: Likewise.
13673         * tests/unictype/test-ctype_print.c: Likewise.
13674         * tests/unictype/test-ctype_punct.c: Likewise.
13675         * tests/unictype/test-ctype_upper.c: Likewise.
13676         * tests/unictype/test-decdigit.h: Likewise.
13677         * tests/unictype/test-digit.h: Likewise.
13678         * tests/unictype/test-numeric.h: Likewise.
13679         * tests/unictype/test-pr_alphabetic.c: Likewise.
13680         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13681         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13682         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13683         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13684         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13685         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13686         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13687         * tests/unictype/test-pr_combining.c: Likewise.
13688         * tests/unictype/test-pr_composite.c: Likewise.
13689         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13690         * tests/unictype/test-pr_dash.c: Likewise.
13691         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13692         * tests/unictype/test-pr_deprecated.c: Likewise.
13693         * tests/unictype/test-pr_diacritic.c: Likewise.
13694         * tests/unictype/test-pr_extender.c: Likewise.
13695         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13696         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13697         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13698         * tests/unictype/test-pr_id_continue.c: Likewise.
13699         * tests/unictype/test-pr_id_start.c: Likewise.
13700         * tests/unictype/test-pr_ideographic.c: Likewise.
13701         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13702         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13703         * tests/unictype/test-pr_lowercase.c: Likewise.
13704         * tests/unictype/test-pr_numeric.c: Likewise.
13705         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13706         * tests/unictype/test-pr_punctuation.c: Likewise.
13707         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13708         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13709         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13710         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13711         * tests/unictype/test-pr_uppercase.c: Likewise.
13712         * tests/unictype/test-pr_xid_continue.c: Likewise.
13713         * tests/unictype/test-pr_xid_start.c: Likewise.
13714         * tests/unictype/test-pr_zero_width.c: Likewise.
13715         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13716         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13717         changed behaviour: line breaking is now disallowed between a letter
13718         or '=' and '('.
13719         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13720         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13721         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13722         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13723         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13724         lib/uniwidth/width.c.
13725         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13726         without comments, but with the original copyright notice.
13727         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13728         changes.
13729         * lib/unictype/categ_Cc.h: Likewise.
13730         * lib/unictype/categ_Co.h: Likewise.
13731         * lib/unictype/categ_Cs.h: Likewise.
13732         * lib/unictype/categ_Lt.h: Likewise.
13733         * lib/unictype/categ_Me.h: Likewise.
13734         * lib/unictype/categ_Pc.h: Likewise.
13735         * lib/unictype/categ_Pe.h: Likewise.
13736         * lib/unictype/categ_Pf.h: Likewise.
13737         * lib/unictype/categ_Pi.h: Likewise.
13738         * lib/unictype/categ_Ps.h: Likewise.
13739         * lib/unictype/categ_Sk.h: Likewise.
13740         * lib/unictype/categ_Sm.h: Likewise.
13741         * lib/unictype/categ_Z.h: Likewise.
13742         * lib/unictype/categ_Zl.h: Likewise.
13743         * lib/unictype/categ_Zp.h: Likewise.
13744         * lib/unictype/categ_Zs.h: Likewise.
13745         * lib/unictype/ctype_blank.h: Likewise.
13746         * lib/unictype/ctype_cntrl.h: Likewise.
13747         * lib/unictype/ctype_digit.h: Likewise.
13748         * lib/unictype/ctype_space.h: Likewise.
13749         * lib/unictype/ctype_xdigit.h: Likewise.
13750         * lib/unictype/mirror.h: Likewise.
13751         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13752         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13753         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13754         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13755         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13756         * lib/unictype/pr_bidi_control.h: Likewise.
13757         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13758         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13759         * lib/unictype/pr_bidi_pdf.h: Likewise.
13760         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13761         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13762         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13763         * lib/unictype/pr_format_control.h: Likewise.
13764         * lib/unictype/pr_hex_digit.h: Likewise.
13765         * lib/unictype/pr_hyphen.h: Likewise.
13766         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13767         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13768         * lib/unictype/pr_iso_control.h: Likewise.
13769         * lib/unictype/pr_join_control.h: Likewise.
13770         * lib/unictype/pr_left_of_pair.h: Likewise.
13771         * lib/unictype/pr_line_separator.h: Likewise.
13772         * lib/unictype/pr_math.h: Likewise.
13773         * lib/unictype/pr_non_break.h: Likewise.
13774         * lib/unictype/pr_not_a_character.h: Likewise.
13775         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13776         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13777         * lib/unictype/pr_other_id_continue.h: Likewise.
13778         * lib/unictype/pr_other_id_start.h: Likewise.
13779         * lib/unictype/pr_other_lowercase.h: Likewise.
13780         * lib/unictype/pr_other_math.h: Likewise.
13781         * lib/unictype/pr_other_uppercase.h: Likewise.
13782         * lib/unictype/pr_paired_punctuation.h: Likewise.
13783         * lib/unictype/pr_paragraph_separator.h: Likewise.
13784         * lib/unictype/pr_pattern_syntax.h: Likewise.
13785         * lib/unictype/pr_pattern_white_space.h: Likewise.
13786         * lib/unictype/pr_private_use.h: Likewise.
13787         * lib/unictype/pr_quotation_mark.h: Likewise.
13788         * lib/unictype/pr_radical.h: Likewise.
13789         * lib/unictype/pr_soft_dotted.h: Likewise.
13790         * lib/unictype/pr_space.h: Likewise.
13791         * lib/unictype/pr_titlecase.h: Likewise.
13792         * lib/unictype/pr_variation_selector.h: Likewise.
13793         * lib/unictype/pr_white_space.h: Likewise.
13794         * lib/unictype/sy_c_ident.h: Likewise.
13795         * lib/unictype/sy_c_whitespace.h: Likewise.
13796         * lib/unictype/sy_java_whitespace.h: Likewise.
13797         * modules/uni*/*: Bump version number of expected libunistring version.
13798         Reported by Simon Josefsson.
13799
13800 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13801
13802         useless-if-before-free: fix typo in --help and make the internal,
13803         automatic version date update process work once again.
13804         --help output contained a NUL character instead of the
13805         backslash-zero that was intended.  Also, the "must lie within
13806         the first 8 lines" line is on line 9, and hence not getting
13807         automatically updated.
13808         * build-aux/useless-if-before-free: Fix the former by adding a
13809         backslash, and the latter by condensing the three lines of what-it-does
13810         to a single line, leaving one line of slack for the future.
13811
13812 2011-01-09  Bruno Haible  <bruno@clisp.org>
13813
13814         uniwidth/width: Fix width of U+1D173..U+1D17A.
13815         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13816         symbolic_width, output_width_property_test): New functions.
13817         (main): Invoke output_nonspacing_property, output_width_property_test.
13818         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13819         U+1D173..U+1D17A.
13820         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13821         1.
13822         * modules/uniwidth/*: Bump version number of expected libunistring
13823         version.
13824         * modules/unilbrk/*: Likewise.
13825
13826 2011-01-08  Bruno Haible  <bruno@clisp.org>
13827
13828         uninorm tests: Preserve copyright of Unicode data file.
13829         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13830         Mention modifications.
13831
13832 2011-01-08  Bruno Haible  <bruno@clisp.org>
13833
13834         gen-uni-tables: Prepare for Unicode 5.2.0.
13835         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13836         (debug_output_lbp, output_lbp): Update.
13837
13838 2011-01-08  Bruno Haible  <bruno@clisp.org>
13839
13840         unilbrk: Clarify gen-uni-tables.c code.
13841         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13842         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13843         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13844
13845 2011-01-07  Bruno Haible  <bruno@clisp.org>
13846
13847         strtod: Restore errno when successfully parsing Infinity or NaN.
13848         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13849         restore the original errno.
13850
13851 2011-01-07  Bruno Haible  <bruno@clisp.org>
13852
13853         remove test: Avoid failure on HP-UX 11.
13854         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13855
13856 2011-01-07  Bruno Haible  <bruno@clisp.org>
13857
13858         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13859         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13860         error code.
13861
13862 2011-01-07  Pádraig Brady <P@draigBrady.com>
13863
13864         ignore-value: fixup comments, and add Eric Blake
13865         as an author since he rewrote the macros.
13866         * lib/ignore-value.h (ignore_value):  State that
13867         we now support aggregates.  Also specify exactly
13868         when the GCC warn_unused_result feature was added.
13869
13870 2011-01-06  Eric Blake  <eblake@redhat.com>
13871
13872         ignore-value: support aggregate types
13873         * lib/ignore-value.h (ignore_value): Provide separate gcc
13874         definition.
13875         * modules/ignore-value-tests: New test module.
13876         * tests/test-ignore-value.c: New test.
13877
13878         maint.mk: improve sc_prohibit_strcmp regex
13879         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13880         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13881         definition of STRNEQ.
13882
13883         signal: work around Haiku issue with SIGBUS
13884         * lib/siglist.h: Add comment.
13885         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13886         strsignal's favoring of SIGSEGV.
13887         * tests/test-signal.c (main): Avoid test failure.
13888         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13889         Reported by Scott McCreary.
13890
13891         maint.mk: add pre-release check to ensure submodule commits are public
13892         * top/maint.mk (public-submodule-commit): New rule.
13893         (submodule-checks): New variable.
13894         (alpha beta stable): Depend on the variable.
13895
13896 2011-01-05  Pádraig Brady <P@draigBrady.com>
13897         and Jim Meyering  <meyering@redhat.com>
13898
13899         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13900         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13901         (ATTRIBUTE_DEPRECATED): Define.
13902         (_ignore_case): New function.
13903         (ignore_value): New macro, to replace the old function.
13904         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13905         * modules/ignore-value (Depends-on): Add stdint.
13906
13907 2011-01-04  Eric Blake  <eblake@redhat.com>
13908
13909         doc: regenerate INSTALL
13910         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13911         @firstparagraphindent support, now that autoconf dropped it.
13912         (INSTALL_PRELUDE): Reinstate old macro.
13913         * doc/install.texi: Resync from autoconf.
13914         * doc/INSTALL: Reflect recent autoconf update.
13915         * doc/INSTALL.ISO: Likewise.
13916         * doc/INSTALL.UTF-8: Likewise.
13917         Reported by Karl Berry.
13918
13919 2011-01-04  Bruce Korb  <address@hidden>
13920
13921         git-version-gen: avoid a sub-shell
13922         * build-aux/git-version-gen: Redirect stderr in `...` via
13923         "exec 2>...", rather than via an added sub-shell.
13924
13925 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13926
13927         git-version-gen: use (...) rather than sh -c '...'
13928         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13929         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13930
13931 2011-01-03  Jim Meyering  <meyering@redhat.com>
13932
13933         git-version-gen: convert leading TABs to spaces
13934         * build-aux/git-version-gen: Expand leading TABs.
13935
13936         git-version-gen: handle failed "git rev-list"
13937         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13938         from git and proceeding as if it had succeeded but printed no SHA1
13939         checksums, suppress the diagnostic and handle the failure.
13940         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13941
13942         git-version-gen: include command name in one more diagnostic
13943         * build-aux/git-version-gen: When the required .tarball-version file
13944         was missing or unreadable, you might see the diagnostic from "cat",
13945         but no trace of the name of the invoking script.  Now, you still see
13946         the diagnostic from cat, but also get one from "git-version-gen: ".
13947         Inspired by a patch from Bruce Korb.
13948
13949         update-copyright: adjust test to match changed code
13950         * tests/test-update-copyright.sh: Change test's expected output
13951         to match new actual output.
13952
13953 2011-01-02  Bruno Haible  <bruno@clisp.org>
13954
13955         getlogin_r: Avoid test failure on HP-UX 11.
13956         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13957         ERANGE when the second argument is zero.
13958         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13959         portability problem.
13960
13961 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13962
13963         * build-aux/update-copyright: doc Simon's changes
13964
13965 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13966
13967         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13968         environment variable.
13969
13970 2011-01-02  Bruno Haible  <bruno@clisp.org>
13971
13972         unigbrk: Avoid gcc warnings.
13973         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13974         unused variable.
13975         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13976         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13977         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13978         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13979         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13980         Change type of first argument to 'const char *'.
13981         (main): Remove unused variable.
13982         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13983         type of first argument to 'const char *'.
13984         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13985         Likewise.
13986         (main): Change type of variable 's'.
13987         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13988         to 'int'.
13989
13990 2011-01-02  Bruno Haible  <bruno@clisp.org>
13991
13992         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13993         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13994         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13995         bug.
13996         * lib/pwrite.c: Undo 2010-12-31 patch.
13997         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13998
13999 2011-01-02  Bruno Haible  <bruno@clisp.org>
14000
14001         pread: Fix test whether it works.
14002         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
14003
14004 2011-01-02  Bruno Haible  <bruno@clisp.org>
14005
14006         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
14007         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
14008         ends in "6". Don't require a specific month name. Try also the locale
14009         names found on HP-UX 11 and Solaris 7.
14010
14011 2011-01-02  Bruno Haible  <bruno@clisp.org>
14012
14013         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
14014         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
14015         C linkage.
14016         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
14017
14018 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14019
14020         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
14021         for consistency, since the "cluster" term is not used elsewhere.
14022         * lib/unigbrk.in.h: Update name.
14023         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
14024         * lib/unigbrk/u16-grapheme-next.c: Update name.
14025         * lib/unigbrk/u16-grapheme-prev.c: Update name.
14026         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
14027         * lib/unigbrk/u32-grapheme-next.c: Update name.
14028         * lib/unigbrk/u32-grapheme-prev.c: Update name.
14029         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
14030         * lib/unigbrk/u8-grapheme-next.c: Update name.
14031         * lib/unigbrk/u8-grapheme-prev.c: Update name.
14032         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
14033         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
14034         Suggested by Bruno Haible.
14035
14036 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14037
14038         Remove module 'u8-grapheme-len' as too redundant with
14039         'u8-grapheme-next'.
14040         * modules/unigbrk/u8-grapheme-len: Delete file.
14041         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
14042         * lib/unigbrk.in.h: Remove prototype for deleted function.
14043         * lib/unigbrk/u8-grapheme-len.c: Delete file.
14044         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
14045
14046         Remove module 'u16-grapheme-len' as too redundant with
14047         'u16-grapheme-next'.
14048         * modules/unigbrk/u16-grapheme-len: Delete file.
14049         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
14050         * lib/unigbrk.in.h: Remove prototype for deleted function.
14051         * lib/unigbrk/u16-grapheme-len.c: Delete file.
14052         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
14053
14054         Remove module 'u32-grapheme-len' as too redundant with
14055         'u32-grapheme-next'.
14056         * modules/unigbrk/u32-grapheme-len: Delete file.
14057         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
14058         * lib/unigbrk.in.h: Remove prototype for deleted function.
14059         * lib/unigbrk/u32-grapheme-len.c: Delete file.
14060         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
14061
14062         Suggested by Bruno Haible.
14063
14064 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14065
14066         * unigbrk.in.h: Fix typo: "ben" => "been".
14067         Reported by Bruno Haible.
14068
14069 2011-01-01  Jim Meyering  <meyering@redhat.com>
14070
14071         maint: update almost all copyright ranges to include 2011
14072         Run the new "make update-copyright" rule.
14073
14074 2011-01-01  Jim Meyering  <meyering@redhat.com>
14075
14076         maint: update-copyright: exempt doc/INSTALL*
14077         * Makefile (update-copyright): Also exclude doc/INSTALL*,
14078         since they are generated.  Suggested by Bruno Haible.
14079
14080 2011-01-01  Jim Meyering  <meyering@redhat.com>
14081
14082         maint: refine the update-copyright rule
14083         * Makefile (update-copyright): Also exclude any file that includes
14084         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
14085         code that merely generates the comment.
14086
14087 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14088
14089         New module 'u8-grapheme-len'.
14090         * modules/unigbrk/u8-grapheme-len: New file.
14091         * modules/unigbrk/u8-grapheme-len-tests: New file.
14092         * lib/unigbrk.in.h: Add prototype for new function.
14093         * lib/unigbrk/u8-grapheme-len.c: New file.
14094         * tests/unigbrk/test-u8-grapheme-len.c: New file.
14095
14096         New module 'u16-grapheme-len'.
14097         * modules/unigbrk/u16-grapheme-len: New file.
14098         * modules/unigbrk/u16-grapheme-len-tests: New file.
14099         * lib/unigbrk.in.h: Add prototype for new function.
14100         * lib/unigbrk/u16-grapheme-len.c: New file.
14101         * tests/unigbrk/test-u16-grapheme-len.c: New file.
14102
14103         New module 'u32-grapheme-len'.
14104         * modules/unigbrk/u32-grapheme-len: New file.
14105         * modules/unigbrk/u32-grapheme-len-tests: New file.
14106         * lib/unigbrk.in.h: Add prototype for new function.
14107         * lib/unigbrk/u32-grapheme-len.c: New file.
14108         * tests/unigbrk/test-u32-grapheme-len.c: New file.
14109
14110         New module 'u8-grapheme-next'.
14111         * modules/unigbrk/u8-grapheme-next: New file.
14112         * modules/unigbrk/u8-grapheme-next-tests: New file.
14113         * lib/unigbrk.in.h: Add prototype for new function.
14114         * lib/unigbrk/u8-grapheme-next.c: New file.
14115         * tests/unigbrk/test-u8-grapheme-next.c: New file.
14116
14117         New module 'u16-grapheme-next'.
14118         * modules/unigbrk/u16-grapheme-next: New file.
14119         * modules/unigbrk/u16-grapheme-next-tests: New file.
14120         * lib/unigbrk.in.h: Add prototype for new function.
14121         * lib/unigbrk/u16-grapheme-next.c: New file.
14122         * tests/unigbrk/test-u16-grapheme-next.c: New file.
14123
14124         New module 'u32-grapheme-next'.
14125         * modules/unigbrk/u32-grapheme-next: New file.
14126         * modules/unigbrk/u32-grapheme-next-tests: New file.
14127         * lib/unigbrk.in.h: Add prototype for new function.
14128         * lib/unigbrk/u32-grapheme-next.c: New file.
14129         * tests/unigbrk/test-u32-grapheme-next.c: New file.
14130
14131         New module 'u8-grapheme-prev'.
14132         * modules/unigbrk/u8-grapheme-prev: New file.
14133         * modules/unigbrk/u8-grapheme-prev-tests: New file.
14134         * lib/unigbrk.in.h: Add prototype for new function.
14135         * lib/unigbrk/u8-grapheme-prev.c: New file.
14136         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
14137
14138         New module 'u16-grapheme-prev'.
14139         * modules/unigbrk/u16-grapheme-prev: New file.
14140         * modules/unigbrk/u16-grapheme-prev-tests: New file.
14141         * lib/unigbrk.in.h: Add prototype for new function.
14142         * lib/unigbrk/u16-grapheme-prev.c: New file.
14143         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
14144
14145         New module 'u32-grapheme-prev'.
14146         * modules/unigbrk/u32-grapheme-prev: New file.
14147         * modules/unigbrk/u32-grapheme-prev-tests: New file.
14148         * lib/unigbrk.in.h: Add prototype for new function.
14149         * lib/unigbrk/u32-grapheme-prev.c: New file.
14150         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
14151
14152         New module 'u8-grapheme-breaks'.
14153         * modules/unigbrk/u8-grapheme-breaks: New file.
14154         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
14155         * lib/unigbrk.in.h: Add prototype for new function.
14156         * lib/unigbrk/u8-grapheme-breaks.c: New file.
14157         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
14158
14159         New module 'u16-grapheme-breaks'.
14160         * modules/unigbrk/u16-grapheme-breaks: New file.
14161         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
14162         * lib/unigbrk.in.h: Add prototype for new function.
14163         * lib/unigbrk/u16-grapheme-breaks.c: New file.
14164         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
14165
14166         New module 'u32-grapheme-breaks'.
14167         * modules/unigbrk/u32-grapheme-breaks: New file.
14168         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
14169         * lib/unigbrk.in.h: Add prototype for new function.
14170         * lib/unigbrk/u32-grapheme-breaks.c: New file.
14171         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
14172
14173         New module 'ulc-grapheme-breaks'.
14174         * modules/unigbrk/ulc-grapheme-breaks: New file.
14175         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
14176         * m4/locale-ar.m4: New file.
14177         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
14178         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
14179         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
14180
14181 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14182
14183         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
14184         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
14185         modified how this file was generated before I initially submitted
14186         the module, but failed to regenerate it.  This meant that several
14187         of the level2 entries were wrong.
14188         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
14189         Remove the division-by-2 that is folded into the table now that
14190         gbrkprop.h has been regenerated properly.  Now -1 entries are
14191         handled correctly.
14192
14193         New module 'unigbrk/uc-gbrk-prop-tests'.
14194         * modules/unigbrk/uc-gbrk-prop-tests: New file.
14195         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
14196         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
14197         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
14198
14199 2011-01-01  Bruno Haible  <bruno@clisp.org>
14200
14201         Avoid use of hexadecimal escapes.
14202         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
14203         instead of hexadecimal escapes.
14204
14205 2011-01-01  Jim Meyering  <meyering@redhat.com>
14206
14207         maint: new rule to update copyright year ranges
14208         * Makefile (update-copyright): New rule.
14209
14210         maint: indent with TABs in Makefile
14211         * Makefile: Expand leading sequences of spaces to TABs
14212
14213         version-etc: update the copyright year it reports
14214         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
14215
14216 2010-12-31  Bruno Haible  <bruno@clisp.org>
14217
14218         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
14219         * lib/isfinite.c (zerof, zerod, zerol): New variables.
14220         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
14221         zero.
14222
14223 2010-12-31  Bruno Haible  <bruno@clisp.org>
14224
14225         pwrite: Work around HP-UX 11.11 bug.
14226         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
14227         works and set REPLACE_PWRITE if not.
14228         * lib/pwrite.c (pwrite): Add an implementation that uses the system
14229         function.
14230         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
14231
14232 2010-12-31  Bruno Haible  <bruno@clisp.org>
14233
14234         pread: Work around HP-UX 11 bugs.
14235         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
14236         and set REPLACE_PREAD if not.
14237         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
14238
14239 2010-12-31  Eric Blake  <eblake@redhat.com>
14240
14241         nl_langinfo: fix YESEXPR on Irix 6.5
14242         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
14243         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
14244         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
14245         it.
14246
14247 2010-12-31  Bruno Haible  <bruno@clisp.org>
14248
14249         iconv: Document HP-UX 11 bug.
14250         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
14251
14252 2010-12-31  Bruno Haible  <bruno@clisp.org>
14253
14254         ldexpl: Fix link error on HP-UX 11.
14255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
14256         LDEXPL_LIBM, using $ISNANL_LIBM.
14257
14258 2010-12-31  Eric Blake  <eblake@redhat.com>
14259
14260         ftello: avoid compilation failure with SunStudio c89
14261         * lib/ftello.c (ftello): Use lseek, not llseek.
14262
14263         tests: avoid failing coreutils tests on cygwin
14264         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
14265         (create_exe_shims_): Return 0 when skipping.
14266
14267 2010-12-31  Bruno Haible  <bruno@clisp.org>
14268
14269         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
14270         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
14271
14272 2010-12-31  Bruno Haible  <bruno@clisp.org>
14273
14274         waitpid: Fix link error in C++ mode.
14275         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
14276
14277 2010-12-31  Bruno Haible  <bruno@clisp.org>
14278
14279         isnan: Use GCC built-ins when possible.
14280         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
14281         __builtin_isnan.
14282         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
14283         (isnan): Define using GCC built-ins for GCC >= 4.0.
14284
14285 2010-12-31  Bruno Haible  <bruno@clisp.org>
14286
14287         isnand: Fix mistake.
14288         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
14289         __builtin_isnand.
14290
14291 2010-12-31  Bruno Haible  <bruno@clisp.org>
14292
14293         open: Avoid C++ error on HP-UX 11.
14294         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
14295
14296 2010-12-31  Bruno Haible  <bruno@clisp.org>
14297
14298         time_r: Add missing declarations on HP-UX 11.
14299         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
14300         instead of HAVE_LOCALTIME_R.
14301         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
14302         HAVE_LOCALTIME_R always.
14303         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
14304         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
14305         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
14306         HAVE_LOCALTIME_R.
14307         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
14308         * doc/posix-functions/localtime_r.texi: Likewise.
14309
14310 2010-12-29  Eric Blake  <eblake@redhat.com>
14311
14312         mountlist: tweak previous commit
14313         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
14314         Reported by Paul Eggert.
14315
14316         mountlist: fix local drive detection on cygwin
14317         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
14318         that works for cygwin.
14319
14320 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14321
14322         ftoastr, snprintf: ftoastr + snprintf module
14323         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
14324         since the snprintf module now should be good enough here.
14325         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
14326         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
14327         and gl_MODULE_INDICATOR([snprintf]), but the former enables
14328         GNULIB_SNPRINTF only for the test directory, and the latter
14329         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
14330         seems to suffice by itself.
14331
14332 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14333
14334         alloca: one step towards thread-safety
14335         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
14336         need for a static variable.  All callers changed.  This does not
14337         make the alloca replacement thread-safe, but it's one step.
14338
14339         tests: minor indenting change
14340         * tests/init.sh: Sync from coreutils housekeeping patch
14341         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
14342         to keep lines within 80 columns.
14343
14344 2010-12-28  Jim Meyering  <meyering@redhat.com>
14345
14346         regex: don't infloop on persistent failing calloc
14347         * lib/regexec.c (build_trtable): Return failure indication upon
14348         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14349         In glibc, this was fixed for version 2.13:
14350         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
14351
14352 2010-12-28  Bruno Haible  <bruno@clisp.org>
14353             Paul Eggert <eggert@cs.ucla.edu>
14354
14355         linkat: Make implementation robust against system behaviour variations.
14356         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
14357         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
14358         way, and to -2 if it needs a generic runtime test.
14359         * lib/linkat.c (solaris_optimized_link_immediate,
14360         solaris_optimized_link_follow): New functions.
14361         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
14362         (check_same_link): Use it.
14363
14364 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
14365
14366         New module 'unigbrk/base'.
14367         * modules/unigbrk/base: New file.
14368         * lib/unigbrk.in.h: New file.
14369
14370         New module 'unigbrk/uc-gbrk-prop'.
14371         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
14372         * modules/unigbrk/uc-gbrk-prop: New file.
14373         * lib/unigbrk/gbrkprop.h: New file.
14374         * lib/unigbrk/uc-gbrk-prop.c: New file.
14375
14376         New module 'unigbrk/uc-is-grapheme-break'.
14377         * modules/unigbrk/uc-is-grapheme-break: New file.
14378         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
14379         * lib/unigbrk/uc-is-grapheme-break.c: New file.
14380         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
14381         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
14382         * tests/unigbrk/GraphemeBreakTest.txt: New file.
14383
14384         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
14385
14386 2010-12-27  Bruno Haible  <bruno@clisp.org>
14387
14388         linkat test: Avoid failure on Solaris 11 2010-11.
14389         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
14390
14391 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14392
14393         utimens: work around glibc rounding bug on more platforms
14394         * lib/utimens.c (fdutimens): Work around rounding bug even if
14395         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
14396         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
14397
14398 2010-12-27  Bruno Haible  <bruno@clisp.org>
14399
14400         select tests: Improve comments.
14401         * tests/test-select.c (do_select): Add comments.
14402
14403 2010-12-27  Bruno Haible  <bruno@clisp.org>
14404
14405         select tests: Safer way of handling timeout.
14406         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
14407         at every invocation.
14408
14409 2010-12-27  Bruno Haible  <bruno@clisp.org>
14410
14411         select tests: Use 'bool' where appropriate.
14412         * tests/test-select.c (connect_to_socket): Change argument type to
14413         'bool'.
14414
14415 2010-12-27  Bruno Haible  <bruno@clisp.org>
14416
14417         select tests: Use existing modules.
14418         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
14419         (configure.ac): Don't test for unistd.h.
14420         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
14421         declared in <unistd.h>.
14422
14423 2010-12-27  Bruno Haible  <bruno@clisp.org>
14424
14425         mbrtowc: Work around a Solaris 7 bug.
14426         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
14427         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
14428         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
14429         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
14430         MBRTOWC_NULL_ARG1_BUG.
14431         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
14432         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
14433         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
14434         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
14435
14436 2010-12-27  Jim Meyering  <meyering@redhat.com>
14437
14438         read-file.c: tweak syntax
14439         * lib/read-file.c (fread_file): Remove space after "*" in function
14440         definitions.
14441
14442 2010-12-27  Bruno Haible  <bruno@clisp.org>
14443
14444         times test: Avoid gcc warnings on OSF/1.
14445         * tests/test-times.c (main): Cast printf arguments from clock_t to
14446         'long int'.
14447
14448 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14449
14450         utimens: work around glibc rounding bug on older Linux kernels
14451         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
14452         on Linux with a glibc whose utimes might not work, then work
14453         around a longstanding glibc bug involving rounding rather than
14454         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
14455         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14456
14457 2010-12-26  Bruno Haible  <bruno@clisp.org>
14458
14459         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
14460         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
14461         _GL_CXXALIAS_SYS.
14462         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14463
14464 2010-12-26  Bruno Haible  <bruno@clisp.org>
14465
14466         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
14467         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
14468         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14469         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
14470         looking for the declaration.
14471         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14472         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
14473         problem.
14474         * doc/posix-functions/inet_pton.texi: Likewise.
14475
14476 2010-12-26  Bruno Haible  <bruno@clisp.org>
14477
14478         arpa_inet: Use the common idioms with C++ support.
14479         * lib/arpa_inet.in.h: Include c++defs.h.
14480         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
14481         support.
14482         * modules/arpa_inet (Depends-on): Add c++defs.
14483         (Makefile.am): Substitute the contents of c++defs.h.
14484         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
14485         * modules/arpa_inet-c++-tests: New file.
14486         * tests/test-arpa_inet-c++.cc: New file.
14487
14488 2010-12-25  Bruno Haible  <bruno@clisp.org>
14489
14490         Fix more C++ link errors on Solaris 8.
14491         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
14492         $(LIB_EACCESS).
14493         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
14494         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
14495         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
14496         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
14497         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
14498
14499 2010-12-25  Bruno Haible  <bruno@clisp.org>
14500
14501         printf-posix: Fix link error when a non-GCC compiler is used.
14502         * lib/stdio.in.h (printf): When not using GCC, override printf
14503         correctly.
14504         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14505
14506 2010-12-25  Bruno Haible  <bruno@clisp.org>
14507
14508         strerror_r-posix: Update doc.
14509         * doc/posix-functions/strerror_r.texi: Update doc about the return
14510         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
14511
14512 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14513
14514         utimens: simplify the logic of the previous change
14515         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
14516         This should not affect whether the test succeeds or fails.
14517
14518         utimens: configure better on hosts with NFS clock skew
14519         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
14520         uses the clock of the local host.  It might use the clock of the
14521         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
14522         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14523
14524 2010-12-25  Bruno Haible  <bruno@clisp.org>
14525
14526         ptsname test: Avoid failure on Solaris.
14527         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
14528         open a pseudo-terminal; don't use BSD-style ptys.
14529         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
14530
14531 2010-12-25  Bruno Haible  <bruno@clisp.org>
14532
14533         ptsname: Avoid ERANGE failure on some systems.
14534         * lib/ptsname.c (buffer): Increase size.
14535
14536 2010-12-25  Bruno Haible  <bruno@clisp.org>
14537
14538         rename, renameat: Avoid test failures at NFS mounted locations.
14539         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
14540         so that subsequent mkdir calls succeed.
14541
14542 2010-12-25  Bruno Haible  <bruno@clisp.org>
14543
14544         iswblank: Fix C++ link error on Solaris 8.
14545         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
14546         _GL_FUNCDECL_SYS.
14547
14548 2010-12-25  Bruno Haible  <bruno@clisp.org>
14549
14550         unistd: Fix C++ link error on Solaris 8.
14551         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
14552
14553 2010-12-25  Bruno Haible  <bruno@clisp.org>
14554
14555         readlink doc: Mention an old glibc bug.
14556         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
14557
14558 2010-12-25  Bruno Haible  <bruno@clisp.org>
14559
14560         fcntl-h: Fix for use of C++ on glibc systems.
14561         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14562         also on glibc systems in C++ mode.
14563         Reported by Gary V. Vaughan <gary@gnu.org>.
14564
14565 2010-12-25  Bruno Haible  <bruno@clisp.org>
14566
14567         roundl-ieee: Make it work on OSF/1 5.1 with cc.
14568         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
14569
14570 2010-12-25  Bruno Haible  <bruno@clisp.org>
14571
14572         truncl-ieee: Make it work on OSF/1 5.1 with cc.
14573         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
14574         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
14575         test whether truncl works according to ISO C 99 with IEC 60559.
14576         * m4/truncl-ieee.m4: New file.
14577         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
14578         m4/signbit.m4.
14579         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
14580
14581 2010-12-25  Bruno Haible  <bruno@clisp.org>
14582
14583         ceill-ieee: Make it work on OSF/1 5.1 with cc.
14584         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
14585         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
14586         test whether ceill works according to ISO C 99 with IEC 60559.
14587         * m4/ceill-ieee.m4: New file.
14588         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
14589         m4/signbit.m4.
14590         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
14591
14592 2010-12-25  Bruno Haible  <bruno@clisp.org>
14593
14594         Ensure all prerequisites of <wchar.h> are included.
14595         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
14596         before <wchar.h>.
14597         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14598         gl_MBRLEN_NUL_RETVAL): Likewise.
14599         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14600         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
14601         AC_FUNC_MBRTOWC): Likewise.
14602         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14603         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14604         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14605         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14606         Likewise.
14607         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14608         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
14609         (gl_WCHAR_H): Improve comments.
14610         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14611
14612 2010-12-25  Bruno Haible  <bruno@clisp.org>
14613
14614         strtok_r: Fix C syntax error in autoconf macro.
14615         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
14616         characters in test program.
14617
14618 2010-12-24  Bruno Haible  <bruno@clisp.org>
14619
14620         ceil, trunc, round: Fix gcc warnings.
14621         * lib/ceil.c (MIN): Undefine before redefining.
14622         * lib/trunc.c (MIN): Likewise.
14623         * lib/round.c (MIN): Likewise.
14624         Include <math.h> first.
14625
14626 2010-12-24  Bruno Haible  <bruno@clisp.org>
14627
14628         select tests: Avoid failures on OSF/1 5.1.
14629         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
14630         failure of closing the last socket; it may fail with ECONNRESET.
14631
14632 2010-12-24  Eric Blake  <eblake@redhat.com>
14633
14634         stdint: avoid HP-UX 10.20 preprocessor bug
14635         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
14636         than #if.
14637         * tests/test-floor2.c (main): Likewise.
14638         Reported by Peter O'Gorman.
14639
14640         pipe: make obsoletion transition easier
14641         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
14642         * modules/pipe (Files): Include revived file.
14643         (Include): Drop reference, to mirror getdate's behavior.
14644
14645 2010-12-24  Bruno Haible  <bruno@clisp.org>
14646
14647         sys_socket: Hide mismatch of declarations on NonStop Kernel.
14648         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
14649         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
14650         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14651
14652 2010-12-24  Bruno Haible  <bruno@clisp.org>
14653
14654         gethostname: Ensure declaration on NonStop Kernel.
14655         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
14656         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14657
14658 2010-12-24  Bruno Haible  <bruno@clisp.org>
14659
14660         sys_select: Ensure all necessary types on NonStop Kernel.
14661         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
14662         include <sys/time.h>.
14663         * doc/posix-headers/sys_select.texi: Mention that it's missing on
14664         NonStop Kernel.
14665         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14666
14667 2010-12-24  Bruno Haible  <bruno@clisp.org>
14668
14669         sys_select: Remove unneeded include.
14670         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14671         have <sys/select.h>.
14672
14673 2010-12-24  Bruno Haible  <bruno@clisp.org>
14674
14675         gethostname: Provide a fallback for HOST_NAME_MAX.
14676         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14677         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14678         instead.
14679         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14680
14681 2010-12-24  Bruno Haible  <bruno@clisp.org>
14682
14683         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14684         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14685         (SA_RESTART): Likewise.
14686         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14687
14688 2010-12-24  Bruno Haible  <bruno@clisp.org>
14689
14690         signal: Define NSIG.
14691         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14692         * tests/test-signal.c (nsig): New variable.
14693         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14694
14695 2010-12-24  Bruno Haible  <bruno@clisp.org>
14696
14697         rename, renameat: Avoid test failures on OSF/1 5.1.
14698         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14699         alternative error codes.
14700         * tests/test-renameat.c (main): Likewise.
14701
14702 2010-12-24  Bruno Haible  <bruno@clisp.org>
14703
14704         *printf: Detect large precisions bug on Solaris 10/SPARC.
14705         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14706         by Paul Eggert.
14707         * tests/test-snprintf-posix.h (test_function): Add this test code here
14708         too.
14709         * tests/test-sprintf-posix.h (test_function): Likewise.
14710         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14711         * tests/test-vasprintf-posix.c (test_function): Likewise.
14712         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14713         around by gnulib.
14714         * doc/posix-functions/printf.texi: Likewise.
14715         * doc/posix-functions/snprintf.texi: Likewise.
14716         * doc/posix-functions/sprintf.texi: Likewise.
14717         * doc/posix-functions/vfprintf.texi: Likewise.
14718         * doc/posix-functions/vprintf.texi: Likewise.
14719         * doc/posix-functions/vsnprintf.texi: Likewise.
14720         * doc/posix-functions/vsprintf.texi: Likewise.
14721         * doc/posix-functions/dprintf.texi: Undo last commit.
14722         * doc/posix-functions/vdprintf.texi: Likewise.
14723
14724 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14725
14726         tests: port test-fdutimensat.c to Solaris 8
14727         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14728         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14729         On Solaris 8, it fails with errno == ENOSYS, because there is no
14730         futimens (so it can't use the fd), and there is no lutimens (so it
14731         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14732
14733         vsnprintf: make more consistent with snprintf; doc fixes
14734
14735         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14736         the byte count return problem was promoted from the snprintf-posix
14737         to the snprintf module.
14738         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14739         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14740         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14741         * tests/test-snprintf.c (main): Check the byte count returned.
14742         * tests/test-vsnprintf.c (main): Likewise.
14743
14744 2010-12-23  Eric Blake  <eblake@redhat.com>
14745
14746         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14747         * modules/sigpipe (License): Relax license.
14748
14749 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14750
14751         doc: document Solaris printf bug with large float precisions
14752         * doc/posix-functions/dprintf.texi (dprintf):
14753         * doc/posix-functions/fprintf.texi (fprintf):
14754         * doc/posix-functions/printf.texi (printf):
14755         * doc/posix-functions/snprintf.texi (snprintf):
14756         * doc/posix-functions/sprintf.texi (sprintf):
14757         * doc/posix-functions/vdprintf.texi (vdprintf):
14758         * doc/posix-functions/vfprintf.texi (vfprintf):
14759         * doc/posix-functions/vprintf.texi (vprintf):
14760         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14761         * doc/posix-functions/vsprintf.texi (vsprintf):
14762         Mention that these functions mishandle large floating point
14763         precisions on Solaris 10.  The same bug is also present in Solaris
14764         8, and I assume earlier.  This causes "cd gnulib-tests; make
14765         check" to fail on Solaris 8 (and I assume, later) when building
14766         the latest coreutils, in test-vasprintf-posix's call to
14767         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14768         the wide flavors (e.g., wprintf) so this patch just updates the
14769         documentation for the narrow ones.
14770
14771         test-posixtm.c: add two tests
14772         * tests/test-posixtm.c: Add two tests, to highlight the
14773         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14774         around this bug; this is merely to document it.
14775
14776 2010-12-22  Bruno Haible  <bruno@clisp.org>
14777
14778         getlogin_r: Work around portability problem on OSF/1.
14779         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14780         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14781         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14782         test for a truncated result.
14783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14784         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14785         * modules/getlogin_r (Depends-on): Add memchr.
14786         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14787
14788 2010-12-22  Bruno Haible  <bruno@clisp.org>
14789
14790         ptsname: Avoid test failure on OSF/1 5.1.
14791         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14792         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14793         (same_slave): New function.
14794         (main): Use it to compare ptsname's result with the expected file name.
14795
14796 2010-12-22  Bruno Haible  <bruno@clisp.org>
14797
14798         Port extended stdio modules to HP NonStop Kernel.
14799         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14800         macros.
14801         * lib/fbufmode.c: Update comments.
14802         * lib/fflush.c: Likewise.
14803         * lib/fpurge.c: Likewise.
14804         * lib/freadable.c: Likewise.
14805         * lib/freadahead.c: Likewise.
14806         * lib/freading.c: Likewise.
14807         * lib/freadptr.c: Likewise.
14808         * lib/freadseek.c: Likewise.
14809         * lib/fseeko.c: Likewise.
14810         * lib/fseterr.c: Likewise.
14811         * lib/fwritable.c: Likewise.
14812         * lib/fwriting.c: Likewise.
14813         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14814
14815 2010-12-22  Bruno Haible  <bruno@clisp.org>
14816
14817         ttyname_r: Work around bug on OSF/1 5.1.
14818         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14819         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14820         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14821         present.
14822         * lib/ttyname_r.c (ttyname_r): Update comments.
14823
14824 2010-12-22  Bruno Haible  <bruno@clisp.org>
14825
14826         round: Implement result sign according to IEEE 754.
14827         * lib/round.c (MIN, MINUS_ZERO): New macros.
14828         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14829         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14830         * tests/test-round-ieee.c (main): Likewise.
14831         * tests/test-roundl-ieee.c (main): Likewise.
14832
14833         trunc: Implement result sign according to IEEE 754.
14834         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14835         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14836         * tests/test-trunc2.c: Include minus-zero.h.
14837         (MINUS_ZERO): New macro.
14838         (trunc_reference): Keep in sync with lib/trunc.c.
14839         * tests/test-truncf2.c: Include minus-zero.h.
14840         (MINUS_ZERO): New macro.
14841         (truncf_reference): Keep in sync with lib/trunc.c.
14842         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14843         * tests/test-trunc-ieee.c (main): Likewise.
14844         * tests/test-truncl-ieee.c (main): Likewise.
14845
14846         ceil: Implement result sign according to IEEE 754.
14847         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14848         (FUNC): Return -0.0 for -1 < x < 0.
14849         * tests/test-ceil2.c: Include minus-zero.h.
14850         (MINUS_ZERO): New macro.
14851         (ceil_reference): Keep in sync with lib/ceil.c.
14852         * tests/test-ceilf2.c: Include minus-zero.h.
14853         (MINUS_ZERO): New macro.
14854         (ceilf_reference): Keep in sync with lib/ceil.c.
14855         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14856         * tests/test-ceil-ieee.c (main): Likewise.
14857         * tests/test-ceill-ieee.c (main): Likewise.
14858
14859         floor: Implement result sign according to IEEE 754.
14860         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14861         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14862         * tests/test-floorf2.c (floorf_reference): Likewise.
14863         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14864         * tests/test-floor-ieee.c (main): Likewise.
14865         * tests/test-floorl-ieee.c (main): Likewise.
14866
14867 2010-12-22  Bruno Haible  <bruno@clisp.org>
14868
14869         getaddrinfo: Update doc.
14870         * doc/posix-functions/gai_strerror.texi: Return type is also different
14871         on AIX and HP-UX.
14872
14873 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14874
14875         getaddrinfo, inet_ntop: Update doc for Solaris.
14876         * doc/posix-functions/gai_strerror.texi: Return type is also an
14877         issue on Solaris 9 and earlier.
14878         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14879         on Solaris 10 and earlier.
14880
14881 2010-12-21  Bruno Haible  <bruno@clisp.org>
14882
14883         New module 'roundl-ieee'.
14884         * modules/roundl-ieee: New file.
14885         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14886         test whether roundl works according to ISO C 99 with IEC 60559.
14887         * m4/roundl-ieee.m4: New file.
14888         * modules/roundl-ieee-tests: New file.
14889         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14890         * tests/test-roundl.c (main): Remove signbit tests.
14891         * modules/roundl-tests (Depends-on): Remove signbit.
14892         * doc/posix-functions/roundl.texi: Mention the new module.
14893
14894 2010-12-21  Bruno Haible  <bruno@clisp.org>
14895
14896         New module 'truncl-ieee'.
14897         * modules/truncl-ieee: New file.
14898         * modules/truncl-ieee-tests: New file.
14899         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14900         * tests/test-truncl.c (main): Remove signbit tests.
14901         * modules/truncl-tests (Depends-on): Remove signbit.
14902         * doc/posix-functions/truncl.texi: Mention the new module.
14903
14904 2010-12-21  Bruno Haible  <bruno@clisp.org>
14905
14906         New module 'ceill-ieee'.
14907         * modules/ceill-ieee: New file.
14908         * modules/ceill-ieee-tests: New file.
14909         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14910         * tests/test-ceill.c (main): Remove signbit tests.
14911         * modules/ceill-tests (Depends-on): Remove signbit.
14912         * doc/posix-functions/ceill.texi: Mention the new module.
14913
14914 2010-12-21  Bruno Haible  <bruno@clisp.org>
14915
14916         New module 'floorl-ieee'.
14917         * modules/floorl-ieee: New file.
14918         * modules/floorl-ieee-tests: New file.
14919         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14920         * tests/test-floorl.c (main): Remove signbit tests.
14921         * modules/floorl-tests (Depends-on): Remove signbit.
14922         * doc/posix-functions/floorl.texi: Mention the new module.
14923
14924 2010-12-21  Bruno Haible  <bruno@clisp.org>
14925
14926         New module 'round-ieee'.
14927         * modules/round-ieee: New file.
14928         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14929         whether round works according to ISO C 99 with IEC 60559.
14930         * m4/round-ieee.m4: New file.
14931         * modules/round-ieee-tests: New file.
14932         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14933         * tests/test-round1.c (main): Remove signbit tests.
14934         * modules/round-tests (Depends-on): Remove 'signbit'.
14935         * doc/posix-functions/round.texi: Mention the new module.
14936
14937 2010-12-21  Bruno Haible  <bruno@clisp.org>
14938
14939         New module 'trunc-ieee'.
14940         * modules/trunc-ieee: New file.
14941         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14942         whether trunc works according to ISO C 99 with IEC 60559.
14943         * m4/trunc-ieee.m4: New file.
14944         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14946         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14947         * modules/trunc-ieee-tests: New file.
14948         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14949         * tests/test-trunc1.c (main): Remove signbit tests.
14950         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14951         * doc/posix-functions/trunc.texi: Mention the new module.
14952
14953 2010-12-21  Bruno Haible  <bruno@clisp.org>
14954
14955         New module 'ceil-ieee'.
14956         * modules/ceil-ieee: New file.
14957         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14958         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14959         ISO C 99 with IEC 60559.
14960         * m4/ceil-ieee.m4: New file.
14961         * modules/ceil (Files): Add lib/ceil.c.
14962         (Depends-on): Add 'float'.
14963         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14964         * lib/math.in.h (ceil): New declaration.
14965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14966         REPLACE_CEIL.
14967         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14968         * modules/ceil-ieee-tests: New file.
14969         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14970         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14971         * doc/posix-functions/ceil.texi: Mention the new module.
14972
14973 2010-12-21  Bruno Haible  <bruno@clisp.org>
14974
14975         New module 'floor-ieee'.
14976         * modules/floor-ieee: New file.
14977         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14978         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14979         ISO C 99 with IEC 60559.
14980         * m4/floor-ieee.m4: New file.
14981         * modules/floor (Files): Add lib/floor.c.
14982         (Depends-on): Add 'float'.
14983         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14984         * lib/math.in.h (floor): New declaration.
14985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14986         REPLACE_FLOOR.
14987         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14988         * modules/floor-ieee-tests: New file.
14989         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14990         * tests/test-math-c++.cc: Check the signature of 'floor'.
14991         * doc/posix-functions/floor.texi: Mention the new module.
14992
14993 2010-12-21  Bruno Haible  <bruno@clisp.org>
14994
14995         New module 'roundf-ieee'.
14996         * modules/roundf-ieee: New file.
14997         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14998         test whether roundf works according to ISO C 99 with IEC 60559.
14999         * m4/roundf-ieee.m4: New file.
15000         * modules/roundf-ieee-tests: New file.
15001         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
15002         * tests/test-roundf1.c (main): Remove signbit tests.
15003         * modules/roundf-tests (Depends-on): Remove 'signbit'.
15004         * doc/posix-functions/roundf.texi: Mention the new module.
15005
15006 2010-12-21  Bruno Haible  <bruno@clisp.org>
15007
15008         New module 'truncf-ieee'.
15009         * modules/truncf-ieee: New file.
15010         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
15011         test whether truncf works according to ISO C 99 with IEC 60559.
15012         * m4/truncf-ieee.m4: New file.
15013         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
15014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
15015         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
15016         * modules/truncf-ieee-tests: New file.
15017         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
15018         * tests/test-truncf1.c (main): Remove signbit tests.
15019         * modules/truncf-tests (Depends-on): Remove 'signbit'.
15020         * doc/posix-functions/truncf.texi: Mention the new module.
15021
15022 2010-12-21  Bruno Haible  <bruno@clisp.org>
15023
15024         New module 'ceilf-ieee'.
15025         * modules/ceilf-ieee: New file.
15026         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
15027         test whether ceilf works according to ISO C 99 with IEC 60559.
15028         * m4/ceilf-ieee.m4: New file.
15029         * modules/ceilf-ieee-tests: New file.
15030         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
15031         * tests/test-ceilf1.c (main): Remove signbit tests.
15032         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
15033         * doc/posix-functions/ceilf.texi: Mention the new module.
15034
15035 2010-12-21  Bruno Haible  <bruno@clisp.org>
15036
15037         New module 'floorf-ieee'.
15038         * modules/floorf-ieee: New file.
15039         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
15040         test whether floorf works according to ISO C 99 with IEC 60559.
15041         * m4/floorf-ieee.m4: New file.
15042         * modules/floorf-ieee-tests: New file.
15043         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
15044         * tests/test-floorf1.c (main): Remove signbit tests.
15045         * modules/floorf-tests (Depends-on): Remove 'signbit'.
15046         * doc/posix-functions/floorf.texi: Mention the new module.
15047
15048 2010-12-21  Bruno Haible  <bruno@clisp.org>
15049
15050         Support for minus zero in autoconf macros.
15051         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
15052         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
15053         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
15054         * tests/minus-zero.h: Update comments.
15055
15056 2010-12-21  Bruno Haible  <bruno@clisp.org>
15057
15058         Tests for module 'ceil'.
15059         * modules/ceil-tests: New file.
15060         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
15061         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
15062
15063 2010-12-21  Bruno Haible  <bruno@clisp.org>
15064
15065         Tests for module 'floor'.
15066         * modules/floor-tests: New file.
15067         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
15068         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
15069
15070 2010-12-21  Bruno Haible  <bruno@clisp.org>
15071
15072         math: Fix indentation.
15073         * lib/math.in.h (floorf): Fix indentation.
15074
15075 2010-12-21  Bruno Haible  <bruno@clisp.org>
15076
15077         Fix cross-compilation guesses on Solaris.
15078         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
15079         not match "solaris2.10".
15080         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15081         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
15082         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15083
15084 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15085
15086         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
15087         This fixes a problem observed with the latest coreutils snapshot
15088         that caused a test to fail on Solaris 8.  src/csplit.c's call
15089         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
15090         earlier, instead of returning the number of bytes that would have
15091         been generated; this causes csplit to incorrectly report memory
15092         exhaustion.
15093         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
15094         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
15095         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
15096         comments to match.
15097         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
15098         Fix typo in matching older versions of Solaris: "solaris2.10"
15099         is matched by the shell pattern "solaris2.[0-9]*".  This matters
15100         only for guessing while cross-compiling.
15101         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
15102
15103 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15104
15105         ftoastr: fix comment again
15106         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15107         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
15108         Also, simplify example a bit by using flags = 0.
15109
15110 2010-12-20  Bruno Haible  <bruno@clisp.org>
15111
15112         round*, trunc*: Update documentation regarding glibc.
15113         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
15114         * doc/posix-functions/round.texi: Likewise.
15115         * doc/posix-functions/roundl.texi: Likewise.
15116         * doc/posix-functions/truncf.texi: Likewise.
15117         * doc/posix-functions/trunc.texi: Likewise.
15118         * doc/posix-functions/truncl.texi: Likewise.
15119
15120 2010-12-20  Bruno Haible  <bruno@clisp.org>
15121
15122         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
15123         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
15124         * doc/posix-functions/round.texi: Likewise.
15125         * doc/posix-functions/roundl.texi: Likewise.
15126
15127 2010-12-20  Bruno Haible  <bruno@clisp.org>
15128
15129         ttyname_r: Add missing declaration on HP-UX 11.
15130         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
15131         HAVE_TTYNAME_R.
15132         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
15133         declared. Set HAVE_TTYNAME_R always.
15134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15135         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
15136         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
15137         HAVE_TTYNAME_R.
15138         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
15139
15140 2010-12-20  Bruno Haible  <bruno@clisp.org>
15141
15142         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
15143         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
15144         * doc/posix-functions/getlogin_r.texi: Likewise.
15145         * tests/test-getlogin.c: Include <errno.h>.
15146         (main): Avoid test failure on HP-UX 11.11.
15147         * tests/test-getlogin_r.c (main): Likewise.
15148
15149 2010-12-20  Bruno Haible  <bruno@clisp.org>
15150
15151         getlogin_r: Add missing declaration on HP-UX 11.
15152         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
15153         declared also when it exists as a function.
15154         * doc/posix-functions/getlogin_r.texi: Document this workaround.
15155
15156 2010-12-20  Bruno Haible  <bruno@clisp.org>
15157
15158         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
15159         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
15160         through wcrtomb.
15161
15162 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15163
15164         ftoastr: fix comment
15165         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15166         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
15167
15168 2010-12-19  Bruno Haible  <bruno@clisp.org>
15169
15170         isnan: Ensure it is a macro.
15171         * lib/math.in.h (isnan): Define as a macro if not already a macro.
15172         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
15173         Solaris.
15174
15175 2010-12-19  Bruno Haible  <bruno@clisp.org>
15176
15177         ldexpl test: Fix link error on OSF/1 5.1.
15178         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
15179
15180 2010-12-19  Bruno Haible  <bruno@clisp.org>
15181
15182         wctype: Make it work in C++ mode on OSF/1 5.1.
15183         * lib/wctype.in.h (iswblank): Declare but not define here.
15184         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
15185         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
15186         * modules/wctype (Files): Add lib/iswblank.c.
15187
15188 2010-12-19  Bruno Haible  <bruno@clisp.org>
15189
15190         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
15191         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
15192         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
15193
15194 2010-12-19  Bruno Haible  <bruno@clisp.org>
15195
15196         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
15197         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
15198         _POSIX_PII_SOCKET.
15199         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
15200         * doc/posix-functions/recvfrom.texi: Likewise.
15201         * doc/posix-functions/send.texi: Likewise.
15202         * doc/posix-functions/sendto.texi: Likewise.
15203
15204 2010-12-19  Bruno Haible  <bruno@clisp.org>
15205
15206         tcgetsid: Add missing declaration on OSF/1 5.1.
15207         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
15208         HAVE_TCGETSID.
15209         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
15210         Don't set HAVE_TCGETSID.
15211         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
15212         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
15213         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
15214         HAVE_TCGETSID.
15215         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
15216
15217 2010-12-19  Bruno Haible  <bruno@clisp.org>
15218
15219         stdio: Fix problem with popen() declaration on OSF/1 5.1.
15220         * lib/stdio.in.h: During the include_next statement, let recursive
15221         includes of this file include only the system header file.
15222
15223 2010-12-19  Bruno Haible  <bruno@clisp.org>
15224
15225         iconv_open: Fix regression from 2010-12-04.
15226         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
15227         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
15228
15229 2010-12-19  Bruno Haible  <bruno@clisp.org>
15230
15231         stdbool test: Avoid a gcc warning.
15232         * tests/test-stdbool.c (main): Fail if e1 is false.
15233         Reported by Jim Meyering.
15234
15235 2010-12-19  Jim Meyering  <meyering@redhat.com>
15236
15237         setenv: restore to working order
15238         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
15239         mistakenly removed.
15240         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
15241         HAVE_SETENV.
15242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
15243         HAVE_SETENV.
15244
15245 2010-12-19  Bruno Haible  <bruno@clisp.org>
15246
15247         Document some different function declarations on OSF/1 5.1.
15248         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
15249         * doc/posix-functions/inet_ntop.texi: Likewise.
15250         * doc/posix-functions/gethostname.texi: Likewise.
15251         * lib/unistd.in.h (gethostname): Update comment.
15252
15253 2010-12-19  Bruno Haible  <bruno@clisp.org>
15254
15255         doc: Mention vasprintf-posix module.
15256         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
15257         the 'vasprintf-posix' module.
15258         * doc/glibc-functions/vasprintf.texi: Likewise.
15259
15260 2010-12-19  Bruno Haible  <bruno@clisp.org>
15261
15262         unsetenv: Add missing declaration on OSF/1 5.1.
15263         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
15264         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
15265         Don't set HAVE_UNSETENV. In the test program, set _BSD.
15266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
15267         not HAVE_UNSETENV.
15268         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
15269         HAVE_UNSETENV.
15270         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
15271
15272 2010-12-19  Bruno Haible  <bruno@clisp.org>
15273
15274         setenv: Add missing declaration on OSF/1 5.1.
15275         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
15276         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
15277         declared. Don't set HAVE_SETENV.
15278         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
15279         not HAVE_SETENV.
15280         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
15281         HAVE_SETENV.
15282         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
15283
15284 2010-12-19  Bruno Haible  <bruno@clisp.org>
15285
15286         nl_langinfo tests: Avoid gcc warning.
15287         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
15288
15289 2010-12-19  Bruno Haible  <bruno@clisp.org>
15290
15291         mknod: Avoid error in C++ mode on OSF/1 with GCC.
15292         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
15293         _GL_CXXALIAS_SYS.
15294
15295 2010-12-19  Bruno Haible  <bruno@clisp.org>
15296
15297         stdbool: Relax test.
15298         * tests/test-stdbool.c (e): Don't require that casts from a variable's
15299         address to 'bool' work in static initializer, for compilers other than
15300         GCC.
15301
15302 2010-12-19  Bruno Haible  <bruno@clisp.org>
15303
15304         ftello: Add missing declaration on OSF/1 5.1.
15305         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
15306         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
15307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
15308         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
15309         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
15310
15311 2010-12-19  Bruno Haible  <bruno@clisp.org>
15312
15313         fseeko: Add missing declaration on OSF/1 5.1.
15314         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
15315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
15316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
15317         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
15318         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
15319
15320 2010-12-19  Bruno Haible  <bruno@clisp.org>
15321
15322         fchdir: Add missing declaration on OSF/1 5.1.
15323         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
15324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
15325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
15326         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
15327         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
15328
15329 2010-12-19  Bruno Haible  <bruno@clisp.org>
15330
15331         relocatable-prog-wrapper: Separate from relocatable-prog.
15332         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
15333         uninstall-relocwrapper rule here.
15334         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
15335         Reported by Ian Beckwith <ianb@erislabs.net>.
15336
15337 2010-12-19  Bruno Haible  <bruno@clisp.org>
15338
15339         unistr/u8-mbsnlen: Add missing dependency.
15340         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
15341         Reported by Ian Beckwith <ianb@erislabs.net>.
15342
15343 2010-12-19  Bruno Haible  <bruno@clisp.org>
15344
15345         iconv: Make it possible again to use this module without 'iconv-h'.
15346         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
15347         if it is not defined.
15348         Reported by Ian Beckwith <ianb@erislabs.net>.
15349
15350 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15351
15352         acl: port to Solaris 8 when copying from tmpfs to ufs
15353         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
15354         error number.  Problem observed on Solaris 8 with latest
15355         coreutils, with "mv A B", where A is on a tmpfs file system and B
15356         is on a ufs file system.  This caused coreutils' mv/part-symlink
15357         test to fail.
15358
15359         tests: set fail=0 at start
15360         * tests/init.sh (setup_): Move fail=0 initialization here ...
15361         (mktempd_): ... from here, so that tests can rely on fail being
15362         set to 0 initially.  This fixes a problem in coreutils; see:
15363         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
15364
15365 2010-12-18  Bruno Haible  <bruno@clisp.org>
15366
15367         memmem-simple: Stylistic changes.
15368         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
15369         Fix preprocessor directive indentation.
15370
15371 2010-12-15  Pádraig Brady <P@draigBrady.com>
15372
15373         memmem, memmem-simple: reorganize and expand empty needle check
15374         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
15375         functional checks to memmem-simple so that one has a fully functional
15376         memmem by using just this module.
15377         Restrict the performance only check to the memmem module.
15378         Also expand the empty needle check to ensure the correct
15379         pointer is returned, not just a non NULL pointer.
15380         * doc/glibc-functions/memmem.texi: Rearrange the portability
15381         documentation to correlate with the rearranged checks.
15382         Clarify exactly how the memmem and memmem-simple modules
15383         relate to each other.
15384
15385 2010-12-15  Pádraig Brady <P@draigBrady.com>
15386             Bruno Haible  <bruno@clisp.org>
15387
15388         Improve cross-compilation guesses for uClibc.
15389         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
15390         that uClibc does not have the glibc bug.
15391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
15392         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
15393
15394 2010-12-14  Eric Blake  <eblake@redhat.com>
15395
15396         configmake: provide fallbacks for oldest supported autotools
15397         * m4/configmake.m4: New file.
15398         * modules/configmake (Files): Ship it.
15399         (configure.ac): Use it to guarantee fallbacks.
15400
15401 2010-12-13  Pádraig Brady <P@draigBrady.com>
15402
15403         read-file: Improve handling of large files
15404         * lib/read-file.c (fread_file): Minimize realloc()s
15405         for regular files, and better manage sizes around SIZE_MAX.
15406
15407 2010-12-13  Eric Blake  <eblake@redhat.com>
15408
15409         cloexec, fcntl: relax license
15410         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15411         consent from all contributors.
15412         * modules/fcntl (License): Likewise.
15413
15414 2010-12-10  Bruno Haible  <bruno@clisp.org>
15415
15416         Tests for module 'pipe-posix'.
15417         * modules/pipe-posix-tests: New file.
15418         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
15419
15420 2010-12-10  Bruno Haible  <bruno@clisp.org>
15421
15422         pipe-posix: Make it work in C++ mode.
15423         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
15424         (pipe): Use common idiom, not a macro definition.
15425         * lib/pipe.c: New file.
15426         * m4/pipe.m4: New file.
15427         * modules/pipe-posix (Description): Enhance.
15428         (Files): Add lib/pipe.c, m4/pipe.m4.
15429         (configure.ac): Invoke gl_FUNC_PIPE.
15430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
15431         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
15432         * tests/test-unistd-c++.cc: Check the signature of pipe.
15433
15434 2010-12-10  Bruno Haible  <bruno@clisp.org>
15435
15436         Rename module 'pipe' to 'spawn-pipe'.
15437         * modules/spawn-pipe: New file, renamed from modules/pipe.
15438         (Files, configure.ac, Makefile.am): Update.
15439         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
15440         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
15441         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
15442         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
15443         "spawn-pipe.h" instead of "pipe.h".
15444         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
15445         to gl_SPAWN_PIPE.
15446         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
15447         (Files, Makefile.am): Update.
15448         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
15449         Update.
15450         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
15451         Include "spawn-pipe.h" instead of "pipe.h".
15452         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
15453         * lib/javacomp.c: Likewise.
15454         * lib/javaversion.c: Likewise.
15455         * lib/pipe-filter-gi.c: Likewise.
15456         * lib/pipe-filter-ii.c: Likewise.
15457         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
15458         * modules/javacomp (Depends-on): Likewise.
15459         * modules/javaversion (Depends-on): Likewise.
15460         * modules/pipe-filter-gi (Depends-on): Likewise.
15461         * modules/pipe-filter-ii (Depends-on): Likewise.
15462         * MODULES.html.sh (Executing programs): Update.
15463         * NEWS: Mention the change.
15464
15465 2010-12-10  Eric Blake  <eblake@redhat.com>
15466
15467         pipe-posix: new module
15468         * modules/pipe-posix: New file.
15469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
15470         (gl_UNISTD_H): Check for declaration.
15471         * modules/unistd (Makefile.am): Substitute it.
15472         * lib/unistd.in.h (pipe): Provide it for mingw.
15473         * doc/posix-functions/pipe.texi (pipe): Update documentation.
15474         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
15475
15476 2010-12-07  Bruno Haible  <bruno@clisp.org>
15477
15478         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
15479         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
15480         u8_strcmp_gnu.
15481         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
15482
15483 2010-12-06  Bruno Haible  <bruno@clisp.org>
15484
15485         Update internal documentation.
15486         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
15487
15488 2010-12-04  Bruno Haible  <bruno@clisp.org>
15489
15490         Put more information about failed tests into the test return codes.
15491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
15492         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
15493         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15495         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15496         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15497         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15498         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15499         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
15500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15501         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
15502         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15503         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15504         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15505         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
15506         returns a bit mask.
15507         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15508         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
15509         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
15510         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
15511         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15512         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15513         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15515         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15516         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15517         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15518         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15519         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15520         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15521         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15522         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15523         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
15524         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
15525         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15526         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
15527         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15528         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15529         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15530         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15531         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15532         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15533         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
15534         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15535         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15536         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
15537         gl_PRINTF_PRECISION): Likewise.
15538         * m4/regex.m4 (gl_REGEX): Likewise.
15539         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15540         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15541         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
15542         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15543         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15544         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15545         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15546         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
15547         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15548         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15549         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15550         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15551         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15552         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15553         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15554         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15555         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15556         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15558         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
15559         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
15560         enumerated value.
15561         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
15562
15563 2010-12-04  Bruno Haible  <bruno@clisp.org>
15564
15565         Update for Solaris 11 2010-11.
15566         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
15567         Express, released in November 2010.
15568
15569 2010-12-04  Bruno Haible  <bruno@clisp.org>
15570
15571         nproc: Relax license.
15572         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
15573         and Paul Eggert.
15574         Requested by Ludovic Courtès <ludo@gnu.org>.
15575
15576 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15577
15578         utimecmp: fine-grained src to nearby coarse-grained dest
15579
15580         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
15581         and the source is on a file system with higher-resolution time
15582         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15583         not work, and the time stamps are close together, the algorithm to
15584         determine the exact resolution from the read-back mtime was buggy:
15585         it had a "!=" where it should have had an "==".  This bug has been
15586         in the code ever since it was introduced to gnulib.
15587         Problem reported by Dan Jacobson in
15588         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
15589
15590 2010-11-30  Bruno Haible  <bruno@clisp.org>
15591
15592         strerror_r-posix: Fix autoconf test.
15593         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
15594
15595 2010-11-28  Bruno Haible  <bruno@clisp.org>
15596             Paul Eggert  <eggert@cs.ucla.edu>
15597
15598         Tests for module 'getdomainname'.
15599         * modules/getdomainname-tests: New file.
15600         * tests/test-getdomainname.c: New file, based on
15601         tests/test-gethostname.c.
15602
15603 2010-11-28  Bruno Haible  <bruno@clisp.org>
15604             Paul Eggert  <eggert@cs.ucla.edu>
15605
15606         getdomainname: Use the system function when possible.
15607         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
15608         (getdomainname): Replace if needed. Provide the declaration if it is
15609         missing. Don't use _GL_CXXALIAS_SYS_CAST.
15610         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
15611         (getdomainname): When the system has getdomainname, call the system
15612         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
15613         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15614         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
15615         found in libnsl. Look for the declaration also in <netdb.h>. Replace
15616         the function if its second argument is of type 'int' or if it is found
15617         in libnsl.
15618         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
15619         <sys/systeminfo.h> and sysinfo().
15620         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
15621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15622         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
15623         HAVE_GETDOMAINNAME.
15624         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
15625         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
15626         * doc/glibc-functions/getdomainname.texi: Document the problems with
15627         the getdomainname declaration.
15628
15629 2010-11-28  Bruno Haible  <bruno@clisp.org>
15630
15631         sys_socket: Ensure ss_family field on AIX.
15632         * lib/sys_socket.in.h (ss_family): New macro definition.
15633         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
15634         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
15635         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15636         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15637         * modules/sys_socket (Makefile.am): Substitute
15638         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15639         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
15640
15641 2010-11-27  Bruno Haible  <bruno@clisp.org>
15642
15643         readline: Improve configure output.
15644         * m4/readline.m4 (gl_FUNC_READLINE): Make the
15645         "checking for readline..." result understandable.
15646
15647 2010-11-27  Bruno Haible  <bruno@clisp.org>
15648
15649         *printf-posix: Detect a bug on Solaris 10/x86.
15650         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
15651         for floating-point output.
15652         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
15653         directive.
15654         * tests/test-snprintf-posix.h (test_function): Likewise.
15655         * tests/test-sprintf-posix.h (test_function): Likewise.
15656         * tests/test-vasprintf-posix.c (test_function): Likewise.
15657         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
15658         * doc/posix-functions/printf.texi: Likewise.
15659         * doc/posix-functions/snprintf.texi: Likewise.
15660         * doc/posix-functions/sprintf.texi: Likewise.
15661         * doc/posix-functions/vfprintf.texi: Likewise.
15662         * doc/posix-functions/vprintf.texi: Likewise.
15663         * doc/posix-functions/vsnprintf.texi: Likewise.
15664         * doc/posix-functions/vsprintf.texi: Likewise.
15665         * doc/glibc-functions/obstack_printf.texi: Likewise.
15666         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15667
15668 2010-11-27  Bruno Haible  <bruno@clisp.org>
15669
15670         Fix link error when module libunistring-optional is in use.
15671         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15672         * modules/striconveha-tests (Makefile.am): Likewise.
15673
15674 2010-11-27  Bruno Haible  <bruno@clisp.org>
15675
15676         regex: Mention link dependencies.
15677         * modules/regex (Link): New section.
15678         * modules/rpmatch (Link): Likewise.
15679         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15680
15681 2010-11-27  Bruno Haible  <bruno@clisp.org>
15682
15683         ftoastr: Fix compilation error on Solaris.
15684         * lib/ftoastr.c: Include <config.h>.
15685
15686 2010-11-27  Bruno Haible  <bruno@clisp.org>
15687
15688         getloadavg: Update documentation.
15689         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15690
15691 2010-11-27  Bruno Haible  <bruno@clisp.org>
15692
15693         sys_socket: Fix test whether the functions are declared.
15694         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15695         not <sys/select.h>.
15696
15697 2010-11-27  Bruno Haible  <bruno@clisp.org>
15698
15699         getpass: Make sure to get system declaration on some platforms.
15700         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15701         gl_USE_SYSTEM_EXTENSIONS.
15702         * modules/getpass (Depends-on): Add extensions.
15703
15704 2010-11-26  Bruno Haible  <bruno@clisp.org>
15705
15706         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15707         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15708         'iconv' module is present.
15709         (ICONV_CONST): New macro.
15710         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15711         ICONV_CONST.
15712         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15713         set ICONV_CONST.
15714         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15715         here.
15716         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15717         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15718         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15719         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15720         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15721         present.
15722
15723 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15724
15725         ftoastr: comment fix
15726         * lib/ftoastr.c: "little" -> "little or no" in comment
15727
15728 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15729
15730         stdint: port to GCC 4.3 + OSX + Octave
15731         On this platform, stdint.h is buggy and defines int64_t to long
15732         long int.  The replacement defined it to long int, causing
15733         problems with C++ style name mangling.  Instead, trust the system
15734         definition if INT64_MAX is defined, and likewise for the unsigned
15735         variant.   Problem reported by Jarno Rajahalme in
15736         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15737         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15738         and don't mess with int64_t and INT64_MAX in this case.
15739         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15740
15741 2010-11-24  Bruno Haible  <bruno@clisp.org>
15742
15743         doc: Corrections regarding MacOS X 10.4 and 10.5.
15744         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15745         MacOS X.
15746         Reported by Simon Josefsson.
15747
15748 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15749
15750         Uninstall ".bin" files installed by relocwrapper.
15751         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15752         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15753         unless it is already there.
15754
15755 2010-11-21  Bruno Haible  <bruno@clisp.org>
15756
15757         Update for NetBSD 5.0.
15758         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15759         NetBSD; the test fails on NetBSD 5.0.
15760         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15761         about NetBSD.
15762
15763 2010-11-21  Bruno Haible  <bruno@clisp.org>
15764
15765         Update for HP-UX 11.23 and HP-UX 11.31.
15766         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15767         HP-UX.
15768
15769 2010-11-21  Bruno Haible  <bruno@clisp.org>
15770
15771         Update for MacOS X 10.5.
15772         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15773         MacOS X; the test fails on MacOS X 10.5.8.
15774         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15775         about MacOS X.
15776
15777 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15778
15779         bootstrap: add bootstrap_sync option.
15780         See discussion at
15781         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15782         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15783         * build-aux/bootstrap: Accept --bootstrap-sync to update
15784         bootstrap if it is not identical to the local gnulib's
15785         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15786         enable this by default.  Accept --no-bootstrap-sync to disable
15787         it.
15788
15789 2010-11-20  Bruno Haible  <bruno@clisp.org>
15790
15791         Ensure that <features.h> is included before __GLIBC__ is tested.
15792         * lib/printf-parse.h: Include <features.h>.
15793         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15794         Reported by Mike Frysinger <vapier@gentoo.org>.
15795
15796         Ensure that <features.h> is included before __GLIBC__ is tested.
15797         * lib/wchar.in.h: Include <features.h>.
15798         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15799         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15800         Reported by Mike Frysinger <vapier@gentoo.org>.
15801
15802         Ensure that <features.h> is included before __GLIBC__ is tested.
15803         * lib/arpa_inet.in.h: Include <features.h>.
15804         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15805         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15806         Reported by Mike Frysinger <vapier@gentoo.org>.
15807
15808         Ensure that <features.h> is included before __GLIBC__ is tested.
15809         * build-aux/link-warning.h: Include <features.h>.
15810         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15811         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15812         Reported by Mike Frysinger <vapier@gentoo.org>.
15813
15814         Ensure that <features.h> is included before __GLIBC__ is tested.
15815         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15816         Reported by Mike Frysinger <vapier@gentoo.org>.
15817
15818 2010-11-20  Bruno Haible  <bruno@clisp.org>
15819
15820         memmem: Fix autoconf test.
15821         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15822
15823 2010-11-20  Bruno Haible  <bruno@clisp.org>
15824
15825         Port to uClibc.
15826         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15827         * lib/fcntl.in.h: Likewise.
15828         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15829         * lib/mbrtowc.c (mbrtowc): Likewise.
15830         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15831         * lib/strerror_r.c: Likewise.
15832         * lib/unistr/u8-strnlen.c: Likewise.
15833         * lib/vasnprintf.c (decimal_point_char): Likewise.
15834         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15835         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15837         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15838         * tests/test-sigaction.c (handler, main): Likewise.
15839         * lib/freading.h: Treat uClibc like a non-glibc platform.
15840         * lib/freading.c: Likewise.
15841         * lib/gettext.h: Likewise.
15842         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15843         Likewise.
15844         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15845         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15846         * lib/propername.c (proper_name_utf8): Likewise.
15847         * lib/spawn.in.h: Likewise.
15848         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15849         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15850         mem_cd_iconveh_internal): Likewise.
15851         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15852         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15853         strstr, strcasestr): Likewise.
15854         * lib/unicodeio.c (unicode_to_mb): Likewise.
15855         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15856         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15857         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15858         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15859         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15860         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15861         * lib/unistr/u8-stpncpy.c: Likewise.
15862         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15863         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15864         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15865         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15866         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15867         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15869         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15871         Likewise.
15872         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15873         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15874         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15875         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15877         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15878         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15879         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15880         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15881         * tests/test-striconveha.c (main): Likewise.
15882         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15883         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15884         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15885         * doc/posix-functions/getline.texi: Likewise.
15886         Reported by Mike Frysinger <vapier@gentoo.org>.
15887
15888 2010-11-20  Bruno Haible  <bruno@clisp.org>
15889
15890         nproc: Fix condition.
15891         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15892         HAVE_PTHREAD_AFFINITY_NP.
15893
15894 2010-11-20  Bruno Haible  <bruno@clisp.org>
15895
15896         Fix a comment.
15897         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15898
15899 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15900
15901         ftoastr: don't assume snprintf
15902         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15903         Implement a subset of snprintf here, by using sprintf safely.
15904         * modules/ftoastr (Depends-on): Remove snprintf.
15905
15906 2010-11-19  Jim Meyering  <meyering@redhat.com>
15907
15908         test-rename.h: fix compilation failure
15909         * tests/test-rename.h (test_rename): Add omitted "}".
15910
15911 2010-11-17  Jim Meyering  <meyering@redhat.com>
15912
15913         maint.mk: add a URL discussing the no-@acronym policy
15914         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15915
15916 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15917
15918         ftoastr: depend on snprintf, improve comments
15919         * lib/ftoastr.c: Also mention Loitsch's draft.
15920         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15921         needed in the current implementation, but it might simplify
15922         speeding up the code later.
15923         * modules/ftoastr: Depend on snprintf; this improves portability.
15924         Suggested by Bruno Haible in the same email.
15925
15926         ftoastr: port to hosts lacking strtof and strtold
15927         Problem reported by Bruno Haible in
15928         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15929         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15930         environment and strtold (and presumably strtof) are not available.
15931         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15932         (configure.ac): Require gl_C99_STRTOLD.
15933
15934 2010-11-18  Bruno Haible  <bruno@clisp.org>
15935
15936         c-strtold: Avoid link error on AIX 7.
15937         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15938         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15939         (gl_C_STRTOLD): Test whether strtold_l exists.
15940         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15941
15942 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15943
15944         intprops: new macro INT_BITS_STRLEN_BOUND
15945         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15946         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15947         not exposed.  Also, it uses a slightly tighter bound than before;
15948         though this makes no practical difference, we might as well be as
15949         tight as we easily can.
15950
15951         ftoastr: new module, for lossless conversion of floats to short strings
15952         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15953         * modules/ftoastr: New files.
15954
15955 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15956
15957         bootstrap: port to Solaris sed
15958         * build-aux/bootstrap (get_version): Port to Solaris sed.
15959         See Ralf Wildenhues's note in
15960         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15961
15962 2010-11-14  Jim Meyering  <meyering@redhat.com>
15963
15964         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15965         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15966         and move definition closer to sole use.
15967
15968 2010-11-13  Jim Meyering  <meyering@redhat.com>
15969
15970         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15971         Now we require at least autoconf-2.59, which means the work-around
15972         is no longer needed.
15973         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15974         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15975         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15976         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15977         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15978
15979 2010-11-13  Bruno Haible  <bruno@clisp.org>
15980
15981         rename, renameat: Avoid test failures at NFS mounted locations.
15982         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15983         functions.
15984         (test_rename): Use assert_nonexistent.
15985         * tests/test-rename.c: Include <dirent.h>.
15986         * tests/test-renameat.c: Likewise.
15987         Reported by Gary V. Vaughan <gary@gnu.org>.
15988
15989         rename, renameat: Document Linux bug with NFS
15990         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15991         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15992         * doc/posix-functions/renameat.texi: Likewise.
15993         Suggested by Eric Blake.
15994
15995 2010-11-13  Bruno Haible  <bruno@clisp.org>
15996
15997         rename test: Add comments.
15998         * tests/test-rename.h (test_rename): Add structure and comments.
15999
16000 2010-11-13  Eric Blake  <eblake@redhat.com>
16001
16002         maintainer-makefile: cover a few more files
16003         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
16004         scripts generated within C files, for libvirt.
16005
16006 2010-11-13  Bruno Haible  <bruno@clisp.org>
16007
16008         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
16009         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
16010         character, return the number of bytes that belong together, not always
16011         1.
16012         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16013         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16014         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16015         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
16016         number of bytes of an invalid character.
16017         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
16018         (main): Invoke it.
16019         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
16020         results.
16021         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
16022         malformed byte sequences.
16023         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
16024         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
16025         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
16026         Reported by Ben Pfaff and Paolo Bonzini.
16027
16028 2010-11-13  Bruno Haible  <bruno@clisp.org>
16029
16030         openat: Work around glibc bug with fchownat() and empty file names.
16031         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
16032         (gl_FUNC_FCHOWNAT): Invoke it.
16033         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
16034         * doc/posix-functions/fchownat.texi: Document the glibc bug.
16035         Reported by Gary V. Vaughan <gary@gnu.org>.
16036
16037 2010-11-13  Bruno Haible  <bruno@clisp.org>
16038
16039         openat: Ensure autoconf macro ordering.
16040         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
16041         gl_USE_SYSTEM_EXTENSIONS.
16042         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
16043
16044 2010-11-13  Bruno Haible  <bruno@clisp.org>
16045
16046         Update comments.
16047         * lib/unistr/u8-check.c: Update file name in comments.
16048         * lib/unistr/u8-mblen.c: Likewise.
16049         * lib/unistr/u8-prev.c: Likewise.
16050         * lib/unistr/u8-strmblen.c: Likewise.
16051         * lib/unistr/u8-strmbtouc.c: Likewise.
16052
16053 2010-11-13  Jim Meyering  <meyering@redhat.com>
16054
16055         tests: avoid test failure on Solaris 10 due to lack of PATH export
16056         * tests/test-update-copyright.sh: Don't forget to export PATH.
16057
16058         init.sh: ensure that IFS is defined, just in case...
16059         * tests/init.sh (setup_): Ensure that IFS is defined,
16060         so that saving and restoring it works as expected.  This
16061         appears to be useful at least for an old version of dash
16062         from a long time ago (RH 6).  See here for details:
16063         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
16064
16065         maint.mk: tighten "test a == b" check
16066         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
16067         test to files that contain something like #!/bin/sh.
16068         Without this, coreutils would get two false positives in
16069         the comments of C source files.
16070
16071 2010-11-12  Eric Blake  <eblake@redhat.com>
16072
16073         bootstrap: fix typo in previous attempt
16074         * build-aux/bootstrap (buildreq): Correct the grouping.
16075         Reported by Paul Eggert.
16076
16077         maintainer-makefile: prohibit test x == x
16078         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
16079         Based on a report by Matthias Bolte.
16080
16081         bootstrap: allow FreeBSD gzip
16082         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
16083         which has no '.' and goes to stderr.
16084         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
16085         Reported by Matthias Bolte.
16086
16087         maintainer-makefile: check for i18n setup
16088         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
16089         will likely work.
16090
16091 2010-11-12  Bruno Haible  <bruno@clisp.org>
16092
16093         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
16094         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
16095         * lib/nanosleep.c (nanosleep): Likewise.
16096
16097 2010-11-11  Bruno Haible  <bruno@clisp.org>
16098
16099         fcntl-h: Fix for use of C++ on glibc systems.
16100         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16101         also on glibc systems in C++ mode.
16102         Reported by Gary V. Vaughan <gary@gnu.org>.
16103
16104 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16105
16106         mknod: avoid false failure with dash
16107         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
16108
16109 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16110
16111         unlink: Fix "is it should" typo in diagnostic.
16112         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
16113         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
16114
16115 2010-11-11  Bruno Haible  <bruno@clisp.org>
16116
16117         Tests for module 'strerror_r-posix'.
16118         * modules/strerror_r-posix-tests: New file.
16119         * tests/test-strerror_r.c: New file.
16120         * tests/test-string-c++.cc: Check the signature of strerror_r.
16121
16122         New module 'strerror_r-posix'.
16123         * lib/string.in.h (strerror_r): New declaration.
16124         * lib/strerror_r.c: New file.
16125         * m4/strerror_r.m4: New file.
16126         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
16127         of strerror_r.
16128         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
16129         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16130         * modules/strerror_r-posix: New file.
16131         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
16132         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16133         * doc/posix-functions/strerror_r.texi: Mention the new module and the
16134         portability problems.
16135
16136 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
16137
16138         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
16139         line is also considered for output. Quoted function name in shell
16140         command, so temporary files for functions like MyClass::operator()
16141         are removed correctly without errors.
16142
16143 2010-11-09  Bruno Haible  <bruno@clisp.org>
16144
16145         * doc/posix-functions/strerror.texi: List more failing platforms.
16146
16147         * doc/posix-functions/strerror.texi: Add a comment.
16148
16149 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16150
16151         fdopendir: fix bug on MacOS X when low on file descriptors
16152
16153         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
16154         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
16155         All callers changed.
16156         (fdopendir): Invoke save_cwd at the top level, not after using
16157         multiple dup() calls to use up file descriptors.  Then retry
16158         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
16159         less than the maximum number of open file descriptors, because
16160         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
16161         on Mac OS X 10.6.4 for tar 1.24
16162         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
16163         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
16164         and for tar 1.25
16165         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
16166
16167 2010-11-07  Bruno Haible  <bruno@clisp.org>
16168
16169         vasnprintf: Support I flag on glibc systems.
16170         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
16171         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
16172         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
16173         snprintf function.
16174         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
16175         glibc systems.
16176         * tests/test-vasnprintf-posix3.c: New file.
16177         * modules/vasnprintf-posix-tests (Files): Add it.
16178         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
16179
16180 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16181
16182         [html] Fix copy/paste bug: Use unique name for compiler warnings.
16183         * MODULES.html.sh: For compiler warnings, use name
16184         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
16185
16186 2010-11-05  Eric Blake  <eblake@redhat.com>
16187
16188         ceil, floor: avoid spurious failure with icc
16189         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
16190         [denormals-as-zero] when optimizing without -mieee-fp option.
16191         * tests/test-floorf2.c (floorf_reference): Likewise.
16192         * tests/test-ceilf1.c (dummy): New function.
16193         (main): Use it to outsmart icc's optimization.
16194         * tests/test-floorf1.c (dummy, main): Likewise.
16195
16196         tests: require working signbit
16197         * modules/ceilf-tests (Depends-on): Add signbit.
16198         * modules/ceill-tests (Depends-on): Likewise.
16199         * modules/floorf-tests (Depends-on): Likewise.
16200         * modules/floorl-tests (Depends-on): Likewise.
16201         * modules/round-tests (Depends-on): Likewise.
16202         * modules/roundf-tests (Depends-on): Likewise.
16203         * modules/roundl-tests (Depends-on): Likewise.
16204         * modules/trunc-tests (Depends-on): Likewise.
16205         * modules/truncf-tests (Depends-on): Likewise.
16206         * modules/truncl-tests (Depends-on): Likewise.
16207
16208         strtod: work around icc bug
16209         * lib/strtod.c (minus_zero): Define to working value.
16210         (strtod): Use it to avoid icc bug.
16211
16212         copysign: enhance tests
16213         * modules/copysign-tests (Files): Add minus-zero.h.
16214         * tests/test-copysign.c (main): Also test zeros.
16215
16216 2010-11-04  Eric Blake  <eblake@redhat.com>
16217
16218         ceil, floor, round, trunc: enhance tests of -0
16219         * tests/test-ceilf1.c (main): Ensure correct sign of result.
16220         * tests/test-ceill.c (main): Likewise.
16221         * tests/test-floorf1.c (main): Likewise.
16222         * tests/test-floorl.c (main): Likewise.
16223         * tests/test-round1.c (main): Likewise.
16224         * tests/test-roundf1.c (main): Likewise.
16225         * tests/test-roundl.c (main): Likewise.
16226         * tests/test-trunc1.c (main): Likewise.
16227         * tests/test-truncf1.c (main): Likewise.
16228         * tests/test-truncl.c (main): Likewise.
16229
16230 2010-11-04  Eric Blake  <eblake@redhat.com>
16231
16232         frexp, tests: work around ICC bug with -zero
16233         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
16234         works with more compilers.
16235         * tests/minus-zero.h: New file.
16236         * modules/ceilf-tests (Files): Include it.
16237         * modules/ceill-tests (Files): Likewise.
16238         * modules/floorf-tests (Files): Likewise.
16239         * modules/floorl-tests (Files): Likewise.
16240         * modules/frexp-nolibm-tests (Files): Likewise.
16241         * modules/frexp-tests (Files): Likewise.
16242         * modules/frexpl-nolibm-tests (Files): Likewise.
16243         * modules/frexpl-tests (Files): Likewise.
16244         * modules/isnan-tests (Files): Likewise.
16245         * modules/isnand-nolibm-tests (Files): Likewise.
16246         * modules/isnand-tests (Files): Likewise.
16247         * modules/isnanf-nolibm-tests (Files): Likewise.
16248         * modules/isnanf-tests (Files): Likewise.
16249         * modules/isnanl-nolibm-tests (Files): Likewise.
16250         * modules/isnanl-tests (Files): Likewise.
16251         * modules/round-tests (Files): Likewise.
16252         * modules/roundf-tests (Files): Likewise.
16253         * modules/roundl-tests (Files): Likewise.
16254         * modules/ldexpl-tests (Files): Likewise.
16255         * modules/signbit-tests (Files): Likewise.
16256         * modules/snprintf-posix-tests (Files): Likewise.
16257         * modules/sprintf-posix-tests (Files): Likewise.
16258         * modules/strtod-tests (Files): Likewise.
16259         * modules/trunc-tests (Files): Likewise.
16260         * modules/truncf-tests (Files): Likewise.
16261         * modules/truncl-tests (Files): Likewise.
16262         * modules/vsnprintf-posix-tests (Files): Likewise.
16263         * modules/vsprintf-posix-tests (Files): Likewise.
16264         * modules/vasnprintf-posix-tests (Files): Likewise.
16265         * modules/vasprintf-posix-tests (Files): Likewise.
16266         * tests/test-ceilf1.c (main): Use it.
16267         * tests/test-ceill.c (main): Likewise.
16268         * tests/test-floorf1.c (main): Likewise.
16269         * tests/test-floorl.c (main): Likewise.
16270         * tests/test-frexp.c (main): Likewise.
16271         * tests/test-frexpl.c (main): Likewise.
16272         * tests/test-isnan.c (main): Likewise.
16273         * tests/test-isnand.h (main): Likewise.
16274         * tests/test-isnanf.h (main): Likewise.
16275         * tests/test-isnanl.h (main): Likewise.
16276         * tests/test-ldexpl.c (main): Likewise.
16277         * tests/test-round.c (main): Likewise.
16278         * tests/test-roundf.c (main): Likewise.
16279         * tests/test-roundl.c (main): Likewise.
16280         * tests/test-signbit.c (test_signbitf, test_signbitd)
16281         (test_signbitl): Likewise.
16282         * tests/test-snprintf-posix.h (test_function): Likewise.
16283         * tests/test-sprintf-posix.h (test_function): Likewise.
16284         * tests/test-strtod.c (main): Likewise.
16285         * tests/test-trunc1.c (main): Likewise.
16286         * tests/test-truncf1.c (main): Likewise.
16287         * tests/test-truncl.c (main): Likewise.
16288
16289         isnanl: work around icc bug
16290         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
16291
16292 2010-11-03  Eric Blake  <eblake@redhat.com>
16293
16294         tests: fix compiler warnings
16295         * tests/test-getopt.h (test_getopt): Fix condition.
16296         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16297         * tests/test-pipe2.c (main): Likewise.
16298         * tests/test-quotearg-simple.c (main): Avoid icc warning.
16299
16300         utimens: fix broken m4 test
16301         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
16302
16303 2010-10-28  Bruno Haible  <bruno@clisp.org>
16304
16305         posix_spawn*, getdtablesize: Relax license.
16306         * modules/posix_spawn (License): Change to LGPLv2+.
16307         * modules/posix_spawnp (License): Likewise.
16308         * modules/posix_spawn-internal (License): Likewise.
16309         * modules/posix_spawnattr_init (License): Likewise.
16310         * modules/posix_spawnattr_getflags (License): Likewise.
16311         * modules/posix_spawnattr_setflags (License): Likewise.
16312         * modules/posix_spawnattr_getpgroup (License): Likewise.
16313         * modules/posix_spawnattr_setpgroup (License): Likewise.
16314         * modules/posix_spawnattr_getschedparam (License): Likewise.
16315         * modules/posix_spawnattr_setschedparam (License): Likewise.
16316         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
16317         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
16318         * modules/posix_spawnattr_getsigdefault (License): Likewise.
16319         * modules/posix_spawnattr_setsigdefault (License): Likewise.
16320         * modules/posix_spawnattr_getsigmask (License): Likewise.
16321         * modules/posix_spawnattr_setsigmask (License): Likewise.
16322         * modules/posix_spawnattr_destroy (License): Likewise.
16323         * modules/posix_spawn_file_actions_init (License): Likewise.
16324         * modules/posix_spawn_file_actions_addclose (License): Likewise.
16325         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
16326         * modules/posix_spawn_file_actions_addopen (License): Likewise.
16327         * modules/posix_spawn_file_actions_destroy (License): Likewise.
16328         * modules/getdtablesize (License): Likewise.
16329         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
16330
16331 2010-10-26  Bruno Haible  <bruno@clisp.org>
16332
16333         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
16334         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
16335         Cygwin and mingw.
16336         Suggested by Eric Blake.
16337
16338 2010-10-26  Bruno Haible  <bruno@clisp.org>
16339
16340         stdio: Work around compilation error due to renameat() on Solaris 10.
16341         * lib/stdio.in.h: Include <unistd.h> on Solaris.
16342         * lib/renameat.c: Don't include <unistd.h> here.
16343         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
16344         Reported by Paul Eggert and Eric Blake.
16345
16346 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16347
16348         renameat: port to Solaris 10, which declares renameat in unistd.h
16349
16350         * lib/renameat.c: Include unistd.h before stdio.h, because
16351         Solaris 10 declares renameat in unistd.h.  Problem encountered
16352         when building GNU tar 1.24 on Solaris 10.
16353
16354 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16355
16356         fdopendir: fix C89 compilation
16357         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
16358         compilers.
16359
16360 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16361
16362         inttostr: simplify by removing unnecessary redundancy
16363         * lib/anytostr.c: Don't include verify.h.
16364         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
16365         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
16366         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
16367         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
16368         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
16369         Likewise.
16370         * modules/inttostr (Depends-on): Remove 'verify'.
16371
16372 2010-10-23  Bruno Haible  <bruno@clisp.org>
16373
16374         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
16375         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
16376         Reported by Eric Blake.
16377
16378 2010-10-23  Bruno Haible  <bruno@clisp.org>
16379
16380         Tests: Fix LOCALE_JA on MirBSD 10.
16381         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
16382         to an UTF-8 locale.
16383         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
16384         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16385         Reported by Eric Blake.
16386
16387 2010-10-21  Bruno Haible  <bruno@clisp.org>
16388
16389         nl_langinfo test: Avoid test failure on NetBSD 5.
16390         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
16391         Reported by Eric Blake.
16392
16393 2010-10-21  Eric Blake  <eblake@redhat.com>
16394
16395         c-stack: work around libsigsegv 2.8 bug
16396         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
16397         overflow on at least PowerPC64.
16398
16399 2010-10-17  Bruno Haible  <bruno@clisp.org>
16400
16401         userspec: Drop redundant file.
16402         * modules/userspec (Files): Remove lib/inttostr.h.
16403
16404 2010-10-17  Bruno Haible  <bruno@clisp.org>
16405
16406         nl_langinfo tests: Silence some warnings.
16407         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
16408         Reported by Jim Meyering.
16409
16410 2010-10-17  Bruno Haible  <bruno@clisp.org>
16411
16412         Make use of GCC's attribute __alloc_size__.
16413         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
16414         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
16415         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
16416         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
16417         __alloc_size__.
16418         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
16419         Suggested by Jim Meyering.
16420
16421 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
16422
16423         bootstrap: anchor .gitignore entries.
16424         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
16425         with...
16426         (insert_vc_ignore): ... this new function, which prepends `/' to
16427         all .gitignore entries before passing them to
16428         insert_sorted_if_absent.
16429
16430 2010-10-16  Bruno Haible  <bruno@clisp.org>
16431
16432         nextafter: Fix configure check.
16433         * modules/nextafter (configure.ac): Correct expected prototype.
16434
16435 2010-10-16  Bruno Haible  <bruno@clisp.org>
16436
16437         termios: Update documentation.
16438         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
16439
16440 2010-10-16  Bruno Haible  <bruno@clisp.org>
16441
16442         tests: Make them compile with TinyCC.
16443         * tests/test-strstr.c (main): Remove parentheses around array
16444         initializer.
16445
16446 2010-10-15  Eric Blake  <eblake@redhat.com>
16447
16448         ignore-value: make header idempotent
16449         * lib/ignore-value.h: Add double-inclusion guards.
16450         Reported by Stefan Berger.
16451
16452 2010-10-15  Jim Meyering  <meyering@redhat.com>
16453
16454         GNUmakefile: handle "stable" target, not "major"
16455         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
16456         lists in maint.mk and announce-gen.  Without this, "make stable"
16457         would fail to ensure that $(VERSION) is up to date.
16458
16459 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
16460
16461         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
16462         & co.
16463
16464 2010-10-14  Bruno Haible  <bruno@clisp.org>
16465
16466         vasnprintf: Don't set errno to 0.
16467         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
16468         block that sets it to 0.
16469         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16470
16471 2010-10-14  Bruno Haible  <bruno@clisp.org>
16472
16473         socketlib: Fix.
16474         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
16475         gl_PREREQ_SYS_H_WINSOCK2.
16476         Reported by Ian Beckwith <ianb@erislabs.net>.
16477
16478 2010-10-13  Jim Meyering  <meyering@redhat.com>
16479
16480         test-select-stdin.c: avoid warn_unused_result warnings
16481         * tests/test-select-stdin.c: Include "macros.h".
16482         ASSERT that read and fflush succeed.
16483
16484 2010-10-13  Jim Meyering  <meyering@redhat.com>
16485
16486         git-version-gen: do require git-VC'd files in cwd
16487         * build-aux/git-version-gen: Reject a git version string
16488         if there are no commits associated with the current directory.
16489         This avoids an unlikely false-positive (unrelated dir whose parent
16490         repository also contains a tag matching v*), as pointed out
16491         by Giuseppe Scrivano in
16492         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
16493
16494 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16495
16496         argv-iter: omit nonconforming declaration
16497         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
16498         enum arg_iter_err declaration, which doesn't conform to C99.
16499         Solaris 10 cc warns about this.
16500
16501 2010-10-13  Eric Blake  <eblake@redhat.com>
16502
16503         termios: fix compilation on mingw
16504         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
16505         (gl_TERMIOS_H): Adjust it on mingw.
16506         * modules/termios (Makefile.am): Substitute new key.
16507         * lib/termios.in.h (includes): Make include_next conditional.
16508         * doc/posix-headers/termios.texi (termios.h): Update
16509         documentation.
16510         Reported by Daniel P. Berrange.
16511
16512 2010-10-13  Jim Meyering  <meyering@redhat.com>
16513
16514         git-version-gen: don't require that .git/ be in the current dir
16515         * build-aux/git-version-gen: Adjust this script so that it works
16516         when run from any working directory beneath the top-level .git/-
16517         containing directory.  Inspired by a patch from Giuseppe Scrivano,
16518         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
16519
16520         test-select: avoid warn_unused_result warnings
16521         * tests/test-select.c: Include "macros.h".
16522         ASSERT that each call to read, write, and pipe succeeds.
16523         While not technically required, also check each "close".
16524         * modules/select-tests (Files): Add tests/macros.h.
16525
16526         test-symlinkat: remove declaration of unused local
16527         * tests/test-symlinkat.c (main): Remove unused local, "buf".
16528
16529         test-inttostr: avoid shadowing warnings
16530         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
16531         and use malloc rather than the stack for the same reason as
16532         mentioned in the comment justifying the other allocation.
16533
16534 2010-10-11  Bruno Haible  <bruno@clisp.org>
16535
16536         stdlib: Allow multiple gnulib generated replacements to coexist.
16537         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
16538         Reported by Sam Steingold <sds@gnu.org>.
16539
16540 2010-10-11  Jim Meyering  <meyering@redhat.com>
16541
16542         fix a documentation typo
16543         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
16544
16545 2010-10-11  Eric Blake  <eblake@redhat.com>
16546
16547         futimens: work around Solaris 11 bug
16548         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
16549         * tests/test-futimens.h (test_futimens): Enhance, rather than
16550         weaken test.
16551         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16552
16553 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16554
16555         Indentation.
16556         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
16557         higher-level operators more to the left.
16558
16559 2010-10-11  Jim Meyering  <meyering@redhat.com>
16560
16561         test-futimens: avoid unwarranted test failure on Solaris 5.11
16562         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
16563         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
16564         because it tries to dereference the NULL name argument.
16565
16566 2010-10-11  Bruno Haible  <bruno@clisp.org>
16567
16568         Indentation.
16569         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
16570         indentation.
16571
16572 2010-10-11  Jim Meyering  <meyering@redhat.com>
16573
16574         spawn.in.h: make indentation consistent with parentheses
16575         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
16576         Make indentation consistent with parentheses.
16577
16578 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
16579
16580         Fix mismatched parens in previous commit
16581         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
16582         parens.
16583
16584 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16585
16586         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
16587
16588         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
16589         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
16590         * lib/malloca.c: Include "verify.h".
16591         (verify1): Remove, replacing with a verify call.
16592         * lib/relocwrapper.c (verify1): Likewise.
16593         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
16594         Likewise.
16595         * modules/malloca (Depends-on): Add 'verify'.
16596         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
16597         * modules/vasnprintf (Depends-on): Add 'verify'.
16598         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16599         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16600         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16601         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16602         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16603         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16604         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16605
16606         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
16607
16608         Formerly the style was sometimes 2*X - 1, because the C standard
16609         was wrongly thought to disallow ?: in integral constant expressions.
16610         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
16611         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
16612         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16613         * lib/stdint.in.h (_verify_intmax_size): Likewise.
16614         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
16615         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
16616         verify that time_t cannot be floating.
16617
16618 2010-10-08  Eric Blake  <eblake@redhat.com>
16619
16620         time: enforce recent POSIX ruling that time_t is integral
16621         * lib/time.in.h (__time_t_must_be_integral): Detect any
16622         problematic systems, allowing the rest of gnulib to assume POSIX.
16623
16624 2010-10-08  Jim Meyering  <meyering@redhat.com>
16625
16626         fdopendir: fix a bug on systems lacking openat and /proc support
16627         OpenBSD 4.7 is one such system.  The most noticeable effect was
16628         failure of any application making nontrivial use of fts: rm, du,
16629         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
16630           ./rm: traversal failed: `a': Bad file descriptor
16631         Debugging that, you see that even though FD 6 was closed just
16632         prior to the opendir call in fd_clone_opendir, its resulting
16633         dir->dd_fd was 8, rather than the expected value of 6:
16634
16635         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
16636         93                close (fd);
16637         (gdb) n
16638         94                dir = fd_clone_opendir (dupfd);
16639         (gdb) n
16640         95                saved_errno = errno;
16641         (gdb) p dir->dd_fd
16642         $11 = 8
16643
16644         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
16645         The problem is that on OpenBSD, fd_clone_opendir has to resort
16646         to using the old-style save/restore CWD mechanism, due to its
16647         lack of openat/proc support, and *that* would steal the FD (6)
16648         that opendir was supposed to use.
16649
16650         The fix is to squirrel away the desired FD so that save_cwd uses a
16651         different one, and then free the dest FD right before calling opendir.
16652         That guarantees opendir will use the required file descriptor.
16653
16654         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
16655
16656 2010-10-08  Bruno Haible  <bruno@clisp.org>
16657
16658         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
16659         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
16660
16661 2010-10-08  Bruno Haible  <bruno@clisp.org>
16662
16663         nanosleep: Make replacement POSIX compliant.
16664         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16665         is out of range.
16666         Reported by Jim Meyering.
16667
16668 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16669
16670         bootstrap: add hook for altering gnulib.mk, for Bison
16671         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16672         the Bison bootstrapping process can rewrite file names and variables
16673         in this file before later parts of 'bootstrap' use the file.
16674         Bison wants to include lib/gnulib.mk from the top-level makefile,
16675         so it needs the file names in this file to be relative to the top
16676         level, not relative to lib; plus it needs variable names to be
16677         rewritten.
16678         (slurp): Use the new function.
16679
16680         bootstrap: reformat for readability
16681         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16682
16683 2010-10-08  Eric Blake  <eblake@redhat.com>
16684
16685         docs: update cygwin progress
16686         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16687         1.7.7.
16688         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16689         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16690         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16691         * doc/posix-functions/carg.texi (carg): Likewise.
16692         * doc/posix-functions/cargf.texi (cargf): Likewise.
16693         * doc/posix-functions/casin.texi (casin): Likewise.
16694         * doc/posix-functions/casinf.texi (casinf): Likewise.
16695         * doc/posix-functions/casinh.texi (casinh): Likewise.
16696         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16697         * doc/posix-functions/catan.texi (catan): Likewise.
16698         * doc/posix-functions/catanf.texi (catanf): Likewise.
16699         * doc/posix-functions/catanh.texi (catanh): Likewise.
16700         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16701         * doc/posix-functions/ccos.texi (ccos): Likewise.
16702         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16703         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16704         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16705         * doc/posix-functions/cexp.texi (cexp): Likewise.
16706         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16707         * doc/posix-functions/cimag.texi (cimag): Likewise.
16708         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16709         * doc/posix-functions/clog.texi (clog): Likewise.
16710         * doc/posix-functions/clogf.texi (clogf): Likewise.
16711         * doc/posix-functions/conj.texi (conj): Likewise.
16712         * doc/posix-functions/conjf.texi (conjf): Likewise.
16713         * doc/posix-functions/cpow.texi (cpow): Likewise.
16714         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16715         * doc/posix-functions/cproj.texi (cproj): Likewise.
16716         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16717         * doc/posix-functions/creal.texi (creal): Likewise.
16718         * doc/posix-functions/crealf.texi (crealf): Likewise.
16719         * doc/posix-functions/csin.texi (csin): Likewise.
16720         * doc/posix-functions/csinf.texi (csinf): Likewise.
16721         * doc/posix-functions/csinh.texi (csinh): Likewise.
16722         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16723         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16724         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16725         * doc/posix-functions/ctan.texi (ctan): Likewise.
16726         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16727         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16728         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16729         * doc/posix-headers/complex.texi (complex.h): Likewise.
16730
16731 2010-10-07  Jim Meyering  <meyering@redhat.com>
16732
16733         parse-datetime: avoid compilation failure on OpenBSD 4.7
16734         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16735         This works around a compilation failure on OpenBSD 4.7:
16736         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16737
16738 2010-10-07  Eric Blake  <eblake@redhat.com>
16739
16740         docs: update cygwin progress
16741         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16742         1.7.6.
16743         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16744         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16745         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16746         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16747         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16748         Likewise.
16749         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16750         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16751         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16752         Likewise.
16753         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16754         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16755         Likewise.
16756         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16757         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16758         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16759         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16760         Likewise.
16761         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16762         Likewise.
16763         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16764
16765         docs: update parse-datetime history
16766         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16767         documentation of this function's history and alternatives.
16768
16769         cygwin: use more robust version check
16770         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16771         exclude an eventual cygwin 1.9.1.
16772         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16774         (gl_FUNC_STRCASESTR): Likewise.
16775         Reported by Bruno Haible.
16776
16777 2010-10-06  Bruno Haible  <bruno@clisp.org>
16778
16779         string, sys_select: Avoid #including large headers unless necessary.
16780         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16781         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16782         OSF/1, BeOS, Haiku.
16783         Reported by Jim Meyering.
16784
16785 2010-10-05  Eric Blake  <eblake@redhat.com>
16786
16787         memmem, strstr, strcasestr: fix bug with long periodic needle
16788         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16789         periodic needle having false positive.
16790         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16791         and cygwin 1.7.7.
16792         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16794         (gl_FUNC_STRCASESTR): Likewise.
16795         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16796         * tests/test-memmem.c (main): Expose the bug.
16797         * tests/test-strcasestr.c (main): Likewise.
16798         * tests/test-strstr.c (main): Likewise.
16799         * tests/test-c-strcasestr.c (main): Likewise.
16800         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16801         * doc/posix-functions/strstr.texi (strstr): Likewise.
16802         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16803         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16804
16805 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16806
16807         parse-datetime: do some more renaming
16808         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16809         parse_datetime, not get_date.  Mention the renaming.
16810         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16811         in comments.
16812         * m4/bison.m4: Likewise.
16813
16814 2010-10-05  Eric Blake  <eblake@redhat.com>
16815
16816         parse-datetime: better name than get_date
16817         * NEWS: Reword the deprecation notice.
16818         * modules/get_date: Rename to modules/parse-datetime.
16819         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16820         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16821         * lib/get_date.y: Rename to lib/parse-datetime.y.
16822         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16823         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16824         * doc/getdate.texi: Provide fallback wrapper.
16825         * lib/getdate.h: Move guts, and wrap...
16826         * lib/parse-datetime.h: ...new file.
16827         * lib/parse-datetime.y (get_date): Rename...
16828         (parse_datetime): ...to this.
16829         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16830         (gl_PARSE_DATETIME): ...to this.
16831         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16832         documentation.
16833         * modules/getdate (Files): Provide fallback docs and header.
16834         (Notice, Depends-on): Update references.
16835         * tests/test-parse-datetime.c: Likewise.
16836         * DEPENDENCIES: Likewise.
16837         * MODULES.html.sh (Date and time <time.h>): Likewise.
16838         * doc/parse-datetime.texi (Date input formats)
16839         (Authors of parse_datetime): Likewise.
16840         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16841         (Include): Likewise.
16842         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16843         * gnulib-tool: Likewise.
16844         * m4/bison.m4 (gl_BISON): Likewise.
16845         Suggested by Bruno Haible.
16846
16847 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16848
16849         more ports to Solaris tr, which needs [] around ranges
16850         * gnulib-tool: Solaris tr needs [] around ranges.
16851         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16852         * tests/test-pipe-filter-gi1.c (main): Likewise.
16853         * tests/test-pipe-filter-ii1.c (main): Likewise.
16854
16855 2010-10-05  Eric Blake  <eblake@redhat.com>
16856
16857         bootstrap: fix Solaris regression
16858         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16859         around ranges.
16860         Reported by Pádraig Brady.
16861
16862         bootstrap: work with pkg-config
16863         * build-aux/bootstrap (check_versions): Also transliterate - in
16864         prerequisite name.
16865         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16866         prerequisites that were already found, to avoid confusion.
16867         Reported by Justin Clift.
16868
16869         faccessat: remove unused wrappers
16870         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16871         presence of these wrappers dragged in -lgen on Solaris.
16872         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16873
16874 2010-10-05  Jim Meyering  <meyering@redhat.com>
16875
16876         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16877         * Makefile (sc_pragma_columns): New syntax-check rule.
16878
16879 2010-10-04  Bruno Haible  <bruno@clisp.org>
16880
16881         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16882         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16883         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16884         Reported by Bruce Korb and Eric Blake.
16885
16886 2010-10-04  Bruno Haible  <bruno@clisp.org>
16887
16888         threadlib: Make option --with-libpth-prefix work.
16889         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16890         use $LIBPTH, not just -lpth.
16891
16892 2010-10-04  Bruno Haible  <bruno@clisp.org>
16893
16894         Avoid line length limitation from HP NonStop system header files.
16895         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16896         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16897         * lib/ctype.in.h: Likewise.
16898         * lib/dirent.in.h: Likewise.
16899         * lib/errno.in.h: Likewise.
16900         * lib/fcntl.in.h: Likewise.
16901         * lib/float.in.h: Likewise.
16902         * lib/getopt.in.h: Likewise.
16903         * lib/iconv.in.h: Likewise.
16904         * lib/inttypes.in.h: Likewise.
16905         * lib/langinfo.in.h: Likewise.
16906         * lib/locale.in.h: Likewise.
16907         * lib/math.in.h: Likewise.
16908         * lib/netdb.in.h: Likewise.
16909         * lib/netinet_in.in.h: Likewise.
16910         * lib/poll.in.h: Likewise.
16911         * lib/pthread.in.h: Likewise.
16912         * lib/pty.in.h: Likewise.
16913         * lib/sched.in.h: Likewise.
16914         * lib/se-selinux.in.h: Likewise.
16915         * lib/search.in.h: Likewise.
16916         * lib/signal.in.h: Likewise.
16917         * lib/spawn.in.h: Likewise.
16918         * lib/stdarg.in.h: Likewise.
16919         * lib/stddef.in.h: Likewise.
16920         * lib/stdint.in.h: Likewise.
16921         * lib/stdio.in.h: Likewise.
16922         * lib/stdlib.in.h: Likewise.
16923         * lib/string.in.h: Likewise.
16924         * lib/strings.in.h: Likewise.
16925         * lib/sys_file.in.h: Likewise.
16926         * lib/sys_ioctl.in.h: Likewise.
16927         * lib/sys_select.in.h: Likewise.
16928         * lib/sys_socket.in.h: Likewise.
16929         * lib/sys_stat.in.h: Likewise.
16930         * lib/sys_time.in.h: Likewise.
16931         * lib/sys_times.in.h: Likewise.
16932         * lib/sys_utsname.in.h: Likewise.
16933         * lib/sys_wait.in.h: Likewise.
16934         * lib/sysexits.in.h: Likewise.
16935         * lib/termios.in.h: Likewise.
16936         * lib/time.in.h: Likewise.
16937         * lib/unistd.in.h: Likewise.
16938         * lib/wchar.in.h: Likewise.
16939         * lib/wctype.in.h: Likewise.
16940         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16941         * modules/ctype (Makefile.am): Likewise.
16942         * modules/dirent (Makefile.am): Likewise.
16943         * modules/errno (Makefile.am): Likewise.
16944         * modules/fcntl-h (Makefile.am): Likewise.
16945         * modules/float (Makefile.am): Likewise.
16946         * modules/getopt-posix (Makefile.am): Likewise.
16947         * modules/iconv-h (Makefile.am): Likewise.
16948         * modules/inttypes (Makefile.am): Likewise.
16949         * modules/langinfo (Makefile.am): Likewise.
16950         * modules/locale (Makefile.am): Likewise.
16951         * modules/math (Makefile.am): Likewise.
16952         * modules/netdb (Makefile.am): Likewise.
16953         * modules/netinet_in (Makefile.am): Likewise.
16954         * modules/poll-h (Makefile.am): Likewise.
16955         * modules/pthread (Makefile.am): Likewise.
16956         * modules/pty (Makefile.am): Likewise.
16957         * modules/sched (Makefile.am): Likewise.
16958         * modules/search (Makefile.am): Likewise.
16959         * modules/selinux-h (Makefile.am): Likewise.
16960         * modules/signal (Makefile.am): Likewise.
16961         * modules/spawn (Makefile.am): Likewise.
16962         * modules/stdarg (Makefile.am): Likewise.
16963         * modules/stddef (Makefile.am): Likewise.
16964         * modules/stdint (Makefile.am): Likewise.
16965         * modules/stdio (Makefile.am): Likewise.
16966         * modules/stdlib (Makefile.am): Likewise.
16967         * modules/string (Makefile.am): Likewise.
16968         * modules/strings (Makefile.am): Likewise.
16969         * modules/sys_file (Makefile.am): Likewise.
16970         * modules/sys_ioctl (Makefile.am): Likewise.
16971         * modules/sys_select (Makefile.am): Likewise.
16972         * modules/sys_socket (Makefile.am): Likewise.
16973         * modules/sys_stat (Makefile.am): Likewise.
16974         * modules/sys_time (Makefile.am): Likewise.
16975         * modules/sys_times (Makefile.am): Likewise.
16976         * modules/sys_utsname (Makefile.am): Likewise.
16977         * modules/sys_wait (Makefile.am): Likewise.
16978         * modules/sysexits (Makefile.am): Likewise.
16979         * modules/termios (Makefile.am): Likewise.
16980         * modules/time (Makefile.am): Likewise.
16981         * modules/unistd (Makefile.am): Likewise.
16982         * modules/wchar (Makefile.am): Likewise.
16983         * modules/wctype (Makefile.am): Likewise.
16984
16985 2010-10-04  Bruno Haible  <bruno@clisp.org>
16986
16987         read-file tests: Avoid a test failure on NonStop Kernel.
16988         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16989         a regular file.
16990         Reported by Joachim Schmitz <schmitz@hp.com>.
16991
16992 2010-10-03  Bruno Haible  <bruno@clisp.org>
16993
16994         gnulib-tool: Fixes for --create-testdir with --libtool.
16995         * gnulib-tool (func_get_automake_snippet): Don't augment
16996         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16997         an executable.
16998         (func_create_testdir): Handle module 'alloca' like func_import.
16999         Reported by Bruce Korb <bruce.korb@gmail.com>.
17000
17001 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17002
17003         Avoid some lines longer than 80 characters.
17004         * lib/stdint.in.h: Break long comment lines.
17005         * lib/math.in.h: Likewise.
17006         (_GL_NUM_UINT_WORDS): New macro, for readability.
17007         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
17008         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
17009         * lib/stdlib.in.h: Likewise.
17010         * lib/spawn.in.h: Likewise.
17011         * lib/sys_socket.in.h: Update an URL.
17012         * lib/sys_stat.in.h: Break long line.
17013
17014 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
17015
17016         Improve pmccabe2html.
17017         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
17018         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
17019         when the sources change. Remove the line in the HTML about "Used
17020         ranges" (which implied that there might be other unused ranges),
17021         rename "Resume" to "Summary" (easier to understand for more users).
17022         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
17023         styles, and some unnecessary blank lines.
17024
17025 2010-10-03  Bruno Haible  <bruno@clisp.org>
17026             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
17027
17028         acl: Add support for ACLs on NonStop Kernel.
17029         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
17030         Check whether the function aclsort() exists.
17031         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
17032         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
17033         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17034         (acl_nontrivial [HAVE_ACLSORT]: New function.
17035         (file_has_acl): Implement for NonStop Kernel.
17036         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17037         (qset_acl): Implement for NonStop Kernel.
17038         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
17039         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17040         (main): Implement for NonStop Kernel.
17041         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
17042         Kernel. Handle this flavor.
17043         * tests/test-set-mode-acl.sh: Likewise.
17044         * tests/test-copy-acl.sh: Likewise.
17045         * tests/test-copy-file.sh: Likewise.
17046
17047 2010-10-03  Bruno Haible  <bruno@clisp.org>
17048
17049         Info about ACLs on NonStop Kernel.
17050         * doc/acl-resources.txt: Add info about NonStop Kernel.
17051         References by Joachim Schmitz <schmitz@hp.com>.
17052
17053 2010-10-02  Bruno Haible  <bruno@clisp.org>
17054
17055         Define missing EDQUOT on NonStop Kernel.
17056         * lib/errno.in.h (EDQUOT): Assign a value if missing.
17057         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
17058         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
17059         missing.
17060         * doc/posix-headers/errno.texi: Mention the NSK bug.
17061         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
17062         Reported by Joachim Schmitz <schmitz@hp.com>.
17063
17064 2010-10-02  Bruno Haible  <bruno@clisp.org>
17065
17066         Update doc for POSIX:2008.
17067         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
17068         Update URL of POSIX specification.
17069
17070 2010-10-02  Bruno Haible  <bruno@clisp.org>
17071
17072         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
17073         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
17074         from gnulib, not from Automake.
17075
17076 2010-10-02  Bruno Haible  <bruno@clisp.org>
17077
17078         New module 'system-posix'.
17079         * modules/system-posix: New file.
17080         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
17081         module is present.
17082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17083         GNULIB_SYSTEM_POSIX.
17084         * modules/stdlib (Depends-on): Remove sys_wait.
17085         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
17086         * doc/posix-functions/system.texi: Mention the new module.
17087         * doc/posix-headers/stdlib.texi: Likewise.
17088         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
17089         define test_sys_wait_macros to a no-op.
17090         Reported by Sam Steingold <sds@gnu.org>.
17091
17092 2010-09-30  Bruno Haible  <bruno@clisp.org>
17093
17094         More renaming from 'getdate' to 'get_date'.
17095         * doc/get_date.texi: Renamed from doc/getdate.texi.
17096         * modules/get_date (Files): Update.
17097         * MODULES.html.sh (Date and time <time.h>): Update.
17098         * DEPENDENCIES: Update.
17099         * gnulib-tool: Update comment.
17100         * m4/bison.m4 (gl_BISON): Likewise.
17101         * m4/get_date.m4 (gl_GET_DATE): Likewise.
17102
17103 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
17104
17105         bootstrap: support ACLOCAL_FLAGS during aclocal
17106         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
17107         can add additional -I dir for third-party .m4 files.
17108
17109 2010-09-30  Eric Blake  <eblake@redhat.com>
17110
17111         bootstrap: use glibtoolize on MacOS
17112         * build-aux/bootstrap (check_versions): Convert libtool into
17113         libtoolize.
17114         (tool search): Move libtool check earlier, and look for
17115         glibtoolize for MacOS.
17116         (gnulib_tool_options): Auto-add --libtool when appropriate.
17117         Reported by Justin Clift.
17118
17119         poll: fix typo that broke test on MacOS
17120         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
17121         Reported by Justin Clift.
17122
17123         getdate: rename to get_date
17124         Note: getdate.h is not renamed, to minimize client impact.
17125         * modules/getdate: Mark obsolete.  Move old contents...
17126         * modules/get_date: ...to new module name.
17127         * modules/getdate-tests: Move...
17128         * modules/get_date-tests: ...here.
17129         * m4/getdate.m4: Move...
17130         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
17131         * lib/getdate.y: Move...
17132         * lib/get_date.y: ...here.
17133         * tests/test-getdate.c: Move...
17134         * tests/test-get_date.c: ...here.
17135         * doc/posix-functions/getdate.texi (getdate): Update name.
17136         * NEWS: Mention the change.
17137
17138 2010-09-29  Bruno Haible  <bruno@clisp.org>
17139
17140         Separate the module 'waitpid' from the module 'sys_wait'.
17141         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
17142         present.
17143         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
17144         gl_MODULE_INDICATOR_FOR_TESTS.
17145         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
17146         * modules/sys_wait (Depends-on): Remove waitpid.
17147         (Makefile.am): Substitute GNULIB_WAITPID.
17148         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
17149         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
17150         signature only if the 'waitpid' module is present.
17151         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
17152         * NEWS: Mention the change.
17153         * modules/grantpt (Depends-on): Add waitpid.
17154         * modules/wait-process (Depends-on): Likewise.
17155
17156 2010-09-29  Bruno Haible  <bruno@clisp.org>
17157
17158         More tests for module 'sys_wait'.
17159         * modules/sys_wait-c++-tests: New file.
17160         * tests/test-sys_wait-c++.cc: New file.
17161         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
17162         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17163
17164 2010-09-29  Bruno Haible  <bruno@clisp.org>
17165
17166         New module 'waitpid'.
17167         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
17168         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
17169         Don't include <process.h>.
17170         (waitpid): Declare only, using modern idiom.
17171         * m4/waitpid.m4: New file.
17172         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
17173         * modules/waitpid: New file.
17174         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
17175         (Makefile.am): Update.
17176         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17177
17178 2010-09-28  Bruno Haible  <bruno@clisp.org>
17179
17180         poll: Assume ANSI C.
17181         * lib/poll.c (poll): Use an ANSI C declaration.
17182
17183 2010-09-28  Bruno Haible  <bruno@clisp.org>
17184
17185         poll-h: Create poll.h on all platforms.
17186         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
17187         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
17188         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
17189         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
17190         (gl_REPLACE_POLL_H): Don't set POLL_H.
17191         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
17192         * modules/poll-h (Depends-on): Add include_next.
17193         (Makefile.am): Create poll.h unconditionally. Substitute also
17194         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
17195
17196 2010-09-28  Bruno Haible  <bruno@clisp.org>
17197
17198         Tests for module 'poll-h'.
17199         * modules/poll-h-c++-tests: New file.
17200         * tests/test-poll-h-c++.cc: New file.
17201
17202         Tests for module 'poll-h'.
17203         * modules/poll-h-tests: New file.
17204         * tests/test-poll-h.c: New file.
17205
17206 2010-09-28  Bruno Haible  <bruno@clisp.org>
17207
17208         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
17209         * modules/poll-h (Depends-on): Add 'extensions'.
17210
17211 2010-09-28  Bruno Haible  <bruno@clisp.org>
17212
17213         New module 'poll-h'.
17214         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
17215         (poll): Use modern idiom.
17216         * modules/poll-h: New file.
17217         * modules/poll (Files): Remove lib/poll.in.h.
17218         (Depends-on): Add poll-h.
17219         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
17220         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
17221         * m4/poll_h.m4: New file.
17222         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
17223         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
17224         and invoke gl_REPLACE_POLL_H.
17225         * lib/poll.c: Use common idiom.
17226         * tests/test-poll.c: Likewise.
17227         * doc/posix-headers/poll.texi: Mention the poll-h module.
17228         Suggested by Eric Blake.
17229
17230 2010-09-26  Bruno Haible  <bruno@clisp.org>
17231
17232         sys_wait: Implement WSTOPSIG.
17233         * lib/sys_wait.in.h (WSTOPSIG): New macro.
17234         Reported by Simon Josefsson.
17235
17236 2010-09-26  Simon Josefsson  <simon@josefsson.org>
17237
17238         stdlib, sys_wait: Avoid compilation error on mingw.
17239         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
17240
17241 2010-09-26  Bruno Haible  <bruno@clisp.org>
17242
17243         stdlib tests: Avoid code duplication.
17244         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
17245         * modules/sys_wait-tests (Files): Likewise.
17246         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
17247         * tests/test-stdlib.c: Include test-sys_wait.h.
17248         (main): Invoke test_sys_wait_macros.
17249         * tests/test-sys_wait.c: Include test-sys_wait.h.
17250         (main): Invoke test_sys_wait_macros.
17251
17252 2010-09-25  Simon Josefsson  <simon@josefsson.org>
17253
17254         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
17255         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
17256         sure Windows sockets are working before calling getaddrinfo.
17257         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
17258         * doc/gnulib.texi (Windows sockets): Fix typo.
17259
17260 2010-09-25  Bruno Haible  <bruno@clisp.org>
17261
17262         Tests for module 'regex-quote'.
17263         * modules/regex-quote-tests: New file.
17264         * tests/test-regex-quote.c: New file.
17265
17266         New module 'regex-quote'.
17267         * lib/regex-quote.h: New file.
17268         * lib/regex-quote.c: New file.
17269         * modules/regex-quote: New file.
17270         Suggested by Reuben Thomas <rrt@sc3d.org>.
17271
17272 2010-09-24  Bruno Haible  <bruno@clisp.org>
17273
17274         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
17275         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
17276
17277 2010-09-23  Bruno Haible  <bruno@clisp.org>
17278
17279         setenv: Relax license.
17280         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
17281         Blake.
17282         Requested by Eric Blake.
17283
17284 2010-09-22  Bruno Haible  <bruno@clisp.org>
17285
17286         termios: Relax license.
17287         * modules/termios (License): Change to LGPLv2+.
17288         Requested by Eric Blake.
17289
17290 2010-09-22  Bruno Haible  <bruno@clisp.org>
17291
17292         threadlib: Allow the package to change the default to 'no'.
17293         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
17294         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
17295         Reported by Paul Eggert.
17296
17297 2010-09-22  Pádraig Brady  <P@draigbrady.com>
17298             Bruno Haible  <bruno@clisp.org>
17299
17300         Fix endless loop in mbmemcasecoll.
17301         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
17302         byte.
17303         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
17304
17305 2010-09-22  Bruno Haible  <bruno@clisp.org>
17306
17307         Tests for module 'memcoll'.
17308         * modules/memcoll-tests: New file.
17309         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
17310
17311         memcoll, xmemcoll: Clarify size vs. length.
17312         * modules/memcoll.c (memcoll0): Clarify specification.
17313         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
17314         passed to collate_error.
17315
17316 2010-09-22  Bruno Haible  <bruno@clisp.org>
17317
17318         Tests for module 'memcasecmp'.
17319         * modules/memcasecmp-tests: New file.
17320         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
17321
17322 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17323
17324         * lib/pthread.in.h: Add split double-inclusion guard, and include
17325         system <pthread.h> if there is one.  Use @@-style as in other
17326         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
17327         pthread.h doesn't.
17328         (pthread_mutexattr_destroy, pthread_mutexattr_init):
17329         (pthread_mutexattr_settype, pthread_mutex_trylock):
17330         New static inline functions, if there's no system <pthread.h>.
17331         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
17332         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
17333         Approximate with mutexes if the system lacks spinlocks, as in
17334         MacOS.
17335         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
17336         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
17337         @@-style.  Check for spinlocks separately.
17338         (gl_PTHREAD_DEFAULTS): New macro.
17339         * modules/pthread: Redo to use a more typical style for in.h files.
17340
17341 2010-09-21  Eric Blake  <eblake@redhat.com>
17342
17343         net_if: enhance tests
17344         * tests/test-net_if.c (main): Move signature checks earlier.
17345         Print failures to stderr.
17346         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
17347         Document the bug that we do not yet fix.
17348
17349 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17350
17351         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
17352         about gnulib, not GSS.
17353
17354 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17355
17356         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17357         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
17358         for Emacs.
17359         * build-aux/pmccabe2html: Make Makefile.am example code more
17360         cut-and-paste friendly.
17361
17362 2010-09-21  Simon Josefsson  <simon@josefsson.org>
17363
17364         * tests/test-net_if.c: New file.
17365         * modules/net_if-tests: New file.
17366
17367 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17368
17369         pthread: add pthread_spin_destroy
17370         * lib/pthread.in.h (pthread_spin_destroy): New function.
17371
17372 2010-09-19  Bruno Haible  <bruno@clisp.org>
17373
17374         gnulib-tool: Fix --help output.
17375         * gnulib-tool (func_usage): Fix help message.
17376         Reported by Reuben Thomas <rrt@sc3d.org>.
17377
17378 2010-09-18  Jim Meyering  <meyering@redhat.com>
17379
17380         maint.mk: avoid unexpanded \n in two diagnostics
17381         * top/maint.mk (sc_prohibit_always_true_header_tests):
17382         Don't use a literal \n in a halt=... assignment.  It would not be
17383         expanded, and the two \n bytes would appear in the diagnostic output
17384         rather than the desired newline.  Use halt=$$(printf ... instead.
17385         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17386
17387 2010-09-18  Bruno Haible  <bruno@clisp.org>
17388
17389         netinet_in: Doc tweak.
17390         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
17391         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17392
17393 2010-09-18  Jim Meyering  <meyering@redhat.com>
17394
17395         init.sh: correct an outdated comment
17396         * tests/init.sh (create_exe_shims_):  s/function/alias/
17397
17398         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
17399         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
17400         a file named "*.exe" is removed between the glob expansion and the
17401         processing of that oddly named file.
17402
17403 2010-09-17  Eric Blake  <eblake@redhat.com>
17404
17405         mirbsd: add some more support
17406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
17407         in BSD family.
17408         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
17409         devices as OpenBSD.
17410         * m4/host-os.m4 (mirbsd): Add MirBSD.
17411
17412         tests: fix unportable assumption on sys/wait.h
17413         * tests/test-sys_wait.c (main): Relax test.
17414         * tests/test-stdlib.c (main): Likewise.
17415
17416         init.sh: accomodate directory with no .exes
17417         * tests/init.sh: Accomodate directory containing only scripts.
17418
17419         tests: avoid compiler warning
17420         * tests/test-stdlib.c (main): Use the variable.
17421
17422         fdutimens, fdutimensat: update signature, again
17423         * lib/utimens.h (gl_futimens): Delete, and move signature...
17424         (fdutimens): ...here.
17425         (fdutimensat): Rearrange signature.
17426         (lutimensat): Rename variable for clarity.
17427         * lib/fdutimensat.c (fdutimensat): Update signature.
17428         * lib/utimens.c (fdutimens): Likewise.
17429         (gl_futimens): Delete.
17430         (utimens, lutimens): Update callers.
17431         * lib/futimens.c (futimens): Likewise.
17432         * tests/test-fdutimensat.c: Likewise.
17433         * tests/test-utimens.c: Likewise.
17434         * tests/test-futimens.h: Update comment.
17435         * NEWS: Mention this.
17436         Suggested by Paul Eggert.
17437
17438 2010-09-17  Bruno Haible  <bruno@clisp.org>
17439
17440         Take over the maintenance of some older macros from Autoconf.
17441         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
17442         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
17443         GNU Autoconf.
17444         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
17445         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
17446
17447 2010-09-17  Eric Blake  <eblake@redhat.com>
17448
17449         fdutimensat: drop atflag validation
17450         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
17451         with valid fd, to close a race scenario where futimens is
17452         unsupported and FILE was replaced by a symlink.
17453         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
17454         accordingly.
17455         Suggested by Paul Eggert.
17456
17457 2010-09-16  Bruno Haible  <bruno@clisp.org>
17458
17459         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
17460         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
17461
17462 2010-09-16  Bruno Haible  <bruno@clisp.org>
17463
17464         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
17465         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
17466         login_tty exists.
17467         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17468
17469 2010-09-16  Bruno Haible  <bruno@clisp.org>
17470
17471         login_tty: Make the replacement code work on BSD systems.
17472         * lib/login_tty.c: Include <sys/ioctl.h>.
17473         (login_tty): Use ioctl TIOCSCTTY when available.
17474         * modules/login_tty (Depends-on): Add sys_ioctl.
17475         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17476
17477 2010-09-16  Bruno Haible  <bruno@clisp.org>
17478
17479         login_tty: Stricter unit test.
17480         * modules/login_tty-tests (Depends-on): Add tcgetsid.
17481         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
17482         and tcgetsid() after login_tty.
17483         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17484
17485 2010-09-16  Bruno Haible  <bruno@clisp.org>
17486
17487         New module 'tcgetsid'.
17488         * lib/tcgetsid.c: New file.
17489         * m4/tcgetsid.m4: New file.
17490         * modules/tcgetsid: New file.
17491         * modules/termios (Depends-on): Add c++defs, warn-on-use.
17492         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
17493         GNULIB_TCGETSID, HAVE_TCGETSID.
17494         * lib/termios.in.h: Include <sys/types.h>.
17495         (tcgetsid): New declaration.
17496         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
17497         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
17498         * doc/posix-functions/tcgetsid.texi: Mention the new module.
17499         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
17500
17501 2010-09-16  Bruno Haible  <bruno@clisp.org>
17502
17503         Tests for module 'termios'.
17504         * modules/termios-c++-tests: New file.
17505         * modules/termios-tests: New file.
17506         * tests/test-termios-c++.cc: New file.
17507         * tests/test-termios.c: New file.
17508
17509         New module 'termios'.
17510         * modules/termios: New file.
17511         * lib/termios.in.h: New file.
17512         * m4/termios_h.m4: New file.
17513         * doc/posix-headers/termios.texi: Mention the new module.
17514
17515 2010-09-16  Eric Blake  <eblake@redhat.com>
17516
17517         fdutimensat: add an atflag parameter
17518         * lib/fdutimensat.c (fdutimensat): Add new parameter.
17519         * lib/utimens.h (fdutimensat): Update prototype.
17520         * tests/test-fdutimensat.c: Adjust test to match.
17521         * NEWS: Document the change.
17522         Suggested by Paul Eggert.
17523
17524 2010-09-16  Bruno Haible  <bruno@clisp.org>
17525
17526         Fix typos in comments.
17527         * lib/striconveh.h: Fix typo in comment.
17528         * lib/login_tty.c (login_tty): Likewise.
17529
17530 2010-09-15  Bruno Haible  <bruno@clisp.org>
17531
17532         stdlib: clarify MirBSD WEXITSTATUS bug
17533         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
17534         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17535
17536 2010-09-15  Eric Blake  <eblake@redhat.com>
17537
17538         stdlib: work around MirBSD WEXITSTATUS bug
17539         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
17540         * modules/stdlib (Depends-on): Add sys_wait.
17541         * tests/test-sys_wait.c (main): Enhance test.
17542         * tests/test-stdlib.c (main): Likewise.
17543         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
17544
17545         docs: mention MacOS issue with WEXITSTATUS(constant)
17546         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
17547         issue.
17548         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17549
17550         strnlen: add tests
17551         * modules/strnlen-tests: New file.
17552         * tests/test-strnlen.c: Likewise.
17553
17554 2010-09-14  Bruno Haible  <bruno@clisp.org>
17555
17556         unistr/base: Avoid link errors when module 'libunistring' is also used.
17557         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
17558         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
17559         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
17560         Declare also when HAVE_LIBUNISTRING is set.
17561         Reported by Pádraig Brady <P@draigbrady.com>.
17562
17563 2010-09-14  Eric Blake  <eblake@redhat.com>
17564
17565         test-rawmemchr: make more robust
17566         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
17567         (Depends-on, configure.ac): Add needed prerequisites to use it.
17568         * modules/memchr-tests (Files, Depends-on, configure.ac):
17569         Likewise, to avoid implicit reliance on memchr module prereqs.
17570         * tests/test-memchr.c (main): Ensure proper masking.
17571         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
17572         reads.
17573
17574         memchr: detect glibc Alpha bug
17575         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
17576         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
17577         Alpha.
17578         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
17579         * tests/test-memchr.c (main): Enhance test.
17580         Reported by Nelson H. F. Beebe.
17581
17582 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17583
17584         fts, getcwd, glob: audit for dirfd returning -1
17585         * lib/fts.c (opendir): Remove #define; no longer used.
17586         (opendirat): New arg PDIR_FD.  All callers changed.
17587         (fts_build, _opendir2): Use new opendirat to avoid the need for
17588         dirfd, or for checking whether dirfd returns a negative value.
17589         Don't use opendir; always use openat followed by fdopendir.
17590         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
17591         it.
17592         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
17593         returns -1 here.
17594         * modules/fts (Depends-on): Remove dirfd.
17595         * modules/getcwd (Depends-on): Likewise.
17596
17597 2010-09-13  Eric Blake  <eblake@redhat.com>
17598
17599         float: fix broken MirBSD header
17600         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
17601         * doc/posix-headers/float.texi (float.h): Document it.
17602
17603 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17604
17605         fts: use O_NOFOLLOW to avoid race condition when opening a directory
17606         * lib/fts.c (opendirat): New arg extra_flags.
17607         (__opendir2): Use it to avoid following symlinks when opening
17608         a directory, if symlinks are not supposed to be followed.  See
17609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
17610
17611         fdopendir: preserve argument fd before returning
17612         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
17613         (fdopendir_with_dup, fd_clone_opendir): New static functions.
17614         (fdopendir): Use them, arranging for FD to be open to the same
17615         directory that it was when it started.  (It might be temporarily
17616         closed while fdopendir is running, so this not thread- or
17617         signal-safe.)  Be careful to do the right thing even when file
17618         descriptors are scarce and dup fails with errno == EMFILE.  See
17619         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
17620
17621 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
17622
17623         regex: Pass the system regex if its only problem is 32-bit regoff_t.
17624         * NEWS: Document change.
17625         * m4/regex.m4: Disable test for regoff_t size.
17626
17627 2010-09-13  Jim Meyering  <meyering@redhat.com>
17628
17629         fts: don't operate on an invalid file descriptor after failed dup
17630         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
17631         negative file descriptor.
17632
17633 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17634
17635         savedir: add streamsavedir, deprecate fdsavedir
17636         * NEWS: Mention deprecation of fdsavedir.
17637         * lib/savedir.c (streamsavedir): New extern function, whose name
17638         ends in "savedir" to be consistent with the others.  This differs
17639         from savedirstream in that it doesn't close its argument.  The
17640         next version of GNU tar will use this instead of fdsavedir, to
17641         avoid some race conditions and conserve file descriptors.
17642         (savedirstream): Reimplement as a wrapper around streamsavedir.
17643         (fdsavedir): Add a comment deprecating this function.  As far as
17644         I know, only GNU tar used it, and GNU tar doesn't need it any more.
17645         * lib/savedir.h (streamsavedir): New decl.
17646         (fdsavedir): Add a comment deprecating this.
17647
17648 2010-09-10  Bruno Haible  <bruno@clisp.org>
17649
17650         langinfo: Fix last commit.
17651         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
17652         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
17653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17654
17655 2010-09-10  Bruno Haible  <bruno@clisp.org>
17656
17657         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
17658         * lib/progreloc.c (O_EXEC): Define fallback.
17659
17660 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17661
17662         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
17663         * NEWS: Document recent changes to fcntl-h.
17664         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17665         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17666         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17667         Similarly for O_SEARCH; this last was already true, but not documented.
17668         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17669         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17670         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17671         Likewise.
17672         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17673         is zero, not whether it is defined.
17674         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17675         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17676         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17677
17678 2010-09-10  Bruno Haible  <bruno@clisp.org>
17679
17680         langinfo, nl_langinfo: Fix for IRIX 5.3.
17681         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17682         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17683         HAVE_LANGINFO_YESEXPR.
17684         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17685         HAVE_LANGINFO_YESEXPR.
17686         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17687         HAVE_LANGINFO_T_FMT_AMPM is 0.
17688         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17689         HAVE_LANGINFO_YESEXPR is 0.
17690         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17691         NOEXPR.
17692         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17693         * doc/posix-functions/nl_langinfo.texi: Likewise.
17694         Reported by Eric Blake.
17695
17696 2010-09-10  Bruno Haible  <bruno@clisp.org>
17697
17698         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17699         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17700         on FreeBSD 8.0 and OpenBSD 4.6.
17701         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17702         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17703         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17704         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17705         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17706         ac_includes_default.
17707         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17708
17709 2010-09-09  Eric Blake  <eblake@redhat.com>
17710
17711         strsignal: work around NetBSD bug
17712         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17713         * lib/string.in.h (includes): Likewise.
17714         * doc/posix-functions/strsignal.texi (strsignal): Document the
17715         bug.
17716         Reported by Nelson H. F. Beebe.
17717
17718         gnulib-tool: work with NetBSD /bin/sh
17719         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17720         (func_get_description, func_get_comment, func_get_status)
17721         (func_get_notice, func_get_applicability, func_get_filelist)
17722         (func_get_dependencies, func_get_autoconf_early_snippet)
17723         (func_get_autoconf_snippet, func_get_automake_snippet)
17724         (func_get_include_directive, func_get_link_directive)
17725         (func_get_license, func_get_maintainer, func_import): Avoid
17726         shell syntax errors from parsing syntax extensions.
17727
17728 2010-09-09  Bruno Haible  <bruno@clisp.org>
17729
17730         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17731         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17732         a reliable way to determine whether the 'alias' command works.
17733
17734 2010-09-08  Jim Meyering  <meyering@redhat.com>
17735
17736         init.sh: penalize a set-x-impaired shell; don't disqualify it
17737         * tests/init.sh: Too many shells corrupt application stderr when
17738         you set -x, so we can't afford to disqualify them, since at least
17739         on Irix-6.5, that would disqualify all bourne shells.
17740         Instead, use a two-pass approach.
17741         On the first pass, try to find a shell that meets the stricter
17742         condition that set -x does not corrupt stderr.
17743         If no shell meets the stricter condition, retest each candidate
17744         shell, but without that extra condition.  Finally, when
17745         VERBOSE=yes is requested and set -x might cause trouble, simply
17746         issue a warning and refrain from enabling debug output.
17747
17748 2010-09-08  Eric Blake  <eblake@redhat.com>
17749
17750         unsetenv: fix OpenBSD bug
17751         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17752         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17753         documentation.
17754         Reported by Jim Meyering.
17755
17756         strtod: work around IRIX 6.5 bug
17757         * lib/strtod.c (strtod): Reparse number on shorter string if
17758         exponent parse was invalid.
17759         * tests/test-strtod.c (main): Add check for "0x1p 2".
17760         Reported by Tom G. Christensen.
17761
17762         getopt: optimize previous patch
17763         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17764         empty variable.  Speed up awk script.
17765         Reported by Paolo Bonzini.
17766
17767 2010-09-08  Jim Meyering  <meyering@redhat.com>
17768
17769         test.sh: disqualify shells for which set -x corrupts stderr
17770         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17771         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17772         appear in stderr output.  For example, this command:
17773             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17774         prints "P=1" on those two systems:
17775
17776 2010-09-08  Bruno Haible  <bruno@clisp.org>
17777
17778         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17779         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17780         commands, because some shells ignore redirections when there is an
17781         error in the command lookup.
17782         Reported by Eric Blake.
17783
17784 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17785
17786         * lib/regex.h: Fix a mention of `regex_compile' (should be
17787         `re_compile_pattern').
17788         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17789         (re_set_registers): Correct name of parameter in comment.
17790
17791         * doc/regex.texi: Add documentation for missing syntax flags.
17792         Remove commented-out documentation of defunct syntax option
17793         RE_NO_EMPTY_ALTS.
17794         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17795         Add documentation of re_set_registers.
17796         Document trick to re-use a pattern buffer by setting fastmap manually.
17797         Update documentation of struct re_pattern_buffer per public members.
17798         Uncomment documentation of equivalence class operators and
17799         collating symbol operators, since they are now implemented,
17800         Explain leftmost-longest matching in relation to alternatives.
17801         Tidy documentation of substring matching.
17802         Remove POSIX documentation, which is done better in
17803         glibc, and refer the reader there. Keep BSD API documentation, as
17804         that is not readily available elsewhere.
17805
17806 2010-09-07  Eric Blake  <eblake@redhat.com>
17807
17808         getopt: handle POSIXLY_CORRECT set but not exported
17809         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17810         export state of POSIXLY_CORRECT, due to bash set -o posix.
17811         Reported by Dustin J. Mitchell.
17812
17813 2010-09-05  Bruno Haible  <bruno@clisp.org>
17814
17815         gnulib-tool: Highlight the changed options.
17816         * gnulib-tool (func_usage): Display the --import, --add-import,
17817         --remove-import explanations in bold font.
17818
17819 2010-09-06  Karl Berry  <karl@gnu.org>
17820
17821         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17822
17823 2010-09-05  Bruno Haible  <bruno@clisp.org>
17824
17825         uniwidth/width: Update comment.
17826         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17827         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17828
17829 2010-09-05  Bruno Haible  <bruno@clisp.org>
17830
17831         isinf, isnan: Relax license.
17832         * modules/isinf (License): Change from GPL to LGPL, with consent from
17833         Ben Pfaff.
17834         * modules/isnan (License): Likewise.
17835         Requested by Ludovic Courtès.
17836
17837 2010-09-04  Bruno Haible  <bruno@clisp.org>
17838
17839         gnulib-tool: Help migration from --import to --add-import or --update.
17840         * gnulib-tool: Emit a verbose error message when --import is used
17841         without any module name.
17842
17843 2010-09-04  Bruno Haible  <bruno@clisp.org>
17844
17845         Update doc about gnulib-tool.
17846         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17847         'gnulib-tool --update' in more detail.
17848         Reported by Eric Blake.
17849
17850 2010-09-04  Bruno Haible  <bruno@clisp.org>
17851
17852         gnulib-tool: Change --import. New options --add/remove-import.
17853         * gnulib-tool: New options --add-import, --remove-import.
17854         (func_usage): Document them.
17855         (have_associative): Define always.
17856         (func_import): In import mode, don't merge the specified settings with
17857         the cached settings. Implement remove-import mode.
17858         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17859         Explain when to use them versus --import.
17860         (Simple update): Use --add-import instead of --import.
17861         * NEWS: Mention the change.
17862
17863 2010-09-04  Bruno Haible  <bruno@clisp.org>
17864
17865         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17866         separate gnulib.mk.
17867
17868 2010-09-04  Bruno Haible  <bruno@clisp.org>
17869
17870         gnulib-tool: Don't talk about CVS any more.
17871         * gnulib-tool (func_usage, func_import): Write "version control"
17872         instead of CVS.
17873
17874 2010-09-04  Jim Meyering  <meyering@redhat.com>
17875
17876         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17877         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17878         false positives (whose names may be ill-chosen) when searching
17879         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17880         would cause a false-positive.
17881
17882         avoid coreutils "make distcheck" failure
17883         Coreutils tests with an absolute build directory name that contains
17884         a space.  Not quoting this directory name caused a failure.
17885         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17886         * tests/test-vc-list-files-cvs.sh: Likewise.
17887
17888 2010-09-04  Bruno Haible  <bruno@clisp.org>
17889
17890         gnulib-tool: Avoid error when run in a package without Makefile.am.
17891         * gnulib-tool: When collecting the m4dirs in a package that does not
17892         have a Makefile.am, eliminate those directories that contain no
17893         gnulib-cache.m4. Fix expression that counts these directories.
17894
17895 2010-09-04  Bruno Haible  <bruno@clisp.org>
17896
17897         update-copyright test: Improve output when perl is missing or too old.
17898         * tests/test-update-copyright.sh: Move test of Perl version down after
17899         the test whether Perl exists. Provide an explanation relating Perl's
17900         error message to Automake's SKIP: message.
17901
17902 2010-09-04  Bruno Haible  <bruno@clisp.org>
17903
17904         Don't augment PATH in TESTS_ENVIRONMENT.
17905         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17906         set abs_aux_dir instead of augmenting PATH.
17907         * modules/vc-list-files-tests (Makefile.am): Likewise.
17908         * tests/test-update-copyright.sh: Augment PATH here.
17909         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17910         path_prepend_.
17911         * tests/test-vc-list-files-git.sh: Likewise.
17912
17913 2010-09-04  Jim Meyering  <meyering@redhat.com>
17914
17915         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17916         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17917
17918 2010-09-04  Bruno Haible  <bruno@clisp.org>
17919
17920         strdup: Fix compilation error in C++ mode.
17921         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17922         the macro.
17923
17924 2010-09-04  Bruno Haible  <bruno@clisp.org>
17925
17926         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17927         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17928         macro into a function.
17929         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17930
17931 2010-09-04  Bruno Haible  <bruno@clisp.org>
17932
17933         Set PATH_SEPARATOR the same way autoconf does.
17934         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17935         the value of PATH_SEPARATOR the same way autoconf-generated configure
17936         scripts do.
17937         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17938         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17939
17940 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17941
17942         Set PATH_SEPARATOR the same way autoconf does.
17943         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17944         the same way autoconf-generated configure scripts do.
17945         * posix-modules: Likewise.
17946
17947 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17948
17949         hash: fix safe_hasher const typo
17950         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17951         const; otherwise, there is a type error later.
17952
17953 2010-09-02  Jim Meyering  <meyering@redhat.com>
17954
17955         test-update-copyright.sh: require perl 5.8.0
17956         * tests/test-update-copyright.sh: Require 5.8.0,
17957         which Tom G. Christensen has confirmed is adequate,
17958         while 5.6.1 is not.
17959
17960 2010-09-02  Eric Blake  <eblake@redhat.com>
17961
17962         tests: init.sh improvements for re-exec'ing with zsh
17963         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17964         -vx through shell re-exec.
17965         Reported by Tom G. Christensen.
17966
17967         wctype: fix typo in previous commit
17968         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17969         Reported by Ludovic Courtès.
17970
17971 2010-09-02  Jim Meyering  <meyering@redhat.com>
17972
17973         test-update-copyright.sh: skip test if Perl is too old
17974         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17975         Reported by Tom G. Christensen.
17976
17977 2010-09-02  Bruno Haible  <bruno@clisp.org>
17978
17979         wctype: Avoid compilation error on IRIX 6.5.30.
17980         * lib/wctype.in.h (iswblank): Declare with a replacement if
17981         REPLACE_ISWBLANK is set.
17982         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17983         declared. Set REPLACE_ISWBLANK.
17984         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17985         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17986         * doc/posix-headers/wctype.texi: Likewise.
17987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17988
17989 2010-09-01  Bruno Haible  <bruno@clisp.org>
17990
17991         New module 'socketlib'.
17992         * modules/socketlib: New file.
17993         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17994         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17995         * modules/sockets (Depends-on): Add socketlib.
17996         Suggested by Sam Steingold <sds@gnu.org>.
17997
17998 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17999
18000         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
18001
18002         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
18003         when one needs search access to a directory but not read access.
18004         On systems where it is available, it works in some cases where
18005         O_RDONLY does not, namely on directories that are searchable but
18006         not readable, and which need only to be searchable.  If O_SEARCH
18007         is not available, fall back to the traditional method of using
18008         O_RDONLY.
18009
18010         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
18011         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
18012         when opening a directory that needs only to be searchable.
18013         * lib/chdir-safer.c (chdir_no_follow): Likewise.
18014         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
18015         * lib/openat-proc.c (openat_proc_name): Likewise.
18016         * lib/openat.c (openat_needs_fchdir): Likewise.
18017         * lib/save-cwd.c (save_cwd): Likewise.
18018         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
18019
18020 2010-08-28  Bruno Haible  <bruno@clisp.org>
18021
18022         New module 'host-cpu-c-abi'.
18023         * modules/host-cpu-c-abi: New file.
18024         * m4/host-cpu-c-abi.m4: New file, based on part of
18025         clisp/src/m4/general.m4.
18026         Requested by Sam Steingold <sds@gnu.org>.
18027
18028 2010-08-31  Eric Blake  <eblake@redhat.com>
18029         and Jim Meyering  <meyering@redhat.com>
18030
18031         hash: factor, and guard against misbehaving hasher function
18032         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
18033         of table->hasher's return value.  Also protect against a hash value
18034         so large that adding it to table->bucket results in a NULL pointer.
18035         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
18036         Use it in place of open-coded check-and-abort.
18037
18038 2010-08-30  Bruno Haible  <bruno@clisp.org>
18039
18040         hash: silence spurious clang warning
18041         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
18042         Reported by Eric Blake.
18043
18044 2010-08-30  Eric Blake  <eblake@redhat.com>
18045
18046         strstr, memmem, strcasestr: avoid leaked shell message
18047         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
18048         FreeBSD.
18049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18050         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18051
18052         tests: silence clang warning
18053         * tests/test-malloca.c (do_allocation): Avoid dead store.
18054
18055 2010-08-29  Bruno Haible  <bruno@clisp.org>
18056
18057         gettext: Fix recent mistake.
18058         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
18059
18060 2010-08-29  Bruno Haible  <bruno@clisp.org>
18061
18062         selinux-h: Offer a --without-selinux option.
18063         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
18064         --without-selinux was specified, skip all tests and define
18065         HAVE_SELINUX_SELINUX_H to 0.
18066         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
18067         set LIB_SELINUX to empty.
18068         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
18069         gl_LIBSELINUX. If --without-selinux was specified, replace
18070         selinux/context.h.
18071         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
18072
18073 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18074             Bruno Haible  <bruno@clisp.org>
18075
18076         Make the module 'realloc-gnu' work again on AIX and OSF/1.
18077         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
18078         of HAVE_REALLOC.
18079         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
18080         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
18081         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
18082         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18083
18084 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18085             Bruno Haible  <bruno@clisp.org>
18086
18087         Make the module 'calloc-gnu' work again on AIX and OSF/1.
18088         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
18089         HAVE_CALLOC.
18090         * lib/xmalloc.c: Update accordingly.
18091         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
18092         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
18093         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18094
18095 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18096             Bruno Haible  <bruno@clisp.org>
18097
18098         Make the module 'malloc-gnu' work again on AIX and OSF/1.
18099         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
18100         HAVE_MALLOC.
18101         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
18102         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
18103         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18104
18105 2010-08-29  Bruno Haible  <bruno@clisp.org>
18106
18107         Update modules list.
18108         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
18109         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
18110         (String handling <string.h>): Add astrxfrm.
18111         (File system functions): Add readlinkat.
18112
18113 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18114
18115         Tests for module 'realloc-gnu'.
18116         * modules/realloc-gnu-tests: New file.
18117         * tests/test-realloc-gnu.c: New file.
18118
18119         Tests for module 'calloc-gnu'.
18120         * modules/calloc-gnu-tests: New file.
18121         * tests/test-calloc-gnu.c: New file.
18122
18123         Tests for module 'malloc-gnu'.
18124         * modules/malloc-gnu-tests: New file.
18125         * tests/test-malloc-gnu.c: New file.
18126
18127 2010-08-28  Bruno Haible  <bruno@clisp.org>
18128
18129         Rename module 'realloc' -> 'realloc-gnu'.
18130         * modules/realloc-gnu: New file, copied from modules/realloc.
18131         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
18132         obsolete.
18133         * modules/mgetgroups (Depends-on): Update.
18134         * doc/posix-functions/realloc.texi: Update.
18135         * NEWS: Mention the change.
18136
18137         Rename module 'calloc' -> 'calloc-gnu'.
18138         * modules/calloc-gnu: New file, copied from modules/calloc.
18139         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
18140         obsolete.
18141         * doc/posix-functions/calloc.texi: Update.
18142         * NEWS: Mention the change.
18143
18144         Rename module 'malloc' -> 'malloc-gnu'.
18145         * modules/malloc-gnu: New file, copied from modules/malloc.
18146         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
18147         obsolete.
18148         * modules/argp (Depends-on): Update.
18149         * modules/regex (Depends-on): Update.
18150         * doc/posix-functions/malloc.texi: Update.
18151         * NEWS: Mention the change.
18152
18153 2010-08-28  Eric Blake  <eblake@redhat.com>
18154
18155         pread, pwrite: add missing dependency
18156         * modules/pread (Depends-on): Add extensions.
18157         * modules/pwrite (Depends-on): Likewise.
18158
18159 2010-08-28  Bruno Haible  <bruno@clisp.org>
18160
18161         unistr/u*-strchr: Fix tests dependencies.
18162         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
18163         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
18164         Reported by Ian Beckwith <ianb@erislabs.net>.
18165
18166 2010-08-28  Bruno Haible  <bruno@clisp.org>
18167
18168         read-file: Don't occupy too much unused memory.
18169         * lib/read-file.c (fread_file): Shrink the buffer at the end.
18170
18171 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
18172             Eric Blake  <eblake@redhat.com>
18173             Bruno Haible  <bruno@clisp.org>
18174
18175         read-file: Avoid memory reallocations with regular files.
18176         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
18177         (fread_file): With regular files, use the remaining length as the
18178         initial buffer size.  Check against overflow.
18179         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
18180         sys_stat.
18181
18182 2010-08-28  Bruno Haible  <bruno@clisp.org>
18183
18184         ftello: Relax license.
18185         * modules/ftello (License): Relax to LGPLv2+.
18186         Reported by Eric Blake.
18187
18188 2010-08-28  Bruno Haible  <bruno@clisp.org>
18189
18190         Avoid relocwrapper link errors due to gnulib replacement functions.
18191         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
18192         function.
18193         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18194
18195 2010-08-28  Bruno Haible  <bruno@clisp.org>
18196
18197         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
18198         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
18199         defined.
18200         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
18201         Suggested by Eric Blake.
18202
18203 2010-08-28  Bruno Haible  <bruno@clisp.org>
18204
18205         sys_socket, netdb: Ensure socklen_t gets defined.
18206         * modules/sys_socket (Depends-on): Add socklen.
18207         * modules/netdb (Depends-on): Likewise.
18208         * modules/getaddrinfo (Depends-on): Remove socklen.
18209         * modules/getsockopt (Depends-on): Likewise.
18210         * modules/setsockopt (Depends-on): Likewise.
18211         * tests/test-sys_socket.c: Check that socklen_t is defined.
18212         * tests/test-netdb.c: Likewise.
18213         * m4/socklen.m4: Update comments.
18214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18215
18216 2010-08-27  Eric Blake  <eblake@redhat.com>
18217
18218         login_tty: add missing dependency
18219         * modules/login_tty (Depends-on): Add pty.
18220
18221 2010-08-26  Eric Blake  <eblake@redhat.com>
18222
18223         lib-symbol-versions: fix m4 quoting
18224         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
18225         format for AC_LINK_IFELSE.
18226
18227         glob: fix compile test
18228         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
18229
18230         btowc: fix missing file
18231         * modules/btowc (Files): Also ship locale-fr.m4.
18232
18233         lseek: fix link test
18234         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
18235         AC_LINK_IFELSE.
18236
18237         include_next: silence autoconf 2.68 warning
18238         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
18239         AC_COMPILE_IFELSE as special.
18240         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
18241         autoconf < 2.68.
18242
18243         acl: fix compilation test
18244         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
18245         AC_COMPILE_IFELSE.
18246
18247 2010-08-26  Bruno Haible  <bruno@clisp.org>
18248
18249         Modernize AC_TRY_RUN invocations.
18250         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
18251         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18252         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
18253         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
18254         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18255         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18256         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18257         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18258         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18259         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18260         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18261         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18262         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18263         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18264         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18265         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18266         gl_MBRLEN_NUL_RETVAL): Likewise.
18267         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18268         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18269         Likewise.
18270         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18271         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18272         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18273         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18274         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18275         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18276         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
18277         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18278         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
18279         Likewise.
18280         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18281         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18282         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18283         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18284         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18285         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18286         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18287         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
18288         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18289         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18290
18291 2010-08-26  Bruno Haible  <bruno@clisp.org>
18292
18293         Modernize AC_TRY_LINK invocations.
18294         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
18295         AC_TRY_LINK.
18296         * m4/argp.m4 (gl_ARGP): Likewise.
18297         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
18298         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18299         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18300         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18301         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18302         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
18303         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
18304         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18305         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18306         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18307         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18308         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
18309         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
18310         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18311         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18312         * m4/hostent.m4 (gl_HOSTENT): Likewise.
18313         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18314         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
18315         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18316         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
18317         Likewise.
18318         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
18319         Likewise.
18320         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
18321         Likewise.
18322         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
18324         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
18325         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18326         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
18327         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18328         * m4/servent.m4 (gl_SERVENT): Likewise.
18329         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18330         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
18331         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
18332         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
18333         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18334         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18335         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18336         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18337         * modules/tsearch-tests (configure.ac): Likewise.
18338
18339 2010-08-26  Bruno Haible  <bruno@clisp.org>
18340
18341         Modernize AC_TRY_COMPILE invocations.
18342         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
18343         AC_TRY_COMPILE.
18344         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
18345         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
18346         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18347         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18348         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18349         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18350         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18351         * m4/lock.m4 (gl_LOCK): Likewise.
18352         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18353         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18354         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
18355         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18356         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18357         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
18358         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
18360         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18361         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18362         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18363         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18364         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
18365         extraneous semicolon.
18366
18367 2010-08-26  Jim Meyering  <meyering@redhat.com>
18368
18369         stat-time: relax license LGPL
18370         * modules/stat-time (License): Change from GPL to LGPL,
18371         with consent from all contributors, for use in libguile.
18372         Requested by Ludovic Courtès.
18373
18374 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
18375
18376         poll: return immediately on POLLHUP.
18377         * lib/poll.c (poll): Always set timeout before wait_timeout is
18378         computed.
18379
18380 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18381
18382         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
18383         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
18384         rmdir ("dir/.//"), unlinkat.
18385
18386 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18387
18388         stdbool: avoid spurious failure with modern xlc
18389         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18390
18391 2010-08-24  Bruno Haible  <bruno@clisp.org>
18392
18393         getloadavg: simplify code
18394         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
18395         gl_have_func. Update comments.
18396
18397 2010-08-24  Eric Blake  <eblake@redhat.com>
18398
18399         getloadavg: don't define SVR4 on cygwin
18400         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
18401         only define SVR4 when -lkvm is required.
18402         Reported by Yaakov Selkowitz.
18403
18404 2010-08-24  Bruno Haible  <bruno@clisp.org>
18405
18406         priv-set: fix comment
18407         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
18408
18409 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18410
18411         priv-set: fix comments
18412         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
18413         to match code, as suggested by David Bartley in:
18414         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
18415
18416 2010-08-23  Eric Blake  <eblake@redhat.com>
18417
18418         stdbool: avoid rejecting clang
18419         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18420         * tests/test-stdbool.c: Enable more tests if using the system
18421         <stdbool.h> instead of the gnulib replacement.
18422         (main): Move xlc bug test to a runtime test for all compilers.
18423         Reported by Anders Kaseorg.
18424
18425         argz: fix shell quoting issue
18426         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
18427         Reported by Charles Wilson.
18428
18429 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
18430             Erik Faye-Lund <kusmabite@gmail.com>
18431
18432         poll, select: handle ERROR_BROKEN_PIPE.
18433         * lib/poll.c (win32_compute_revents): Return POLLHUP when
18434         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18435         * lib/select.c (win32_compute_revents): Do not mark a pipe
18436         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18437
18438 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
18439
18440         fts: allow compilation with C++
18441         * lib/fts_.h: Specify extern "C" linkage with C++.
18442
18443 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18444
18445         Fix gnulib-tool sed script de-commentation for AIX sed.
18446         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
18447         sed.
18448
18449 2010-08-17  Eric Blake  <eblake@redhat.com>
18450
18451         test-stddef: test for (some) offsetof bugs
18452         * tests/test-stddef.c: Enhance test to ensure correct type of
18453         offsetof.
18454         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
18455         that we are not fixing at this time.
18456
18457 2010-08-15  Bruno Haible  <bruno@clisp.org>
18458
18459         stpncpy: Allow stpncpy to be defined as a macro.
18460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
18461         if it's already correctly declared.
18462         * lib/string.in.h (stpncpy): Undefine before redefining.
18463         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
18464
18465 2010-08-14  Bruno Haible  <bruno@clisp.org>
18466
18467         Rename module 'memxfrm' to 'amemxfrm'.
18468         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
18469         (amemxfrm): Renamed from memxfrm.
18470         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
18471         (amemxfrm): Renamed from memxfrm.
18472         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
18473         * NEWS: Mention the change.
18474         * MODULES.html.sh (String handling <string.h>): Update.
18475         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
18476         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
18477         * lib/unicase/u16-casexfrm.c: Likewise.
18478         * lib/unicase/u32-casexfrm.c: Likewise.
18479         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
18480         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
18481         * lib/uninorm/u16-normxfrm.c: Likewise.
18482         * lib/uninorm/u32-normxfrm.c: Likewise.
18483         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
18484         memxfrm.
18485         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
18486         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
18487         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
18488         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
18489         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
18490         Suggested by Paul Eggert.
18491
18492 2010-08-14  Bruno Haible  <bruno@clisp.org>
18493
18494         Tests for module 'astrxfrm'.
18495         * modules/astrxfrm-tests: New file.
18496         * tests/test-astrxfrm.c: New file.
18497
18498         New module 'astrxfrm'.
18499         * lib/astrxfrm.h: New file.
18500         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
18501         * modules/astrxfrm: New file.
18502
18503 2010-08-14  Reuben Thomas <rrt@sc3d.org>
18504
18505         regex: Tweak doc.
18506         * doc/regex.texi (Overview): Don't mention regex.c.
18507         (GNU Regular Expression Compiling): Likewise.
18508         (Match-end-of-line Operator): Mention 'not_eol'.
18509
18510 2010-08-14  Brian Gough  <bjg@gnu.org>
18511             Bruno Haible  <bruno@clisp.org>
18512
18513         git-merge-changelog: add doc relating to use with bzr and hg.
18514         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
18515
18516 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
18517
18518         pthread: fix pthread.h creation for srcdir != builddir
18519         * modules/pthread (Makefile.am): Fix the rule to work also in a
18520         non-srcdir build.
18521
18522 2010-08-13  Karl Berry  <karl@gnu.org>
18523
18524         * doc/regex.texi (Predefined Syntaxes): @smallexample.
18525         * doc/posix-*/*: force line break before @url of POSIX
18526         specifications.
18527         Suggested by Werner Lemberg.
18528
18529 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18530
18531         strtod: fix const diagnostic
18532         * lib/strtod.c (strtod): Don't assign const char * to char *,
18533         as this elicits a warning from GCC when warnings are enabled.
18534
18535 2010-08-10  Pádraig Brady <P@draigbrady.com>
18536         and Eric Blake  <eblake@redhat.com>
18537
18538         copy-acl: ignore ENOTSUP on HP-UX
18539         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
18540         so that it is available for HP-UX.
18541         * lib/copy-acl.c (qcopy_acl): Use it.
18542         Reported by Patrick M. Callahan.
18543
18544 2010-08-10  Eric Blake  <eblake@redhat.com>
18545
18546         open, chown: relax license
18547         * modules/open (License): Change to LGPLv2+, with consent by all
18548         authors, for use in augeas.
18549         * modules/chown (License): Likewise.
18550         * modules/lchown (Likewise): Likewise.
18551         Requested by Adam Stokes.
18552
18553 2010-08-09  Karl Berry  <karl@gnu.org>
18554
18555         * build-aux/ar-lib: new file, import from Automake.
18556         * config/srclist.txt: autocheck for updates.
18557
18558 2010-08-09  Eric Blake  <eblake@redhat.com>
18559
18560         readlinkat: adjust client modules
18561         * modules/areadlinkat (Depends-on): Use readlinkat, not
18562         symlinkat.
18563         * modules/areadlinkat-with-size (Depends-on): Likewise.
18564
18565         mknod: be more vocal about danger of running tests as root
18566         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
18567         root, since that is just asking for problems.
18568         Suggested by Bruno Haible, based on a report by Rainer Tammer.
18569
18570         readlinkat: split into its own module
18571         * modules/symlinkat: Split readlinkat...
18572         * modules/readlinkat: ...into separate module.
18573         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
18574         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
18575         * lib/symlinkat.c (readlinkat): Move...
18576         * lib/readlinkat.c: ...into new file.
18577         * modules/symlinkat-tests: Split readlinkat test...
18578         * modules/readlinkat-tests: ...into separate module.
18579         * tests/test-symlinkat.c: Split...
18580         * tests/test-readlinkat.c: ...into new file.
18581         * NEWS: Document the split.
18582         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18583         * lib/unistd.in.h (readlinkat): Likewise.
18584         Suggested by Bruno Haible.
18585
18586 2010-08-08  Bruno Haible  <bruno@clisp.org>
18587
18588         memxfrm: Speed up.
18589         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
18590         that usually only one call to strxfrm is necessary for each string
18591         part.
18592         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18593
18594 2010-08-07  Karl Berry  <karl@gnu.org>
18595
18596         * doc/posix-headers/limits.texi,
18597         * doc/posix-functions/malloc.texi,
18598         * doc/posix-functions/strsignal.texi: missing @item.
18599         * doc/ld-version-script.texi: spurious leading i.
18600         * doc/regex.texi (Interval Operators): no commas inside @var.
18601
18602 2010-08-01  Bruno Haible  <bruno@clisp.org>
18603
18604         Integrate the regex documentation.
18605         * doc/gnulib.texi: Define 'cn' index.
18606         (Regular expressions): New a chapter that includes regex.texi and
18607         regexprops-generic.texi.
18608         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
18609         syntax.
18610
18611         Whitespace cleanup.
18612         * doc/regex.texi: Remove trailing spaces.
18613
18614         Add regex documentation.
18615         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
18616         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
18617         Written by Kathy A. Hargreaves and Karl Berry.
18618
18619 2010-08-01  Bruno Haible  <bruno@clisp.org>
18620
18621         link: Update documentation.
18622         * doc/posix-functions/link.texi: Update regarding Solaris.
18623
18624 2010-07-31  Bruno Haible  <bruno@clisp.org>
18625
18626         Update modules list.
18627         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
18628         (String handling <string.h>): Add memcmp2, memxfrm.
18629         (Container data structures): Add xlist, xsublist, xoset.
18630         (Core language properties): Add alignof, unused-parameter.
18631         (Process control, Numeric conversion functions <stdlib.h>): Renamed
18632         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
18633         (Unibyte characters <ctype.h>): New section.
18634         (String handling <string.h>): New section.
18635         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
18636         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
18637         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
18638         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
18639         tan, tanh, tanl, y0, y1, yn.
18640         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
18641         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
18642         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
18643         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
18644         unlockpt, vdprintf, vdprintf-posix.
18645         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
18646         (File system functions): Add concat-filename, sys_file, sys_ioctl,
18647         xconcat-filename.
18648         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
18649         getdtablesize, pipe2, pipe2-safer.
18650         (Security): New section.
18651         (Networking functions): Add accept4.
18652         (Signal handling): Add sigpipe.
18653         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
18654         mbmemcasecoll.
18655         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
18656         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
18657         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
18658         pipe-filter-ii.
18659         (Misc): Add argp-version-etc, login_tty, parse-duration.
18660
18661 2010-07-31  Bruno Haible  <bruno@clisp.org>
18662
18663         Improve doc in MODULES.html.
18664         * modules/linkat (Description): Add the word "function".
18665         * modules/mkfifo (Description): Likewise.
18666         * modules/mknod (Description): Likewise.
18667         * modules/remove (Description): Likewise.
18668         * modules/renameat (Description): Likewise.
18669         * modules/stat (Description): Likewise.
18670         * modules/symlink (Description): Likewise.
18671         * modules/unlink (Description): Likewise.
18672
18673 2010-07-31  Bruno Haible  <bruno@clisp.org>
18674
18675         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18676         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18677         option --enable/disable-c++ instead of --enable/disable-cxx.
18678         * NEWS: Mention the change.
18679
18680 2010-07-31  Bruno Haible  <bruno@clisp.org>
18681
18682         readlink, areadlink: Relax test a bit.
18683         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18684         alternative to ENOTDIR.
18685         * tests/test-areadlink.h (test_areadlink): Likewise.
18686         Reported by Rainer Tammer.
18687
18688 2010-07-31  Bruno Haible  <bruno@clisp.org>
18689
18690         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18691         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18692         character, perform the search using U_STRCHR.
18693         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18694         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18695         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18696         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18697         Suggested by Paolo Bonzini.
18698
18699 2010-07-31  Bruno Haible  <bruno@clisp.org>
18700
18701         unistr/u*-strstr: Fix dependencies.
18702         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18703         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18704         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18705
18706 2010-07-31  Bruno Haible  <bruno@clisp.org>
18707
18708         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18709         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18710         the beginning of the loop.
18711         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18712         cases in 'switch' statement.
18713
18714         unistr/u8-strchr: Fix several bugs.
18715         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18716         the string. When not found, return NULL, not a pointer near the end.
18717
18718         More tests for unistr/u8-strchr.
18719         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18720         that the function does not read past the first occurrence of the byte
18721         being searched.
18722         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18723         * tests/unistr/test-u16-strchr.c (main): New function.
18724         * tests/unistr/test-u32-strchr.c (main): New function.
18725
18726 2010-07-31  Bruno Haible  <bruno@clisp.org>
18727
18728         posix-modules: Ignore backup files of documentation files.
18729         * posix-modules: grep only through files named *.texi.
18730
18731 2010-07-31  Bruno Haible  <bruno@clisp.org>
18732
18733         symlinkat: Fix documentation.
18734         * doc/posix-functions/readlinkat.texi: Fix module name.
18735
18736 2010-07-31  Bruno Haible  <bruno@clisp.org>
18737
18738         fchownat: Replace also when chown has the trailing slash bug.
18739         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18740         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18741         introduced on 2010-04-10.
18742         Reported by Rainer Tammer.
18743
18744 2010-07-31  Bruno Haible  <bruno@clisp.org>
18745
18746         linkat: Work around AIX 7.1 bug.
18747         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18748         whether linkat handles trailing slash correctly. If not, replace linkat
18749         and define LINKAT_TRAILING_SLASH_BUG.
18750         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18751         check whether (fd1,file1) points to a directory if file1 or file2 ends
18752         in a slash. Code taken from lib/link.c.
18753         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18754         Reported by Rainer Tammer.
18755
18756 2010-07-31  Bruno Haible  <bruno@clisp.org>
18757
18758         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18759         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18760         This disables an xlc optimization that was causing wrong test results.
18761         Reported by Rainer Tammer.
18762
18763 2010-07-31  Bruno Haible  <bruno@clisp.org>
18764
18765         iconv: Work around AIX 6.1..7.1 bug.
18766         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18767         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18768         cross-compiling, guess no on all versions of AIX.
18769         Reported by Rainer Tammer.
18770
18771 2010-07-31  Bruno Haible  <bruno@clisp.org>
18772
18773         readlink: Relax test a bit.
18774         * tests/test-readlink.h (test_readlink): Allow different errno value
18775         when readlink is called with a file name that ends in / and refers to
18776         a file.
18777         Suggested by Eric Blake.
18778         Reported by Rainer Tammer.
18779
18780 2010-07-31  Bruno Haible  <bruno@clisp.org>
18781
18782         copysign: Does not require -lm on glibc systems.
18783         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18784         gl_COMMON_DOUBLE_MATHFUNC.
18785         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18786
18787 2010-07-31  Bruno Haible  <bruno@clisp.org>
18788
18789         duplocale: Work around AIX 7.1 bug.
18790         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18791         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18792         * lib/duplocale.c (rpl_duplocale): Update comment.
18793         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18794         Reported by Rainer Tammer.
18795
18796 2010-07-30  Bruno Haible  <bruno@clisp.org>
18797
18798         dirfd: Avoid link error on AIX 7.1.
18799         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18800         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18801         exist, set REPLACE_DIRFD.
18802         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18803         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18804         * doc/posix-functions/dirfd.texi: Update.
18805         Reported by Rainer Tammer.
18806
18807 2010-07-30  Eric Blake  <eblake@redhat.com>
18808
18809         strtod: next round of AIX fixes
18810         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18811         exponent.
18812         * tests/test-strtod.c (main): Enhance tests.
18813         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18814         Reported by Rainer Tammer.
18815
18816         futimens: fix configure check
18817         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18818         Reported by Bruno Haible.
18819
18820 2010-07-30  Bruno Haible  <bruno@clisp.org>
18821
18822         getline: Update regarding AIX.
18823         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18824         Reported by Rainer Tammer.
18825
18826 2010-07-30  Bruno Haible  <bruno@clisp.org>
18827
18828         wcwidth: Drop replacement on AIX 7.
18829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18830         AIX 7.
18831         Reported by Rainer Tammer.
18832
18833 2010-07-30  Bruno Haible  <bruno@clisp.org>
18834
18835         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18836         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18837         a 'char *'.
18838         Reported by Rainer Tammer.
18839
18840 2010-07-30  Bruno Haible  <bruno@clisp.org>
18841
18842         unlink: Update regarding AIX.
18843         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18844         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18845         Reported by Rainer Tammer.
18846
18847 2010-07-30  Bruno Haible  <bruno@clisp.org>
18848
18849         symlink: Update regarding AIX.
18850         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18851         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18852         Reported by Rainer Tammer.
18853
18854 2010-07-30  Bruno Haible  <bruno@clisp.org>
18855
18856         strndup: Update regarding AIX.
18857         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18858         AIX 7.
18859         Reported by Rainer Tammer.
18860
18861 2010-07-30  Bruno Haible  <bruno@clisp.org>
18862
18863         stat: Update regarding AIX.
18864         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18865         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18866         Reported by Rainer Tammer.
18867
18868 2010-07-30  Bruno Haible  <bruno@clisp.org>
18869
18870         truncl: Fix autoconf test.
18871         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18872         whether truncl works.
18873         Reported by Rainer Tammer.
18874
18875 2010-07-30  Bruno Haible  <bruno@clisp.org>
18876
18877         round: Update regarding AIX.
18878         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18879         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18880         Reported by Rainer Tammer.
18881
18882 2010-07-30  Bruno Haible  <bruno@clisp.org>
18883
18884         rename: Update regarding AIX.
18885         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18886         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18887         Reported by Rainer Tammer.
18888
18889 2010-07-30  Bruno Haible  <bruno@clisp.org>
18890
18891         printf.m4: Update regarding AIX.
18892         * m4/printf.m4: Update comments regarding AIX.
18893         Reported by Rainer Tammer.
18894
18895 2010-07-30  Bruno Haible  <bruno@clisp.org>
18896
18897         iconv: Update regarding AIX.
18898         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18899         AIX 7.
18900         Reported by Rainer Tammer.
18901
18902 2010-07-30  Bruno Haible  <bruno@clisp.org>
18903
18904         getopt: Update regarding AIX.
18905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18906         no on AIX.
18907         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18908         Reported by Rainer Tammer.
18909
18910 2010-07-30  Bruno Haible  <bruno@clisp.org>
18911
18912         ldexpl; Update regarding AIX.
18913         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18914         on AIX 7.
18915         Reported by Rainer Tammer.
18916
18917 2010-07-30  Bruno Haible  <bruno@clisp.org>
18918
18919         frexpl: Update regarding AIX.
18920         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18921         on AIX 7.
18922         Reported by Rainer Tammer.
18923
18924 2010-07-30  Bruno Haible  <bruno@clisp.org>
18925
18926         open, fopen: Update regarding AIX.
18927         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18928         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18929         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18930         * doc/posix-functions/fopen.texi: Likewise.
18931         Reported by Rainer Tammer.
18932
18933 2010-07-30  Bruno Haible  <bruno@clisp.org>
18934
18935         chown: Update doc regarding AIX.
18936         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18937         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18938         Reported by Rainer Tammer.
18939
18940 2010-07-30  Eric Blake  <eblake@redhat.com>
18941
18942         strtod: fix bug in replacement function on AIX
18943         * lib/strtod.c (strtod): Special case broken "0x" parse in
18944         underlying strtod.
18945         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18946         * doc/posix-functions/strtod.texi (strtod): Likewise.
18947         Reported by Rainer Tammer.
18948
18949 2010-07-30  Bruno Haible  <bruno@clisp.org>
18950
18951         mbrlen: Fix cross-compilation guess for AIX.
18952         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18953         guess. Leftover from 2008-12-22.
18954
18955 2010-07-30  Bruno Haible  <bruno@clisp.org>
18956
18957         mbrtowc: Fix cross-compilation guess for AIX.
18958         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18959         guess. Leftover from 2008-12-21.
18960
18961 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18962
18963         init.sh: work around trap limitation of some shells
18964         * tests/init.sh (setup_): Move exit trap outside of shell function.
18965
18966 2010-07-29  Eric Blake  <eblake@redhat.com>
18967
18968         strtod: aid debugging
18969         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18970         understanding why strtod is rejected.
18971
18972 2010-07-28  Bruno Haible  <bruno@clisp.org>
18973
18974         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18975         * lib/unistr/u8-chr.c: Include <string.h>.
18976         * tests/unistr/test-u8-chr.c: Likewise.
18977         * tests/unistr/test-u16-chr.c: Likewise.
18978         * tests/unistr/test-u32-chr.c: Likewise.
18979         * tests/unistr/test-u8-strchr.c: Likewise.
18980         * tests/unistr/test-u16-strchr.c: Likewise.
18981         * tests/unistr/test-u32-strchr.c: Likewise.
18982         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18983         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18984         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18985         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18986
18987 2010-07-28  Bruno Haible  <bruno@clisp.org>
18988
18989         Use spaces for indentation, not tabs.
18990         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18991
18992 2010-07-27  Bruno Haible  <bruno@clisp.org>
18993
18994         mbspcasecmp: Fix function specification.
18995         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18996         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18997         Reported by Eric Blake <eblake@redhat.com>.
18998
18999 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
19000
19001         timespec: use cast and not conditional, as truncation isn't possible
19002         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
19003         instead of a conditional.  Comment about the situation in more detail.
19004         This undoes most of the 2009-10-29 patch.
19005
19006 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
19007
19008         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
19009         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
19010         * lib/unistr/u8-strchr.c: Likewise.
19011         * modules/unistr/u8-chr: Depend on memchr.
19012
19013         unistr/u*-strchr: add tests
19014         * modules/unistr/u8-strchr-tests: New file.
19015         * modules/unistr/u16-strchr-tests: New file.
19016         * modules/unistr/u32-strchr-tests: New file.
19017         * tests/unistr/test-strchr.h: New file.
19018         * tests/unistr/test-u8-strchr.c: New file.
19019         * tests/unistr/test-u16-strchr.c: New file.
19020         * tests/unistr/test-u32-strchr.c: New file.
19021
19022         unistr/u*-chr: test multibyte sequences more
19023         * tests/unistr/test-chr.h: Do complete testing of the characters in the
19024         test vector.
19025         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
19026         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
19027         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
19028
19029         unistr/u*-chr: test multibyte sequences
19030         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
19031
19032         unistr/u*-chr: prepare for multibyte tests
19033         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
19034         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
19035         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
19036         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
19037         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
19038         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
19039
19040 2010-07-18  Bruno Haible  <bruno@clisp.org>
19041
19042         unistr/u8-strchr: Optimize non-ASCII argument case.
19043         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
19044         because the first byte often matches anyway.
19045         Reported by Pádraig Brady <P@draigbrady.com>.
19046
19047 2010-07-15  Karl Berry  <karl@gnu.org>
19048
19049         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
19050
19051 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
19052
19053         getcwd: on Solaris, work better if ancestors are inaccessible
19054         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
19055         buffer and size, try again with a large buffer.  This works better
19056         on Solaris, since its getcwd succeeds even if the path to the root
19057         is inaccessible, and this is helpful in common cases such as .zfs
19058         hidden directories.  Problem reported by J Chapman Flack in
19059         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
19060         Use system getcwd if it's declared, not merely if it's partly
19061         working; use the partly-working test only to avoid needless effort
19062         if the system getcwd fails.
19063         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
19064         comment that was already obsolete and is now even more obsolete.
19065         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
19066         now might call strdup.
19067
19068 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
19069
19070         pthread: Add enough so that coreutils/src/sort.c compiles.
19071         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
19072         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
19073         gnulib. Include <sched.h> and <time.h>, as per POSIX.
19074         Include <sys/types.h>, in case it defines pthread_t.
19075         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
19076         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
19077         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
19078         (pthread_rwlockattr_t, pthread_spinlock_t):
19079         New typedefs, if HAVE_PTHREAD_T is not defined.
19080         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
19081         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
19082         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
19083         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
19084         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
19085         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
19086         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
19087         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
19088         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
19089         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
19090         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
19091         New macros.
19092         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
19093         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
19094         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
19095         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
19096         (pthread_spin_unlock): New dummy functions.
19097         (pthread_create): Return EAGAIN; don't set errno.
19098         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
19099         require AC_C_INLINE.
19100         * modules/pthread (Depends-on): Add sched, time.
19101         (pthread.h): Use AM_V_GEN.
19102
19103 2010-07-13  Bruno Haible  <bruno@clisp.org>
19104
19105         striconveh: Don't malloc memory if the result buffer is sufficient.
19106         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
19107         buffer if its size is sufficient.
19108         Reported by Ludovic Courtès <ludo@gnu.org>.
19109
19110 2010-07-13  Bruno Haible  <bruno@clisp.org>
19111
19112         strtod: Add safety check.
19113         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
19114
19115 2010-07-12  Bruno Haible  <bruno@clisp.org>
19116
19117         Unify tests that set gl_cv_func_ldexpl_no_libm.
19118         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
19119         gl_FUNC_LDEXPL.
19120         (gl_FUNC_LDEXPL): Invoke it.
19121         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19122
19123 2010-07-12  Bruno Haible  <bruno@clisp.org>
19124
19125         Unify tests that set gl_cv_func_ldexp_no_libm.
19126         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
19127         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
19128         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
19129         (configure.ac): Simply invoke gl_FUNC_LDEXP.
19130         * modules/strtod (Files): Add m4/ldexp.m4.
19131
19132 2010-07-12  Bruno Haible  <bruno@clisp.org>
19133
19134         Unify tests that set gl_cv_func_frexpl_no_libm.
19135         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
19136         gl_FUNC_FREXPL_NO_LIBM.
19137         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
19138         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19139
19140 2010-07-12  Bruno Haible  <bruno@clisp.org>
19141
19142         Unify tests that set gl_cv_func_frexp_no_libm.
19143         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
19144         gl_FUNC_FREXP_NO_LIBM.
19145         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
19146         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19147
19148 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19149
19150         memcoll: clarify sizes versus lengths, document better, and tweak perf
19151         * lib/memcoll.c (strcoll_loop, memcoll0):
19152         Improve quality of descriptive comments.  Name variables
19153         consistently as to whether they are lengths (which do not include
19154         terminating null) versus sizes (which do).
19155         * lib/xmemcoll.c (xmemcoll0): Likewise.
19156         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
19157         returned when s1size == 0; this is easier to compile and saves
19158         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
19159
19160 2010-07-12  Bruno Haible  <bruno@clisp.org>
19161
19162         Tests for module '_Exit'.
19163         * modules/_Exit-tests: New file.
19164         * tests/test-_Exit.sh: New file.
19165         * tests/test-_Exit.c: New file.
19166
19167         New module '_Exit'.
19168         * lib/stdlib.in.h (__attribute__): New macro.
19169         (_Exit): New declaration.
19170         * lib/_Exit.c: New file.
19171         * m4/_Exit.m4: New file.
19172         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
19173         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
19174         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
19175         * modules/_Exit: New file.
19176         * tests/test-stdlib-c++.cc (_Exit): Check signature.
19177         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
19178
19179 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19180
19181         strtod: make it more-accurate typically, and don't require libm
19182         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
19183         Include limits.h.  Don't include string.h.
19184         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
19185         (locale_isspace): New function, so that no casts are needed to
19186         check whether *s is a space.
19187         (ldexp): Provide an unused dummy if not available.
19188         (scale_radix_exp, parse_number, underlying_strtod): New functions.
19189         (strtod): Use them.  This implementation prefers to use the
19190         underlying strtod if available, falling back on our own code
19191         only to fix known bugs.  This is more likely to produce an
19192         accurate result.  Also, it avoids the use of libm functions.
19193         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
19194         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
19195         was absent, but it caused a test failure with coreutils.
19196         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
19197         with libm.
19198         * modules/strtod (Makefile.am, Link): libm is no longer needed.
19199         * modules/strtod-tests (Makefile.am): Likewise.
19200
19201 2010-07-11  Pádraig Brady  <P@draigBrady.com>
19202             Bruno Haible  <bruno@clisp.org>
19203
19204         unistr/u8-strchr: Optimize ASCII argument case.
19205         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
19206
19207 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19208
19209         (x)memcoll: minor tweaks
19210         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
19211         is after the type that it qualifies.
19212         (memcoll0): Likewise.
19213         * lib/memcoll.h (memcoll0): Likewise.
19214         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
19215         * lib/xmemcoll.h (xmemcoll0): Likewise.
19216         * lib/memcoll.c (memcoll0): Correct the comment.  This function
19217         differs from memcoll in that the NUL byte is part of the argument.
19218         Omit the abort-checks, as performance is a real issue here.  Plus,
19219         the checks were wrong anyway (an off-by-one error).  Omit local
19220         variable 'diff', as it's a bit clearer that way.
19221         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
19222         no longer needed.
19223
19224 2010-07-08  Chen Guo <chenguo4@yahoo.com>
19225
19226         (x)memcoll: speedup when input is known to be NUL delimited
19227         * lib/memcoll.c: Include stdlib.
19228         (memcoll0): New function.
19229         (strcoll_loop): New function, refactored for use in both memcoll
19230         and memcoll0.
19231         * lib/memcoll.h (memcoll0): Add prototype.
19232         * lib/xmemcoll.c (xmemcoll0): New function.
19233         (collate_error): New function, refactored for use in both xmemcoll
19234         and xmemcoll0.
19235         * lib/xmemcoll.h (xmemcoll0): Add prototype.
19236         * m4/memcoll.m4: add inline invocation.
19237
19238 2010-07-06  Pádraig Brady  <P@draigBrady.com>
19239
19240         * build-aux/bootstrap: Remove any local translations
19241         from the translation project synchronization directory,
19242         so that local only translations are not distributed.
19243
19244 2010-07-04  Bruno Haible  <bruno@clisp.org>
19245
19246         fsusage: Clarify which code applies to which platforms.
19247         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
19248         platform.
19249         * lib/fsusage.c (get_fs_usage): Likewise.
19250
19251 2010-07-04  Bruno Haible  <bruno@clisp.org>
19252
19253         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
19254         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
19255         Reported by Martin Lambers <marlam@marlam.de>.
19256
19257 2010-07-04  Jim Meyering  <meyering@redhat.com>
19258
19259         hash: once again explicitly disallow insertion of NULL
19260         * lib/hash.c (hash_insert0): Reinstate just-removed test:
19261         inserting a NULL pointer cannot work with these functions.
19262         Add a comment with details.
19263         This reverts part of the 2010-07-01 commit, 5bef1a35
19264         "hash: extend module to deal with non-pointer keys".
19265
19266 2010-07-01  Bruno Haible  <bruno@clisp.org>
19267
19268         stdbool: Update doc.
19269         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
19270         Info from Christian Weisgerber <naddy@mips.inka.de>.
19271
19272 2010-07-01  Jim Meyering  <meyering@redhat.com>
19273
19274         hash: extend module to deal with non-pointer keys
19275         * lib/hash.c (hash_insert0): New interface, much like hash_insert
19276         but that allows insertion of non-pointer entries.
19277         Do not disallow an ENTRY value of NULL.
19278         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
19279         * lib/hash.h (hash_insert0): Declare.
19280
19281 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19282
19283         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
19284         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
19285         not present (i.e. with autoconf 2.59 and when using gettextize, not
19286         gnulib), require AC_GNU_SOURCE instead.
19287
19288 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
19289
19290         idpriv-drop: Fix tests.
19291         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
19292         not to the test-idpriv-droptemp program.
19293
19294 2010-06-29  Bruno Haible  <bruno@clisp.org>
19295
19296         string: Fix syntax error with g++ 2.96.
19297         * lib/string.in.h (__pure__): Remove definition.
19298         (_GL_ATTRIBUTE_PURE): New macro.
19299         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
19300         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
19301         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19302
19303 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
19304
19305         unitypes: Fix bug introduced on 2010-05-18.
19306         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
19307
19308 2010-06-22  Eric Blake  <eblake@redhat.com>
19309
19310         memmem: slight optimization
19311         * lib/str-two-way.h (critical_factorization): Update comments.
19312         Reduce work during factorization phase.
19313         Reported by Carlos Bueno <carlos@bueno.org>.
19314
19315 2010-06-21  Bruno Haible  <bruno@clisp.org>
19316
19317         Fix HAVE_CALLOC_POSIX misnomer.
19318         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
19319         !HAVE_CALLOC_POSIX.
19320         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
19321         HAVE_CALLOC_POSIX.
19322         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
19323         instead of HAVE_CALLOC_POSIX.
19324         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
19325         HAVE_CALLOC_POSIX.
19326
19327         Use modern idiom for calloc() replacement.
19328         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
19329         AC_FUNC_CALLOC.
19330         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
19331         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
19332         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19333         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
19334         (gl_REPLACE_CALLOC): New macro.
19335
19336 2010-06-21  Bruno Haible  <bruno@clisp.org>
19337
19338         Fix HAVE_REALLOC_POSIX misnomer.
19339         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
19340         !HAVE_REALLOC_POSIX.
19341         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
19342         HAVE_REALLOC_POSIX.
19343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
19344         instead of HAVE_REALLOC_POSIX.
19345         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
19346         HAVE_REALLOC_POSIX.
19347
19348         Use modern idiom for realloc() replacement.
19349         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
19350         AC_FUNC_REALLOC.
19351         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
19352         Autoconf's AC_FUNC_REALLOC.
19353         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19354         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
19355         (gl_REPLACE_REALLOC): New macro.
19356         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19357
19358 2010-06-21  Bruno Haible  <bruno@clisp.org>
19359
19360         Fix HAVE_MALLOC_POSIX misnomer.
19361         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
19362         !HAVE_MALLOC_POSIX.
19363         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
19364         HAVE_MALLOC_POSIX.
19365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
19366         instead of HAVE_MALLOC_POSIX.
19367         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
19368         HAVE_MALLOC_POSIX.
19369
19370         Use modern idiom for malloc() replacement.
19371         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
19372         AC_FUNC_MALLOC.
19373         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
19374         Autoconf's AC_FUNC_MALLOC.
19375         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19376         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
19377         (gl_REPLACE_MALLOC): New macro.
19378         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19379
19380 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
19381
19382         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
19383         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
19384         This macro takes 3 arguments, not 4.
19385
19386 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
19387
19388         ipv6: fix detection under mingw
19389         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
19390         in6_addr.
19391
19392 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
19393
19394         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
19395         that strtod() works when cross-compiling to a glibc version known
19396         to work.
19397
19398 2010-06-15  Bruno Haible  <bruno@clisp.org>
19399
19400         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
19401
19402 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
19403
19404         select: Correct timeout.
19405         * lib/select.c (rpl_select): Compute wait_timeout correctly.
19406
19407 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19408
19409         git-version-gen: init shell var to avoid env var influence
19410         * build-aux/git-version-gen (v): Init shell var to empty.
19411
19412 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
19413
19414         priv-set: Don't assume that priv.h exists merely because getppriv does.
19415         See Jan Andersen's bug report about AIX 5L in
19416         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
19417         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
19418         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
19419         * lib/priv-set.h: Likewise.
19420         * tests/test-priv-set.c: Likewise.
19421
19422 2010-06-13  Bruno Haible  <bruno@clisp.org>
19423
19424         relocatable: Make it easier to test whether to install wrappers.
19425         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
19426         RELOCATABLE_VIA_WRAPPER.
19427
19428 2010-06-13  Bruno Haible  <bruno@clisp.org>
19429
19430         gnulib-tool: Display specified modules and dependencies differently.
19431         * gnulib-tool (func_show_module_list): New function.
19432         (func_import, func_create_testdir): Invoke it.
19433         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19434
19435 2010-06-13  Bruno Haible  <bruno@clisp.org>
19436
19437         gnulib-tool: Align code of func_import and func_create_testdir.
19438         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
19439         specified_modules.
19440
19441 2010-06-12  Jim Meyering  <meyering@redhat.com>
19442
19443         test-inttostr: avoid spurious failure on Solaris 9
19444         * tests/test-inttostr.c (main): Skip the test when snprintf fails
19445         to accept "%ju".  Reported by Bruno Haible.
19446
19447 2010-06-11  Jim Meyering  <meyering@redhat.com>
19448
19449         test-sys_socket: mark variables as used more readably
19450         * tests/test-sys_socket.c (main): Mark otherwise unused variables
19451         as "used" explicitly via (void) statement casts.  This is more
19452         readable than using them in an artificial return expression.
19453         Suggestion from Bruno Haible.
19454
19455 2010-06-11  Bruno Haible  <bruno@clisp.org>
19456
19457         Avoid some more warnings from "gcc -Wwrite-strings".
19458         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
19459         to 'const char *'.
19460         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
19461         * tests/test-c-strcasestr.c (main): Likewise.
19462         * tests/test-mbscasestr1.c (main): Likewise.
19463         * tests/test-mbscasestr2.c (main): Likewise.
19464         * tests/test-memmem.c (main): Likewise.
19465         * tests/test-strstr.c (main): Likewise.
19466         * tests/test-strcasestr.c (main): Likewise.
19467
19468 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19469
19470         init.sh: change framework_failure_ to fail with status 99, not 1
19471         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
19472         automake's parallel-tests rule that this is an unexpected failure,
19473         even if the test is listed in XFAIL_TESTS.
19474
19475 2010-06-11  Jim Meyering  <meyering@redhat.com>
19476
19477         test-inttostr: avoid warnings about 4-6KB literal strings
19478         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
19479         Include "macros.h", for its definition of ASSERT.
19480         (CK): s/assert/ASSERT/
19481         * modules/inttostr-tests (Files): Add macros.h.
19482
19483         init.sh: don't use $ME_ or skip_ before they are defined
19484         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
19485         their first uses.  Also hoist their companions: warn_, fail_,
19486         framework_failure_, $stderr_fileno.  Prompted by a patch from
19487         Stefano Lattarini.
19488
19489         test-sys_socket: avoid set-but-not-used warnings from gcc
19490         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
19491         avoid warning about set-but-not-used variables.
19492
19493         test-xvasprintf: avoid 'const' discard warnings
19494         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
19495         "const" when assigning from literal strings.
19496         (test_xasprintf): Add "void" in function argument list to placate
19497         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
19498
19499         tests: avoid compilation warnings in argmatch and exclude tests...
19500         in packages that define ARGMATCH_DIE_DECL, like coreutils.
19501         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
19502         Since it always exits, declare with the "noreturn" attribute.
19503         * tests/test-argmatch.c: Likewise.
19504
19505         tests: avoid 'const' discard warnings in mbsstr tests
19506         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
19507         * tests/test-mbsstr2.c (main): Likewise.
19508
19509         test-verify: avoid warning from gcc's -Wmissing-declarations
19510         * tests/test-verify.c (function): Declare to be static.
19511
19512         test-inttostr.c: include <string.h> for use of strcmp
19513         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
19514
19515         test-linkat: avoid failed assertion on "other" architectures
19516         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
19517         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
19518         sparc: https://bugs.launchpad.net/bugs/591968
19519
19520 2010-06-11  Jim Meyering  <meyering@redhat.com>
19521
19522         printf.m4: avoid autoconf's "Expanded Before Required" warning
19523         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
19524         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
19525         autoconf warning.
19526
19527 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
19528
19529         Replacement header templates are now named with ".in", not "_".
19530         * doc/gnulib-intro.texi: Correct.
19531
19532 2010-06-10  Jim Meyering  <meyering@redhat.com>
19533
19534         inttostr-tests: depend on snprintf, not snprintf-posix
19535         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
19536         snprintf-posix, to avoid this aclocal failure:
19537           missing file gnulib-tests/vasnprintf.c
19538           configure.ac:45: error: expected source file, required through \
19539           AC_LIBSOURCES, not found
19540
19541 2010-06-10  Jim Meyering  <meyering@redhat.com>
19542
19543         inttostr: add a new function, inttostr, and tests
19544         The namesake function was not available.  The existence of the
19545         template file, inttostr.c makes its addition nontrivial.
19546         * lib/anytostr.c: Rename from inttostr.c.
19547         (anytostr): Rename from inttostr.
19548         * lib/inttostr.c: New file.
19549         * modules/inttostr (Files): Add anytostr.c.
19550         (Makefile.am): Set lib_SOURCES instead of ...
19551         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
19552         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
19553         * lib/offtostr.c: Likewise.
19554         * lib/uinttostr.c: Likewise.
19555         * lib/umaxtostr.c: Likewise.
19556         * modules/inttostr-tests: New file.
19557         * tests/test-inttostr.c: New file.  Test these functions.
19558
19559 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
19560             Bruno Haible  <bruno@clisp.org>
19561
19562         Add "Extending Gnulib" chapter to manual.
19563         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
19564         chapter.
19565         (Extending Gnulib): New chapter.
19566         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
19567         chapter.
19568
19569 2010-06-09  Bruno Haible  <bruno@clisp.org>
19570
19571         Avoid relocwrapper link errors due to gnulib replacement functions.
19572         * lib/areadlink.c: Use the system's malloc, realloc functions.
19573         (areadlink): Set errno to ENOMEM explicitly.
19574         * modules/areadlink (Depends-on): Remove malloc-posix.
19575         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19576
19577 2010-06-09  Bruno Haible  <bruno@clisp.org>
19578
19579         Avoid relocwrapper link errors due to gnulib replacement functions.
19580         * lib/canonicalize-lgpl.c: Use the system's malloc function.
19581         * lib/malloca.c: Likewise.
19582         * lib/relocatable.c: Likewise.
19583         * lib/progreloc.c: Use the system's malloc, sprintf functions.
19584         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
19585         * lib/setenv.c: Use the system's malloc, realloc functions.
19586         * lib/strerror.c: Use the system's sprintf function.
19587         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19588
19589 2010-06-04  Bruno Haible  <bruno@clisp.org>
19590
19591         Prefer documented low-level autoconf macro names.
19592         * m4/lib-link.m4: Use m4_translit instead of translit.
19593         * m4/environ.m4: Likewise.
19594         * m4/mathfunc.m4: Likewise.
19595         * m4/onceonly.m4: Likewise.
19596         * m4/stdint.m4: Likewise.
19597         Suggested by Eric Blake.
19598
19599 2010-06-04  Martin Lambers  <marlam@marlam.de>
19600             Bruno Haible  <bruno@clisp.org>
19601
19602         havelib: Allow library names with '+' characters.
19603         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19604         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
19605
19606 2010-06-09  Bruno Haible  <bruno@clisp.org>
19607
19608         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
19609         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
19610         realloc failed.
19611
19612 2010-06-08  Peter Simons  <simons@cryp.to>
19613
19614         maint.mk: make the news-check rule more configurable
19615         * top/maint.mk (news-check-lines-spec): New variable.
19616         (news-check): Use "sed -n 1,10p" in place of "head".
19617
19618 2010-06-07  Jim Meyering  <meyering@redhat.com>
19619
19620         do-release-commit-and-tag: fix typo in --help
19621         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
19622
19623         regex: avoid new dead-code warning with gcc-4.6.0
19624         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
19625         if-block containing a while-loop.  It's been unused for at least
19626         5 years.
19627
19628 2010-06-05  Bruno Haible  <bruno@clisp.org>
19629
19630         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
19631         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
19632
19633 2010-06-04  Bruno Haible  <bruno@clisp.org>
19634
19635         Update to GNU gettext 0.18.1.
19636         * modules/gettext (configure.ac): Require gettext infrastructure from
19637         version 0.18.1.
19638
19639 2010-06-03  Bruno Haible  <bruno@clisp.org>
19640
19641         Don't use AC_LIBOBJ with file names in subdirectories.
19642         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
19643         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
19644         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
19645         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
19646         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
19647         gl_LIBUNISTRING_LIBSOURCE.
19648         (Makefile.am): Augment lib_SOURCES here, conditionally.
19649         * NEWS: Drop requirement for Automake option 'subdir-objects'.
19650
19651 2010-06-03  Bruno Haible  <bruno@clisp.org>
19652
19653         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
19654         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
19655         expansion does not end with a newline.
19656         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
19657         unnecessary newline.
19658
19659 2010-06-03  Bruno Haible  <bruno@clisp.org>
19660
19661         Reduce dependencies.
19662         * tests/test-quotearg.h: New file, extracted from
19663         tests/test-quotearg.c.
19664         * tests/test-quotearg-simple.c: New file, extracted from
19665         tests/test-quotearg.c.
19666         * tests/test-quotearg.c: Don't include <ctype.h>.
19667         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19668         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19669         use_quote_double_quotes, use_quotearg_colon): Moved to
19670         tests/test-quotearg.h.
19671         (results_g, flag_results, custom_quotes, custom_results): Moved
19672         to tests/test-quotearg-simple.c.
19673         (main): Moved the part that does not depend on gettext to
19674         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19675         performed.
19676         * modules/quotearg-simple: New file.
19677         * modules/quotearg-simple-tests: New file.
19678         * modules/quotearg (Depends-on): Add quotearg-simple.
19679         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19680         (Files): Add tests/test-quotearg.h.
19681         Reported by Paolo Bonzini.
19682
19683 2010-06-03  Bruno Haible  <bruno@clisp.org>
19684
19685         Reduce dependencies.
19686         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19687
19688 2010-06-03  Bruno Haible  <bruno@clisp.org>
19689
19690         time: Undefine more broken macros.
19691         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19692         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19693         Reported by Eric Blake.
19694
19695 2010-06-03  Bruno Haible  <bruno@clisp.org>
19696
19697         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19698         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19699         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19700         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19701         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19702         Reported by Ludovic Courtès <ludo@gnu.org>.
19703
19704 2010-06-02  Eric Blake  <eblake@redhat.com>
19705
19706         time: work with mingw + pthreads-win32 library
19707         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19708         if timespec is defined only in pthread.h.
19709         * modules/time (Makefile.am): Substitute it.
19710         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19711         <pthread.h>, when needed.
19712         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19713         from the library.
19714
19715 2010-05-31  Bruno Haible  <bruno@clisp.org>
19716
19717         Avoid expanding two macros in the wrong order.
19718         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19719         gl_LIBUNISTRING if it is defined.
19720         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19721         autoconf >= 2.64.
19722         Reported by Ludovic Courtès <ludo@gnu.org>.
19723
19724 2010-05-27  Jim Meyering  <meyering@redhat.com>
19725
19726         maint.mk: also prohibit "#undef" of always-defined symbols
19727         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19728         Allow more than one space before the symbol name.
19729         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19730         the regexp uses alternation.
19731
19732 2010-05-26  Eric Blake  <eblake@redhat.com>
19733
19734         maint.mk: avoid echo -e
19735         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19736         Convert all uses of echo -* to printf.
19737         Reported by Matthias Bolte.
19738
19739 2010-05-25  Bruno Haible  <bruno@clisp.org>
19740
19741         Update to GNU gettext 0.18, part 2.
19742         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19743         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19744
19745 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19746
19747         Add missing include in test-pwrite.c.
19748         * tests/test-pwrite.c: Include string.h, for strcmp.
19749
19750 2010-05-24  Bruno Haible  <bruno@clisp.org>
19751
19752         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19753
19754 2010-05-24  Bruno Haible  <bruno@clisp.org>
19755
19756         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19757         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19758         iconveh_error argument.
19759         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19760         U_STRCONV_TO_LOCALE.
19761         * lib/unistr/u16-strcoll.c: Likewise.
19762         * lib/unistr/u32-strcoll.c: Likewise.
19763         * modules/unistr/u8-strcoll (Depends-on): Add
19764         uniconv/u8-strconv-to-enc, localcharset. Remove
19765         uniconv/u8-strconv-to-locale.
19766         (configure.ac): Bump version number.
19767         * modules/unistr/u16-strcoll (Depends-on): Add
19768         uniconv/u16-strconv-to-enc, localcharset. Remove
19769         uniconv/u16-strconv-to-locale.
19770         (configure.ac): Bump version number.
19771         * modules/unistr/u32-strcoll (Depends-on): Add
19772         uniconv/u32-strconv-to-enc, localcharset. Remove
19773         uniconv/u32-strconv-to-locale.
19774         (configure.ac): Bump version number.
19775
19776 2010-05-24  Bruno Haible  <bruno@clisp.org>
19777
19778         Avoid a test failure on NetBSD 5.0.
19779         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19780         an iconv() bug.
19781
19782 2010-05-24  Bruno Haible  <bruno@clisp.org>
19783
19784         Adjust #include directive style.
19785         * modules/regex (Includes): Recommend to write <regex.h>.
19786
19787 2010-05-24  Bruno Haible  <bruno@clisp.org>
19788
19789         regex: Don't require alloca.
19790         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19791         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19792         only inside if (0).
19793
19794 2010-05-23  Jim Meyering  <meyering@redhat.com>
19795
19796         test-renameat.c: include <sys/stat.h>
19797         * tests/test-renameat.c: Include <sys/stat.h>; required for
19798         definition of S_IS* macros.
19799
19800 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19801
19802         Update maintainer documentation for 'relocatable-prog' module.
19803         * doc/relocatable-maint.texi: Update.
19804         Comments by Bruno Haible.
19805
19806 2010-05-23  Bruno Haible  <bruno@clisp.org>
19807
19808         git-merge-changelog: Enable --split-merged-entry by default.
19809         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19810         (usage): Don't mention this option any more.
19811         Reported by Ralf Wildenhues.
19812
19813 2010-05-23  Jim Meyering  <meyering@redhat.com>
19814
19815         test-pwrite: do not leave behind a test file named "out"
19816         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19817         The trivial-looking use of init.sh is really necessary.
19818         It ensures that the temporary file, "out", is created in
19819         a temporary directory, and removed upon termination.
19820         * tests/test-pwrite.sh: Re-add file.
19821         * modules/pwrite-tests: Reference it.
19822
19823 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19824
19825         Fix output redirection buglet in init.sh.
19826         * tests/init.sh: Fix redirection of stderr.
19827
19828 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19829
19830         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19831
19832 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19833
19834         * modules/valgrind-tests: New file.
19835         * m4/valgrind-tests.m4: New file.
19836         * doc/valgrind-tests.texi: New file.
19837         * doc/gnulib.texi (Running self-tests under valgrind): New
19838         section.
19839
19840 2010-05-19  Bruno Haible  <bruno@clisp.org>
19841
19842         Clean up dead code in recent commit.
19843         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19844         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19845         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19846         Suggested by Paolo Bonzini.
19847
19848 2010-05-19  Bruno Haible  <bruno@clisp.org>
19849
19850         Avoid valgrind error reports from libunistring.
19851         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19852         * modules/libunistring (Files): Add it.
19853         * modules/libunistring-optional (Files): Likewise.
19854
19855 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19856             Bruno Haible  <bruno@clisp.org>
19857
19858         New module 'libunistring-optional'.
19859         * modules/libunistring-optional: New file.
19860         * m4/libunistring-base.m4: New file.
19861         * m4/libunistring-optional.m4: New file.
19862         * lib/unicase.in.h: Renamed from lib/unicase.h.
19863         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19864         * lib/unictype.in.h: Renamed from lib/unictype.h.
19865         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19866         * lib/uniname.in.h: Renamed from lib/uniname.h.
19867         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19868         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19869         * lib/unistr.in.h: Renamed from lib/unistr.h.
19870         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19871         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19872         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19873         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19874         gl_LIBUNISTRING. If the library was found, determine the installed
19875         version and set LIBUNISTRING_VERSION.
19876         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19877         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19878         handle a configuration option --with-included-libunistring.
19879         * modules/libunistring (Files): Add m4/absolute-header.m4.
19880         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19881         Add m4/libunistring-base.m4.
19882         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19883         (Makefile.am): Build unicase.h from unicase.in.h.
19884         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19885         Add m4/libunistring-base.m4.
19886         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19887         (Makefile.am): Build uniconv.h from uniconv.in.h.
19888         * modules/unictype/base (Files): Use unictype.in.h instead of
19889         unictype.h. Add m4/libunistring-base.m4.
19890         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19891         (Makefile.am): Build unictype.h from unictype.in.h.
19892         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19893         Add m4/libunistring-base.m4.
19894         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19895         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19896         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19897         Add m4/libunistring-base.m4.
19898         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19899         (Makefile.am): Build uniname.h from uniname.in.h.
19900         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19901         Add m4/libunistring-base.m4.
19902         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19903         (Makefile.am): Build uninorm.h from uninorm.in.h.
19904         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19905         unistdio.h. Add m4/libunistring-base.m4.
19906         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19907         (Makefile.am): Build unistdio.h from unistdio.in.h.
19908         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19909         Add m4/libunistring-base.m4.
19910         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19911         (Makefile.am): Build unistr.h from unistr.in.h.
19912         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19913         Add m4/libunistring-base.m4.
19914         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19915         (Makefile.am): Build unitypes.h from unitypes.in.h.
19916         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19917         Add m4/libunistring-base.m4.
19918         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19919         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19920         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19921         uniwidth.h. Add m4/libunistring-base.m4.
19922         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19923         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19924         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19925         instead of augmenting lib_SOURCES.
19926         * modules/unicase/empty-suffix-context: Likewise.
19927         * modules/unicase/locale-language: Likewise.
19928         * modules/unicase/tolower: Likewise.
19929         * modules/unicase/totitle: Likewise.
19930         * modules/unicase/toupper: Likewise.
19931         * modules/unicase/u8-casecmp: Likewise.
19932         * modules/unicase/u8-casecoll: Likewise.
19933         * modules/unicase/u8-casefold: Likewise.
19934         * modules/unicase/u8-casexfrm: Likewise.
19935         * modules/unicase/u8-ct-casefold: Likewise.
19936         * modules/unicase/u8-ct-tolower: Likewise.
19937         * modules/unicase/u8-ct-totitle: Likewise.
19938         * modules/unicase/u8-ct-toupper: Likewise.
19939         * modules/unicase/u8-is-cased: Likewise.
19940         * modules/unicase/u8-is-casefolded: Likewise.
19941         * modules/unicase/u8-is-lowercase: Likewise.
19942         * modules/unicase/u8-is-titlecase: Likewise.
19943         * modules/unicase/u8-is-uppercase: Likewise.
19944         * modules/unicase/u8-prefix-context: Likewise.
19945         * modules/unicase/u8-suffix-context: Likewise.
19946         * modules/unicase/u8-tolower: Likewise.
19947         * modules/unicase/u8-totitle: Likewise.
19948         * modules/unicase/u8-toupper: Likewise.
19949         * modules/unicase/u16-casecmp: Likewise.
19950         * modules/unicase/u16-casecoll: Likewise.
19951         * modules/unicase/u16-casefold: Likewise.
19952         * modules/unicase/u16-casexfrm: Likewise.
19953         * modules/unicase/u16-ct-casefold: Likewise.
19954         * modules/unicase/u16-ct-tolower: Likewise.
19955         * modules/unicase/u16-ct-totitle: Likewise.
19956         * modules/unicase/u16-ct-toupper: Likewise.
19957         * modules/unicase/u16-is-cased: Likewise.
19958         * modules/unicase/u16-is-casefolded: Likewise.
19959         * modules/unicase/u16-is-lowercase: Likewise.
19960         * modules/unicase/u16-is-titlecase: Likewise.
19961         * modules/unicase/u16-is-uppercase: Likewise.
19962         * modules/unicase/u16-prefix-context: Likewise.
19963         * modules/unicase/u16-suffix-context: Likewise.
19964         * modules/unicase/u16-tolower: Likewise.
19965         * modules/unicase/u16-totitle: Likewise.
19966         * modules/unicase/u16-toupper: Likewise.
19967         * modules/unicase/u32-casecmp: Likewise.
19968         * modules/unicase/u32-casecoll: Likewise.
19969         * modules/unicase/u32-casefold: Likewise.
19970         * modules/unicase/u32-casexfrm: Likewise.
19971         * modules/unicase/u32-ct-casefold: Likewise.
19972         * modules/unicase/u32-ct-tolower: Likewise.
19973         * modules/unicase/u32-ct-totitle: Likewise.
19974         * modules/unicase/u32-ct-toupper: Likewise.
19975         * modules/unicase/u32-is-cased: Likewise.
19976         * modules/unicase/u32-is-casefolded: Likewise.
19977         * modules/unicase/u32-is-lowercase: Likewise.
19978         * modules/unicase/u32-is-titlecase: Likewise.
19979         * modules/unicase/u32-is-uppercase: Likewise.
19980         * modules/unicase/u32-prefix-context: Likewise.
19981         * modules/unicase/u32-suffix-context: Likewise.
19982         * modules/unicase/u32-tolower: Likewise.
19983         * modules/unicase/u32-totitle: Likewise.
19984         * modules/unicase/u32-toupper: Likewise.
19985         * modules/unicase/ulc-casecmp: Likewise.
19986         * modules/unicase/ulc-casecoll: Likewise.
19987         * modules/unicase/ulc-casexfrm: Likewise.
19988         * modules/uniconv/u8-conv-from-enc: Likewise.
19989         * modules/uniconv/u8-conv-to-enc: Likewise.
19990         * modules/uniconv/u8-strconv-from-enc: Likewise.
19991         * modules/uniconv/u8-strconv-from-locale: Likewise.
19992         * modules/uniconv/u8-strconv-to-enc: Likewise.
19993         * modules/uniconv/u8-strconv-to-locale: Likewise.
19994         * modules/uniconv/u16-conv-from-enc: Likewise.
19995         * modules/uniconv/u16-conv-to-enc: Likewise.
19996         * modules/uniconv/u16-strconv-from-enc: Likewise.
19997         * modules/uniconv/u16-strconv-from-locale: Likewise.
19998         * modules/uniconv/u16-strconv-to-enc: Likewise.
19999         * modules/uniconv/u16-strconv-to-locale: Likewise.
20000         * modules/uniconv/u32-conv-from-enc: Likewise.
20001         * modules/uniconv/u32-conv-to-enc: Likewise.
20002         * modules/uniconv/u32-strconv-from-enc: Likewise.
20003         * modules/uniconv/u32-strconv-from-locale: Likewise.
20004         * modules/uniconv/u32-strconv-to-enc: Likewise.
20005         * modules/uniconv/u32-strconv-to-locale: Likewise.
20006         * modules/unictype/bidicategory-byname: Likewise.
20007         * modules/unictype/bidicategory-name: Likewise.
20008         * modules/unictype/bidicategory-of: Likewise.
20009         * modules/unictype/bidicategory-test: Likewise.
20010         * modules/unictype/block-list: Likewise.
20011         * modules/unictype/block-test: Likewise.
20012         * modules/unictype/category-C: Likewise.
20013         * modules/unictype/category-Cc: Likewise.
20014         * modules/unictype/category-Cf: Likewise.
20015         * modules/unictype/category-Cn: Likewise.
20016         * modules/unictype/category-Co: Likewise.
20017         * modules/unictype/category-Cs: Likewise.
20018         * modules/unictype/category-L: Likewise.
20019         * modules/unictype/category-Ll: Likewise.
20020         * modules/unictype/category-Lm: Likewise.
20021         * modules/unictype/category-Lo: Likewise.
20022         * modules/unictype/category-Lt: Likewise.
20023         * modules/unictype/category-Lu: Likewise.
20024         * modules/unictype/category-M: Likewise.
20025         * modules/unictype/category-Mc: Likewise.
20026         * modules/unictype/category-Me: Likewise.
20027         * modules/unictype/category-Mn: Likewise.
20028         * modules/unictype/category-N: Likewise.
20029         * modules/unictype/category-Nd: Likewise.
20030         * modules/unictype/category-Nl: Likewise.
20031         * modules/unictype/category-No: Likewise.
20032         * modules/unictype/category-P: Likewise.
20033         * modules/unictype/category-Pc: Likewise.
20034         * modules/unictype/category-Pd: Likewise.
20035         * modules/unictype/category-Pe: Likewise.
20036         * modules/unictype/category-Pf: Likewise.
20037         * modules/unictype/category-Pi: Likewise.
20038         * modules/unictype/category-Po: Likewise.
20039         * modules/unictype/category-Ps: Likewise.
20040         * modules/unictype/category-S: Likewise.
20041         * modules/unictype/category-Sc: Likewise.
20042         * modules/unictype/category-Sk: Likewise.
20043         * modules/unictype/category-Sm: Likewise.
20044         * modules/unictype/category-So: Likewise.
20045         * modules/unictype/category-Z: Likewise.
20046         * modules/unictype/category-Zl: Likewise.
20047         * modules/unictype/category-Zp: Likewise.
20048         * modules/unictype/category-Zs: Likewise.
20049         * modules/unictype/category-and: Likewise.
20050         * modules/unictype/category-and-not: Likewise.
20051         * modules/unictype/category-byname: Likewise.
20052         * modules/unictype/category-name: Likewise.
20053         * modules/unictype/category-none: Likewise.
20054         * modules/unictype/category-of: Likewise.
20055         * modules/unictype/category-or: Likewise.
20056         * modules/unictype/category-test: Likewise.
20057         * modules/unictype/combining-class: Likewise.
20058         * modules/unictype/ctype-alnum: Likewise.
20059         * modules/unictype/ctype-alpha: Likewise.
20060         * modules/unictype/ctype-blank: Likewise.
20061         * modules/unictype/ctype-cntrl: Likewise.
20062         * modules/unictype/ctype-digit: Likewise.
20063         * modules/unictype/ctype-graph: Likewise.
20064         * modules/unictype/ctype-lower: Likewise.
20065         * modules/unictype/ctype-print: Likewise.
20066         * modules/unictype/ctype-punct: Likewise.
20067         * modules/unictype/ctype-space: Likewise.
20068         * modules/unictype/ctype-upper: Likewise.
20069         * modules/unictype/ctype-xdigit: Likewise.
20070         * modules/unictype/decimal-digit: Likewise.
20071         * modules/unictype/digit: Likewise.
20072         * modules/unictype/mirror: Likewise.
20073         * modules/unictype/numeric: Likewise.
20074         * modules/unictype/property-alphabetic: Likewise.
20075         * modules/unictype/property-ascii-hex-digit: Likewise.
20076         * modules/unictype/property-bidi-arabic-digit: Likewise.
20077         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
20078         * modules/unictype/property-bidi-block-separator: Likewise.
20079         * modules/unictype/property-bidi-boundary-neutral: Likewise.
20080         * modules/unictype/property-bidi-common-separator: Likewise.
20081         * modules/unictype/property-bidi-control: Likewise.
20082         * modules/unictype/property-bidi-embedding-or-override: Likewise.
20083         * modules/unictype/property-bidi-eur-num-separator: Likewise.
20084         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
20085         * modules/unictype/property-bidi-european-digit: Likewise.
20086         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
20087         * modules/unictype/property-bidi-left-to-right: Likewise.
20088         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
20089         * modules/unictype/property-bidi-other-neutral: Likewise.
20090         * modules/unictype/property-bidi-pdf: Likewise.
20091         * modules/unictype/property-bidi-segment-separator: Likewise.
20092         * modules/unictype/property-bidi-whitespace: Likewise.
20093         * modules/unictype/property-byname: Likewise.
20094         * modules/unictype/property-combining: Likewise.
20095         * modules/unictype/property-composite: Likewise.
20096         * modules/unictype/property-currency-symbol: Likewise.
20097         * modules/unictype/property-dash: Likewise.
20098         * modules/unictype/property-decimal-digit: Likewise.
20099         * modules/unictype/property-default-ignorable-code-point: Likewise.
20100         * modules/unictype/property-deprecated: Likewise.
20101         * modules/unictype/property-diacritic: Likewise.
20102         * modules/unictype/property-extender: Likewise.
20103         * modules/unictype/property-format-control: Likewise.
20104         * modules/unictype/property-grapheme-base: Likewise.
20105         * modules/unictype/property-grapheme-extend: Likewise.
20106         * modules/unictype/property-grapheme-link: Likewise.
20107         * modules/unictype/property-hex-digit: Likewise.
20108         * modules/unictype/property-hyphen: Likewise.
20109         * modules/unictype/property-id-continue: Likewise.
20110         * modules/unictype/property-id-start: Likewise.
20111         * modules/unictype/property-ideographic: Likewise.
20112         * modules/unictype/property-ids-binary-operator: Likewise.
20113         * modules/unictype/property-ids-trinary-operator: Likewise.
20114         * modules/unictype/property-ignorable-control: Likewise.
20115         * modules/unictype/property-iso-control: Likewise.
20116         * modules/unictype/property-join-control: Likewise.
20117         * modules/unictype/property-left-of-pair: Likewise.
20118         * modules/unictype/property-line-separator: Likewise.
20119         * modules/unictype/property-logical-order-exception: Likewise.
20120         * modules/unictype/property-lowercase: Likewise.
20121         * modules/unictype/property-math: Likewise.
20122         * modules/unictype/property-non-break: Likewise.
20123         * modules/unictype/property-not-a-character: Likewise.
20124         * modules/unictype/property-numeric: Likewise.
20125         * modules/unictype/property-other-alphabetic: Likewise.
20126         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
20127         * modules/unictype/property-other-grapheme-extend: Likewise.
20128         * modules/unictype/property-other-id-continue: Likewise.
20129         * modules/unictype/property-other-id-start: Likewise.
20130         * modules/unictype/property-other-lowercase: Likewise.
20131         * modules/unictype/property-other-math: Likewise.
20132         * modules/unictype/property-other-uppercase: Likewise.
20133         * modules/unictype/property-paired-punctuation: Likewise.
20134         * modules/unictype/property-paragraph-separator: Likewise.
20135         * modules/unictype/property-pattern-syntax: Likewise.
20136         * modules/unictype/property-pattern-white-space: Likewise.
20137         * modules/unictype/property-private-use: Likewise.
20138         * modules/unictype/property-punctuation: Likewise.
20139         * modules/unictype/property-quotation-mark: Likewise.
20140         * modules/unictype/property-radical: Likewise.
20141         * modules/unictype/property-sentence-terminal: Likewise.
20142         * modules/unictype/property-soft-dotted: Likewise.
20143         * modules/unictype/property-space: Likewise.
20144         * modules/unictype/property-terminal-punctuation: Likewise.
20145         * modules/unictype/property-test: Likewise.
20146         * modules/unictype/property-titlecase: Likewise.
20147         * modules/unictype/property-unassigned-code-value: Likewise.
20148         * modules/unictype/property-unified-ideograph: Likewise.
20149         * modules/unictype/property-uppercase: Likewise.
20150         * modules/unictype/property-variation-selector: Likewise.
20151         * modules/unictype/property-white-space: Likewise.
20152         * modules/unictype/property-xid-continue: Likewise.
20153         * modules/unictype/property-xid-start: Likewise.
20154         * modules/unictype/property-zero-width: Likewise.
20155         * modules/unictype/scripts: Likewise.
20156         * modules/unictype/syntax-c-ident: Likewise.
20157         * modules/unictype/syntax-c-whitespace: Likewise.
20158         * modules/unictype/syntax-java-ident: Likewise.
20159         * modules/unictype/syntax-java-whitespace: Likewise.
20160         * modules/unilbrk/u8-possible-linebreaks: Likewise.
20161         * modules/unilbrk/u8-width-linebreaks: Likewise.
20162         * modules/unilbrk/u16-possible-linebreaks: Likewise.
20163         * modules/unilbrk/u16-width-linebreaks: Likewise.
20164         * modules/unilbrk/u32-possible-linebreaks: Likewise.
20165         * modules/unilbrk/u32-width-linebreaks: Likewise.
20166         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
20167         * modules/unilbrk/ulc-width-linebreaks: Likewise.
20168         * modules/uniname/uniname: Likewise.
20169         * modules/uninorm/canonical-decomposition: Likewise.
20170         * modules/uninorm/composition: Likewise.
20171         * modules/uninorm/decomposing-form: Likewise.
20172         * modules/uninorm/decomposition: Likewise.
20173         * modules/uninorm/filter: Likewise.
20174         * modules/uninorm/nfc: Likewise.
20175         * modules/uninorm/nfd: Likewise.
20176         * modules/uninorm/nfkc: Likewise.
20177         * modules/uninorm/nfkd: Likewise.
20178         * modules/uninorm/u8-normalize: Likewise.
20179         * modules/uninorm/u8-normcmp: Likewise.
20180         * modules/uninorm/u8-normcoll: Likewise.
20181         * modules/uninorm/u8-normxfrm: Likewise.
20182         * modules/uninorm/u16-normalize: Likewise.
20183         * modules/uninorm/u16-normcmp: Likewise.
20184         * modules/uninorm/u16-normcoll: Likewise.
20185         * modules/uninorm/u16-normxfrm: Likewise.
20186         * modules/uninorm/u32-normalize: Likewise.
20187         * modules/uninorm/u32-normcmp: Likewise.
20188         * modules/uninorm/u32-normcoll: Likewise.
20189         * modules/uninorm/u32-normxfrm: Likewise.
20190         * modules/unistdio/u8-asnprintf: Likewise.
20191         * modules/unistdio/u8-asprintf: Likewise.
20192         * modules/unistdio/u8-snprintf: Likewise.
20193         * modules/unistdio/u8-sprintf: Likewise.
20194         * modules/unistdio/u8-u8-asnprintf: Likewise.
20195         * modules/unistdio/u8-u8-asprintf: Likewise.
20196         * modules/unistdio/u8-u8-snprintf: Likewise.
20197         * modules/unistdio/u8-u8-sprintf: Likewise.
20198         * modules/unistdio/u8-u8-vasnprintf: Likewise.
20199         * modules/unistdio/u8-u8-vasprintf: Likewise.
20200         * modules/unistdio/u8-u8-vsnprintf: Likewise.
20201         * modules/unistdio/u8-u8-vsprintf: Likewise.
20202         * modules/unistdio/u8-vasnprintf: Likewise.
20203         * modules/unistdio/u8-vasprintf: Likewise.
20204         * modules/unistdio/u8-vsnprintf: Likewise.
20205         * modules/unistdio/u8-vsprintf: Likewise.
20206         * modules/unistdio/u16-asnprintf: Likewise.
20207         * modules/unistdio/u16-asprintf: Likewise.
20208         * modules/unistdio/u16-snprintf: Likewise.
20209         * modules/unistdio/u16-sprintf: Likewise.
20210         * modules/unistdio/u16-u16-asnprintf: Likewise.
20211         * modules/unistdio/u16-u16-asprintf: Likewise.
20212         * modules/unistdio/u16-u16-snprintf: Likewise.
20213         * modules/unistdio/u16-u16-sprintf: Likewise.
20214         * modules/unistdio/u16-u16-vasnprintf: Likewise.
20215         * modules/unistdio/u16-u16-vasprintf: Likewise.
20216         * modules/unistdio/u16-u16-vsnprintf: Likewise.
20217         * modules/unistdio/u16-u16-vsprintf: Likewise.
20218         * modules/unistdio/u16-vasnprintf: Likewise.
20219         * modules/unistdio/u16-vasprintf: Likewise.
20220         * modules/unistdio/u16-vsnprintf: Likewise.
20221         * modules/unistdio/u16-vsprintf: Likewise.
20222         * modules/unistdio/u32-asnprintf: Likewise.
20223         * modules/unistdio/u32-asprintf: Likewise.
20224         * modules/unistdio/u32-snprintf: Likewise.
20225         * modules/unistdio/u32-sprintf: Likewise.
20226         * modules/unistdio/u32-u32-asnprintf: Likewise.
20227         * modules/unistdio/u32-u32-asprintf: Likewise.
20228         * modules/unistdio/u32-u32-snprintf: Likewise.
20229         * modules/unistdio/u32-u32-sprintf: Likewise.
20230         * modules/unistdio/u32-u32-vasnprintf: Likewise.
20231         * modules/unistdio/u32-u32-vasprintf: Likewise.
20232         * modules/unistdio/u32-u32-vsnprintf: Likewise.
20233         * modules/unistdio/u32-u32-vsprintf: Likewise.
20234         * modules/unistdio/u32-vasnprintf: Likewise.
20235         * modules/unistdio/u32-vasprintf: Likewise.
20236         * modules/unistdio/u32-vsnprintf: Likewise.
20237         * modules/unistdio/u32-vsprintf: Likewise.
20238         * modules/unistdio/ulc-asnprintf: Likewise.
20239         * modules/unistdio/ulc-asprintf: Likewise.
20240         * modules/unistdio/ulc-fprintf: Likewise.
20241         * modules/unistdio/ulc-snprintf: Likewise.
20242         * modules/unistdio/ulc-sprintf: Likewise.
20243         * modules/unistdio/ulc-vasnprintf: Likewise.
20244         * modules/unistdio/ulc-vasprintf: Likewise.
20245         * modules/unistdio/ulc-vfprintf: Likewise.
20246         * modules/unistdio/ulc-vsnprintf: Likewise.
20247         * modules/unistdio/ulc-vsprintf: Likewise.
20248         * modules/unistr/u8-check: Likewise.
20249         * modules/unistr/u8-chr: Likewise.
20250         * modules/unistr/u8-cmp: Likewise.
20251         * modules/unistr/u8-cmp2: Likewise.
20252         * modules/unistr/u8-cpy: Likewise.
20253         * modules/unistr/u8-cpy-alloc: Likewise.
20254         * modules/unistr/u8-endswith: Likewise.
20255         * modules/unistr/u8-mblen: Likewise.
20256         * modules/unistr/u8-mbsnlen: Likewise.
20257         * modules/unistr/u8-mbtouc: Likewise.
20258         * modules/unistr/u8-mbtouc-unsafe: Likewise.
20259         * modules/unistr/u8-mbtoucr: Likewise.
20260         * modules/unistr/u8-move: Likewise.
20261         * modules/unistr/u8-next: Likewise.
20262         * modules/unistr/u8-prev: Likewise.
20263         * modules/unistr/u8-set: Likewise.
20264         * modules/unistr/u8-startswith: Likewise.
20265         * modules/unistr/u8-stpcpy: Likewise.
20266         * modules/unistr/u8-stpncpy: Likewise.
20267         * modules/unistr/u8-strcat: Likewise.
20268         * modules/unistr/u8-strchr: Likewise.
20269         * modules/unistr/u8-strcmp: Likewise.
20270         * modules/unistr/u8-strcoll: Likewise.
20271         * modules/unistr/u8-strcpy: Likewise.
20272         * modules/unistr/u8-strcspn: Likewise.
20273         * modules/unistr/u8-strdup: Likewise.
20274         * modules/unistr/u8-strlen: Likewise.
20275         * modules/unistr/u8-strmblen: Likewise.
20276         * modules/unistr/u8-strmbtouc: Likewise.
20277         * modules/unistr/u8-strncat: Likewise.
20278         * modules/unistr/u8-strncmp: Likewise.
20279         * modules/unistr/u8-strncpy: Likewise.
20280         * modules/unistr/u8-strnlen: Likewise.
20281         * modules/unistr/u8-strpbrk: Likewise.
20282         * modules/unistr/u8-strrchr: Likewise.
20283         * modules/unistr/u8-strspn: Likewise.
20284         * modules/unistr/u8-strstr: Likewise.
20285         * modules/unistr/u8-strtok: Likewise.
20286         * modules/unistr/u8-to-u16: Likewise.
20287         * modules/unistr/u8-to-u32: Likewise.
20288         * modules/unistr/u8-uctomb: Likewise.
20289         * modules/unistr/u16-check: Likewise.
20290         * modules/unistr/u16-chr: Likewise.
20291         * modules/unistr/u16-cmp: Likewise.
20292         * modules/unistr/u16-cmp2: Likewise.
20293         * modules/unistr/u16-cpy: Likewise.
20294         * modules/unistr/u16-cpy-alloc: Likewise.
20295         * modules/unistr/u16-endswith: Likewise.
20296         * modules/unistr/u16-mblen: Likewise.
20297         * modules/unistr/u16-mbsnlen: Likewise.
20298         * modules/unistr/u16-mbtouc: Likewise.
20299         * modules/unistr/u16-mbtouc-unsafe: Likewise.
20300         * modules/unistr/u16-mbtoucr: Likewise.
20301         * modules/unistr/u16-move: Likewise.
20302         * modules/unistr/u16-next: Likewise.
20303         * modules/unistr/u16-prev: Likewise.
20304         * modules/unistr/u16-set: Likewise.
20305         * modules/unistr/u16-startswith: Likewise.
20306         * modules/unistr/u16-stpcpy: Likewise.
20307         * modules/unistr/u16-stpncpy: Likewise.
20308         * modules/unistr/u16-strcat: Likewise.
20309         * modules/unistr/u16-strchr: Likewise.
20310         * modules/unistr/u16-strcmp: Likewise.
20311         * modules/unistr/u16-strcoll: Likewise.
20312         * modules/unistr/u16-strcpy: Likewise.
20313         * modules/unistr/u16-strcspn: Likewise.
20314         * modules/unistr/u16-strdup: Likewise.
20315         * modules/unistr/u16-strlen: Likewise.
20316         * modules/unistr/u16-strmblen: Likewise.
20317         * modules/unistr/u16-strmbtouc: Likewise.
20318         * modules/unistr/u16-strncat: Likewise.
20319         * modules/unistr/u16-strncmp: Likewise.
20320         * modules/unistr/u16-strncpy: Likewise.
20321         * modules/unistr/u16-strnlen: Likewise.
20322         * modules/unistr/u16-strpbrk: Likewise.
20323         * modules/unistr/u16-strrchr: Likewise.
20324         * modules/unistr/u16-strspn: Likewise.
20325         * modules/unistr/u16-strstr: Likewise.
20326         * modules/unistr/u16-strtok: Likewise.
20327         * modules/unistr/u16-to-u32: Likewise.
20328         * modules/unistr/u16-to-u8: Likewise.
20329         * modules/unistr/u16-uctomb: Likewise.
20330         * modules/unistr/u32-check: Likewise.
20331         * modules/unistr/u32-chr: Likewise.
20332         * modules/unistr/u32-cmp: Likewise.
20333         * modules/unistr/u32-cmp2: Likewise.
20334         * modules/unistr/u32-cpy: Likewise.
20335         * modules/unistr/u32-cpy-alloc: Likewise.
20336         * modules/unistr/u32-endswith: Likewise.
20337         * modules/unistr/u32-mblen: Likewise.
20338         * modules/unistr/u32-mbsnlen: Likewise.
20339         * modules/unistr/u32-mbtouc: Likewise.
20340         * modules/unistr/u32-mbtouc-unsafe: Likewise.
20341         * modules/unistr/u32-mbtoucr: Likewise.
20342         * modules/unistr/u32-move: Likewise.
20343         * modules/unistr/u32-next: Likewise.
20344         * modules/unistr/u32-prev: Likewise.
20345         * modules/unistr/u32-set: Likewise.
20346         * modules/unistr/u32-startswith: Likewise.
20347         * modules/unistr/u32-stpcpy: Likewise.
20348         * modules/unistr/u32-stpncpy: Likewise.
20349         * modules/unistr/u32-strcat: Likewise.
20350         * modules/unistr/u32-strchr: Likewise.
20351         * modules/unistr/u32-strcmp: Likewise.
20352         * modules/unistr/u32-strcoll: Likewise.
20353         * modules/unistr/u32-strcpy: Likewise.
20354         * modules/unistr/u32-strcspn: Likewise.
20355         * modules/unistr/u32-strdup: Likewise.
20356         * modules/unistr/u32-strlen: Likewise.
20357         * modules/unistr/u32-strmblen: Likewise.
20358         * modules/unistr/u32-strmbtouc: Likewise.
20359         * modules/unistr/u32-strncat: Likewise.
20360         * modules/unistr/u32-strncmp: Likewise.
20361         * modules/unistr/u32-strncpy: Likewise.
20362         * modules/unistr/u32-strnlen: Likewise.
20363         * modules/unistr/u32-strpbrk: Likewise.
20364         * modules/unistr/u32-strrchr: Likewise.
20365         * modules/unistr/u32-strspn: Likewise.
20366         * modules/unistr/u32-strstr: Likewise.
20367         * modules/unistr/u32-strtok: Likewise.
20368         * modules/unistr/u32-to-u16: Likewise.
20369         * modules/unistr/u32-to-u8: Likewise.
20370         * modules/unistr/u32-uctomb: Likewise.
20371         * modules/uniwbrk/u8-wordbreaks: Likewise.
20372         * modules/uniwbrk/u16-wordbreaks: Likewise.
20373         * modules/uniwbrk/u32-wordbreaks: Likewise.
20374         * modules/uniwbrk/ulc-wordbreaks: Likewise.
20375         * modules/uniwbrk/wordbreak-property: Likewise.
20376         * modules/uniwidth/u8-strwidth: Likewise.
20377         * modules/uniwidth/u8-width: Likewise.
20378         * modules/uniwidth/u16-strwidth: Likewise.
20379         * modules/uniwidth/u16-width: Likewise.
20380         * modules/uniwidth/u32-strwidth: Likewise.
20381         * modules/uniwidth/u32-width: Likewise.
20382         * modules/uniwidth/width: Likewise.
20383         * modules/unicase/cased-tests (Makefile.am): Link all test programs
20384         with $(LIBUNISTRING).
20385         * modules/unicase/ignorable-tests: Likewise.
20386         * modules/unicase/locale-language-tests: Likewise.
20387         * modules/unicase/tolower-tests: Likewise.
20388         * modules/unicase/totitle-tests: Likewise.
20389         * modules/unicase/toupper-tests: Likewise.
20390         * modules/unicase/u8-casecmp-tests: Likewise.
20391         * modules/unicase/u8-casecoll-tests: Likewise.
20392         * modules/unicase/u8-casefold-tests: Likewise.
20393         * modules/unicase/u8-is-cased-tests: Likewise.
20394         * modules/unicase/u8-is-casefolded-tests: Likewise.
20395         * modules/unicase/u8-is-lowercase-tests: Likewise.
20396         * modules/unicase/u8-is-titlecase-tests: Likewise.
20397         * modules/unicase/u8-is-uppercase-tests: Likewise.
20398         * modules/unicase/u8-tolower-tests: Likewise.
20399         * modules/unicase/u8-totitle-tests: Likewise.
20400         * modules/unicase/u8-toupper-tests: Likewise.
20401         * modules/unicase/u16-casecmp-tests: Likewise.
20402         * modules/unicase/u16-casecoll-tests: Likewise.
20403         * modules/unicase/u16-casefold-tests: Likewise.
20404         * modules/unicase/u16-is-cased-tests: Likewise.
20405         * modules/unicase/u16-is-casefolded-tests: Likewise.
20406         * modules/unicase/u16-is-lowercase-tests: Likewise.
20407         * modules/unicase/u16-is-titlecase-tests: Likewise.
20408         * modules/unicase/u16-is-uppercase-tests: Likewise.
20409         * modules/unicase/u16-tolower-tests: Likewise.
20410         * modules/unicase/u16-totitle-tests: Likewise.
20411         * modules/unicase/u16-toupper-tests: Likewise.
20412         * modules/unicase/u32-casecmp-tests: Likewise.
20413         * modules/unicase/u32-casecoll-tests: Likewise.
20414         * modules/unicase/u32-casefold-tests: Likewise.
20415         * modules/unicase/u32-is-cased-tests: Likewise.
20416         * modules/unicase/u32-is-casefolded-tests: Likewise.
20417         * modules/unicase/u32-is-lowercase-tests: Likewise.
20418         * modules/unicase/u32-is-titlecase-tests: Likewise.
20419         * modules/unicase/u32-is-uppercase-tests: Likewise.
20420         * modules/unicase/u32-tolower-tests: Likewise.
20421         * modules/unicase/u32-totitle-tests: Likewise.
20422         * modules/unicase/u32-toupper-tests: Likewise.
20423         * modules/unicase/ulc-casecmp-tests: Likewise.
20424         * modules/unicase/ulc-casecoll-tests: Likewise.
20425         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
20426         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
20427         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
20428         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
20429         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
20430         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
20431         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
20432         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
20433         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
20434         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
20435         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
20436         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
20437         * modules/unictype/bidicategory-byname-tests: Likewise.
20438         * modules/unictype/bidicategory-name-tests: Likewise.
20439         * modules/unictype/bidicategory-of-tests: Likewise.
20440         * modules/unictype/bidicategory-test-tests: Likewise.
20441         * modules/unictype/block-list-tests: Likewise.
20442         * modules/unictype/block-of-tests: Likewise.
20443         * modules/unictype/block-test-tests: Likewise.
20444         * modules/unictype/category-C-tests: Likewise.
20445         * modules/unictype/category-Cc-tests: Likewise.
20446         * modules/unictype/category-Cf-tests: Likewise.
20447         * modules/unictype/category-Cn-tests: Likewise.
20448         * modules/unictype/category-Co-tests: Likewise.
20449         * modules/unictype/category-Cs-tests: Likewise.
20450         * modules/unictype/category-L-tests: Likewise.
20451         * modules/unictype/category-Ll-tests: Likewise.
20452         * modules/unictype/category-Lm-tests: Likewise.
20453         * modules/unictype/category-Lo-tests: Likewise.
20454         * modules/unictype/category-Lt-tests: Likewise.
20455         * modules/unictype/category-Lu-tests: Likewise.
20456         * modules/unictype/category-M-tests: Likewise.
20457         * modules/unictype/category-Mc-tests: Likewise.
20458         * modules/unictype/category-Me-tests: Likewise.
20459         * modules/unictype/category-Mn-tests: Likewise.
20460         * modules/unictype/category-N-tests: Likewise.
20461         * modules/unictype/category-Nd-tests: Likewise.
20462         * modules/unictype/category-Nl-tests: Likewise.
20463         * modules/unictype/category-No-tests: Likewise.
20464         * modules/unictype/category-P-tests: Likewise.
20465         * modules/unictype/category-Pc-tests: Likewise.
20466         * modules/unictype/category-Pd-tests: Likewise.
20467         * modules/unictype/category-Pe-tests: Likewise.
20468         * modules/unictype/category-Pf-tests: Likewise.
20469         * modules/unictype/category-Pi-tests: Likewise.
20470         * modules/unictype/category-Po-tests: Likewise.
20471         * modules/unictype/category-Ps-tests: Likewise.
20472         * modules/unictype/category-S-tests: Likewise.
20473         * modules/unictype/category-Sc-tests: Likewise.
20474         * modules/unictype/category-Sk-tests: Likewise.
20475         * modules/unictype/category-Sm-tests: Likewise.
20476         * modules/unictype/category-So-tests: Likewise.
20477         * modules/unictype/category-Z-tests: Likewise.
20478         * modules/unictype/category-Zl-tests: Likewise.
20479         * modules/unictype/category-Zp-tests: Likewise.
20480         * modules/unictype/category-Zs-tests: Likewise.
20481         * modules/unictype/category-and-not-tests: Likewise.
20482         * modules/unictype/category-and-tests: Likewise.
20483         * modules/unictype/category-byname-tests: Likewise.
20484         * modules/unictype/category-name-tests: Likewise.
20485         * modules/unictype/category-none-tests: Likewise.
20486         * modules/unictype/category-of-tests: Likewise.
20487         * modules/unictype/category-or-tests: Likewise.
20488         * modules/unictype/category-test-withtable-tests: Likewise.
20489         * modules/unictype/combining-class-tests: Likewise.
20490         * modules/unictype/ctype-alnum-tests: Likewise.
20491         * modules/unictype/ctype-alpha-tests: Likewise.
20492         * modules/unictype/ctype-blank-tests: Likewise.
20493         * modules/unictype/ctype-cntrl-tests: Likewise.
20494         * modules/unictype/ctype-digit-tests: Likewise.
20495         * modules/unictype/ctype-graph-tests: Likewise.
20496         * modules/unictype/ctype-lower-tests: Likewise.
20497         * modules/unictype/ctype-print-tests: Likewise.
20498         * modules/unictype/ctype-punct-tests: Likewise.
20499         * modules/unictype/ctype-space-tests: Likewise.
20500         * modules/unictype/ctype-upper-tests: Likewise.
20501         * modules/unictype/ctype-xdigit-tests: Likewise.
20502         * modules/unictype/decimal-digit-tests: Likewise.
20503         * modules/unictype/digit-tests: Likewise.
20504         * modules/unictype/mirror-tests: Likewise.
20505         * modules/unictype/numeric-tests: Likewise.
20506         * modules/unictype/property-alphabetic-tests: Likewise.
20507         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
20508         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
20509         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
20510         * modules/unictype/property-bidi-block-separator-tests: Likewise.
20511         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
20512         * modules/unictype/property-bidi-common-separator-tests: Likewise.
20513         * modules/unictype/property-bidi-control-tests: Likewise.
20514         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
20515         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
20516         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
20517         * modules/unictype/property-bidi-european-digit-tests: Likewise.
20518         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
20519         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
20520         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
20521         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
20522         * modules/unictype/property-bidi-pdf-tests: Likewise.
20523         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
20524         * modules/unictype/property-bidi-whitespace-tests: Likewise.
20525         * modules/unictype/property-byname-tests: Likewise.
20526         * modules/unictype/property-combining-tests: Likewise.
20527         * modules/unictype/property-composite-tests: Likewise.
20528         * modules/unictype/property-currency-symbol-tests: Likewise.
20529         * modules/unictype/property-dash-tests: Likewise.
20530         * modules/unictype/property-decimal-digit-tests: Likewise.
20531         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
20532         * modules/unictype/property-deprecated-tests: Likewise.
20533         * modules/unictype/property-diacritic-tests: Likewise.
20534         * modules/unictype/property-extender-tests: Likewise.
20535         * modules/unictype/property-format-control-tests: Likewise.
20536         * modules/unictype/property-grapheme-base-tests: Likewise.
20537         * modules/unictype/property-grapheme-extend-tests: Likewise.
20538         * modules/unictype/property-grapheme-link-tests: Likewise.
20539         * modules/unictype/property-hex-digit-tests: Likewise.
20540         * modules/unictype/property-hyphen-tests: Likewise.
20541         * modules/unictype/property-id-continue-tests: Likewise.
20542         * modules/unictype/property-id-start-tests: Likewise.
20543         * modules/unictype/property-ideographic-tests: Likewise.
20544         * modules/unictype/property-ids-binary-operator-tests: Likewise.
20545         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
20546         * modules/unictype/property-ignorable-control-tests: Likewise.
20547         * modules/unictype/property-iso-control-tests: Likewise.
20548         * modules/unictype/property-join-control-tests: Likewise.
20549         * modules/unictype/property-left-of-pair-tests: Likewise.
20550         * modules/unictype/property-line-separator-tests: Likewise.
20551         * modules/unictype/property-logical-order-exception-tests: Likewise.
20552         * modules/unictype/property-lowercase-tests: Likewise.
20553         * modules/unictype/property-math-tests: Likewise.
20554         * modules/unictype/property-non-break-tests: Likewise.
20555         * modules/unictype/property-not-a-character-tests: Likewise.
20556         * modules/unictype/property-numeric-tests: Likewise.
20557         * modules/unictype/property-other-alphabetic-tests: Likewise.
20558         * modules/unictype/property-other-default-ignorable-code-point-tests:
20559         Likewise.
20560         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
20561         * modules/unictype/property-other-id-continue-tests: Likewise.
20562         * modules/unictype/property-other-id-start-tests: Likewise.
20563         * modules/unictype/property-other-lowercase-tests: Likewise.
20564         * modules/unictype/property-other-math-tests: Likewise.
20565         * modules/unictype/property-other-uppercase-tests: Likewise.
20566         * modules/unictype/property-paired-punctuation-tests: Likewise.
20567         * modules/unictype/property-paragraph-separator-tests: Likewise.
20568         * modules/unictype/property-pattern-syntax-tests: Likewise.
20569         * modules/unictype/property-pattern-white-space-tests: Likewise.
20570         * modules/unictype/property-private-use-tests: Likewise.
20571         * modules/unictype/property-punctuation-tests: Likewise.
20572         * modules/unictype/property-quotation-mark-tests: Likewise.
20573         * modules/unictype/property-radical-tests: Likewise.
20574         * modules/unictype/property-sentence-terminal-tests: Likewise.
20575         * modules/unictype/property-soft-dotted-tests: Likewise.
20576         * modules/unictype/property-space-tests: Likewise.
20577         * modules/unictype/property-terminal-punctuation-tests: Likewise.
20578         * modules/unictype/property-test-tests: Likewise.
20579         * modules/unictype/property-titlecase-tests: Likewise.
20580         * modules/unictype/property-unassigned-code-value-tests: Likewise.
20581         * modules/unictype/property-unified-ideograph-tests: Likewise.
20582         * modules/unictype/property-uppercase-tests: Likewise.
20583         * modules/unictype/property-variation-selector-tests: Likewise.
20584         * modules/unictype/property-white-space-tests: Likewise.
20585         * modules/unictype/property-xid-continue-tests: Likewise.
20586         * modules/unictype/property-xid-start-tests: Likewise.
20587         * modules/unictype/property-zero-width-tests: Likewise.
20588         * modules/unictype/scripts-tests: Likewise.
20589         * modules/unictype/syntax-c-ident-tests: Likewise.
20590         * modules/unictype/syntax-c-whitespace-tests: Likewise.
20591         * modules/unictype/syntax-java-ident-tests: Likewise.
20592         * modules/unictype/syntax-java-whitespace-tests: Likewise.
20593         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
20594         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
20595         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
20596         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
20597         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
20598         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
20599         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
20600         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
20601         * modules/uniname/uniname-tests: Likewise.
20602         * modules/uninorm/canonical-decomposition-tests: Likewise.
20603         * modules/uninorm/compat-decomposition-tests: Likewise.
20604         * modules/uninorm/composition-tests: Likewise.
20605         * modules/uninorm/decomposing-form-tests: Likewise.
20606         * modules/uninorm/decomposition-tests: Likewise.
20607         * modules/uninorm/filter-tests: Likewise.
20608         * modules/uninorm/nfc-tests: Likewise.
20609         * modules/uninorm/nfd-tests: Likewise.
20610         * modules/uninorm/nfkc-tests: Likewise.
20611         * modules/uninorm/nfkd-tests: Likewise.
20612         * modules/uninorm/u8-normcmp-tests: Likewise.
20613         * modules/uninorm/u8-normcoll-tests: Likewise.
20614         * modules/uninorm/u16-normcmp-tests: Likewise.
20615         * modules/uninorm/u16-normcoll-tests: Likewise.
20616         * modules/uninorm/u32-normcmp-tests: Likewise.
20617         * modules/uninorm/u32-normcoll-tests: Likewise.
20618         * modules/unistdio/u8-asnprintf-tests: Likewise.
20619         * modules/unistdio/u8-vasnprintf-tests: Likewise.
20620         * modules/unistdio/u8-vasprintf-tests: Likewise.
20621         * modules/unistdio/u8-vsnprintf-tests: Likewise.
20622         * modules/unistdio/u8-vsprintf-tests: Likewise.
20623         * modules/unistdio/u16-asnprintf-tests: Likewise.
20624         * modules/unistdio/u16-vasnprintf-tests: Likewise.
20625         * modules/unistdio/u16-vasprintf-tests: Likewise.
20626         * modules/unistdio/u16-vsnprintf-tests: Likewise.
20627         * modules/unistdio/u16-vsprintf-tests: Likewise.
20628         * modules/unistdio/u32-asnprintf-tests: Likewise.
20629         * modules/unistdio/u32-vasnprintf-tests: Likewise.
20630         * modules/unistdio/u32-vasprintf-tests: Likewise.
20631         * modules/unistdio/u32-vsnprintf-tests: Likewise.
20632         * modules/unistdio/u32-vsprintf-tests: Likewise.
20633         * modules/unistdio/ulc-asnprintf-tests: Likewise.
20634         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
20635         * modules/unistdio/ulc-vasprintf-tests: Likewise.
20636         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
20637         * modules/unistdio/ulc-vsprintf-tests: Likewise.
20638         * modules/unistr/u8-check-tests: Likewise.
20639         * modules/unistr/u8-chr-tests: Likewise.
20640         * modules/unistr/u8-cmp-tests: Likewise.
20641         * modules/unistr/u8-cmp2-tests: Likewise.
20642         * modules/unistr/u8-cpy-alloc-tests: Likewise.
20643         * modules/unistr/u8-cpy-tests: Likewise.
20644         * modules/unistr/u8-mblen-tests: Likewise.
20645         * modules/unistr/u8-mbsnlen-tests: Likewise.
20646         * modules/unistr/u8-mbtouc-tests: Likewise.
20647         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
20648         * modules/unistr/u8-mbtoucr-tests: Likewise.
20649         * modules/unistr/u8-move-tests: Likewise.
20650         * modules/unistr/u8-next-tests: Likewise.
20651         * modules/unistr/u8-prev-tests: Likewise.
20652         * modules/unistr/u8-set-tests: Likewise.
20653         * modules/unistr/u8-stpcpy-tests: Likewise.
20654         * modules/unistr/u8-stpncpy-tests: Likewise.
20655         * modules/unistr/u8-strcat-tests: Likewise.
20656         * modules/unistr/u8-strcmp-tests: Likewise.
20657         * modules/unistr/u8-strcoll-tests: Likewise.
20658         * modules/unistr/u8-strcpy-tests: Likewise.
20659         * modules/unistr/u8-strdup-tests: Likewise.
20660         * modules/unistr/u8-strlen-tests: Likewise.
20661         * modules/unistr/u8-strmblen-tests: Likewise.
20662         * modules/unistr/u8-strmbtouc-tests: Likewise.
20663         * modules/unistr/u8-strncat-tests: Likewise.
20664         * modules/unistr/u8-strncmp-tests: Likewise.
20665         * modules/unistr/u8-strncpy-tests: Likewise.
20666         * modules/unistr/u8-strnlen-tests: Likewise.
20667         * modules/unistr/u8-to-u16-tests: Likewise.
20668         * modules/unistr/u8-to-u32-tests: Likewise.
20669         * modules/unistr/u8-uctomb-tests: Likewise.
20670         * modules/unistr/u16-check-tests: Likewise.
20671         * modules/unistr/u16-chr-tests: Likewise.
20672         * modules/unistr/u16-cmp-tests: Likewise.
20673         * modules/unistr/u16-cmp2-tests: Likewise.
20674         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20675         * modules/unistr/u16-cpy-tests: Likewise.
20676         * modules/unistr/u16-mblen-tests: Likewise.
20677         * modules/unistr/u16-mbsnlen-tests: Likewise.
20678         * modules/unistr/u16-mbtouc-tests: Likewise.
20679         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20680         * modules/unistr/u16-mbtoucr-tests: Likewise.
20681         * modules/unistr/u16-move-tests: Likewise.
20682         * modules/unistr/u16-next-tests: Likewise.
20683         * modules/unistr/u16-prev-tests: Likewise.
20684         * modules/unistr/u16-set-tests: Likewise.
20685         * modules/unistr/u16-stpcpy-tests: Likewise.
20686         * modules/unistr/u16-stpncpy-tests: Likewise.
20687         * modules/unistr/u16-strcat-tests: Likewise.
20688         * modules/unistr/u16-strcmp-tests: Likewise.
20689         * modules/unistr/u16-strcoll-tests: Likewise.
20690         * modules/unistr/u16-strcpy-tests: Likewise.
20691         * modules/unistr/u16-strdup-tests: Likewise.
20692         * modules/unistr/u16-strlen-tests: Likewise.
20693         * modules/unistr/u16-strmblen-tests: Likewise.
20694         * modules/unistr/u16-strmbtouc-tests: Likewise.
20695         * modules/unistr/u16-strncat-tests: Likewise.
20696         * modules/unistr/u16-strncmp-tests: Likewise.
20697         * modules/unistr/u16-strncpy-tests: Likewise.
20698         * modules/unistr/u16-strnlen-tests: Likewise.
20699         * modules/unistr/u16-to-u32-tests: Likewise.
20700         * modules/unistr/u16-to-u8-tests: Likewise.
20701         * modules/unistr/u16-uctomb-tests: Likewise.
20702         * modules/unistr/u32-check-tests: Likewise.
20703         * modules/unistr/u32-chr-tests: Likewise.
20704         * modules/unistr/u32-cmp-tests: Likewise.
20705         * modules/unistr/u32-cmp2-tests: Likewise.
20706         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20707         * modules/unistr/u32-cpy-tests: Likewise.
20708         * modules/unistr/u32-mblen-tests: Likewise.
20709         * modules/unistr/u32-mbsnlen-tests: Likewise.
20710         * modules/unistr/u32-mbtouc-tests: Likewise.
20711         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20712         * modules/unistr/u32-mbtoucr-tests: Likewise.
20713         * modules/unistr/u32-move-tests: Likewise.
20714         * modules/unistr/u32-next-tests: Likewise.
20715         * modules/unistr/u32-prev-tests: Likewise.
20716         * modules/unistr/u32-set-tests: Likewise.
20717         * modules/unistr/u32-stpcpy-tests: Likewise.
20718         * modules/unistr/u32-stpncpy-tests: Likewise.
20719         * modules/unistr/u32-strcat-tests: Likewise.
20720         * modules/unistr/u32-strcmp-tests: Likewise.
20721         * modules/unistr/u32-strcoll-tests: Likewise.
20722         * modules/unistr/u32-strcpy-tests: Likewise.
20723         * modules/unistr/u32-strdup-tests: Likewise.
20724         * modules/unistr/u32-strlen-tests: Likewise.
20725         * modules/unistr/u32-strmblen-tests: Likewise.
20726         * modules/unistr/u32-strmbtouc-tests: Likewise.
20727         * modules/unistr/u32-strncat-tests: Likewise.
20728         * modules/unistr/u32-strncmp-tests: Likewise.
20729         * modules/unistr/u32-strncpy-tests: Likewise.
20730         * modules/unistr/u32-strnlen-tests: Likewise.
20731         * modules/unistr/u32-to-u16-tests: Likewise.
20732         * modules/unistr/u32-to-u8-tests: Likewise.
20733         * modules/unistr/u32-uctomb-tests: Likewise.
20734         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20735         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20736         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20737         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20738         * modules/uniwidth/u8-strwidth-tests: Likewise.
20739         * modules/uniwidth/u8-width-tests: Likewise.
20740         * modules/uniwidth/u16-strwidth-tests: Likewise.
20741         * modules/uniwidth/u16-width-tests: Likewise.
20742         * modules/uniwidth/u32-strwidth-tests: Likewise.
20743         * modules/uniwidth/u32-width-tests: Likewise.
20744         * modules/uniwidth/width-tests: Likewise.
20745
20746 2010-05-18  Richard Jones  <rjones@redhat.com>
20747
20748         doc: users.txt: list hivex
20749         * users.txt: Add hivex.
20750
20751 2010-05-18  Richard Jones  <rjones@redhat.com>
20752
20753         doc: users.txt: list febootstrap
20754         * users.txt: Add febootstrap.
20755
20756 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20757
20758         bootstrap: fix an error when gnulib is not used as a git submodule
20759         * build-aux/bootstrap (gnulib_path): If its length is zero then
20760         assign "gnulib" to it.
20761         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20762
20763 2010-05-16  Bruno Haible  <bruno@clisp.org>
20764
20765         Avoid autoconf warnings about AM_ICONV.
20766         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20767         2.64.
20768
20769 2010-05-16  Bruno Haible  <bruno@clisp.org>
20770
20771         absolute-header: Make the macro usable in more situations.
20772         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20773         from gl_ABSOLUTE_HEADER.
20774         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20775
20776 2010-05-16  James Youngman  <jay@gnu.org>
20777
20778         doc: update users.txt
20779         * users.txt: Add CSSC.
20780
20781 2010-05-16  Jim Meyering  <meyering@redhat.com>
20782
20783         init.sh: fix an error in the previous change; add more comments
20784         * tests/init.sh: Compare exit code in loop against 9, not 2.
20785         Patch by Bruno Haible.
20786         Make the two tests more similar by adding an empty "then" clause.
20787         Add comments.
20788
20789         init.sh: avoid unnecessary shell re-exec
20790         * tests/init.sh: Improve the re-exec-required check to first test the
20791         current shell.  If it passes the test, do not search for a shell that
20792         does pass, and do not re-exec.  This test is particularly contorted to
20793         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20794         of $(...) evokes a syntax error and causes immediate shell exit with
20795         status 2.  Bruno Haible reported that the re-exec made it impossible
20796         to single-step through any init.sh-using script.
20797
20798 2010-05-16  Bruno Haible  <bruno@clisp.org>
20799
20800         Fix collision between gnulib's and libintl's printf replacements.
20801         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20802         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20803         (printf): When using GNU C, map the __printf__ function to rpl_printf
20804         via __asm__. When not using GNU C, define rpl_printf instead of
20805         __printf__.
20806         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20807         commit.
20808         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20809         commit.
20810         * m4/asm-underscore.m4: New file.
20811         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20812         * modules/stdio (Files): Add m4/asm-underscore.m4.
20813         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20814         Reported by Ben Pfaff.
20815
20816 2010-05-16  Bruno Haible  <bruno@clisp.org>
20817
20818         verify: Avoid skipping the test on openSUSE 11.0.
20819         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20820
20821 2010-05-13  Bruno Haible  <bruno@clisp.org>
20822
20823         Avoid useless warnings from G++.
20824         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20825         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20826         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20827
20828 2010-05-11  Jim Meyering  <meyering@redhat.com>
20829
20830         maint.mk: tweak preceding change
20831         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20832         regexps tighter by anchoring at EOL, and make the new group "shy"
20833         for slightly decreased overhead.
20834
20835 2010-05-11  Eric Blake  <eblake@redhat.com>
20836
20837         maint.mk: gnulib doesn't guarantee NSIG
20838         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20839
20840 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20841
20842         test-pwrite.c: Remove unused variable declaration.
20843         * tests/test-pwrite.c (main): Remove read_buf declaration.
20844
20845         Remove useless test-pwrite.sh file.
20846         * tests/test-pwrite.sh: Delete file.
20847         * modules/pwrite-tests: Remove references.
20848         Reported by Bruno Haible.
20849
20850 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20851
20852         init.sh: fix a typo
20853         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20854
20855 2010-05-10  Jim Meyering  <meyering@redhat.com>
20856
20857         maint.mk: avoid using a temporary file in the always-defined-macros check
20858         * top/maint.mk (.re-defmac): Remove rule.
20859         (gl_trap_): Remove definition.
20860         (sc_prohibit_always-defined_macros): Rewrite not to create and
20861         depend on a temporary file.  Instead, depend on GNU grep's ability
20862         to read a list of regular expressions from stdin when given "-f -".
20863
20864 2010-05-09  Bruno Haible  <bruno@clisp.org>
20865
20866         Update to GNU gettext 0.18, part 1.
20867         * m4/gettext.m4: Update to GNU gettext 0.18.
20868         * m4/intl.m4: Likewise.
20869         * m4/po.m4: Likewise.
20870         * modules/gettext (Files): Add m4/fcntl-o.m4.
20871         (configure.ac): Require gettext infrastructure from version 0.18.
20872
20873 2010-05-09  Jim Meyering  <meyering@redhat.com>
20874
20875         init.sh: enable MALLOC_PERTURB_
20876         * tests/init.sh: Enable glibc's malloc-perturbing option.
20877
20878         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20879         With my recent change in init.sh from the two-line form:
20880             -#   : ${srcdir=.}
20881             -#   . "$srcdir/init.sh"; path_prepend_ .
20882             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20883         I noticed that using the one-line form would cause this test
20884         to fail with a false-positive, or to stop working altogether,
20885         depending on whether help-version changed or all the tests did.
20886         * top/maint.mk (_hv_regex): Remove this definition.
20887         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20888         (_hv_regex_strong): Use a stronger regex to check for conformance.
20889         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20890         Give a separate diagnostic for lack of conforming use.
20891
20892         maint.mk: prohibit definition of symbols defined by gnulib
20893         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20894         definition of symbols defined by gnulib.
20895
20896 2010-05-09  Bruno Haible  <bruno@clisp.org>
20897
20898         acl: Avoid test failure on Cygwin-hosted mingw.
20899         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20900
20901 2010-05-09  Bruno Haible  <bruno@clisp.org>
20902
20903         error: Use system's fcntl function.
20904         * lib/error.c (fcntl): Undefine.
20905
20906 2010-05-09  Jim Meyering  <meyering@redhat.com>
20907
20908         verify: adjust formatting to be more consistent
20909         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20910         argument-list '('s, and after one comma.
20911
20912 2010-05-09  Bruno Haible  <bruno@clisp.org>
20913
20914         error: More reliable output on mingw.
20915         * lib/error.c: Include <windows.h>.
20916         (is_open): New function.
20917         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20918         defined.
20919
20920 2010-05-09  Bruno Haible  <bruno@clisp.org>
20921
20922         vasnprintf: Fix syntax errors in libintl build on mingw.
20923         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20924         pad_ourselves and prec_ourselves after use.
20925
20926 2010-05-08  Bruno Haible  <bruno@clisp.org>
20927
20928         * lib/config.charset: Update comments for Cygwin 1.7.
20929         * lib/localcharset.c: Likewise.
20930
20931 2010-05-07  Jim Meyering  <meyering@redhat.com>
20932
20933         init.sh: improve comments
20934         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20935         . "${srcdir=.}/init.sh"; path_prepend_ .
20936         Add a note about path_prepend_ and the alternative of using
20937         TESTS_ENVIRONMENT.
20938
20939 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20940
20941         exclude: Unescape hashed patterns in wildcard mode.
20942         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20943         to the hash list.
20944         * tests/test-exclude8.sh: New test case.
20945         * modules/exclude-tests: Add new test.
20946
20947 2010-05-05  Eric Blake  <eblake@redhat.com>
20948
20949         verify: automate tests
20950         * modules/verify-tests: New module.
20951         * tests/test-verify.sh: New file.
20952         * tests/test-verify.c: Guard each negative test with a unique id.
20953         Also avoid warning about unused left hand of comma expressions.
20954
20955 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20956
20957         Further improvements to verify.h, suggested by Eric Blake.
20958         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20959         the GL_* versions, to avoid collision with OpenGL.
20960         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20961         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20962         than testing merely whether it's defined.
20963
20964         Modify verify.h to pacify gcc -Wredundant_decls.
20965         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20966         These use the prefix "GL_" since they're likely to be useful elsewhere.
20967         We may need to break them out into a different .h file.
20968         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20969         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20970         of verify_function__.
20971
20972 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20973
20974         Tests for module pwrite.
20975         * modules/pwrite-tests: New file.
20976         * tests/test-pwrite.sh: New file.
20977         * tests/test-pwrite.c: New file.
20978
20979         New module pwrite.
20980         * lib/unistd.in.h (pwrite): New declaration.
20981         * lib/pwrite.c: New file, from glibc with modifications.
20982         * m4/pwrite.m4: New file.
20983         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20984         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20985         REPLACE_PWRITE.
20986         * modules/pwrite: New file.
20987         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20988         REPLACE_PWRITE.
20989         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20990         * doc/posix-functions/pwrite.texi: Mention the new module.
20991
20992 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20993
20994         pread: Update documentation.
20995         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20996
20997 2010-05-04  Eric Blake  <eblake@redhat.com>
20998
20999         docs: update cygwin progress
21000         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
21001         this bug.
21002         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
21003         Added in cygwin 1.7.2.
21004         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
21005         Likewise.
21006         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
21007         Likewise.
21008         * doc/glibc-functions/dup3.texi (dup3): Likewise.
21009         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
21010         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21011         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
21012         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
21013         Mention nproc module.
21014         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
21015         bug in cygwin 1.7.5 addition.
21016         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
21017         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
21018         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
21019         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
21020         1.7.5.
21021         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
21022         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
21023         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
21024         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
21025         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
21026         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
21027         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
21028         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
21029         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
21030         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
21031         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
21032         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
21033         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
21034         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
21035         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
21036         Likewise.
21037         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
21038         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
21039         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
21040         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
21041         Likewise.
21042         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
21043         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
21044         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
21045         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
21046         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
21047         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
21048         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
21049         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
21050         Likewise.
21051         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
21052         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
21053         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
21054         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
21055         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
21056         Likewise.
21057         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
21058         Likewise.
21059         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
21060         Likewise.
21061         * doc/glibc-functions/xdrrec_endofrecord.texi
21062         (xdrrec_endofrecord): Likewise.
21063         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
21064         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
21065         Likewise.
21066         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
21067         Likewise.
21068
21069 2010-05-04  Jim Meyering  <meyering@redhat.com>
21070
21071         gendocs.sh: make its "-s FILE" option more useful
21072         * build-aux/gendocs.sh: When honoring the -s FILE option, update
21073         $PACKAGE to reflect the probably-different basename of "FILE".
21074
21075 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21076
21077         bootstrap: don't ignore download_po_files failure
21078         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
21079         failure.
21080
21081 2010-05-03  Jim Meyering  <meyering@redhat.com>
21082
21083         maint.mk: allow to pass options to gendocs.sh
21084         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
21085         (gendocs_options_): New overridable variable.
21086
21087         gnu-web-doc-update: don't ignore configure or build failure
21088         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
21089
21090         announce-gen: backslash-escape '@'s in --help output
21091         * build-aux/announce-gen: Fix syntax errors.
21092
21093         maint.mk, announce-gen: allow project-specific announcement mail headers
21094         * top/maint.mk (translation_project_): Define default.
21095         (announcement_Cc_, announcement_mail_headers_): Likewise.
21096         (announcement): Invoke announce-gen with new --mail-headers option.
21097         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
21098
21099         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
21100         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
21101         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
21102         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
21103         line in the "err2" output file when running "make check" in verbose
21104         mode (i.e., with set -x enabled).
21105
21106 2010-05-03  Bruno Haible  <bruno@clisp.org>
21107
21108         wctob: Fix for weird platforms.
21109         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
21110         argument value.
21111
21112 2010-05-03  Jim Meyering  <meyering@redhat.com>
21113
21114         maint.mk: prohibit unwarranted use of <strings.h>
21115         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
21116         strings.h in a file that does not also use strcasecmp, strncasecmp,
21117         ffs or ffsll.
21118
21119         maint.mk: remove obsolete comments
21120         * top/maint.mk: Remove stale, commented-out rules.
21121
21122 2010-05-02  Bruno Haible  <bruno@clisp.org>
21123
21124         wcwidth: Declare also when it's aliased.
21125         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
21126         macro.
21127
21128 2010-05-02  Bruno Haible  <bruno@clisp.org>
21129
21130         Fix regression from 2010-04-25.
21131         * gnulib-tool (func_modules_transitive_closure): Check the status of
21132         all modules, not only of the tests that are of the form foo-tests where
21133         foo is a module.
21134
21135 2010-05-02  Bruno Haible  <bruno@clisp.org>
21136
21137         wctob: Work around nasty Cygwin 1.7.2 bug.
21138         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
21139         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
21140
21141 2010-05-01  Bruno Haible  <bruno@clisp.org>
21142
21143         fpurge: Sharper test.
21144         * tests/test-fpurge.c (main): Add one more ftell check.
21145         * modules/fpurge-tests (Depends-on): Add ftell.
21146         Suggested by Eric Blake.
21147
21148 2010-05-01  Bruno Haible  <bruno@clisp.org>
21149
21150         ftello: Another test.
21151         * tests/test-ftello3.c: New file.
21152         * modules/ftello-tests (Files): Add it.
21153         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21154         MOSTLYCLEANFILES.
21155
21156         ftell: Another test.
21157         * tests/test-ftell3.c: New file.
21158         * modules/ftell-tests (Files): Add it.
21159         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21160         MOSTLYCLEANFILES.
21161
21162 2010-05-01  Bruno Haible  <bruno@clisp.org>
21163
21164         ftell, ftello: Work around Solaris bug.
21165         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
21166         * lib/ftello.c: Include stdio-impl.h.
21167         (ftello): On Solaris, when _IOWRT is set, compute the result without
21168         looking at _IOREAD.
21169         * modules/ftello (Files): Add lib/stdio-impl.h.
21170         * doc/posix-functions/ftell.texi: Mention Solaris bug.
21171         * doc/posix-functions/ftello.texi: Likewise.
21172         Reported by Eric Blake.
21173
21174 2010-05-01  Bruno Haible  <bruno@clisp.org>
21175
21176         freading: Adapt to special meaning of _IOREAD flag on Solaris.
21177         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
21178         the _IOWRT flag is also set.
21179
21180 2010-05-01  Bruno Haible  <bruno@clisp.org>
21181
21182         Fix doc about a HP-UX stdio bug.
21183         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
21184         * doc/posix-functions/ftello.texi: Likewise.
21185
21186 2010-05-01  Bruno Haible  <bruno@clisp.org>
21187
21188         lseek test: Fix failure on Solaris.
21189         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
21190         output.
21191
21192 2010-04-30  Jim Meyering  <meyering@redhat.com>
21193
21194         bootstrap: don't ignore failure to generate po*/Makevars
21195         * build-aux/bootstrap (with_gettext): Don't ignore failure
21196         to create po/Makevars or runtime-po/Makevars.
21197
21198 2010-04-29  Eric Blake  <eblake@redhat.com>
21199
21200         headers: relax license to LGPLv2+
21201         * modules/fcntl-h (License): Relax license.
21202         * modules/getopt-posix (License): Likewise.
21203         * modules/locale (License): Likewise.
21204         * modules/math (License): Likewise.
21205         * modules/pty (License): Likewise.
21206         * modules/sched (License): Likewise.
21207         * modules/search (License): Likewise.
21208         * modules/spawn (License): Likewise.
21209         * modules/stdarg (License): Likewise.
21210         * modules/sysexits (License): Likewise.
21211
21212 2010-04-29  Jim Meyering  <meyering@redhat.com>
21213
21214         inttypes: relax license to LGPLv2+
21215         * modules/inttypes (License): Relax license.
21216
21217 2010-04-29  Simon Josefsson  <simon@josefsson.org>
21218
21219         * top/maint.mk (indent): Run twice to produce idempotent results.
21220
21221 2010-04-28  Bruno Haible  <bruno@clisp.org>
21222
21223         getdate: Generate getdate.c in the source directory.
21224         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
21225         MOSTLYCLEANFILES.
21226         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
21227
21228 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
21229
21230         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
21231         is not declared as a const *; avoid warnings in that case.
21232
21233 2010-04-28  Eric Blake  <eblake@redhat.com>
21234
21235         canonicalize-lgpl: avoid compiler warning
21236         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
21237         declaration' / 'extraneous semicolon' warning with some compilers.
21238         Reported by Andreas Gruenbacher.
21239
21240 2010-04-28  Jim Meyering  <meyering@redhat.com>
21241
21242         init.sh: ensure a more reliable exit status when exiting via trap
21243         * tests/init.sh (setup_): Don't rely on $? in signal handler.
21244         Inspired by patches from Dmitry V. Levin.
21245         Also trap on signal 3 (SIGQUIT).
21246
21247 2010-04-27  Bruno Haible  <bruno@clisp.org>
21248
21249         Update doc about utimes().
21250         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
21251         'utimens' module.
21252         Reported by Andreas Gruenbacher <agruen@suse.de>.
21253
21254 2010-04-27  Eric Blake  <eblake@redhat.com>
21255
21256         full-read, full-write: relax license
21257         * modules/full-read (License): Drop to LGPLv2+.
21258         * modules/full-write (License): Likewise.
21259         * modules/safe-read (License): Likewise.
21260         * modules/safe-write (License): Likewise.
21261
21262         pthread: mention library for linking
21263         * modules/pthread (Link): Mention $(LIB_PTHREAD).
21264
21265 2010-04-27  Jim Meyering  <meyering@redhat.com>
21266
21267         maint.mk: fix a bug introduced in last change
21268         * top/maint.mk (gl_assured_headers_): Now that all names are on
21269         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
21270         is not anchored to end of word, it should be adequate.
21271
21272         maint.mk: avoid side-effect in latest syntax-check
21273         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
21274         to run commands via $(shell...), and hence to incur cost only when
21275         the new rule is actually run.
21276
21277         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
21278         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
21279         and use that to create a regexp used to detect all #if HAVE_..._H uses.
21280         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
21281         (gl_assured_headers_, az_, AZ_): Define.
21282         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
21283
21284 2010-04-26  Jim Meyering  <jim@meyering.net>
21285             Bruno Haible  <bruno@clisp.org>
21286
21287         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
21288         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
21289         Prompted by an exchange with Gilles Espinasse.
21290
21291 2010-04-26  Jim Meyering  <meyering@redhat.com>
21292
21293         git-version-gen: aesthetic tweak
21294         * build-aux/git-version-gen: Use "$nl" rather than a literal,
21295         so that the command remains on a single line.
21296
21297 2010-04-26  Eric Blake  <eblake@redhat.com>
21298
21299         git-version-gen: allow use on EBCDIC hosts
21300         * build-aux/git-version-gen (dirty): Use literal rather than tying
21301         ourselves to ascii.
21302         Reported by Steve Goetze.
21303
21304 2010-04-25  Bruno Haible  <bruno@clisp.org>
21305
21306         netdb: Add support for GNULIB_POSIXCHECK.
21307         * lib/netdb.in.h: Include warn-on-use.h.
21308         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
21309         functions are used when GNULIB_POSIXCHECK is defined and the
21310         getaddrinfo module is not in use.
21311         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
21312         freeaddrinfo, gai_strerror, getnameinfo are declared.
21313         * modules/netdb (Depends-on): Add warn-on-use.
21314         (Makefile.am): Include warn-on-use.h in netdb.h.
21315
21316 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
21317
21318         build: avoid "make check" failure without .git/ directory
21319         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
21320         there is no .git/ directory.
21321
21322 2010-04-25  Bruno Haible  <bruno@clisp.org>
21323
21324         ptsname: Fix misuse of ttyname_r.
21325         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
21326         of errno.
21327
21328 2010-04-25  Bruno Haible  <bruno@clisp.org>
21329
21330         ttyname_r: Make it work on Solaris 10.
21331         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
21332         if the system function has the POSIX declaration. Test whether the
21333         function fails if the buffer is less than 128 bytes large.
21334         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
21335         system's ttyname_r function. Provide a reasonably large buffer.
21336         * modules/ttyname_r (Depends-on): Add extensions.
21337         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
21338
21339 2010-04-25  Bruno Haible  <bruno@clisp.org>
21340
21341         Use the 'extensions' module for some more functions on Solaris.
21342         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
21343         module.
21344         * doc/posix-functions/ctime_r.texi: Likewise.
21345         * doc/posix-functions/getgrgid_r.texi: Likewise.
21346         * doc/posix-functions/getgrnam_r.texi: Likewise.
21347         * doc/posix-functions/getpwnam_r.texi: Likewise.
21348         * doc/posix-functions/getpwuid_r.texi: Likewise.
21349         * doc/posix-functions/readdir_r.texi: Likewise.
21350         * doc/posix-functions/sigwait.texi: Likewise.
21351         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
21352         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
21353
21354 2010-04-25  Bruno Haible  <bruno@clisp.org>
21355
21356         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
21357         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
21358         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
21359         * lib/ttyname_r.c: Include <limits.h>.
21360         (ttyname_r): Define using the system's ttyname_r function, if it exists
21361         and not on Solaris.
21362         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
21363         set.
21364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
21365         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
21366         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
21367         Reported by Simon Josefsson.
21368
21369 2010-04-25  Bruno Haible  <bruno@clisp.org>
21370
21371         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
21372         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
21373         * doc/posix-functions/ctime_r.texi: Likewise.
21374         * doc/posix-functions/getgrgid_r.texi: Likewise.
21375         * doc/posix-functions/getgrnam_r.texi: Likewise.
21376         * doc/posix-functions/getlogin_r.texi: Likewise.
21377         * doc/posix-functions/getpwnam_r.texi: Likewise.
21378         * doc/posix-functions/getpwuid_r.texi: Likewise.
21379         * doc/posix-functions/readdir_r.texi: Likewise.
21380         * doc/posix-functions/sigwait.texi: Likewise.
21381         * doc/posix-functions/ttyname_r.texi: Likewise.
21382         Reported by Simon Josefsson.
21383
21384 2010-04-25  Bruno Haible  <bruno@clisp.org>
21385
21386         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
21387         * gnulib-tool (func_usage): Document that --with-*-tests options apply
21388         also to --create-testdir.
21389         (func_acceptable): Don't consider the status of *-tests modules here.
21390         (func_modules_transitive_closure): Consider it here, before including a
21391         test module.
21392         (func_import, func_create_testdir): Set inc_all_direct_tests,
21393         inc_all_indirect_tests.
21394         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
21395         --create-testdir and --create-megatestdir.
21396
21397 2010-04-25  Bruno Haible  <bruno@clisp.org>
21398
21399         gnulib-tool: Add --without-*-tests options.
21400         * gnulib-tool (func_usage): Document the --without-*-tests options.
21401         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
21402         excl_unportable_tests): New variables.
21403         Fail if they are specified with --import or --update.
21404         (func_acceptable): Respect the excl_*_tests variables.
21405         (func_import): Set the excl_*_tests variables to empty.
21406
21407 2010-04-25  Simon Josefsson  <simon@josefsson.org>
21408             Bruno Haible  <bruno@clisp.org>
21409
21410         Work around a MacOS X 10.4 bug with openpty.
21411         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21412         * tests/test-openpty.c (main): Close the master side explicitly.
21413
21414 2010-04-25  Bruno Haible  <bruno@clisp.org>
21415
21416         strnlen: Fix a C++ test error on MacOS X and Solaris.
21417         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
21418         the function is not declared.
21419         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
21420         Simon Josefsson.
21421
21422 2010-04-24  Bruno Haible  <bruno@clisp.org>
21423
21424         Avoid a gcc warning.
21425         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
21426         of correct type for %08lx directive.
21427         Reported by Eric Blake.
21428
21429 2010-04-24  Bruno Haible  <bruno@clisp.org>
21430
21431         vasnprintf: Correct errno value in case of out-of-memory.
21432         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
21433         or sprintf. Use the errno value from SNPRINTF or sprintf.
21434         Reported by Ian Beckwith <ianb@erislabs.net>.
21435
21436 2010-04-24  Bruno Haible  <bruno@clisp.org>
21437
21438         ansi-c++-opt: Find correct compiler when cross-compiling.
21439         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
21440         AC_CHECK_PROGS.
21441         Reported by Simon Josefsson.
21442
21443 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
21444
21445         vc-list-files: Add support for subversion
21446         * build-aux/vc-list-files: Use "svn list" to generate the list of
21447         files controlled by subversion.
21448
21449 2010-04-23  Jim Meyering  <meyering@redhat.com>
21450
21451         vc-list-files tests: convert to use init.sh
21452         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
21453         path_prepend_.
21454         Use Exit, not exit.
21455         Use skip_ rather than open coding it.
21456         Remove trap set-up and compare definitions.
21457         * tests/test-vc-list-files-git.sh: Likewise.
21458         * modules/vc-list-files-tests (Files): Add tests/init.sh.
21459
21460 2010-04-22  Simon Josefsson  <simon@josefsson.org>
21461
21462         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
21463         backup files.
21464
21465 2010-04-21  Simon Josefsson  <simon@josefsson.org>
21466
21467         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
21468
21469 2010-04-20  Eric Blake  <eblake@redhat.com>
21470
21471         tests: be robust to ignored SIGPIPE
21472         * tests/test-select-in.sh: Consume all output.
21473         * tests/test-lseek.sh: Check correct exit status, while avoiding
21474         EPIPE.
21475
21476 2010-04-20  Simon Josefsson  <simon@josefsson.org>
21477             Bruno Haible  <bruno@clisp.org>
21478
21479         visibility: Don't use -fvisibility if it leads to a warning.
21480         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
21481         yes, don't pretend that visibility works if it leads to a warning.
21482         Reported by Mike Gran <spk121@yahoo.com>.
21483
21484 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
21485
21486         * build-aux/bootstrap: Use "git -h" for testing for supported options
21487         instead of "git --help".  The short-form option only shows a summary,
21488         and doesn't layout the full man page.  Grep for the full option name
21489         in the summary, too.
21490
21491 2010-04-19  Bruno Haible  <bruno@clisp.org>
21492
21493         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
21494         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
21495         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
21496         mention of RELOCATABLE_STRIP.
21497         Reported by Sylvain Beucler <beuc@beuc.net>.
21498
21499 2010-04-19  Bruno Haible  <bruno@clisp.org>
21500
21501         * lib/diffseq.h: Fix typo in comment.
21502         Reported by Eric Blake.
21503
21504 2010-04-19  Bruno Haible  <bruno@clisp.org>
21505
21506         ioctl: Move autoconf macro to a .m4 file.
21507         * m4/ioctl.m4: New file, extracted from modules/ioctl.
21508         * modules/ioctl (Files): Add it.
21509         (configure.ac): Simply invoke gl_FUNC_IOCTL.
21510         Reported by Ian Beckwith <ianb@erislabs.net>.
21511
21512 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
21513             Bruno Haible  <bruno@clisp.org>
21514
21515         diffseq: Accommodate use-case with abstract arrays.
21516         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
21517         is not defined.
21518         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
21519         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
21520
21521 2010-04-18  Bruno Haible  <bruno@clisp.org>
21522
21523         * doc/posix-headers/stdbool.texi: More precise wording.
21524
21525 2010-04-17  Jim Meyering  <meyering@redhat.com>
21526
21527         maint.mk: use gnu-style indentation in an embedded perl script
21528         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
21529         Rename variable: s/two/last_two_bytes/
21530
21531 2010-04-16  Eric Blake  <eblake@redhat.com>
21532
21533         test-stdbool: skip test that fails with Solaris CC
21534         * tests/test-stdbool.c (f): Skip test that causes compilation
21535         error under buggy C++ compiler.
21536         * lib/stdbool.in.h: Document the limitation.
21537         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
21538
21539         setenv: allow compilation with C++
21540         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
21541         register keyword.
21542
21543         stdint: allow test to pass with C++
21544         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
21545
21546         getopt: allow compilation with C++
21547         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
21548         struct.
21549         * lib/getopt.c (_getopt_internal_r): Use correct type.
21550         Reported by Dagobert Michelson, via Joel E. Denny.
21551
21552 2010-04-16  Bruno Haible  <bruno@clisp.org>
21553
21554         Override netdb.h always.
21555         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
21556         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
21557         Reported by Ludovic Courtès <ludo@gnu.org>.
21558
21559 2010-04-15  Bruno Haible  <bruno@clisp.org>
21560
21561         openpty: Fix mistake from 2010-03-21.
21562         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
21563         Reported by Simon Josefsson.
21564
21565 2010-04-15  Eric Blake  <eblake@redhat.com>
21566
21567         test-forkpty: fix expected signature
21568         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
21569         Reported by Simon Josefsson.
21570
21571 2010-04-15  Jim Meyering  <meyering@redhat.com>
21572
21573         maint.mk: texinfo_suffix_re_: correct the default regexp
21574         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
21575
21576         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
21577         make it configurable via texinfo_suffix_re_.
21578
21579 2010-04-14  Eric Blake  <eblake@redhat.com>
21580
21581         strtok_r: relax license to LGPLv2+
21582         * modules/strtok_r (License): Relax license.
21583         Reported by Matthias Bolte.
21584
21585 2010-04-14  Simon Josefsson  <simon@josefsson.org>
21586
21587         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
21588         version 1.4.4 by default instead of requiring the libgcrypt
21589         version used during build.  This makes it possible to use the
21590         application with older but still binary compatible libgcrypt
21591         versions.
21592
21593 2010-04-13  Eric Blake  <eblake@redhat.com>
21594
21595         getopt-gnu: match recent glibc fixes and posix ruling
21596         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
21597         '+' handling, when requesting extensions.
21598         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
21599         'W;' handling.
21600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
21601         * doc/posix-functions/getopt.texi (getopt): Document this.
21602         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21603         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21604         Likewise.
21605
21606         getopt: merge bug fixes from glibc
21607         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
21608         diagnostics.  Honor '+:' correctly.  Reject ';'.
21609
21610         getopt-posix: detect MacOS bug
21611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
21612         optind when missing a required argument.
21613         * doc/posix-functions/getopt.texi (getopt): Document the bug.
21614         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21615         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21616         Likewise.
21617
21618         getopt-posix: avoid spurious failure on Solaris
21619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
21620         an indicator that setting optind=1 is sufficient for reset.
21621
21622         getopt-posix: avoid spurious failure on FreeBSD
21623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
21624         in POSIX mode, since the m4 test uses it.
21625
21626         gnulib-tool: silence warning on BSD sh
21627         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
21628
21629 2010-04-13  Jim Meyering  <meyering@redhat.com>
21630
21631         doc: users.txt: GNU patch now uses gnulib
21632         * users.txt: Add patch.
21633
21634 2010-04-12  Jim Meyering  <meyering@redhat.com>
21635
21636         maint.mk: generate more concise timing data for syntax-check rules
21637         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
21638         " done" from each line that reports a syntax-check test duration.
21639
21640 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
21641
21642         git-version-gen: use "git update-index..." rather than "git status"
21643         * build-aux/git-version-gen: Use git update-index --refresh, not
21644         "git status".  With some versions of git, "git status" would fail
21645         to update the index and result in an unwarranted "-dirty" suffix.
21646
21647 2010-04-11  Jim Meyering  <meyering@redhat.com>
21648
21649         openat: correct formatting (no semantic change)
21650         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
21651         Suggested by Bruno Haible.
21652
21653 2010-04-11  Bruno Haible  <bruno@clisp.org>
21654
21655         Stricter declaration checking in testdirs.
21656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21657         If for_tests is true, augment AM_CPPFLAGS to define
21658         GNULIB_STRICT_CHECKING.
21659         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
21660         GNULIB_STRICT_CHECKING is defined, verify that the function is
21661         declared.
21662
21663 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
21664             Bruno Haible  <bruno@clisp.org>
21665
21666         libunistring: Improve configure output.
21667         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21668         Don't say "consider installing GNU libunistring" when checking again
21669         with libiconv.
21670
21671 2010-04-11  Bruno Haible  <bruno@clisp.org>
21672
21673         libunistring: Correct value of $LTLIBUNISTRING.
21674         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21675         correct the value of $LTLIBUNISTRING.
21676
21677 2010-04-11  Bruno Haible  <bruno@clisp.org>
21678
21679         havelib: Add static libraries to LIBS in the right order.
21680         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21681         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21682
21683 2010-04-11  Bruno Haible  <bruno@clisp.org>
21684
21685         libunistring: Detect libunistring also when it depends on libiconv.
21686         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21687         the second AC_LIB_HAVE_LINKFLAGS invocation.
21688
21689 2010-04-11  James Youngman  <jay@gnu.org>
21690
21691         close-stream: declare local scalars to be "const"
21692         * lib/close-stream.c (close_stream): Make boolean variables const
21693         to document the fact that we set but do not change them.
21694
21695 2010-04-11  Bruno Haible  <bruno@clisp.org>
21696
21697         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21698
21699 2010-04-11  Jim Meyering  <meyering@redhat.com>
21700
21701         maint.mk: don't include dist-check.mk
21702         * top/maint.mk: Remove bogus include directive.
21703
21704         maint.mk: improve empty-line-at-EOF check
21705         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21706         solution, rather than tail+Perl-based one.  The latter would read
21707         a few kilobytes from the end of each file, and did not handle empty
21708         files properly.
21709
21710         maint.mk: print the elapsed time for each syntax-check rule
21711         * top/maint.mk (sc_m_rules_): Save start time in a file.
21712         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21713         (local-check): Interpose the .z rules
21714
21715 2010-04-11  Jim Meyering  <meyering@redhat.com>
21716
21717         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21718         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21719         empty file with one that ends in an empty line.
21720
21721 2010-04-10  Bruno Haible  <bruno@clisp.org>
21722
21723         mkdir: Make it work on mingw64.
21724         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21725         * lib/mkdir.c: Update comment.
21726         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21727
21728 2010-04-10  Bruno Haible  <bruno@clisp.org>
21729
21730         Don't override improved macro from newer autoconf.
21731         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21732         autoconf >= 2.62.
21733         Reported by Joel E. Denny <jdenny@clemson.edu>.
21734
21735 2010-04-10  Jim Meyering  <meyering@redhat.com>
21736
21737         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21738         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21739
21740         maint.mk: correct a diagnostic
21741         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21742         in diagnostic; now use $prohibit.
21743
21744 2010-04-10  Bruno Haible  <address@hidden>
21745
21746         fchownat: Fix a C++ test error on Solaris 8.
21747         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21748         the function does not exist.
21749
21750 2010-04-10  Bruno Haible  <bruno@clisp.org>
21751
21752         vasnprintf: Add more tests.
21753         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21754         (test_function): Test converting an invalid wide string.
21755
21756         vasnprintf: Correct handling of unconvertible wide string arguments.
21757         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21758         VASNPRINTF.
21759         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21760         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21761         smaller than the expected maximum need for the directive. Set errno to
21762         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21763         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21765         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21766         * modules/vasnprintf (Files): Add m4/printf.m4.
21767         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21768
21769 2010-04-10  Bruno Haible  <bruno@clisp.org>
21770
21771         vasnprintf: Fix crash in %ls directive.
21772         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21773         string is passed as argument to %ls, with no precision and no width.
21774         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21775
21776 2010-04-10  Bruno Haible  <bruno@clisp.org>
21777
21778         vasnprintf: Fix multiple test failures on mingw.
21779         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21780         _snprintf, or snwprintf, not _snwprintf.
21781
21782 2010-04-10  Bruno Haible  <bruno@clisp.org>
21783
21784         write: Fix a C++ test error on mingw.
21785         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21786
21787 2010-04-10  Bruno Haible  <bruno@clisp.org>
21788
21789         vasnprintf test: Reduce code duplication.
21790         * tests/test-vasnprintf.c (test_function): New function, extracted from
21791         test_vasnprintf.
21792         (test_vasnprintf, test_asnprintf): Invoke it.
21793
21794 2010-04-10  Bruno Haible  <bruno@clisp.org>
21795
21796         strnlen: Fix warning in C++ mode on MacOS X.
21797         * lib/string.in.h (strnlen): Use the modern idiom.
21798         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21799         defining strnlen as a macro already in <config.h>.
21800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21801         REPLACE_STRNLEN.
21802         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21803         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21804
21805 2010-04-08  James Youngman  <jay@gnu.org>
21806
21807         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21808         the example.
21809
21810 2010-04-09  Jim Meyering  <meyering@redhat.com>
21811
21812         maint.mk: print better diagnostic when there is no $(_hv_file)
21813         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21814         announce that when $(_hv_file) (aka help-version) does not exist.
21815
21816         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21817         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21818         not try to interpret its random input bytes.  Jarno Rajahalme reported
21819         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21820         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21821         (mktempd_): Likewise, just in case.
21822
21823         ftruncate: add two years to projected module removal date: 2012
21824         * m4/ftruncate.m4: Adjust comments.
21825
21826         ftruncate: mark module as obsolete; even MinGW provides it, now
21827         * modules/ftruncate (Status): Obsolete.
21828         (Notice): Say that.
21829         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21830         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21831
21832 2010-04-08  Bruno Haible  <bruno@clisp.org>
21833
21834         Fix side effects from tests-related modules.
21835         * modules/dprintf-posix (Comment): New section.
21836         * modules/fprintf-posix (Comment): Likewise.
21837         * modules/obstack-printf-posix (Comment): Likewise.
21838         * modules/printf-posix (Comment): Likewise.
21839         * modules/snprintf-posix (Comment): Likewise.
21840         * modules/sprintf-posix (Comment): Likewise.
21841         * modules/vasnprintf-posix (Comment): Likewise.
21842         * modules/vasprintf-posix (Comment): Likewise.
21843         * modules/vdprintf-posix (Comment): Likewise.
21844         * modules/vfprintf-posix (Comment): Likewise.
21845         * modules/vprintf-posix (Comment): Likewise.
21846         * modules/vsnprintf-posix (Comment): Likewise.
21847         * modules/vsprintf-posix (Comment): Likewise.
21848         * modules/xprintf-posix (Comment): Likewise.
21849         * modules/xvasprintf-posix (Comment): Likewise.
21850         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21851         * modules/floorf-tests (Depends-on): Likewise.
21852         * modules/round-tests (Depends-on): Likewise.
21853         * modules/roundf-tests (Depends-on): Likewise.
21854         * modules/trunc-tests (Depends-on): Likewise.
21855         * modules/truncf-tests (Depends-on): Likewise.
21856         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21857         'fprintf-posix' module is not present.
21858         * tests/test-floorf2.c (check): Likewise.
21859         * tests/test-trunc2.c (check): Likewise.
21860         * tests/test-truncf2.c (check): Likewise.
21861         * tests/test-round2.c (equal): Likewise.
21862         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21863
21864 2010-04-07  Karl Berry  <karl@gnu.org>
21865
21866         * config/srclist.txt,
21867         * config/srclistvars.sh,
21868         * config/srclist-update: doc fixes.
21869
21870 2010-04-07  Jim Meyering  <meyering@redhat.com>
21871
21872         maint.mk: add a PATH crosschecking syntax-check rule
21873         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21874         Useful if you use a test like the one in help-version (coreutils,
21875         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21876         printed by prog --version.
21877
21878 2010-04-06  Bruno Haible  <bruno@clisp.org>
21879
21880         Fix link error on mingw.
21881         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21882         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21883
21884 2010-04-06  Bruno Haible  <bruno@clisp.org>
21885
21886         Assume rmdir exists.
21887         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21888
21889 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21890
21891         doc: update users.txt
21892         * users.txt: Add gcal.
21893
21894 2010-04-06  Jim Meyering  <meyering@redhat.com>
21895
21896         init.sh: simply unset TMPDIR rather than risking env -i
21897         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21898         although it probably works fine on all Unix-based systems, some
21899         systems (Cygwin?) cannot tolerate a totally cleared environment.
21900         Suggestion from Eric Blake.
21901
21902 2010-04-06  Jim Meyering  <meyering@redhat.com>
21903
21904         init.sh: portability fix: use env's POSIX-specified -i option not -u
21905         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21906         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21907
21908 2010-04-05  Bruno Haible  <bruno@clisp.org>
21909
21910         btowc: Work around Cygwin 1.7.2 bug.
21911         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21912         does not map NUL to 0.
21913         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21914
21915 2010-04-05  Bruno Haible  <bruno@clisp.org>
21916
21917         Make the multithread modules work on Cygwin 1.7.2.
21918         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21919         imported symbols can be declared weak, so that it returns "no" on
21920         Cygwin 1.7.2.
21921
21922 2010-04-05  Bruno Haible  <bruno@clisp.org>
21923
21924         Use the module 'strncat'.
21925         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21926
21927         Tests for module 'strncat'.
21928         * modules/strncat-tests: New file.
21929         * tests/test-strncat.c: New file.
21930
21931         New module 'strncat'.
21932         * lib/string.in.h (strncat): New declaration.
21933         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21934         * m4/strncat.m4: New file, based on m4/memchr.m4.
21935         * modules/strncat: New file.
21936         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21937         is declared.
21938         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21939         REPLACE_STRNCAT.
21940         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21941         REPLACE_STRNCAT.
21942         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21943         module.
21944         * tests/test-string-c++.cc: Check signature of strncat.
21945
21946 2010-04-05  Jim Meyering  <meyering@redhat.com>
21947
21948         xstrtoumax-tests: convert to use init.sh
21949         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21950         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21951         Use Exit, not exit.
21952         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21953
21954         xstrtoimax-tests: convert to use init.sh
21955         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21956         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21957         Use Exit, not exit.
21958         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21959
21960 2010-04-05  Bruno Haible  <bruno@clisp.org>
21961
21962         sys_socket: Avoid #define replacements in C++ mode.
21963         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21964         warning to the function if possible, rather than #defining the symbol
21965         to a dysfunctional alias.
21966
21967 2010-04-05  Bruno Haible  <bruno@clisp.org>
21968
21969         fseeko: Fix C++ test error on mingw.
21970         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21971         gl_FUNC_FSEEKO.
21972         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21973         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21974         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21975         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21976
21977 2010-04-05  Bruno Haible  <bruno@clisp.org>
21978
21979         duplocale: Improve test output.
21980         * tests/test-duplocale.c (main): Print reason for skipped test.
21981
21982 2010-04-05  Bruno Haible  <bruno@clisp.org>
21983
21984         Assume rmdir exists.
21985         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21986         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21987
21988 2010-04-05  Bruno Haible  <bruno@clisp.org>
21989
21990         Fix link error on Solaris 8 with cc.
21991         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21992
21993 2010-04-05  Bruno Haible  <bruno@clisp.org>
21994
21995         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21996         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21997
21998 2010-04-05  Bruno Haible  <bruno@clisp.org>
21999
22000         vasprintf: Update documentation.
22001         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
22002
22003 2010-04-05  Bruno Haible  <bruno@clisp.org>
22004
22005         ptsname: Improve test.
22006         * tests/test-ptsname.c (main): Also try the various master names of BSD
22007         systems.
22008
22009 2010-04-05  Bruno Haible  <bruno@clisp.org>
22010
22011         memchr: Avoid a possible C++ test error.
22012         * lib/string.in.h (memchr): Provide declaration if function is missing.
22013         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
22014         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
22015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
22016         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
22017
22018 2010-04-05  Bruno Haible  <bruno@clisp.org>
22019
22020         strtok_r: Improve idiom.
22021         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
22022         AC_LIBOBJ is used.
22023
22024 2010-04-05  Bruno Haible  <bruno@clisp.org>
22025
22026         strdup: Improve idiom.
22027         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
22028         AC_LIBOBJ is used.
22029         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
22030         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
22031         when AC_LIBOBJ is used.
22032
22033 2010-04-05  Bruno Haible  <bruno@clisp.org>
22034
22035         mbsinit, mbrtowc, wcrtomb: Improve idioms.
22036         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
22037         don't set REPLACE_MBSINIT to 1.
22038         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
22039         don't set REPLACE_MBRTOWC to 1.
22040         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
22041         exist, don't set REPLACE_MBSRTOWCS to 1.
22042         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
22043         exist, don't set REPLACE_MBSNRTOWCS to 1.
22044         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
22045         don't set REPLACE_WCRTOMB to 1.
22046         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
22047         exist, don't set REPLACE_WCSRTOMBS to 1.
22048         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
22049         exist, don't set REPLACE_WCSNRTOMBS to 1.
22050
22051 2010-04-05  Bruno Haible  <bruno@clisp.org>
22052
22053         ldexpl: Improve idiom.
22054         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
22055         make sure to set HAVE_DECL_LDEXPL to 0.
22056
22057 2010-04-05  Jim Meyering  <meyering@redhat.com>
22058
22059         xstrtol-tests: convert to use init.sh
22060         * modules/xstrtol-tests (Files): Add tests/init.sh.
22061         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22062         Use Exit, not exit.
22063         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22064
22065         atexit-tests: convert to use init.sh
22066         * modules/atexit-tests (Files): Add tests/init.sh.
22067         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22068         Use Exit, not exit.
22069         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22070
22071         init.sh: fix typo
22072         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
22073
22074         init.sh: make it easier for a test script to write to the tty, ...
22075         when using automake's parallel-tests mode.
22076         * tests/init.sh (stderr_fileno_): Define overridable variable.
22077         (warn_): New function, to use it.
22078         (fail_, skip_, framework_failure_): Use warn_.
22079
22080 2010-04-04  Bruno Haible  <bruno@clisp.org>
22081
22082         btowc: Avoid warning.
22083         * lib/btowc.c: Include <stdlib.h>.
22084         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
22085
22086 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22087             Bruno Haible  <bruno@clisp.org>
22088
22089         wchar: Port to NetBSD 1.5.
22090         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
22091         * lib/wctype.in.h (WEOF): Likewise.
22092
22093 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22094             Bruno Haible  <bruno@clisp.org>
22095
22096         Port extended stdio to NetBSD 1.5.
22097         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
22098         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
22099         older.
22100
22101 2010-04-04  Bruno Haible  <bruno@clisp.org>
22102
22103         string: Remove unused substitution.
22104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
22105         HAVE_DECL_STRERROR.
22106         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
22107
22108 2010-04-04  Bruno Haible  <bruno@clisp.org>
22109
22110         strtod: Avoid a possible C++ test error.
22111         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
22112         set REPLACE_STRTOD.
22113
22114 2010-04-04  Bruno Haible  <bruno@clisp.org>
22115
22116         strerror: Update documentation.
22117         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
22118
22119 2010-04-04  Bruno Haible  <bruno@clisp.org>
22120
22121         stdio: Fix some C++ test errors on Solaris 8 with GCC.
22122         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
22123         _GL_CXXALIAS_SYS_CAST.
22124
22125 2010-04-04  Bruno Haible  <bruno@clisp.org>
22126
22127         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22128         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
22129         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
22130         REPLACE_FREXPL to 1.
22131         * doc/posix-functions/frexpl.texi: Update documentation.
22132
22133 2010-04-04  Bruno Haible  <bruno@clisp.org>
22134
22135         math: Fix some C++ test errors on Solaris 8 and Cygwin.
22136         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
22137
22138 2010-04-04  Bruno Haible  <bruno@clisp.org>
22139
22140         Implement nanosleep for native Windows.
22141         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
22142
22143 2010-04-04  Bruno Haible  <bruno@clisp.org>
22144
22145         math: Fix some C++ test errors on Solaris 8.
22146         * lib/math.in.h (truncf, trunc): Use simpler idiom.
22147
22148 2010-04-04  Bruno Haible  <bruno@clisp.org>
22149
22150         math: Fix some C++ test errors on Cygwin.
22151         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
22152         truncl): Provide declaration if the system does not have it.
22153         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
22154         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
22155         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
22156         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
22157         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
22158         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
22159         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
22160         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
22161         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
22162         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
22163         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
22164         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
22165         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
22166         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
22167         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
22168         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
22169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
22170         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22171         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22172         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
22173         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22174         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22175
22176 2010-04-04  Bruno Haible  <bruno@clisp.org>
22177
22178         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
22179         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22180         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22181         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
22182         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22183         * m4/isinf.m4 (gl_ISINF): Likewise.
22184         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22185
22186 2010-04-04  Bruno Haible  <bruno@clisp.org>
22187
22188         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
22189         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22190
22191 2010-04-04  Bruno Haible  <bruno@clisp.org>
22192
22193         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
22194         * modules/tmpfile (configure.ac): Update.
22195
22196         tmpfile: Fix C++ test error on mingw.
22197         * lib/stdio.in.h (tmpfile): New declaration.
22198         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
22199         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
22200         * modules/tmpfile (Depends-on): Add stdio.
22201         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
22202         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
22203         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
22204         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
22205         REPLACE_TMPFILE.
22206         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
22207
22208 2010-04-04  Bruno Haible  <bruno@clisp.org>
22209
22210         ioctl: Fix C++ test error on mingw.
22211         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
22212         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
22213         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
22214
22215 2010-04-03  Bruno Haible  <bruno@clisp.org>
22216
22217         wcwidth: Fix C++ test error on mingw.
22218         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
22219         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
22220         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
22221
22222 2010-04-03  Bruno Haible  <bruno@clisp.org>
22223
22224         nanosleep: Fix C++ test error on mingw.
22225         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
22226         * lib/time.in.h (nanosleep): Use modern idiom.
22227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
22228         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
22229         REPLACE_NANOSLEEP to 1.
22230         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
22231         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
22232
22233 2010-04-03  Bruno Haible  <bruno@clisp.org>
22234
22235         strptime: Fix C++ test error on mingw.
22236         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
22237         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
22238         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
22239         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
22240         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
22241         not REPLACE_STRPTIME.
22242         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
22243         REPLACE_STRPTIME.
22244
22245 2010-04-03  Bruno Haible  <bruno@clisp.org>
22246
22247         timegm: Fix C++ test error on mingw.
22248         * lib/time.in.h (timegm): Use modern idiom.
22249         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
22250         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
22251         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
22252         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
22253
22254 2010-04-03  Bruno Haible  <bruno@clisp.org>
22255
22256         timegm: Assume declaration if function exists.
22257         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
22258         if it exists. Don't clobber ac_cv_func_timegm.
22259
22260 2010-04-03  Bruno Haible  <bruno@clisp.org>
22261
22262         time_r: Fix C++ test error on mingw.
22263         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
22264         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
22265         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
22266         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
22267         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
22268
22269 2010-04-03  Bruno Haible  <bruno@clisp.org>
22270
22271         time_r: Minor updates.
22272         * modules/time_r (Description): Mention the provided functions.
22273         * lib/time_r.c: Don't include <string.h>.
22274         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
22275         * doc/posix-functions/localtime_r.texi: Likewise.
22276
22277 2010-04-03  Bruno Haible  <bruno@clisp.org>
22278
22279         time: Fix regression introduced on 2010-03-08.
22280         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
22281         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
22282
22283 2010-04-03  Jim Meyering  <meyering@redhat.com>
22284
22285         maint.mk: don't silently disable project-specific syntax-check rules
22286         * top/maint.mk (_prohibit_regexp): Define, to help people realize
22287         that they need to convert their project-specific syntax-check rules
22288         to use the new _sc_search_regexp.
22289
22290 2010-04-03  Bruno Haible  <bruno@clisp.org>
22291
22292         fchdir: Fix regression introduced on 2010-03-08.
22293         * lib/unistd.in.h (fchdir): Fix declaration.
22294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
22295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
22296         REPLACE_FCHDIR.
22297         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
22298         REPLACE_FCHDIR.
22299
22300 2010-04-03  Bruno Haible  <bruno@clisp.org>
22301
22302         getpagesize: Fix C++ test error on mingw.
22303         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
22304         system does not declare the function.
22305         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
22306         declared.
22307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22308         HAVE_DECL_GETPAGESIZE.
22309         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
22310
22311 2010-04-03  Bruno Haible  <bruno@clisp.org>
22312
22313         stdio: Make C++ tests work on mingw.
22314         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
22315         does not declare the function.
22316
22317 2010-04-03  Bruno Haible  <bruno@clisp.org>
22318
22319         ftello: Fix C++ test error on mingw.
22320         * lib/stdio.in.h (ftello): Use modern idiom.
22321         * lib/ftello.c (ftello): Renamed from rpl_ftello.
22322         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
22323         is missing and that it needs to be replaced.
22324         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
22325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
22326         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
22327
22328 2010-04-03  Bruno Haible  <bruno@clisp.org>
22329
22330         fseeko: Fix C++ test error on mingw.
22331         * lib/stdio.in.h (fseeko): Use modern idiom.
22332         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
22333         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
22334         is missing and that it needs to be replaced.
22335         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
22336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
22337         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
22338
22339 2010-04-03  Bruno Haible  <bruno@clisp.org>
22340
22341         mkstemp: Fix C++ test error on mingw.
22342         * lib/stdlib.in.h (mkstemp): Use modern idiom.
22343         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
22344         function is missing and that it needs to be replaced.
22345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
22346         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
22347
22348 2010-04-03  Bruno Haible  <bruno@clisp.org>
22349
22350         stpncpy: Fix C++ test error on mingw.
22351         * lib/string.in.h (stpncpy): Use modern idiom.
22352         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
22353         function is missing and that it needs to be replaced.
22354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22355         REPLACE_STPNCPY.
22356         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
22357
22358 2010-04-03  Bruno Haible  <bruno@clisp.org>
22359
22360         sys_stat: Fix C++ test error on mingw.
22361         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
22362         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
22363
22364 2010-04-03  Bruno Haible  <bruno@clisp.org>
22365
22366         pty: Update doc.
22367         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
22368
22369 2010-04-03  Bruno Haible  <bruno@clisp.org>
22370
22371         unistd: Fix C++ test error on mingw.
22372         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
22373
22374 2010-04-03  Bruno Haible  <bruno@clisp.org>
22375
22376         Update doc regarding mingw.
22377         * doc/glibc-functions/openpty.texi: Update regarding mingw.
22378         * doc/glibc-functions/login_tty.texi: Likewise.
22379         * doc/glibc-functions/forkpty.texi: Likewise.
22380
22381 2010-04-03  Bruno Haible  <bruno@clisp.org>
22382
22383         stdlib: Avoid compilation failure of c-strtold on mingw.
22384         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22385
22386 2010-04-03  Bruno Haible  <bruno@clisp.org>
22387
22388         locale: Make C++ tests work on Cygwin and mingw.
22389         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
22390         cannot provide the function.
22391         Reported by Simon Josefsson.
22392
22393 2010-04-03  Bruno Haible  <bruno@clisp.org>
22394
22395         localename: Port to MacOS X 10.6.
22396         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
22397         memory layout of the locales in MacOS X 10.6 as well.
22398         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
22399
22400 2010-04-02  Bruno Haible  <bruno@clisp.org>
22401
22402         gnulib-tool: Ensure that long-running tests are executed last.
22403         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
22404         running tests after the one for the other tests.
22405
22406 2010-04-02  Bruno Haible  <bruno@clisp.org>
22407
22408         gnulib-tool: Ensure the tests in the main directory are executed first.
22409         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22410         start with the current directory.
22411
22412 2010-04-02  Bruno Haible  <bruno@clisp.org>
22413
22414         Tests for module 'havelib', moved here from GNU gettext.
22415         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
22416         modifications.
22417         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
22418         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
22419         with modifications.
22420         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
22421         modifications.
22422         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
22423         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
22424         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
22425         with modifications.
22426         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
22427         with modifications.
22428         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
22429         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
22430         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
22431         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
22432         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
22433         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
22434         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
22435         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
22436         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
22437         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
22438         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
22439         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
22440         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
22441         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
22442         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
22443         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
22444         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
22445         with modifications.
22446         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
22447         with modifications.
22448         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
22449         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
22450         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
22451         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
22452         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
22453         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
22454         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
22455         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
22456         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
22457         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
22458         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
22459         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
22460         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
22461         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
22462         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
22463         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
22464         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
22465         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
22466         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
22467         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
22468         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
22469         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
22470         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
22471         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
22472         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
22473         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
22474         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
22475         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
22476         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
22477         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
22478         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
22479         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
22480         * tests/havelib/rpathx/rpathx.c: New file, from
22481         gettext/autoconf-lib-link.
22482         * tests/havelib/rpathx/Makefile.am: New file, from
22483         gettext/autoconf-lib-link.
22484         * tests/havelib/rpathx/configure.ac: New file, from
22485         gettext/autoconf-lib-link with modifications.
22486         * tests/havelib/rpathy/rpathy.c: New file, from
22487         gettext/autoconf-lib-link.
22488         * tests/havelib/rpathy/Makefile.am: New file, from
22489         gettext/autoconf-lib-link.
22490         * tests/havelib/rpathy/configure.ac: New file, from
22491         gettext/autoconf-lib-link with modifications.
22492         * tests/havelib/rpathz/rpathz.c: New file, from
22493         gettext/autoconf-lib-link.
22494         * tests/havelib/rpathz/Makefile.am: New file, from
22495         gettext/autoconf-lib-link.
22496         * tests/havelib/rpathz/configure.ac: New file, from
22497         gettext/autoconf-lib-link with modifications.
22498         * tests/havelib/rpathlx/usex.c: New file, from
22499         gettext/autoconf-lib-link.
22500         * tests/havelib/rpathlx/Makefile.am: New file, from
22501         gettext/autoconf-lib-link.
22502         * tests/havelib/rpathlx/configure.ac: New file, from
22503         gettext/autoconf-lib-link with modifications.
22504         * tests/havelib/rpathly/usey.c: New file, from
22505         gettext/autoconf-lib-link.
22506         * tests/havelib/rpathly/Makefile.am: New file, from
22507         gettext/autoconf-lib-link.
22508         * tests/havelib/rpathly/configure.ac: New file, from
22509         gettext/autoconf-lib-link with modifications.
22510         * tests/havelib/rpathlz/usez.c: New file, from
22511         gettext/autoconf-lib-link.
22512         * tests/havelib/rpathlz/Makefile.am: New file, from
22513         gettext/autoconf-lib-link.
22514         * tests/havelib/rpathlz/configure.ac: New file, from
22515         gettext/autoconf-lib-link with modifications.
22516         * tests/havelib/rpathlyx/usey.c: New file, from
22517         gettext/autoconf-lib-link.
22518         * tests/havelib/rpathlyx/Makefile.am: New file, from
22519         gettext/autoconf-lib-link.
22520         * tests/havelib/rpathlyx/configure.ac: New file, from
22521         gettext/autoconf-lib-link with modifications.
22522         * tests/havelib/rpathlzyx/usez.c: New file, from
22523         gettext/autoconf-lib-link.
22524         * tests/havelib/rpathlzyx/Makefile.am: New file, from
22525         gettext/autoconf-lib-link.
22526         * tests/havelib/rpathlzyx/configure.ac: New file, from
22527         gettext/autoconf-lib-link with modifications.
22528         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
22529         with modifications.
22530
22531 2010-04-02  Bruno Haible  <bruno@clisp.org>
22532
22533         gnulib-tool: Create distributed built sources also for the tests.
22534         * gnulib-tool (func_create_testdir): Also generate distributed built
22535         sources in the tests directory.
22536
22537 2010-04-02  Bruno Haible  <bruno@clisp.org>
22538
22539         gnulib-tool: Obey user's environment variables.
22540         * gnulib-tool (func_create_testdir): When creating built sources,
22541         respect the environment variables for autoconf, automake, etc. given by
22542         the user.
22543
22544 2010-04-02  Bruno Haible  <bruno@clisp.org>
22545
22546         gnulib-tool: Provide the value of --m4-base to modules.
22547         * gnulib-tool (func_import, func_create_testdir): Emit a definition
22548         of gl_m4_base.
22549
22550 2010-04-02  Eric Blake  <eblake@redhat.com>
22551
22552         maint.mk: fix some fallout
22553         * NEWS: Document the incompatible change, and its effect on cfg.mk.
22554         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
22555
22556 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22557
22558         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
22559         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
22560         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
22561         (sc_cast_of_x_alloc_return_value): Likewise.
22562         (sc_cast_of_alloca_return_value): Likewise.
22563         (sc_space_tab): Likewise.
22564         (sc_prohibit_atoi_atof): Likewise.
22565         (sc_prohibit_magic_number_exit): Likewise.
22566         (sc_error_exit_success): Likewise.
22567         (sc_file_system): Likewise.
22568         (sc_prohibit_have_config_h): Likewise.
22569         (sc_require_config_h): Likewise.
22570         (sc_prohibit_HAVE_MBRTOWC): Likewise.
22571         (sc_obsolete_symbols): Likewise.
22572         (sc_changelog): Likewise.
22573         (sc_program_name): Likewise.
22574         (sc_the_the): Likewise.
22575         (sc_trailing_blank): Likewise.
22576         (sc_two_space_separator_in_usage): Likewise.
22577         (sc_useless_cpp_parens): Likewise.
22578         (sc_GPL_version): Likewise.
22579         (sc_GFDL_version): Likewise.
22580         (sc_texinfo_acronym): Likewise.
22581         (sc_prohibit_cvs_keyword): Likewise.
22582         (sc_prohibit_stat_st_blocks): Likewise.
22583         (sc_prohibit_S_IS_definition): Likewise.
22584         (sc_redundant_const): Likewise.
22585         (sc_makefile_TAB_only_indentation): Likewise.
22586         (sc_m4_quote_check): Likewise.
22587         (sc_makefile_path_separator_check): Likewise.
22588         (sc_copyright_check): Likewise.
22589         (sc_Wundef_boolean): Likewise.
22590         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22591
22592         maint.mk: match 0 or more whitespace-before-function-call '('
22593         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
22594         that have zero or two-and-more spaces between the function name
22595         and the open parenthesis.
22596         (sc_error_message_warn_fatal): Likewise.
22597         (sc_error_message_uppercase): Likewise.
22598         (sc_error_message_period): Likewise.
22599
22600 2010-03-31  Eric Blake  <eblake@redhat.com>
22601
22602         maint.mk: check for [ as well as test
22603         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
22604         Based on a libvirt report by Matthias Bolte.
22605
22606         gnumakefile: don't squelch _version output
22607         * top/GNUmakefile (_version): Create one-shot dependency rather
22608         than using $(shell) when version must be regenerated.
22609         (_autoreconf): Run verbosely, by default.
22610
22611         sys_time: avoid compiler warnings
22612         * lib/sys_time.in.h (includes): Ensure gcc pragma is
22613         unconditional, fixing regression from 2010-03-29.
22614         Reported by Simon Josefsson.
22615
22616 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22617
22618         maint.mk: s/_header_without_use/_sc_header_without_use/
22619         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
22620         (sc_prohibit_assert_without_use): Use the new name.
22621         (sc_prohibit_close_stream_without_use): Likewise.
22622         (sc_prohibit_getopt_without_use): Likewise.
22623         (sc_prohibit_quotearg_without_use): Likewise.
22624         (sc_prohibit_quote_without_use): Likewise.
22625         (sc_prohibit_long_options_without_use): Likewise.
22626         (sc_prohibit_inttostr_without_use): Likewise.
22627         (sc_prohibit_ignore_value_without_use): Likewise.
22628         (sc_prohibit_error_without_use): Likewise.
22629         (sc_prohibit_xalloc_without_use): Likewise.
22630         (sc_prohibit_hash_without_use): Likewise.
22631         (sc_prohibit_hash_pjw_without_use): Likewise.
22632         (sc_prohibit_safe_read_without_use): Likewise.
22633         (sc_prohibit_argmatch_without_use): Likewise.
22634         (sc_prohibit_canonicalize_without_use): Likewise.
22635         (sc_prohibit_root_dev_ino_without_use): Likewise.
22636         (sc_prohibit_openat_without_use): Likewise.
22637         (sc_prohibit_c_ctype_without_use): Likewise.
22638         (sc_prohibit_signal_without_use): Likewise.
22639         (sc_prohibit_intprops_without_use): Likewise.
22640
22641 2010-03-30  Eric Blake  <eblake@redhat.com>
22642
22643         maint: improve module indicators
22644         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
22645         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
22646         columns, and avoid extra macro expansion.
22647
22648         fdopendir: work around FreeBSD bug
22649         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22650         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
22651         * modules/dirent (Makefile.am): Substitute it.
22652         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
22653         declaration.
22654         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
22655         fix.
22656         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22657
22658 2010-03-29  Bruno Haible  <bruno@clisp.org>
22659
22660         Emit #pragma system_header after the inclusion guard, not before.
22661         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
22662         guard that spans the entire file, not before. This enables an
22663         optimization in GCC's preprocessor.
22664         * lib/ctype.in.h: Likewise.
22665         * lib/dirent.in.h: Likewise.
22666         * lib/errno.in.h: Likewise.
22667         * lib/float.in.h: Likewise.
22668         * lib/getopt.in.h: Likewise.
22669         * lib/iconv.in.h: Likewise.
22670         * lib/langinfo.in.h: Likewise.
22671         * lib/locale.in.h: Likewise.
22672         * lib/math.in.h: Likewise.
22673         * lib/netdb.in.h: Likewise.
22674         * lib/netinet_in.in.h: Likewise.
22675         * lib/pty.in.h: Likewise.
22676         * lib/sched.in.h: Likewise.
22677         * lib/se-selinux.in.h: Likewise.
22678         * lib/search.in.h: Likewise.
22679         * lib/spawn.in.h: Likewise.
22680         * lib/stdarg.in.h: Likewise.
22681         * lib/stdint.in.h: Likewise.
22682         * lib/string.in.h: Likewise.
22683         * lib/strings.in.h: Likewise.
22684         * lib/sys_file.in.h: Likewise.
22685         * lib/sys_ioctl.in.h: Likewise.
22686         * lib/sys_time.in.h: Likewise.
22687         * lib/sys_times.in.h: Likewise.
22688         * lib/sys_utsname.in.h: Likewise.
22689         * lib/sys_wait.in.h: Likewise.
22690         * lib/sysexits.in.h: Likewise.
22691         * lib/wctype.in.h: Likewise.
22692
22693 2010-03-28  James Youngman  <jay@gnu.org>
22694
22695         save-cwd: don't leak a file descriptor when the caller execs.
22696         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22697         saved file descriptor.
22698         * modules/save-cwd (Depends-on): Depend on cloexec.
22699
22700 2010-03-29  Bruno Haible  <bruno@clisp.org>
22701
22702         Remove vestiges of fts-lgpl module.
22703         * lib/fts_.h: Assume GNULIB_FTS is 1.
22704         * lib/fts.c: Likewise.
22705         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22706
22707 2010-03-28  Bruno Haible  <bruno@clisp.org>
22708
22709         Fix definition of tests witness macro.
22710         * gnulib-tool (func_import): Fix definition of witness macro.
22711
22712 2010-03-28  Bruno Haible  <bruno@clisp.org>
22713
22714         Fix ioctl's protoype on glibc systems.
22715         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22716         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22717         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22718         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22719         signature. If not, arrange to replace the ioctl function.
22720         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22721         REPLACE_IOCTL.
22722         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22723         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22724         Reported by Ludovic Courtès <ludo@gnu.org>.
22725
22726 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22727
22728         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22729         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22730         made it so grep -r --include=GLOB* ... did not work.
22731
22732 2010-03-26  Jim Meyering  <meyering@redhat.com>
22733             Eric Blake  <eblake@redhat.com>
22734
22735         maint.mk: prohibit use of test's -o and -a operators
22736         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22737
22738 2010-03-28  Bruno Haible  <bruno@clisp.org>
22739
22740         Remove unused GNULIB_XYZ macro definitions.
22741         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22742         invocation.
22743
22744 2010-03-28  Bruno Haible  <bruno@clisp.org>
22745
22746         Mark privileged tests modules.
22747         * modules/idpriv-drop-tests (Status): New section.
22748         * modules/idpriv-droptemp-tests (Status): New section.
22749
22750 2010-03-28  Bruno Haible  <bruno@clisp.org>
22751
22752         Split C++ tests into separate tests modules.
22753         * modules/dirent-c++-tests: New file, extracted from
22754         modules/dirent-tests.
22755         * modules/dirent-tests: Depend on it.
22756         * modules/fcntl-h-c++-tests: New file, extracted from
22757         modules/fcntl-h-tests.
22758         * modules/fcntl-h-tests: Depend on it.
22759         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22760         * modules/glob-tests: Depend on it.
22761         * modules/iconv-h-c++-tests: New file, extracted from
22762         modules/iconv-h-tests.
22763         * modules/iconv-h-tests: Depend on it.
22764         * modules/langinfo-c++-tests: New file, extracted from
22765         modules/langinfo-tests.
22766         * modules/langinfo-tests: Depend on it.
22767         * modules/locale-c++-tests: New file, extracted from
22768         modules/locale-tests.
22769         * modules/locale-tests: Depend on it.
22770         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22771         * modules/math-tests: Depend on it.
22772         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22773         * modules/pty-tests: Depend on it.
22774         * modules/search-c++-tests: New file, extracted from
22775         modules/search-tests.
22776         * modules/search-tests: Depend on it.
22777         * modules/signal-c++-tests: New file, extracted from
22778         modules/signal-tests.
22779         * modules/signal-tests: Depend on it.
22780         * modules/spawn-c++-tests: New file, extracted from
22781         modules/spawn-tests.
22782         * modules/spawn-tests: Depend on it.
22783         * modules/stdio-c++-tests: New file, extracted from
22784         modules/stdio-tests.
22785         * modules/stdio-tests: Depend on it.
22786         * modules/stdlib-c++-tests: New file, extracted from
22787         modules/stdlib-tests.
22788         * modules/stdlib-tests: Depend on it.
22789         * modules/string-c++-tests: New file, extracted from
22790         modules/string-tests.
22791         * modules/string-tests: Depend on it.
22792         * modules/sys_ioctl-c++-tests: New file, extracted from
22793         modules/sys_ioctl-tests.
22794         * modules/sys_ioctl-tests: Depend on it.
22795         * modules/sys_select-c++-tests: New file, extracted from
22796         modules/sys_select-tests.
22797         * modules/sys_select-tests: Depend on it.
22798         * modules/sys_socket-c++-tests: New file, extracted from
22799         modules/sys_socket-tests.
22800         * modules/sys_socket-tests: Depend on it.
22801         * modules/sys_stat-c++-tests: New file, extracted from
22802         modules/sys_stat-tests.
22803         * modules/sys_stat-tests: Depend on it.
22804         * modules/sys_time-c++-tests: New file, extracted from
22805         modules/sys_time-tests.
22806         * modules/sys_time-tests: Depend on it.
22807         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22808         * modules/time-tests: Depend on it.
22809         * modules/unistd-c++-tests: New file, extracted from
22810         modules/unistd-tests.
22811         * modules/unistd-tests: Depend on it.
22812         * modules/wchar-c++-tests: New file, extracted from
22813         modules/wchar-tests.
22814         * modules/wchar-tests: Depend on it.
22815         * modules/wctype-c++-tests: New file, extracted from
22816         modules/wctype-tests.
22817         * modules/wctype-tests: Depend on it.
22818         Reported by Simon Josefsson.
22819
22820 2010-03-28  Bruno Haible  <bruno@clisp.org>
22821
22822         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22823         * gnulib-tool (func_exists_module): New function, extracted from
22824         func_verify_module.
22825         (func_verify_module): Use it.
22826         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22827         'foo' only if 'foo' exists.
22828         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22829         module.
22830
22831 2010-03-28  Bruno Haible  <bruno@clisp.org>
22832
22833         gnulib-tool: Add support for special categories of tests.
22834         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22835         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22836         (func_usage): Document them.
22837         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22838         inc_unportable_tests, inc_all_tests): New variables.
22839         (func_acceptable): Consider these variables.
22840         (func_modules_transitive_closure): Make it work when the 'Status' field
22841         consists of multiple words.
22842         (func_import): Store and restore the values of inc_cxx_tests,
22843         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22844         inc_all_tests in gnulib-comp.m4.
22845         (func_create_testdir): Set inc_all_tests to true.
22846         * doc/gnulib.texi (Extra tests modules): New section.
22847         Suggested by Jim Meyering.
22848
22849 2010-03-28  Bruno Haible  <bruno@clisp.org>
22850
22851         ansi-c++-opt: Allow turning off the C++ build by default.
22852         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22853         gl_CXX_CHOICE_DEFAULT_NO is defined.
22854         Requested by Eric Blake.
22855
22856 2010-03-28  Bruno Haible  <bruno@clisp.org>
22857
22858         unistd: Avoid #define replacements in C++ mode.
22859         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22860         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22861         setsockopt, shutdown, select): In C++, attach a warning to the function
22862         if possible, rather than #defining the symbol to a dysfunctional alias.
22863         Reported by John W. Eaton <jwe@gnu.org>.
22864
22865 2010-03-28  Bruno Haible  <bruno@clisp.org>
22866
22867         Fix link errors on mingw.
22868         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22869         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22870         $(LIBSOCKET).
22871         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22872         $(LIBSOCKET).
22873
22874 2010-03-28  Bruno Haible  <bruno@clisp.org>
22875             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22876
22877         lib-ignore: Determine different options for different compilers.
22878         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22879         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22880         Add comments.
22881         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22882         * NEWS: Mention the change.
22883
22884 2010-03-27  Bruno Haible  <bruno@clisp.org>
22885
22886         Remove unused GNULIB_XYZ macro definitions.
22887         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22888         * modules/fseek (configure.ac): Likewise.
22889         * modules/ioctl (configure.ac): Likewise.
22890         * modules/open (configure.ac): Likewise.
22891         * modules/stdlib-safer (configure.ac): Likewise.
22892
22893 2010-03-27  Bruno Haible  <bruno@clisp.org>
22894
22895         Add a remark about certain modules.
22896         * modules/malloc (Comment): New section.
22897         * modules/realloc (Comment): Likewise.
22898         * modules/sigpipe (Comment): Likewise.
22899
22900 2010-03-27  Bruno Haible  <bruno@clisp.org>
22901
22902         Resolve conflict between the two kinds of module indicators.
22903         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22904         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22905         * modules/canonicalize (configure.ac): Invoke
22906         gl_MODULE_INDICATOR_FOR_TESTS.
22907         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22908         GNULIB_XYZ.
22909         * tests/test-dirent-c++.cc: Likewise.
22910         * tests/test-dirent-safer.c: Likewise.
22911         * tests/test-dup2.c: Likewise.
22912         * tests/test-fchdir.c: Likewise.
22913         * tests/test-fcntl-h-c++.cc: Likewise.
22914         * tests/test-getopt.c: Likewise.
22915         * tests/test-getopt.h: Likewise.
22916         * tests/test-langinfo-c++.cc: Likewise.
22917         * tests/test-locale-c++.cc: Likewise.
22918         * tests/test-math-c++.cc: Likewise.
22919         * tests/test-pty-c++.cc: Likewise.
22920         * tests/test-search-c++.cc: Likewise.
22921         * tests/test-signal-c++.cc: Likewise.
22922         * tests/test-spawn-c++.cc: Likewise.
22923         * tests/test-stdio-c++.cc: Likewise.
22924         * tests/test-stdlib-c++.cc: Likewise.
22925         * tests/test-string-c++.cc: Likewise.
22926         * tests/test-sys_ioctl-c++.cc: Likewise.
22927         * tests/test-sys_select-c++.cc: Likewise.
22928         * tests/test-sys_socket-c++.cc: Likewise.
22929         * tests/test-sys_stat-c++.cc: Likewise.
22930         * tests/test-sys_time-c++.cc: Likewise.
22931         * tests/test-time-c++.cc: Likewise.
22932         * tests/test-unistd-c++.cc: Likewise.
22933         * tests/test-wchar-c++.cc: Likewise.
22934         * tests/uninorm/test-u8-nfc.c: Likewise.
22935         * tests/uninorm/test-u8-nfd.c: Likewise.
22936         * tests/uninorm/test-u8-nfkc.c: Likewise.
22937         * tests/uninorm/test-u8-nfkd.c: Likewise.
22938         * tests/uninorm/test-u16-nfc.c: Likewise.
22939         * tests/uninorm/test-u16-nfd.c: Likewise.
22940         * tests/uninorm/test-u16-nfkc.c: Likewise.
22941         * tests/uninorm/test-u16-nfkd.c: Likewise.
22942         * tests/uninorm/test-u32-nfc.c: Likewise.
22943         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22944         * tests/uninorm/test-u32-nfd.c: Likewise.
22945         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22946         * tests/uninorm/test-u32-nfkc.c: Likewise.
22947         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22948         * tests/uninorm/test-u32-nfkd.c: Likewise.
22949         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22950         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22951
22952 2010-03-27  Bruno Haible  <bruno@clisp.org>
22953
22954         Distinguish two kinds of module indicators.
22955         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22956         gl_MODULE_INDICATOR.
22957         (gl_MODULE_INDICATOR): New macro.
22958         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22959         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22960         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22961         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22962         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22963         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22964         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22965         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22966         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22967         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22968         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22969         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22970         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22971         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22972         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22973         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22974         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22975         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22976         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22977         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22978         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22979         * modules/cloexec (configure.ac): Likewise.
22980         * modules/getopt-gnu (configure.ac): Likewise.
22981         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22982         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22983         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22984         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22985
22986 2010-03-27  Bruno Haible  <bruno@clisp.org>
22987
22988         New module description field 'Comment'.
22989         * gnulib-tool: New option --extract-comment.
22990         (func_usage): Document it.
22991         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22992         (func_get_comment): New function.
22993         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22994
22995 2010-03-27  Bruno Haible  <bruno@clisp.org>
22996
22997         Addendum to 2010-02-07 commit.
22998         * gnulib-tool (func_usage): Document --extract-applicability option.
22999
23000 2010-03-27  Bruno Haible  <bruno@clisp.org>
23001
23002         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
23003         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
23004         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
23005         rather than link errors.
23006
23007 2010-03-27  Bruno Haible  <bruno@clisp.org>
23008
23009         Avoid side effects from tests-related modules on the compilation of lib.
23010         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
23011         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
23012         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
23013         parameter. Emit into AM_CPPFLAGS a definition of the designated C
23014         macro.
23015         (func_import): Define a witness macro. Assign it a value that depends
23016         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
23017         tests-related modules.
23018         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
23019         Reported by Jim Meyering.
23020
23021 2010-03-27  Bruno Haible  <bruno@clisp.org>
23022
23023         Factorize common .m4 code.
23024         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
23025         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
23026         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
23027         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
23028         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23029         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
23030         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
23031         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23032         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23033         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23034         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
23035         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23036         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23037         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23038         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23039         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
23040         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23041         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23043         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
23044         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
23045         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23046         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23047         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23048         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23049         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23050         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
23051         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
23052         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
23053         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23054         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23055         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23056
23057 2010-03-27  Bruno Haible  <bruno@clisp.org>
23058
23059         Fix a compilation error on Cygwin with g++ >= 4.3.
23060         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
23061         if it is undefined or if we alias it to chmod.
23062         (lstat): Don't warn about the use of this function if it is undefined
23063         or if we alias it to stat.
23064         Reported by Simon Josefsson.
23065
23066 2010-03-27  Bruno Haible  <bruno@clisp.org>
23067
23068         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
23069         * modules/getlogin (configure.ac): Update.
23070
23071         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
23072         * modules/getlogin_r (configure.ac): Update.
23073
23074         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
23075         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
23076         * modules/inet_ntop (configure.ac): Update.
23077
23078         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
23079         * modules/inet_pton (configure.ac): Update.
23080
23081         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
23082         * modules/mbslen (configure.ac): Update.
23083
23084         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
23085         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
23086         * modules/forkpty (configure.ac): Update.
23087         * modules/openpty (configure.ac): Update.
23088
23089 2010-03-26  Simon Josefsson  <simon@josefsson.org>
23090
23091         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
23092         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
23093
23094 2010-03-25  Eric Blake  <eblake@redhat.com>
23095
23096         maint: use pragma consistently across replacement headers
23097         * lib/ctype.in.h (system_header): Hoist for consistent placement.
23098         * lib/dirent.in.h (system_header): Likewise.
23099         * lib/errno.in.h (system_header): Likewise.
23100         * lib/float.in.h (system_header): Likewise.
23101         * lib/getopt.in.h (system_header): Likewise.
23102         * lib/iconv.in.h (system_header): Likewise.
23103         * lib/inttypes.in.h (system_header): Likewise.
23104         * lib/langinfo.in.h (system_header): Likewise.
23105         * lib/locale.in.h (system_header): Likewise.
23106         * lib/math.in.h (system_header): Likewise.
23107         * lib/netdb.in.h (system_header): Likewise.
23108         * lib/netinet_in.in.h (system_header): Likewise.
23109         * lib/pty.in.h (system_header): Likewise.
23110         * lib/sched.in.h (system_header): Likewise.
23111         * lib/se-selinux.in.h (system_header): Likewise.
23112         * lib/search.in.h (system_header): Likewise.
23113         * lib/spawn.in.h (system_header): Likewise.
23114         * lib/stdarg.in.h (system_header): Likewise.
23115         * lib/stdint.in.h (system_header): Likewise.
23116         * lib/string.in.h (system_header): Likewise.
23117         * lib/strings.in.h (system_header): Likewise.
23118         * lib/sys_file.in.h (system_header): Likewise.
23119         * lib/sys_ioctl.in.h (system_header): Likewise.
23120         * lib/sys_socket.in.h (system_header): Likewise.
23121         * lib/sys_times.in.h (system_header): Likewise.
23122         * lib/sys_utsname.in.h (system_header): Likewise.
23123         * lib/sys_wait.in.h (system_header): Likewise.
23124         * lib/sysexits.in.h (system_header): Likewise.
23125         * lib/unistd.in.h (system_header): Likewise.
23126         * lib/wctype.in.h (system_header): Likewise.
23127
23128         arpa/inet: fix mingw compilation warning
23129         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
23130         Reported by Matthew Bolte.
23131
23132 2010-03-25  Bruno Haible  <bruno@clisp.org>
23133
23134         Avoid collision between gnulib wrapper and libintl wrapper.
23135         * lib/printf.c (printf): Don't define if a printf wrapper is already
23136         defined in intl/printf.c.
23137         Reported by Michel Boaventura <michel@michelboaventura.com>.
23138
23139 2010-03-25  Bruno Haible  <bruno@clisp.org>
23140
23141         Use ANSI C.
23142         * lib/readutmp.h (getutent): Provide ANSI C prototype.
23143
23144 2010-03-25  Bruno Haible  <bruno@clisp.org>
23145
23146         Minor formatting changes.
23147         * lib/acosl.c: Insert space before function argument list.
23148         * lib/argz.c: Likewise.
23149         * lib/asinl.c: Likewise.
23150         * lib/expl.c: Likewise.
23151         * lib/gen-uni-tables.c: Likewise.
23152         * lib/gettext.h: Likewise.
23153         * lib/glthread/lock.h: Likewise.
23154         * lib/tanl.c: Likewise.
23155         * lib/uniname/uniname.c: Likewise.
23156         * tests/test-idpriv-drop.c: Likewise.
23157         * tests/test-idpriv-droptemp.c: Likewise.
23158         * tests/test-lock.c: Likewise.
23159         * tests/test-tls.c: Likewise.
23160         * lib/argp-help.c: Insert space before function-like macro argument
23161         list.
23162         * lib/memcmp.c: Likewise.
23163         * tests/test-base64.c: Likewise.
23164         * lib/localename.c: Insert space before sizeof's argument list.
23165         * lib/safe-alloc.h: Likewise.
23166         * lib/file-set.h: Insert space before macro argument list.
23167         * tests/test-argp.c: Likewise.
23168         * lib/argp-namefrob.h: Insert space before function parameter list.
23169         * lib/getaddrinfo.c: Likewise.
23170         * lib/netdb.in.h: Likewise.
23171         * lib/parse-duration.h: Likewise.
23172         * lib/parse-duration.c: Likewise.
23173         * lib/poll.c: Likewise.
23174         * lib/select.c: Likewise.
23175         * lib/trim.h: Likewise.
23176         * tests/test-usleep.c: Likewise.
23177         * lib/ldexpl.c: Insert space before function parameter list and before
23178         function argument list.
23179         * lib/logl.c: Likewise.
23180         * lib/sqrtl.c: Likewise.
23181         * lib/trim.c: Likewise.
23182         * lib/cosl.c: Use GNU style indentation. Insert space before function
23183         argument list.
23184         * lib/sinl.c: Likewise.
23185         * lib/tsearch.c: Insert space after 'for'.
23186         Reported by Jim Meyering.
23187
23188 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
23189
23190         * maint.mk (sc_Wundef_boolean): Check for the presence of the
23191         config header before grepping, as it's not present before
23192         autoreconf/configure are run.  Reported by Simon Josefsson.
23193
23194 2010-03-23  Bruno Haible  <bruno@clisp.org>
23195
23196         pt_chown: Make it work with automake < 1.11.
23197         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
23198         Reported by Simon Josefsson.
23199
23200 2010-03-23  Bruno Haible  <bruno@clisp.org>
23201
23202         pt_chown: Don't depend on GPLed modules.
23203         * lib/pt_chown.c: Don't include idpriv.h.
23204         (main): Don't drop privileges.
23205         * modules/pt_chown (Depends-on): Remove idpriv-drop.
23206         Reported by Simon Josefsson.
23207
23208 2010-03-24  Simon Josefsson  <simon@josefsson.org>
23209
23210         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
23211         suggestions from karl@freefriends.org (Karl Berry).
23212
23213 2010-03-22  Eric Blake  <eblake@redhat.com>
23214
23215         gethostname: further tweaks
23216         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
23217         are overriding gethostname.
23218         Suggested by Bruno Haible.
23219
23220 2010-03-21  Bruno Haible  <bruno@clisp.org>
23221
23222         Fix comments.
23223         * lib/forkpty.c (rpl_forkpty): Fix comment.
23224         * lib/openpty.c (rpl_openpty): Likewise.
23225         Reported by Eric Blake.
23226
23227 2010-03-22  Eric Blake  <eblake@redhat.com>
23228
23229         gethostname: fix build on mingw
23230         * lib/unistd.in.h (includes): Work around fact that mingw
23231         <winsock2.h> re-includes <unistd.h>, by avoiding any
23232         redeclarations if we are being included by <winsock2.h>.
23233         Reported by Matthias Bolte.
23234
23235 2010-03-21  Bruno Haible  <bruno@clisp.org>
23236
23237         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23238         * lib/forkpty.c (forkpty): New replacement function, from glibc with
23239         modifications.
23240         * lib/pty.in.h (forkpty): Update declaration. Add comments.
23241         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
23242         provide the replacement.
23243         * modules/forkpty (Depends-on): Add openpty, login_tty.
23244         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
23245         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
23246         * doc/glibc-functions/forkpty.texi: More supported platforms.
23247         * config/srclist.txt: Add forkpty.c (commented).
23248
23249 2010-03-21  Bruno Haible  <bruno@clisp.org>
23250
23251         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
23252         (Makefile.am): Verify that PTY_LIB is defined.
23253
23254         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
23255
23256 2010-03-21  Bruno Haible  <bruno@clisp.org>
23257
23258         Tests for module 'login_tty'.
23259         * modules/login_tty-tests: New file.
23260         * tests/test-login_tty.c: New file.
23261
23262         New module 'login_tty'.
23263         * lib/login_tty.c: New file.
23264         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
23265         * modules/login_tty: New file.
23266         * doc/glibc-functions/login_tty.texi: Mention the new module.
23267
23268 2010-03-21  Bruno Haible  <bruno@clisp.org>
23269
23270         login_tty: Documentation.
23271         * doc/glibc-functions/login_tty.texi: New file.
23272         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
23273
23274 2010-03-21  Bruno Haible  <bruno@clisp.org>
23275
23276         pty: Consistent macro naming.
23277         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
23278         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
23279         * modules/pty (configure.ac): Update.
23280
23281 2010-03-21  Bruno Haible  <bruno@clisp.org>
23282
23283         Tests for openpty: Make stricter.
23284         * tests/test-openpty.c (main): Add test of canonical processing and
23285         erase.
23286         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
23287
23288         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23289         * lib/openpty.c (openpty): New replacement function.
23290         * lib/pty.in.h: Include <termios.h>.
23291         (openpty): Update declaration. Add comments.
23292         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
23293         is not declared, arrange to provide the replacement. Check for _getpty
23294         and posix_openpt.
23295         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
23296         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
23297         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
23298         * modules/pty-tests (test_pty_c___LDADD): New variable.
23299         * doc/glibc-functions/openpty.texi: More supported platforms.
23300
23301 2010-03-21  Bruno Haible  <bruno@clisp.org>
23302
23303         setenv: Tweaks.
23304         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
23305         the test program.
23306         * doc/posix-functions/setenv.texi: Update platforms list.
23307
23308 2010-03-21  Bruno Haible  <bruno@clisp.org>
23309
23310         New module 'unlockpt'.
23311         * lib/unlockpt.c: New file, from glibc with modifications.
23312         * m4/unlockpt.m4: New file.
23313         * modules/unlockpt: New file.
23314         * lib/stdlib.in.h (unlockpt): New declaration.
23315         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
23316         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
23317         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
23318         HAVE_UNLOCKPT.
23319         * doc/posix-functions/unlockpt.texi: Mention the new module.
23320         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
23321         * config/srclist.txt: Add unlockpt.c (commented).
23322
23323 2010-03-21  Jim Meyering  <meyering@redhat.com>
23324
23325         maint.mk: prohibit inclusion of "intprops.h" without use
23326         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
23327
23328 2010-03-21  Bruno Haible  <bruno@clisp.org>
23329
23330         New module 'grantpt'.
23331         * lib/grantpt.c: New file, from glibc with modifications.
23332         * m4/grantpt.m4: New file.
23333         * modules/grantpt: New file.
23334         * lib/stdlib.in.h (grantpt): New declaration.
23335         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
23336         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
23337         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
23338         HAVE_GRANTPT.
23339         * doc/posix-functions/grantpt.texi: Mention the new module.
23340         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
23341         * config/srclist.txt: Add grantpt.c (commented).
23342
23343 2010-03-21  Bruno Haible  <bruno@clisp.org>
23344
23345         New module 'pt_chown'.
23346         * lib/pt_chown.c: New file, from glibc with modifications.
23347         * lib/pty-private.h: New file, from glibc with modifications.
23348         * modules/pt_chown: New file.
23349         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
23350
23351 2010-03-21  Bruno Haible  <bruno@clisp.org>
23352
23353         Tests for module 'ptsname'.
23354         * modules/ptsname-tests: New file.
23355         * tests/test-ptsname.c: New file.
23356
23357         New module 'ptsname'.
23358         * lib/ptsname.c: New file, from glibc with modifications.
23359         * m4/ptsname.m4: New file.
23360         * modules/ptsname: New file.
23361         * lib/stdlib.in.h (ptsname): New declaration.
23362         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
23363         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
23364         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
23365         HAVE_PTSNAME.
23366         * doc/posix-functions/ptsname.texi: Mention the new module.
23367         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
23368         * config/srclist.txt: Add ptsname.c (commented).
23369
23370 2010-03-21  Bruno Haible  <bruno@clisp.org>
23371
23372         Tests for module 'ttyname_r'.
23373         * modules/ttyname_r-tests: New file.
23374         * tests/test-ttyname_r.c: New file.
23375
23376         New module 'ttyname_r'.
23377         * lib/ttyname_r.c: New file.
23378         * m4/ttyname_r.m4: New file.
23379         * modules/ttyname_r: New file.
23380         * lib/unistd.in.h (ttyname_r): New declaration.
23381         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
23382         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
23383         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
23384         HAVE_TTYNAME_R.
23385         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
23386         * doc/posix-functions/ttyname_r.texi: Mention the new module.
23387
23388 2010-03-20  Bruno Haible  <bruno@clisp.org>
23389
23390         signal: Undefine macro definitions in C++ mode.
23391         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
23392         sigfillset): Undefine macro definitions from the system header in C++
23393         mode.
23394         Reported by John W. Eaton <jwe@gnu.org>.
23395
23396 2010-03-20  Bruno Haible  <bruno@clisp.org>
23397
23398         Ensure no #include statements inside extern "C" { ... }.
23399         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
23400         contain #include statements.
23401         * lib/time.in.h: Likewise.
23402
23403 2010-03-20  Bruno Haible  <bruno@clisp.org>
23404
23405         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
23406         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
23407         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
23408         Reported by John W. Eaton <jwe@gnu.org>.
23409
23410 2010-03-20  Bruno Haible  <bruno@clisp.org>
23411
23412         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
23413         Reported by Jim Meyering.
23414
23415 2010-03-20  Bruno Haible  <bruno@clisp.org>
23416
23417         pipe: Set errno upon failure.
23418         * lib/pipe.h: Specify that when -1 is returned, errno is set.
23419         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
23420         errno value in error message.
23421
23422 2010-03-20  Bruno Haible  <bruno@clisp.org>
23423             Jim Meyering  <meyering@redhat.com>
23424
23425         lchown: Avoid "unused variable" warning.
23426         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
23427
23428 2010-03-20  Bruno Haible  <bruno@clisp.org>
23429
23430         Work around unlink() bug on MacOS X 10.5.6.
23431         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
23432         attempting to unlink a parent directory.
23433         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
23434         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
23435         activate for the replacement function.
23436         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
23437
23438 2010-03-20  Bruno Haible  <bruno@clisp.org>
23439
23440         Fix link errors on Solaris 8.
23441         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
23442         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
23443
23444 2010-03-19  Jim Meyering  <meyering@redhat.com>
23445
23446         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
23447         The _LIBC implementation of build_range_exp correctly honors the
23448         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
23449         However, the non-_LIBC implementation would ignore that syntax-bit
23450         flag and return REG_ERANGE unconditionally.
23451         This change makes it honor that flag.
23452         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
23453         Make two pointer parameters "const".
23454         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
23455         (parse_bracket_exp): Update caller.
23456
23457         regex.m4: correct the reversed range endpoint ([b-a]) test
23458         * m4/regex.m4: When requiring that [b-a] evoke failure,
23459         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
23460         test pass once again for x86-based systems.
23461
23462 2010-03-19  Bruno Haible  <bruno@clisp.org>
23463
23464         scandir: Fix link error on Solaris 8.
23465         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
23466         macros.
23467
23468 2010-03-19  Bruno Haible  <bruno@clisp.org>
23469
23470         getusershell: Fix documentation.
23471         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
23472         module.
23473         * doc/glibc-functions/setusershell.texi: Likewise.
23474
23475         getusershell: Provide declaration, missing on Solaris 9.
23476         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
23477         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
23478         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
23479         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
23480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23481         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
23482         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
23483         HAVE_GETUSERSHELL.
23484         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
23485
23486 2010-03-19  Bruno Haible  <bruno@clisp.org>
23487
23488         wctype: Provide iswblank function.
23489         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
23490         exists and is fine.
23491         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
23492         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
23493         * tests/test-wctype.c (main): Re-enable the iswblank tests.
23494         * doc/posix-functions/iswblank.texi: Update.
23495
23496 2010-03-19  Bruno Haible  <bruno@clisp.org>
23497
23498         Tests of module 'pty' in C++ mode.
23499         * modules/pty-tests: New file.
23500         * tests/test-pty-c++.cc: New file.
23501         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23502
23503 2010-03-19  Eric Blake  <eblake@redhat.com>
23504
23505         logb: fix documentation
23506         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
23507         1.5 declaration bug.
23508
23509         forkpty, openpty: prefer glibc's const-safe prototype
23510         * lib/forkpty.c (rpl_forkpty): New file.
23511         * lib/openpty.c (rpl_openpty): Likewise.
23512         * modules/forkpty (Files): Distribute it.
23513         * modules/openpty (Files): Likewise.
23514         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
23515         check...
23516         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
23517         replacement for for non-const BSD signature.
23518         * modules/pty (Makefile.am): Substitute witnesses.
23519         * lib/pty.in.h (forkpty, openpty): Declare replacements.
23520         * tests/test-forkpty.c: Update signature check.
23521         * tests/test-openpty.c: Likewise.
23522         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
23523         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23524
23525         forkpty, openpty: split functions into new modules
23526         * modules/pty (Makefile.am): Substitute new witnesses.
23527         (Libraries): Move library detection...
23528         * modules/forkpty: ...into new module.
23529         * modules/openpty: Another new module.
23530         * modules/pty-tests: Rename and split...
23531         * modules/forkpty-tests: ...to this...
23532         * modules/openpty-tests: ...and this.
23533         * tests/test-pty.c: Rename and split...
23534         * tests/test-forkpty.c: ...to this...
23535         * tests/test-openpty.c: ...and this.
23536         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
23537         (gl_PTY): Split library searching...
23538         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
23539         (gl_FORKPTY, gl_OPENPTY): New macros.
23540         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
23541         * NEWS: Mention the split.
23542         * MODULES.html.sh (Misc): Document the modules.
23543         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
23544         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23545
23546         pty: improve replacement header
23547         * lib/pty.in.h: New file.
23548         * modules/pty (Files): Ship it.
23549         (Makefile.am): Always build replacement.
23550         * m4/pty.m4: Rename...
23551         * m4/pty_h.m4: ...to this.
23552         (gl_PTY): Modernize setting of witness macros; update check of
23553         forkpty to take proper advantage of cache.
23554         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
23555
23556         getopt: avoid compiler warning
23557         * lib/getopt.c (attribute_hidden): Remove unused macro.
23558
23559 2010-03-18  Bruno Haible  <bruno@clisp.org>
23560
23561         Fix link errors on Solaris 8.
23562         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
23563         * modules/search-tests (test_search_c___LDADD): Likewise.
23564         * modules/signal-tests (test_signal_c___LDADD): Likewise.
23565         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
23566         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
23567         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
23568         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
23569         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
23570         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
23571
23572 2010-03-18  Bruno Haible  <bruno@clisp.org>
23573
23574         Fix bug introduced on 2010-03-14.
23575         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
23576         (gl_SPAWN_H): Require it.
23577         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
23578         Reported by Simon Josefsson.
23579
23580 2010-03-18  Bruno Haible  <bruno@clisp.org>
23581
23582         Fix typo introduced on 2009-12-31.
23583         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
23584         posix_spawn_file_actions_adddup2.
23585
23586 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
23587         and Eric Blake  <eblake@redhat.com>
23588
23589         test-vc-list-files-git: make more robust
23590         * tests/test-vc-list-files-git.sh: Unset problematic environment
23591         variables.  Chain commands together.
23592
23593 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
23594
23595         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
23596         `AC_CHECK_DECL' invocation.
23597
23598 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
23599
23600         * lib/inttostr.c (inttostr): Make sure the invocation of verify
23601         appears before executable statements. Suggested by Petr Sumbera
23602         <Petr.Sumbera@Sun.COM>.
23603
23604 2010-03-14  Bruno Haible  <bruno@clisp.org>
23605
23606         * tests/test-flock.c (test_exclusive): Comment out a test that causes
23607         portability problems. Instead use a simpler test.
23608         (main): Check that invalid arguments are rejected only on Linux.
23609
23610 2010-03-14  Bruno Haible  <bruno@clisp.org>
23611
23612         Fix bug introduced on 2009-12-31.
23613         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23614         gl_PREREQ_SYS_H_WINSOCK2 always.
23615         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
23616         SYS_SOCKET_H variable.
23617         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
23618         Update comments.
23619         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
23620         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23621         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23622         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23623         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23624
23625 2010-03-14  Bruno Haible  <bruno@clisp.org>
23626
23627         Fix values returned by sinl, cosl.
23628         * lib/trigl.h: Add specification comments.
23629         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
23630         that combines the values from the precomputed table with the values of
23631         the Chebyshev polynomials.
23632
23633 2010-03-14  Bruno Haible  <bruno@clisp.org>
23634
23635         Fix compilation error when modules 'posix_spawn[p]' are not used.
23636         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
23637         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
23638
23639 2010-03-14  Bruno Haible  <bruno@clisp.org>
23640
23641         Fix compilation error on mingw when module 'time_r' is not used.
23642         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
23643         is 1.
23644         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
23645         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23646         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
23647         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
23648
23649 2010-03-14  Bruno Haible  <bruno@clisp.org>
23650
23651         Fix compilation error with Sun C.
23652         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
23653         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
23654         instead of GCC specific ULONG_LONG_MAX.
23655         * lib/xstrtoll.c: Likewise.
23656         * lib/xstrtoull.c: Likewise.
23657
23658 2010-03-13  Bruno Haible  <bruno@clisp.org>
23659
23660         Allow the user to disable C++ code and tests.
23661         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
23662         (gl_PROG_ANSI_CXX): Require it.
23663
23664 2010-03-13  Bruno Haible  <bruno@clisp.org>
23665
23666         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23667         cases.
23668
23669 2010-03-13  Bruno Haible  <bruno@clisp.org>
23670
23671         Test that gnulib does not break the standard C++ headers.
23672         * tests/test-locale-c++2.cc: New file.
23673         * modules/locale-tests (Files): Add it.
23674         (Makefile.am): Compile it for test-locale-c++.
23675         * tests/test-math-c++2.cc: New file.
23676         * modules/math-tests (Files): Add it.
23677         (Makefile.am): Compile it for test-math-c++.
23678         * tests/test-signal-c++2.cc: New file.
23679         * modules/signal-tests (Files): Add it.
23680         (Makefile.am): Compile it for test-signal-c++.
23681         * tests/test-stdio-c++2.cc: New file.
23682         * modules/stdio-tests (Files): Add it.
23683         (Makefile.am): Compile it for test-stdio-c++.
23684         * tests/test-stdlib-c++2.cc: New file.
23685         * modules/stdlib-tests (Files): Add it.
23686         (Makefile.am): Compile it for test-stdlib-c++.
23687         * tests/test-string-c++2.cc: New file.
23688         * modules/string-tests (Files): Add it.
23689         (Makefile.am): Compile it for test-string-c++.
23690         * tests/test-time-c++2.cc: New file.
23691         * modules/time-tests (Files): Add it.
23692         (Makefile.am): Compile it for test-time-c++.
23693         Reported by John W. Eaton <jwe@gnu.org>.
23694
23695 2010-03-13  Bruno Haible  <bruno@clisp.org>
23696
23697         * gnulib-tool (func_usage): Clarify which options are available for
23698         --create-testdir and --create-megatestdir.
23699
23700 2010-03-13  Bruno Haible  <bruno@clisp.org>
23701
23702         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23703         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23704         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23705         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23706         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23707         when appropriate.
23708         Reported by Jim Meyering.
23709
23710 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23711
23712         * gnulib-tool (func_import): Explain origin of code.
23713
23714 2010-03-12  Bruno Haible  <bruno@clisp.org>
23715
23716         Fix problem with automake's definition of CXXLINK.
23717         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23718         Reported by Simon Josefsson and Ludovic Courtès.
23719
23720 2010-03-12  Bruno Haible  <bruno@clisp.org>
23721
23722         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23723         stable releases.
23724
23725 2010-03-11  Bruno Haible  <bruno@clisp.org>
23726
23727         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23728         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23729         whether the system provides one variant or multiple variants of the
23730         function.
23731         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23732         C++ compilers.
23733         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23734         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23735         Reported by Jim Meyering.
23736
23737 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23738
23739         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23740
23741 2010-03-08  Bruno Haible  <bruno@clisp.org>
23742
23743         gnulib-tool: Add support for --libtool in --create-testdir.
23744         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23745         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23746
23747 2010-03-08  Eric Blake  <eblake@redhat.com>
23748
23749         gnulib-tool.texi: mention possibility of git submodule
23750         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23751         submodules.
23752         * doc/.gitignore: Ignore another generated file.
23753
23754 2010-03-08  Karl Berry  <karl@gnu.org>
23755
23756         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23757         of committing gnulib files while skipping others.
23758
23759 2010-03-07  Bruno Haible  <bruno@clisp.org>
23760
23761         Tests of module 'wctype' in C++ mode.
23762         * tests/test-wctype-c++.cc: New file.
23763         * modules/wctype-tests (Files): Add it and tests/signature.h.
23764         (Depends-on): Add ansi-c++-opt.
23765         (Makefile.am): Arrange to compile and run test-wctype-c++.
23766
23767         Tests of module 'wchar' in C++ mode.
23768         * tests/test-wchar-c++.cc: New file.
23769         * modules/wchar-tests (Files): Add it and tests/signature.h.
23770         (Depends-on): Add ansi-c++-opt.
23771         (Makefile.am): Arrange to compile and run test-wchar-c++.
23772         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23773         gl_MODULE_INDICATOR.
23774
23775         Tests of module 'unistd' in C++ mode.
23776         * tests/test-unistd-c++.cc: New file.
23777         * modules/unistd-tests (Files): Add it and tests/signature.h.
23778         (Depends-on): Add ansi-c++-opt.
23779         (Makefile.am): Arrange to compile and run test-unistd-c++.
23780         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23781         gl_MODULE_INDICATOR.
23782
23783         Tests of module 'time' in C++ mode.
23784         * tests/test-time-c++.cc: New file.
23785         * modules/time-tests (Files): Add it and tests/signature.h.
23786         (Depends-on): Add ansi-c++-opt.
23787         (Makefile.am): Arrange to compile and run test-time-c++.
23788         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23789
23790         Tests of module 'sys_time' in C++ mode.
23791         * tests/test-sys_time-c++.cc: New file.
23792         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23793         (Depends-on): Add ansi-c++-opt.
23794         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23795         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23796         gl_MODULE_INDICATOR.
23797
23798         Tests of module 'sys_stat' in C++ mode.
23799         * tests/test-sys_stat-c++.cc: New file.
23800         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23801         (Depends-on): Add ansi-c++-opt.
23802         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23803         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23804         gl_MODULE_INDICATOR.
23805
23806         Tests of module 'sys_socket' in C++ mode.
23807         * tests/test-sys_socket-c++.cc: New file.
23808         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23809         (Depends-on): Add ansi-c++-opt.
23810         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23811         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23812         gl_MODULE_INDICATOR.
23813
23814         Tests of module 'sys_select' in C++ mode.
23815         * tests/test-sys_select-c++.cc: New file.
23816         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23817         (Depends-on): Add ansi-c++-opt.
23818         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23819         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23820         gl_MODULE_INDICATOR.
23821
23822         Tests of module 'sys_ioctl' in C++ mode.
23823         * tests/test-sys_ioctl-c++.cc: New file.
23824         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23825         (Depends-on): Add ansi-c++-opt.
23826         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23827         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23828         gl_MODULE_INDICATOR.
23829
23830         Tests of module 'string' in C++ mode.
23831         * tests/test-string-c++.cc: New file.
23832         * modules/string-tests (Files): Add it and tests/signature.h.
23833         (Depends-on): Add ansi-c++-opt.
23834         (Makefile.am): Arrange to compile and run test-string-c++.
23835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23836         gl_MODULE_INDICATOR.
23837
23838         Tests of module 'stdlib' in C++ mode.
23839         * tests/test-stdlib-c++.cc: New file.
23840         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23841         (Depends-on): Add ansi-c++-opt.
23842         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23843         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23844         gl_MODULE_INDICATOR.
23845
23846         Tests of module 'stdio' in C++ mode.
23847         * tests/test-stdio-c++.cc: New file.
23848         * modules/stdio-tests (Files): Add it and tests/signature.h.
23849         (Depends-on): Add ansi-c++-opt.
23850         (Makefile.am): Arrange to compile and run test-stdio-c++.
23851         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23852         gl_MODULE_INDICATOR.
23853
23854         Tests of module 'spawn' in C++ mode.
23855         * tests/test-spawn-c++.cc: New file.
23856         * modules/spawn-tests (Files): Add it and tests/signature.h.
23857         (Depends-on): Add ansi-c++-opt.
23858         (Makefile.am): Arrange to compile and run test-spawn-c++.
23859         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23860         gl_MODULE_INDICATOR.
23861
23862         Tests of module 'signal' in C++ mode.
23863         * tests/test-signal-c++.cc: New file.
23864         * modules/signal-tests (Files): Add it and tests/signature.h.
23865         (Depends-on): Add ansi-c++-opt.
23866         (Makefile.am): Arrange to compile and run test-signal-c++.
23867         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23868         gl_MODULE_INDICATOR.
23869
23870         Tests of module 'search' in C++ mode.
23871         * tests/test-search-c++.cc: New file.
23872         * modules/search-tests (Files): Add it and tests/signature.h.
23873         (Depends-on): Add ansi-c++-opt.
23874         (Makefile.am): Arrange to compile and run test-search-c++.
23875         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23876         gl_MODULE_INDICATOR.
23877
23878         Tests of module 'math' in C++ mode.
23879         * tests/test-math-c++.cc: New file.
23880         * modules/math-tests (Files): Add it and tests/signature.h.
23881         (Depends-on): Add ansi-c++-opt.
23882         (Makefile.am): Arrange to compile and run test-math-c++.
23883         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23884
23885         Tests of module 'locale' in C++ mode.
23886         * tests/test-locale-c++.cc: New file.
23887         * modules/locale-tests (Files): Add it and tests/signature.h.
23888         (Depends-on): Add ansi-c++-opt.
23889         (Makefile.am): Arrange to compile and run test-locale-c++.
23890         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23891         gl_MODULE_INDICATOR.
23892
23893         Tests of module 'langinfo' in C++ mode.
23894         * tests/test-langinfo-c++.cc: New file.
23895         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23896         (Depends-on): Add ansi-c++-opt.
23897         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23898         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23899         gl_MODULE_INDICATOR.
23900
23901         Tests of module 'iconv-h' in C++ mode.
23902         * tests/test-iconv-h-c++.cc: New file.
23903         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23904         (Depends-on): Add ansi-c++-opt.
23905         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23906
23907         Tests of module 'glob' in C++ mode.
23908         * tests/test-glob-c++.cc: New file.
23909         * modules/glob-tests (Files): Add it.
23910         (Depends-on): Add ansi-c++-opt.
23911         (Makefile.am): Arrange to compile and run test-glob-c++.
23912
23913         Tests of module 'fcntl-h' in C++ mode.
23914         * tests/test-fcntl-h-c++.cc: New file.
23915         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23916         (Depends-on): Add ansi-c++-opt.
23917         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23918         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23919         gl_MODULE_INDICATOR.
23920
23921         Tests of module 'dirent' in C++ mode.
23922         * tests/test-dirent-c++.cc: New file.
23923         * modules/dirent-tests (Files): Add it and tests/signature.h.
23924         (Depends-on): Add ansi-c++-opt.
23925         (Makefile.am): Arrange to compile and run test-dirent-c++.
23926         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23927         gl_MODULE_INDICATOR.
23928
23929         New module 'ansi-c++-opt'.
23930         * modules/ansi-c++-opt: New file.
23931         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23932
23933         Document C++ namespace mode.
23934         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23935
23936         wctype: Avoid #define replacements in C++ mode.
23937         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23938         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23939         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23940         In C++, define a namespaced alias symbol.
23941         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23942         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23943         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23944         rule.
23945
23946         wchar: Avoid #define replacements in C++ mode.
23947         * lib/wchar.in.h: Include c++defs.h.
23948         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23949         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23950         symbol.
23951         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23952         * modules/wchar (Depends-on): Add c++defs.
23953         (Makefile.am): Update wchar.h rule.
23954
23955         unistd: Avoid #define replacements in C++ mode.
23956         * lib/unistd.in.h: Include c++defs.h.
23957         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23958         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23959         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23960         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23961         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23962         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23963         symbol.
23964         (environ): Update.
23965         * modules/unistd (Depends-on): Add c++defs.
23966         (Makefile.am): Update unistd.h rule.
23967
23968         time: Avoid #define replacements in C++ mode.
23969         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23970         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23971         define a namespaced alias symbol.
23972         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23973         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23974         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23975         * modules/time (Depends-on): Add c++defs, warn-on-use.
23976         (Makefile.am): Update time.h rule.
23977         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23978         * modules/nanosleep (configure.ac): Likewise.
23979         * modules/strptime (configure.ac): Likewise.
23980         * modules/timegm (configure.ac): Likewise.
23981
23982         sys_time: Avoid #define replacements in C++ mode.
23983         * lib/sys_time.in.h: Include c++defs.h.
23984         (gettimeofday): In C++, define a namespaced alias symbol.
23985         * modules/sys_time (Depends-on): Add c++defs.
23986         (Makefile.am): Update sys/time.h rule.
23987
23988         sys_stat: Avoid #define replacements in C++ mode.
23989         * lib/sys_stat.in.h: Include c++defs.h.
23990         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23991         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23992         namespaced alias symbol.
23993         In C++, define a namespaced alias symbol.
23994         * modules/sys_stat (Depends-on): Add c++defs.
23995         (Makefile.am): Update sys/stat.h rule.
23996
23997         sys_socket: Avoid #define replacements in C++ mode.
23998         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23999         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
24000         definitions also when the system has a <sys/socket.h>.
24001         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24002         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
24003         In C++, define a namespaced alias symbol.
24004         * modules/sys_socket (Depends-on): Add c++defs.
24005         (Makefile.am): Update sys/socket.h rule.
24006
24007         sys_select: Avoid #define replacements in C++ mode.
24008         * lib/sys_select.in.h: Include c++defs.h. Enable the function
24009         definitions also when the system has a <sys/select.h>.
24010         (select): In C++, define a namespaced alias symbol.
24011         * modules/sys_select (Depends-on): Add c++defs.
24012         (Makefile.am): Update sys/select.h rule.
24013
24014         sys_ioctl: Avoid #define replacements in C++ mode.
24015         * lib/sys_ioctl.in.h: Include c++defs.h.
24016         (ioctl): In C++, define a namespaced alias symbol.
24017         * modules/sys_ioctl (Depends-on): Add c++defs.
24018         (Makefile.am): Update sys/ioctl.h rule.
24019
24020         string: Avoid #define replacements in C++ mode.
24021         * lib/string.in.h: Include c++defs.h.
24022         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
24023         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24024         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24025         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
24026         strsignal, strverscmp): In C++, define a namespaced alias symbol.
24027         * modules/string (Depends-on): Add c++defs.
24028         (Makefile.am): Update string.h rule.
24029
24030         stdlib: Avoid #define replacements in C++ mode.
24031         * lib/stdlib.in.h: Include c++defs.h.
24032         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
24033         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
24034         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
24035         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
24036         symbol.
24037         * modules/stdlib (Depends-on): Add c++defs.
24038         (Makefile.am): Update stdlib.h rule.
24039
24040         stdio: Avoid #define replacements in C++ mode.
24041         * lib/stdio.in.h: Include c++defs.h.
24042         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
24043         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
24044         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
24045         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
24046         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
24047         namespaced alias symbol.
24048         * modules/stdio (Depends-on): Add c++defs.
24049         (Makefile.am): Update stdio.h rule.
24050
24051         spawn: Avoid #define replacements in C++ mode.
24052         * lib/spawn.in.h: Include c++defs.h.
24053         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24054         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24055         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24056         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24057         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24058         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24059         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24060         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24061         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24062         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24063         In C++, define a namespaced alias symbol.
24064         * modules/spawn (Depends-on): Add c++defs.
24065         (Makefile.am): Update spawn.h rule.
24066
24067         signal: Avoid #define replacements in C++ mode.
24068         * lib/signal.in.h: Include c++defs.h.
24069         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24070         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
24071         namespaced alias symbol.
24072         * modules/signal (Depends-on): Add c++defs.
24073         (Makefile.am): Update signal.h rule.
24074
24075         search: Avoid #define replacements in C++ mode.
24076         * lib/search.in.h: Include c++defs.h.
24077         (_gl_search_compar_fn, _gl_search_action_fn): New types.
24078         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
24079         symbol.
24080         * modules/search (Depends-on): Add c++defs.
24081         (Makefile.am): Update search.h rule.
24082
24083         math: Avoid #define replacements in C++ mode.
24084         * lib/math.in.h: Include c++defs.h.
24085         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
24086         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
24087         trunc, truncl): In C++, define a namespaced alias symbol.
24088         * modules/math (Depends-on): Add c++defs.
24089         (Makefile.am): Update math.h rule.
24090
24091         locale: Avoid #define replacements in C++ mode.
24092         * lib/locale.in.h: Include c++defs.h.
24093         (duplocale): In C++, define a namespaced alias symbol.
24094         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
24095         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
24096         * modules/locale (Depends-on): Add c++defs.
24097         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
24098
24099         langinfo: Avoid #define replacements in C++ mode.
24100         * lib/langinfo.in.h: Include c++defs.h.
24101         (nl_langinfo): In C++, define a namespaced alias symbol.
24102         * modules/langinfo (Depends-on): Add c++defs.
24103         (Makefile.am): Update langinfo.h rule.
24104
24105         iconv-h: Avoid #define replacements in C++ mode.
24106         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
24107         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
24108         symbol.
24109         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
24110         whenever iconv is present.
24111         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
24112         (Makefile.am): Update iconv.h rule.
24113
24114         glob: Avoid #define replacements in C++ mode.
24115         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
24116         (_gl_glob_errfunc_fn): New type.
24117         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
24118         symbol.
24119         * modules/glob (Depends-on): Add c++defs, warn-on-use.
24120         (Makefile.am): Update glob.h rule.
24121
24122         fcntl-h: Avoid #define replacements in C++ mode.
24123         * lib/fcntl.in.h: Include c++defs.h.
24124         (fcntl, open, openat): In C++, define a namespaced alias symbol.
24125         * modules/fcntl-h (Depends-on): Add c++defs.
24126         (Makefile.am): Update fcntl.h rule.
24127
24128         dirent: Avoid #define replacements in C++ mode.
24129         * lib/dirent.in.h: Include c++defs.h.
24130         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
24131         namespaced alias symbol.
24132         (dirfd): Update declaration.
24133         * modules/dirent (Depends-on): Add c++defs.
24134         (Makefile.am): Update dirent.h rule.
24135
24136         ctype: Make it usable in C++ code.
24137         * lib/ctype.in.h: Include c++defs.h.
24138         (isblank): Declare as extern "C".
24139         * modules/ctype (Depends-on): Add c++defs.
24140         (Makefile.am): Update ctype.h rule.
24141
24142         New module 'c++defs'.
24143         * modules/c++defs: New file.
24144         * build-aux/c++defs.h: New file.
24145         Reported by John W. Eaton <jwe@gnu.org>.
24146
24147 2010-03-07  Bruno Haible  <bruno@clisp.org>
24148
24149         logb: Provide missing declaration for Cygwin.
24150         * lib/math.in.h (logb): New declaration.
24151         * m4/logb.m4: New file.
24152         * modules/logb (Files): Add m4/logb.m4.
24153         (Depends-on): Add math.
24154         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
24155         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
24156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
24157         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
24158         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
24159
24160 2010-03-07  Bruno Haible  <bruno@clisp.org>
24161
24162         Fix test-cond link error.
24163         * tests/test-cond.c: Include <stdio.h>.
24164
24165 2010-03-07  Bruno Haible  <bruno@clisp.org>
24166
24167         Fix test-dirent-safer link error.
24168         * modules/dirent-safer-tests (Makefile.am): Define
24169         test_dirent_safer_LDADD.
24170
24171 2010-03-07  Bruno Haible  <bruno@clisp.org>
24172
24173         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
24174         among default module list.
24175
24176 2010-03-07  Bruno Haible  <bruno@clisp.org>
24177
24178         Fix link error on platforms with GNU libiconv.
24179         * modules/unistr/u8-strcoll-tests (Makefile): Define
24180         test_u8_strcoll_LDADD.
24181         * modules/unistr/u16-strcoll-tests (Makefile): Define
24182         test_u16_strcoll_LDADD.
24183         * modules/unistr/u32-strcoll-tests (Makefile): Define
24184         test_u32_strcoll_LDADD.
24185
24186 2010-03-07  Bruno Haible  <bruno@clisp.org>
24187
24188         Use POSIX declarations for socket functions.
24189         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
24190         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
24191         rpl_sendto): Change declaration to match POSIX.
24192         * lib/connect.c (rpl_connect): Likewise.
24193         * lib/accept.c (rpl_accept): Likewise.
24194         * lib/bind.c (rpl_bind): Likewise.
24195         * lib/getpeername.c (rpl_getpeername): Likewise.
24196         * lib/getsockname.c (rpl_getsockname): Likewise.
24197         * lib/recv.c (rpl_recv): Likewise.
24198         * lib/send.c (rpl_send): Likewise.
24199         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24200         * lib/sendto.c (rpl_sendto): Likewise.
24201
24202 2010-03-06  Bruno Haible  <bruno@clisp.org>
24203
24204         Clarify access, euidaccess, faccessat.
24205         * doc/posix-functions/faccessat.texi: Mention security problem under
24206         "Other problems", not "Portability problems".
24207         * doc/posix-functions/access.texi: Likewise. Mention a related security
24208         problem.
24209         * doc/glibc-functions/euidaccess.texi: Mention security problems.
24210         * lib/euidaccess.c: Add comments about platforms.
24211         * lib/unistd.in.h (access, euidaccess): Add warnings.
24212
24213 2010-03-07  Bruno Haible  <bruno@clisp.org>
24214
24215         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
24216         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
24217         (POSIX_SPAWN_SETSCHEDULER): Likewise.
24218         (POSIX_SPAWN_USEVFORK): Define in a way that works when
24219         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24220         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
24221         declare when POSIX_SPAWN_SETSCHEDULER is zero.
24222         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
24223         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
24224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
24225         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
24226         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
24227         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
24228         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
24229         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
24230         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
24231         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
24232         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
24233         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
24234         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
24235         Likewise.
24236         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
24237         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
24238         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
24239         Likewise.
24240         * tests/test-spawn.c (main): Make it work when
24241         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24242
24243 2010-03-07  Bruno Haible  <bruno@clisp.org>
24244
24245         Fix incorrect Makefile.am generation in German locale.
24246         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24247         Execute sed command with character range in C locale.
24248
24249 2010-03-06  Bruno Haible  <bruno@clisp.org>
24250
24251         Tests for module 'iconv-h'.
24252         * modules/iconv-h-tests: New file.
24253         * tests/test-iconv-h.c: New file.
24254
24255         New module 'iconv-h'.
24256         * modules/iconv-h: New file.
24257         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
24258         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
24259         (configure.ac): Remove gl_ICONV_H.
24260         (Makefile.am): Remove rule for iconv.h.
24261
24262 2010-03-06  Bruno Haible  <bruno@clisp.org>
24263
24264         More consistent naming of *.m4 files.
24265         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
24266         * modules/wctype (Files): Update.
24267
24268         More consistent naming of *.m4 files.
24269         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
24270         * modules/wchar (Files): Update.
24271
24272 2010-03-06  Jim Meyering  <meyering@redhat.com>
24273
24274         euidaccess: relax license to LGPLv2+
24275         * modules/euidaccess (License): Relax to LGPLv2+.
24276
24277 2010-03-06  Bruno Haible  <bruno@clisp.org>
24278
24279         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
24280         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
24281         (Makefile.am): Augment lib_SOURCES instead.
24282
24283 2010-03-04  Jim Meyering  <meyering@redhat.com>
24284
24285         utime: remove obsolete module
24286         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
24287         unnecessary for years, and has been marked as obsolete for 10 months.
24288         * modules/utime: Remove file.
24289         * lib/utime.c: Remove file.
24290         * m4/utime.m4: Remove file.
24291         * m4/utimes-null.m4: Remove file.
24292         * doc/posix-functions/utime.texi (utime): Remove reference to
24293         the module.  Move the sole "fixed by gnulib" item into the
24294         "problems not fixed by Gnulib" list.
24295         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
24296
24297 2010-03-05  Simon Josefsson  <simon@josefsson.org>
24298
24299         * modules/exit (License): Relax license to LGPLv2+.
24300         (Status): Mark as obsolete.
24301         * NEWS: Mention deprecated 'exit' module.
24302         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
24303         of now obsolete 'exit'.
24304
24305 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24306
24307         fts-lgpl: remove unused module
24308         * modules/fts-lgpl: Remove.
24309         * MODULES.html.sh (func_all_modules): Adjust.
24310         * check-module (find_included_lib_files): Adjust.
24311         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
24312
24313 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24314
24315         copy-acl: enhance Solaris ACL error handling
24316         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
24317         * lib/set-mode-acl.c (qset_acl): Likewise.
24318
24319 2010-03-02  Bruno Haible  <bruno@clisp.org>
24320
24321         spawn: Don't override the system defined values on FreeBSD 8.
24322         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
24323         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
24324         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
24325         if HAVE_POSIX_SPAWN is 1.
24326         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
24327
24328 2010-03-01  Bruno Haible  <bruno@clisp.org>
24329
24330         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
24331         regarding Automake.
24332
24333 2010-02-25  Bruno Haible  <bruno@clisp.org>
24334
24335         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
24336         * gnulib-tool: Define 'echo' as a function only before the ksh alias
24337         setting, not afterwards.
24338         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24339
24340 2010-02-24  Eric Blake  <eblake@redhat.com>
24341
24342         bootstrap, git-version-gen: use timestamp
24343         * build-aux/git-version-gen (scriptversion): Force UTC.
24344         * build-aux/bootstrap (scriptversion): New variable.
24345
24346         bootstrap: allow older git
24347         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
24348         older than 1.6.4.  Requested by the libvirt project.
24349
24350 2010-02-23  Eric Blake  <eblake@redhat.com>
24351
24352         warn-on-use: work with old autoconf
24353         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
24354         AS_VAR semantics of autoconf 2.60.
24355         Reported by Bruno Haible.
24356
24357         bootstrap: improve some comments
24358         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
24359         clarification comments.
24360
24361         gettimeofday: provide correct function
24362         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
24363         when replacement is declared, otherwise provide gettimeofday.
24364         Reported by Michael Goffioul.
24365
24366 2010-02-23  Jim Meyering  <meyering@redhat.com>
24367
24368         lib-ignore: relax license to "unlimited", not LGPLv2+
24369         * modules/lib-ignore (License): Relax to "unlimited".
24370
24371 2010-02-23  Jim Meyering  <meyering@redhat.com>
24372
24373         lib-ignore: relax license to LGPLv2+
24374         * modules/lib-ignore (License): Relax to LGPLv2+.
24375
24376 2010-02-22  Eric Blake  <eblake@redhat.com>
24377
24378         lseek: avoid bash 3.2 broken pipe bug
24379         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
24380         warning from bash 3.2.
24381         Reported by Ben Pfaff, with analysis from Bruno Haible.
24382
24383         bootstrap: support non-FSF copyright holder
24384         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
24385         bootstrap.conf override of COPYRIGHT_HOLDER.
24386         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
24387
24388         bootstrap: interoperate with gettext 0.14.1
24389         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
24390
24391         bootstrap: allow for alternate submodule location
24392         * build-aux/bootstrap (gnulib_path): New variable; use instead of
24393         hardcoding submodule location.
24394         (gnulib_mk): Allow direct use of Makefile.am.
24395
24396         bootstrap: use GNULIB_SRCDIR to reduce disk usage
24397         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
24398         rather than reconfiguring where the submodule points.
24399
24400         gettimeofday: restore support for platforms that lack function
24401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
24402         replacement if function is missing.
24403         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
24404         * modules/sys_time (Makefile.am): Substitute it.
24405         * lib/sys_time.in.h (gettimeofday): Check it.
24406         Reported by Michael Goffioul.
24407
24408 2010-02-21  Bruno Haible  <bruno@clisp.org>
24409
24410         * lib/stdio.in.h (obstack_printf): Fix typo.
24411
24412 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
24413
24414         vc-list-files: use bzr ls's -R option
24415         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
24416         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
24417
24418 2010-02-21  Jim Meyering  <meyering@redhat.com>
24419
24420         init.sh: fix EXEEXT shims to work also for names like test-prog
24421         * tests/init.sh: Re-exec a better shell, when needed.
24422         If the current shell lacks support for posix $(...), an init.sh-using
24423         test will now try to find a shell that supports that.  If EXEEXT is
24424         nonempty, we also require support for hyphen-in-alias-name and shell
24425         substitutions like ${var#glob}.  Failure to find such a shell results
24426         in a skipped test.
24427
24428 2010-02-21  Bruno Haible  <bruno@clisp.org>
24429
24430         Really work around around "broken pipe" error message from bash 3.2.
24431         * gnulib-tool (func_reset_sigpipe): Remove function.
24432         (echo): In bash 3.2, define to a function that uses printf.
24433         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
24434
24435 2010-02-20  Bruno Haible  <bruno@clisp.org>
24436
24437         Restore support for automake 1.9.6 with autoconf 2.61.
24438         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
24439         Reported by James Youngman <jay@gnu.org>.
24440
24441 2010-02-20  Bruno Haible  <bruno@clisp.org>
24442
24443         Improve *printf warning condition.
24444         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
24445         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
24446         and the function is overridden due to SIGPIPE emulation.
24447
24448 2010-02-20  Bruno Haible  <bruno@clisp.org>
24449
24450         * lib/stdio.in.h: Tweak comments.
24451
24452 2010-02-19  Bruno Haible  <bruno@clisp.org>
24453
24454         Make it easier to find modules. New gnulib-tool option '--find'.
24455         * gnulib-tool: New option --find.
24456         (func_usage): Document it.
24457         (func_sanitize_modulelist): New function, extracted from
24458         func_all_modules.
24459         (func_all_modules): Invoke it.
24460         * doc/gnulib-tool.texi (Which modules?): New node.
24461
24462 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
24463
24464         * lib/sys_select.in.h: Provide select replacement even if
24465         sys/select.h exists on a system, for Interix.
24466
24467 2010-02-18  Jim Meyering  <meyering@redhat.com>
24468
24469         init.sh: don't use $(...) just yet
24470         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
24471         to accommodate e.g., Solaris' /bin/sh.
24472
24473 2010-02-17  Bruno Haible  <bruno@clisp.org>
24474
24475         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
24476         Reported by Ludovic Courtès <ludo@gnu.org>.
24477
24478 2010-02-16  Simon Josefsson  <simon@josefsson.org>
24479
24480         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
24481         linking with -lintl.
24482
24483 2010-02-17  Simon Josefsson  <simon@josefsson.org>
24484
24485         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
24486         if not provided by the system's netdb.h.  Reported by
24487         ludo@gnu.org (Ludovic Courtès).
24488
24489 2010-02-15  Jim Meyering  <meyering@redhat.com>
24490
24491         init.sh: improve portability and efficiency
24492         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
24493         "dummy" in a for loop.
24494         Use '!', not '^' to select the complement of a character set used
24495         in a "case" statement.
24496         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
24497         Suggestions from Eric Blake.
24498
24499         init.sh: automatically accommodate programs with the .exe suffix
24500         Automatically arrange for an invocation of "prog" to execute the
24501         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
24502         may use the simpler "prog", yet still work when built on a system
24503         that requires specifying the added suffix.
24504         Do this by constructing a function named "prog" that invokes
24505         "prog.exe" for each .exe file in selected directories.
24506         * tests/init.sh (find_exe_basenames_): New function.
24507         (create_exe_shim_functions_): New function.
24508         (path_prepend_): Use it.
24509
24510         maint.mk: mark syntax-check sc_*.m rules as .PHONY
24511         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
24512         "make -t syntax-check" doesn't create a ton of sc_*.m files.
24513
24514 2010-02-14  Jim Meyering  <meyering@redhat.com>
24515
24516         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
24517         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
24518         (sc_prohibit_hash_pjw_without_use): New rule.
24519
24520         maint.mk: allow the default upload destination dir to be overridden
24521         * top/maint.mk (upload_dest_dir_): Define with a default that
24522         preserves the status quo.
24523         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
24524         Reported by Peter Simons.
24525
24526         maint.mk: prohibit inclusion of "hash.h" without_use
24527         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
24528
24529 2010-02-10  Jim Meyering  <meyering@redhat.com>
24530
24531         maint.mk: prohibit inclusion of "ignore-value.h" without_use
24532         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
24533
24534 2010-02-09  Eric Blake  <ebb9@byu.net>
24535         and Bruno Haible  <bruno@clisp.org>
24536
24537         obstack-printf-posix: ensure declaration
24538         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
24539         extracted from gl_FUNC_OBSTACK_PRINTF.
24540         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
24541         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24542         Likewise.
24543         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
24544         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
24545         0.
24546
24547 2010-02-08  Bruno Haible  <bruno@clisp.org>
24548
24549         gnulib-tool: Fix typo in 2010-02-07 commit.
24550         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
24551         Reported by Eric Blake.
24552
24553 2010-02-07  Bruno Haible  <bruno@clisp.org>
24554
24555         gnulib-tool: Fix up caching patches.
24556         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
24557         option --no-cache. Use associative arrays when supported by the shell.
24558         (sed_comments): New variable.
24559         (modcache): Renamed from do_cache.
24560         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
24561         abbreviate unnecessarily.
24562         (have_associative): New variable.
24563         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
24564         way also for ksh and zsh.
24565         (func_init_sed_convert_to_cache_statements): New function, extracted
24566         from func_cache_lookup_module. Add support for associative arrays.
24567         Don't set the c_MODULE_cached variable here. Ignore all lines before
24568         the first field header. Remove only the final newline, not all trailing
24569         newlines. Support empty fields correctly. Limit the use of 'eval' to
24570         assignments.
24571         (func_get_description, func_get_status, func_get_notice,
24572         func_get_applicability, func_get_filelist, func_get_dependencies,
24573         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
24574         func_get_automake_snippet, func_get_include_directive,
24575         func_get_link_directive, func_get_license, func_get_maintainer):
24576         Update documentation. List the unoptimized code first. Add support for
24577         associative arrays. Limit the use of 'eval' to assignments.
24578         (func_get_applicability): Undo stylistic pessimisations.
24579         (func_get_automake_snippet, func_get_include_directive): Reduce code
24580         duplication.
24581         (func_modules_transitive_closure, func_modules_add_dummy,
24582         func_modules_notice, func_modules_to_filelist, func_add_file,
24583         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
24584         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
24585         func_create_testdir, func_create_megatestdir): Update documentation.
24586
24587 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24588
24589         * gnulib-tool (func_cache_lookup_module): Store the module name
24590         belonging to the cache variable; error out if two different
24591         module names map to the same cache variable name.
24592
24593 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24594
24595         gnulib-tool: Make caching optional.
24596         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
24597         Update matching short versions of --no-changelog.
24598         (func_usage): Update.
24599         (sed_extract_cache_prog): Renamed from ...
24600         (sed_extract_prog): ... this; revert to old extraction script.
24601         (func_get_description, func_get_status)
24602         (func_get_notice, func_get_applicability, func_get_filelist)
24603         (func_get_dependencies, func_get_autoconf_early_snippet)
24604         (func_get_autoconf_snippet, func_get_automake_snippet)
24605         (func_get_include_directive, func_get_link_directive)
24606         (func_get_license, func_get_maintainer): If $do_cache is false,
24607         use old, non-caching extraction scripts.
24608         Suggestion by Bruno Haible.
24609
24610 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24611
24612         gnulib-tool: cache module metainformation.
24613         * gnulib-tool (sed_extract_prog): Match newline before each
24614         header, and rewrite header to a shell variable suffix.
24615         (func_cache_var, func_cache_lookup_module): New functions,
24616         to turn a module name into a cache variable prefix, and to
24617         look up and cache module metainformation.
24618         (func_get_description, func_get_status)
24619         (func_get_notice, func_get_applicability, func_get_filelist)
24620         (func_get_dependencies, func_get_autoconf_early_snippet)
24621         (func_get_autoconf_snippet, func_get_automake_snippet)
24622         (func_get_include_directive, func_get_link_directive)
24623         (func_get_license, func_get_maintainer): Use
24624         func_cache_lookup_module.
24625
24626 2010-02-07  Bruno Haible  <bruno@clisp.org>
24627
24628         fnctl: Fix missing dependency.
24629         * modules/fcntl (Depends-on): Add getdtablesize.
24630         Reported by John W. Eaton <jwe@gnu.org>.
24631
24632 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24633
24634         Argp: fix recognition of short alias options.
24635
24636         * lib/argp-parse.c (convert_options): Fix improper use of
24637         `|' between character values.
24638         * tests/test-argp.c (group1_option): New alias option
24639         --read (-r).
24640         (group1_parser): Special handling for 'r'.
24641         (test15): New test case.
24642         (test_fun): Add test15.
24643         * tests/test-argp-2.sh: Update expected --help and --usage
24644         outputs.
24645
24646 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24647
24648         * tests/test-argp.c: Fix indentation.
24649
24650 2010-02-04  Eric Blake  <ebb9@byu.net>
24651
24652         gettimeofday: expose type of second argument
24653         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
24654         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
24655         * tests/test-gettimeofday.c: Use it to silence warning.
24656         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
24657         the issue.
24658
24659 2010-02-03  Jim Meyering  <meyering@redhat.com>
24660
24661         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
24662         * lib/regcomp.c (TYPE_SIGNED): Define.
24663         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
24664
24665         regcomp.c: avoid a new -Wshadow warning
24666         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24667
24668 2010-02-01  Jim Meyering  <meyering@redhat.com>
24669
24670         removing useless parentheses in cpp #define directives
24671         For motivation, see commit c0221df4, "define STREQ(a,b)
24672         consistently, removing useless parentheses"
24673         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24674         * lib/mountlist.c (MNT_IGNORE): Likewise.
24675         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24676
24677 2010-02-01  Eric Blake  <ebb9@byu.net>
24678
24679         sys_time: use link-warning
24680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24681         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24682         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24683         * modules/sys_time (Depends-on): Add warn-on-use.
24684         (Makefile.am): Always build replacement.
24685         (configure.ac): Update substitutions.
24686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24687         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24688         bother with SYS_TIME_H.
24689         * modules/gettimeofday (configure.ac): Declare indicator.
24690         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24691         in use.
24692
24693         closein-tests: silence compiler warning
24694         * tests/test-closein.c (main): Ignore fread result.
24695         * modules/closein-tests (Depends-on): Add ignore-value.
24696
24697         tests: silence warning about system return
24698         * tests/test-areadlink-with-size.c (main): Ignore system result.
24699         * tests/test-areadlink.c (main): Likewise.
24700         * tests/test-areadlinkat-with-size.c (main): Likewise.
24701         * tests/test-areadlinkat.c (main): Likewise.
24702         * tests/test-canonicalize-lgpl.c (main): Likewise.
24703         * tests/test-canonicalize.c (main): Likewise.
24704         * tests/test-chown.c (main): Likewise.
24705         * tests/test-fchownat.c (main): Likewise.
24706         * tests/test-fdutimensat.c (main): Likewise.
24707         * tests/test-fstatat.c (main): Likewise.
24708         * tests/test-futimens.c (main): Likewise.
24709         * tests/test-lchown.c (main): Likewise.
24710         * tests/test-link.c (main): Likewise.
24711         * tests/test-linkat.c (main): Likewise.
24712         * tests/test-lstat.c (main): Likewise.
24713         * tests/test-mkdir.c (main): Likewise.
24714         * tests/test-mkdirat.c (main): Likewise.
24715         * tests/test-mkfifo.c (main): Likewise.
24716         * tests/test-mkfifoat.c (main): Likewise.
24717         * tests/test-mknod.c (main): Likewise.
24718         * tests/test-readlink.c (main): Likewise.
24719         * tests/test-remove.c (main): Likewise.
24720         * tests/test-rename.c (main): Likewise.
24721         * tests/test-renameat.c (main): Likewise.
24722         * tests/test-rmdir.c (main): Likewise.
24723         * tests/test-symlink.c (main): Likewise.
24724         * tests/test-symlinkat.c (main): Likewise.
24725         * tests/test-unlink.c (main): Likewise.
24726         * tests/test-unlinkat.c (main): Likewise.
24727         * tests/test-utimens.c (main): Likewise.
24728         * tests/test-utimensat.c (main): Likewise.
24729         * modules/areadlink-tests (Depends-on): Add ignore-value.
24730         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24731         * modules/areadlinkat-tests (Depends-on): Likewise.
24732         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24733         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24734         * modules/canonicalize-tests (Depends-on): Likewise.
24735         * modules/chown-tests (Depends-on): Likewise.
24736         * modules/fdutimensat-tests (Depends-on): Likewise.
24737         * modules/futimens-tests (Depends-on): Likewise.
24738         * modules/lchown-tests (Depends-on): Likewise.
24739         * modules/link-tests (Depends-on): Likewise.
24740         * modules/linkat-tests (Depends-on): Likewise.
24741         * modules/lstat-tests (Depends-on): Likewise.
24742         * modules/mkdir-tests (Depends-on): Likewise.
24743         * modules/mkfifo-tests (Depends-on): Likewise.
24744         * modules/mkfifoat-tests (Depends-on): Likewise.
24745         * modules/mknod-tests (Depends-on): Likewise.
24746         * modules/openat-tests (Depends-on): Likewise.
24747         * modules/readlink-tests (Depends-on): Likewise.
24748         * modules/remove-tests (Depends-on): Likewise.
24749         * modules/rename-tests (Depends-on): Likewise.
24750         * modules/renameat-tests (Depends-on): Likewise.
24751         * modules/rmdir-tests (Depends-on): Likewise.
24752         * modules/symlink-tests (Depends-on): Likewise.
24753         * modules/symlinkat-tests (Depends-on): Likewise.
24754         * modules/unlink-tests (Depends-on): Likewise.
24755         * modules/utimens-tests (Depends-on): Likewise.
24756         * modules/utimensat-tests (Depends-on): Likewise.
24757
24758 2010-01-31  Bruno Haible  <bruno@clisp.org>
24759
24760         Perform the same test for many <math.h> functions.
24761         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24762         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24763         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24764         of gl_MATHFUNC.
24765         * modules/acos (configure.ac): Likewise.
24766         * modules/asin (configure.ac): Likewise.
24767         * modules/atan (configure.ac): Likewise.
24768         * modules/atan2 (configure.ac): Likewise.
24769         * modules/cbrt (configure.ac): Likewise.
24770         * modules/copysign (configure.ac): Likewise.
24771         * modules/cos (configure.ac): Likewise.
24772         * modules/cosh (configure.ac): Likewise.
24773         * modules/erf (configure.ac): Likewise.
24774         * modules/erfc (configure.ac): Likewise.
24775         * modules/exp (configure.ac): Likewise.
24776         * modules/fmod (configure.ac): Likewise.
24777         * modules/hypot (configure.ac): Likewise.
24778         * modules/j0 (configure.ac): Likewise.
24779         * modules/j1 (configure.ac): Likewise.
24780         * modules/jn (configure.ac): Likewise.
24781         * modules/lgamma (configure.ac): Likewise.
24782         * modules/log (configure.ac): Likewise.
24783         * modules/log10 (configure.ac): Likewise.
24784         * modules/log1p (configure.ac): Likewise.
24785         * modules/pow (configure.ac): Likewise.
24786         * modules/remainder (configure.ac): Likewise.
24787         * modules/sin (configure.ac): Likewise.
24788         * modules/sinh (configure.ac): Likewise.
24789         * modules/tan (configure.ac): Likewise.
24790         * modules/tanh (configure.ac): Likewise.
24791         * modules/y0 (configure.ac): Likewise.
24792         * modules/y1 (configure.ac): Likewise.
24793         * modules/yn (configure.ac): Likewise.
24794         Suggested by Paolo Bonzini.
24795
24796 2010-01-31  Bruno Haible  <bruno@clisp.org>
24797
24798         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24799
24800 2010-01-31  Bruno Haible  <bruno@clisp.org>
24801
24802         Work around getdelim() bug on FreeBSD 8.0.
24803         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24804         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24805         not work.
24806         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24807         is 1.
24808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24809         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24810         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24811         a non-zero size.
24812         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24813
24814 2010-01-31  Bruno Haible  <bruno@clisp.org>
24815
24816         Work around getline() bug on FreeBSD 8.0.
24817         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24818         and a non-zero size.
24819         * tests/test-getline.c (main): Likewise.
24820         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24821         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24822
24823 2010-01-28  Eric Blake  <ebb9@byu.net>
24824
24825         regex: fix build failure
24826         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24827         platforms.
24828
24829 2010-01-28  Jim Meyering  <meyering@redhat.com>
24830
24831         regex: do not ignore memory allocation failure
24832         * lib/regex_internal.c (create_cd_newstate): Detect
24833         re_node_set_init_copy failure.   Extracted from glibc commit
24834         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24835
24836         regex: sync more white-space changes from libc
24837         * lib/regex_internal.c: White-space only changes.
24838         * lib/regexec.c: Likewise.
24839
24840         regex: add many uses of __attribute_warn_unused_result__
24841         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24842         * lib/regexec.c: Likewise.
24843         Extracted from a messy glibc commit.
24844
24845         regcomp.c: spelling and merge-artifact from glibc
24846         * lib/regcomp.c: Merge remainder of glibc's
24847         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24848
24849         regcomp.c: sync white-space changes from glibc
24850         * lib/regcomp.c: Merge to accommodate white space
24851         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24852
24853         regcomp.c: do not ignore internal return values
24854         * lib/regcomp.c: Do not ignore internal return values.
24855         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24856         but without its white-space changes and spelling fixes.
24857
24858         regex_internal.h: define __attribute_warn_unused_result__
24859         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24860
24861         maint: add a syntax-check rule to check for vulnerable Makefile.in
24862         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24863
24864 2010-01-27  Jim Meyering  <meyering@redhat.com>
24865
24866         ncftpput-ftp: clean up spaces
24867         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24868         Remove trailing blanks.
24869
24870 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24871
24872         * build-aux/git-version-gen: Fix copyright statement.
24873         * build-aux/gnupload: Likewise.
24874         * tests/test-arcfour.c: Likewise.
24875         * tests/test-arctwo.c: Likewise.
24876         * tests/test-count-one-bits.c: Likewise.
24877         * tests/test-crc.c: Likewise.
24878         * tests/test-des.c: Likewise.
24879         * tests/test-gc-arcfour.c: Likewise.
24880         * tests/test-gc-arctwo.c: Likewise.
24881         * tests/test-gc-des.c: Likewise.
24882         * tests/test-gc-hmac-md5.c: Likewise.
24883         * tests/test-gc-hmac-sha1.c: Likewise.
24884         * tests/test-gc-md2.c: Likewise.
24885         * tests/test-gc-md4.c: Likewise.
24886         * tests/test-gc-md5.c: Likewise.
24887         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24888         * tests/test-gc-rijndael.c: Likewise.
24889         * tests/test-gc-sha1.c: Likewise.
24890         * tests/test-gc.c: Likewise.
24891         * tests/test-gethostname.c: Likewise.
24892         * tests/test-gettimeofday.c: Likewise.
24893         * tests/test-hash.c: Likewise.
24894         * tests/test-hmac-md5.c: Likewise.
24895         * tests/test-hmac-sha1.c: Likewise.
24896         * tests/test-md2.c: Likewise.
24897         * tests/test-md4.c: Likewise.
24898         * tests/test-md5.c: Likewise.
24899         * tests/test-memchr.c: Likewise.
24900         * tests/test-memchr2.c: Likewise.
24901         * tests/test-memcmp.c: Likewise.
24902         * tests/test-memmem.c: Likewise.
24903         * tests/test-memrchr.c: Likewise.
24904         * tests/test-rawmemchr.c: Likewise.
24905         * tests/test-read-file.c: Likewise.
24906         * tests/test-rijndael.c: Likewise.
24907         * tests/test-sockets.c: Likewise.
24908         * tests/test-strchrnul.c: Likewise.
24909         * tests/test-strstr.c: Likewise.
24910         * tests/test-strtod.c: Likewise.
24911         * build-aux/ncftpput-ftp: Likewise.
24912
24913 2010-01-26  Eric Blake  <ebb9@byu.net>
24914
24915         ignore-value: update recommended header name
24916         * modules/ignore-value (Include): Only use <> for headers that
24917         exist in glibc.
24918
24919 2010-01-26  Jim Meyering  <meyering@redhat.com>
24920
24921         test-userspec.c: avoid compiler warnings
24922         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24923         and "initialization discards qualifiers..." warnings.
24924         Put the first "uid" in its own scope, and make char* members "const".
24925
24926 2010-01-25  Bruno Haible  <bruno@clisp.org>
24927
24928         gnulib-tool: Make warning diagnostics consistent.
24929         * gnulib-tool (func_warning): New function.
24930         Use it everywhere where gnulib-tool produces output to stderr and it is
24931         not a fatal error.
24932
24933 2010-01-25  Bruno Haible  <bruno@clisp.org>
24934
24935         Fix test dependencies.
24936         * modules/xstrtol-tests (Depends-on): Add inttypes.
24937         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24938
24939 2010-01-25 Pádraig Brady <P@draigBrady.com>
24940
24941         syntax-check: detect incorrect boolean macro values in config.h
24942         * modules/maintainer-makefile (configure.ac): Parameterize the location
24943         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24944         The logic is from Eric Blake and the location indicated by Jim Meyering.
24945         Note the more natural CONFIG_HEADER name is prohibited by automake
24946         for backwards compatibility reasons.
24947         * top/maint.mk (sc_Wundef_boolean): New rule.
24948
24949 2010-01-25  Jim Meyering  <meyering@redhat.com>
24950
24951         bootstrap: detect MacOS 10.6's shasum, too
24952         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24953         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24954
24955 2010-01-23  Jim Meyering  <meyering@redhat.com>
24956
24957         xstrtoll: new module
24958         * modules/xstrtoll: New file.
24959         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24960         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24961         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24962         ./configure fails if you use this module and lack "long long".
24963         * modules/xstrtoll-tests: New module.
24964         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24965         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24966         new init.sh-based test framework.
24967
24968 2010-01-24  Bruno Haible  <bruno@clisp.org>
24969
24970         Tests for module 'yn'.
24971         * modules/yn-tests: New file.
24972         * tests/test-yn.c: New file.
24973
24974         Tests for module 'y1'.
24975         * modules/y1-tests: New file.
24976         * tests/test-y1.c: New file.
24977
24978         Tests for module 'y0'.
24979         * modules/y0-tests: New file.
24980         * tests/test-y0.c: New file.
24981
24982         Tests for module 'tanh'.
24983         * modules/tanh-tests: New file.
24984         * tests/test-tanh.c: New file.
24985
24986         Tests for module 'tan'.
24987         * modules/tan-tests: New file.
24988         * tests/test-tan.c: New file.
24989
24990         Tests for module 'sqrt'.
24991         * modules/sqrt-tests: New file.
24992         * tests/test-sqrt.c: New file.
24993
24994         Tests for module 'sinh'.
24995         * modules/sinh-tests: New file.
24996         * tests/test-sinh.c: New file.
24997
24998         Tests for module 'sin'.
24999         * modules/sin-tests: New file.
25000         * tests/test-sin.c: New file.
25001
25002         Tests for module 'rint'.
25003         * modules/rint-tests: New file.
25004         * tests/test-rint.c: New file.
25005
25006         Tests for module 'remainder'.
25007         * modules/remainder-tests: New file.
25008         * tests/test-remainder.c: New file.
25009
25010         Tests for module 'pow'.
25011         * modules/pow-tests: New file.
25012         * tests/test-pow.c: New file.
25013
25014         Tests for module 'nextafter'.
25015         * modules/nextafter-tests: New file.
25016         * tests/test-nextafter.c: New file.
25017
25018         Tests for module 'modf'.
25019         * modules/modf-tests: New file.
25020         * tests/test-modf.c: New file.
25021
25022         Tests for module 'logb'.
25023         * modules/logb-tests: New file.
25024         * tests/test-logb.c: New file.
25025
25026         Tests for module 'log1p'.
25027         * modules/log1p-tests: New file.
25028         * tests/test-log1p.c: New file.
25029
25030         Tests for module 'log10'.
25031         * modules/log10-tests: New file.
25032         * tests/test-log10.c: New file.
25033
25034         Tests for module 'log'.
25035         * modules/log-tests: New file.
25036         * tests/test-log.c: New file.
25037
25038         Tests for module 'lgamma'.
25039         * modules/lgamma-tests: New file.
25040         * tests/test-lgamma.c: New file.
25041
25042         Tests for module 'ldexp'.
25043         * modules/ldexp-tests: New file.
25044         * tests/test-ldexp.c: New file.
25045
25046         Tests for module 'jn'.
25047         * modules/jn-tests: New file.
25048         * tests/test-jn.c: New file.
25049
25050         Tests for module 'j1'.
25051         * modules/j1-tests: New file.
25052         * tests/test-j1.c: New file.
25053
25054         Tests for module 'j0'.
25055         * modules/j0-tests: New file.
25056         * tests/test-j0.c: New file.
25057
25058         Tests for module 'hypot'.
25059         * modules/hypot-tests: New file.
25060         * tests/test-hypot.c: New file.
25061
25062         Tests for module 'fmod'.
25063         * modules/fmod-tests: New file.
25064         * tests/test-fmod.c: New file.
25065
25066         Tests for module 'fabs'.
25067         * modules/fabs-tests: New file.
25068         * tests/test-fabs.c: New file.
25069
25070         Tests for module 'exp'.
25071         * modules/exp-tests: New file.
25072         * tests/test-exp.c: New file.
25073
25074         Tests for module 'erfc'.
25075         * modules/erfc-tests: New file.
25076         * tests/test-erfc.c: New file.
25077
25078         Tests for module 'erf'.
25079         * modules/erf-tests: New file.
25080         * tests/test-erf.c: New file.
25081
25082         Tests for module 'cosh'.
25083         * modules/cosh-tests: New file.
25084         * tests/test-cosh.c: New file.
25085
25086         Tests for module 'cos'.
25087         * modules/cos-tests: New file.
25088         * tests/test-cos.c: New file.
25089
25090         Tests for module 'copysign'.
25091         * modules/copysign-tests: New file.
25092         * tests/test-copysign.c: New file.
25093
25094         Tests for module 'cbrt'.
25095         * modules/cbrt-tests: New file.
25096         * tests/test-cbrt.c: New file.
25097
25098         Tests for module 'atan2'.
25099         * modules/atan2-tests: New file.
25100         * tests/test-atan2.c: New file.
25101
25102         Tests for module 'atan'.
25103         * modules/atan-tests: New file.
25104         * tests/test-atan.c: New file.
25105
25106         Tests for module 'asin'.
25107         * modules/asin-tests: New file.
25108         * tests/test-asin.c: New file.
25109
25110         Tests for module 'acos'.
25111         * modules/acos-tests: New file.
25112         * tests/test-acos.c: New file.
25113
25114 2010-01-24  Bruno Haible  <bruno@clisp.org>
25115
25116         Fix tests for common <math.h> functions.
25117         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
25118         code snippet that references the function pointer, rather than merely
25119         calling the function. Substitute the FUNC_LIBM variable.
25120         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
25121         * modules/acos (configure.ac): Likewise.
25122         * modules/asin (configure.ac): Likewise.
25123         * modules/atan (configure.ac): Likewise.
25124         * modules/atan2 (configure.ac): Likewise.
25125         * modules/cbrt (configure.ac): Likewise.
25126         * modules/copysign (configure.ac): Likewise.
25127         * modules/cos (configure.ac): Likewise.
25128         * modules/cosh (configure.ac): Likewise.
25129         * modules/erf (configure.ac): Likewise.
25130         * modules/erfc (configure.ac): Likewise.
25131         * modules/exp (configure.ac): Likewise.
25132         * modules/fabs (configure.ac): Likewise.
25133         * modules/fmod (configure.ac): Likewise.
25134         * modules/hypot (configure.ac): Likewise.
25135         * modules/j0 (configure.ac): Likewise.
25136         * modules/j1 (configure.ac): Likewise.
25137         * modules/jn (configure.ac): Likewise.
25138         * modules/ldexp (configure.ac): Likewise.
25139         * modules/lgamma (configure.ac): Likewise.
25140         * modules/log (configure.ac): Likewise.
25141         * modules/log10 (configure.ac): Likewise.
25142         * modules/log1p (configure.ac): Likewise.
25143         * modules/logb (configure.ac): Likewise.
25144         * modules/modf (configure.ac): Likewise.
25145         * modules/nextafter (configure.ac): Likewise.
25146         * modules/pow (configure.ac): Likewise.
25147         * modules/remainder (configure.ac): Likewise.
25148         * modules/rint (configure.ac): Likewise.
25149         * modules/sin (configure.ac): Likewise.
25150         * modules/sinh (configure.ac): Likewise.
25151         * modules/tan (configure.ac): Likewise.
25152         * modules/tanh (configure.ac): Likewise.
25153         * modules/y0 (configure.ac): Likewise.
25154         * modules/y1 (configure.ac): Likewise.
25155         * modules/yn (configure.ac): Likewise.
25156
25157 2010-01-24  Bruno Haible  <bruno@clisp.org>
25158
25159         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
25160         * tests/test-acosl.c (x): New variable.
25161         (main): Store argument in x and fetch it from x.
25162         * tests/test-asinl.c (x): New variable.
25163         (main): Store argument in x and fetch it from x.
25164         * tests/test-atanl.c (x): New variable.
25165         (main): Store argument in x and fetch it from x.
25166         * tests/test-cosl.c (x): New variable.
25167         (main): Store argument in x and fetch it from x.
25168         * tests/test-expl.c (x): New variable.
25169         (main): Store argument in x and fetch it from x.
25170         * tests/test-logl.c (x): New variable.
25171         (main): Store argument in x and fetch it from x.
25172         * tests/test-sinl.c (x): New variable.
25173         (main): Store argument in x and fetch it from x.
25174         * tests/test-sqrtl.c (x): New variable.
25175         (main): Store argument in x and fetch it from x.
25176         * tests/test-tanl.c (x): New variable.
25177         (main): Store argument in x and fetch it from x.
25178
25179 2010-01-24  Bruno Haible  <bruno@clisp.org>
25180
25181         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
25182         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
25183         assignments to the initial TESTS_ENVIRONMENT.
25184         * doc/gnulib.texi (Unit test modules): Document it.
25185         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
25186         TESTS_ENVIRONMENT.
25187         * modules/btowc-tests (Makefile.am): Likewise.
25188         * modules/c-stack-tests (Makefile.am): Likewise.
25189         * modules/c-strcase-tests (Makefile.am): Likewise.
25190         * modules/copy-file-tests (Makefile.am): Likewise.
25191         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
25192         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
25193         * modules/mbrtowc-tests (Makefile.am): Likewise.
25194         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25195         * modules/mbscasestr-tests (Makefile.am): Likewise.
25196         * modules/mbschr-tests (Makefile.am): Likewise.
25197         * modules/mbscspn-tests (Makefile.am): Likewise.
25198         * modules/mbsinit-tests (Makefile.am): Likewise.
25199         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25200         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
25201         * modules/mbspbrk-tests (Makefile.am): Likewise.
25202         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25203         * modules/mbsrchr-tests (Makefile.am): Likewise.
25204         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
25205         * modules/mbsspn-tests (Makefile.am): Likewise.
25206         * modules/mbsstr-tests (Makefile.am): Likewise.
25207         * modules/nl_langinfo-tests (Makefile.am): Likewise.
25208         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
25209         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25210         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25211         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25212         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25213         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
25214         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25215         * modules/wcrtomb-tests (Makefile.am): Likewise.
25216         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
25217         * modules/wcsrtombs-tests (Makefile.am): Likewise.
25218         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
25219         assignments from TESTS_ENVIRONMENT.
25220         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
25221         augmentation.
25222         * modules/argp-version-etc-tests (Makefile.am): Likewise.
25223         * modules/atexit-tests (Makefile.am): Likewise.
25224         * modules/binary-io-tests (Makefile.am): Likewise.
25225         * modules/closein-tests (Makefile.am): Likewise.
25226         * modules/dprintf-posix-tests (Makefile.am): Likewise.
25227         * modules/exclude-tests (Makefile.am): Likewise.
25228         * modules/fflush-tests (Makefile.am): Likewise.
25229         * modules/fpending-tests (Makefile.am): Likewise.
25230         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25231         * modules/freadahead-tests (Makefile.am): Likewise.
25232         * modules/freadptr-tests (Makefile.am): Likewise.
25233         * modules/freadseek-tests (Makefile.am): Likewise.
25234         * modules/fseek-tests (Makefile.am): Likewise.
25235         * modules/fseeko-tests (Makefile.am): Likewise.
25236         * modules/ftell-tests (Makefile.am): Likewise.
25237         * modules/ftello-tests (Makefile.am): Likewise.
25238         * modules/idpriv-drop-tests (Makefile.am): Likewise.
25239         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
25240         * modules/lseek-tests (Makefile.am): Likewise.
25241         * modules/parse-duration-tests (Makefile.am): Likewise.
25242         * modules/perror-tests (Makefile.am): Likewise.
25243         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
25244         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
25245         * modules/pipe-tests (Makefile.am): Likewise.
25246         * modules/pread-tests (Makefile.am): Likewise.
25247         * modules/printf-posix-tests (Makefile.am): Likewise.
25248         * modules/select-tests (Makefile.am): Likewise.
25249         * modules/sigpipe-tests (Makefile.am): Likewise.
25250         * modules/tsearch-tests (Makefile.am): Likewise.
25251         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
25252         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
25253         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25254         * modules/uniwidth/width-tests (Makefile.am): Likewise.
25255         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
25256         * modules/version-etc-tests (Makefile.am): Likewise.
25257         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25258         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25259         * modules/xalloc-die-tests (Makefile.am): Likewise.
25260         * modules/xprintf-posix-tests (Makefile.am): Likewise.
25261         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25262         * modules/xstrtol-tests (Makefile.am): Likewise.
25263         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25264         * modules/yesno-tests (Makefile.am): Likewise.
25265         Suggested by Jim Meyering.
25266
25267 2010-01-24  Bruno Haible  <bruno@clisp.org>
25268
25269         More documentation.
25270         * doc/gnulib.texi (Writing modules): New chapter.
25271         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
25272         the new chapter.
25273
25274 2010-01-24  Jim Meyering  <meyering@redhat.com>
25275
25276         maint.mk: do not prepend "./" after filtering
25277         * top/maint.mk (_prepend_srcdir_prefix): New variable
25278         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
25279         "./" when $(srcdir) is ".".
25280
25281         define STREQ(a,b) consistently, removing useless parentheses
25282         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
25283         since the only risk is that "a" or "b" contains an unparenthesized
25284         comma, but if either did that, STREQ would have 3 or more arguments.
25285         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
25286         * lib/fts.c (STREQ): Remove unnecessary parentheses.
25287         * lib/hash-triple.c (STREQ): Likewise.
25288         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
25289         * lib/getugroups.c (STREQ): Likewise.
25290
25291 2010-01-23  Jim Meyering  <meyering@redhat.com>
25292
25293         maint.mk: fix syntax-check in a non-srcdir build directory
25294         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
25295         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
25296
25297 2010-01-22  Jim Meyering  <meyering@redhat.com>
25298
25299         userspec: add unit tests
25300         * tests/test-userspec.c: New file.
25301         * modules/userspec-tests: Likewise.
25302
25303 2010-01-21  Jim Meyering  <meyering@redhat.com>
25304
25305         maint.mk: handle source file names containing "." robustly
25306         * top/maint.mk (_dot_escaped_srcdir): Define.
25307         (VC_LIST): Use it in LHS of sed substitution.
25308
25309 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
25310
25311         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
25312         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
25313         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
25314         from a non-srcdir build.
25315
25316 2010-01-20  Eric Blake  <ebb9@byu.net>
25317
25318         warn-on-use: use instead of link-warning
25319         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
25320         * modules/unistd (Depends-on, Makefile.am): Likewise.
25321         * modules/arpa_inet (Depends-on): Replace link-warning with
25322         warn-on-use.
25323         (Makefile.am): Update rules accordingly.
25324         * modules/ctype (Depends-on, Makefile.am): Likewise.
25325         * modules/dirent (Depends-on, Makefile.am): Likewise.
25326         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
25327         * modules/inttypes (Depends-on, Makefile.am): Likewise.
25328         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25329         * modules/locale (Depends-on, Makefile.am): Likewise.
25330         * modules/math (Depends-on, Makefile.am): Likewise.
25331         * modules/search (Depends-on, Makefile.am): Likewise.
25332         * modules/signal (Depends-on, Makefile.am): Likewise.
25333         * modules/spawn (Depends-on, Makefile.am): Likewise.
25334         * modules/stdlib (Depends-on, Makefile.am): Likewise.
25335         * modules/string (Depends-on, Makefile.am): Likewise.
25336         * modules/strings (Depends-on, Makefile.am): Likewise.
25337         * modules/sys_file (Depends-on, Makefile.am): Likewise.
25338         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
25339         * modules/sys_select (Depends-on, Makefile.am): Likewise.
25340         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
25341         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
25342         * modules/sys_times (Depends-on, Makefile.am): Likewise.
25343         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25344         * modules/wchar (Depends-on, Makefile.am): Likewise.
25345         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
25346         should be poisoned.
25347         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
25348         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
25349         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
25350         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25351         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25352         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25353         * m4/math_h.m4 (gl_MATH_H): Likewise.
25354         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25355         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25356         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25357         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
25358         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25359         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
25360         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25361         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
25362         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25363         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25364         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25366         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25367         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25368         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25369         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25370         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
25371         GL_LINK_WARNING.
25372         * lib/ctype.in.h: Likewise.
25373         * lib/dirent.in.h: Likewise.
25374         * lib/fcntl.in.h: Likewise.
25375         * lib/inttypes.in.h: Likewise.
25376         * lib/langinfo.in.h: Likewise.
25377         * lib/locale.in.h: Likewise.
25378         * lib/math.in.h: Likewise.
25379         * lib/search.in.h: Likewise.
25380         * lib/signal.in.h: Likewise.
25381         * lib/spawn.in.h: Likewise.
25382         * lib/stdio.in.h: Likewise.
25383         * lib/stdlib.in.h: Likewise.
25384         * lib/string.in.h: Likewise.
25385         * lib/strings.in.h: Likewise.
25386         * lib/sys_file.in.h: Likewise.
25387         * lib/sys_ioctl.in.h: Likewise.
25388         * lib/sys_select.in.h: Likewise.
25389         * lib/sys_socket.in.h: Likewise.
25390         * lib/sys_stat.in.h: Likewise.
25391         * lib/sys_times.in.h: Likewise.
25392         * lib/sys_utsname.in.h: Likewise.
25393         * lib/unistd.in.h: Likewise.
25394         * lib/wchar.in.h: Likewise.
25395
25396 2010-01-20  Bruno Haible  <bruno@clisp.org>
25397
25398         Avoid duplicate -lm.
25399         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
25400         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
25401         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
25402         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
25403         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
25404         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
25405         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
25406         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
25407         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
25408         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
25409         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25410         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25411         Reported by Paolo Bonzini.
25412
25413 2010-01-19  Bruno Haible  <bruno@clisp.org>
25414
25415         langinfo, nl_langinfo: Relicense under LGPLv2+.
25416         * modules/langinfo (License): Change to LGPLv2+.
25417         * modules/nl_langinfo (License): Likewise.
25418         Patch by David Lutterkort <lutter@redhat.com>.
25419
25420 2010-01-19  Bruno Haible  <bruno@clisp.org>
25421
25422         Avoid compilation error with cc on OSF/1 5.1.
25423         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
25424         statement, not before.
25425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25426
25427 2010-01-18  Bruno Haible  <bruno@clisp.org>
25428
25429         Avoid a link error due to the __printf__ symbol.
25430         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
25431         and 2.6.x.
25432         (__format__, __printf__): Remove definitions.
25433         * lib/argp-fmtstream.h: Likewise.
25434         * lib/argp.h: Likewise.
25435         * lib/error.h: Likewise.
25436         * lib/vasnprintf.h: Likewise.
25437         * lib/xprintf.h: Likewise.
25438         * lib/xvasprintf.h: Likewise.
25439         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25440
25441 2010-01-18  Bruno Haible  <bruno@clisp.org>
25442
25443         Tests for module 'tanl'.
25444         * modules/tanl-tests: New file.
25445         * tests/test-tanl.c: New file.
25446
25447         Tests for module 'sqrtl'.
25448         * modules/sqrtl-tests: New file.
25449         * tests/test-sqrtl.c: New file.
25450
25451         Tests for module 'sinl'.
25452         * modules/sinl-tests: New file.
25453         * tests/test-sinl.c: New file.
25454
25455         Tests for module 'logl'.
25456         * modules/logl-tests: New file.
25457         * tests/test-logl.c: New file.
25458
25459         Tests for module 'expl'.
25460         * modules/expl-tests: New file.
25461         * tests/test-expl.c: New file.
25462
25463         Tests for module 'cosl'.
25464         * modules/cosl-tests: New file.
25465         * tests/test-cosl.c: New file.
25466
25467         Tests for module 'atanl'.
25468         * modules/atanl-tests: New file.
25469         * tests/test-atanl.c: New file.
25470
25471         Tests for module 'asinl'.
25472         * modules/asinl-tests: New file.
25473         * tests/test-asinl.c: New file.
25474
25475         Tests for module 'acosl'.
25476         * modules/acosl-tests: New file.
25477         * tests/test-acosl.c: New file.
25478
25479         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25480         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25481         tanl): Use the standard gnulib idiom.
25482         * lib/cosl.c: Don't include trigl.c and sincosl.c.
25483         * lib/sinl.c: Likewise.
25484         * lib/tanl.c: Don't include trigl.c.
25485         (kernel_tanl): Make static.
25486         * lib/sincosl.c: Include trigl.h first.
25487         * lib/trigl.c: Likewise.
25488         * m4/acosl.m4: New file.
25489         * m4/asinl.m4: New file.
25490         * m4/atanl.m4: New file.
25491         * m4/cosl.m4: New file.
25492         * m4/expl.m4: New file.
25493         * m4/logl.m4: New file.
25494         * m4/sinl.m4: New file.
25495         * m4/sqrtl.m4: New file.
25496         * m4/tanl.m4: New file.
25497         * m4/mathl.m4: Remove file.
25498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
25499         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25500         Don't initialize GNULIB_MATHL.
25501         * modules/acosl: New file.
25502         * modules/asinl: New file.
25503         * modules/atanl: New file.
25504         * modules/cosl: New file.
25505         * modules/expl: New file.
25506         * modules/logl: New file.
25507         * modules/sinl: New file.
25508         * modules/sqrtl: New file.
25509         * modules/tanl: New file.
25510         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
25511         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
25512         substitute GNULIB_MATHL.
25513         * modules/mathl: Rewritten.
25514         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
25515         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
25516         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
25517         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
25518         * doc/posix-functions/expl.texi: Mention the 'expl' module.
25519         * doc/posix-functions/logl.texi: Mention the 'logl' module.
25520         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
25521         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
25522         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
25523
25524 2010-01-18  Bruno Haible  <bruno@clisp.org>
25525
25526         sqrt: Make gl_FUNC_SQRT requirable.
25527         * m4/sqrt.m4: New file.
25528         * modules/sqrt (Files): Add it.
25529         (configure.ac): Invoke gl_FUNC_SQRT.
25530
25531 2010-01-18  Bruno Haible  <bruno@clisp.org>
25532
25533         New modules for common <math.h> functions.
25534         * m4/mathfunc.m4: New file.
25535         * modules/acos: New file.
25536         * modules/asin: New file.
25537         * modules/atan: New file.
25538         * modules/atan2: New file.
25539         * modules/cbrt: New file.
25540         * modules/copysign: New file.
25541         * modules/cos: New file.
25542         * modules/cosh: New file.
25543         * modules/erf: New file.
25544         * modules/erfc: New file.
25545         * modules/exp: New file.
25546         * modules/fabs: New file.
25547         * modules/fmod: New file.
25548         * modules/hypot: New file.
25549         * modules/j0: New file.
25550         * modules/j1: New file.
25551         * modules/jn: New file.
25552         * modules/ldexp: New file.
25553         * modules/lgamma: New file.
25554         * modules/log: New file.
25555         * modules/log10: New file.
25556         * modules/log1p: New file.
25557         * modules/logb: New file.
25558         * modules/modf: New file.
25559         * modules/nextafter: New file.
25560         * modules/pow: New file.
25561         * modules/remainder: New file.
25562         * modules/rint: New file.
25563         * modules/sin: New file.
25564         * modules/sinh: New file.
25565         * modules/sqrt: New file.
25566         * modules/tan: New file.
25567         * modules/tanh: New file.
25568         * modules/y0: New file.
25569         * modules/y1: New file.
25570         * modules/yn: New file.
25571         * doc/posix-functions/acos.texi: Mention the 'acos' module.
25572         * doc/posix-functions/asin.texi: Mention the 'asin' module.
25573         * doc/posix-functions/atan.texi: Mention the 'atan' module.
25574         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
25575         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
25576         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
25577         * doc/posix-functions/cos.texi: Mention the 'cos' module.
25578         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
25579         * doc/posix-functions/erf.texi: Mention the 'erf' module.
25580         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
25581         * doc/posix-functions/exp.texi: Mention the 'exp' module.
25582         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
25583         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
25584         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
25585         * doc/posix-functions/j0.texi: Mention the 'j0' module.
25586         * doc/posix-functions/j1.texi: Mention the 'j1' module.
25587         * doc/posix-functions/jn.texi: Mention the 'jn' module.
25588         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
25589         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
25590         * doc/posix-functions/log.texi: Mention the 'log' module.
25591         * doc/posix-functions/log10.texi: Mention the 'log10' module.
25592         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
25593         * doc/posix-functions/logb.texi: Mention the 'logb' module.
25594         * doc/posix-functions/modf.texi: Mention the 'modf' module.
25595         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
25596         * doc/posix-functions/pow.texi: Mention the 'pow' module.
25597         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
25598         * doc/posix-functions/rint.texi: Mention the 'rint' module.
25599         * doc/posix-functions/sin.texi: Mention the 'sin' module.
25600         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
25601         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
25602         * doc/posix-functions/tan.texi: Mention the 'tan' module.
25603         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
25604         * doc/posix-functions/y0.texi: Mention the 'y0' module.
25605         * doc/posix-functions/y1.texi: Mention the 'y1' module.
25606         * doc/posix-functions/yn.texi: Mention the 'yn' module.
25607
25608 2010-01-18  Jim Meyering  <meyering@redhat.com>
25609
25610         ignore-value: relax license to LGPLv2+
25611         * modules/ignore-value (License): Relax to LGPLv2+.
25612
25613         getdate: don't leak when TZ contains two or more '"'s
25614         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
25615         double quote in TZ after the first one.
25616
25617         readtokens: do not leak internal token_lengths buffer
25618         * lib/readtokens.c (readtokens): Free the local, lengths,
25619         when the supplied "token_lengths" parameter is NULL.
25620
25621 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25622
25623         Fix a couple of missing LIBTHREAD link failures on AIX.
25624         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
25625         $(LIBTHREAD).
25626         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
25627
25628         Link test-poll against INET_PTON_LIB.
25629         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
25630         for inet_pton on Solaris 10.
25631
25632 2010-01-17  Bruno Haible  <bruno@clisp.org>
25633
25634         unistdio/*-sprintf: Fix typo in module description.
25635         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
25636         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
25637         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
25638         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
25639         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
25640         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
25641         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
25642         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25643
25644 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25645
25646         gnulib-tool: fix filelist for AIX, HP-UX ksh.
25647         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
25648         variables in shell case patterns, for AIX and HP-UX ksh.
25649
25650         Split large sed scripts, for HP-UX sed.
25651         * modules/stdio: Split sed scripts around 50 sed commands,
25652         to avoid HP-UX limit of 99 commands, in the near future.
25653         * modules/string: Likewise.
25654         * modules/unistd: Likewise.
25655
25656         gnulib-tool: avoid writing in the current directory.
25657         * gnulib-tool (func_emit_lib_Makefile_am)
25658         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
25659         not in the current directory, so concurrent gnulib-tool
25660         instances do not interfere.
25661
25662 2010-01-16  Jim Meyering  <meyering@redhat.com>
25663
25664         doc: update users.txt
25665         * users.txt: Add grep.
25666         (diffutils, gzip): Update URLs.
25667
25668 2010-01-12  Bruno Haible  <bruno@clisp.org>
25669
25670         posix_spawn: Avoid test failure on Cygwin.
25671         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25672         characters.
25673         Reported by Simon Josefsson.
25674
25675 2010-01-12  Bruno Haible  <bruno@clisp.org>
25676
25677         * tests/test-cond.c (main): When skipping the test, show the reason.
25678
25679 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25680
25681         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25682
25683 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25684
25685         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25686         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25687
25688 2010-01-12  Eric Blake  <ebb9@byu.net>
25689
25690         build: guarantee AS_VAR_IF
25691         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25692         (gl_AS_VAR_IF): Move...
25693         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25694         Reported by Simon Josefsson.
25695
25696 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25697
25698         * lib/stdio.in.h: Fix typo.
25699
25700 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25701
25702         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25703         libgpg-error.
25704
25705 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25706
25707         * tests/test-xalloc-die.sh: Use $EXEEXT.
25708
25709 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25710             Bruno Haible  <bruno@clisp.org>
25711
25712         getlogin, getlogin_r: Avoid test failure.
25713         * tests/test-getlogin.c: Include <stdio.h>.
25714         (main): Skip the test when the function fails because stdin is not a
25715         tty.
25716         * tests/test-getlogin_r.c: Include <stdio.h>.
25717         (main): Skip the test when the function fails because stdin is not a
25718         tty.
25719
25720 2010-01-11  Eric Blake  <ebb9@byu.net>
25721
25722         tests: avoid more large file warnings
25723         * tests/test-fflush.c: Avoid warning about ftell use.
25724         * tests/test-fseek.c: Avoid warning about fseek use.
25725
25726 2010-01-10  Bruno Haible  <bruno@clisp.org>
25727
25728         nproc: Work better on Linux when /proc and /sys are not mounted.
25729         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25730         as lower bound when, on glibc/Linux systems,
25731         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25732         Suggested by Pádraig Brady <P@draigbrady.com>.
25733         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25734
25735         nproc: Refactor.
25736         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25737         extracted from num_processors.
25738         (num_processors): Call it.
25739
25740 2010-01-11  Jim Meyering  <meyering@redhat.com>
25741
25742         utimecmp: avoid new warning from upcoming gcc-4.5.0
25743         * lib/utimecmp.c (BILLION): Define using #define rather than an
25744         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25745
25746 2010-01-11  Eric Blake  <ebb9@byu.net>
25747
25748         math: add portability warnings for classification macros
25749         * modules/math (Depends-on): Add warn-on-use.
25750         (Makefile.am): Provide new substitutions.
25751         * m4/math_h.m4 (gl_MATH_H): Require inline.
25752         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25753         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25754         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25755         implement warnings.
25756
25757         unistd: warn on use of environ without module
25758         * modules/unistd (Depends-on): Add warn-on-use.
25759         (Makefile.am): Provide new substitutions.
25760         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25761         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25762
25763         stdio: warn on suspicious uses
25764         * modules/stdio (Depends-on): Add warn-on-use.
25765         (Makefile.am): Provide new substitutions.
25766         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25767         fseeko.
25768         * lib/stdio.in.h (gets): Always warn on use.
25769         (fseek, ftell): Adjust when warnings are issued, and honor
25770         _GL_NO_LARGE_FILES as a way to silence the warning.
25771         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25772         any warning about large file offsets.
25773         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25774         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25775         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25776         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25777         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25778         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25779         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25780         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25781
25782         warn-on-use: new module
25783         * modules/warn-on-use: New file.
25784         * build-aux/warn-on-use.h: Likewise.
25785         * m4/warn-on-use.m4: Likewise.
25786         * MODULES.html.sh (Support for building): Mention it.
25787
25788 2010-01-10  Bruno Haible  <bruno@clisp.org>
25789
25790         Tests for module 'unistr/u32-strdup'.
25791         * modules/unistr/u32-strdup-tests: New file.
25792         * tests/unistr/test-u32-strdup.c: New file.
25793
25794         Tests for module 'unistr/u16-strdup'.
25795         * modules/unistr/u16-strdup-tests: New file.
25796         * tests/unistr/test-u16-strdup.c: New file.
25797
25798         Tests for module 'unistr/u8-strdup'.
25799         * modules/unistr/u8-strdup-tests: New file.
25800         * tests/unistr/test-u8-strdup.c: New file.
25801         * tests/unistr/test-strdup.h: New file.
25802
25803         Tests for module 'unistr/u32-strncmp'.
25804         * modules/unistr/u32-strncmp-tests: New file.
25805         * tests/unistr/test-u32-strncmp.c: New file.
25806
25807         Tests for module 'unistr/u16-strncmp'.
25808         * modules/unistr/u16-strncmp-tests: New file.
25809         * tests/unistr/test-u16-strncmp.c: New file.
25810
25811         Tests for module 'unistr/u8-strncmp'.
25812         * modules/unistr/u8-strncmp-tests: New file.
25813         * tests/unistr/test-u8-strncmp.c: New file.
25814         * tests/unistr/test-strncmp.h: New file.
25815
25816         Tests for module 'unistr/u32-strcoll'.
25817         * modules/unistr/u32-strcoll-tests: New file.
25818         * tests/unistr/test-u32-strcoll.c: New file.
25819
25820         Tests for module 'unistr/u16-strcoll'.
25821         * modules/unistr/u16-strcoll-tests: New file.
25822         * tests/unistr/test-u16-strcoll.c: New file.
25823
25824         Tests for module 'unistr/u8-strcoll'.
25825         * modules/unistr/u8-strcoll-tests: New file.
25826         * tests/unistr/test-u8-strcoll.c: New file.
25827
25828         Tests for module 'unistr/u32-strcmp'.
25829         * modules/unistr/u32-strcmp-tests: New file.
25830         * tests/unistr/test-u32-strcmp.c: New file.
25831         * tests/unistr/test-u32-strcmp.h: New file.
25832
25833         Tests for module 'unistr/u16-strcmp'.
25834         * modules/unistr/u16-strcmp-tests: New file.
25835         * tests/unistr/test-u16-strcmp.c: New file.
25836         * tests/unistr/test-u16-strcmp.h: New file.
25837
25838         Tests for module 'unistr/u8-strcmp'.
25839         * modules/unistr/u8-strcmp-tests: New file.
25840         * tests/unistr/test-u8-strcmp.c: New file.
25841         * tests/unistr/test-u8-strcmp.h: New file.
25842         * tests/unistr/test-strcmp.h: New file.
25843
25844         Tests for module 'unistr/u32-strncat'.
25845         * modules/unistr/u32-strncat-tests: New file.
25846         * tests/unistr/test-u32-strncat.c: New file.
25847
25848         Tests for module 'unistr/u16-strncat'.
25849         * modules/unistr/u16-strncat-tests: New file.
25850         * tests/unistr/test-u16-strncat.c: New file.
25851
25852         Tests for module 'unistr/u8-strncat'.
25853         * modules/unistr/u8-strncat-tests: New file.
25854         * tests/unistr/test-u8-strncat.c: New file.
25855         * tests/unistr/test-strncat.h: New file.
25856
25857         Tests for module 'unistr/u32-strcat'.
25858         * modules/unistr/u32-strcat-tests: New file.
25859         * tests/unistr/test-u32-strcat.c: New file.
25860
25861         Tests for module 'unistr/u16-strcat'.
25862         * modules/unistr/u16-strcat-tests: New file.
25863         * tests/unistr/test-u16-strcat.c: New file.
25864
25865         Tests for module 'unistr/u8-strcat'.
25866         * modules/unistr/u8-strcat-tests: New file.
25867         * tests/unistr/test-u8-strcat.c: New file.
25868         * tests/unistr/test-strcat.h: New file.
25869
25870         Tests for module 'unistr/u32-stpncpy'.
25871         * modules/unistr/u32-stpncpy-tests: New file.
25872         * tests/unistr/test-u32-stpncpy.c: New file.
25873
25874         Tests for module 'unistr/u16-stpncpy'.
25875         * modules/unistr/u16-stpncpy-tests: New file.
25876         * tests/unistr/test-u16-stpncpy.c: New file.
25877
25878         Tests for module 'unistr/u8-stpncpy'.
25879         * modules/unistr/u8-stpncpy-tests: New file.
25880         * tests/unistr/test-u8-stpncpy.c: New file.
25881         * tests/unistr/test-stpncpy.h: New file.
25882
25883         Tests for module 'unistr/u32-strncpy'.
25884         * modules/unistr/u32-strncpy-tests: New file.
25885         * tests/unistr/test-u32-strncpy.c: New file.
25886
25887         Tests for module 'unistr/u16-strncpy'.
25888         * modules/unistr/u16-strncpy-tests: New file.
25889         * tests/unistr/test-u16-strncpy.c: New file.
25890
25891         Tests for module 'unistr/u8-strncpy'.
25892         * modules/unistr/u8-strncpy-tests: New file.
25893         * tests/unistr/test-u8-strncpy.c: New file.
25894         * tests/unistr/test-strncpy.h: New file.
25895
25896         Tests for module 'unistr/u32-stpcpy'.
25897         * modules/unistr/u32-stpcpy-tests: New file.
25898         * tests/unistr/test-u32-stpcpy.c: New file.
25899
25900         Tests for module 'unistr/u16-stpcpy'.
25901         * modules/unistr/u16-stpcpy-tests: New file.
25902         * tests/unistr/test-u16-stpcpy.c: New file.
25903
25904         Tests for module 'unistr/u8-stpcpy'.
25905         * modules/unistr/u8-stpcpy-tests: New file.
25906         * tests/unistr/test-u8-stpcpy.c: New file.
25907         * tests/unistr/test-stpcpy.h: New file.
25908
25909         Tests for module 'unistr/u32-strcpy'.
25910         * modules/unistr/u32-strcpy-tests: New file.
25911         * tests/unistr/test-u32-strcpy.c: New file.
25912
25913         Tests for module 'unistr/u16-strcpy'.
25914         * modules/unistr/u16-strcpy-tests: New file.
25915         * tests/unistr/test-u16-strcpy.c: New file.
25916
25917         Tests for module 'unistr/u8-strcpy'.
25918         * modules/unistr/u8-strcpy-tests: New file.
25919         * tests/unistr/test-u8-strcpy.c: New file.
25920         * tests/unistr/test-strcpy.h: New file.
25921
25922         Tests for module 'unistr/u32-strnlen'.
25923         * modules/unistr/u32-strnlen-tests: New file.
25924         * tests/unistr/test-u32-strnlen.c: New file.
25925
25926         Tests for module 'unistr/u16-strnlen'.
25927         * modules/unistr/u16-strnlen-tests: New file.
25928         * tests/unistr/test-u16-strnlen.c: New file.
25929
25930         Tests for module 'unistr/u8-strnlen'.
25931         * modules/unistr/u8-strnlen-tests: New file.
25932         * tests/unistr/test-u8-strnlen.c: New file.
25933         * tests/unistr/test-strnlen.h: New file.
25934
25935         Tests for module 'unistr/u32-strlen'.
25936         * modules/unistr/u32-strlen-tests: New file.
25937         * tests/unistr/test-u32-strlen.c: New file.
25938
25939         Tests for module 'unistr/u16-strlen'.
25940         * modules/unistr/u16-strlen-tests: New file.
25941         * tests/unistr/test-u16-strlen.c: New file.
25942
25943         Tests for module 'unistr/u8-strlen'.
25944         * modules/unistr/u8-strlen-tests: New file.
25945         * tests/unistr/test-u8-strlen.c: New file.
25946
25947         Tests for module 'unistr/u32-prev'.
25948         * modules/unistr/u32-prev-tests: New file.
25949         * tests/unistr/test-u32-prev.c: New file.
25950
25951         Tests for module 'unistr/u16-prev'.
25952         * modules/unistr/u16-prev-tests: New file.
25953         * tests/unistr/test-u16-prev.c: New file.
25954
25955         Tests for module 'unistr/u8-prev'.
25956         * modules/unistr/u8-prev-tests: New file.
25957         * tests/unistr/test-u8-prev.c: New file.
25958
25959         Tests for module 'unistr/u32-next'.
25960         * modules/unistr/u32-next-tests: New file.
25961         * tests/unistr/test-u32-next.c: New file.
25962
25963         Tests for module 'unistr/u16-next'.
25964         * modules/unistr/u16-next-tests: New file.
25965         * tests/unistr/test-u16-next.c: New file.
25966
25967         Tests for module 'unistr/u8-next'.
25968         * modules/unistr/u8-next-tests: New file.
25969         * tests/unistr/test-u8-next.c: New file.
25970
25971         Tests for module 'unistr/u32-strmbtouc'.
25972         * modules/unistr/u32-strmbtouc-tests: New file.
25973         * tests/unistr/test-u32-strmbtouc.c: New file.
25974
25975         Tests for module 'unistr/u16-strmbtouc'.
25976         * modules/unistr/u16-strmbtouc-tests: New file.
25977         * tests/unistr/test-u16-strmbtouc.c: New file.
25978
25979         Tests for module 'unistr/u8-strmbtouc'.
25980         * modules/unistr/u8-strmbtouc-tests: New file.
25981         * tests/unistr/test-u8-strmbtouc.c: New file.
25982
25983         Tests for module 'unistr/u32-strmblen'.
25984         * modules/unistr/u32-strmblen-tests: New file.
25985         * tests/unistr/test-u32-strmblen.c: New file.
25986
25987         Tests for module 'unistr/u16-strmblen'.
25988         * modules/unistr/u16-strmblen-tests: New file.
25989         * tests/unistr/test-u16-strmblen.c: New file.
25990
25991         Tests for module 'unistr/u8-strmblen'.
25992         * modules/unistr/u8-strmblen-tests: New file.
25993         * tests/unistr/test-u8-strmblen.c: New file.
25994
25995         Tests for module 'unistr/u32-cpy-alloc'.
25996         * modules/unistr/u32-cpy-alloc-tests: New file.
25997         * tests/unistr/test-u32-cpy-alloc.c: New file.
25998
25999         Tests for module 'unistr/u16-cpy-alloc'.
26000         * modules/unistr/u16-cpy-alloc-tests: New file.
26001         * tests/unistr/test-u16-cpy-alloc.c: New file.
26002
26003         Tests for module 'unistr/u8-cpy-alloc'.
26004         * modules/unistr/u8-cpy-alloc-tests: New file.
26005         * tests/unistr/test-u8-cpy-alloc.c: New file.
26006         * tests/unistr/test-cpy-alloc.h: New file.
26007
26008         Tests for module 'unistr/u32-mbsnlen'.
26009         * modules/unistr/u32-mbsnlen-tests: New file.
26010         * tests/unistr/test-u32-mbsnlen.c: New file.
26011
26012         Tests for module 'unistr/u16-mbsnlen'.
26013         * modules/unistr/u16-mbsnlen-tests: New file.
26014         * tests/unistr/test-u16-mbsnlen.c: New file.
26015
26016         Tests for module 'unistr/u8-mbsnlen'.
26017         * modules/unistr/u8-mbsnlen-tests: New file.
26018         * tests/unistr/test-u8-mbsnlen.c: New file.
26019
26020         Tests for module 'unistr/u32-chr'.
26021         * modules/unistr/u32-chr-tests: New file.
26022         * tests/unistr/test-u32-chr.c: New file.
26023
26024         Tests for module 'unistr/u16-chr'.
26025         * modules/unistr/u16-chr-tests: New file.
26026         * tests/unistr/test-u16-chr.c: New file.
26027
26028         Tests for module 'unistr/u8-chr'.
26029         * modules/unistr/u8-chr-tests: New file.
26030         * tests/unistr/test-u8-chr.c: New file.
26031         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
26032
26033         Tests for module 'unistr/u32-cmp2'.
26034         * modules/unistr/u32-cmp2-tests: New file.
26035         * tests/unistr/test-u32-cmp2.c: New file.
26036
26037         Tests for module 'unistr/u16-cmp2'.
26038         * modules/unistr/u16-cmp2-tests: New file.
26039         * tests/unistr/test-u16-cmp2.c: New file.
26040
26041         Tests for module 'unistr/u8-cmp2'.
26042         * modules/unistr/u8-cmp2-tests: New file.
26043         * tests/unistr/test-u8-cmp2.c: New file.
26044         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
26045
26046         Tests for module 'unistr/u32-cmp'.
26047         * modules/unistr/u32-cmp-tests: New file.
26048         * tests/unistr/test-u32-cmp.c: New file.
26049
26050         Tests for module 'unistr/u16-cmp'.
26051         * modules/unistr/u16-cmp-tests: New file.
26052         * tests/unistr/test-u16-cmp.c: New file.
26053
26054         Tests for module 'unistr/u8-cmp'.
26055         * modules/unistr/u8-cmp-tests: New file.
26056         * tests/unistr/test-u8-cmp.c: New file.
26057         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
26058
26059         Tests for module 'unistr/u32-set'.
26060         * modules/unistr/u32-set-tests: New file.
26061         * tests/unistr/test-u32-set.c: New file.
26062
26063         Tests for module 'unistr/u16-set'.
26064         * modules/unistr/u16-set-tests: New file.
26065         * tests/unistr/test-u16-set.c: New file.
26066
26067         Tests for module 'unistr/u8-set'.
26068         * modules/unistr/u8-set-tests: New file.
26069         * tests/unistr/test-u8-set.c: New file.
26070         * tests/unistr/test-set.h: New file.
26071
26072         Tests for module 'unistr/u32-move'.
26073         * modules/unistr/u32-move-tests: New file.
26074         * tests/unistr/test-u32-move.c: New file.
26075
26076         Tests for module 'unistr/u16-move'.
26077         * modules/unistr/u16-move-tests: New file.
26078         * tests/unistr/test-u16-move.c: New file.
26079
26080         Tests for module 'unistr/u8-move'.
26081         * modules/unistr/u8-move-tests: New file.
26082         * tests/unistr/test-u8-move.c: New file.
26083         * tests/unistr/test-move.h: New file.
26084
26085         Tests for module 'unistr/u32-cpy'.
26086         * modules/unistr/u32-cpy-tests: New file.
26087         * tests/unistr/test-u32-cpy.c: New file.
26088
26089         Tests for module 'unistr/u16-cpy'.
26090         * modules/unistr/u16-cpy-tests: New file.
26091         * tests/unistr/test-u16-cpy.c: New file.
26092
26093         Tests for module 'unistr/u8-cpy'.
26094         * modules/unistr/u8-cpy-tests: New file.
26095         * tests/unistr/test-u8-cpy.c: New file.
26096         * tests/unistr/test-cpy.h: New file.
26097
26098 2010-01-09  Bruno Haible  <bruno@clisp.org>
26099
26100         Tests for module 'unistr/u32-uctomb'.
26101         * modules/unistr/u32-uctomb-tests: New file.
26102         * tests/unistr/test-u32-uctomb.c: New file.
26103
26104         Tests for module 'unistr/u16-uctomb'.
26105         * modules/unistr/u16-uctomb-tests: New file.
26106         * tests/unistr/test-u16-uctomb.c: New file.
26107
26108         Tests for module 'unistr/u8-uctomb'.
26109         * modules/unistr/u8-uctomb-tests: New file.
26110         * tests/unistr/test-u8-uctomb.c: New file.
26111
26112         Tests for module 'unistr/u32-mbtoucr'.
26113         * modules/unistr/u32-mbtoucr-tests: New file.
26114         * tests/unistr/test-u32-mbtoucr.c: New file.
26115
26116         Tests for module 'unistr/u16-mbtoucr'.
26117         * modules/unistr/u16-mbtoucr-tests: New file.
26118         * tests/unistr/test-u16-mbtoucr.c: New file.
26119
26120         Tests for module 'unistr/u8-mbtoucr'.
26121         * modules/unistr/u8-mbtoucr-tests: New file.
26122         * tests/unistr/test-u8-mbtoucr.c: New file.
26123
26124         Tests for module 'unistr/u32-mbtouc'.
26125         * modules/unistr/u32-mbtouc-tests: New file.
26126         * tests/unistr/test-u32-mbtouc.c: New file.
26127
26128         Tests for module 'unistr/u16-mbtouc'.
26129         * modules/unistr/u16-mbtouc-tests: New file.
26130         * tests/unistr/test-u16-mbtouc.c: New file.
26131
26132         Tests for module 'unistr/u8-mbtouc'.
26133         * modules/unistr/u8-mbtouc-tests: New file.
26134         * tests/unistr/test-u8-mbtouc.c: New file.
26135
26136         Tests for module 'unistr/u32-mbtouc-unsafe'.
26137         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
26138         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
26139         * tests/unistr/test-u32-mbtouc.h: New file.
26140
26141         Tests for module 'unistr/u16-mbtouc-unsafe'.
26142         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
26143         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
26144         * tests/unistr/test-u16-mbtouc.h: New file.
26145
26146         Tests for module 'unistr/u8-mbtouc-unsafe'.
26147         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
26148         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
26149         * tests/unistr/test-u8-mbtouc.h: New file.
26150
26151         Tests for module 'unistr/u32-mblen'.
26152         * modules/unistr/u32-mblen-tests: New file.
26153         * tests/unistr/test-u32-mblen.c: New file.
26154
26155         Tests for module 'unistr/u16-mblen'.
26156         * modules/unistr/u16-mblen-tests: New file.
26157         * tests/unistr/test-u16-mblen.c: New file.
26158
26159         Tests for module 'unistr/u8-mblen'.
26160         * modules/unistr/u8-mblen-tests: New file.
26161         * tests/unistr/test-u8-mblen.c: New file.
26162
26163         Tests for module 'unistr/u32-to-u16'.
26164         * modules/unistr/u32-to-u16-tests: New file.
26165         * tests/unistr/test-u32-to-u16.c: New file.
26166
26167         Tests for module 'unistr/u32-to-u8'.
26168         * modules/unistr/u32-to-u8-tests: New file.
26169         * tests/unistr/test-u32-to-u8.c: New file.
26170
26171         Tests for module 'unistr/u16-to-u32'.
26172         * modules/unistr/u16-to-u32-tests: New file.
26173         * tests/unistr/test-u16-to-u32.c: New file.
26174
26175         Tests for module 'unistr/u16-to-u8'.
26176         * modules/unistr/u16-to-u8-tests: New file.
26177         * tests/unistr/test-u16-to-u8.c: New file.
26178
26179         Tests for module 'unistr/u8-to-u32'.
26180         * modules/unistr/u8-to-u32-tests: New file.
26181         * tests/unistr/test-u8-to-u32.c: New file.
26182
26183         Tests for module 'unistr/u8-to-u16'.
26184         * modules/unistr/u8-to-u16-tests: New file.
26185         * tests/unistr/test-u8-to-u16.c: New file.
26186
26187         Tests for module 'unistr/u32-check'.
26188         * modules/unistr/u32-check-tests: New file.
26189         * tests/unistr/test-u32-check.c: New file.
26190
26191         Tests for module 'unistr/u16-check'.
26192         * modules/unistr/u16-check-tests: New file.
26193         * tests/unistr/test-u16-check.c: New file.
26194
26195         Tests for module 'unistr/u8-check'.
26196         * modules/unistr/u8-check-tests: New file.
26197         * tests/unistr/test-u8-check.c: New file.
26198
26199         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
26200         (category_equals): New function.
26201         (main): Add more tests.
26202         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
26203
26204         * tests/unictype/test-bidi_byname.c (main): Add more tests.
26205
26206 2010-01-10  Bruno Haible  <bruno@clisp.org>
26207
26208         unistr/u*-strcoll: Try harder to distinguish different strings.
26209         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
26210         compare s1 and s2 to see if they are different.
26211
26212 2010-01-10  Bruno Haible  <bruno@clisp.org>
26213
26214         unistr/u*-stpncpy: Fix the return value.
26215         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
26216         description of the return value consistent with stpncpy in glibc.
26217         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
26218         written non-NUL unit.
26219
26220 2010-01-10  Bruno Haible  <bruno@clisp.org>
26221
26222         unistr/u*-next: Add missing dependencies.
26223         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
26224         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
26225         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
26226
26227 2010-01-10  Bruno Haible  <bruno@clisp.org>
26228
26229         unistr/u8-mbsnlen: Fix return value for incomplete character.
26230         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
26231         u8_mblen.
26232         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
26233         Remove unistr/u8-mblen.
26234         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
26235         u16_mblen.
26236         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
26237         Remove unistr/u16-mblen.
26238
26239 2010-01-10  Bruno Haible  <bruno@clisp.org>
26240
26241         wchar: Fix compilation error when <wchar.h> is used from coreutils.
26242         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
26243         Reported by Brian Gough <bjg@gnu.org> and
26244         Chris Clayton <chris2553@googlemail.com> via
26245         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
26246
26247 2010-01-09  Bruno Haible  <bruno@clisp.org>
26248
26249         unistr/u16-to-u32: Reject invalid input.
26250         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
26251         u16_mbtouc.
26252         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
26253         Remove unistr/u16-mbtouc.
26254
26255         unistr/u16-to-u8: Reject invalid input.
26256         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
26257         u16_mbtouc.
26258         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
26259         Remove unistr/u16-mbtouc.
26260
26261         unistr/u8-to-u32: Reject invalid input.
26262         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
26263         u8_mbtouc.
26264         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
26265         Remove unistr/u8-mbtouc.
26266
26267         unistr/u8-to-u16: Reject invalid input.
26268         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
26269         u8_mbtouc.
26270         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
26271         Remove unistr/u8-mbtouc.
26272
26273 2010-01-09  Bruno Haible  <bruno@clisp.org>
26274
26275         Tests for module 'getlogin'.
26276         * modules/getlogin-tests: New file.
26277         * tests/test-getlogin.c: New file.
26278
26279         New module 'getlogin'.
26280         * lib/unistd.in.h (getlogin): New declaration.
26281         * lib/getlogin.c: New file.
26282         * m4/getlogin.m4: New file.
26283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
26284         HAVE_GETLOGIN.
26285         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
26286         HAVE_GETLOGIN.
26287         * modules/getlogin: New file.
26288         * doc/posix-functions/getlogin.texi: Mention the new module.
26289         Reported by John W. Eaton <jwe@gnu.org>.
26290
26291 2010-01-09  Bruno Haible  <bruno@clisp.org>
26292
26293         getlogin_r: Support for native Windows.
26294         * lib/getlogin_r.c: Include <windows.h>
26295         (getlogin_r): Implement for native Windows.
26296         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
26297         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
26298         via John W. Eaton <jwe@gnu.org>.
26299
26300 2010-01-09  Bruno Haible  <bruno@clisp.org>
26301
26302         getlogin_r: Small fixes.
26303         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
26304         succeeds.
26305         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
26306         before testing whether getlogin_r is declared. No need to set
26307         HAVE_DECL_GETLOGIN_R to 1.
26308         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
26309
26310 2010-01-09  Bruno Haible  <bruno@clisp.org>
26311
26312         * lib/unistd.in.h (getlogin_r): Add comment.
26313
26314 2010-01-09  Bruno Haible  <bruno@clisp.org>
26315
26316         Tests for module 'getlogin_r'.
26317         * modules/getlogin_r-tests: New file.
26318         * tests/test-getlogin_r.c: New file.
26319
26320 2010-01-09  Jim Meyering  <meyering@redhat.com>
26321
26322         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
26323         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
26324         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
26325
26326 2010-01-08  Simon Josefsson  <simon@josefsson.org>
26327
26328         * lib/dup2.c (rpl_dup2): Improve comment.
26329
26330 2010-01-08  Eric Blake  <ebb9@byu.net>
26331
26332         maint.mk: allow packages to add makefile @@ exceptions
26333         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
26334         (sc_makefile_check): Rename...
26335         (sc_makefile_at_at_check): ...to this, and use hook.
26336
26337         dup2: work around mingw bug
26338         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
26339         Reported by Simon Josefsson.
26340
26341 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
26342
26343         glob: Fix C++ compilation.
26344         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
26345         C++.
26346
26347 2010-01-07  Bruno Haible  <bruno@clisp.org>
26348
26349         Fix indentation of wctype.in.h, broken since 2007-01-06.
26350         * lib/wctype.in.h: Fix indentation of preprocessor directives.
26351
26352 2010-01-07  Bruno Haible  <bruno@clisp.org>
26353
26354         mbslen: Avoid collision with system function.
26355         * lib/string.in.h [MirBSD]: Include <wchar.h>.
26356         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
26357         * m4/mbslen.m4: New file.
26358         * modules/mbslen (Files): Add it.
26359         (configure.ac): Invoke gl_MBSLEN.
26360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
26361         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
26362         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
26363         via Ian Beckwith <ianb@erislabs.net>.
26364
26365 2010-01-07  Bruno Haible  <bruno@clisp.org>
26366
26367         dirent: Document the last fix.
26368         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
26369
26370 2010-01-07  Bruno Haible  <bruno@clisp.org>
26371
26372         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
26373         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
26374         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
26375         va_list are defined.
26376         * doc/posix-headers/stdio.texi: Document the bug of missing types.
26377         Reported by Eric Blake.
26378
26379 2010-01-07  Bruno Haible  <bruno@clisp.org>
26380
26381         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
26382         * modules/xlist (Depends-on): Add 'list',
26383         * modules/xoset (Depends-on): Add 'oset'.
26384         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26385
26386 2010-01-07  Bruno Haible  <bruno@clisp.org>
26387
26388         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
26389         * doc/posix-functions/strncasecmp.texi: Likewise.
26390
26391 2010-01-07  Bruno Haible  <bruno@clisp.org>
26392
26393         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
26394
26395 2010-01-07  John W. Eaton  <jwe@octave.org>
26396
26397         wctype: allow C++ use
26398         * lib/wctype.in.h: Add extern "C" block for C++.
26399
26400 2010-01-06  Eric Blake  <ebb9@byu.net>
26401
26402         maint.mk: detect incorrect GFDL usage
26403         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
26404
26405 2010-01-06  Jim Meyering  <meyering@redhat.com>
26406         and Eric Blake  <ebb9@byu.net>
26407
26408         maint.mk: ignore multi-line copyright in NEWS
26409         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26410
26411 2010-01-06  Eric Blake  <ebb9@byu.net>
26412
26413         select: add missing dependency
26414         * modules/select-tests (Depends-on): Move sockets dependency...
26415         * modules/select (Depends-on): ...here.
26416         Reported by Ian Beckwith.
26417
26418         doc: regenerate INSTALL
26419         * doc/INSTALL: Reflect recent autoconf update.
26420         * doc/INSTALL.ISO: Likewise.
26421         * doc/INSTALL.UTF-8: Likewise.
26422
26423         pread: fix compilation on glibc
26424         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
26425         Reported by Ralf Wildenhues.
26426
26427         dirent: fix test failure
26428         * lib/dirent.in.h (includes): Guarantee ino_t.
26429         Reported by Ralf Wildenhues.
26430
26431 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26432
26433         linkat, renameat: avoid bad free
26434         * lib/at-func2.c (at_func2): Fix typo.
26435         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
26436
26437 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26438
26439         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
26440         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
26441         to avoid failure of symlink test later.
26442
26443 2010-01-06  Eric Blake  <ebb9@byu.net>
26444
26445         stdio, unistd: guarantee ssize_t
26446         * lib/unistd.in.h (includes): Ensure that types required by POSIX
26447         2008 are exposed when needed.
26448         * lib/stdio.in.h (includes): Likewise.
26449         Reported by Ralf Wildenhues.
26450
26451 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
26452
26453         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
26454         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
26455         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
26456
26457 2010-01-06  Jim Meyering  <meyering@redhat.com>
26458
26459         readtokens: this module *does* require xalloc.h
26460         It uses only functions that were omitted by the old syntax-check rule.
26461         * lib/readtokens.c: Include "xalloc.h" once again.
26462         * modules/readtokens (Depends-on): Add xalloc.
26463         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
26464
26465 2010-01-05  Eric Blake  <ebb9@byu.net>
26466
26467         maint: support 'make announcement' from a VPATH build
26468         * top/maint.mk (announcement): Look for correct NEWS file.
26469
26470 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
26471
26472         utimens (fdutimens): ignore a negative FD, per contract
26473         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
26474         when we have a valid file descriptor.  Otherwise, using a brand
26475         new glibc (with just-patched futimens that now fails with EBADF)
26476         would cause this function to fail with ENOSYS.
26477         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
26478         See also http://bugzilla.redhat.com/552320.
26479
26480 2010-01-05  Eric Blake  <ebb9@byu.net>
26481
26482         strcase: document what it provides
26483         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
26484         gnulib module.
26485         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
26486         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
26487
26488 2010-01-05  Jim Meyering  <meyering@redhat.com>
26489
26490         maint: remove useless inclusions of "xalloc.h"
26491         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
26492         * lib/readtokens.c: Likewise.
26493         * lib/same.c: Likewise.
26494         * modules/getloadavg (Depends-on): Remove xalloc.
26495         * modules/readtokens: Likewise.
26496         * modules/same: Likewise.
26497
26498         maint.mk: include 4 more function names in alloca.h-checking regexp
26499         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
26500         regexp.  Before, we would give a false-positive (saying alloca.h
26501         is included unnecessarily) when the only uses involved omitted symbols.
26502
26503         xalloc.h: use consistent formatting
26504         * lib/xalloc.h: Move declarations to start in the first column.
26505
26506 2010-01-05  Eric Blake  <ebb9@byu.net>
26507
26508         mkdir: avoid xalloc
26509         * lib/mkdir.c (includes): Drop unused header.
26510         Reported by John W. Eaton.
26511
26512 2010-01-04  Jim Meyering  <meyering@redhat.com>
26513
26514         nl_langinfo: avoid configure-time syntax error
26515         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
26516         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
26517         the empty string.  Don't let that provoke a shell syntax error.
26518
26519         regcomp, regexec, fnmatch: avoid array bounds read error
26520         * lib/regcomp.c (build_equiv_class): From glibc:
26521         Use only the low 24 bits of a findidx return value as an index
26522         into the weights array.  Patch by Ulrich Drepper:
26523         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
26524         * lib/regexec.c (check_node_accept_bytes): Likewise.
26525         * lib/fnmatch_loop.c (FCT): Likewise.
26526
26527         regcomp: skip collseq lookup when there are no rules
26528         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
26529         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
26530
26531         regcomp: recognize ill-formed { } expressions
26532         * lib/regcomp.c (parse_dup_op): From glibc:
26533         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
26534
26535         regcomp: fix typo in comment
26536         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
26537         s/satisfy/satisfies/.
26538
26539         regcomp: sync from glibc: remove dead store
26540         * lib/regcomp.c (duplicate_node_closure): Remove useless
26541         search_duplicated_node call and dead store.
26542
26543         regcomp: sync from glibc; always use nl_langinfo
26544         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
26545         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
26546         * modules/regex (Depends-on): Add nl_langinfo.
26547
26548 2010-01-04  Eric Blake  <ebb9@byu.net>
26549
26550         fdopendir: fix configure test
26551         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
26552
26553 2010-01-01  Bruno Haible  <bruno@clisp.org>
26554
26555         wchar: Remove unused configure check.
26556         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
26557
26558 2010-01-01  Eric Blake  <ebb9@byu.net>
26559
26560         headers: make check of system header explicit
26561         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
26562         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
26563         ourselves.
26564         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26565         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26566         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26567         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
26568         internals.
26569         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
26570         missing.
26571         Suggested by Bruno Haible.
26572
26573 2010-01-01  Jim Meyering  <meyering@redhat.com>
26574
26575         ChangeLog: tweak to eliminate unnecessary copyright line
26576         * ChangeLog: Remove a copyright line that was mistakenly updated
26577         by today's update-copyright run.  Reported by Eric Blake.
26578
26579         test-update-copyright: don't let envvar setting cause test failure
26580         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26581
26582 2010-01-01  Bruno Haible  <bruno@clisp.org>
26583
26584         localename: Avoid gcc warning.
26585         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
26586         function if it is not used.
26587
26588 2010-01-01  Jim Meyering  <meyering@redhat.com>
26589
26590         update nearly all FSF copyright year lists to include 2010
26591         Use the same procedure as for 2009, outlined in
26592         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
26593
26594         version-etc: set COPYRIGHT_YEAR to 2010
26595         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
26596
26597 2009-12-31  Eric Blake  <ebb9@byu.net>
26598
26599         doc: correct availability of cygwin 1.5.x getopt
26600         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
26601         variables.
26602         * doc/posix-functions/opterr.texi (opterr): Likewise.
26603         * doc/posix-functions/optind.texi (optind): Likewise.
26604         * doc/posix-functions/optopt.texi (optopt): Likewise.
26605         * doc/posix-functions/tzname.texi (tzname): Likewise.
26606
26607         openat: update maintainer
26608         * modules/openat (Maintainer): Add myself.
26609
26610         utimens: avoid shadowing warning
26611         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
26612         buffers into one, to avoid shadowing, as well as avoiding a
26613         redundant stat.
26614         Reported by Jim Meyering.
26615
26616         test-dup2: avoid compiler warning
26617         * tests/test-dup2.c (is_inheritable): Only define if used.
26618
26619 2010-01-01  Bruno Haible  <bruno@clisp.org>
26620
26621         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
26622         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
26623         defined, use wctomb instead of wcrtomb.
26624
26625 2010-01-01  Bruno Haible  <bruno@clisp.org>
26626
26627         iconv: Reject native Solaris iconv.
26628         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
26629         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
26630
26631 2009-12-31  Bruno Haible  <bruno@clisp.org>
26632
26633         * tests/test-signal.c (main): Remove test of 'SIG'.
26634
26635 2009-12-31  Bruno Haible  <bruno@clisp.org>
26636
26637         spawn: Fix incomplete fix.
26638         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26639         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26640         warnings for GNULIB_POSIXCHECK again.
26641         Reported by Eric Blake.
26642
26643 2009-12-31  Bruno Haible  <bruno@clisp.org>
26644
26645         Avoid namespace pollution on glibc systems.
26646         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
26647         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
26648         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
26649         glibc systems.
26650
26651 2009-12-31  Bruno Haible  <bruno@clisp.org>
26652
26653         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
26654         (gl_REPLACE_WCHAR_H): Turn into a no-op.
26655         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
26656         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
26657         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
26658         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
26659         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
26660
26661 2009-12-31  Bruno Haible  <bruno@clisp.org>
26662
26663         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26664         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26665         afterwards.
26666
26667 2009-12-31  Bruno Haible  <bruno@clisp.org>
26668
26669         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26670         SYS_UTSNAME_H.
26671
26672 2009-12-31  Bruno Haible  <bruno@clisp.org>
26673
26674         spawn: Fix misapplied patch.
26675         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26676         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26677         warnings for GNULIB_POSIXCHECK.
26678
26679 2009-12-31  Bruno Haible  <bruno@clisp.org>
26680
26681         times: Update after sys_times changed.
26682         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26683         * modules/times (Files): Add it.
26684         (configure.ac): Invoke gl_FUNC_TIMES.
26685
26686 2009-12-31  Bruno Haible  <bruno@clisp.org>
26687
26688         Use AC_C_INLINE where necessary.
26689         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26690         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26691         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26692         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26693         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26694         * m4/mbiter.m4 (gl_MBITER): Likewise.
26695         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26696         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26697         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26698         * modules/u64 (configure.ac): Likewise.
26699
26700 2009-12-31  Bruno Haible  <bruno@clisp.org>
26701
26702         Use AC_C_INLINE instead of module 'inline' where possible.
26703         * modules/inline (Description): Clarify purpose.
26704         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26705         * modules/count-one-bits (Depends-on): Remove inline.
26706         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26707         * modules/openat (Depends-on): Remove inline.
26708         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26709         instead of depending on module 'inline'.
26710         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26711         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26712         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26713         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26714         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26715         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26716         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26717         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26718         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26719         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26720         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26721         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26722         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26723         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26724         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26725         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26726         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26727         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26728         Likewise.
26729         * modules/unictype/property-ascii-hex-digit (Depends-on,
26730         configure.ac): Likewise.
26731         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26732         configure.ac): Likewise.
26733         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26734         configure.ac): Likewise.
26735         * modules/unictype/property-bidi-block-separator (Depends-on,
26736         configure.ac): Likewise.
26737         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26738         configure.ac): Likewise.
26739         * modules/unictype/property-bidi-common-separator (Depends-on,
26740         configure.ac): Likewise.
26741         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26742         Likewise.
26743         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26744         configure.ac): Likewise.
26745         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26746         configure.ac): Likewise.
26747         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26748         configure.ac): Likewise.
26749         * modules/unictype/property-bidi-european-digit (Depends-on,
26750         configure.ac): Likewise.
26751         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26752         configure.ac): Likewise.
26753         * modules/unictype/property-bidi-left-to-right (Depends-on,
26754         configure.ac): Likewise.
26755         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26756         configure.ac): Likewise.
26757         * modules/unictype/property-bidi-other-neutral (Depends-on,
26758         configure.ac): Likewise.
26759         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26760         Likewise.
26761         * modules/unictype/property-bidi-segment-separator (Depends-on,
26762         configure.ac): Likewise.
26763         * modules/unictype/property-bidi-whitespace (Depends-on,
26764         configure.ac): Likewise.
26765         * modules/unictype/property-combining (Depends-on, configure.ac):
26766         Likewise.
26767         * modules/unictype/property-composite (Depends-on, configure.ac):
26768         Likewise.
26769         * modules/unictype/property-currency-symbol (Depends-on,
26770         configure.ac): Likewise.
26771         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26772         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26773         Likewise.
26774         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26775         configure.ac): Likewise.
26776         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26777         Likewise.
26778         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26779         Likewise.
26780         * modules/unictype/property-extender (Depends-on, configure.ac):
26781         Likewise.
26782         * modules/unictype/property-format-control (Depends-on, configure.ac):
26783         Likewise.
26784         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26785         Likewise.
26786         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26787         Likewise.
26788         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26789         Likewise.
26790         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26791         Likewise.
26792         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26793         Likewise.
26794         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26795         Likewise.
26796         * modules/unictype/property-id-start (Depends-on, configure.ac):
26797         Likewise.
26798         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26799         Likewise.
26800         * modules/unictype/property-ids-binary-operator (Depends-on,
26801         configure.ac): Likewise.
26802         * modules/unictype/property-ids-trinary-operator (Depends-on,
26803         configure.ac): Likewise.
26804         * modules/unictype/property-ignorable-control (Depends-on,
26805         configure.ac): Likewise.
26806         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26807         Likewise.
26808         * modules/unictype/property-join-control (Depends-on, configure.ac):
26809         Likewise.
26810         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26811         Likewise.
26812         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26813         Likewise.
26814         * modules/unictype/property-logical-order-exception (Depends-on,
26815         configure.ac): Likewise.
26816         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26817         Likewise.
26818         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26819         * modules/unictype/property-non-break (Depends-on, configure.ac):
26820         Likewise.
26821         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26822         Likewise.
26823         * modules/unictype/property-numeric (Depends-on, configure.ac):
26824         Likewise.
26825         * modules/unictype/property-other-alphabetic (Depends-on,
26826         configure.ac): Likewise.
26827         * modules/unictype/property-other-default-ignorable-code-point
26828         (Depends-on, configure.ac): Likewise.
26829         * modules/unictype/property-other-grapheme-extend (Depends-on,
26830         configure.ac): Likewise.
26831         * modules/unictype/property-other-id-continue (Depends-on,
26832         configure.ac): Likewise.
26833         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26834         Likewise.
26835         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26836         Likewise.
26837         * modules/unictype/property-other-math (Depends-on, configure.ac):
26838         Likewise.
26839         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26840         Likewise.
26841         * modules/unictype/property-paired-punctuation (Depends-on,
26842         configure.ac): Likewise.
26843         * modules/unictype/property-paragraph-separator (Depends-on,
26844         configure.ac): Likewise.
26845         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26846         Likewise.
26847         * modules/unictype/property-pattern-white-space (Depends-on,
26848         configure.ac): Likewise.
26849         * modules/unictype/property-private-use (Depends-on, configure.ac):
26850         Likewise.
26851         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26852         Likewise.
26853         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26854         Likewise.
26855         * modules/unictype/property-radical (Depends-on, configure.ac):
26856         Likewise.
26857         * modules/unictype/property-sentence-terminal (Depends-on,
26858         configure.ac): Likewise.
26859         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26860         Likewise.
26861         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26862         * modules/unictype/property-terminal-punctuation (Depends-on,
26863         configure.ac): Likewise.
26864         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26865         Likewise.
26866         * modules/unictype/property-unassigned-code-value (Depends-on,
26867         configure.ac): Likewise.
26868         * modules/unictype/property-unified-ideograph (Depends-on,
26869         configure.ac): Likewise.
26870         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26871         Likewise.
26872         * modules/unictype/property-variation-selector (Depends-on,
26873         configure.ac): Likewise.
26874         * modules/unictype/property-white-space (Depends-on, configure.ac):
26875         Likewise.
26876         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26877         Likewise.
26878         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26879         Likewise.
26880         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26881         Likewise.
26882         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26883         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26884         Likewise.
26885
26886 2009-12-31  Bruno Haible  <bruno@clisp.org>
26887
26888         Remove unnecessary AC_C_INLINE invocation.
26889         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26890         since 2009-08-21.
26891
26892 2009-12-31  Jim Meyering  <meyering@redhat.com>
26893
26894         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26895         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26896         With this change, we can all remove the gpg_key_ID = ... definition
26897         from our respective cfg.mk files.
26898
26899         maint.mk: create announcement template in ~/, not in /tmp
26900         * top/maint.mk (emit_upload_commands): Adjust.
26901         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26902         Remove temporary file, .ci-msg.
26903
26904 2009-12-31  Eric Blake  <ebb9@byu.net>
26905
26906         link-warning: always build headers with link warnings
26907         * modules/arpa_inet (Makefile.am): Always build replacement
26908         header.
26909         * modules/ctype (Makefile.am): Likewise.
26910         * modules/dirent (Makefile.am): Likewise.
26911         * modules/inttypes (Makefile.am): Likewise.
26912         * modules/langinfo (Makefile.am): Likewise.
26913         * modules/locale (Makefile.am): Likewise.
26914         * modules/spawn (Makefile.am): Likewise.
26915         * modules/sys_file (Makefile.am): Likewise.
26916         * modules/sys_ioctl (Makefile.am): Likewise.
26917         * modules/sys_select (Makefile.am): Likewise.
26918         * modules/sys_socket (Makefile.am): Likewise.
26919         * modules/sys_times (Makefile.am): Likewise.
26920         * modules/sys_utsname (Makefile.am): Likewise.
26921         * modules/sys_wait (Makefile.am): Likewise.
26922         * modules/wchar (Makefile.am): Likewise.
26923         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26924         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26925         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26926         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26927         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26928         Likewise.
26929         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26930         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26931         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26932         Likewise.
26933         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26934         Likewise.
26935         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26936         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26937         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26938         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26939         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26940         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26941         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26942         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26943         (gl_WCHAR_H_DEFAULTS): Likewise.
26944
26945 2009-12-31  Eric Blake  <ebb9@byu.net>
26946
26947         signal, spawn: use link warnings
26948         * lib/signal.in.h (sigset_t): Make unconditional.
26949         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26950         (sigpending, sigprocmask, sigaction): Add link warnings.
26951         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26952         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26953         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26954         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26955         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26956         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26957         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26958         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26959         (posix_spawn_file_actions_destroy)
26960         (posix_spawn_file_actions_addopen)
26961         (posix_spawn_file_actions_addclose)
26962         (posix_spawn_file_actions_adddup2): Likewise.
26963         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26964         * tests/test-signal.c (main): Enhance test.
26965
26966         spawn: improve wrapper support
26967         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26968         (gl_SPAWN_H_DEFAULTS): New defaults.
26969         * modules/spawn (Makefile.am): Substitute them.
26970         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26971         Only declare if missing or broken.
26972
26973         sys_times, sys_utsname: use include_next
26974         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26975         header.
26976         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26977         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26978         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26979         * modules/sys_times (Depends-on): Add include_next.
26980         (Makefile.am): Substitute additional values.
26981         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26982         * lib/sys_times.in.h (includes): Include native header, if
26983         available.
26984         * lib/sys_utsname.in.h (includes): Likewise.
26985         * tests/test-sys_times.c (main): Enhance test.
26986
26987         fdutimensat: revert prior patch
26988         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26989         utimens.h.
26990         Reported by Bruno Haible.
26991
26992 2009-12-30  Eric Blake  <ebb9@byu.net>
26993
26994         sys_wait: drop link-warning dependency
26995         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26996         link-warning efforts.
26997         * lib/sys_wait.in.h: Likewise.
26998
26999         fdutimensat: remove bogus dependency
27000         * modules/fdutimensat (Depends-on): Drop inline.
27001
27002         unistd: fix typo
27003         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
27004
27005 2009-12-30  Bruno Haible  <bruno@clisp.org>
27006
27007         Fix compilation error with Solaris cc.
27008         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
27009         * lib/unicase/u16-is-invariant.c: Likewise.
27010         * lib/unicase/u32-is-invariant.c: Likewise.
27011         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27012
27013 2009-12-30  Bruno Haible  <bruno@clisp.org>
27014
27015         Fix test crash.
27016         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
27017         locales.
27018         Reported by Simon Josefsson <simon@josefsson.org>.
27019
27020 2009-12-30  Bruno Haible  <bruno@clisp.org>
27021
27022         Fix compilation error on most platforms.
27023         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
27024         Reported by Simon Josefsson <simon@josefsson.org>
27025         and Nelson H. F. Beebe <beebe@math.utah.edu>.
27026
27027 2009-12-30  Eric Blake  <ebb9@byu.net>
27028
27029         futimens, utimensat: work around ntfs-3g bug
27030         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
27031         a ctime bug is present, and expand workaround to cover ntfs-3g.
27032         * lib/utimens.c (fdutimens, lutimens): Likewise.
27033         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
27034         (validate_timespec): Adjust return value.
27035         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
27036         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27037         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
27038
27039 2009-12-29  Eric Blake  <ebb9@byu.net>
27040
27041         link-warning: make usage consistent
27042         * modules/ctype (Depends-on): Add link-warning.
27043         (Makefile.am): Update rules accordingly.
27044         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27045         * modules/locale (Depends-on, Makefile.am): Likewise.
27046         * modules/sys_file (Makefile.am): Likewise.
27047         * modules/getopt-posix (Makefile.am): Delete unused link warning
27048         efforts.
27049         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
27050         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
27051         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
27052         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
27053
27054         stdio: remove unused variables
27055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
27056         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
27057         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27058
27059         tests: test more substitute headers
27060         * modules/ctype-tests: New file.
27061         * modules/dirent-tests: Likewise.
27062         * modules/spawn-tests: Likewise.
27063         * modules/sys_file-tests: Likewise.
27064         * modules/sys_ioctl-tests: Likewise.
27065         * modules/sys_wait-tests: Likewise.
27066         * tests/test-ctype.c: Likewise.
27067         * tests/test-dirent.c: Likewise.
27068         * tests/test-spawn.c: Likewise.
27069         * tests/test-sys_file.c: Likewise.
27070         * tests/test-sys_ioctl.c: Likewise.
27071         * tests/test-sys_wait.c: Likewise.
27072         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
27073         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
27074         whether or not flock is in use.
27075
27076         tests: remove License section from module
27077         * modules/arpa_inet-tests: Remove unneeded section.
27078         * modules/byteswap-tests: Likewise.
27079         * modules/ceilf-tests: Likewise.
27080         * modules/ceill-tests: Likewise.
27081         * modules/crypto/des-tests: Likewise.
27082         * modules/crypto/gc-arcfour-tests: Likewise.
27083         * modules/crypto/gc-arctwo-tests: Likewise.
27084         * modules/crypto/gc-des-tests: Likewise.
27085         * modules/crypto/gc-hmac-md5-tests: Likewise.
27086         * modules/crypto/gc-hmac-sha1-tests: Likewise.
27087         * modules/crypto/gc-md2-tests: Likewise.
27088         * modules/crypto/gc-md4-tests: Likewise.
27089         * modules/crypto/gc-md5-tests: Likewise.
27090         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
27091         * modules/crypto/gc-rijndael-tests: Likewise.
27092         * modules/crypto/gc-sha1-tests: Likewise.
27093         * modules/crypto/gc-tests: Likewise.
27094         * modules/crypto/md2-tests: Likewise.
27095         * modules/crypto/md4-tests: Likewise.
27096         * modules/fcntl-h-tests: Likewise.
27097         * modules/floorf-tests: Likewise.
27098         * modules/floorl-tests: Likewise.
27099         * modules/frexp-nolibm-tests: Likewise.
27100         * modules/frexp-tests: Likewise.
27101         * modules/frexpl-nolibm-tests: Likewise.
27102         * modules/frexpl-tests: Likewise.
27103         * modules/getaddrinfo-tests: Likewise.
27104         * modules/inttypes-tests: Likewise.
27105         * modules/isfinite-tests: Likewise.
27106         * modules/isinf-tests: Likewise.
27107         * modules/ldexpl-tests: Likewise.
27108         * modules/locale-tests: Likewise.
27109         * modules/math-tests: Likewise.
27110         * modules/netdb-tests: Likewise.
27111         * modules/netinet_in-tests: Likewise.
27112         * modules/printf-frexp-tests: Likewise.
27113         * modules/printf-frexpl-tests: Likewise.
27114         * modules/priv-set-tests: Likewise.
27115         * modules/random_r-tests: Likewise.
27116         * modules/round-tests: Likewise.
27117         * modules/roundf-tests: Likewise.
27118         * modules/roundl-tests: Likewise.
27119         * modules/search-tests: Likewise.
27120         * modules/select-tests: Likewise.
27121         * modules/signal-tests: Likewise.
27122         * modules/stdbool-tests: Likewise.
27123         * modules/stddef-tests: Likewise.
27124         * modules/stdint-tests: Likewise.
27125         * modules/stdio-tests: Likewise.
27126         * modules/stdlib-tests: Likewise.
27127         * modules/string-tests: Likewise.
27128         * modules/strings-tests: Likewise.
27129         * modules/sys_select-tests: Likewise.
27130         * modules/sys_socket-tests: Likewise.
27131         * modules/sys_stat-tests: Likewise.
27132         * modules/sys_time-tests: Likewise.
27133         * modules/sys_utsname-tests: Likewise.
27134         * modules/sysexits-tests: Likewise.
27135         * modules/time-tests: Likewise.
27136         * modules/trunc-tests: Likewise.
27137         * modules/truncf-tests: Likewise.
27138         * modules/truncl-tests: Likewise.
27139         * modules/tsearch-tests: Likewise.
27140         * modules/unistd-tests: Likewise.
27141         * modules/wchar-tests: Likewise.
27142         * modules/wctype-tests: Likewise.
27143
27144         tests: fix license on several tests
27145         * tests/test-des.c: Update to GPLv3+.
27146         * tests/test-flock.c: Likewise.
27147         * tests/test-fsync.c: Likewise.
27148         * tests/test-futimens.h: Likewise.
27149         * tests/test-gc-arcfour.c: Likewise.
27150         * tests/test-gc-arctwo.c: Likewise.
27151         * tests/test-gc-des.c: Likewise.
27152         * tests/test-gc-hmac-md5.c: Likewise.
27153         * tests/test-gc-hmac-sha1.c: Likewise.
27154         * tests/test-gc-md2.c: Likewise.
27155         * tests/test-gc-md4.c: Likewise.
27156         * tests/test-gc-md5.c: Likewise.
27157         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27158         * tests/test-gc-rijndael.c: Likewise.
27159         * tests/test-gc-sha1.c: Likewise.
27160         * tests/test-gc.c: Likewise.
27161         * tests/test-getcwd.c: Likewise.
27162         * tests/test-link.c: Likewise.
27163         * tests/test-link.h: Likewise.
27164         * tests/test-lutimens.h: Likewise.
27165         * tests/test-md2.c: Likewise.
27166         * tests/test-md4.c: Likewise.
27167         * tests/test-mkdir.h: Likewise.
27168         * tests/test-rename.c: Likewise.
27169         * tests/test-rename.h: Likewise.
27170         * tests/test-safe-alloc.c: Likewise.
27171         * tests/test-utimens-common.h: Likewise.
27172         * tests/test-utimens.h: Likewise.
27173
27174         maint: sync license texts
27175         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
27176         * doc/gpl-3.0.texi: Revert copyright year update.
27177         * doc/lgpl-3.0.texi: Likewise.
27178
27179 2009-12-29  Jim Meyering  <meyering@redhat.com>
27180
27181         update nearly all FSF copyright year lists to include 2009
27182         The files named by the following are exempted:
27183             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
27184               test -f "$dst" && { echo "$dst"; continue; }
27185               test -d "$dst" || continue
27186               echo "$dst"/$(basename "$src")
27187             done > exempt
27188             git ls-files tests/unictype >> exempt
27189         In the remaining files, convert to all-interval notation if
27190         - there is already at least one year interval like 2000-2003
27191         - the file is maintained by me
27192         - the file is in lib/uni*/, where that style already prevails
27193         Otherwise, use update-copyright's default.
27194
27195 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27196         and Eric Blake  <ebb9@byu.net>
27197
27198         tests: don't require debug system() to pass
27199         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
27200         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27201         * tests/test-unlink.h (test_unlink_func): Likewise.
27202         * tests/test-fstatat.c (main): ...into callers.
27203         * tests/test-lstat.c (main): Likewise.
27204         * tests/test-rmdir.c (main): Likewise.
27205         * tests/test-unlink.c (main): Likewise.
27206         * tests/test-unlinkat.c (main): Likewise.
27207         * tests/test-areadlink-with-size.c (main): Don't require a
27208         debug-only system call to pass, aiding cross-testing to mingw.
27209         * tests/test-areadlink.c (main): Likewise.
27210         * tests/test-areadlinkat-with-size.c (main): Likewise.
27211         * tests/test-areadlinkat.c (main): Likewise.
27212         * tests/test-canonicalize-lgpl.c (main): Likewise.
27213         * tests/test-canonicalize.c (main): Likewise.
27214         * tests/test-chown.c (main): Likewise.
27215         * tests/test-fchownat.c (main): Likewise.
27216         * tests/test-lchown.c (main): Likewise.
27217         * tests/test-fdutimensat.c (main): Likewise.
27218         * tests/test-futimens.c (main): Likewise.
27219         * tests/test-link.c (main): Likewise.
27220         * tests/test-linkat.c (main): Likewise.
27221         * tests/test-mkdir.c (main): Likewise.
27222         * tests/test-mkdirat.c (main): Likewise.
27223         * tests/test-mkfifo.c (main): Likewise.
27224         * tests/test-mkfifoat.c (main): Likewise.
27225         * tests/test-mknod.c (main): Likewise.
27226         * tests/test-readlink.c (main): Likewise.
27227         * tests/test-remove.c (main): Likewise.
27228         * tests/test-rename.c (main): Likewise.
27229         * tests/test-renameat.c (main): Likewise.
27230         * tests/test-symlink.c (main): Likewise.
27231         * tests/test-symlinkat.c (main): Likewise.
27232         * tests/test-utimens.c (main): Likewise.
27233         * tests/test-utimensat.c (main): Likewise.
27234
27235 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27236
27237         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
27238         on $(UNUSED_PARAMETER_H) to avoid build failure.
27239
27240 2009-12-28  Jim Meyering  <meyering@redhat.com>
27241
27242         update-copyright: you may specify a max. line length other than 72
27243         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27244
27245         maint: use consistent FSF copyright line syntax
27246         * lib/posixtm.c: Add missing comma in FSF copyright line.
27247         * lib/posixtm.h: Likewise.
27248         * lib/getugroups.c: Add missing ", Inc.".
27249
27250         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
27251         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
27252         FSF copyright line.  Remove trailing blanks.
27253
27254 2009-12-28  Eric Blake  <ebb9@byu.net>
27255
27256         test-dup2: reduce dependencies
27257         * modules/cloexec (Configure.ac): Set witness.
27258         * modules/dup2-tests (Depends-on): Drop cloexec.
27259         * tests/test-dup2.c (main): Skip portion of test if cloexec module
27260         not present.
27261         Suggested by Bruno Haible.
27262
27263 2009-12-26  Bruno Haible  <bruno@clisp.org>
27264
27265         Remove an unneeded dependency.
27266         * modules/fseterr (Depends-on): Remove dup2.
27267
27268 2009-12-26  Eric Blake  <ebb9@byu.net>
27269
27270         tests: use macros.h in more places
27271         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
27272         (ASSERT_STREAM): Provide default of stderr.
27273         * tests/test-dirent-safer.c: Include macros.h, using alternate
27274         stream for assertions.
27275         * tests/test-dup-safer.c: Likewise.
27276         * tests/test-freopen-safer.c: Likewise.
27277         * tests/test-getopt.c: Likewise.
27278         * tests/test-openat-safer.c: Likewise.
27279         * tests/test-pipe.c: Likewise.
27280         * tests/test-popen-safer.c: Likewise.
27281         * modules/dirent-safer-tests (Files): Include macros.h.
27282         * modules/unistd-safer-tests (Files): Likewise.
27283         * modules/freopen-safer-tests (Files): Likewise.
27284         * modules/getopt-posix-tests (Files): Likewise.
27285         * modules/openat-safer-tests (Files): Likewise.
27286         * modules/pipe-tests (Files): Likewise.
27287
27288 2009-12-26  Bruno Haible  <bruno@clisp.org>
27289
27290         javacomp: Portability fix.
27291         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
27292         that it also works on Solaris.
27293
27294 2009-12-26  Bruno Haible  <bruno@clisp.org>
27295
27296         localename: Fix storage allocation of gl_locale_name_thread's result.
27297         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
27298         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
27299         all platforms that have 'uselocale'.
27300         (gl_locale_name_thread_unsafe): New function, extracted from
27301         gl_locale_name_thread.
27302         (gl_locale_name_thread): Call struniq on all platforms that have
27303         'uselocale'.
27304         * tests/test-localename.c (test_locale_name_thread): Check that the
27305         resulting strings are permanently allocated.
27306         * modules/localename-tests (Depends-on): Add strdup.
27307
27308 2009-12-26  Bruno Haible  <bruno@clisp.org>
27309
27310         * tests/test-localename.c (categories): Fill in the strings.
27311
27312 2009-12-26  Jim Meyering  <meyering@redhat.com>
27313
27314         isdir: complete the removal of m4/isdir.m4
27315         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
27316
27317         isdir: clean up, since at least grep still uses it
27318         * lib/isdir.c: Include "isdir.h".
27319         (S_ISDIR): Remove now-unneeded definition.
27320         * modules/isdir (Files): Add lib/isdir.h.
27321         * lib/isdir.h: New file, with declaration.
27322         * m4/isdir.m4: Remove file -- unneeded.
27323
27324 2009-12-25  Bruno Haible  <bruno@clisp.org>
27325
27326         selinux-h: Make generated .h files standalone.
27327         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
27328         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
27329         * lib/se-selinux.in.h: Likewise.
27330         * modules/selinux-h (Depends-on): Add unused-parameter.
27331         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
27332         selinux/selinux.h and selinux/context.h.
27333         Suggested by Eric Blake.
27334
27335 2009-12-25  Bruno Haible  <bruno@clisp.org>
27336
27337         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
27338         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
27339         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
27340         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
27341         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
27342
27343 2009-12-24  Bruno Haible  <bruno@clisp.org>
27344
27345         openat: Fix warning.
27346         * lib/openat-proc.c: Include <unistd.h>.
27347
27348 2009-12-24  Bruno Haible  <bruno@clisp.org>
27349
27350         New module 'unused-parameter'.
27351         * build-aux/unused-parameter.h: New file, extracted from earlier
27352         gnulib-common.m4.
27353         * modules/unused-parameter: New file.
27354         * lib/unistr.h: Include unused-parameter.h.
27355         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
27356         _GL_UNUSED.
27357         * modules/unistr/base (Depends-on): Add unused-parameter.
27358
27359 2009-12-24  Bruno Haible  <bruno@clisp.org>
27360
27361         Add missing dependencies to 'extensions' module.
27362         * m4/extensions.m4: Add comment.
27363         * modules/accept4 (Depends-on): Add extensions.
27364         * modules/dup3 (Depends-on): Likewise.
27365         * modules/fcntl (Depends-on): Likewise.
27366         * modules/futimens (Depends-on): Likewise.
27367         * modules/mknod (Depends-on): Likewise.
27368         * modules/pipe2 (Depends-on): Likewise.
27369         * modules/stat-time (Depends-on): Likewise.
27370         * modules/strcasestr-simple (Depends-on): Likewise.
27371         * modules/strsignal (Depends-on): Likewise.
27372         * modules/utimensat (Depends-on): Likewise.
27373         * modules/localcharset (Depends-on): Likewise. Needed because of
27374         gl_FCNTL_O_FLAGS.
27375         * modules/wcrtomb (Depends-on): Likewise. Needed because of
27376         AC_TYPE_MBSTATE_T.
27377         * modules/wcsnrtombs (Depends-on): Likewise.
27378         * modules/wcsrtombs (Depends-on): Likewise.
27379
27380 2009-12-24  Bruno Haible  <bruno@clisp.org>
27381
27382         binary-io: Avoid gcc warning due to SET_BINARY.
27383         * lib/binary-io.h (SET_BINARY): Cast the result to void.
27384         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
27385
27386 2009-12-24  Bruno Haible  <bruno@clisp.org>
27387
27388         Avoid future namespace pollution on glibc systems.
27389         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
27390         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
27391         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
27392         glibc systems.
27393
27394 2009-12-24  Bruno Haible  <bruno@clisp.org>
27395
27396         Refactor common macros used in tests.
27397         * tests/macros.h: New file.
27398         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
27399         and/or <stdlib.h>, if appropriate.
27400         (ASSERT, SIZEOF): Remove macros.
27401         * tests/test-areadlink-with-size.c: Likewise.
27402         * tests/test-areadlinkat.c: Likewise.
27403         * tests/test-areadlinkat-with-size.c: Likewise.
27404         * tests/test-argmatch.c: Likewise.
27405         * tests/test-argv-iter.c: Likewise.
27406         * tests/test-array-mergesort.c: Likewise.
27407         * tests/test-array_list.c: Likewise.
27408         * tests/test-array_oset.c: Likewise.
27409         * tests/test-avltree_list.c: Likewise.
27410         * tests/test-avltree_oset.c: Likewise.
27411         * tests/test-avltreehash_list.c: Likewise.
27412         * tests/test-base64.c: Likewise.
27413         * tests/test-binary-io.c: Likewise.
27414         * tests/test-bitrotate.c: Likewise.
27415         * tests/test-btowc.c: Likewise.
27416         * tests/test-byteswap.c: Likewise.
27417         * tests/test-c-ctype.c: Likewise.
27418         * tests/test-c-stack.c: Likewise.
27419         * tests/test-c-strcasecmp.c: Likewise.
27420         * tests/test-c-strcasestr.c: Likewise.
27421         * tests/test-c-strncasecmp.c: Likewise.
27422         * tests/test-c-strstr.c: Likewise.
27423         * tests/test-canonicalize-lgpl.c: Likewise.
27424         * tests/test-canonicalize.c: Likewise.
27425         * tests/test-carray_list.c: Likewise.
27426         * tests/test-ceilf1.c: Likewise.
27427         * tests/test-ceilf2.c: Likewise.
27428         * tests/test-ceill.c: Likewise.
27429         * tests/test-chown.c: Likewise.
27430         * tests/test-cloexec.c: Likewise.
27431         * tests/test-copy-acl.c: Likewise.
27432         * tests/test-copy-file.c: Likewise.
27433         * tests/test-count-one-bits.c: Likewise.
27434         * tests/test-dprintf-posix.c: Likewise.
27435         * tests/test-dup2.c: Likewise.
27436         * tests/test-dup3.c: Likewise.
27437         * tests/test-duplocale.c: Likewise.
27438         * tests/test-fbufmode.c: Likewise.
27439         * tests/test-fchdir.c: Likewise.
27440         * tests/test-fchownat.c: Likewise.
27441         * tests/test-fcntl-safer.c: Likewise.
27442         * tests/test-fcntl.c: Likewise.
27443         * tests/test-fdopendir.c: Likewise.
27444         * tests/test-fdutimensat.c: Likewise.
27445         * tests/test-fflush2.c: Likewise.
27446         * tests/test-file-has-acl.c: Likewise.
27447         * tests/test-filevercmp.c: Likewise.
27448         * tests/test-flock.c: Likewise.
27449         * tests/test-floorf1.c: Likewise.
27450         * tests/test-floorf2.c: Likewise.
27451         * tests/test-floorl.c: Likewise.
27452         * tests/test-fnmatch.c: Likewise.
27453         * tests/test-fopen.h: Likewise.
27454         * tests/test-fpending.c: Likewise.
27455         * tests/test-fprintf-posix.c: Likewise.
27456         * tests/test-fpurge.c: Likewise.
27457         * tests/test-freadable.c: Likewise.
27458         * tests/test-freadahead.c: Likewise.
27459         * tests/test-freading.c: Likewise.
27460         * tests/test-freadptr.c: Likewise.
27461         * tests/test-freadptr2.c: Likewise.
27462         * tests/test-freadseek.c: Likewise.
27463         * tests/test-freopen.c: Likewise.
27464         * tests/test-frexp.c: Likewise.
27465         * tests/test-frexpl.c: Likewise.
27466         * tests/test-fseek.c: Likewise.
27467         * tests/test-fseeko.c: Likewise.
27468         * tests/test-fstatat.c: Likewise.
27469         * tests/test-fstrcmp.c: Likewise.
27470         * tests/test-fsync.c: Likewise.
27471         * tests/test-ftell.c: Likewise.
27472         * tests/test-ftello.c: Likewise.
27473         * tests/test-func.c: Likewise.
27474         * tests/test-futimens.c: Likewise.
27475         * tests/test-fwritable.c: Likewise.
27476         * tests/test-fwriting.c: Likewise.
27477         * tests/test-getcwd.c: Likewise.
27478         * tests/test-getdate.c: Likewise.
27479         * tests/test-getdelim.c: Likewise.
27480         * tests/test-getdtablesize.c: Likewise.
27481         * tests/test-getgroups.c: Likewise.
27482         * tests/test-getline.c: Likewise.
27483         * tests/test-getndelim2.c: Likewise.
27484         * tests/test-glob.c: Likewise.
27485         * tests/test-hash.c: Likewise.
27486         * tests/test-i-ring.c: Likewise.
27487         * tests/test-iconv-utf.c: Likewise.
27488         * tests/test-iconv.c: Likewise.
27489         * tests/test-idpriv-drop.c: Likewise.
27490         * tests/test-idpriv-droptemp.c: Likewise.
27491         * tests/test-inet_ntop.c: Likewise.
27492         * tests/test-inet_pton.c: Likewise.
27493         * tests/test-isblank.c: Likewise.
27494         * tests/test-isfinite.c: Likewise.
27495         * tests/test-isinf.c: Likewise.
27496         * tests/test-isnan.c: Likewise.
27497         * tests/test-isnand.h: Likewise.
27498         * tests/test-isnanf.h: Likewise.
27499         * tests/test-isnanl.h: Likewise.
27500         * tests/test-lchown.c: Likewise.
27501         * tests/test-ldexpl.c: Likewise.
27502         * tests/test-link.c: Likewise.
27503         * tests/test-linkat.c: Likewise.
27504         * tests/test-linked_list.c: Likewise.
27505         * tests/test-linkedhash_list.c: Likewise.
27506         * tests/test-localename.c: Likewise.
27507         * tests/test-lseek.c: Likewise.
27508         * tests/test-lstat.c: Likewise.
27509         * tests/test-mbmemcasecmp.c: Likewise.
27510         * tests/test-mbmemcasecoll.c: Likewise.
27511         * tests/test-mbrtowc.c: Likewise.
27512         * tests/test-mbscasecmp.c: Likewise.
27513         * tests/test-mbscasestr1.c: Likewise.
27514         * tests/test-mbscasestr2.c: Likewise.
27515         * tests/test-mbscasestr3.c: Likewise.
27516         * tests/test-mbscasestr4.c: Likewise.
27517         * tests/test-mbschr.c: Likewise.
27518         * tests/test-mbscspn.c: Likewise.
27519         * tests/test-mbsinit.c: Likewise.
27520         * tests/test-mbsncasecmp.c: Likewise.
27521         * tests/test-mbsnrtowcs.c: Likewise.
27522         * tests/test-mbspbrk.c: Likewise.
27523         * tests/test-mbspcasecmp.c: Likewise.
27524         * tests/test-mbsrchr.c: Likewise.
27525         * tests/test-mbsrtowcs.c: Likewise.
27526         * tests/test-mbsspn.c: Likewise.
27527         * tests/test-mbsstr1.c: Likewise.
27528         * tests/test-mbsstr2.c: Likewise.
27529         * tests/test-mbsstr3.c: Likewise.
27530         * tests/test-memchr.c: Likewise.
27531         * tests/test-memchr2.c: Likewise.
27532         * tests/test-memcmp.c: Likewise.
27533         * tests/test-memmem.c: Likewise.
27534         * tests/test-memrchr.c: Likewise.
27535         * tests/test-mkdir.c: Likewise.
27536         * tests/test-mkdirat.c: Likewise.
27537         * tests/test-mkfifo.c: Likewise.
27538         * tests/test-mkfifoat.c: Likewise.
27539         * tests/test-mknod.c: Likewise.
27540         * tests/test-nanosleep.c: Likewise.
27541         * tests/test-nl_langinfo.c: Likewise.
27542         * tests/test-obstack-printf.c: Likewise.
27543         * tests/test-open.c: Likewise.
27544         * tests/test-openat.c: Likewise.
27545         * tests/test-pipe-filter-gi1.c: Likewise.
27546         * tests/test-pipe-filter-gi2-main.c: Likewise.
27547         * tests/test-pipe-filter-ii1.c: Likewise.
27548         * tests/test-pipe-filter-ii2-main.c: Likewise.
27549         * tests/test-pipe2.c: Likewise.
27550         * tests/test-popen.h: Likewise.
27551         * tests/test-posixtm.c: Likewise.
27552         * tests/test-pread.c: Likewise.
27553         * tests/test-printf-frexp.c: Likewise.
27554         * tests/test-printf-frexpl.c: Likewise.
27555         * tests/test-printf-posix.c: Likewise.
27556         * tests/test-priv-set.c: Likewise.
27557         * tests/test-quotearg.c: Likewise.
27558         * tests/test-random_r.c: Likewise.
27559         * tests/test-rawmemchr.c: Likewise.
27560         * tests/test-rbtree_list.c: Likewise.
27561         * tests/test-rbtree_oset.c: Likewise.
27562         * tests/test-rbtreehash_list.c: Likewise.
27563         * tests/test-readlink.c: Likewise.
27564         * tests/test-remove.c: Likewise.
27565         * tests/test-rename.c: Likewise.
27566         * tests/test-renameat.c: Likewise.
27567         * tests/test-rmdir.c: Likewise.
27568         * tests/test-round1.c: Likewise.
27569         * tests/test-roundf1.c: Likewise.
27570         * tests/test-roundl.c: Likewise.
27571         * tests/test-safe-alloc.c: Likewise.
27572         * tests/test-sameacls.c: Likewise.
27573         * tests/test-set-mode-acl.c: Likewise.
27574         * tests/test-setenv.c: Likewise.
27575         * tests/test-sigaction.c: Likewise.
27576         * tests/test-signbit.c: Likewise.
27577         * tests/test-sleep.c: Likewise.
27578         * tests/test-snprintf-posix.c: Likewise.
27579         * tests/test-snprintf.c: Likewise.
27580         * tests/test-sprintf-posix.c: Likewise.
27581         * tests/test-stat-time.c: Likewise.
27582         * tests/test-stat.c: Likewise.
27583         * tests/test-strcasestr.c: Likewise.
27584         * tests/test-strchrnul.c: Likewise.
27585         * tests/test-strerror.c: Likewise.
27586         * tests/test-striconv.c: Likewise.
27587         * tests/test-striconveh.c: Likewise.
27588         * tests/test-striconveha.c: Likewise.
27589         * tests/test-strsignal.c: Likewise.
27590         * tests/test-strstr.c: Likewise.
27591         * tests/test-strtod.c: Likewise.
27592         * tests/test-strverscmp.c: Likewise.
27593         * tests/test-symlink.c: Likewise.
27594         * tests/test-symlinkat.c: Likewise.
27595         * tests/test-trunc1.c: Likewise.
27596         * tests/test-trunc2.c: Likewise.
27597         * tests/test-truncf1.c: Likewise.
27598         * tests/test-truncf2.c: Likewise.
27599         * tests/test-truncl.c: Likewise.
27600         * tests/test-uname.c: Likewise.
27601         * tests/test-unlink.c: Likewise.
27602         * tests/test-unlinkat.c: Likewise.
27603         * tests/test-unsetenv.c: Likewise.
27604         * tests/test-usleep.c: Likewise.
27605         * tests/test-utimens.c: Likewise.
27606         * tests/test-utimensat.c: Likewise.
27607         * tests/test-vasnprintf-posix.c: Likewise.
27608         * tests/test-vasnprintf-posix2.c: Likewise.
27609         * tests/test-vasnprintf.c: Likewise.
27610         * tests/test-vasprintf-posix.c: Likewise.
27611         * tests/test-vasprintf.c: Likewise.
27612         * tests/test-vdprintf-posix.c: Likewise.
27613         * tests/test-vfprintf-posix.c: Likewise.
27614         * tests/test-vprintf-posix.c: Likewise.
27615         * tests/test-vsnprintf-posix.c: Likewise.
27616         * tests/test-vsnprintf.c: Likewise.
27617         * tests/test-vsprintf-posix.c: Likewise.
27618         * tests/test-wcrtomb.c: Likewise.
27619         * tests/test-wcsnrtombs.c: Likewise.
27620         * tests/test-wcsrtombs.c: Likewise.
27621         * tests/test-wctype.c: Likewise.
27622         * tests/test-wcwidth.c: Likewise.
27623         * tests/test-xfprintf-posix.c: Likewise.
27624         * tests/test-xmemdup0.c: Likewise.
27625         * tests/test-xprintf-posix.c: Likewise.
27626         * tests/test-xvasprintf.c: Likewise.
27627         * tests/unicase/test-locale-language.c: Likewise.
27628         * tests/unicase/test-mapping-part1.h: Likewise.
27629         * tests/unicase/test-predicate-part1.h: Likewise.
27630         * tests/unicase/test-u8-casecmp.c: Likewise.
27631         * tests/unicase/test-u8-casecoll.c: Likewise.
27632         * tests/unicase/test-u8-casefold.c: Likewise.
27633         * tests/unicase/test-u8-is-cased.c: Likewise.
27634         * tests/unicase/test-u8-is-casefolded.c: Likewise.
27635         * tests/unicase/test-u8-is-lowercase.c: Likewise.
27636         * tests/unicase/test-u8-is-titlecase.c: Likewise.
27637         * tests/unicase/test-u8-is-uppercase.c: Likewise.
27638         * tests/unicase/test-u8-tolower.c: Likewise.
27639         * tests/unicase/test-u8-totitle.c: Likewise.
27640         * tests/unicase/test-u8-toupper.c: Likewise.
27641         * tests/unicase/test-u16-casecmp.c: Likewise.
27642         * tests/unicase/test-u16-casecoll.c: Likewise.
27643         * tests/unicase/test-u16-casefold.c: Likewise.
27644         * tests/unicase/test-u16-is-cased.c: Likewise.
27645         * tests/unicase/test-u16-is-casefolded.c: Likewise.
27646         * tests/unicase/test-u16-is-lowercase.c: Likewise.
27647         * tests/unicase/test-u16-is-titlecase.c: Likewise.
27648         * tests/unicase/test-u16-is-uppercase.c: Likewise.
27649         * tests/unicase/test-u16-tolower.c: Likewise.
27650         * tests/unicase/test-u16-totitle.c: Likewise.
27651         * tests/unicase/test-u16-toupper.c: Likewise.
27652         * tests/unicase/test-u32-casecmp.c: Likewise.
27653         * tests/unicase/test-u32-casecoll.c: Likewise.
27654         * tests/unicase/test-u32-casefold.c: Likewise.
27655         * tests/unicase/test-u32-is-cased.c: Likewise.
27656         * tests/unicase/test-u32-is-casefolded.c: Likewise.
27657         * tests/unicase/test-u32-is-lowercase.c: Likewise.
27658         * tests/unicase/test-u32-is-titlecase.c: Likewise.
27659         * tests/unicase/test-u32-is-uppercase.c: Likewise.
27660         * tests/unicase/test-u32-tolower.c: Likewise.
27661         * tests/unicase/test-u32-totitle.c: Likewise.
27662         * tests/unicase/test-u32-toupper.c: Likewise.
27663         * tests/unicase/test-ulc-casecmp.c: Likewise.
27664         * tests/unicase/test-ulc-casecoll.c: Likewise.
27665         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27666         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27667         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27668         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27669         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27670         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27671         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27672         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27673         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27674         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27675         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27676         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27677         * tests/unictype/test-bidi_byname.c: Likewise.
27678         * tests/unictype/test-bidi_name.c: Likewise.
27679         * tests/unictype/test-bidi_of.c: Likewise.
27680         * tests/unictype/test-bidi_test.c: Likewise.
27681         * tests/unictype/test-block_list.c: Likewise.
27682         * tests/unictype/test-block_of.c: Likewise.
27683         * tests/unictype/test-block_test.c: Likewise.
27684         * tests/unictype/test-categ_and.c: Likewise.
27685         * tests/unictype/test-categ_and_not.c: Likewise.
27686         * tests/unictype/test-categ_byname.c: Likewise.
27687         * tests/unictype/test-categ_name.c: Likewise.
27688         * tests/unictype/test-categ_none.c: Likewise.
27689         * tests/unictype/test-categ_of.c: Likewise.
27690         * tests/unictype/test-categ_or.c: Likewise.
27691         * tests/unictype/test-categ_test_withtable.c: Likewise.
27692         * tests/unictype/test-combining.c: Likewise.
27693         * tests/unictype/test-decdigit.c: Likewise.
27694         * tests/unictype/test-digit.c: Likewise.
27695         * tests/unictype/test-mirror.c: Likewise.
27696         * tests/unictype/test-numeric.c: Likewise.
27697         * tests/unictype/test-pr_byname.c: Likewise.
27698         * tests/unictype/test-pr_test.c: Likewise.
27699         * tests/unictype/test-predicate-part1.h: Likewise.
27700         * tests/unictype/test-scripts.c: Likewise.
27701         * tests/unictype/test-sy_c_ident.c: Likewise.
27702         * tests/unictype/test-sy_java_ident.c: Likewise.
27703         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27704         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27705         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27706         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27707         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27708         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27709         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27710         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27711         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27712         * tests/uninorm/test-compat-decomposition.c: Likewise.
27713         * tests/uninorm/test-composition.c: Likewise.
27714         * tests/uninorm/test-decomposing-form.c: Likewise.
27715         * tests/uninorm/test-decomposition.c: Likewise.
27716         * tests/uninorm/test-u8-nfc.c: Likewise.
27717         * tests/uninorm/test-u8-nfd.c: Likewise.
27718         * tests/uninorm/test-u8-nfkc.c: Likewise.
27719         * tests/uninorm/test-u8-nfkd.c: Likewise.
27720         * tests/uninorm/test-u8-normcmp.c: Likewise.
27721         * tests/uninorm/test-u8-normcoll.c: Likewise.
27722         * tests/uninorm/test-u16-nfc.c: Likewise.
27723         * tests/uninorm/test-u16-nfd.c: Likewise.
27724         * tests/uninorm/test-u16-nfkc.c: Likewise.
27725         * tests/uninorm/test-u16-nfkd.c: Likewise.
27726         * tests/uninorm/test-u16-normcmp.c: Likewise.
27727         * tests/uninorm/test-u16-normcoll.c: Likewise.
27728         * tests/uninorm/test-u32-nfc.c: Likewise.
27729         * tests/uninorm/test-u32-nfd.c: Likewise.
27730         * tests/uninorm/test-u32-nfkc.c: Likewise.
27731         * tests/uninorm/test-u32-nfkd.c: Likewise.
27732         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27733         * tests/uninorm/test-u32-normcmp.c: Likewise.
27734         * tests/uninorm/test-u32-normcoll.c: Likewise.
27735         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27736         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27737         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27738         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27739         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27740         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27741         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27742         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27743         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27744         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27745         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27746         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27747         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27748         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27749         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27750         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27751         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27752         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27753         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27754         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27755         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27756         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27757         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27758         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27759         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27760         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27761         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27762         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27763         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27764         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27765         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27766         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27767         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27768         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27769         * tests/uniwidth/test-u8-width.c: Likewise.
27770         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27771         * tests/uniwidth/test-u16-width.c: Likewise.
27772         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27773         * tests/uniwidth/test-u32-width.c: Likewise.
27774         * tests/uniwidth/test-uc_width.c: Likewise.
27775         * tests/uniwidth/test-uc_width2.c: Likewise.
27776         * modules/acl-tests (Files): Add tests/macros.h.
27777         * modules/areadlink-tests (Files): Likewise.
27778         * modules/areadlink-with-size-tests (Files): Likewise.
27779         * modules/areadlinkat-tests (Files): Likewise.
27780         * modules/areadlinkat-with-size-tests (Files): Likewise.
27781         * modules/argmatch-tests (Files): Likewise.
27782         * modules/argv-iter-tests (Files): Likewise.
27783         * modules/array-list-tests (Files): Likewise.
27784         * modules/array-mergesort-tests (Files): Likewise.
27785         * modules/array-oset-tests (Files): Likewise.
27786         * modules/avltree-list-tests (Files): Likewise.
27787         * modules/avltree-oset-tests (Files): Likewise.
27788         * modules/avltreehash-list-tests (Files): Likewise.
27789         * modules/base64-tests (Files): Likewise.
27790         * modules/binary-io-tests (Files): Likewise.
27791         * modules/bitrotate-tests (Files): Likewise.
27792         * modules/btowc-tests (Files): Likewise.
27793         * modules/byteswap-tests (Files): Likewise.
27794         * modules/c-ctype-tests (Files): Likewise.
27795         * modules/c-stack-tests (Files): Likewise.
27796         * modules/c-strcase-tests (Files): Likewise.
27797         * modules/c-strcasestr-tests (Files): Likewise.
27798         * modules/c-strstr-tests (Files): Likewise.
27799         * modules/canonicalize-lgpl-tests (Files): Likewise.
27800         * modules/canonicalize-tests (Files): Likewise.
27801         * modules/carray-list-tests (Files): Likewise.
27802         * modules/ceilf-tests (Files): Likewise.
27803         * modules/ceill-tests (Files): Likewise.
27804         * modules/chown-tests (Files): Likewise.
27805         * modules/cloexec-tests (Files): Likewise.
27806         * modules/copy-file-tests (Files): Likewise.
27807         * modules/count-one-bits-tests (Files): Likewise.
27808         * modules/dprintf-posix-tests (Files): Likewise.
27809         * modules/dup2-tests (Files): Likewise.
27810         * modules/dup3-tests (Files): Likewise.
27811         * modules/duplocale-tests (Files): Likewise.
27812         * modules/fbufmode-tests (Files): Likewise.
27813         * modules/fchdir-tests (Files): Likewise.
27814         * modules/fcntl-safer-tests (Files): Likewise.
27815         * modules/fcntl-tests (Files): Likewise.
27816         * modules/fdopendir-tests (Files): Likewise.
27817         * modules/fdutimensat-tests (Files): Likewise.
27818         * modules/fflush-tests (Files): Likewise.
27819         * modules/filevercmp-tests (Files): Likewise.
27820         * modules/flock-tests (Files): Likewise.
27821         * modules/floorf-tests (Files): Likewise.
27822         * modules/floorl-tests (Files): Likewise.
27823         * modules/fnmatch-tests (Files): Likewise.
27824         * modules/fopen-safer-tests (Files): Likewise.
27825         * modules/fopen-tests (Files): Likewise.
27826         * modules/fpending-tests (Files): Likewise.
27827         * modules/fprintf-posix-tests (Files): Likewise.
27828         * modules/fpurge-tests (Files): Likewise.
27829         * modules/freadable-tests (Files): Likewise.
27830         * modules/freadahead-tests (Files): Likewise.
27831         * modules/freading-tests (Files): Likewise.
27832         * modules/freadptr-tests (Files): Likewise.
27833         * modules/freadseek-tests (Files): Likewise.
27834         * modules/freopen-tests (Files): Likewise.
27835         * modules/frexp-nolibm-tests (Files): Likewise.
27836         * modules/frexp-tests (Files): Likewise.
27837         * modules/frexpl-nolibm-tests (Files): Likewise.
27838         * modules/frexpl-tests (Files): Likewise.
27839         * modules/fseek-tests (Files): Likewise.
27840         * modules/fseeko-tests (Files): Likewise.
27841         * modules/fstrcmp-tests (Files): Likewise.
27842         * modules/fsync-tests (Files): Likewise.
27843         * modules/ftell-tests (Files): Likewise.
27844         * modules/ftello-tests (Files): Likewise.
27845         * modules/func-tests (Files): Likewise.
27846         * modules/futimens-tests (Files): Likewise.
27847         * modules/fwritable-tests (Files): Likewise.
27848         * modules/fwriting-tests (Files): Likewise.
27849         * modules/getcwd-tests (Files): Likewise.
27850         * modules/getdate-tests (Files): Likewise.
27851         * modules/getdelim-tests (Files): Likewise.
27852         * modules/getdtablesize-tests (Files): Likewise.
27853         * modules/getgroups-tests (Files): Likewise.
27854         * modules/getline-tests (Files): Likewise.
27855         * modules/getndelim2-tests (Files): Likewise.
27856         * modules/glob-tests (Files): Likewise.
27857         * modules/hash-tests (Files): Likewise.
27858         * modules/i-ring-tests (Files): Likewise.
27859         * modules/iconv-tests (Files): Likewise.
27860         * modules/iconv_open-utf-tests (Files): Likewise.
27861         * modules/idpriv-drop-tests (Files): Likewise.
27862         * modules/idpriv-droptemp-tests (Files): Likewise.
27863         * modules/inet_ntop-tests (Files): Likewise.
27864         * modules/inet_pton-tests (Files): Likewise.
27865         * modules/isblank-tests (Files): Likewise.
27866         * modules/isfinite-tests (Files): Likewise.
27867         * modules/isinf-tests (Files): Likewise.
27868         * modules/isnan-tests (Files): Likewise.
27869         * modules/isnand-nolibm-tests (Files): Likewise.
27870         * modules/isnand-tests (Files): Likewise.
27871         * modules/isnanf-nolibm-tests (Files): Likewise.
27872         * modules/isnanf-tests (Files): Likewise.
27873         * modules/isnanl-nolibm-tests (Files): Likewise.
27874         * modules/isnanl-tests (Files): Likewise.
27875         * modules/lchown-tests (Files): Likewise.
27876         * modules/ldexpl-tests (Files): Likewise.
27877         * modules/link-tests (Files): Likewise.
27878         * modules/linkat-tests (Files): Likewise.
27879         * modules/linked-list-tests (Files): Likewise.
27880         * modules/linkedhash-list-tests (Files): Likewise.
27881         * modules/localename-tests (Files): Likewise.
27882         * modules/lseek-tests (Files): Likewise.
27883         * modules/lstat-tests (Files): Likewise.
27884         * modules/mbmemcasecmp-tests (Files): Likewise.
27885         * modules/mbmemcasecoll-tests (Files): Likewise.
27886         * modules/mbrtowc-tests (Files): Likewise.
27887         * modules/mbscasecmp-tests (Files): Likewise.
27888         * modules/mbscasestr-tests (Files): Likewise.
27889         * modules/mbschr-tests (Files): Likewise.
27890         * modules/mbscspn-tests (Files): Likewise.
27891         * modules/mbsinit-tests (Files): Likewise.
27892         * modules/mbsncasecmp-tests (Files): Likewise.
27893         * modules/mbsnrtowcs-tests (Files): Likewise.
27894         * modules/mbspbrk-tests (Files): Likewise.
27895         * modules/mbspcasecmp-tests (Files): Likewise.
27896         * modules/mbsrchr-tests (Files): Likewise.
27897         * modules/mbsrtowcs-tests (Files): Likewise.
27898         * modules/mbsspn-tests (Files): Likewise.
27899         * modules/mbsstr-tests (Files): Likewise.
27900         * modules/memchr-tests (Files): Likewise.
27901         * modules/memchr2-tests (Files): Likewise.
27902         * modules/memcmp-tests (Files): Likewise.
27903         * modules/memmem-tests (Files): Likewise.
27904         * modules/memrchr-tests (Files): Likewise.
27905         * modules/mkdir-tests (Files): Likewise.
27906         * modules/mkfifo-tests (Files): Likewise.
27907         * modules/mkfifoat-tests (Files): Likewise.
27908         * modules/mknod-tests (Files): Likewise.
27909         * modules/nanosleep-tests (Files): Likewise.
27910         * modules/nl_langinfo-tests (Files): Likewise.
27911         * modules/obstack-printf-tests (Files): Likewise.
27912         * modules/open-tests (Files): Likewise.
27913         * modules/openat-tests (Files): Likewise.
27914         * modules/pipe-filter-gi-tests (Files): Likewise.
27915         * modules/pipe-filter-ii-tests (Files): Likewise.
27916         * modules/pipe2-tests (Files): Likewise.
27917         * modules/popen-safer-tests (Files): Likewise.
27918         * modules/popen-tests (Files): Likewise.
27919         * modules/posixtm-tests (Files): Likewise.
27920         * modules/pread-tests (Files): Likewise.
27921         * modules/printf-frexp-tests (Files): Likewise.
27922         * modules/printf-frexpl-tests (Files): Likewise.
27923         * modules/printf-posix-tests (Files): Likewise.
27924         * modules/priv-set-tests (Files): Likewise.
27925         * modules/quotearg-tests (Files): Likewise.
27926         * modules/random_r-tests (Files): Likewise.
27927         * modules/rawmemchr-tests (Files): Likewise.
27928         * modules/rbtree-list-tests (Files): Likewise.
27929         * modules/rbtree-oset-tests (Files): Likewise.
27930         * modules/rbtreehash-list-tests (Files): Likewise.
27931         * modules/readlink-tests (Files): Likewise.
27932         * modules/remove-tests (Files): Likewise.
27933         * modules/rename-tests (Files): Likewise.
27934         * modules/renameat-tests (Files): Likewise.
27935         * modules/rmdir-tests (Files): Likewise.
27936         * modules/round-tests (Files): Likewise.
27937         * modules/roundf-tests (Files): Likewise.
27938         * modules/roundl-tests (Files): Likewise.
27939         * modules/safe-alloc-tests (Files): Likewise.
27940         * modules/setenv-tests (Files): Likewise.
27941         * modules/sigaction-tests (Files): Likewise.
27942         * modules/signbit-tests (Files): Likewise.
27943         * modules/sleep-tests (Files): Likewise.
27944         * modules/snprintf-posix-tests (Files): Likewise.
27945         * modules/snprintf-tests (Files): Likewise.
27946         * modules/sprintf-posix-tests (Files): Likewise.
27947         * modules/stat-tests (Files): Likewise.
27948         * modules/stat-time-tests (Files): Likewise.
27949         * modules/strcasestr-tests (Files): Likewise.
27950         * modules/strchrnul-tests (Files): Likewise.
27951         * modules/strerror-tests (Files): Likewise.
27952         * modules/striconv-tests (Files): Likewise.
27953         * modules/striconveh-tests (Files): Likewise.
27954         * modules/striconveha-tests (Files): Likewise.
27955         * modules/strsignal-tests (Files): Likewise.
27956         * modules/strstr-tests (Files): Likewise.
27957         * modules/strtod-tests (Files): Likewise.
27958         * modules/strverscmp-tests (Files): Likewise.
27959         * modules/symlink-tests (Files): Likewise.
27960         * modules/symlinkat-tests (Files): Likewise.
27961         * modules/trunc-tests (Files): Likewise.
27962         * modules/truncf-tests (Files): Likewise.
27963         * modules/truncl-tests (Files): Likewise.
27964         * modules/uname-tests (Files): Likewise.
27965         * modules/unicase/cased-tests (Files): Likewise.
27966         * modules/unicase/ignorable-tests (Files): Likewise.
27967         * modules/unicase/locale-language-tests (Files): Likewise.
27968         * modules/unicase/tolower-tests (Files): Likewise.
27969         * modules/unicase/totitle-tests (Files): Likewise.
27970         * modules/unicase/toupper-tests (Files): Likewise.
27971         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27972         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27973         * modules/unicase/u8-casefold-tests (Files): Likewise.
27974         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27975         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27976         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27977         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27978         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27979         * modules/unicase/u8-tolower-tests (Files): Likewise.
27980         * modules/unicase/u8-totitle-tests (Files): Likewise.
27981         * modules/unicase/u8-toupper-tests (Files): Likewise.
27982         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27983         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27984         * modules/unicase/u16-casefold-tests (Files): Likewise.
27985         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27986         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27987         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27988         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27989         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27990         * modules/unicase/u16-tolower-tests (Files): Likewise.
27991         * modules/unicase/u16-totitle-tests (Files): Likewise.
27992         * modules/unicase/u16-toupper-tests (Files): Likewise.
27993         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27994         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27995         * modules/unicase/u32-casefold-tests (Files): Likewise.
27996         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27997         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27998         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27999         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
28000         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
28001         * modules/unicase/u32-tolower-tests (Files): Likewise.
28002         * modules/unicase/u32-totitle-tests (Files): Likewise.
28003         * modules/unicase/u32-toupper-tests (Files): Likewise.
28004         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
28005         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
28006         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
28007         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
28008         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
28009         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
28010         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
28011         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
28012         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
28013         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
28014         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
28015         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
28016         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
28017         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
28018         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
28019         * modules/unictype/bidicategory-name-tests (Files): Likewise.
28020         * modules/unictype/bidicategory-of-tests (Files): Likewise.
28021         * modules/unictype/bidicategory-test-tests (Files): Likewise.
28022         * modules/unictype/block-list-tests (Files): Likewise.
28023         * modules/unictype/block-of-tests (Files): Likewise.
28024         * modules/unictype/block-test-tests (Files): Likewise.
28025         * modules/unictype/category-C-tests (Files): Likewise.
28026         * modules/unictype/category-Cc-tests (Files): Likewise.
28027         * modules/unictype/category-Cf-tests (Files): Likewise.
28028         * modules/unictype/category-Cn-tests (Files): Likewise.
28029         * modules/unictype/category-Co-tests (Files): Likewise.
28030         * modules/unictype/category-Cs-tests (Files): Likewise.
28031         * modules/unictype/category-L-tests (Files): Likewise.
28032         * modules/unictype/category-Ll-tests (Files): Likewise.
28033         * modules/unictype/category-Lm-tests (Files): Likewise.
28034         * modules/unictype/category-Lo-tests (Files): Likewise.
28035         * modules/unictype/category-Lt-tests (Files): Likewise.
28036         * modules/unictype/category-Lu-tests (Files): Likewise.
28037         * modules/unictype/category-M-tests (Files): Likewise.
28038         * modules/unictype/category-Mc-tests (Files): Likewise.
28039         * modules/unictype/category-Me-tests (Files): Likewise.
28040         * modules/unictype/category-Mn-tests (Files): Likewise.
28041         * modules/unictype/category-N-tests (Files): Likewise.
28042         * modules/unictype/category-Nd-tests (Files): Likewise.
28043         * modules/unictype/category-Nl-tests (Files): Likewise.
28044         * modules/unictype/category-No-tests (Files): Likewise.
28045         * modules/unictype/category-P-tests (Files): Likewise.
28046         * modules/unictype/category-Pc-tests (Files): Likewise.
28047         * modules/unictype/category-Pd-tests (Files): Likewise.
28048         * modules/unictype/category-Pe-tests (Files): Likewise.
28049         * modules/unictype/category-Pf-tests (Files): Likewise.
28050         * modules/unictype/category-Pi-tests (Files): Likewise.
28051         * modules/unictype/category-Po-tests (Files): Likewise.
28052         * modules/unictype/category-Ps-tests (Files): Likewise.
28053         * modules/unictype/category-S-tests (Files): Likewise.
28054         * modules/unictype/category-Sc-tests (Files): Likewise.
28055         * modules/unictype/category-Sk-tests (Files): Likewise.
28056         * modules/unictype/category-Sm-tests (Files): Likewise.
28057         * modules/unictype/category-So-tests (Files): Likewise.
28058         * modules/unictype/category-Z-tests (Files): Likewise.
28059         * modules/unictype/category-Zl-tests (Files): Likewise.
28060         * modules/unictype/category-Zp-tests (Files): Likewise.
28061         * modules/unictype/category-Zs-tests (Files): Likewise.
28062         * modules/unictype/category-and-not-tests (Files): Likewise.
28063         * modules/unictype/category-and-tests (Files): Likewise.
28064         * modules/unictype/category-byname-tests (Files): Likewise.
28065         * modules/unictype/category-name-tests (Files): Likewise.
28066         * modules/unictype/category-none-tests (Files): Likewise.
28067         * modules/unictype/category-of-tests (Files): Likewise.
28068         * modules/unictype/category-or-tests (Files): Likewise.
28069         * modules/unictype/category-test-withtable-tests (Files): Likewise.
28070         * modules/unictype/combining-class-tests (Files): Likewise.
28071         * modules/unictype/ctype-alnum-tests (Files): Likewise.
28072         * modules/unictype/ctype-alpha-tests (Files): Likewise.
28073         * modules/unictype/ctype-blank-tests (Files): Likewise.
28074         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
28075         * modules/unictype/ctype-digit-tests (Files): Likewise.
28076         * modules/unictype/ctype-graph-tests (Files): Likewise.
28077         * modules/unictype/ctype-lower-tests (Files): Likewise.
28078         * modules/unictype/ctype-print-tests (Files): Likewise.
28079         * modules/unictype/ctype-punct-tests (Files): Likewise.
28080         * modules/unictype/ctype-space-tests (Files): Likewise.
28081         * modules/unictype/ctype-upper-tests (Files): Likewise.
28082         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
28083         * modules/unictype/decimal-digit-tests (Files): Likewise.
28084         * modules/unictype/digit-tests (Files): Likewise.
28085         * modules/unictype/mirror-tests (Files): Likewise.
28086         * modules/unictype/numeric-tests (Files): Likewise.
28087         * modules/unictype/property-alphabetic-tests (Files): Likewise.
28088         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
28089         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
28090         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
28091         Likewise.
28092         * modules/unictype/property-bidi-block-separator-tests (Files):
28093         Likewise.
28094         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
28095         Likewise.
28096         * modules/unictype/property-bidi-common-separator-tests (Files):
28097         Likewise.
28098         * modules/unictype/property-bidi-control-tests (Files): Likewise.
28099         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
28100         Likewise.
28101         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
28102         Likewise.
28103         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
28104         Likewise.
28105         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
28106         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
28107         Likewise.
28108         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
28109         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
28110         Likewise.
28111         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
28112         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
28113         * modules/unictype/property-bidi-segment-separator-tests (Files):
28114         Likewise.
28115         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
28116         * modules/unictype/property-byname-tests (Files): Likewise.
28117         * modules/unictype/property-combining-tests (Files): Likewise.
28118         * modules/unictype/property-composite-tests (Files): Likewise.
28119         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
28120         * modules/unictype/property-dash-tests (Files): Likewise.
28121         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
28122         * modules/unictype/property-default-ignorable-code-point-tests (Files):
28123         Likewise.
28124         * modules/unictype/property-deprecated-tests (Files): Likewise.
28125         * modules/unictype/property-diacritic-tests (Files): Likewise.
28126         * modules/unictype/property-extender-tests (Files): Likewise.
28127         * modules/unictype/property-format-control-tests (Files): Likewise.
28128         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
28129         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
28130         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
28131         * modules/unictype/property-hex-digit-tests (Files): Likewise.
28132         * modules/unictype/property-hyphen-tests (Files): Likewise.
28133         * modules/unictype/property-id-continue-tests (Files): Likewise.
28134         * modules/unictype/property-id-start-tests (Files): Likewise.
28135         * modules/unictype/property-ideographic-tests (Files): Likewise.
28136         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
28137         * modules/unictype/property-ids-trinary-operator-tests (Files):
28138         Likewise.
28139         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
28140         * modules/unictype/property-iso-control-tests (Files): Likewise.
28141         * modules/unictype/property-join-control-tests (Files): Likewise.
28142         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
28143         * modules/unictype/property-line-separator-tests (Files): Likewise.
28144         * modules/unictype/property-logical-order-exception-tests (Files):
28145         Likewise.
28146         * modules/unictype/property-lowercase-tests (Files): Likewise.
28147         * modules/unictype/property-math-tests (Files): Likewise.
28148         * modules/unictype/property-non-break-tests (Files): Likewise.
28149         * modules/unictype/property-not-a-character-tests (Files): Likewise.
28150         * modules/unictype/property-numeric-tests (Files): Likewise.
28151         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
28152         * modules/unictype/property-other-default-ignorable-code-point-tests
28153         (Files): Likewise.
28154         * modules/unictype/property-other-grapheme-extend-tests (Files):
28155         Likewise.
28156         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
28157         * modules/unictype/property-other-id-start-tests (Files): Likewise.
28158         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
28159         * modules/unictype/property-other-math-tests (Files): Likewise.
28160         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
28161         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
28162         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
28163         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
28164         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
28165         * modules/unictype/property-private-use-tests (Files): Likewise.
28166         * modules/unictype/property-punctuation-tests (Files): Likewise.
28167         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
28168         * modules/unictype/property-radical-tests (Files): Likewise.
28169         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
28170         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
28171         * modules/unictype/property-space-tests (Files): Likewise.
28172         * modules/unictype/property-terminal-punctuation-tests (Files):
28173         Likewise.
28174         * modules/unictype/property-test-tests (Files): Likewise.
28175         * modules/unictype/property-titlecase-tests (Files): Likewise.
28176         * modules/unictype/property-unassigned-code-value-tests (Files):
28177         Likewise.
28178         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
28179         * modules/unictype/property-uppercase-tests (Files): Likewise.
28180         * modules/unictype/property-variation-selector-tests (Files): Likewise.
28181         * modules/unictype/property-white-space-tests (Files): Likewise.
28182         * modules/unictype/property-xid-continue-tests (Files): Likewise.
28183         * modules/unictype/property-xid-start-tests (Files): Likewise.
28184         * modules/unictype/property-zero-width-tests (Files): Likewise.
28185         * modules/unictype/scripts-tests (Files): Likewise.
28186         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
28187         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
28188         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
28189         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
28190         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
28191         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
28192         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
28193         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
28194         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
28195         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
28196         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
28197         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
28198         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
28199         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
28200         * modules/uninorm/composition-tests (Files): Likewise.
28201         * modules/uninorm/decomposing-form-tests (Files): Likewise.
28202         * modules/uninorm/decomposition-tests (Files): Likewise.
28203         * modules/uninorm/filter-tests (Files): Likewise.
28204         * modules/uninorm/nfc-tests (Files): Likewise.
28205         * modules/uninorm/nfd-tests (Files): Likewise.
28206         * modules/uninorm/nfkc-tests (Files): Likewise.
28207         * modules/uninorm/nfkd-tests (Files): Likewise.
28208         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
28209         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
28210         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
28211         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
28212         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
28213         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
28214         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
28215         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28216         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
28217         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
28218         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
28219         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
28220         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28221         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
28222         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
28223         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
28224         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
28225         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28226         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
28227         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
28228         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
28229         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
28230         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28231         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
28232         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
28233         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
28234         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
28235         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
28236         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
28237         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
28238         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
28239         * modules/uniwidth/u8-width-tests (Files): Likewise.
28240         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
28241         * modules/uniwidth/u16-width-tests (Files): Likewise.
28242         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
28243         * modules/uniwidth/u32-width-tests (Files): Likewise.
28244         * modules/uniwidth/width-tests (Files): Likewise.
28245         * modules/unlink-tests (Files): Likewise.
28246         * modules/unsetenv-tests (Files): Likewise.
28247         * modules/usleep-tests (Files): Likewise.
28248         * modules/utimens-tests (Files): Likewise.
28249         * modules/utimensat-tests (Files): Likewise.
28250         * modules/vasnprintf-posix-tests (Files): Likewise.
28251         * modules/vasnprintf-tests (Files): Likewise.
28252         * modules/vasprintf-posix-tests (Files): Likewise.
28253         * modules/vasprintf-tests (Files): Likewise.
28254         * modules/vdprintf-posix-tests (Files): Likewise.
28255         * modules/vfprintf-posix-tests (Files): Likewise.
28256         * modules/vprintf-posix-tests (Files): Likewise.
28257         * modules/vsnprintf-posix-tests (Files): Likewise.
28258         * modules/vsnprintf-tests (Files): Likewise.
28259         * modules/vsprintf-posix-tests (Files): Likewise.
28260         * modules/wcrtomb-tests (Files): Likewise.
28261         * modules/wcsnrtombs-tests (Files): Likewise.
28262         * modules/wcsrtombs-tests (Files): Likewise.
28263         * modules/wctype-tests (Files): Likewise.
28264         * modules/wcwidth-tests (Files): Likewise.
28265         * modules/xmemdup0-tests (Files): Likewise.
28266         * modules/xprintf-posix-tests (Files): Likewise.
28267         * modules/xvasprintf-tests (Files): Likewise.
28268
28269 2009-12-24  Eric Blake  <ebb9@byu.net>
28270
28271         test-nanosleep: fix typo
28272         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
28273         patch.
28274         Reported by Bruno Haible.
28275
28276 2009-12-24  Bruno Haible  <bruno@clisp.org>
28277
28278         Reduce namespace pollution on glibc systems.
28279         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
28280         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
28281         systems.
28282         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
28283         <getopt.h> on glibc systems.
28284         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
28285         systems.
28286         * lib/fcntl.c: Include <unistd.h> here instead.
28287
28288 2009-12-24  Bruno Haible  <bruno@clisp.org>
28289
28290         * lib/stdlib.in.h (includes): Fix typo in today's commit.
28291
28292 2009-12-24  Eric Blake  <ebb9@byu.net>
28293
28294         tests: add signature checks
28295         * tests/signature.h (SIGNATURE_CHECK): New file.
28296         * modules/atexit-tests (Files): Use it.
28297         * modules/btowc-tests (Files): Likewise.
28298         * modules/canonicalize-lgpl-tests (Files): Likewise.
28299         * modules/ceilf-tests (Files): Likewise.
28300         * modules/ceill-tests (Files): Likewise.
28301         * modules/chown-tests (Files): Likewise.
28302         * modules/dprintf-posix-tests (Files): Likewise.
28303         * modules/dup2-tests (Files): Likewise.
28304         * modules/dup3-tests (Files): Likewise.
28305         * modules/duplocale-tests (Files): Likewise.
28306         * modules/fchdir-tests (Files): Likewise.
28307         * modules/fcntl-tests (Files): Likewise.
28308         * modules/fdopendir-tests (Files): Likewise.
28309         * modules/fflush-tests (Files): Likewise.
28310         * modules/flock-tests (Files): Likewise.
28311         * modules/floorf-tests (Files): Likewise.
28312         * modules/floorl-tests (Files): Likewise.
28313         * modules/fnmatch-tests (Files): Likewise.
28314         * modules/fopen-tests (Files): Likewise.
28315         * modules/fprintf-posix-tests (Files): Likewise.
28316         * modules/freopen-tests (Files): Likewise.
28317         * modules/frexp-nolibm-tests (Files): Likewise.
28318         * modules/frexp-tests (Files): Likewise.
28319         * modules/frexpl-nolibm-tests (Files): Likewise.
28320         * modules/frexpl-tests (Files): Likewise.
28321         * modules/fseek-tests (Files): Likewise.
28322         * modules/fseeko-tests (Files): Likewise.
28323         * modules/fsync-tests (Files): Likewise.
28324         * modules/ftell-tests (Files): Likewise.
28325         * modules/ftello-tests (Files): Likewise.
28326         * modules/futimens-tests (Files): Likewise.
28327         * modules/getaddrinfo-tests (Files): Likewise.
28328         * modules/getcwd-tests (Files): Likewise.
28329         * modules/getdelim-tests (Files): Likewise.
28330         * modules/getdtablesize-tests (Files): Likewise.
28331         * modules/getgroups-tests (Files): Likewise.
28332         * modules/gethostname-tests (Files): Likewise.
28333         * modules/getline-tests (Files): Likewise.
28334         * modules/getopt-posix-tests (Files): Likewise.
28335         * modules/gettimeofday-tests (Files): Likewise.
28336         * modules/glob-tests (Files): Likewise.
28337         * modules/iconv-tests (Files): Likewise.
28338         * modules/inet_ntop-tests (Files): Likewise.
28339         * modules/inet_pton-tests (Files): Likewise.
28340         * modules/isblank-tests (Files): Likewise.
28341         * modules/lchown-tests (Files): Likewise.
28342         * modules/ldexpl-tests (Files): Likewise.
28343         * modules/link-tests (Files): Likewise.
28344         * modules/linkat-tests (Files): Likewise.
28345         * modules/lseek-tests (Files): Likewise.
28346         * modules/lstat-tests (Files): Likewise.
28347         * modules/mbrtowc-tests (Files): Likewise.
28348         * modules/mbsinit-tests (Files): Likewise.
28349         * modules/mbsnrtowcs-tests (Files): Likewise.
28350         * modules/mbsrtowcs-tests (Files): Likewise.
28351         * modules/memchr-tests (Files): Likewise.
28352         * modules/memcmp-tests (Files): Likewise.
28353         * modules/memmem-tests (Files): Likewise.
28354         * modules/memrchr-tests (Files): Likewise.
28355         * modules/mkdir-tests (Files): Likewise.
28356         * modules/mkfifo-tests (Files): Likewise.
28357         * modules/mkfifoat-tests (Files): Likewise.
28358         * modules/mknod-tests (Files): Likewise.
28359         * modules/nanosleep-tests (Files): Likewise.
28360         * modules/nl_langinfo-tests (Files): Likewise.
28361         * modules/obstack-printf-tests (Files): Likewise.
28362         * modules/open-tests (Files): Likewise.
28363         * modules/openat-tests (Files): Likewise.
28364         * modules/perror-tests (Files): Likewise.
28365         * modules/pipe2-tests (Files): Likewise.
28366         * modules/poll-tests (Files): Likewise.
28367         * modules/popen-tests (Files): Likewise.
28368         * modules/posix_spawn-tests (Files): Likewise.
28369         * modules/posix_spawnp-tests (Files): Likewise.
28370         * modules/pread-tests (Files): Likewise.
28371         * modules/printf-posix-tests (Files): Likewise.
28372         * modules/pty-tests (Files): Likewise.
28373         * modules/random_r-tests (Files): Likewise.
28374         * modules/rawmemchr-tests (Files): Likewise.
28375         * modules/readlink-tests (Files): Likewise.
28376         * modules/remove-tests (Files): Likewise.
28377         * modules/rename-tests (Files): Likewise.
28378         * modules/renameat-tests (Files): Likewise.
28379         * modules/rmdir-tests (Files): Likewise.
28380         * modules/round-tests (Files): Likewise.
28381         * modules/roundf-tests (Files): Likewise.
28382         * modules/roundl-tests (Files): Likewise.
28383         * modules/select-tests (Files): Likewise.
28384         * modules/setenv-tests (Files): Likewise.
28385         * modules/sigaction-tests (Files): Likewise.
28386         * modules/sleep-tests (Files): Likewise.
28387         * modules/snprintf-posix-tests (Files): Likewise.
28388         * modules/snprintf-tests (Files): Likewise.
28389         * modules/sprintf-posix-tests (Files): Likewise.
28390         * modules/stat-tests (Files): Likewise.
28391         * modules/strcasestr-tests (Files): Likewise.
28392         * modules/strchrnul-tests (Files): Likewise.
28393         * modules/strerror-tests (Files): Likewise.
28394         * modules/strsignal-tests (Files): Likewise.
28395         * modules/strstr-tests (Files): Likewise.
28396         * modules/strtod-tests (Files): Likewise.
28397         * modules/strverscmp-tests (Files): Likewise.
28398         * modules/symlink-tests (Files): Likewise.
28399         * modules/symlinkat-tests (Files): Likewise.
28400         * modules/times-tests (Files): Likewise.
28401         * modules/trunc-tests (Files): Likewise.
28402         * modules/truncf-tests (Files): Likewise.
28403         * modules/truncl-tests (Files): Likewise.
28404         * modules/tsearch-tests (Files): Likewise.
28405         * modules/uname-tests (Files): Likewise.
28406         * modules/unlink-tests (Files): Likewise.
28407         * modules/unsetenv-tests (Files): Likewise.
28408         * modules/usleep-tests (Files): Likewise.
28409         * modules/utimensat-tests (Files): Likewise.
28410         * modules/vasprintf-tests (Files): Likewise.
28411         * modules/vdprintf-posix-tests (Files): Likewise.
28412         * modules/vfprintf-posix-tests (Files): Likewise.
28413         * modules/vprintf-posix-tests (Files): Likewise.
28414         * modules/vsnprintf-posix-tests (Files): Likewise.
28415         * modules/vsnprintf-tests (Files): Likewise.
28416         * modules/vsprintf-posix-tests (Files): Likewise.
28417         * modules/wcrtomb-tests (Files): Likewise.
28418         * modules/wcsnrtombs-tests (Files): Likewise.
28419         * modules/wcsrtombs-tests (Files): Likewise.
28420         * modules/wcwidth-tests (Files): Likewise.
28421         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
28422         * tests/test-isinf.c (isinf): Likewise.
28423         * tests/test-isnan.c (isnan): Likewise.
28424         * tests/test-signbit.c (signbit): Likewise.
28425         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
28426         declaration, either as macro or with correct signature.
28427         (select): Ensure function under test is declared with correct
28428         signature in correct header.
28429         * tests/test-atexit.c (atexit): Likewise.
28430         * tests/test-btowc.c (btowc): Likewise.
28431         * tests/test-canonicalize-lgpl.c (realpath)
28432         (canonicalize_file_name): Likewise.
28433         * tests/test-ceilf1.c (ceilf): Likewise.
28434         * tests/test-ceill.c (ceill): Likewise.
28435         * tests/test-chown.c (chown): Likewise.
28436         * tests/test-dprintf-posix.c (dprintf): Likewise.
28437         * tests/test-dup2.c (dup2): Likewise.
28438         * tests/test-dup3.c (dup3): Likewise.
28439         * tests/test-duplocale.c (duplocale): Likewise.
28440         * tests/test-fchdir.c (fchdir): Likewise.
28441         * tests/test-fchownat.c (fchownat): Likewise.
28442         * tests/test-fcntl.c (fcntl): Likewise.
28443         * tests/test-fdopendir.c (fdopendir): Likewise.
28444         * tests/test-fflush.c (fflush): Likewise.
28445         * tests/test-flock.c (flock): Likewise.
28446         * tests/test-floorf1.c (floorf): Likewise.
28447         * tests/test-floorl.c (floorl): Likewise.
28448         * tests/test-fnmatch.c (fnmatch): Likewise.
28449         * tests/test-fopen.c (fopen): Likewise.
28450         * tests/test-fprintf-posix.c (fprintf): Likewise.
28451         * tests/test-freopen.c (freopen): Likewise.
28452         * tests/test-frexp.c (frexp): Likewise.
28453         * tests/test-frexpl.c (frexpl): Likewise.
28454         * tests/test-fseek.c (fseek): Likewise.
28455         * tests/test-fseeko.c (fseeko): Likewise.
28456         * tests/test-fstatat.c (fstatat): Likewise.
28457         * tests/test-fsync.c (fsync): Likewise.
28458         * tests/test-ftell.c (ftell): Likewise.
28459         * tests/test-ftello.c (ftello): Likewise.
28460         * tests/test-futimens.c (futimens): Likewise.
28461         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
28462         (gai_strerror): Likewise.
28463         * tests/test-getcwd.c (getcwd): Likewise.
28464         * tests/test-getdelim.c (getdelim): Likewise.
28465         * tests/test-getdtablesize.c (getdtablesize): Likewise.
28466         * tests/test-getgroups.c (getgroups): Likewise.
28467         * tests/test-gethostname.c (gethostname): Likewise.
28468         * tests/test-getline.c (getline): Likewise.
28469         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
28470         Likewise.
28471         * tests/test-gettimeofday.c (gettimeofday): Likewise.
28472         * tests/test-glob.c (glob, globfree): Likewise.
28473         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
28474         * tests/test-inet_ntop.c (inet_ntop): Likewise.
28475         * tests/test-inet_pton.c (inet_pton): Likewise.
28476         * tests/test-isblank.c (isblank): Likewise.
28477         * tests/test-lchown.c (lchown): Likewise.
28478         * tests/test-ldexpl.c (ldexpl): Likewise.
28479         * tests/test-link.c (link): Likewise.
28480         * tests/test-linkat.c (linkat): Likewise.
28481         * tests/test-lseek.c (lseek): Likewise.
28482         * tests/test-lstat.c (lstat): Likewise.
28483         * tests/test-mbrtowc.c (mbrtowc): Likewise.
28484         * tests/test-mbsinit.c (mbsinit): Likewise.
28485         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
28486         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
28487         * tests/test-memchr.c (memchr): Likewise.
28488         * tests/test-memcmp.c (memcmp): Likewise.
28489         * tests/test-memmem.c (memmem): Likewise.
28490         * tests/test-memrchr.c (memrchr): Likewise.
28491         * tests/test-mkdir.c (mkdir): Likewise.
28492         * tests/test-mkdirat.c (mkdirat): Likewise.
28493         * tests/test-mkfifo.c (mkfifo): Likewise.
28494         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
28495         * tests/test-mknod.c (mknod): Likewise.
28496         * tests/test-nanosleep.c (nanosleep): Likewise.
28497         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
28498         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
28499         Likewise.
28500         * tests/test-open.c (open): Likewise.
28501         * tests/test-openat.c (openat): Likewise.
28502         * tests/test-perror.c (perror): Likewise.
28503         * tests/test-pipe2.c (pipe2): Likewise.
28504         * tests/test-poll.c (poll): Likewise.
28505         * tests/test-popen.c (popen, pclose): Likewise.
28506         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
28507         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
28508         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
28509         (posix_spawn_file_actions_destroy)
28510         (posix_spawn_file_actions_addclose)
28511         (posix_spawn_file_actions_addopen)
28512         (posix_spawn_file_actions_adddup2): Likewise.
28513         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
28514         * tests/test-pread.c (pread): Likewise.
28515         * tests/test-printf-posix.c (printf): Likewise.
28516         * tests/test-pty.c (openpty, forkpty): Likewise.
28517         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
28518         (random_r): Likewise.
28519         * tests/test-rawmemchr.c (rawmemchr): Likewise.
28520         * tests/test-readlink.c (readlink): Likewise.
28521         * tests/test-remove.c (remove): Likewise.
28522         * tests/test-rename.c (rename): Likewise.
28523         * tests/test-renameat.c (renameat): Likewise.
28524         * tests/test-rmdir.c (rmdir): Likewise.
28525         * tests/test-round1.c (round): Likewise.
28526         * tests/test-roundf1.c (roundf): Likewise.
28527         * tests/test-roundl.c (roundl): Likewise.
28528         * tests/test-setenv.c (setenv): Likewise.
28529         * tests/test-sigaction.c (sigaction): Likewise.
28530         * tests/test-sleep.c (sleep): Likewise.
28531         * tests/test-snprintf.c (snprintf): Likewise.
28532         * tests/test-sprintf-posix.c (sprintf): Likewise.
28533         * tests/test-stat.c (stat): Likewise.
28534         * tests/test-stpncpy.c (stpncpy): Likewise.
28535         * tests/test-strcasestr.c (strcasestr): Likewise.
28536         * tests/test-strchrnul.c (strchrnul): Likewise.
28537         * tests/test-strerror.c (strerror): Likewise.
28538         * tests/test-strsignal.c (strsignal): Likewise.
28539         * tests/test-strstr.c (strstr): Likewise.
28540         * tests/test-strtod.c (strtod): Likewise.
28541         * tests/test-strverscmp.c (strverscmp): Likewise.
28542         * tests/test-symlink.c (symlink): Likewise.
28543         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
28544         * tests/test-times.c (times): Likewise.
28545         * tests/test-trunc1.c (trunc): Likewise.
28546         * tests/test-truncf1.c (truncf): Likewise.
28547         * tests/test-truncl.c (truncl): Likewise.
28548         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
28549         Likewise.
28550         * tests/test-uname.c (uname): Likewise.
28551         * tests/test-unlink.c (unlink): Likewise.
28552         * tests/test-unlinkat.c (unlinkat): Likewise.
28553         * tests/test-unsetenv.c (unsetenv): Likewise.
28554         * tests/test-usleep.c (usleep): Likewise.
28555         * tests/test-utimensat.c (utimensat): Likewise.
28556         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
28557         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
28558         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
28559         * tests/test-vprintf-posix.c (vprintf): Likewise.
28560         * tests/test-vsnprintf.c (vsnprintf): Likewise.
28561         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
28562         * tests/test-wcrtomb.c (wcrtomb): Likewise.
28563         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
28564         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
28565         * tests/test-wcwidth.c (wcwidth): Likewise.
28566
28567         build: pull in conditional headers during GNULIB_POSIXCHECK
28568         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
28569         definitions from any conditionally-included headers.
28570         * lib/stdlib.in.h (includes): Likewise.
28571         * lib/unistd.in.h (includes): Likewise.
28572
28573 2009-12-24  Bruno Haible  <bruno@clisp.org>
28574
28575         * tests/test-argv-iter.c: Include header file being tested immediately
28576         after config.h.
28577         * tests/test-base64.c: Likewise.
28578         * tests/test-flock.c: Likewise.
28579         * tests/test-fsync.c: Likewise.
28580         * tests/test-getdate.c: Likewise.
28581         * tests/test-getndelim2.c: Likewise.
28582         * tests/test-isfinite.c: Likewise.
28583         * tests/test-isinf.c: Likewise.
28584         * tests/test-strerror.c: Likewise.
28585         * tests/test-strsignal.c: Likewise.
28586
28587 2009-12-23  Eric Blake  <ebb9@byu.net>
28588
28589         unistd: work around cygwin bug
28590         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
28591         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28592         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28593
28594 2009-12-23  Bruno Haible  <bruno@clisp.org>
28595
28596         localename: More tests.
28597         * tests/test-localename.c (SIZEOF): New macro.
28598         (categories): New variable.
28599         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
28600         test_locale_name_default): Add test w.r.t. thread locale.
28601         (test_locale_name_thread): New function.
28602         (main): Invoke it.
28603
28604         localename: Make aware of thread locale.
28605         * lib/localename.h (gl_locale_name_thread): New declaration.
28606         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
28607         behaviour with respect to thread locale.
28608         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
28609         <langinfo.h>, glthread/lock.h.
28610         (SIZE_BITS): New macro.
28611         (string_hash): New function.
28612         (struct hash_node): New type.
28613         (HASH_TABLE_SIZE): New macro.
28614         (struniq_hash_table, struniq_lock): New variables.
28615         (struniq): New function.
28616         (gl_locale_name_thread): New function.
28617         (gl_locale_name): Invoke it.
28618         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
28619         * modules/localename (Depends-on): Add lock.
28620         Reported by Mike Gran <spk121@yahoo.com>.
28621
28622 2009-12-23  Eric Blake  <ebb9@byu.net>
28623
28624         va-args: new module
28625         * modules/va-args: New file.
28626         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
28627         * MODULES.html.sh (Core language properties): Mention it.
28628
28629         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
28630         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
28631         named alias for __attribute__((__unused__)).
28632         * lib/chown.c: Update client.
28633         * lib/fchmodat.c: Likewise.
28634         * lib/fts.c: Likewise.
28635         * lib/getdate.y: Likewise.
28636         * lib/getgroups.c: Likewise.
28637         * lib/getopt.c: Likewise.
28638         * lib/getugroups.c: Likewise.
28639         * lib/mkdir.c: Likewise.
28640         * lib/mkfifo.c: Likewise.
28641         * lib/mkfifoat.c: Likewise.
28642         * lib/mknod.c: Likewise.
28643         * lib/mknodat.c: Likewise.
28644         * lib/readlink.c: Likewise.
28645         * lib/se-context.in.h: Likewise.
28646         * lib/se-selinux.in.h: Likewise.
28647         * lib/sockets.c: Likewise.
28648         * lib/symlink.c: Likewise.
28649         * lib/symlinkat.c: Likewise.
28650         * lib/unicodeio.c: Likewise.
28651         * lib/unistr.h: Likewise.
28652         * tests/test-areadlink.c: Likewise.
28653         * tests/test-areadlinkat.c: Likewise.
28654         * tests/test-filenamecat.c: Likewise.
28655         * tests/test-fseeko.c: Likewise.
28656         * tests/test-ftello.c: Likewise.
28657         * tests/test-getdate.c: Likewise.
28658         * tests/test-getgroups.c: Likewise.
28659         * tests/test-gethostname.c: Likewise.
28660         * tests/test-quotearg.c: Likewise.
28661         * tests/test-version-etc.c: Likewise.
28662         * tests/test-xalloc-die.c: Likewise.
28663         * tests/test-xfprintf-posix.c: Likewise.
28664         * tests/test-xprintf-posix.c: Likewise.
28665         * tests/test-xvasprintf.c: Likewise.
28666
28667         tests: avoid compiler warnings
28668         * tests/test-fcntl.c (main): Delete unused parameters.
28669         * tests/test-freopen-safer.c (main): Likewise.
28670         * tests/test-xalloc-die.c (main): Mark unused parameters.
28671         * tests/test-fseeko.c (main): Likewise.
28672         * tests/test-ftello.c (main): Likewise.
28673         * tests/test-nanosleep.c (main): Avoid declaration warning.
28674         * tests/test-sleep.c (main): Likewise.
28675         * tests/test-unsetenv.c (main): Silence warning about string
28676         literal.
28677         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28678
28679 2009-12-23  Bruno Haible  <bruno@clisp.org>
28680
28681         * tests/test-localename.c (test_locale_name): New function, extracted
28682         from main. Also test mixed situations.
28683         (test_locale_name_posix, test_locale_name_environ,
28684         test_locale_name_default): New functions.
28685         (main): Invoke them all.
28686         * modules/localename-tests (configure.ac): Test for newlocale.
28687
28688 2009-12-23  Bruno Haible  <bruno@clisp.org>
28689
28690         unistd: Ensure getcwd gets declared before being overridden.
28691         * lib/unistd.in.h: Conditionally include <io.h>.
28692
28693 2009-12-22  Bruno Haible  <bruno@clisp.org>
28694
28695         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28696         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28697         (gl_WCHAR_H): Invoke it.
28698         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28699         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28700         Reported by Karl Berry <karl@freefriends.org>.
28701
28702 2009-12-22  Eric Blake  <ebb9@byu.net>
28703
28704         math, unistd: avoid redundant includes
28705         * lib/math.in.h (isnan): No need to re-include <math.h>.
28706         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28707
28708         getsubopt: work around cygwin bug
28709         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28710         avoid conflicting with system getsubopt.
28711         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28712         bug.
28713
28714         getopt: synchronize from glibc
28715         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28716         parameter order.  Adjust all callers.
28717         (_getopt_internal_r, main): Adjust quoting in error messages.
28718         Drop considerations for outdated POSIX 1003.2 error message.
28719         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28720         callers.
28721         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28722
28723         test-getopt: test stderr behavior
28724         * modules/getopt-posix-tests (Depends-on): Add dup2.
28725         * tests/test-getopt.c (ASSERT): Avoid stderr.
28726         (main): Move stderr to a temporary file.
28727         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28728         Instead, add parameter to inform caller if output occurred.
28729         (test_getopt): Adjust all existing tests to expect silence, and
28730         add new tests of leading ":".
28731         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28732         glibc shortcomings with leading "-:" or "+:" in optstring.
28733         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28734         Likewise.
28735         * doc/posix-functions/getopt.texi (getopt): Likewise.
28736
28737         test-getopt: enhance test
28738         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28739         supports optind=0.
28740         * tests/test-getopt.c (OPTIND_MIN): Move...
28741         * tests/test-getopt.h (OPTIND_MIN): ...here.
28742         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28743         Require that optind=0 works, since modern BSD supports it in
28744         addition to optreset, and since coreutils expects it.
28745         (test_getopt_long_only): New test.
28746         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28747         glibc shortcomings with 'W;', and enforcement of optind=0.
28748         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28749         Likewise.
28750
28751 2009-12-21  Bruno Haible  <bruno@clisp.org>
28752
28753         localename: Improvements for MacOS X and Cygwin.
28754         * lib/localename.h (gl_locale_name_environ): New declaration.
28755         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28756         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28757         (gl_locale_name_posix): Invoke it.
28758         (gl_locale_name_default): Add comments. Use Windows native API also on
28759         Cygwin.
28760
28761 2009-12-21  Bruno Haible  <bruno@clisp.org>
28762
28763         Update list of Win32 locale ids.
28764         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28765         (LANG_SAMI): Renamed from LANG_SAAMI.
28766         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28767         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28768         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28769         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28770         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28771         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28772         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28773         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28774         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28775         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28776         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28777         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28778         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28779         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28780         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28781         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28782         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28783         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28784         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28785         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28786         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28787         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28788         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28789         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28790         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28791         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28792         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28793         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28794         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28795         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28796         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28797         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28798         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28799         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28800         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28801         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28802         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28803         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28804         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28805         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28806         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28807         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28808         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28809         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28810         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28811         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28812         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28813         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28814         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28815         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28816         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28817         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28818         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28819         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28820         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28821         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28822         Add more languages and countries for Sami, Sorbian. Add more countries
28823         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28824         for Pashto. Change country for Syriac, Tswana.
28825
28826 2009-12-21  Eric Blake  <ebb9@byu.net>
28827
28828         test-utimens: avoid spurious failure
28829         * tests/test-chown.h (nap): Factor...
28830         * tests/nap.h: ...into new file.
28831         * tests/test-lchown.h (nap): Avoid duplication.
28832         * tests/test-utimens-common.h (nap): Use shared implementation,
28833         necessary on file systems with 1-second resolution.
28834         * modules/chown-tests (Files): Include new file.
28835         * modules/fdutimensat-tests (Files): Likewise.
28836         * modules/futimens-tests (Files): Likewise.
28837         * modules/lchown-tests (Files): Likewise.
28838         * modules/openat-tests (Files): Likewise.
28839         * modules/utimens-tests (Files): Likewise.
28840         * modules/utimensat-tests (Files): Likewise.
28841
28842 2009-12-19  Eric Blake  <ebb9@byu.net>
28843
28844         futimens, utimensat: work around Linux bug
28845         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28846         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28847         * lib/utimensat.c (rpl_utimensat): Work around it.
28848         * lib/futimens.c (rpl_futimens): Adjust comment.
28849
28850         utimens: work around Linux ctime bug
28851         * lib/utimens.c (detect_ctime_bug): New helper function.
28852         (update_timespec): Differentiate between workaround needed for
28853         this bug vs. what is needed for systems that lack utimensat.
28854         (fdutimens, lutimens): Work around bug.
28855
28856         utimens: check for ctime update
28857         * tests/test-utimens-common.h (check_ctime): Define.
28858         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28859         * tests/test-futimens.h (test_futimens): Likewise.
28860         * tests/test-lutimens.h (test_lutimens): Likewise.
28861         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28862         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28863
28864 2009-12-19  Bruno Haible  <bruno@clisp.org>
28865
28866         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28867         * tests/test-dprintf-posix2.sh: New file.
28868         * tests/test-dprintf-posix2.c: New file.
28869         * modules/dprintf-posix-tests (Files): Add them.
28870         (configure.ac): Check for getrlimit and setrlimit.
28871         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28872
28873 2009-12-19  Bruno Haible  <bruno@clisp.org>
28874
28875         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28876         * tests/test-fprintf-posix3.sh: New file.
28877         * tests/test-fprintf-posix3.c: New file.
28878         * modules/fprintf-posix-tests (Files): Add them.
28879         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28880
28881 2009-12-19  Eric Blake  <ebb9@byu.net>
28882
28883         dirfd: fix prototype
28884         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28885         * lib/dirfd.c (dirfd): Likewise.
28886
28887         canonicalize: reduce memory usage
28888         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28889         allocation to size.
28890         Reported by Solar Designer <solar@openwall.com>.
28891
28892 2009-12-19  Bruno Haible  <bruno@clisp.org>
28893
28894         New module attribute 'Applicability'.
28895         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28896         * gnulib-tool: New option --extract-applicability.
28897         (func_usage): Document it.
28898         (sed_extract_prog): Recognize it.
28899         (func_get_applicability): New function.
28900         (func_import): Generalize handling of 'link-warning' module.
28901         * modules/link-warning (Applicability): New section.
28902         * modules/arg-nonnull (Applicability): New section.
28903         Repoted by Simon Josefsson <simon@josefsson.org>.
28904
28905 2009-12-19  Bruno Haible  <bruno@clisp.org>
28906
28907         fflush: tweak
28908         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28909         * lib/fseeko.c (rpl_fseeko): Likewise.
28910
28911 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28912
28913         * lib/gl_list.h: Fix typo in comment.
28914
28915 2009-12-16  Eric Blake  <ebb9@byu.net>
28916
28917         fcntl: use to simplify other modules
28918         * modules/cloexec (Depends-on): Add fcntl.
28919         * modules/fchdir (Depends-on): Likewise.
28920         * modules/fd-safer-flag (Depends-on): Likewise.
28921         * modules/unistd-safer (Depends-on): Likewise.
28922         * modules/dup3 (configure.ac): Set module indicator.
28923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28924         missing.
28925         * lib/fchdir.c (_gl_register_dup): Fix comment.
28926         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28927         * lib/dup-safer.c (dup_safer): Likewise.
28928         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28929         * lib/dup3.c (dup3): Likewise.
28930         * tests/test-fchdir.c (main): Enhance test.
28931         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28932
28933         fcntl: port portions of fcntl to mingw
28934         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28935         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28936         replacement for mingw.
28937         * modules/fcntl (Description): Update.
28938         (Depends-on): Add dup2.
28939         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28940         * modules/fcntl-h (Makefile.am): Substitute it.
28941         * lib/fcntl.in.h (fcntl): Update declaration.
28942         (F_DUPFD, F_GETFD): New macros, when needed.
28943         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28944         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28945         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28946         we now guarantee.
28947
28948         fcntl: work around cygwin bug in F_DUPFD
28949         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28950         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28951         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28952         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28953         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28954
28955         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28956         * modules/fcntl (Files): List new files.
28957         (configure.ac): Run a test.
28958         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28959         * lib/fcntl.c (rpl_fcntl): Likewise.
28960         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28961         (gl_FCNTL_H): Always replace fcntl.h.
28962         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28963         * lib/fcntl.in.h (fcntl): Declare replacement.
28964         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28965         needed, plus a witness.
28966         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28967         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28968         * tests/test-fcntl.c: New file.
28969         * modules/fcntl-tests: Likewise.
28970
28971         binary-io: avoid potential compilation warning
28972         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28973         directives.
28974
28975         fflush: avoid compilation error on NetBSD
28976         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28977         between off_t and fpos_t, since the latter is sometimes a struct.
28978         * lib/fseeko.c (rpl_fseeko): Likewise.
28979         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28980
28981 2009-12-15  Eric Blake  <ebb9@byu.net>
28982
28983         fcntl-h, stdio, sys_ioctl: fix declarations
28984         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28985         function must not take arguments.
28986         * lib/sys_ioctl.in.h (ioctl): Likewise.
28987         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28988         (open): Add a link warning.
28989
28990 2009-12-15  Jim Meyering  <meyering@redhat.com>
28991
28992         areadlink, areadlink-with-size: relax license to LGPLv2+
28993         * modules/areadlink (License): Relax to LGPLv2+.
28994         * modules/areadlink-with-size (License): Likewise.
28995
28996 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28997             Bruno Haible  <bruno@clisp.org>
28998
28999         *printf: Fix memory leak.
29000         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
29001         * lib/vfprintf.c (vfprintf): Likewise.
29002         * lib/dprintf.c (dprintf): Likewise.
29003         * lib/vdprintf.c (vdprintf): Likewise.
29004
29005 2009-12-14  Eric Blake  <ebb9@byu.net>
29006
29007         accept4: adjust module dependencies
29008         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
29009
29010         utimens: one more try at avoiding compiler warning
29011         * lib/utimens.c (lutimens): Lower scope of result.
29012
29013 2009-12-13  Bruno Haible  <bruno@clisp.org>
29014
29015         Move the malloc checking from module 'list' to new module 'xlist'.
29016         * modules/xlist: New file.
29017         * lib/gl_xlist.h: New file.
29018         * lib/gl_xlist.c: New file.
29019         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
29020         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
29021         gl_list_add_last, gl_list_add_before, gl_list_add_after,
29022         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
29023         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
29024         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
29025         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
29026         gl_sortedlist_nx_add): New declarations.
29027         (struct gl_list_implementation): Rename and change methods accordingly.
29028         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
29029         (gl_list_nx_create): Renamed from gl_list_create.
29030         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29031         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29032         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29033         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29034         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29035         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29036         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29037         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29038         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
29039         gl_list_create_empty.
29040         (gl_list_nx_create): Renamed from gl_list_create.
29041         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29042         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29043         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29044         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29045         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29046         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29047         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29048         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29049         * lib/gl_array_list.c: Don't include xalloc.h.
29050         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
29051         NULL upon out-of-memory.
29052         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
29053         out-of-memory.
29054         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
29055         Change return type to 'int'.
29056         (gl_array_nx_set_at): Renamed from gl_array_set_at.
29057         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29058         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
29059         upon out-of-memory.
29060         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
29061         upon out-of-memory.
29062         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
29063         upon out-of-memory.
29064         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
29065         upon out-of-memory.
29066         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
29067         out-of-memory.
29068         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
29069         Update.
29070         (gl_array_list_implementation): Update.
29071         * lib/gl_carray_list.c: Don't include xalloc.h.
29072         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
29073         Return NULL upon out-of-memory.
29074         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
29075         out-of-memory.
29076         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
29077         Change return type to 'int'.
29078         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
29079         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29080         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
29081         upon out-of-memory.
29082         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
29083         upon out-of-memory.
29084         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
29085         out-of-memory.
29086         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
29087         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
29088         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
29089         Update.
29090         (gl_carray_list_implementation): Update.
29091         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
29092         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
29093         gl_linked_create_empty. Return NULL upon out-of-memory.
29094         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
29095         out-of-memory.
29096         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
29097         Change return type to 'int'. Return -1 upon out-of-memory.
29098         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
29099         out-of-memory.
29100         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
29101         upon out-of-memory.
29102         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
29103         upon out-of-memory.
29104         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
29105         NULL upon out-of-memory.
29106         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
29107         upon out-of-memory.
29108         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
29109         out-of-memory.
29110         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
29111         Update.
29112         * lib/gl_linked_list.c: Don't include xalloc.h.
29113         (gl_linked_list_implementation): Update.
29114         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
29115         (add_to_bucket): Change return type to 'int'.
29116         (gl_linkedhash_list_implementation): Update.
29117         * lib/gl_anytree_list1.h (free_subtree): New function.
29118         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
29119         gl_tree_create_empty. Return NULL upon out-of-memory.
29120         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
29121         Change return type to 'int'. Return -1 upon out-of-memory.
29122         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
29123         out-of-memory.
29124         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
29125         (gl_tree_remove_node): New function, moved here from
29126         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
29127         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
29128         Update.
29129         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
29130         malloc, not xmalloc. Return NULL upon out-of-memory.
29131         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29132         out-of-memory.
29133         (gl_tree_remove_node_from_tree): New function, extracted from
29134         gl_tree_remove_node.
29135         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29136         upon out-of-memory.
29137         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29138         out-of-memory.
29139         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29140         upon out-of-memory.
29141         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29142         upon out-of-memory.
29143         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29144         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
29145         not xmalloc. Return NULL upon out-of-memory.
29146         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29147         out-of-memory.
29148         (gl_tree_remove_node_from_tree): New function, extracted from
29149         gl_tree_remove_node.
29150         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29151         upon out-of-memory.
29152         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29153         out-of-memory.
29154         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29155         upon out-of-memory.
29156         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29157         upon out-of-memory.
29158         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29159         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
29160         gl_anytree_list1.h before gl_anyavltree_list2.h.
29161         (gl_avltree_list_implementation): Update.
29162         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
29163         gl_anytree_list1.h before gl_anyavltree_list2.h.
29164         (gl_rbtree_list_implementation): Update.
29165         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
29166         Change return type to 'int'. Return -1 upon out-of-memory. Use
29167         __builtin_expect.
29168         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
29169         (gl_avltreehash_list_implementation): Update.
29170         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
29171         (gl_rbtreehash_list_implementation): Update.
29172         * modules/array-list (Depends-on): Remove xalloc.
29173         * modules/carray-list (Depends-on): Likewise.
29174         * modules/linked-list (Depends-on): Likewise.
29175         * modules/linkedhash-list (Depends-on): Likewise.
29176         * modules/avltree-list (Depends-on): Likewise.
29177         * modules/rbtree-list (Depends-on): Likewise.
29178         * modules/avltreehash-list (Depends-on): Likewise.
29179         * modules/rbtreehash-list (Depends-on): Likewise.
29180
29181         * modules/xsublist: New file.
29182         * lib/gl_xsublist.h: New file.
29183         * lib/gl_xsublist.c: New file.
29184         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
29185         (gl_sublist_nx_create): New declaration.
29186         * lib/gl_sublist.c: Don't include xalloc.h.
29187         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
29188         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
29189         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
29190         Change return type to 'int'. Return -1 upon out-of-memory.
29191         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
29192         upon out-of-memory.
29193         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
29194         NULL upon out-of-memory.
29195         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
29196         upon out-of-memory.
29197         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
29198         NULL upon out-of-memory.
29199         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
29200         NULL upon out-of-memory.
29201         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
29202         upon out-of-memory.
29203         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
29204         (gl_sublist_list_implementation): Update.
29205         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
29206         upon out-of-memory.
29207         * modules/sublist (Depends-on): Remove xalloc.
29208
29209         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
29210         * tests/test-carray_list.c: Likewise.
29211         * tests/test-linked_list.c: Likewise.
29212         * tests/test-linkedhash_list.c: Likewise.
29213         * tests/test-avltree_list.c: Likewise.
29214         * tests/test-rbtree_list.c: Likewise.
29215         * tests/test-avltreehash_list.c: Likewise.
29216         * tests/test-rbtreehash_list.c: Likewise.
29217         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
29218         * modules/carray-list-tests (Makefile.am): Likewise.
29219         * modules/linked-list-tests (Makefile.am): Likewise.
29220         * modules/linkedhash-list-tests (Makefile.am): Likewise.
29221         * modules/avltree-list-tests (Makefile.am): Likewise.
29222         * modules/rbtree-list-tests (Makefile.am): Likewise.
29223         * modules/avltreehash-list-tests (Makefile.am): Likewise.
29224         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29225
29226         * NEWS: Mention the changes.
29227
29228         * lib/clean-temp.c: Include gl_xlist.h.
29229         * modules/clean-temp (Depends-on): Add xlist.
29230
29231         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
29232         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
29233
29234         * tests/test-array_oset.c: Include gl_xlist.h.
29235         * modules/array-oset-tests (Depends-on): Add xlist.
29236
29237         Reported by José E. Marchesi <jemarch@gnu.org>.
29238
29239 2009-12-13  Bruno Haible  <bruno@clisp.org>
29240
29241         Move the malloc checking from module 'oset' to new module 'xoset'.
29242         * modules/xoset: New file.
29243         * lib/gl_xoset.h: New file.
29244         * lib/gl_xoset.c: New file.
29245         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
29246         declarations.
29247         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
29248         (struct gl_oset_implementation): Rename and change methods accordingly.
29249         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
29250         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29251         'int'. Mark as __warn_unused_result__.
29252         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
29253         gl_oset_create_empty.
29254         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29255         'int'.
29256         * lib/gl_array_oset.c: Don't include xalloc.h.
29257         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
29258         malloc, not xmalloc.
29259         (grow): Change return type to 'int'. Don't call xalloc_die.
29260         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
29261         to 'int'.
29262         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
29263         'int'.
29264         (gl_array_oset_implementation): Update.
29265         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
29266         gl_tree_create_empty.
29267         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
29268         'int'.
29269         * lib/gl_avltree_oset.c: Don't include xalloc.h.
29270         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29271         xmalloc.
29272         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29273         not xmalloc.
29274         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29275         xmalloc.
29276         (gl_avltree_oset_implementation): Update.
29277         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
29278         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29279         xmalloc.
29280         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29281         not xmalloc.
29282         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29283         xmalloc.
29284         (gl_rbtree_oset_implementation): Update.
29285         * modules/array-oset (Depends-on): Remove xalloc.
29286         * modules/avltree-oset (Depends-on): Likewise.
29287         * modules/rbtree-oset (Depends-on): Likewise.
29288         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
29289         * tests/test-avltree_oset.c: Likewise.
29290         * tests/test-rbtree_oset.c: Likewise.
29291         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29292         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
29293         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29294         * NEWS: Mention the change.
29295
29296 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
29297
29298         maint.mk: allow a project to override release-prep commands
29299         * top/maint.mk (alpha, beta, stable): Move release-preparatory
29300         commands into a new rule.
29301         (release-prep): New rule.
29302         (release-prep-hook): New overridable variable.
29303
29304 2009-12-13  Bruno Haible  <bruno@clisp.org>
29305
29306         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
29307
29308 2009-12-13  Jim Meyering  <meyering@redhat.com>
29309
29310         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
29311         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
29312
29313 2009-12-12  Bruno Haible  <bruno@clisp.org>
29314
29315         duplocale: Tweak.
29316         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
29317
29318 2009-12-12  Karl Berry  <karl@gnu.org>
29319
29320         * config/srclist.txt (strtoll.c): tab changes, no more sync.
29321
29322 2009-12-12  Bruno Haible  <bruno@clisp.org>
29323
29324         * m4/po.m4: Undo incorrect untabification.
29325
29326 2009-12-12  Bruno Haible  <bruno@clisp.org>
29327
29328         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
29329         * modules/c-strtod (Depends-on): Add locale.
29330         * modules/c-strtold (Depends-on): Likewise.
29331
29332 2009-12-12  Bruno Haible  <bruno@clisp.org>
29333
29334         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
29335
29336 2009-12-11  Eric Blake  <ebb9@byu.net>
29337
29338         setenv: relax requirement in light of POSIX ruling
29339         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
29340         not NULL.
29341         * tests/test-setenv.c (main): Relax test.
29342         * tests/test-unsetenv.c (main): Likewise.
29343         * doc/posix-functions/setenv.texi (setenv): Document this.
29344         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29345
29346 2009-12-11  Bruno Haible  <bruno@clisp.org>
29347
29348         New module 'fd-safer-flag'.
29349         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
29350         * lib/dup-safer.c (dup_safer_flag): Remove function.
29351         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
29352         * lib/fd-safer.c (fd_safer_flag): Remove function.
29353         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
29354         * modules/cloexec (configure.ac): Drop indicator macro.
29355         * modules/fd-safer-flag: New file.
29356         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
29357         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
29358         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
29359
29360 2009-12-11  Bruno Haible  <bruno@clisp.org>
29361
29362         Tests for module 'nl_langinfo'.
29363         * modules/nl_langinfo-tests: New file.
29364         * tests/test-nl_langinfo.sh: New file.
29365         * tests/test-nl_langinfo.c: New file.
29366
29367         New module 'nl_langinfo'.
29368         * lib/nl_langinfo.c: New file.
29369         * m4/nl_langinfo.m4: New file.
29370         * modules/nl_langinfo: New file.
29371         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
29372
29373 2009-12-11  Bruno Haible  <bruno@clisp.org>
29374
29375         Tests for module 'langinfo'.
29376         * modules/langinfo-tests: New file.
29377         * tests/test-langinfo.c: New file.
29378
29379         New module 'langinfo'.
29380         * lib/langinfo.in.h: New file.
29381         * m4/langinfo_h.m4: New file.
29382         * modules/langinfo: New file.
29383         * doc/posix-headers/langinfo.texi: Mention the new module.
29384
29385 2009-12-11  Bruno Haible  <bruno@clisp.org>
29386
29387         * lib/config.charset: Untabify.
29388
29389 2009-12-11  Bruno Haible  <bruno@clisp.org>
29390
29391         * modules/unistd-safer (configure.ac): Drop indicator macro.
29392
29393 2009-12-11  Bruno Haible  <bruno@clisp.org>
29394
29395         Move pipe2-safer code to its own file.
29396         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
29397         * lib/pipe-safer.c (pipe2_safer): Remove function.
29398         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
29399         (Makefile.am): Add it to lib_SOURCES.
29400
29401 2009-12-10  Bruno Haible  <bruno@clisp.org>
29402
29403         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
29404
29405 2009-12-10  Bruno Haible  <bruno@clisp.org>
29406
29407         Declare which arguments expect non-NULL values, for GCC and clang.
29408         * build-aux/arg-nonnull.h: New file.
29409         * modules/arg-nonnull: New file.
29410         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29411         (inet_ntop, inet_pton): Use it.
29412         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
29413         (closedir, dirfd, opendir, scandir, alphasort): Use it.
29414         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
29415         (open, openat): Use it.
29416         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
29417         (fnmatch): Use it.
29418         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
29419         (getopt, getopt_long, getopt_long_only): Use it.
29420         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
29421         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
29422         Use it.
29423         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
29424         (iconv_open): Use it.
29425         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
29426         (strtoimax, strtoumax): Use it.
29427         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
29428         (duplocale): Use it.
29429         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
29430         (frexp, frexpl): Use it.
29431         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
29432         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
29433         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
29434         (tsearch, tfind, tdelete, twalk): Use it.
29435         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
29436         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29437         sigpending): Use it.
29438         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
29439         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29440         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29441         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29442         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29443         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29444         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29445         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29446         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29447         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29448         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29449         Use it.
29450         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
29451         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
29452         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
29453         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
29454         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
29455         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
29456         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
29457         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
29458         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
29459         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
29460         strtoull, unsetenv): Use it.
29461         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
29462         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29463         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29464         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29465         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29466         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
29467         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
29468         (strcasecmp, strncasecmp): Use it.
29469         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
29470         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
29471         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
29472         rpl_setsockopt): Use it.
29473         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
29474         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
29475         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
29476         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
29477         (gettimeofday): Use it.
29478         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
29479         (times): Use it.
29480         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
29481         (uname): Use it.
29482         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
29483         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
29484         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
29485         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
29486         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
29487         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
29488         unlinkat, write): Use it.
29489         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
29490         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
29491         * lib/argv-iter.h: Include arg-nonnull.h.
29492         (_ATTRIBUTE_NONNULL_): Remove macro.
29493         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
29494         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
29495         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
29496         optimization.
29497         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
29498         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
29499         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
29500         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
29501         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
29502         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
29503         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
29504         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
29505         * modules/arpa_inet (Depends-on): Add arg-nonnull.
29506         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
29507         * modules/dirent (Depends-on): Add arg-nonnull.
29508         (Makefile.am): Insert arg-nonnull.h into dirent.h.
29509         * modules/fcntl-h (Depends-on): Add arg-nonnull.
29510         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
29511         * modules/fnmatch (Depends-on): Add arg-nonnull.
29512         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
29513         * modules/getopt-posix (Depends-on): Add arg-nonnull.
29514         (Makefile.am): Insert arg-nonnull.h into getopt.h.
29515         * modules/glob (Depends-on): Add arg-nonnull.
29516         (Makefile.am): Insert arg-nonnull.h into glob.h.
29517         * modules/iconv_open (Depends-on): Add arg-nonnull.
29518         (Makefile.am): Insert arg-nonnull.h into iconv.h.
29519         * modules/inttypes (Depends-on): Add arg-nonnull.
29520         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
29521         * modules/locale (Depends-on): Add arg-nonnull.
29522         (Makefile.am): Insert arg-nonnull.h into locale.h.
29523         * modules/math (Depends-on): Add arg-nonnull.
29524         (Makefile.am): Insert arg-nonnull.h into math.h.
29525         * modules/netdb (Depends-on): Add arg-nonnull.
29526         (Makefile.am): Insert arg-nonnull.h into netdb.h.
29527         * modules/search (Depends-on): Add arg-nonnull.
29528         (Makefile.am): Insert arg-nonnull.h into search.h.
29529         * modules/signal (Depends-on): Add arg-nonnull.
29530         (Makefile.am): Insert arg-nonnull.h into signal.h.
29531         * modules/spawn (Depends-on): Add arg-nonnull.
29532         (Makefile.am): Insert arg-nonnull.h into spawn.h.
29533         * modules/stdio (Depends-on): Add arg-nonnull.
29534         (Makefile.am): Insert arg-nonnull.h into stdio.h.
29535         * modules/stdlib (Depends-on): Add arg-nonnull.
29536         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
29537         * modules/string (Depends-on): Add arg-nonnull.
29538         (Makefile.am): Insert arg-nonnull.h into string.h.
29539         * modules/strings (Depends-on): Add arg-nonnull.
29540         (Makefile.am): Insert arg-nonnull.h into strings.h.
29541         * modules/sys_socket (Depends-on): Add arg-nonnull.
29542         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
29543         * modules/sys_stat (Depends-on): Add arg-nonnull.
29544         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
29545         * modules/sys_time (Depends-on): Add arg-nonnull.
29546         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
29547         * modules/sys_times (Depends-on): Add arg-nonnull.
29548         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
29549         * modules/sys_utsname (Depends-on): Add arg-nonnull.
29550         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
29551         * modules/time (Depends-on): Add arg-nonnull.
29552         (Makefile.am): Insert arg-nonnull.h into time.h.
29553         * modules/unistd (Depends-on): Add arg-nonnull.
29554         (Makefile.am): Insert arg-nonnull.h into unistd.h.
29555         * modules/wchar (Depends-on): Add arg-nonnull.
29556         (Makefile.am): Insert arg-nonnull.h into wchar.h.
29557         * modules/argv-iter (Depends-on): Add arg-nonnull.
29558         * tests/test-canonicalize.c (null_ptr): New function.
29559         (main): Use it.
29560         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
29561         (main): Use it.
29562         * tests/test-memmem.c (null_ptr): New function.
29563         (main): Use it.
29564         Reported by Jim Meyering.
29565
29566 2009-12-10  Bruno Haible  <bruno@clisp.org>
29567
29568         Use spaces for indentation, not tabs.
29569         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29570         * m4/*.m4: Untabify.
29571         * build-aux/*.h: Untabify.
29572         * tests/**/*.[hc]: Untabify.
29573         * README: New section "Indent with spaces, not TABs", based on
29574         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
29575         * NEWS: Mention the change.
29576
29577 2009-12-10  Bruno Haible  <bruno@clisp.org>
29578
29579         pty test: Fix link error.
29580         * modules/pty-tests (Makefile.am): Add the default LDADD value to
29581         test_pty_LDADD.
29582
29583 2009-12-07  Simon Josefsson  <simon@josefsson.org>
29584
29585         * modules/pty: New file.
29586         * modules/pty-tests: New file.
29587         * m4/pty.m4: New file.
29588         * tests/test-pty.c: New file.
29589         * doc/glibc-headers/pty.texi: Modified.
29590         * doc/glibc-functions/forkpty.texi: Modified.
29591         * doc/glibc-functions/openpty.texi: Modified.
29592
29593 2009-12-10  Bruno Haible  <bruno@clisp.org>
29594
29595         Avoid syntax error in C++ mode.
29596         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
29597
29598 2009-12-10  Bruno Haible  <bruno@clisp.org>
29599
29600         Use sed with option -e.
29601         * gnulib-tool (func_version, func_emit_copyright_notice,
29602         func_emit_initmacro_end, func_import, func_create_testdir): Pass
29603         option -e to sed.
29604         * modules/link-warning (Makefile.am): Likewise.
29605
29606 2009-12-10  Jim Meyering  <meyering@redhat.com>
29607
29608         mgetgroups: do not write bytes beyond end of malloc'd buffer
29609         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
29610         username, we call getgroups with a one-element-shorter buffer,
29611         but still told it the length was original, max_n_groups.
29612
29613 2009-12-09  Eric Blake  <ebb9@byu.net>
29614
29615         cloexec: relax license
29616         * modules/cloexec (Maintainer): Add myself.
29617         (License): Use LGPL, not GPL.
29618
29619         link-warning: optimize generation
29620         * modules/link-warning (Makefile.am): Reduce process usage.
29621
29622 2009-12-09  Bruno Haible  <bruno@clisp.org>
29623
29624         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
29625         workaround was added on 2009-11-17.
29626
29627 2009-12-09  Jim Meyering  <meyering@redhat.com>
29628             Bruno Haible  <bruno@clisp.org>
29629
29630         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
29631         * modules/link-warning (Makefile.am): Make the comment-removing sed
29632         command more robust in the face of bootstrap-prepended comment lines.
29633
29634 2009-12-09  Bruno Haible  <bruno@clisp.org>
29635
29636         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
29637         most one group.
29638
29639 2009-12-09  Simon Josefsson <simon@josefsson.org>
29640             Bruno Haible  <bruno@clisp.org>
29641
29642         * build-aux/link-warning.h: Add copyright notice.
29643         * modules/link-warning (Makefile.am): Generate link-warning.h from
29644         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
29645         * NEWS: Mention change in link-warning module.
29646         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
29647         * modules/dirent (Makefile.am): Add dependency to dirent.h.
29648         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
29649         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
29650         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
29651         * modules/math (Makefile.am): Add dependency to math.h.
29652         * modules/search (Makefile.am): Add dependency to search.h.
29653         * modules/signal (Makefile.am): Add dependency to signal.h.
29654         * modules/spawn (Makefile.am): Add dependency to spawn.h.
29655         * modules/stdio (Makefile.am): Add dependency to stdio.h.
29656         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
29657         * modules/string (Makefile.am): Add dependency to string.h.
29658         * modules/strings (Makefile.am): Add dependency to strings.h.
29659         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
29660         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
29661         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
29662         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
29663         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
29664         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29665         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29666         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29667         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29668
29669 2009-12-09  Bruno Haible  <bruno@clisp.org>
29670
29671         fchdir: Optimize away rpl_fstat when possible.
29672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29673         REPLACE_OPEN_DIRECTORY.
29674         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29675
29676 2009-12-09  Bruno Haible  <bruno@clisp.org>
29677
29678         * lib/fchdir.c: Update comment.
29679
29680 2009-12-09  Bruno Haible  <bruno@clisp.org>
29681
29682         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29683
29684 2009-12-08  Eric Blake  <ebb9@byu.net>
29685
29686         fchdir: avoid memory leak on re-registration.
29687         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29688
29689 2009-12-08  Jim Meyering  <meyering@redhat.com>
29690
29691         init.sh: avoid Solaris 10 /bin/sh portability problem
29692         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29693         sourced script:
29694           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29695           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29696           bar
29697         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29698         and two tests used that idiom.
29699         * tests/init.sh: Update suggested usage comments.
29700         (path_prepend_): New function, to be used in place
29701         of the --src-path=DIR option.
29702         (setup_): Move PATH-prepending code into path_prepend_.
29703         * tests/test-pread.sh: Adapt to new usage.
29704         * tests/test-xalloc-die.sh: Likewise.
29705
29706 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29707
29708         * doc/gnulib.texi (Glibc pty.h): Add.
29709         * doc/glibc-functions/forkpty.texi: Add.
29710         * doc/glibc-functions/openpty.texi: Add.
29711         Suggested by Bruno Haible.
29712
29713 2009-12-08  Eric Blake  <ebb9@byu.net>
29714
29715         fchdir: fix logic bugs
29716         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29717         * tests/test-fchdir.c (main): Enhance test.
29718         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29719         is in use.
29720
29721         dup2: fix logic bugs
29722         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29723         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29724         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29725         exists.
29726         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29727
29728 2009-12-07  Eric Blake  <ebb9@byu.net>
29729
29730         unlink: fix m4 detection
29731         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29732
29733         unistd-safer: add unit test
29734         * modules/unistd-safer-tests: New file.
29735         * tests/test-dup-safer.c: Likewise.
29736         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29737         * tests/test-dup2.c (setmode): Likewise.
29738         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29739
29740         cloexec: preserve text vs. binary across dup_cloexec
29741         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29742         mode.
29743         * modules/dup2-tests (Depends-on): Add binary-io.
29744         * modules/cloexec-tests (Depends-on): Likewise.
29745         * tests/test-dup2.c (setmode, is_mode): New helpers.
29746         (main): Add tests that translation mode is preserved.
29747         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29748         Reported by Bruno Haible.
29749
29750         mgetgroups: reduce duplicate listings
29751         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29752         resulting array.
29753         * tests/test-chown.h (test_chown): Simplify client.
29754         * tests/test-lchown.h (test_lchown): Likewise.
29755
29756 2009-12-06  Bruno Haible  <bruno@clisp.org>
29757
29758         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29759         value.
29760
29761 2009-12-06  Bruno Haible  <bruno@clisp.org>
29762
29763         * lib/progname.c: Include stdio.h, stdlib.h.
29764         (set_program_name): Reject a NULL argument.
29765
29766 2009-12-05  Eric Blake  <ebb9@byu.net>
29767
29768         pipe2-safer: new module
29769         * modules/pipe2-safer: New file.
29770         * lib/unistd-safer.h (pipe2_safer): New prototype.
29771         * lib/unistd--.h (pipe2): New wrapper.
29772         * lib/pipe-safer.c (pipe2_safer): New function.
29773         * modules/pipe (Depends-on): Add pipe2-safer.
29774         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29775
29776         stdlib-safer: preserve cloexec flag for mkostemp[s]
29777         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29778         fd_safer_flag.
29779
29780         unistd-safer: allow preservation of cloexec status via flag
29781         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29782         prototypes.
29783         * lib/dup-safer.c (dup_safer_flag): New function.
29784         * lib/fd-safer.c (fd_safer_flag): Likewise.
29785         * modules/cloexec (configure.ac): Set witness.
29786
29787         test-dup2: enhance test
29788         * modules/dup2-tests (Depends-on): Add cloexec.
29789         * tests/test-dup2.c (main): Enhance test.
29790
29791         cloexec: add dup_cloexec
29792         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29793         header and comments.
29794         * lib/cloexec.c (set_cloexec_flag): Add comments.
29795         (dup_cloexec): New function, with mingw implementation borrowed
29796         from...
29797         * lib/w32spawn.h (dup_noinherit): ...here.
29798         * modules/execute (Depends-on): Add cloexec.
29799         * modules/pipe (Depends-on): Likewise.
29800         * modules/cloexec (Depends-on): Add dup2.
29801         * modules/cloexec-tests (Files): New file.
29802         * tests/test-cloexec.c: Likewise.
29803
29804         test-xalloc-die: fix test for mingw
29805         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29806         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29807         directory and .exe suffix off argv[0] output.
29808
29809         test-fseeko: fix test for mingw
29810         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29811         than undefining fseek, so test will pass on mingw.
29812
29813 2009-12-05  Bruno Haible  <bruno@clisp.org>
29814
29815         * lib/progname.h (set_program_name): Clarify specification.
29816         * lib/progname.c (set_program_name): Likewise.
29817         Reported by Jim Meyering.
29818
29819 2009-12-05  Jim Meyering  <meyering@redhat.com>
29820
29821         maint.mk: backslash-escape parens in default regexp
29822         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29823         backslash-escape the literal parentheses.
29824
29825         maint.mk: news-date-check: use grep -E
29826         * top/maint.mk (today): Define a Make variable, not a...
29827         (news-date-check): ...shell variable.
29828         (news-date-regexp): Use the Make variable.
29829         Use grep's -E option.  Change the failing diagnostic to mention
29830         the variable, $(news-date-regexp).
29831
29832 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29833
29834         maintainer-makefile: allow customization of NEWS entry format
29835         * top/maint.mk (news-date-regexp): New overridable variable.
29836         (news-date-check): Use it.
29837
29838 2009-12-04  Eric Blake  <ebb9@byu.net>
29839
29840         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29841         * lib/mgetgroups.h (xgetgroups): New prototype.
29842         * lib/mgetgroups.c (xgetgroups): New wrapper.
29843         (mgetgroups): Handle ENOSYS.
29844         * modules/mgetgroups (Depends-on): Add realloc.
29845         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29846
29847         mgetgroups: avoid argument promotion issues with -1
29848         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29849         for invalid gid_t.
29850         * tests/test-chown.h (getegid, test_chown): Likewise.
29851         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29852
29853 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29854
29855         exclude: Fix header file problems.
29856         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29857
29858 2009-12-01  Jim Meyering  <meyering@redhat.com>
29859
29860         fts: fts_open: do not let an empty string cause immediate failure
29861         This is required in support of GNU rm, for which the command
29862         "rm A '' B" must process and remove both A and B, in spite of
29863         the empty string argument.
29864         * lib/fts.c (fts_open): Do not let the presence of an empty string
29865         cause fts_open to fail immediately.  Most fts-using tools must be
29866         able to process all arguments, in order, and can be expected to
29867         diagnose such arguments themselves.
29868
29869 2009-11-30  Eric Blake  <ebb9@byu.net>
29870
29871         utimens: fix compilation error
29872         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29873         Declare variable at right scope.
29874
29875 2009-11-29  Jim Meyering  <meyering@redhat.com>
29876
29877         bootstrap: handle perl-5.11's changed --version output
29878         * build-aux/bootstrap (get_version): Handle perl separately,
29879         since perl-5.11's --version output is different.
29880
29881 2009-11-28  Jim Meyering  <meyering@redhat.com>
29882
29883         userspec: depend on the inttostr module, too
29884         * modules/userspec (Depends-on): Add inttostr.
29885
29886         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29887         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29888         number of MAXUID when it evaluates to (uid_t) -1.
29889         Likewise for group ID.  Reported by Matt McCutchen in
29890         <http://savannah.gnu.org/bugs/?28113>
29891
29892         userspec: reformat to use spaces, not TABs
29893         * lib/userspec.c: Expand TABs to spaces.
29894         Add Emacs' "indent-tabs-mode: nil" hint.
29895
29896 2009-11-27  Eric Blake  <ebb9@byu.net>
29897
29898         getopt-gnu: flush out another BSD bug
29899         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29900         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29901         flush out BSD bug.
29902         * tests/test-getopt.h (test_getopt): End lists with NULL.
29903         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29904         (test_getopt_long_posix): Enhance test.
29905         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29906         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29907         getopt-gnu.
29908         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29909         Likewise.
29910
29911 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29912
29913         * modules/idpriv-droptemp-tests (Notice): Fix text.
29914
29915 2009-11-27  Jim Meyering  <meyering@redhat.com>
29916
29917         test-xalloc-die: avoid spurious failure due to libtool argv difference
29918         In a libtool-enabled project, this test would fail due to a difference
29919         in the emitted program name, e.g.,
29920         -test-xalloc-die: memory exhausted
29921         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29922         Use program to avoid that.
29923         * modules/xalloc-die-tests (Depends-on): Add progname.
29924         * tests/test-xalloc-die.c: Include progname.h".
29925         (program_name): Remove decl.
29926         (main): Call set_program_name.
29927         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29928
29929 2009-11-26  Richard Jones  <rjones@redhat.com>
29930
29931         w32sock: leave win32 error in place.
29932         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29933
29934 2009-11-26  Eric Blake  <ebb9@byu.net>
29935
29936         init.sh: suggest to use skip_ and fail_ functions in comments
29937         * tests/init.sh: Add a sentence.
29938
29939 2009-11-25  Bruno Haible  <bruno@clisp.org>
29940
29941         init.sh: add documentation in comments
29942         * tests/init.sh: Add some developer and user documentation.
29943
29944 2009-11-26  Jim Meyering  <meyering@redhat.com>
29945
29946         init.sh: accommodate even those who specify bogus srcdir manually
29947         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29948         configure-time tests to be sanitized, so that there is no need to
29949         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29950         (with no double quotes) suffices.  However, since tests may be
29951         invoked manually, and since you may explicitly set srcdir to the
29952         name of a directory containing spaces, do quote its uses here.
29953         * tests/test-pread.sh: Likewise.
29954         Suggested by Bruno Haible.
29955
29956         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29957         * tests/test-pread.sh: Write no data into the pipe, because
29958         test-pread actually reads none.  This avoids a diagnostic,
29959         "bash: echo: write error: Broken pipe", that arises in the unusual
29960         event something is ignoring SIGPIPE, and might be interpreted
29961         as some sort of failure.  Reported by Bruno Haible.
29962
29963 2009-11-25  Jim Meyering  <meyering@redhat.com>
29964
29965         test-pread: cover failure with ESPIPE and EINVAL
29966         * tests/test-pread.c (main): Test for failure, too.
29967         * tests/test-pread.sh: Invoke with stdin on a pipe.
29968         Suggested by Eric Blake.
29969
29970         pread: improvement and fix
29971         * modules/pread (Depends-on): Depend on lseek, for portability to
29972         e.g., mingw.  Suggested by Eric Blake.
29973         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29974
29975         unistd.in.h: correct declaration of pread
29976         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29977         Reported by Richard W.M. Jones.
29978
29979         test-pread.sh: distribute the test script
29980         * modules/pread-tests (Files): Include test-pread.sh.
29981
29982         test-pread.sh: clean up
29983         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29984         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29985         That is unnecessary, since it's always ".".
29986         Suggestion from Eric Blake.
29987
29988         test-pread.sh: make executable
29989         * tests/test-pread.sh: Set executable bit.
29990         Reported by Eric Blake.
29991
29992         correct typo in test-pread.sh
29993         * tests/test-pread.sh: Add #! line.
29994
29995         test pread
29996         * tests/test-pread.c: New file.
29997         * tests/test-pread.sh: Likewise.
29998         * modules/pread-tests: Likewise.
29999
30000         pread: new module
30001         * modules/pread: New file.
30002         * lib/unistd.in.h (pread): Define/declare.
30003         * lib/pread.c (pread): New file.
30004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
30005         * modules/unistd (Makefile.am): Substitute witnesses.
30006         * doc/posix-functions/pread.texi (pread): Update.
30007         * MODULES.html.sh: Add pread.
30008
30009 2009-11-25  Jim Meyering  <meyering@redhat.com>
30010
30011         tests/init.sh: new file to be used via most *.sh tests
30012         * tests/init.sh: New file.
30013
30014 2009-11-25  Eric Blake  <ebb9@byu.net>
30015
30016         utimens: work around older Linux failure with symlinks
30017         * lib/utimens.c (lutimensat_works_really): New variable.
30018         (fdutimens, lutimens): Use it to manage kernels that support
30019         nanosecond times on files, but not on symlinks.
30020         Reported by OndÅ™ej Vašík.
30021
30022         utimes: fix configure grammar
30023         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
30024
30025 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
30026
30027         regex: Fix fastmap for multibyte character ranges.
30028         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
30029         characters when a multibyte character range is included.
30030
30031 2009-11-22  Andy Wingo  <wingo@pobox.com>
30032
30033         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
30034         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
30035
30036 2009-11-24  Bruno Haible  <bruno@clisp.org>
30037
30038         doc: Most *_l functions exist in MacOS X 10.5.
30039         * doc/posix-functions/duplocale.texi: Update platforms list.
30040         * doc/posix-functions/freelocale.texi: Likewise.
30041         * doc/posix-functions/newlocale.texi: Likewise.
30042         * doc/posix-functions/uselocale.texi: Likewise.
30043         * doc/posix-functions/isalnum_l.texi: Likewise.
30044         * doc/posix-functions/isalpha_l.texi: Likewise.
30045         * doc/posix-functions/isblank_l.texi: Likewise.
30046         * doc/posix-functions/iscntrl_l.texi: Likewise.
30047         * doc/posix-functions/isdigit_l.texi: Likewise.
30048         * doc/posix-functions/isgraph_l.texi: Likewise.
30049         * doc/posix-functions/islower_l.texi: Likewise.
30050         * doc/posix-functions/isprint_l.texi: Likewise.
30051         * doc/posix-functions/ispunct_l.texi: Likewise.
30052         * doc/posix-functions/isspace_l.texi: Likewise.
30053         * doc/posix-functions/isupper_l.texi: Likewise.
30054         * doc/posix-functions/iswalnum_l.texi: Likewise.
30055         * doc/posix-functions/iswalpha_l.texi: Likewise.
30056         * doc/posix-functions/iswblank_l.texi: Likewise.
30057         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30058         * doc/posix-functions/iswctype_l.texi: Likewise.
30059         * doc/posix-functions/iswdigit_l.texi: Likewise.
30060         * doc/posix-functions/iswgraph_l.texi: Likewise.
30061         * doc/posix-functions/iswlower_l.texi: Likewise.
30062         * doc/posix-functions/iswprint_l.texi: Likewise.
30063         * doc/posix-functions/iswpunct_l.texi: Likewise.
30064         * doc/posix-functions/iswspace_l.texi: Likewise.
30065         * doc/posix-functions/iswupper_l.texi: Likewise.
30066         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30067         * doc/posix-functions/isxdigit_l.texi: Likewise.
30068         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
30069         * doc/posix-functions/strcasecmp_l.texi: Likewise.
30070         * doc/posix-functions/strcoll_l.texi: Likewise.
30071         * doc/posix-functions/strfmon_l.texi: Likewise.
30072         * doc/posix-functions/strftime_l.texi: Likewise.
30073         * doc/posix-functions/strncasecmp_l.texi: Likewise.
30074         * doc/posix-functions/strxfrm_l.texi: Likewise.
30075         * doc/posix-functions/tolower_l.texi: Likewise.
30076         * doc/posix-functions/toupper_l.texi: Likewise.
30077         * doc/posix-functions/towctrans_l.texi: Likewise.
30078         * doc/posix-functions/towlower_l.texi: Likewise.
30079         * doc/posix-functions/towupper_l.texi: Likewise.
30080         * doc/posix-functions/wcscoll_l.texi: Likewise.
30081         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30082         * doc/posix-functions/wctrans_l.texi: Likewise.
30083         * doc/posix-functions/wctype_l.texi: Likewise.
30084         * doc/glibc-functions/strptime_l.texi: Likewise.
30085         * doc/glibc-functions/strtod_l.texi: Likewise.
30086         * doc/glibc-functions/strtof_l.texi: Likewise.
30087         * doc/glibc-functions/strtol_l.texi: Likewise.
30088         * doc/glibc-functions/strtold_l.texi: Likewise.
30089         * doc/glibc-functions/strtoll_l.texi: Likewise.
30090         * doc/glibc-functions/strtoul_l.texi: Likewise.
30091         * doc/glibc-functions/strtoull_l.texi: Likewise.
30092         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30093         * doc/glibc-functions/wcstod_l.texi: Likewise.
30094         * doc/glibc-functions/wcstof_l.texi: Likewise.
30095         * doc/glibc-functions/wcstol_l.texi: Likewise.
30096         * doc/glibc-functions/wcstold_l.texi: Likewise.
30097         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30098         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30099         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30100
30101 2009-11-24  Bruno Haible  <bruno@clisp.org>
30102
30103         duplocale: Fix logic bug.
30104         * lib/duplocale.c: Don't include <langinfo.h>.
30105         (_NL_LOCALE_NAME): Remove macro.
30106         (rpl_duplocale): Use setlocale instead of nl_langinfo.
30107         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
30108
30109 2009-11-23  Jim Meyering  <meyering@redhat.com>
30110
30111         test-update-copyright: don't hard-code /usr/bin/perl
30112         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
30113         perl to print the current year.  Gilles Espinasse reported that
30114         the replaced use of perl was hard-coded as /usr/bin/perl.
30115
30116 2009-11-23  Bruno Haible  <bruno@clisp.org>
30117
30118         duplocale: Add support for glibc 2.3.x.
30119         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
30120
30121 2009-11-22  Bruno Haible  <bruno@clisp.org>
30122
30123         vasnprintf: Tiny optimization.
30124         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
30125         MacOS X.
30126
30127 2009-11-22  Bruno Haible  <bruno@clisp.org>
30128
30129         Tests for module 'duplocale'.
30130         * modules/duplocale-tests: New file.
30131         * tests/test-duplocale.c: New file.
30132
30133         New module 'duplocale'.
30134         * m4/duplocale.m4: New file.
30135         * lib/locale.in.h (duplocale): New declaration.
30136         * lib/duplocale.c: New file.
30137         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
30138         gl_LOCALE_H_DEFAULTS): New macros.
30139         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
30140         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
30141         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
30142         REPLACE_DUPLOCALE.
30143         * modules/duplocale: New file.
30144         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
30145
30146 2009-11-22  Bruno Haible  <bruno@clisp.org>
30147
30148         * modules/locale-tests (configure.ac): Test for newlocale function.
30149         * tests/test-locale.c: When the system has extended locale functions,
30150         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
30151
30152         locale: Make locale_t available when possible.
30153         * lib/locale.in.h: Include <xlocale.h> when it exists.
30154         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
30155         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
30156         * modules/locale (Depends-on): Add extensions.
30157         (Makefile.am): Also substitute HAVE_XLOCALE_H.
30158         * doc/posix-headers/locale.texi: Document the problem with locale_t.
30159
30160 2009-11-22  Bruno Haible  <bruno@clisp.org>
30161
30162         Add comments.
30163         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
30164         invocation.
30165         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30166         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30167         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30168
30169 2009-11-22  Bruno Haible  <bruno@clisp.org>
30170
30171         error: account for the possibility of freopen (stdout).
30172         * lib/error.c: Include <unistd.h>.
30173         (flush_stdout): New function, extracted from error and error_at_line.
30174         Determine stdout's fd dynamically.
30175         (error, error_at_line): Invoke flush_stdout.
30176         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
30177         * modules/error (Depends-on): Add unistd.
30178
30179 2009-11-22  Bruno Haible  <bruno@clisp.org>
30180
30181         diffseq: Add comment.
30182         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
30183
30184 2009-11-22  Jim Meyering  <meyering@redhat.com>
30185
30186         c-stack: avoid defining an unused static function
30187         * lib/c-stack.c (find_stack_direction): Do not define this function
30188         when it will not be used.
30189
30190         diffseq: avoid spurious gcc warnings
30191         * lib/diffseq.h (IF_LINT2): Define.
30192         (compareseq): Use it to initialize two members of "part".
30193         This avoids two used-uninitialized warnings.
30194
30195 2009-11-21  Jim Meyering  <meyering@redhat.com>
30196
30197         c-stack: avoid "ignoring return value of `write'" warning
30198         * lib/c-stack.c: Include "ignore-value.h".
30199         (die): Explicitly ignore each write return value.
30200         * modules/c-stack (Depends-on): Add ignore-value.
30201
30202 2009-11-21  Bruno Haible  <bruno@clisp.org>
30203
30204         diffseq: reduce scope of variable 'best'.
30205         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
30206         variable, earlier used for two different purposes.
30207
30208 2009-11-21  Jim Meyering  <meyering@redhat.com>
30209
30210         diffseq: remove useless assignment to "best"
30211         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
30212         assignment.  At that point "best" is already guaranteed to be zero.
30213
30214 2009-11-20  Eric Blake  <ebb9@byu.net>
30215
30216         build: mention ftp redirector in release announcements
30217         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
30218         values that used to come from cfg.mk; mention FTP redirect URL.
30219         * build-aux/announce-gen: Mention the mirror list.
30220         Suggested by Karl Berry.
30221
30222         nanosleep: improve port to mingw
30223         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
30224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
30225         LIB_NANOSLEEP, but only when needed.
30226         * modules/select (Link): Document LIBSOCKET.
30227         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
30228         enough.
30229
30230         nanosleep: work around cygwin bug
30231         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
30232         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
30233         bug.
30234         (getnow): Delete, not needed.
30235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
30236         LIB_CLOCK_GETTIME.
30237         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
30238         clock-time, gettime.
30239         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
30240         bug.
30241         * modules/nanosleep-tests: New test.
30242         * tests/test-nanosleep.c: New file.
30243
30244         sleep: work around cygwin bug
30245         * lib/sleep.c (rpl_sleep): Work around the bug.
30246         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
30247         (gl_PREREQ_SLEEP): Delete unused macro.
30248         * modules/sleep (Depends-on): Add verify.
30249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30250         * modules/unistd (Makefile.am): Substitute witness.
30251         * lib/unistd.in.h (sleep): Update prototype.
30252         * doc/posix-functions/sleep.texi (sleep): Document the bug.
30253         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
30254         * modules/sleep-tests (Depends-on): Check for alarm.
30255
30256 2009-11-20  Jim Meyering  <meyering@redhat.com>
30257
30258         maint.mk: improve sc_prohibit_magic_number_exit
30259         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
30260         so it does not match uses like System.exit(1).
30261         Add comments showing how to correct all offenders.
30262
30263 2009-11-19  Eric Blake  <ebb9@byu.net>
30264
30265         xalloc-die-tests: add missing library
30266         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
30267
30268         test-xvasprintf: silence compiler warnings
30269         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
30270         empty string from gcc.
30271
30272 2009-11-19  Jim Meyering  <meyering@redhat.com>
30273
30274         xfreopen: new module, from coreutils
30275         * modules/xfreopen: New module.
30276         * lib/xfreopen.c: New file.
30277         * lib/xfreopen.h: New file.
30278         * MODULES.html.sh (File stream based Input/Output"): Add it.
30279
30280 2009-11-19  Eric Blake  <ebb9@byu.net>
30281
30282         manywarnings: depend on warnings
30283         * modules/manywarnings (Depends-on): Add warnings.
30284
30285         build: avoid compiler warnings
30286         * lib/select.c (rpl_select): Delete unused variable.
30287         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
30288
30289 2009-11-18  Eric Blake  <ebb9@byu.net>
30290
30291         tests: avoid false negative with --with-packager
30292         * tests/test-version-etc.sh: Discard packager information.
30293         * tests/test-argp-version-etc-1.sh: Likewise.
30294         Reported by Mike Frysinger.
30295
30296         utimens: fix regression on Solaris
30297         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
30298         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
30299         can only change fd timestamps via futimesat.  Instead, use an
30300         additional witness macro to avoid BSD bug.
30301         Reported by Jim Meyering.
30302
30303 2009-11-17  Eric Blake  <ebb9@byu.net>
30304
30305         usleep: use it to simplify tests
30306         * modules/stat-time-tests (Depends-on): Add usleep.
30307         (configure.ac): Drop usleep check.
30308         * modules/chown-tests (Depends-on, configure.ac): Likewise.
30309         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
30310         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
30311         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
30312         * modules/openat-tests (Depends-on, configure.ac): Likewise.
30313         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
30314         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
30315         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
30316         Likewise.
30317         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
30318         * tests/test-lchown.h (nap): Likewise.
30319         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
30320         * tests/test-stat-time.c (nap): Likewise.
30321         * tests/test-utimens-common.h (nap): Update comments.
30322
30323         usleep: new module
30324         * modules/usleep: New file.
30325         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
30326         * lib/usleep.c (usleep): Likewise.
30327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30328         * modules/unistd (Makefile.am): Substitute witnesses.
30329         * lib/unistd.in.h (usleep): Add declaration.
30330         * doc/pastposix-functions/usleep.texi (usleep): Document this.
30331         * MODULES.html.sh (Date and time): Likewise.
30332         * modules/usleep-tests (Depends-on): New test.
30333         * tests/test-usleep.c: New file.
30334
30335         chown: work around OpenBSD bug
30336         * lib/chown.c (rpl_chown): Work around the bug.
30337         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
30338         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
30339         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
30340         * modules/chown (Depends-on): Add stdbool.
30341         * modules/lchown (Depends-on): Likewise.
30342         * doc/posix-functions/chown.texi (chown): Document the bug.
30343         * doc/posix-functions/lchown.texi (lchown): Likewise.
30344         * tests/test-lchown.h (test_chown): Relax test.
30345
30346         mkstemp: avoid conflict with C++ keyword template
30347         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
30348         * lib/mkostemp.c (mkostemp): Likewise.
30349         * lib/mkostemps.c (mkostemps): Likewise.
30350         * lib/mkstemp.c (mkstemp): Likewise.
30351         * lib/mkstemps.c (mkstemps): Likewise.
30352
30353         xalloc-die-tests: optimize
30354         * tests/test-xalloc-die.sh: Reduce number of processes.
30355
30356 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30357
30358         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
30359         patch from ludo@gnu.org (Ludovic Courtès).
30360
30361 2009-11-17  Jim Meyering  <meyering@redhat.com>
30362
30363         version-etc: use proper license string
30364         * modules/version-etc (License): Use LGPL, not LGPLv3+.
30365         * modules/version-etc-fsf: Likewise.
30366
30367 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30368
30369         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
30370         printed to stdout.  Deal with EOL differences.
30371
30372 2009-11-17  Eric Blake  <ebb9@byu.net>
30373
30374         unsetenv: work around Solaris bug
30375         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
30376         * lib/unsetenv.c (rpl_unsetenv): Work around it.
30377         Reported by Jim Meyering.
30378
30379         vasnprintf: avoid compiler warnings
30380         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
30381         variables.
30382         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
30383
30384 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30385
30386         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
30387         settings since xalloc-die is no longer the self test,
30388         xalloc-die.sh is.
30389
30390 2009-11-17  Jim Meyering  <meyering@redhat.com>
30391
30392         test-xalloc-die.sh: make the code agree with the commit log
30393         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
30394         at the end, just in case you happen to have a test-xalloc-die
30395         program in some other PATH directory.
30396
30397         test-xalloc-die.sh: fix a portability bug
30398         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
30399         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
30400         Otherwise, argv[0] (as often seen in diagnostics) would be too
30401         system-dependent, sometimes with, and sometimes without the leading "./".
30402
30403         version-etc-fsf: relax license to LGPLv3+
30404         * modules/version-etc-fsf (License): Relax license.
30405
30406 2009-11-16  Eric Blake  <ebb9@byu.net>
30407
30408         xalloc-die-tests: avoid printing null pointer
30409         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30410         shell script.
30411         * tests/test-xalloc-die.c (program_name): Declare.
30412         * tests/test-xalloc-die.sh (tmpfiles): New file.
30413
30414         setenv, unsetenv: work around various bugs
30415         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
30416         (setenv) [HAVE_SETENV]: Work around bugs.
30417         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
30418         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
30419         for bugs.
30420         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
30421         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
30422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
30423         * modules/stdlib (Makefile.am): Update substitutions.
30424         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
30425         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
30426         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30427         * modules/setenv-tests: New test.
30428         * modules/unsetenv-tests: Likewise.
30429         * tests/test-setenv.c: New file.
30430         * tests/test-unsetenv.c: Likewise.
30431
30432 2009-11-16  Jim Meyering  <meyering@redhat.com>
30433
30434         version-etc: relax license to LGPLv3+
30435         * modules/version-etc (License): Relax license.
30436
30437         better AC_REQUIRE expanded-before-required-warning avoidance
30438         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
30439         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
30440         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
30441         which is no longer needed.
30442
30443 2009-11-16  Eric Blake  <ebb9@byu.net>
30444
30445         test-freading: clean up temporary file
30446         * tests/test-freading.c (main): Remove file on success, and use
30447         ASSERT more liberally.
30448         Reported by Jim Meyering.
30449
30450 2009-11-16  Jim Meyering  <meyering@redhat.com>
30451
30452         avoid new AC_REQUIRE expanded-before-required warnings
30453         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
30454         merely using it.
30455         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
30456         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
30457
30458 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30459
30460         * tests/test-xalloc-die.c: New file.
30461         * modules/xalloc-die-tests: New file.
30462         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
30463         XFAIL_TESTS so it can be appended by modules.
30464
30465 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30466
30467         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
30468         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
30469
30470 2009-11-14  Eric Blake  <ebb9@byu.net>
30471
30472         fnmatch: avoid compiler warning
30473         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
30474         to silence compiler warning about mismatch signedness in ?:.
30475         Reported by Robert Millan.
30476
30477         intprops: add double-inclusion guard
30478         * lib/intprops.h: Allow idempotent includes.
30479         Suggested by Bruce Korb.
30480
30481         openat: detect Solaris fchownat bug
30482         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
30483         penalizing glibc chownat when only lchownat is broken.
30484         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
30485         trailing slash bugs.
30486         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
30487         * modules/openat-tests (Files): Include more files.
30488         (Depends-on): Add mgetgroups, sleep, stat-time.
30489         (configure.ac): Add additional checks.
30490         (Makefile.am): Build new test.
30491         * tests/test-fchownat.c: New file.
30492
30493         lchown: detect Solaris and FreeBSD bug
30494         * lib/lchown.c (rpl_lchown): Work around bug.
30495         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
30496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30497         * modules/unistd (Makefile.am): Populate it.
30498         * lib/unistd.in.h (lchown): Update declaration.
30499         * doc/posix-functions/lchown.texi (lchown): Document the bug.
30500         * modules/lchown-tests: New file.
30501         * tests/test-lchown.h (test_lchown): Likewise.
30502         * tests/test-lchown.c (main): Likewise.
30503
30504         chown: detect Solaris and FreeBSD bug
30505         * lib/chown.c (rpl_chown): Work around bug.
30506         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
30507         (gl_PREREQ_CHOWN): Delete.
30508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30509         * modules/unistd (Makefile.am): Populate it.
30510         * lib/unistd.in.h (chown): Update declaration.
30511         * lib/lchown.c (chown): Update client.
30512         * modules/lchown (Depends-on): Add lstat.
30513         * doc/posix-functions/chown.texi (chown): Document the bug.
30514         * doc/posix-functions/getgroups.texi (getgroups): Document
30515         getgroups pitfall.
30516         * modules/chown-tests: New file.
30517         * tests/test-chown.h (test_chown): Likewise.
30518         * tests/test-chown.c (main): Likewise.
30519
30520 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
30521
30522         gnulib-tool: correctly detect absence of m4 directories
30523         * gnulib-tool: Avoid extra newline on data passed to wc -l.
30524
30525 2009-11-14  Jim Meyering  <meyering@redhat.com>
30526
30527         maint.mk: Prohibit inclusion of "xalloc.h" without use.
30528         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30529
30530 2009-11-14  John W. Eaton  <jwe@gnu.org>
30531
30532         strftime.h: wrap funtion declaration in extern "C" block
30533         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
30534
30535 2009-11-13  Eric Blake  <ebb9@byu.net>
30536
30537         getgroups: avoid compiler warning
30538         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
30539
30540         getgroups: work around FreeBSD bug
30541         * lib/getgroups.c (rpl_getgroups): Work around the bug.
30542         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
30543         * doc/posix-functions/getgroups.texi (getgroups): Document it.
30544         * tests/test-getgroups.c (main): Fix buffer overrun.
30545
30546         getgroups: avoid compilation failure
30547         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
30548         * modules/getgroups (Depends-on): Add stdint.
30549
30550 2009-11-13  Jim Meyering  <meyering@redhat.com>
30551
30552         test-getgroups: avoid compilation failure
30553         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
30554
30555 2009-11-13  Eric Blake  <ebb9@byu.net>
30556
30557         mgetgroups: new module, taken from coreutils
30558         * modules/mgetgroups: New file.
30559         * lib/mgetgroups.h: Likewise.
30560         * lib/mgetgroups.c (mgetgroups): Likewise.
30561         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
30562         * MODULES.html.sh (Users and groups): Mention it.
30563
30564         getgroups: don't expose GETGROUPS_T to user
30565         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
30566         an element at a time if GETGROUPS_T is wrong size.
30567         * lib/getugroups.h (getugroups): Change signature.
30568         * lib/unistd.in.h (getgroups): Likewise.
30569         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
30570         signature needs fixing.
30571         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
30572         AC_TYPE_GETGROUPS.
30573         * modules/group-member (Depends-on): Add getgroups.
30574         * lib/group-member.c (group_info, get_group_info): Use gid_t.
30575         (group_member): Rely on getgroups replacement.
30576         * lib/getugroups.c (getugroups): Use gid_t.
30577         * tests/test-getgroups.c (main): Likewise.
30578         * NEWS: Mention the signature change.
30579         * doc/posix-functions/getgroups.texi (getgroups): Mention the
30580         problem with signature.
30581         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
30582         GETGROUPS_T is still useful for setgroups.
30583
30584         getgroups, getugroups: provide stubs for mingw
30585         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
30586         * lib/getugroups.c (getugroups): Likewise.
30587         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
30588         function.  Modernize replacement scheme.
30589         (gl_PREREQ_GETGROUPS): Delete.
30590         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
30591         * modules/getgroups (configure.ac): Declare witness.
30592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30593         * modules/unistd (Depends-on): Substitute witness.
30594         * lib/unistd.in.h (getgroups): Declare replacement.
30595
30596         getgroups: avoid calling exit
30597         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
30598         drop xalloc.
30599         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
30600         dependencies.
30601         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
30602         exiting, in the rare case of malloc failure.
30603
30604         getgroups: fix logic error
30605         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
30606         has more than 20 groups.
30607         * modules/getgroups-tests: New test.
30608         * tests/test-getgroups.c: New file.
30609
30610 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30611
30612         * tests/test-base64.c: Improve.
30613
30614 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30615
30616         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
30617         Blake <ebb9@byu.net>.
30618
30619 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30620
30621         * tests/test-xvasprintf.c: Add %s%s related checks.
30622
30623 2009-11-12  Eric Blake  <ebb9@byu.net>
30624
30625         version-etc: match standards.texi style
30626         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
30627         and use <> only for URLs.
30628
30629 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
30630
30631         fts: do not fail on a submount during traversal
30632         * lib/fts.c (fts_build): Read the stat info again after opening
30633         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
30634         Original report at http://bugzilla.redhat.com/501848.
30635
30636 2009-11-12  Jim Meyering  <meyering@redhat.com>
30637
30638         bootstrap: sync from coreutils
30639         * build-aux/bootstrap (bootstrap_epilogue): New function.
30640         Use git_modules_config in one more place.  This make bootstrap's
30641         --gnulib-srcdir option more useful for testing.
30642
30643         bootstrap: generalize autoheader check
30644         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
30645         AC_CONFIG_HEADERS.
30646
30647 2009-11-11  Eric Blake  <ebb9@byu.net>
30648
30649         mkfifoat: use new modules for Solaris and BSD bugs
30650         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
30651         * lib/mkfifoat.c (mknodat): Split...
30652         * lib/mknodat.c (mknodat): ...into new file.
30653         * modules/mkfifoat (Files): Ship new file.
30654         (Depends-on): Add mkfifo, mknod.
30655         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
30656         (Depends-on): Add symlink.
30657         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
30658         redundant with test_mkfifo.h.
30659         (do_mkfifoat, do_mknodat): New helpers.
30660
30661         mknod: new module
30662         * modules/mknod: New file.
30663         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
30664         * lib/mknod.c (mknod): Likewise.
30665         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30666         defaults.
30667         * modules/sys_stat (Makefile.am): Substitute them.
30668         * lib/sys_stat.in.h (mknod): Declare replacement.
30669         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30670         Document it.
30671         * doc/posix-functions/mknod.texi (mknod): Likewise.
30672         * modules/mknod-tests: New test.
30673         * tests/test-mknod.c: Likewise.
30674
30675         mkfifo: new module
30676         * modules/mkfifo: New file.
30677         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30678         * lib/mkfifo.c (mkfifo): Likewise.
30679         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30680         defaults.
30681         * modules/sys_stat (Makefile.am): Substitute them.
30682         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30683         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30684         Document it.
30685         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30686         * modules/mkfifo-tests: New test.
30687         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30688         from test-mkfifoat.c.
30689         * tests/test-mkfifo.c: New file.
30690
30691         readlink: detect FreeBSD bug
30692         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30693         slash on symlink.
30694         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30695         * tests/test-readlink.h (test_readlink): Enhance test.
30696
30697         symlink: detect FreeBSD bug
30698         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30699         slash on symlink.
30700         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30701         * tests/test-symlink.h (test_symlink): Enhance test.
30702
30703 2009-11-10  Eric Blake  <ebb9@byu.net>
30704
30705         link: detect FreeBSD bug
30706         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30707         symlink.
30708         * doc/posix-functions/link.texi (link): Document the bug.
30709         * tests/test-link.h (test_link): Enhance test.
30710         * tests/test-linkat.c (main): Update caller.
30711
30712         unlink, remove: detect FreeBSD bug
30713         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30714         slash on symlink.
30715         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30716         * doc/posix-functions/remove.texi (remove): Likewise.
30717         * tests/test-unlink.h (test_unlink): Enhance test.
30718         * tests/test-remove.c (main): Likewise.
30719
30720 2009-11-09  Eric Blake  <ebb9@byu.net>
30721
30722         rename: detect FreeBSD bug
30723         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30724         slash on symlink.
30725         * modules/renameat-tests (Depends-on): Add filenamecat.
30726         * tests/test-rename.h (test_rename): Allow one more errno.
30727         * tests/test-renameat.c (main): Likewise.
30728         * doc/posix-functions/rename.texi (rename): Document the bug.
30729
30730         open: detect FreeBSD bug
30731         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30732         symlink.
30733         * doc/posix-functions/open.texi (open): Document the bug.
30734         * doc/posix-functions/utimes.texi (utimes): Likewise.
30735         * tests/test-open.h (test_open): Add parameters, and test symlink
30736         handling.
30737         * tests/test-open.c (main): Adjust caller.
30738         * tests/test-fcntl-safer.c (main): Likewise.
30739         * modules/open-tests (Depends-on): Add stdbool, symlink.
30740         * modules/fcntl-safer-tests (Depends-on): Likewise.
30741         * tests/test-openat.c (main): Add test-open tests.
30742
30743         stat: detect FreeBSD bug
30744         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30745         symlink.
30746         * doc/posix-functions/stat.texi (stat): Document the bug.
30747         * tests/test-stat.h (test_stat_func): Add argument.
30748         * tests/test-stat.c (main): Adjust caller.
30749         * tests/test-fstatat.c (main): Likewise.
30750         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30751         Reported by Jim Meyering.
30752
30753 2009-11-09  James Youngman  <jay@gnu.org>
30754
30755         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30756         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30757
30758 2009-11-08  Jim Meyering  <meyering@redhat.com>
30759
30760         utimens: remove invalid futimesat call
30761         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30762         It used the file descriptor of the target file as the DIR_FD
30763         parameter and NULL as the file name.  That caused failure with
30764         errno == EFAULT on FreeBSD-8.0-rc2
30765
30766 2009-11-07  Eric Blake  <ebb9@byu.net>
30767
30768         fflush, freadseek: use fseeko, not fseek
30769         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30770         (clear_ungetc_buffer): Avoid potential problems on large files.
30771         * lib/freadseek.c (freadseek): Likewise.
30772         * modules/freadseek (Depends-on): Add fseeko.
30773         * modules/fseek (configure.ac): Set a witness.
30774         * tests/test-fflush.c (main): Use fseeko.
30775         * tests/test-fpurge.c (fseek): Disable link warning.
30776         * tests/test-freadable.c (fseek): Likewise.
30777         * tests/test-freading.c (fseek): Likewise.
30778         * tests/test-fseeko.c (fseek): Likewise.
30779         * tests/test-ftell.c (fseek): Likewise.
30780         * tests/test-ftello.c (fseek): Likewise.
30781         * tests/test-fwritable.c (fseek): Likewise.
30782         * tests/test-fwriting.c (fseek): Likewise.
30783
30784 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30785
30786         * modules/memchr (Depends-on): Drop getpagesize dependency.
30787
30788 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30789
30790         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30791         Reported by Ludovic Courtès.
30792         * build-aux/pmccabe2html: Improve example usage.
30793         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30794
30795 2009-11-06  Jim Meyering  <meyering@redhat.com>
30796
30797         do-release-commit-and-tag: New module.
30798         Automate the release-commit and tag process.
30799         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30800         * modules/do-release-commit-and-tag: New file.
30801         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30802
30803 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30804
30805         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30806         because test-select.c uses inet_pton.
30807
30808 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30809
30810         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30811         GETADDRINFO_LIB.  Bump serial number.
30812         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30813         Suggested by Eric Blake <ebb9@byu.net>.
30814
30815 2009-11-05  Eric Blake  <ebb9@byu.net>
30816
30817         strtod: detect darwin bug
30818         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30819         Reported by Leo Davis.
30820
30821         freopen-safer: new module
30822         * modules/freopen-safer: New module.
30823         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30824         * lib/freopen-safer.c (freopen_safer): New file.
30825         * lib/stdio-safer.h (freopen_safer): New declaration.
30826         * lib/stdio--.h (freopen): New override.
30827         * MODULES.html.sh (File stream based Input/Output): Mention it.
30828         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30829         freopen-safer module.
30830         * doc/posix-functions/stderr.texi (stderr): Likewise.
30831         * doc/posix-functions/stdin.texi (stdin): Likewise.
30832         * doc/posix-functions/stdout.texi (stdout): Likewise.
30833         * modules/freopen-safer-tests: New test.
30834         * tests/test-reopen-safer.c: New file.
30835
30836 2009-11-05  Jim Meyering  <meyering@redhat.com>
30837
30838         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30839         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30840
30841 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30842
30843         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30844
30845 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30846
30847         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30848
30849 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30850
30851         Fix link error.
30852         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30853         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30854
30855 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30856
30857         * tests/test-func.c: Also test value of __func__.
30858
30859 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30860
30861         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30862         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30863
30864 2009-11-05  Bruno Haible  <bruno@clisp.org>
30865
30866         Fix link error.
30867         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30868         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30869         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30870
30871 2009-11-05  Bruno Haible  <bruno@clisp.org>
30872
30873         Tests for module 'inet_pton'.
30874         * modules/inet_pton-tests: New file.
30875         * tests/test-inet_pton.c: New file.
30876
30877 2009-11-05  Bruno Haible  <bruno@clisp.org>
30878
30879         Tests for module 'inet_ntop'.
30880         * modules/inet_ntop-tests: New file.
30881         * tests/test-inet_ntop.c: New file.
30882
30883 2009-11-04  Eric Blake  <ebb9@byu.net>
30884
30885         stdlib-safer: wrap all mkstemp variants
30886         * modules/mkostemp (configure.ac): Set witness.
30887         * modules/mkostemps (configure.ac): Likewise.
30888         * modules/mkstemps (configure.ac): Likewise.
30889         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30890         (mkstemps_safer): Wrap more functions.
30891         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30892         wrapping.
30893         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30894         (mkstemps_safer): Implement the wrappers.
30895
30896         mkstemps, mkostemps: new modules
30897         * modules/mkostemps: New module.
30898         * modules/mkstemps: Likewise.
30899         * lib/mkostemps.c (mkostemps): New file.
30900         * lib/mkstemps.c (mkstemps): Likewise.
30901         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30902         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30904         * modules/stdlib (Makefile.am): Substitute them.
30905         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30906         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30907         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30908         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30909         * MODULES.html.sh (File system functions): Mention them.
30910
30911         tempname: resync from glibc
30912         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30913         same values for __GT_FILE as glibc.  Abort even when assertions
30914         are disabled.
30915         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30916         match its value otherwise.  Allow idempotent inclusion.
30917         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30918         * lib/mkostemp.c (mkostemp): Likewise.
30919         * lib/mkstemp.c (mkstemp): Likewise.
30920         * lib/tmpfile.c (tmpfile): Likewise.
30921         * NEWS: Document this.
30922
30923         utimens: fix use of futimens on older Linux
30924         * lib/utimens.c (fdutimens): Use updated, rather than original,
30925         timespec to avoid bug in older Linux kernel.
30926         Reported by Simon Josefsson.
30927
30928 2009-11-04  Bruno Haible  <bruno@clisp.org>
30929
30930         Make num_processors more flexible and consistent.
30931         * lib/nproc.h (enum nproc_query): New type.
30932         (num_processors): Add a 'query' argument.
30933         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30934         (num_processors): Add a 'query' argument. Test the value of the
30935         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30936         mingw, count the number of CPUs available for the current process.
30937         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30938         Check for sched_getaffinity and sched_getaffinity_np.
30939         * modules/nproc (Depends-on): Add c-ctype, extensions.
30940         * NEWS: Mention the change.
30941
30942 2009-11-03  Bruno Haible  <bruno@clisp.org>
30943
30944         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30945
30946 2009-11-03  Jim Meyering  <meyering@redhat.com>
30947
30948         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30949         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30950         if it is defined.
30951
30952 2009-11-02  Eric Blake  <ebb9@byu.net>
30953
30954         mktime, timegm: share common declaration
30955         * lib/mktime-internal.h: New file.
30956         * lib/mktime.c: Use it rather than open-coding a declaration.
30957         * lib/timegm.c: Likewise.
30958         * modules/mktime (Files): Ship it.
30959         * modules/timegm (Files): Likewise.
30960         Suggested by Bruno Haible.
30961
30962         test-update-copyright: update test to match script changes
30963         * tests/test-update-copyright.sh: Avoid hard-coding perl
30964         location.  Don't update *.bak created by earlier runs.
30965
30966 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30967             Simon Josefsson  <simon@josefsson.org>
30968             Bruno Haible  <bruno@clisp.org>
30969
30970         Fix link error on Solaris 8.
30971         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30972         also in libnsl. Define also INET_PTON_LIB.
30973         * modules/inet_pton (Link): New section.
30974
30975 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30976             Bruno Haible  <bruno@clisp.org>
30977
30978         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30979         * modules/inet_ntop (Link): New section.
30980         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30981
30982 2009-11-02  Eric Blake  <ebb9@byu.net>
30983
30984         maint: avoid compiler warnings in m4 macros
30985         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30986         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30987
30988 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30989
30990         * m4/pmccabe2html.m4: Remove file.
30991         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30992         function.  Change maintainer.
30993         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30994         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30995         Courtès).
30996
30997 2009-10-31  Eric Blake  <ebb9@byu.net>
30998
30999         fseeko: fix m4 regression
31000         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
31001         regression from 2009-10-27.
31002         Reported by Ralf Wildenhues.
31003
31004 2009-10-31  Jim Meyering  <meyering@redhat.com>
31005
31006         inttostr: aesthetics and improved (compile-time) safety
31007         Define inttype_is_signed rather than inttype_is_unsigned,
31008         since the sole use is via "#if inttype_is_signed".
31009         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
31010         inttype_is_unsigned.
31011         * lib/offtostr.c (inttype_is_signed): Likewise.
31012         * lib/uinttostr.c (inttype_is_signed): Likewise.
31013         * lib/umaxtostr.c (inttype_is_signed): Likewise.
31014         * lib/inttostr.c (inttostr): Use verify to cross-check the
31015         inttype_is_signed value and the signedness of the actual type.
31016         * modules/inttostr (Depends-on): Add verify.
31017
31018 2009-10-30  Eric Blake  <ebb9@byu.net>
31019
31020         build: avoid compiler warnings
31021         * lib/fchmodat.c (lchmod): Mark unused variables.
31022         * lib/getopt.c (_getopt_initialize): Likewise.
31023         * lib/mktime.c (__mktime_internal): Provide prototype.
31024         * lib/inttostr.c (inttostr): Avoid compiler warning even with
31025         older gcc that do not understand #pragma GCC diagnostic.
31026         * lib/uinttostr.c (inttype_is_unsigned): Define.
31027         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
31028
31029 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31030
31031         stat: fix compilation on AIX
31032         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
31033         only see struct stat64.
31034
31035 2009-10-30  Eric Blake  <ebb9@byu.net>
31036
31037         exclude: make more robust
31038         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
31039         rather than masking a coding bug.
31040         Suggested by Bruno Haible.
31041
31042 2009-10-30  Jim Meyering  <meyering@redhat.com>
31043
31044         perl scripts: remove #!/usr/bin/perl in favor of more portable...
31045         Rather than putting #!/usr/bin/perl on the first line,
31046         start with a variant of what's recommended by "man perlrun" that
31047         invokes the first "perl" program from your shell's search path.
31048         * build-aux/gitlog-to-changelog: Replace #!... as above.
31049         Add a "Local Variables" perl mode setting.
31050         Prompted by a patch from Ludovic Courtès.
31051         Improved by Eric Blake.
31052         * build-aux/useless-if-before-free: Likewise.
31053         * build-aux/announce-gen: Likewise.
31054         * build-aux/update-copyright: Likewise.
31055
31056 2009-10-29  Eric Blake  <ebb9@byu.net>
31057
31058         filenamecat-lgpl: adjust clients
31059         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
31060         filenamecat.
31061         * modules/renameat (Depends-on): Likewise.
31062
31063         filenamecat: split into filenamecat-lgpl
31064         * modules/filenamecat-lgpl: New module.
31065         * modules/filenamecat (Files): Move library-safe files into
31066         filenamecat-lgpl.
31067         (Depends-on): Add filenamecat-lgpl.
31068         (configure.ac): Declare witness.
31069         * lib/filenamecat.h (file_name_concat): Only declare when using
31070         GPL module.
31071         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
31072         Move...
31073         * lib/filenamecat-lgpl.c: ...into new file.
31074         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
31075         (gl_FILE_NAME_CONCAT): Use it.
31076         * MODULES.html.sh (File system functions): Mention new module.
31077
31078         argp: avoid memory leak
31079         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
31080         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
31081         base_name, since the latter malloc()s and can call exit().
31082         Leak introduced 2006-07-03.
31083
31084         dirname-lgpl: adjust clients that don't need full dirname
31085         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
31086         * modules/filenamecat (Depends-on): Likewise.
31087         * modules/linkat (Depends-on): Likewise.
31088         * modules/mkancesdirs (Depends-on): Likewise.
31089         * modules/mkdir (Depends-on): Likewise.
31090         * modules/openat (Depends-on): Likewise.
31091         * modules/savewd (Depends-on): Likewise.
31092         * modules/rename (Depends-on): Likewise.
31093         (License): Relax license.
31094         * modules/mkdir-tests (Depends-on): Drop progname.
31095         (Makefile.am): Delete unneeded LDADD.
31096         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
31097
31098         dirname: split into dirname-lgpl
31099         * modules/dirname-lgpl: New module.
31100         * modules/dirname (Files): Move library-safe files into
31101         dirname-lgpl.
31102         (Depends-on): Add dirname-lgpl.
31103         (configure.ac): Declare witness.
31104         * modules/double-slash-root (License): Relax license.
31105         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
31106         module.
31107         * lib/dirname.c (dir_len, mdir_name): Move...
31108         * lib/dirname-lgpl.c: ...into new file.
31109         * lib/basename.c (last_component, base_len): Move...
31110         * lib/basename-lgpl.c: ...into new file.
31111         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
31112         (gl_DIRNAME): Use it.
31113         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
31114         Mention new module.
31115         * modules/dirname-tests (Depends-on): Add progname.
31116         * tests/test-dirname.c (program_name): Delete.
31117
31118         mkdir: make safe for libraries
31119         * modules/mkdir (Depends-on): Drop xalloc.
31120         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
31121         exit.
31122
31123         tests: avoid some compiler warnings
31124         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
31125         literals.
31126         * tests/test-memchr.c (main): Avoid type mismatch.
31127         * tests/test-arpa_inet.c (main): Avoid unused parameters.
31128         * tests/test-base64.c (main): Likewise.
31129         * tests/test-getdelim.c (main): Likewise.
31130         * tests/test-gethostname.c (main): Likewise.
31131         * tests/test-getline.c (main): Likewise.
31132         * tests/test-netinet_in.c (main): Likewise.
31133         * tests/test-select.c (open_server_socket, main): Likewise.
31134         * tests/test-select-stdin.c (main): Likewise.
31135         * tests/test-sockets.c (main): Likewise.
31136         * tests/test-strsignal.c (main): Likewise.
31137         * tests/test-sys_select.c (main): Likewise.
31138         * tests/test-sys_socket.c (main): Likewise.
31139         * tests/test-u64.c (main): Likewise.
31140         * tests/test-xfprintf-posix.c (main): Likewise.
31141         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
31142
31143         sockets: avoid compiler warning
31144         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
31145
31146         maint: detect usage(1) and other suspicious exits
31147         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
31148
31149 2009-10-29  Jim Meyering  <meyering@redhat.com>
31150
31151         timespec: long-to-int truncation could make timespec_cmp malfunction
31152         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
31153         a multiple of 2^32 nanoseconds as no difference.
31154
31155 2009-10-28  Jim Meyering  <meyering@redhat.com>
31156
31157         fprintftime: wrap macro code argument in "do {...} while(0)"
31158         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
31159         cpy macro must be a statement that can be followed by a semicolon.
31160         Now that the else clause contains a comment and is hence longer
31161         than one line, I require curly braces.  That in turn requires
31162         that we wrap this code block in the standard do...while(0).
31163
31164         fprintftime: remove stray semicolon from previous change
31165         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
31166
31167         fprintftime: avoid a warning about ignored fwrite return value
31168         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
31169         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
31170         that is unsafe.
31171         * modules/fprintftime (Depends-on): Add ignore-value.
31172
31173         exclude: avoid an unwarranted warning
31174         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
31175
31176 2009-10-27  Eric Blake  <ebb9@byu.net>
31177
31178         fseek: avoid compilation failure when fflush is replaced
31179         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
31180         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
31181         module is in use.
31182         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
31183         module is not in use; since REPLACE_FSEEK worked otherwise.
31184         (GNULIB_FTELLO): Likewise for ftell.
31185         Reported by Ian Beckwith and others.
31186
31187 2009-10-27  Bruno Haible  <bruno@clisp.org>
31188
31189         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
31190         Reported by Jim Meyering.
31191
31192 2009-10-27  Jim Meyering  <jim@meyering.net>
31193             Bruno Haible  <bruno@clisp.org>
31194
31195         Avoid warning despite dropping the return value of fwrite.
31196         * lib/unicodeio.c: Include ignore-value.h.
31197         (fwrite_success_callback): Explicitly ignore fwrite's return value.
31198         * modules/unicodeio (Depends-on): Add ignore-value.
31199
31200 2009-10-26  Eric Blake  <ebb9@byu.net>
31201
31202         areadlinkat: fix fallback path
31203         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
31204         pointer and zero.
31205
31206 2009-10-22  Pádraig Brady  <P@draigBrady.com>
31207
31208         Use a better IO block size for modern systems
31209         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
31210         * lib/md2.c: Likewise.
31211         * lib/md4.c: Likewise.
31212         * lib/md5.c: Likewise.
31213         * lib/sha1.c: Likewise.
31214         * lib/sha256.c: Likewise.
31215         * lib/sha512.c: Likewise.
31216
31217 2009-10-22  Eric Blake  <ebb9@byu.net>
31218
31219         tests: avoid several compiler warnings
31220         * tests/test-getcwd.c (main): Avoid buffer underflow.
31221         * tests/test-getdate.c (main): String literals are not safe with
31222         putenv, so use setenv.  Declare unused argument.
31223         * modules/getdate-tests (Depends-on): Add setenv.
31224         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
31225         problems with string literals in char *.
31226         * tests/test-hash.c (main): Avoid shadowing declaration.
31227         (insert_new): Treat string literals as char const *.
31228         * tests/test-getopt.h (test_getopt): Likewise.
31229         (getopt_loop): Alter types to minimize casting elsewhere.
31230         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
31231         (test_getopt_long_posix): Likewise.
31232         (do_getopt_long): Add wrapper to minimize casting.
31233         * tests/test-atexit.c (clear_temp_file): Use void.
31234         * tests/test-areadlink-with-size.c (main): Declare unused
31235         arguments.
31236         * tests/test-areadlink.c (main): Likewise.
31237         * tests/test-areadlinkat-with-size.c (main): Likewise.
31238         * tests/test-areadlinkat.c (main): Likewise.
31239         * tests/test-canonicalize-lgpl.c (main): Likewise.
31240         * tests/test-canonicalize.c (main): Likewise.
31241         * tests/test-dirent-safer.c (main): Likewise.
31242         * tests/test-dirname.c (main): Likewise.
31243         * tests/test-dup2.c (main): Likewise.
31244         * tests/test-fchdir.c (main): Likewise.
31245         * tests/test-fcntl-h.c (main): Likewise.
31246         * tests/test-fcntl-safer.c (main): Likewise.
31247         * tests/test-fdopendir.c (main): Likewise.
31248         * tests/test-fdutimensat.c (main): Likewise.
31249         * tests/test-fflush.c (main): Likewise.
31250         * tests/test-filenamecat.c (main): Likewise.
31251         * tests/test-filevercmp.c (main): Likewise.
31252         * tests/test-fopen-safer.c (main): Likewise.
31253         * tests/test-fopen.c (main): Likewise.
31254         * tests/test-fpending.c (main): Likewise.
31255         * tests/test-fpurge.c (main): Likewise.
31256         * tests/test-freading.c (main): Likewise.
31257         * tests/test-fstatat.c (main): Likewise.
31258         * tests/test-fsync.c (main): Likewise.
31259         * tests/test-futimens.c (main): Likewise.
31260         * tests/test-getndelim2.c (main): Likewise.
31261         * tests/test-gettimeofday.c (main): Likewise.
31262         * tests/test-getopt.c (main): Likewise.
31263         * tests/test-i-ring.c (main): Likewise.
31264         * tests/test-inttypes.c (main): Likewise.
31265         * tests/test-link.c (main): Likewise.
31266         * tests/test-lstat.c (main): Likewise.
31267         * tests/test-math.c (main): Likewise.
31268         * tests/test-md5.c (main): Likewise.
31269         * tests/test-memchr2.c (main): Likewise.
31270         * tests/test-memrchr.c (main): Likewise.
31271         * tests/test-mkdir.c (main): Likewise.
31272         * tests/test-mkdirat.c (main): Likewise.
31273         * tests/test-mkfifoat.c (main): Likewise.
31274         * tests/test-open.c (main): Likewise.
31275         * tests/test-openat-safer.c (main): Likewise.
31276         * tests/test-openat.c (main): Likewise.
31277         * tests/test-quotearg.c (main): Likewise.
31278         * tests/test-rawmemchr.c (main): Likewise.
31279         * tests/test-readlink.c (main): Likewise.
31280         * tests/test-remove.c (main): Likewise.
31281         * tests/test-rename.c (main): Likewise.
31282         * tests/test-renameat.c (main): Likewise.
31283         * tests/test-rmdir.c (main): Likewise.
31284         * tests/test-sha1.c (main): Likewise.
31285         * tests/test-signal.c (main): Likewise.
31286         * tests/test-sigaction.c (main): Likewise.
31287         * tests/test-stat.c (main): Likewise.
31288         * tests/test-stat-time.c (main): Likewise.
31289         * tests/test-stddef.c (main): Likewise.
31290         * tests/test-stdint.c (main): Likewise.
31291         * tests/test-stdio.c (main): Likewise.
31292         * tests/test-stdlib.c (main): Likewise.
31293         * tests/test-strchrnul.c (main): Likewise.
31294         * tests/test-strerror.c (main): Likewise.
31295         * tests/test-string.c (main): Likewise.
31296         * tests/test-strtod.c (main): Likewise.
31297         * tests/test-strverscmp.c (main): Likewise.
31298         * tests/test-symlink.c (main): Likewise.
31299         * tests/test-symlinkat.c (main): Likewise.
31300         * tests/test-sys_stat.c (main): Likewise.
31301         * tests/test-sys_time.c (main): Likewise.
31302         * tests/test-time.c (main): Likewise.
31303         * tests/test-unistd.c (main): Likewise.
31304         * tests/test-unlink.c (main): Likewise.
31305         * tests/test-unlinkat.c (main): Likewise.
31306         * tests/test-utimens.c (main): Likewise.
31307         * tests/test-utimensat.c (main): Likewise.
31308         * tests/test-version-etc.c (main): Likewise.
31309         * tests/test-wchar.c (main): Likewise.
31310         * tests/test-wctype.c (main): Likewise.
31311         * tests/test-xprintf-posix.c (main): Likewise.
31312         * tests/test-posixtm.c (main): Likewise.
31313         (STREQ): Delete unused macro.
31314         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
31315         shadowed variables.
31316         * tests/test-memchr.c (main): Likewise.
31317
31318 2009-10-21  Eric Blake  <ebb9@byu.net>
31319
31320         areadlinkat: avoid failure on older glibc
31321         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
31322         rather than mis-comparing 0 against FUNC_RESULT of char*.
31323
31324 2009-10-21  Bruno Haible  <bruno@clisp.org>
31325
31326         * modules/stpncpy (License): Relicense under LGPLv2+.
31327         Reported by David Lutterkort <lutter@redhat.com>.
31328
31329 2009-10-20  Eric Blake  <ebb9@byu.net>
31330
31331         utimensat: work around Solaris 9 bug
31332         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
31333         has trailing slash bugs.
31334         * tests/test-lutimens.h (test_lutimens): Enhance test.
31335         * tests/test-utimens.h (test_utimens): Likewise.
31336         * doc/posix-functions/utime.texi (utime): Enhance documentation.
31337         * doc/posix-functions/utimes.texi (utimes): Likewise.
31338         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31339         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
31340         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
31341         * doc/posix-functions/futimens.texi (futimens): Likewise.
31342
31343         fdutimensat: new module
31344         * modules/fdutimensat: New file.
31345         * lib/fdutimensat.c (fdutimensat): Likewise.
31346         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
31347         * MODULES.html.sh (File system functions): Mention module.
31348         * modules/fdutimensat-tests: New test.
31349         * tests/test-fdutimensat.c: Likewise.
31350
31351         doc: regenerate INSTALL
31352         * doc/INSTALL: Reflect recent autoconf update.
31353         * doc/INSTALL.ISO: Likewise.
31354         * doc/INSTALL.UTF-8: Likewise.
31355
31356 2009-10-20  Pádraig Brady  <P@draigBrady.com>
31357
31358         acl: warn if ACL support is not detected
31359         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
31360
31361 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
31362
31363         * lib/nproc.h: Add extern "C" block for C++.
31364
31365 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
31366             Bruno Haible  <bruno@clisp.org>
31367
31368         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
31369         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
31370         * doc/posix-functions/isalpha.texi: Likewise.
31371         * doc/posix-functions/isblank.texi: Likewise.
31372         * doc/posix-functions/iscntrl.texi: Likewise.
31373         * doc/posix-functions/isdigit.texi: Likewise.
31374         * doc/posix-functions/isgraph.texi: Likewise.
31375         * doc/posix-functions/islower.texi: Likewise.
31376         * doc/posix-functions/isprint.texi: Likewise.
31377         * doc/posix-functions/ispunct.texi: Likewise.
31378         * doc/posix-functions/isspace.texi: Likewise.
31379         * doc/posix-functions/isupper.texi: Likewise.
31380         * doc/posix-functions/isxdigit.texi: Likewise.
31381
31382 2009-10-18  Bruno Haible  <bruno@clisp.org>
31383
31384         Tests for module 'isblank'.
31385         * modules/isblank-tests: New file.
31386         * tests/test-isblank.c: New file.
31387
31388         New module 'isblank'.
31389         * lib/isblank.c: New file.
31390         * m4/isblank.m4: New file.
31391         * modules/isblank: New file.
31392         * doc/posix-functions/isblank.texi: Mention the new module.
31393
31394 2009-10-18  Bruno Haible  <bruno@clisp.org>
31395
31396         New module 'ctype'.
31397         * lib/ctype.in.h: New file.
31398         * m4/ctype.m4: New file.
31399         * modules/ctype: New file.
31400         * doc/posix-headers/ctype.texi: Mention the new module.
31401
31402 2009-10-18  Jim Meyering  <meyering@redhat.com>
31403
31404         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
31405         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
31406         right after its initialization, rather than farther down.
31407         Keeping these in close proximity makes it easier to ensure
31408         that each such variable is initialized.  E.g.,
31409
31410             LIB_CLOCK_GETTIME=
31411             AC_SUBST([LIB_CLOCK_GETTIME])
31412
31413         This change also increments these serial numbers.
31414         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
31415         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31417
31418 2009-10-18  Bruno Haible  <bruno@clisp.org>
31419
31420         Don't let environment variables perturb build.
31421         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
31422         (gl_PREREQ_GETHRXTIME): ... not here.
31423
31424 2009-10-18  Bruno Haible  <bruno@clisp.org>
31425
31426         Avoid symlink attack in localcharset module.
31427         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
31428         (O_NOFOLLOW): Define fallback.
31429         (get_charset_aliases): Don't open the file if it is a symbolic link.
31430         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
31431         gl_FCNTL_H.
31432         (gl_FCNTL_H): Require it.
31433         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
31434         * modules/localcharset (Files): Add m4/fcntl_h.m4.
31435         Reported by Fergal Glynn <fglynn@veracode.com>.
31436
31437 2009-10-18  Bruno Haible  <bruno@clisp.org>
31438
31439         Implement nproc for mingw.
31440         * lib/nproc.c: Include <windows.h>
31441         (num_processors): On native Windows platforms, try GetSystemInfo.
31442
31443 2009-10-18  Bruno Haible  <bruno@clisp.org>
31444
31445         Implement nproc for IRIX.
31446         * lib/nproc.c: Include <sys/sysmp.h>.
31447         (num_processors): On IRIX systems, try sysmp.
31448         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
31449
31450 2009-10-18  Bruno Haible  <bruno@clisp.org>
31451
31452         Implement nproc for HP-UX.
31453         * lib/nproc.c: Include <sys/pstat.h>
31454         (num_processors): On HP-UX systems, try pstat_getdynamic.
31455         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
31456         pstat_getdynamic.
31457
31458 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
31459             Bruno Haible  <bruno@clisp.org>
31460
31461         Implement nproc for NetBSD, OpenBSD.
31462         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
31463         (ARRAY_SIZE): New macro.
31464         (num_processors): On BSD systems, try sysctl of HW_NCPU.
31465         * m4/nproc.m4: New file.
31466         * modules/nproc (Files): Add m4/nproc.m4.
31467         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
31468         (Makefile.am): Instead, augment lib_SOURCES.
31469
31470 2009-10-18  Bruno Haible  <bruno@clisp.org>
31471
31472         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
31473         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
31474         sys/param.h.
31475
31476 2009-10-16  Eric Blake  <ebb9@byu.net>
31477
31478         utimensat: new module
31479         * modules/utimensat: New file.
31480         * lib/utimensat.c (utimensat): Likewise.
31481         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31482         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
31483         so we can work around Linux bugs.
31484         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31485         * modules/sys_stat (Makefile.am): Substitute them.
31486         * lib/sys_stat.in.h (utimensat): Declare it.
31487         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31488         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31489         * modules/utimensat-tests: New test.
31490         * tests/test-utimensat.c: Likewise.
31491
31492         utimens: let lutimens work on non-symlinks
31493         * lib/utimens.c (lutimens): Fall back to utimens rather than
31494         failing with ENOSYS, when file is not a symlink.
31495         (utimens): Reduce redirection.
31496         * tests/test-lutimens.h (test_lutimens): Update test to cover
31497         non-symlinks.
31498         * tests/test-utimens.h (test_utimens): Update test to cover
31499         symlinks.
31500         * tests/test-utimens.c (main): Update caller.
31501
31502         utimens: cache whether utimensat syscall works
31503         * lib/utimens.c (utimensat_works_really): New cache variable.
31504         (fdutimens, lutimens): Use it to avoid failing syscall.
31505
31506         test-stat-time, test-utimens: improve portability
31507         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
31508         ext4 on alpha, and for cygwin.
31509         * tests/test-utimens-common.h: New file.
31510         (nap): Factor delays into single function.
31511         * tests/test-lutimens.h (test_lutimens): Use new header.
31512         * tests/test-futimens.h (test_futimens): Likewise.
31513         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
31514         timestamps to occur from same machine, as was done previously for
31515         test_utimens.
31516         * modules/utimens-tests (Files): Ship new file.
31517         * modules/futimens-tests (Files): Likewise.
31518         Reported in part by Jim Meyering.
31519
31520         sys_stat: sort replacement declarations
31521         * lib/sys_stat.in.h: Sort declarations.
31522         * lib/futimens.c (futimens): Fix typo.
31523
31524 2009-10-15  Jim Meyering  <meyering@redhat.com>
31525
31526         don't let environment settings perturb build
31527         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
31528         could cause a configure-time and/or build-time malfunction.
31529         Typically, a configure-time function-in-library test is performed
31530         via code like this:
31531
31532           LIB_VAR=
31533           AC_SUBST([LIB_VAR])
31534           prefix_saved_LIBS=$LIBS
31535             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
31536                        [test "$ac_cv_search_FUNC" = "none required" ||
31537                         LIB_VAR=$ac_cv_search_FUNC])
31538           LIBS=$prefix_saved_LIBS
31539
31540         However, in each of the files affected by this change, the LIB_VAR=
31541         initialization was omitted.  Thus, when set in the environment, its
31542         value would propagate into generated Makefiles when FUNC is not found
31543         in LIB_NAME.
31544         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
31545         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31547
31548 2009-10-14  Eric Blake  <ebb9@byu.net>
31549
31550         fchdir: avoid infinite recursion in mingw
31551         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
31552         recursing.
31553
31554         test-stat-time: port to mingw
31555         * tests/test-stat-time.c (force_unlink): Return a value.
31556         (test_ctime) [W32]: Fix compilation error.
31557         (nap): Don't call usleep with too large an argument.  Use
31558         force_unlink.
31559         * doc/pastposix-functions/usleep.texi (usleep): Document the
31560         portability issue.
31561
31562 2009-10-13  Jim Meyering  <meyering@redhat.com>
31563
31564         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
31565         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
31566         * modules/pipe-filter-ii: Likewise.
31567         * modules/sys_socket-tests: Likewise.
31568         * modules/tsearch-tests: Likewise.
31569         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
31570         (check): Depend on it.
31571
31572 2009-10-12  Eric Blake  <ebb9@byu.net>
31573
31574         utimens-tests: port to NFS file systems
31575         * tests/test-utimens.h (test_utimens): Refactor utimecmp
31576         comparisons to avoid spurious failures from timestamp drift
31577         between NFS machines.
31578
31579 2009-10-12  Eric Blake  <ebb9@byu.net>
31580
31581         stat-time-tests: minor cleanups
31582         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
31583         * tests/test-stat-time.c (nap): Separate assignment from call.
31584         Suggested by Paolo Bonzini and Bruno Haible.
31585
31586         sys_stat: guarantee struct timespec
31587         * lib/sys_stat.in.h (includes): Always include <time.h>
31588         * modules/sys_stat (Depends-on): Add time.
31589         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
31590         mode_t permission values.
31591         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
31592         get at subsecond timestamps.
31593
31594 2009-10-10  Eric Blake  <ebb9@byu.net>
31595
31596         futimens: new module
31597         * modules/futimens: New file.
31598         * lib/futimens.c (futimens): Likewise.
31599         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
31600         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
31601         we can work around Linux bugs.
31602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31603         * modules/sys_stat (Makefile.am): Substitute them.
31604         * lib/sys_stat.in.h (futimens): Declare it.
31605         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31606         * doc/posix-functions/futimens.texi (futimens): Likewise.
31607         * modules/futimens-tests: New test.
31608         * tests/test-futimens.c: Likewise.
31609
31610         utimens: introduce fdutimens
31611         * lib/utimens.h (fdutimens): New prototype.
31612         * lib/utimens.c (gl_futimens): Move guts...
31613         (fdutimens): ...to new interface.
31614         * tests/test-utimens.c (do_fdutimens): Use it.
31615
31616         utimens: add UTIME_NOW and UTIME_OMIT support
31617         * lib/utimens.c (validate_timespec, update_timespec): New helper
31618         functions.
31619         (gl_futimens, lutimens): Use them.
31620         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
31621         stdbool, sys_stat.
31622         (Link): Mention resulting library dependency.
31623         * modules/utimecmp (Link): Likewise.
31624         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
31625         (Makefile.am): Pick up library dependency.
31626         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
31627         definition.
31628         * tests/test-sys_stat.c: Test the definitions.
31629         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
31630         * NEWS: Document library dependency.
31631
31632         utimecmp: support symlink timestamps
31633         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
31634         hashing when possible.  Use pathconf when available.
31635         (SYSCALL_RESOLUTION): Recognize tighter resolution.
31636         * modules/utimecmp (Depends-on): Add lstat.
31637
31638         utimens: add lutimens interface
31639         * lib/utimens.c (lutimens): New function.
31640         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
31641         * lib/utimens.h (lutimens): Declare new interface.
31642         * tests/test-utimens.c (main): Enhance test.
31643         * tests/test-lutimens.h (test_lutimens): New file.
31644         * modules/utimens-tests (Files): Distribute it.
31645         (Depends-on): Add symlink.
31646         (configure.ac): Check for usleep.
31647
31648         utimens: validate futimens usage
31649         * lib/utimens.c (gl_futimens): Require valid fd up front, using
31650         fewer syscalls on failure later on.  Avoid compiler warning on
31651         mingw.
31652         * modules/utimens (Depends-on): Add dup2.
31653
31654         utimens: add test
31655         * modules/utimens-tests: New test.
31656         * tests/test-utimens.h: New file.
31657         * tests/test-futimens.h: Likewise.
31658         * tests/test-utimens.c: Likewise.
31659
31660         doc: mention timestamp portability issues
31661         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
31662         instead.
31663         * doc/posix-functions/utime.texi (utime): Likewise.
31664         * doc/posix-functions/utimes.texi (utimes): Likewise.
31665         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31666         instead.
31667         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31668         module.
31669         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31670         Mention weakness with symlink timestamps.
31671         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31672         to utimensat/futimens instead.
31673         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31674
31675         test-dup2: enhance test
31676         * tests/test-dup2.c (main): Also check AT_FDCWD.
31677
31678         test-stat-time: avoid more spurious failures
31679         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31680         xfs; and avoid race if the two timestamps cross quantization edge.
31681
31682         relocatable: prefer 'file system' over 'filesystem'
31683         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31684         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31685         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31686         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31687         * lib/relocatable.c (compute_curr_prefix): Likewise.
31688
31689 2009-10-10  Jim Meyering  <meyering@redhat.com>
31690
31691         stat-time-tests: check for the usleep function
31692         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31693
31694 2009-10-10  Bruno Haible  <bruno@clisp.org>
31695
31696         * modules/xnanosleep: Put the Link section after the Include section.
31697
31698 2009-10-09  Eric Blake  <ebb9@byu.net>
31699
31700         dup2: work around FreeBSD 6.1 bug
31701         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31702         * doc/posix-functions/dup2.texi (dup2): Document it.
31703         Reported by Nelson H. F. Beebe and Jim Meyering.
31704
31705         test-stat-time: port to buggy NFS clients
31706         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31707         (test_ctime): Also skip test if mtime and ctime are skewed.
31708
31709         maint: prefer 'file system' over 'filesystem'
31710         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31711         * doc/posix-functions/lstat.texi (lstat): Likewise.
31712         * lib/file-has-acl.c (file_has_acl): Likewise.
31713         * lib/fwriteerror.c [TEST]: Likewise.
31714         * tests/test-areadlink.h (test_areadlink): Likewise.
31715         * tests/test-areadlinkat-with-size.c (main): Likewise.
31716         * tests/test-areadlinkat.c (main): Likewise.
31717         * tests/test-canonicalize-lgpl.c (main): Likewise.
31718         * tests/test-canonicalize.c (main): Likewise.
31719         * tests/test-fstatat.c (main): Likewise.
31720         * tests/test-linkat.c (main): Likewise.
31721         * tests/test-lstat.h (test_lstat_func): Likewise.
31722         * tests/test-mkdir.h (test_mkdir): Likewise.
31723         * tests/test-readlink.h (test_readlink): Likewise.
31724         * tests/test-remove.c (main): Likewise.
31725         * tests/test-rename.h (test_rename): Likewise.
31726         * tests/test-renameat.c (main): Likewise.
31727         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31728         * tests/test-symlink.h (test_symlink): Likewise.
31729         * tests/test-symlinkat.c (main): Likewise.
31730         * tests/test-unlink.h (test_unlink_func): Likewise.
31731         * tests/test-unlinkat.c (main): Likewise.
31732
31733         maint: make realtime library usage explicit
31734         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31735         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31736         * modules/settime (Link): Likewise.
31737         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31738
31739         test-stat-time: speed up execution
31740         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31741         warning on mingw.
31742         (nap): New helper function.
31743         (prepare_test): Use it to reduce sleep time.
31744         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31745         execution.
31746         * modules/stat-time-tests (configure.ac): Check for usleep.
31747
31748 2009-10-09  Jim Meyering  <meyering@redhat.com>
31749
31750         selinux-h: always use getfilecon wrappers
31751         * lib/getfilecon.c: New file.
31752         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31753         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31754         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31755         (fgetfilecon): Provide a stub.
31756         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31757         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31758         file unconditionally.
31759         When <selinux/selinux.h> is found, arrange to use wrappers.
31760         * modules/selinux-h (Files): Add getfilecon.c.
31761         (Makefile.am): Substitute include-next-related bits
31762         into the now-always-generated selinux/selinux.h file.
31763         * doc/glibc-functions/lgetfilecon.texi: New file.
31764         * doc/glibc-functions/fgetfilecon.texi: New file.
31765         * doc/glibc-functions/getfilecon.texi: New file.
31766         * doc/glibc-functions/getfilecon-desc.texi: New file.
31767         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31768         which to pull in the new files.
31769         * MODULES.html.sh (Misc): Add selinux-h.
31770
31771 2009-10-08  Jim Meyering  <meyering@redhat.com>
31772
31773         unistd: fix comment typo
31774         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31775
31776 2009-10-08  Eric Blake  <ebb9@byu.net>
31777
31778         areadlink: use SIZE_MAX consistently
31779         * modules/areadlink (Depends-on): Add stdint.
31780         * modules/areadlink-with-size (Depends-on): Likewise.
31781         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31782         gives NULL; drop sys/types, since unistd gives size_t; and add
31783         stdint for SIZE_MAX.
31784         (SIZE_MAX): Rely on headers.
31785         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31786         and add stdint.
31787         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31788         (SIZE_MAX): Likewise.
31789         (INITIAL_BUF_SIZE): Turn into enum.
31790         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31791
31792 2009-10-08  Jim Meyering  <meyering@redhat.com>
31793
31794         areadlinkat: avoid compilation failure
31795         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31796         Fix typo in comment.
31797
31798 2009-10-07  Eric Blake  <ebb9@byu.net>
31799
31800         areadlinkat-with-size: new module
31801         * modules/areadlinkat-with-size: New module.
31802         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31803         * lib/areadlink.h (areadlinkat): Declare it.
31804         * MODULES.html.sh (File system functions): Mention it.
31805         * modules/areadlinkat-with-size-tests: New test.
31806         * tests/test-areadlinkat-with-size.c: New file.
31807
31808         xreadlinkat: new module
31809         * modules/xreadlinkat: New module.
31810         * lib/xreadlinkat.c (xreadlinkat): New file.
31811         * lib/xreadlink.h (xreadlinkat): Declare it.
31812         * MODULES.html.sh (File system functions): Mention it.
31813
31814         areadlinkat: new module
31815         * lib/at-func.c (FUNC_FAIL): New define.
31816         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31817         * modules/areadlinkat: New module.
31818         * lib/linkat.c (areadlinkat): Move...
31819         * lib/areadlinkat.c (areadlinkat): ...to new file.
31820         * lib/areadlink.h (areadlinkat): Declare it.
31821         * modules/linkat (Depends-on): Add areadlinkat.
31822         * MODULES.html.sh (File system functions): Mention it.
31823         * modules/areadlinkat-tests: New test.
31824         * tests/test-areadlinkat.c: New file.
31825
31826         areadlink, areadlink-with-size: add tests
31827         * modules/areadlink-tests: New test.
31828         * modules/areadlink-with-size-tests: Likewise.
31829         * tests/test-areadlink.h: New file.
31830         * tests/test-areadlink.c: Likewise.
31831         * tests/test-areadlink-with-size.c: Likewise.
31832
31833         maint: minor cleanups
31834         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31835         _UNUSED_PARAMETER_ instead.
31836         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31837         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31838         * modules/linkat-tests (Files): Distribute test-link.h.
31839
31840         openat, utimens: whitespace cleanup
31841         * lib/openat.c: Prefer space throughout, rather than mix of 8
31842         spaces vs. tabs.
31843         * lib/at-func.c: Likewise.
31844         * lib/utimens.c: Likewise.
31845
31846         openat: avoid using wrong fd
31847         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31848         working directory chooses same fd.
31849         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31850
31851         mkdir, mkdirat: fix cygwin 1.5.x bug
31852         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31853         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31854         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31855         bug.
31856         (gl_PREREQ_MKDIR): Delete unused macro.
31857         * modules/mkdir (Files): Track file rename.
31858         (configure.ac): Update macro name.
31859         * modules/openat (Depends-on): Add mkdir.
31860         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31861
31862         mkdir, mkdirat: add tests
31863         * modules/mkdir-tests: New test.
31864         * tests/test-mkdir.h: New file.
31865         * tests/test-mkdir.c: Likewise.
31866         * tests/test-mkdirat.c: Likewise.
31867         * modules/openat-tests (Files): Add new files.
31868         (Makefile.am): Run new test.
31869
31870 2009-10-06  Eric Blake  <ebb9@byu.net>
31871
31872         doc: tweak *at function documentation
31873         * doc/posix-functions/faccessat.texi (faccessat): Mention
31874         known issue with replacement.
31875         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31876         * doc/posix-functions/linkat.texi (linkat): Likewise.
31877         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31878         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31879         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31880         * doc/posix-functions/renameat.texi (renameat): Likewise.
31881         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31882
31883         openat: fix GNU/Hurd bug in unlinkat
31884         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31885         broken.
31886         * doc/posix-functions/unlink.texi (unlink): Document this.
31887         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31888
31889         fdopendir: fix GNU/Hurd bug
31890         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31891         allowing non-directory fds.
31892         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31893         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31894         * modules/dirent (Makefile.am): Substitute it.
31895         * lib/dirent.in.h (fdopendir): Declare replacement.
31896         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31897         * tests/test-fdopendir.c (main): Test something other than
31898         /dev/null, since on Hurd that behaves like a directory.
31899
31900         test-symlink: port to GNU/Hurd
31901         * tests/test-symlink.h (test_symlink): Relax expected errno.
31902
31903         doc: tweak more cygwin information
31904         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31905         now compatible with glibc.
31906         * doc/posix-functions/getopt.texi (getopt): Likewise.
31907
31908         getopt-gnu: add another test
31909         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31910         guarantee behavior relied on by m4.
31911         * tests/test-getopt.c (main): Use it.
31912         * modules/getopt-posix-tests (Depends-on): Add setenv.
31913         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31914
31915         getopt: fix compilation on darwin
31916         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31917         include.
31918         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31919         Reported by Ludovic Courtès.
31920
31921 2009-10-06  Bruno Haible  <bruno@clisp.org>
31922
31923         * modules/size_max (Description): Discourage its use.
31924         Reported by Simon Josefsson.
31925
31926 2009-10-06  Jim Meyering  <meyering@redhat.com>
31927
31928         linkat: avoid compilation failure
31929         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31930
31931 2009-10-05  Eric Blake  <ebb9@byu.net>
31932
31933         linkat: support Linux 2.6.17
31934         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31935         linkat on Linux, but allow cache variable override.
31936         * lib/linkat.c (rpl_linkat): Define override.
31937         * modules/linkat (Depends-on): Add symlinkat.
31938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31939         * modules/unistd (Makefile.am): Substitute it.
31940         * lib/unistd.in.h (linkat): Declare replacement.
31941         Reported by Pádraig Brady.
31942
31943         quotearg: port test to systems with C.UTF-8 locale
31944         * tests/test-quotearg.c (struct result_strings): Add another
31945         member, differentiating between C.ASCII and C.UTF-8 handling.
31946         (compare_strings): Add parameter.
31947         (main): Adjust all callers.
31948
31949         getopt: avoid clash with FreeBSD _getopt_internal
31950         * lib/getopt.in.h (_getopt_internal): Override the name.
31951         * lib/getopt_int.h (includes): Pick up any overrides.
31952         Reported by Reuben Thomas.
31953
31954         hash: allow C89 compilation
31955         * lib/hash.c (check_tuning): Move declaration before statement.
31956         Reported by Reuben Thomas.
31957
31958 2009-10-05  Karl Berry  <karl@gnu.org>
31959
31960         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31961
31962 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31963             Bruno Haible  <bruno@clisp.org>
31964
31965         * lib/uname.c (uname): Use a table-driven algorithm to compute
31966         Windows NT versions.
31967
31968 2009-10-04  Bruno Haible  <bruno@clisp.org>
31969
31970         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31971         program_invocation_short_name.
31972         * modules/progname (configure.ac): Test for presence of
31973         program_invocation_short_name.
31974         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31975
31976 2009-10-04  Bruno Haible  <bruno@clisp.org>
31977
31978         * lib/progname.c (set_program_name): Fix comment.
31979         Reported by Jim Meyering.
31980
31981 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31982             Bruno Haible  <bruno@clisp.org>
31983
31984         * lib/uname.c: Include <string.h>.
31985         (uname): Do only one call to GetVersionEx in the common case.
31986
31987 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31988             Bruno Haible  <bruno@clisp.org>
31989
31990         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31991         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31992         (uname): Add support for Windows CE and various non-x86 CPU types.
31993
31994 2009-10-03  Bruno Haible  <bruno@clisp.org>
31995
31996         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31997         invocation to tests/configure.ac.
31998         Reported by Ian Beckwith <ianb@erislabs.net>.
31999
32000 2009-10-02  Eric Blake  <ebb9@byu.net>
32001
32002         fchdir: avoid compiler warning
32003         * lib/fchdir.c (canonicalize_file_name)
32004         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
32005
32006         test-open: support mingw errno values
32007         * tests/test-open.h (test_open): Relax test.
32008         * tests/test-fopen.h (test_fopen): Likewise.
32009         * tests/test-openat-safer.c (main): Likewise.
32010
32011         open: fix opening directory on mingw
32012         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
32013
32014         test-open: on GNU/Hurd, /dev/null is a directory
32015         * tests/test-fopen.h (main): Rename...
32016         (test_fopen): ...to this.  Use a guaranteed non-directory when
32017         confirming open behavior on trailing slash.
32018         * tests/test-openat-safer.c (main): Likewise.
32019         * tests/test-open.h (main): Likewise....
32020         (test_open): ...to this.
32021         * tests/test-fopen.c (main): Adjust caller.
32022         * tests/test-fopen-safer.c (main): Likewise.
32023         * tests/test-open.c (main): Likewise.
32024         * tests/test-fcntl-safer.c (main): Likewise.
32025         Reported by Samuel Thibault.
32026
32027         rename, fchdir: don't ignore chdir failure
32028         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
32029         * lib/rename.c (rpl_rename) [W32]: Likewise.
32030         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
32031         an empty destination directory if source cannot be renamed,
32032         although there is still possibility for failure.
32033         * doc/posix-functions/rename.texi (rename): Document the race.
32034         Reported by Jim Meyering.
32035
32036         maint: cleanup whitespace in recent commits
32037         * lib/rename.c (rpl_rename): Remove tabs.
32038         * tests/test-link.h (test_link): Likewise.
32039         * lib/fchdir.c (get_name): Likewise.
32040         Reported by Jim Meyering.
32041
32042 2009-10-02  Ben Pfaff  <blp@gnu.org>
32043
32044         relocatable-prog-wrapper: Add missing dependency on
32045         double-slash-root.
32046         * modules/relocatable-prog-wrapper: Add dependency.
32047         Reported by Ian Beckwith <ianb@erislabs.net>.
32048
32049 2009-10-02  Eric Blake  <ebb9@byu.net>
32050
32051         renameat: fix Solaris bugs
32052         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
32053         needed fixing.
32054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
32055         * modules/stdio (Makefile.am): Substitute it.
32056         * lib/stdio.in.h (renameat): Declare replacement.
32057         * lib/renameat.c (rpl_renameat): Implement fix.
32058
32059         renameat: new module
32060         * modules/renameat: New file.
32061         * lib/renameat.c (renameat): Likewise.
32062         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
32063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32064         * modules/stdio (Makefile.am): Substitute them.
32065         * lib/stdio.in.h (renameat): Declare it.
32066         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32067         * doc/posix-functions/renameat.texi (renameat): Likewise.
32068         * modules/renameat-tests: New test.
32069         * tests/test-renameat.c: Likewise.
32070
32071         rename: fix mingw bugs
32072         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
32073         directory overwrite bugs.
32074
32075         rename: fix another cygwin 1.5 bug
32076         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
32077         checks.
32078         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
32079         unnecessary cygwin workarounds.  Also work around bug with moving
32080         full directory onto an empty one.
32081         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
32082
32083         rename-dest-slash: merge into rename module
32084         * modules/rename-dest-slash (Status): Mark obsolete.
32085         (Depends-on): Add rename.
32086         (Files): Let rename do it all.
32087         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
32088         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
32089         * m4/rename-dest-slash.m4: ...so this file can be deleted.
32090         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
32091         * lib/rename.c (rpl_rename): Update comments.
32092
32093         rename: fix cygwin 1.5.x bugs
32094         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
32095         * lib/rename.c (rpl_rename): Work around them.
32096         * modules/rename (Depends-on): Add same-inode.
32097
32098         rename: fix Solaris 10 bug
32099         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32100         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
32101         was the only bug.
32102
32103         rename: fix Solaris 9 bug
32104         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
32105         on non-directory.  Avoid calling exit.
32106         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
32107         strdup.
32108         * modules/rename-tests (Depends-on): Drop lstat.
32109         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32110         (gl_PREREQ_RENAME): Delete unused macro.
32111
32112         rename-dest-slash: fix NetBSD bug
32113         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
32114         links.
32115         * modules/rename-dest-slash (Depends-on): Add same-inode.
32116
32117         rename-tests: new test, exposes several platform bugs
32118         * modules/rename-tests: New file.
32119         * tests/test-rename.h: Likewise.
32120         * tests/test-rename.c: Likewise.
32121         * doc/posix-functions/rename.texi (rename): Improve documentation,
32122         including bugs that will eventually be fixed in gnulib.
32123
32124 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
32125
32126         * lib/uname.c: Include <stdlib.h>
32127         (uname): Assume version info is available.
32128
32129 2009-10-02  Jim Meyering  <meyering@redhat.com>
32130
32131         gnu-web-doc-update: correct --help output
32132         * build-aux/gnu-web-doc-update: Make --help output relevant.
32133
32134         gnu-web-doc-update: add standard options
32135         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
32136
32137         gnu-web-doc-update: New module.
32138         Use this script to automatically update the on-line web documentation
32139         for your GNU project at http://www.gnu.org/software/$pkg/manual/
32140         * modules/gnu-web-doc-update: New file, from coreutils.
32141         * build-aux/gnu-web-doc-update: New script.
32142
32143 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
32144
32145         link: LoadLibrary is not needed.
32146         * lib/link.c: Use GetModuleHandle.
32147
32148 2009-10-01  Eric Blake  <ebb9@byu.net>
32149
32150         getopt: bump serial number
32151         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
32152         change.
32153
32154         tests: tighten link, rmdir, and remove tests
32155         * tests/test-link.h (includes): No need to use <config.h> here.
32156         Clean up if directory hard link was created, otherwise test for
32157         trailing '.'.
32158         * tests/test-linkat.c (main): Simplify.
32159         * tests/test-remove.c (main): Enhance test for trailing '.'.
32160         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32161
32162 2009-10-01  Jim Meyering  <meyering@redhat.com>
32163
32164         maint.mk: requiring "make major" was annoying, for a "minor" release.
32165         What is intended is "stable", to contrast with alpha and beta,
32166         so require "make stable", not "make major".
32167         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
32168         (get_tool_versions): Likewise.
32169         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
32170
32171 2009-09-30  Ben Pfaff  <blp@gnu.org>
32172
32173         Fix broken build of replacement for Windows tmpfile().
32174         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
32175         flags argument added along with the 'mkostemp' module.
32176
32177 2009-09-28  Bruno Haible  <bruno@clisp.org>
32178
32179         Avoid identifier clash with POSIX function 'remove' defined as a macro.
32180         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
32181         to 'remove_elt'.
32182         (gl_list_remove): Update.
32183         * lib/gl_list.c (gl_list_remove): Update.
32184         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
32185         to 'remove_elt'.
32186         (gl_oset_remove): Update.
32187         * lib/gl_list.c (gl_oset_remove): Update.
32188         Reported by Eric Blake.
32189
32190 2009-09-28  Eric Blake  <ebb9@byu.net>
32191
32192         doc: mention yet more cygwin 1.7 status
32193         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
32194         cygwin.
32195         * doc/glibc-functions/execvpe.texi (execvpe): New file.
32196         * doc/gnulib.texi (Glibc unistd.h): Mention it.
32197
32198         argp: fix test failure
32199         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
32200         that are not upper-case.  Pass correct range to tolower.
32201
32202 2009-09-27  Jim Meyering  <meyering@redhat.com>
32203
32204         test-yesno: work around sparc-dash here-document infelicity
32205         Without this change, the literal \177 byte in a here document
32206         would make dash 0.5.5.1-3 access uninitialized memory.
32207         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
32208         Instead, use a marker, "@", and filter through tr to create the desired
32209         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
32210
32211 2009-09-27  Bruno Haible  <bruno@clisp.org>
32212
32213         Disable untested support for new flavours of ACLs on AIX.
32214         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
32215         progress.
32216         * lib/set-mode-acl.c (qset_acl): Likewise.
32217
32218 2008-12-07  Bruno Haible  <bruno@clisp.org>
32219
32220         Add support for new flavours of ACLs on AIX. (Untested.)
32221         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
32222         (file_has_acl): Add support for newer AIX.
32223         * lib/set-mode-acl.c (qset_acl): Likewise.
32224         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
32225         Rainer Tammer <tammer@tammer.net>.
32226
32227 2009-09-26  Eric Blake  <ebb9@byu.net>
32228
32229         argp: fix compilation of getopt
32230         * lib/getopt.in.h (includes): Use different guard than glibc.
32231         Reported by Sergey Poznyakoff.
32232
32233         doc: mention more cygwin 1.7 status
32234         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
32235         bug.
32236         * doc/posix-functions/execl.texi (execl): Likewise.
32237         * doc/posix-functions/execle.texi (execle): Likewise.
32238         * doc/posix-functions/execlp.texi (execlp): Likewise.
32239         * doc/posix-functions/execv.texi (execv): Likewise.
32240         * doc/posix-functions/execve.texi (execve): Likewise.
32241         * doc/posix-functions/execvp.texi (execvp): Likewise.
32242         * doc/glibc-functions/canonicalize_file_name.texi
32243         (canonicalize_file_name): Cygwin 1.7 now provides this.
32244         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
32245         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
32246         on AT_SYMLINK_NOFOLLOW.
32247
32248 2009-09-24  Eric Blake  <ebb9@byu.net>
32249
32250         test-linkat: make test more robust
32251         * tests/test-linkat.c (main): Avoid collision with EEXIST.
32252
32253         getopt: fix inclusion guards for cygwin
32254         * modules/getopt-posix (Depends-on): Add include-next.
32255         (Makefile.am): Substitute more items in replacement header.
32256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
32257         <getopt.h>.
32258         * lib/getopt.in.h (includes): Use split inclusion guard, and
32259         prefer <getopt.h> over include <unistd.h> when one is present.
32260         (option): Also override name of 'struct option'.
32261
32262         same-inode: revert prior change; it is not yet ready
32263         * NEWS: Undo mention of this change.
32264         * lib/same-inode.h (same-inode.h): Undo tri-state change.
32265         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32266         * lib/cycle-check.c (cycle_check): Likewise.
32267         * lib/same.c (same_name): Likewise.
32268         * lib/at-func2.c (at_func2): Likewise.
32269
32270 2009-09-23  Eric Blake  <ebb9@byu.net>
32271
32272         linkat: new module
32273         * modules/linkat: New file.
32274         * lib/at-func2.c (at_func2): Likewise.
32275         * lib/linkat.c (linkat): Likewise.
32276         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
32277         * lib/openat-priv.h (at_func2): Add declaration.
32278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32279         * modules/unistd (Makefile.am): Substitute them.
32280         * lib/unistd.in.h (linkat): Declare it.
32281         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32282         * doc/posix-functions/linkat.texi (linkat): Likewise.
32283         * doc/posix-functions/link.texi (link): Tweak wording.
32284         * tests/test-link.c (main): Move guts...
32285         * tests/test-link.h (test_link): ...into new file.
32286         * modules/linkat-tests: New test.
32287         * tests/test-linkat.c: Likewise.
32288         * modules/link-tests (Files): Ship new file.
32289         (Depends-on): Add stdbool.
32290
32291         dirname: add library-safe mdir_name
32292         * lib/dirname.h (mdir_name): New prototype.
32293         * lib/dirname.c (dir_name): Move guts...
32294         (mdir_name): ...to new function that avoids xalloc_die.
32295
32296         fchdir: another mingw fix
32297         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
32298         * lib/fchdir.c (get_name): New helper method; skips canonicalize
32299         on mingw (where it has not yet been ported), and make it optional
32300         elsewhere.
32301         (_gl_register_fd): Use it.
32302
32303         same-inode: make SAME_INODE tri-state, to port to mingw
32304         * NEWS: Mention this change.
32305         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
32306         st_ino always being 0.
32307         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32308         * lib/cycle-check.c (cycle_check): Likewise.
32309         * lib/same.c (same_name): Likewise.
32310
32311         lstat: avoid mingw compilation error
32312         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
32313         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
32314         lstat ourselves.
32315         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
32316         was adequate.
32317         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
32318         the checks for lstat.
32319         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
32320
32321         link: fix test failure on Solaris 9
32322         * lib/link.c (rpl_link): Don't assume link will catch bogus
32323         trailing slash on source.
32324
32325         test-symlinkat: enhance test
32326         * tests/test-readlink.c (main): Move guts...
32327         * tests/test-readlink.h (test_readlink): ...into new file.
32328         * tests/test-symlink.c (main): Move guts...
32329         * tests/test-symlink.h (test_symlink): ...into new file.
32330         * tests/test-symlinkat.c (main): Use new files for further
32331         coverage.
32332         (do_symlink, do_readlink): New helper functions.
32333         * modules/symlink-tests (Files): Ship new file.
32334         (Depends-on): Add stdbool.
32335         * modules/readlink-tests (Files): Ship new file.
32336         (Depends-on): Add stdbool.
32337         * modules/symlinkat-tests (Files): Use new files.
32338
32339 2009-09-23  Eric Blake  <ebb9@byu.net>
32340
32341         readlink: document portability issue with symlink length
32342         * doc/posix-functions/lstat.texi (lstat): Mention that some file
32343         systems have bogus st_size on symlinks, and mention the
32344         areadlink-with-size module.
32345         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32346         * doc/posix-functions/readlink.texi (readlink): Mention the
32347         areadlink module, and ERANGE failure.
32348         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32349         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
32350
32351         readlink: fix Solaris 9 bug with trailing slash
32352         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
32353         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
32354         * doc/posix-functions/readlink.texi (readlink): Document this.
32355         * modules/readlink-tests: New test.
32356         * tests/test-readlink.c: Likewise.
32357
32358         readlink: fix cygwin 1.5.x bug with return type
32359         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
32360         * lib/unistd.in.h (readlink): Use ssize_t.
32361         * lib/readlink.c (readlink): Likewise.
32362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32363         * modules/unistd (Makefile.am): Substitute it.
32364         * lib/unistd.in.h (readlink): Declare replacement.
32365         * doc/posix-functions/readlink.texi (readlink): Document this.
32366
32367         symlink: use throughout gnulib
32368         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
32369         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
32370         symlink is not used.
32371         * modules/symlinkat (Depends-on): Add symlink.
32372         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32373         * modules/canonicalize-tests (Depends-on): Likewise.
32374         * modules/lstat-tests (Depends-on): Likewise.
32375         * modules/openat-tests (Depends-on): Likewise.
32376         * modules/remove-tests (Depends-on): Likewise.
32377         * modules/rmdir-tests (Depends-on): Likewise.
32378         * modules/unlink-tests (Depends-on): Likewise.
32379         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
32380         * tests/test-canonicalize.c (symlink): Likewise.
32381         * tests/test-fstatat.c (symlink): Likewise.
32382         * tests/test-lstat.c (symlink): Likewise.
32383         * tests/test-remove.c (symlink): Likewise.
32384         * tests/test-rmdir.c (symlink): Likewise.
32385         * tests/test-unlink.c (symlink): Likewise.
32386         * tests/test-unlinkat.c (symlink): Likewise.
32387
32388         symlink: new module, for Solaris 9 bug
32389         * modules/symlink: New file.
32390         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
32391         * lib/symlink.c: Likewise.
32392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32393         * modules/unistd (Makefile.am): Substitute them.
32394         * lib/unistd.in.h (symlink): Declare replacement.
32395         * MODULES.html.sh (File system functions): Mention it.
32396         * doc/posix-functions/symlink.texi (symlink): Likewise.
32397         * modules/symlink-tests: New test.
32398         * tests/test-symlink.c: Likewise.
32399
32400 2009-09-23  Bruno Haible  <bruno@clisp.org>
32401
32402         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
32403         when needed.
32404         Test case: gnulib-tool --import --with-tests atexit inttypes.
32405         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
32406
32407 2009-09-23  Bruno Haible  <bruno@clisp.org>
32408
32409         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32410         subcommand, not in a subshell.
32411
32412 2009-09-22  Eric Blake  <ebb9@byu.net>
32413
32414         unistd: sort replacement declarations
32415         * lib/unistd.in.h: Sort declarations.
32416
32417         open, openat: minor optimization
32418         * lib/open.c (open): If open succeeded, len is non-zero.
32419         * lib/openat.c (rpl_openat): Likewise.
32420
32421         link-follow: ensure correct result
32422         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
32423         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
32424         distinguish between possible failures.
32425
32426 2009-09-21  Eric Blake  <ebb9@byu.net>
32427
32428         fts: avoid compiler warning
32429         * lib/fts.c (dirent_inode_sort_may_be_useful)
32430         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
32431
32432 2009-09-19  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/progreloc.c (canonicalize_file_name): New declaration.
32435
32436 2009-09-19  Eric Blake  <ebb9@byu.net>
32437
32438         link: fix quoting
32439         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
32440
32441         openat: fix openat bugs on Solaris 9
32442         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
32443         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
32444         * modules/openat (Depends-on): Add open.
32445         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
32446         * modules/fcntl-h (Makefile.am): Substitute it.
32447         * lib/fcntl.in.h (openat): Declare replacement.
32448         * doc/posix-functions/openat.texi (openat): Document this.
32449
32450         openat: move fstatat and unlinkat into correct files
32451         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
32452         compiled.
32453         * lib/openat.c (fstatat, unlinkat): Move...
32454         * lib/fstatat.c (fstatat): ...into correct files.
32455         * lib/unlinkat.c (unlinkat): Likewise.
32456
32457         openat: fix unlinkat bugs on Solaris 9
32458         * lib/unlinkat.c (unlinkat): New file.
32459         * modules/openat (Depends-on): Add unlink.
32460         (Files): Distribute it.
32461         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
32462         trailing slash behavior is broken.
32463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32464         * modules/unistd (Makefile.am): Substitute it.
32465         * lib/unistd.in.h (unlinkat): Declare replacement.
32466         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
32467
32468         openat: fix fstatat bugs on Solaris 9
32469         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
32470         stat.
32471         * doc/posix-functions/fstatat.texi (fstatat): Document this.
32472
32473         test-unlinkat: enhance test, to expose Solaris 9 bug
32474         * tests/test-unlink.c (main): Factor guts...
32475         * tests/test-unlink.h (test_rmdir_func): ...into new file.
32476         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
32477         * tests/test-rmdir.c (main): Adjust caller.
32478         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
32479         (unlinker): New helper function.
32480         (rmdirat): Enhance check.
32481         * modules/rmdir-tests (Depends-on): Add stdbool.
32482         * modules/unlink-tests (Depends-on): Likewise.
32483         (Files): Add test-unlink.h.
32484         * modules/openat-tests (Files): Likewise.
32485         (Depends-on): Add unlinkdir.
32486
32487         test-fstatat: new test, to expose Solaris 9 bugs
32488         * tests/test-stat.c (main): Factor guts...
32489         * tests/test-stat.h (test_stat_func): ...into new file.
32490         * tests/test-lstat.c (main): Factor guts...
32491         * tests/test-lstat.h (test_lstat_func): ...into new file.
32492         * tests/test-fstatat.c: New file.
32493         * modules/stat-tests (Files): Add test-stat.h.
32494         * modules/lstat-tests (Files): Add test-lstat.h.
32495         (Depends-on): Add stdbool.
32496         * modules/openat-tests (Depends-on): Add pathmax.
32497         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
32498         (Makefile.am): Run new test.
32499
32500         remove: new module, for mingw and Solaris 9 bugs
32501         * modules/remove: New file.
32502         * lib/remove.c: Likewise.
32503         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
32504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32505         * modules/stdio (Makefile.am): Use them.
32506         * lib/stdio.in.h (remove): Declare replacement.
32507         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32508         * doc/posix-functions/remove.texi (remove): Likewise.
32509         * modules/remove-tests: New test.
32510         * tests/test-remove.c: Likewise.
32511
32512         unlink: new module, for Solaris 9 bug
32513         * modules/unlink: New file.
32514         * lib/unlink.c: Likewise.
32515         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
32516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32517         * modules/unistd (Makefile.am): Use them.
32518         * lib/unistd.in.h (stat): Declare replacement.
32519         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32520         * doc/posix-functions/unlink.texi (unlink): Likewise.
32521         * modules/unlink-tests: New test.
32522         * tests/test-unlink.c: Likewise.
32523
32524         lstat: fix Solaris 9 bug
32525         * lib/lstat.c (lstat): Also check for trailing slash on
32526         non-symlink, non-directories.  Use stat module to simplify logic.
32527         * doc/posix-functions/lstat.texi (lstat): Document it.
32528         * modules/lstat-tests (Depends-on): Add errno, same-inode.
32529         (configure.ac): Check for symlink.
32530         * tests/test-lstat.c (main): Add more tests.
32531
32532         stat: add as dependency to other modules
32533         * modules/chown (Depends-on): Add stat.
32534         * modules/euidaccess (Depends-on): Likewise.
32535         * modules/fchdir (Depends-on): Likewise.
32536         * modules/isdir (Depends-on): Likewise.
32537         * modules/link (Depends-on): Likewise.
32538         * modules/lstat (Depends-on): Likewise.
32539         * modules/mkdir-p (Depends-on): Likewise.
32540         * modules/modechange (Depends-on): Likewise.
32541         * modules/open (Depends-on): Likewise.
32542         * modules/readlink (Depends-on): Likewise.
32543         * modules/same (Depends-on): Likewise.
32544
32545         stat: fix Solaris 9 bug
32546         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
32547         slash.
32548         * lib/stat.c (rpl_stat): Work around it.
32549         * doc/posix-functions/stat.texi (stat): Update documentation.
32550
32551         stat: new module, for mingw bug
32552         * modules/stat: New file.
32553         * lib/stat.c: Likewise.
32554         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32555         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32556         * modules/sys_stat (Makefile.am): Use them.
32557         * lib/sys_stat.in.h (stat): Declare replacement.
32558         * lib/openat.c (fstatat): Deal with lstat and stat being function
32559         macros.
32560         * modules/openat (Depends-on): Add inline.
32561         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32562         * doc/posix-functions/stat.texi (stat): Likewise.
32563         * modules/stat-tests: New test.
32564         * tests/test-stat.c: Likewise.
32565
32566 2009-09-19  Jim Meyering  <meyering@redhat.com>
32567
32568         syntax-check: detect unnecessary inclusion of canonicalize.h
32569         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
32570
32571 2009-09-19  Eric Blake  <ebb9@byu.net>
32572
32573         canonicalize-lgpl: adjust clients to use correct header
32574         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32575         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
32576         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
32577         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
32578         * lib/progreloc.c (includes): Likewise.
32579
32580 2009-09-19  Jim Meyering  <meyering@redhat.com>
32581
32582         test-posixtm.c: correct a comment
32583         * tests/test-posixtm.c: Correct first-line comment.
32584         Spotted by Eric Blake.
32585
32586 2009-09-16  Jim Meyering  <meyering@redhat.com>
32587
32588         posixtm-tests: make T const-correct; add a test case
32589         * tests/test-posixtm.c (T): Declare const.
32590         Add a test for -(2^31+1).
32591         Remove useless can-succeed-only-in-2002 test.
32592
32593         posixtm-tests: adjust the sole failing test
32594         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
32595         expected output matches what mktime now produces.  Cross-checked via
32596         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
32597
32598         posixtm: move #ifdef'd tests into a new module
32599         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
32600         * tests/test-posixtm.c: ... this new file.
32601         * modules/posixtm-tests: New module.
32602
32603 2009-09-19  Eric Blake  <ebb9@byu.net>
32604
32605         openat: simplify use of at-func.c
32606         * lib/at-func.c (includes): Include prerequisites here, to
32607         simplify requirements on client files.
32608         * lib/openat-priv.h: Add double-inclusion guard.
32609         * lib/faccessat.c (includes): Simplify.
32610         * lib/fchmodat.c (includes): Likewise.
32611         * lib/fchownat.c (includes): Likewise.
32612         * lib/mkdirat.c (includes): Likewise.
32613         * lib/mkfifoat.c (includes): Likewise.
32614         * lib/symlinkat.c (includes): Likewise.
32615
32616         openat: allow return of fd 0
32617         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
32618         * modules/save-cwd (Depends-on): Replace fcntl-safer with
32619         unistd-safer.
32620         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
32621         <fcntl.h>; this module does not leak fds.
32622         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
32623         must be allowed to return 0, leaving openat_safer to add the
32624         safety.
32625         (openat_permissive): Avoid writing to just-opened fd 2 if
32626         restoring the current directory fails.
32627         * lib/openat-die.c (openat_restore_fail): Add comment.
32628         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
32629         (save_cwd): Guarantee safe fd, but without use of open_safer.
32630         * tests/test-openat.c: New test.
32631         * modules/openat-tests (Files, Makefile.am): Distribute and build
32632         new file.
32633
32634         relocatable-prog-wrapper: fix build
32635         * modules/relocatable-prog-wrapper (Files): Update name of
32636         canonicalize m4 file, broken on 2009-09-17.
32637         Reported by emad hajjar <aleppos@hotmail.com>.
32638
32639 2009-09-19  Bruno Haible  <bruno@clisp.org>
32640
32641         * lib/safe-alloc.h: Use the standard header with GPL copyright.
32642         * lib/safe-alloc.c: Likewise.
32643         Reported by Ian Beckwith <ianb@erislabs.net>.
32644
32645 2009-09-18  Bruno Haible  <bruno@clisp.org>
32646
32647         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
32648         Reported by <erobles@sensacd.com.mx>.
32649
32650 2009-09-17  Eric Blake  <ebb9@byu.net>
32651
32652         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
32653         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
32654         slashes when checking if last component is missing.
32655         * tests/test-canonicalize.c (main): Test this.
32656
32657         canonicalize, canonicalize-lgpl: honor // if distinct from /
32658         * modules/canonicalize (Files): Add double-slash-root.m4.
32659         * modules/canonicalize-lgpl (Files): Likewise.
32660         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32661         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
32662         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
32663         fallback definition.
32664         (canonicalize_filename_mode): Use it to protect //.
32665         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32666         (__realpath): Likewise.
32667         * tests/test-canonicalize.c (main): Test this.
32668         * tests/test-canonicalize-lgpl.c (main): Likewise.
32669         * modules/canonicalize-tests (Depends-on): Add same-inode.
32670         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32671
32672         canonicalize-lgpl: fix glibc bug with trailing slash
32673         * m4/canonicalize-lgpl.m4: Move contents...
32674         * m4/canonicalize.m4: ...here.
32675         (gl_CANONICALIZE_LGPL): Factor realpath check...
32676         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32677         glibc 2.3.5 bug, fixed 2005-04-27.
32678         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32679         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32680         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32681         * modules/canonicalize-lgpl (Files): Manage file rename.
32682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32683         * modules/stdlib (Makefile.am): Substitute witness.
32684         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32685         is needed.
32686         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32687         replacement is required.
32688         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32689         * doc/glibc-functions/canonicalize_file_name.texi
32690         (canonicalize_file_name): Document this.
32691         * doc/posix-functions/realpath.texi (realpath): Likewise.
32692
32693         canonicalize-lgpl: reject non-directory with trailing slash
32694         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32695         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32696         catches failures in glibc 2.3.5.
32697         * tests/test-canonicalize.c (main): Likewise.
32698
32699         canonicalize-lgpl: use native realpath if it works
32700         * lib/canonicalize-lgpl.c (realpath): Guard with
32701         FUNC_REALPATH_WORKS.
32702         * lib/stdlib.in.h (realpath): Make declaration optional based on
32703         HAVE_REALPATH.
32704         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32705         native realpath works.
32706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32707         * modules/stdlib (Makefile.am): Substitute witness.
32708
32709         canonicalize, canonicalize-lgpl: use <stdlib.h>
32710         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32711         (Include): Mention <stdlib.h>.
32712         (configure.ac): Mention functions we provide.
32713         * modules/canonicalize (configure.ac): Likewise.
32714         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32715         realpath if canonicalize_file_name is missing.
32716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32717         * modules/stdlib (Makefile.am): Substitute witnesses.
32718         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32719         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32720         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32721         * NEWS: Document this.
32722         * doc/glibc-functions/canonicalize_file_name.texi
32723         (canonicalize_file_name): Likewise.
32724         * doc/posix-functions/realpath.texi (realpath): Likewise.
32725         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32726
32727         test-canonicalize: consolidate into single C program
32728         * tests/test-canonicalize.sh: Delete; move setup into...
32729         * tests/test-canonicalize.c (main): ...the program, making it
32730         easier to run in debugger.  Add some tests.
32731         * modules/canonicalize-tests (Files): Remove unused file.
32732         (Depends-on): Add progname.
32733         (configure.ac, Makefile.am): Simplify.
32734
32735         test-canonicalize-lgpl: consolidate into single C program
32736         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32737         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32738         easier to run in debugger.  Add some tests.
32739         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32740         (configure.ac, Makefile.am): Simplify.
32741
32742         canonicalize: avoid resolvepath
32743         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32744         unnecessary checks.
32745         * lib/canonicalize.c (includes): Simplify.
32746         (canonicalize_file_name): Drop resolvepath implementation.
32747         * modules/canonicalize (Depends-on): Drop filenamecat.
32748
32749         canonicalize: don't lose errno
32750         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32751         over calls to free.
32752
32753         canonicalize: simplify errno handling
32754         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32755         assignment.
32756
32757         canonicalize, canonicalize-lgpl: update module dependencies
32758         * modules/canonicalize (Depends-on): Add extensions, lstat,
32759         pathmax, stdlib.
32760         (Files): Drop pathmax.h.
32761         (configure.ac): Adjust macro name.
32762         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32763         lstat, stdlib, sys_stat.
32764         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32765         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32766         extensions.
32767         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32768         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32769         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32770         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32771         declaration, if available.
32772         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32773         we can rely on the readlink module.
32774         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32775         (includes): Use <unistd.h> unconditionally.
32776
32777 2009-09-17  Eric Blake  <ebb9@byu.net>
32778
32779         maint: make Include sections of modules consistent
32780         * modules/alloca: Use only header name; no need to list #include.
32781         * modules/alloca-opt: Likewise.
32782         * modules/arpa_inet: Likewise.
32783         * modules/canon-host: Likewise.
32784         * modules/configmake: Likewise.
32785         * modules/dirent: Likewise.
32786         * modules/eealloc: Likewise.
32787         * modules/environ: Likewise.
32788         * modules/fchdir: Likewise.
32789         * modules/fcntl: Likewise.
32790         * modules/fcntl-h: Likewise.
32791         * modules/gethrxtime: Likewise.
32792         * modules/gettime: Likewise.
32793         * modules/ignore-value: Likewise.
32794         * modules/inet_ntop: Likewise.
32795         * modules/inet_pton: Likewise.
32796         * modules/inttypes: Likewise.
32797         * modules/isnand-nolibm: Likewise.
32798         * modules/isnanf-nolibm: Likewise.
32799         * modules/mbchar: Likewise.
32800         * modules/mbfile: Likewise.
32801         * modules/mbiter: Likewise.
32802         * modules/mbuiter: Likewise.
32803         * modules/netdb: Likewise.
32804         * modules/netinet_in: Likewise.
32805         * modules/nproc: Likewise.
32806         * modules/pagealign_alloc: Likewise.
32807         * modules/poll: Likewise.
32808         * modules/printf-frexp: Likewise.
32809         * modules/pthread: Likewise.
32810         * modules/putenv: Likewise.
32811         * modules/random_r: Likewise.
32812         * modules/relocatable-prog: Likewise.
32813         * modules/search: Likewise.
32814         * modules/select: Likewise.
32815         * modules/selinux-h: Likewise.
32816         * modules/settime: Likewise.
32817         * modules/signal: Likewise.
32818         * modules/size_max: Likewise.
32819         * modules/socklen: Likewise.
32820         * modules/ssize_t: Likewise.
32821         * modules/stdarg: Likewise.
32822         * modules/stdbool: Likewise.
32823         * modules/stddef: Likewise.
32824         * modules/stdint: Likewise.
32825         * modules/stdio: Likewise.
32826         * modules/stdlib: Likewise.
32827         * modules/string: Likewise.
32828         * modules/strings: Likewise.
32829         * modules/sys_file: Likewise.
32830         * modules/sys_ioctl: Likewise.
32831         * modules/sys_select: Likewise.
32832         * modules/sys_socket: Likewise.
32833         * modules/sys_stat: Likewise.
32834         * modules/sys_time: Likewise.
32835         * modules/sys_times: Likewise.
32836         * modules/sys_utsname: Likewise.
32837         * modules/sys_wait: Likewise.
32838         * modules/sysexits: Likewise.
32839         * modules/time: Likewise.
32840         * modules/times: Likewise.
32841         * modules/tmpfile: Likewise.
32842         * modules/trim: Likewise.
32843         * modules/unistd: Likewise.
32844         * modules/wchar: Likewise.
32845         * modules/wctype: Likewise.
32846
32847 2009-09-17  Bruno Haible  <bruno@clisp.org>
32848
32849         Make getdate.y compile on QNX and NetBSD 5 / i386.
32850         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32851         TIME_T_FITS_IN_LONG_INT.
32852         * lib/getdate.y (long_time_t): New type.
32853         (relative_time): Change type of 'seconds' field to long_time_t.
32854         (get_date): Update types of local variables. Check against overflow
32855         during conversion from long_time_t to time_t.
32856         Reported by Matt Kraai <kraai@ftbfs.org>
32857         and Hasso Tepper <hasso@netbsd.org>.
32858
32859 2009-09-17  Bruno Haible  <bruno@clisp.org>
32860
32861         * modules/COPYING: Update copyright years.
32862         * modules/README: Likeiwse.
32863         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32864         Reported by Ian Beckwith <ianb@erislabs.net>.
32865
32866 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32867
32868         * users.txt: Update references for gnuit package.
32869
32870 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32871
32872         * m4/getdelim.m4: Fix typo in copyright line.
32873
32874 2009-09-17  Bruno Haible  <bruno@clisp.org>
32875
32876         * lib/atoll.c: Use the standard header with GPL copyright.
32877         * lib/argz.in.h: Likewise.
32878         * lib/glob.c: Likewise.
32879         * lib/glob-libc.h: Likewise.
32880         * lib/random_r.c: Likewise.
32881         * lib/siglist.h: Likewise.
32882         * lib/strsignal.c: Likewise.
32883         Reported by Ian Beckwith <ianb@erislabs.net>.
32884
32885 2009-09-17  Eric Blake  <ebb9@byu.net>
32886
32887         rmdir: ensure correct dependency order
32888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32889
32890 2009-09-17  Bruno Haible  <bruno@clisp.org>
32891
32892         Disable assertion that fails on NetBSD 5 / i386.
32893         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32894         Reported by Sam Steingold <sds@gnu.org>
32895         and Hasso Tepper <hasso@netbsd.org>.
32896
32897 2009-09-16  Eric Blake  <ebb9@byu.net>
32898
32899         unlinkdir: port to mingw
32900         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32901         on which no one can unlink a directory.
32902
32903         stdlib: sort witness names
32904         * modules/stdlib (Makefile.am): Sort replacements.
32905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32906         * lib/stdlib.in.h: Likewise.
32907
32908         parse-duration-tests: avoid link failure
32909         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32910         LIBINTL.
32911         Reported by Tom G. Christensen.
32912
32913         openat-tests: ensure unlinkat behaves like rmdir
32914         * tests/test-rmdir.c (main): Factor guts...
32915         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32916         * modules/rmdir-tests (Files): Ship new file.
32917         * modules/openat-tests: New test.
32918         * tests/test-unlinkat.c: Likewise.
32919
32920         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32921         * modules/rmdir-errno (Status, Notice): Now obsolete.
32922
32923         rmdir: work around cygwin 1.5.x and mingw bugs
32924         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32925         * lib/rmdir.c (rmdir): Work around it.
32926         * modules/rmdir (Status, Notice): No longer obsolete.
32927         (Files): Add dos.m4.
32928         (Depends-on): Add unistd.
32929         (configure.ac): Set witnesses.
32930         (License): Relax to LGPLv2+.
32931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32932         * modules/unistd (Makefile.am): Substitute witnesses.
32933         * lib/unistd.in.h (rmdir): Declare replacement.
32934         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32935         * modules/rmdir-tests: New tests.
32936         * tests/test-rmdir.c: Likewise.
32937
32938 2009-09-15  Eric Blake  <ebb9@byu.net>
32939
32940         fchdir: improve use of replacement functions
32941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32942         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32943         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32944         REPLACE_CLOSEDIR.
32945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32946         * modules/sys_stat (Makefile.am): Substitute correct witness.
32947         * modules/dirent (Makefile.am): Likewise.
32948         * modules/unistd (Makefile.am): Likewise.
32949         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32950         * lib/unistd.in.h (dup): Likewise.
32951         * lib/sys_stat.in.h (fstat): Likewise.
32952
32953         maint: ignore gnulib-tool temp files
32954         * .gitignore: Ignore files created during gnulib-tool --test.
32955
32956 2009-09-13  Jim Meyering  <meyering@redhat.com>
32957
32958         posixtm: don't reject a time that specify "60" as the number of seconds
32959         * lib/posixtm.c (posixtime): The code to reject invalid dates
32960         would also reject a time specified with the .60 suffix.
32961         But POSIX allows that, in order to accommodate leap seconds.
32962         So don't reject it.
32963         (main): Adjust tests accordingly.
32964         * modules/posixtm (Depends-on): Add stpcpy.
32965
32966 2009-09-11  Jim Meyering  <meyering@redhat.com>
32967
32968         announce-gen: include [$release_type] in emitted Subject:
32969         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32970         e.g., [stable] in the emitted Subject: line.
32971
32972 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32973
32974         Remove obsolete macros from several modules.
32975         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32976         obsolete Autoconf macros with their modern counterparts.
32977         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32978         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32979         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32980         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32981         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32982         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32984         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32985         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32986         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32987         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32988         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32989         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32990         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32991         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32992         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32993         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32994         * m4/time_r.m4 (gl_TIME_R): Likewise.
32995         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32996         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32997         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32998
32999         Fix copyright header in build-aux scripts.
33000         * build-aux/git-version-gen: Fix copyright header to match GPLv3
33001         recommendation.
33002         * build-aux/ncftpput-ftp: Likewise.
33003         * build-aux/update-copyright: Likewise.
33004
33005 2009-09-09  Eric Blake  <ebb9@byu.net>
33006
33007         test-link: allow Linux choice of errno
33008         * tests/test-link.c (main): Relax test for alternate error.
33009
33010         strndup: fix improper m4 caching
33011         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
33012         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
33013         (gl_PREREQ_STRNDUP): Delete.
33014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
33015         * modules/string (Makefile.am): Substitute it.
33016         * lib/string.in.h (strndup): Modernize prototype.
33017
33018         getcwd: port to mingw
33019         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
33020         different from the POSIX assumptions made throughout the getcwd
33021         module; fortunately, the mingw getcwd does not need replacement.
33022         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
33023         * modules/getcwd-tests: New test.
33024         * tests/test-getcwd.c: Likewise.
33025
33026         link: fix platform bugs
33027         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
33028         * lib/link.c (link): Work around them.  Fix related mingw bug.
33029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
33030         * modules/unistd (Makefile.am): Substitute it.
33031         * lib/unistd.in.h (link): Declare replacement.
33032         * doc/posix-functions/link.texi (link): Document this.
33033         * modules/link (Depends-on): Add strdup-posix, sys_stat.
33034
33035         test-link: consolidate into single C program, test more cases
33036         * tests/test-link.sh: Delete.
33037         * tests/test-link.c: Test more error conditions.  Exposes bugs on
33038         at least Cygwin and Solaris.
33039         * modules/link-tests (Files): Remove unused file.
33040         (Depends-on): Add errno, sys_stat.
33041         (Makefile.am): Simplify.
33042
33043 2009-09-08  Bruno Haible  <bruno@clisp.org>
33044
33045         Work around towlower, towupper bug on mingw.
33046         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
33047         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
33048         * doc/posix-functions/towlower.texi: Mention the mingw bug.
33049         * doc/posix-functions/towupper.texi: Likewise.
33050         Reported by Eric Blake.
33051
33052 2009-09-08  Jim Meyering  <meyering@redhat.com>
33053
33054         build: don't try to run autoheader if we don't use it
33055         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
33056         is not used in configure.ac.
33057
33058 2009-09-08  Eric Blake  <ebb9@byu.net>
33059
33060         euidaccess: fix compilation error
33061         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
33062
33063         rawmemchr: relax license
33064         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
33065         okay.
33066         Reported by Jim Meyering.
33067
33068         mkfifoat: new module
33069         * modules/mkfifoat: New file.
33070         * lib/mkfifoat.c: Likewise.
33071         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
33072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33073         * modules/sys_stat (Makefile.am): Use them.
33074         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
33075         * MODULES.html.sh (File system functions): Mention module.
33076         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33077         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33078         * modules/mkfifoat-tests: New test.
33079         * tests/test-mkfifoat.c: Likewise.
33080
33081         strchrnul: relax license
33082         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
33083         okay.
33084         Reported by Jim Meyering.
33085
33086 2009-09-08  Eric Blake  <ebb9@byu.net>
33087
33088         fstatat: fix compilation on Solaris
33089         * lib/fstatat.c (includes): Add fcntl.h.
33090         Reported by Pádraig Brady.
33091
33092 2009-09-07  Eric Blake  <ebb9@byu.net>
33093
33094         rename: modernize replacement
33095         * modules/rename (Depends-on): Add stdio.
33096         (configure.ac): Declare witness.
33097         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
33098         stdio take care of replacement.
33099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33100         * modules/stdio (Makefile.am): Substitute them.
33101         * lib/stdio.in.h (rename): Declare replacement.
33102         * lib/rename.c (includes): Allow cross-compilation to non-windows
33103         machines.
33104         * doc/posix-functions/rename.texi (rename): Improve
33105         documentation.
33106
33107         stdio: sort witness names
33108         * modules/stdio (Makefile.am): Sort replacements.
33109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33110         * lib/stdio.in.h: Likewise.
33111
33112         getcwd: minor cleanups
33113         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
33114         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
33115
33116         openat: provide more convenience names
33117         * modules/faccessat (configure.ac): Add C witness.
33118         * lib/unistd.in.h (readlinkat): Fix typo.
33119         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
33120         convenience wrappers.
33121         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
33122         wrappers in syntax checks.
33123
33124 2009-09-06  Eric Blake  <ebb9@byu.net>
33125
33126         doc: fix comments in recent patches
33127         * lib/faccessat.c: Mention correct function.
33128         * lib/fchmodat.c: Likewise.
33129         * lib/fchownat.c: Likewise.
33130         * lib/symlinkat.c: Likewise.
33131         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
33132         constants.
33133
33134         faccessat, symlinkat: continue cleanup of previous patch
33135         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
33136         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33137         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
33138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
33139         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
33140         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
33141         set.
33142
33143 2009-09-06  Bruno Haible  <bruno@clisp.org>
33144
33145         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
33146         (fstatat): Declare if GNULIB_FSTATAT is set.
33147         (mkdirat): Declare if GNULIB_MKDIRAT is set.
33148         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
33149         (unlinkat): Declare if GNULIB_UNLINKAT is set.
33150         * modules/fcntl-h (Files): Remove m4/openat.m4.
33151         * modules/sys_stat (Files): Remove m4/openat.m4.
33152         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
33153         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
33154         * modules/unistd (Files): Remove m4/openat.m4.
33155         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
33156         GNULIB_OPENAT.
33157         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
33158         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
33159         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
33160         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
33161         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
33162         gl_OPENAT_DEFAULTS.
33163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
33164         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
33165         Don't require gl_OPENAT_DEFAULTS.
33166         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
33167         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
33168         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
33169         (gl_OPENAT_DEFAULTS): Remove macro.
33170
33171 2009-09-06  Bruno Haible  <bruno@clisp.org>
33172
33173         * modules/openat (configure.ac): Remove unneeded witness.
33174
33175 2009-09-06  Bruno Haible  <bruno@clisp.org>
33176
33177         Set errno to ENOSYS when a function is entirely unsupported.
33178         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
33179         EOPNOTSUPP.
33180         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33181         * modules/chown (Depends-on): Remove errno.
33182
33183 2009-09-06  Bruno Haible  <bruno@clisp.org>
33184
33185         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
33186
33187 2009-09-06  Bruno Haible  <bruno@clisp.org>
33188
33189         * lib/sys_stat.in.h: Fix preprocessor command indentation.
33190
33191 2009-09-06  Ben Pfaff  <blp@gnu.org>
33192             Bruno Haible  <bruno@clisp.org>
33193
33194         Work around a glibc bug in strtok_r.
33195         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
33196         Undefine if UNDEFINE_STRTOK_R is set.
33197         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
33198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33199         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
33200         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
33201         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
33202         UNDEFINE_STRTOK_R.
33203         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
33204
33205 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33206
33207         exclude: minor fix
33208         * lib/exclude.c: Include wctype.h
33209
33210 2009-09-06  Akim Demaille  <demaille@gostai.com>
33211
33212         bootstrap: improve error message
33213         * build-aux/bootstrap (find_tool): Upon failure, report the list
33214         of candidates.
33215         Honor the initial value of the envvar.
33216
33217 2009-09-05  Eric Blake  <ebb9@byu.net>
33218
33219         symlinkat: new module
33220         * modules/symlinkat: New file.
33221         * lib/symlinkat.c: Likewise.
33222         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
33223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33224         * modules/unistd (Makefile.am): Use them.
33225         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
33226         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
33227         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
33228         * MODULES.html.sh (File system functions): Mention module.
33229         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33230         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33231         * modules/symlinkat-tests: New test.
33232         * tests/test-symlinkat.c: Likewise.
33233
33234         test-openat-safer: add more checks
33235         * tests/test-openat-safer.c (main): Check more code paths.
33236
33237 2009-09-05  Jim Meyering  <meyering@redhat.com>
33238
33239         syntax-check: detect unnecessary inclusion of openat.h
33240         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
33241
33242 2009-09-05  Bruno Haible  <bruno@clisp.org>
33243
33244         Support towlower, towupper.
33245         * doc/posix-functions/towlower.texi: Mention module wctype.
33246         * doc/posix-functions/towupper.texi: Likewise.
33247         * lib/wctype.in.h (towlower, towupper): New functions.
33248         * tests/test-wctype.c: Include stdio.h, stdlib.h.
33249         (ASSERT): New macro.
33250         (e): New variable.
33251         (main): Test also towlower, towupper. Test WEOF argument.
33252         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33253
33254 2009-09-05  Bruno Haible  <bruno@clisp.org>
33255
33256         Fix conversion behaviour when the input is invalid.
33257         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
33258         mark occurring in first pass of indirect conversion.
33259         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
33260         input.
33261         Found by clang's static analyzer.
33262
33263 2009-09-05  Bruno Haible  <bruno@clisp.org>
33264
33265         * tests/test-striconveh.c (main): Test indirect conversion on platforms
33266         where direct conversion is possible.
33267
33268 2009-09-04  Eric Blake  <ebb9@byu.net>
33269
33270         openat: fail with ENOENT on empty name
33271         * lib/openat-proc.c (openat_proc_name): Special-case the empty
33272         buffer.
33273
33274         link-follow: fix logic bug in prior patch
33275         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
33276         reversed sense of yes and no in prior patch.  Avoid confusing
33277         compilation failure with desired semantics.
33278
33279         link-follow: accomodate mingw and cross-compilation
33280         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
33281         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
33282         cross-compilation results to -1, to make linkat easier to
33283         implement when cross-compiling.  Trivially support mingw.
33284         * modules/link-follow (configure.ac): Call new name.
33285         * NEWS: Mention this.
33286
33287 2009-09-03  Eric Blake  <ebb9@byu.net>
33288
33289         faccessat: compile replacement
33290         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
33291         needed.
33292
33293         fts: fix compilation error
33294         * lib/fts.c (includes): Re-add "openat.h", for
33295         openat_needs_fchdir.
33296
33297         faccessat: new module
33298         * modules/faccessat: New file.
33299         * lib/faccessat.c: Likewise.
33300         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33302         * modules/unistd (Makefile.am): Use it.
33303         * lib/unistd.in.h (faccessat): Declare it.
33304         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
33305         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
33306         * MODULES.html.sh (File system functions): Mention it.
33307         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
33308         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33309
33310         euidaccess: prefer POSIX over non-standard implementation
33311         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
33312         * lib/euidaccess.c (euidaccess): Use it if available.
33313
33314         openat: make template easier to use
33315         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
33316         AT_FUNC_F2 to be undefined.
33317         (VALIDATE_FLAG): New macro; use it to reject bad flags.
33318         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
33319         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
33320         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
33321         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
33322         Likewise.
33323         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
33324         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
33325         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
33326         Likewise.
33327
33328         openat: declare in POSIX headers
33329         * NEWS: Mention this.
33330         * modules/openat (configure.ac): Declare witnesses.
33331         (Depends-on): Add fcntl-h, sys_stat, unistd.
33332         (Include): Mention correct headers.
33333         * modules/fcntl-h (Depends-on): Add link-warning.
33334         (Files): Add openat.m4.
33335         (Makefile.am): Substitute witnesses.
33336         * modules/sys_stat (Files, Makefile.am): Likewise.
33337         * modules/unistd (Files, Makefile.am): Likewise.
33338         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
33339         (gl_OPENAT_DEFAULTS): New macro.
33340         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
33341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
33342         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
33343         (SYS_STAT_H): Remove unused variable.
33344         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
33345         * lib/fcntl--.h (includes): Remove unneeded header.
33346         * lib/openat-safer.c (includes): Likewise.
33347         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
33348         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
33349         appropriate headers.
33350         (__OPENAT_PREFIX): Delete.
33351         * lib/fcntl.in.h (openat): Provide declaration.
33352         (AT_FDCWD): Fix Solaris bug.
33353         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
33354         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
33355         * lib/fchmodat.c (includes):  Adjust to find declaration.
33356         * lib/fchownat.c (includes): Likewise.
33357         * lib/mkdirat.c (includes): Likewise.
33358         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
33359         still visible.
33360
33361 2009-09-02  Eric Blake  <ebb9@byu.net>
33362
33363         errno: use consistently
33364         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
33365         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
33366         * lib/canonicalize.c (ELOOP): Likewise.
33367         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
33368         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
33369         * lib/lchown.c (EOPNOTSUPP): Likewise.
33370         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
33371         * lib/savewd.c (ESTALE): Likewise.
33372         * lib/settime.c (ENOSYS): Likewise.
33373         * lib/utimens.c (ENOSYS): Likewise.
33374         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
33375         * lib/chdir-safer.c (ELOOP): Likewise.
33376         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
33377         * modules/c-stack (Depends-on): Add errno.
33378         * modules/canonicalize (Depends-on): Likewise.
33379         * modules/chdir-safer (Depends-on): Likewise.
33380         * modules/fdopendir (Depends-on): Likewise.
33381         * modules/inet_ntop (Depends-on): Likewise.
33382         * modules/inet_pton (Depends-on): Likewise.
33383         * modules/lchown (Depends-on): Likewise.
33384         * modules/openat (Depends-on): Likewise.
33385         * modules/savewd (Depends-on): Likewise.
33386         * modules/settime (Depends-on): Likewise.
33387         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
33388
33389         fts: avoid leaking fds
33390         * modules/fts (Depends-on): Add cloexec.
33391         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
33392         flag.
33393
33394         fts: make directory fds more robust
33395         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
33396         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
33397
33398         backupfile, chdir-long, fts, savedir: make safer
33399         * lib/backupfile.c (includes): Use "dirent--.h", since
33400         numbered_backup can write to stderr during readdir.
33401         * lib/savedir.c (includes): Likewise.
33402         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
33403         emulation can write to stderr on failure.
33404         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
33405         * lib/getcwd.c: Document why opendir_safer is unused.
33406         * lib/glob.c: Likewise.
33407         * lib/scandir.c: Likewise.
33408         * lib/openat-proc.c: Likewise, for open_safer.
33409         * modules/backupfile (Depends-on): Add dirent-safer.
33410         * modules/savedir (Depends-on): Likewise.
33411         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33412         * modules/chdir-long (Depends-on): Add openat-safer.
33413
33414         openat-safer: new module
33415         * modules/openat-safer: New file.
33416         * lib/openat-safer.c: Likewise.
33417         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
33418         * lib/fcntl-safer.h (openat_safer): Declare.
33419         * lib/fcntl--.h (openat): Override.
33420         * MODULES.html.sh (File descriptor based I/O): Mention it.
33421         * lib/openat.h: Add double-inclusion guards.
33422         * lib/openat.c (includes): Only include "fcntl-safer.h", not
33423         "fcntl--.h", so we can implement openat.
33424         * modules/openat-safer-tests: New test.
33425         * tests/test-openat-safer.c: New file.
33426
33427         dirent-safer: new module
33428         * modules/dirent-safer: New file.
33429         * lib/dirent--.h: Likewise.
33430         * lib/dirent-safer.h: Likewise.
33431         * lib/opendir-safer.c: Likewise.
33432         * m4/dirent-safer.m4: Likewise.
33433         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
33434         * modules/dirent-safer-tests: New test.
33435         * tests/test-dirent-safer.c: New file.
33436         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
33437
33438         fdopendir: optimize on mingw
33439         * lib/unistd.in.h (_gl_directory_name): New prototype.
33440         * lib/fchdir.c (_gl_directory_name): Implement it.
33441         (fchdir): Use it to simplify implementation.
33442         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
33443         fchdir, when available, to avoid calling [f]chdir().
33444
33445         fdopendir: split into its own module
33446         * lib/openat.c (fdopendir): Move...
33447         * lib/fdopendir.c: ...into new file.
33448         * modules/fdopendir: New module.
33449         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
33450         * modules/openat (Depends-on): Add fdopendir.
33451         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
33452         fdopendir here.
33453         * modules/savedir (Depends-on): Only need fdopendir, not full
33454         openat.
33455         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
33456         * lib/openat.h (fdopendir): Drop prototype.
33457         * lib/dirent.in.h (fdopendir): Provide prototype.
33458         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
33459         * modules/dirent (Makefile.am): Substitute them.
33460         * MODULES.html.sh (File system functions): Mention it.
33461         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
33462         * modules/fdopendir-tests: New file.
33463         * tests/test-fdopendir.c: Likewise.
33464
33465         fchdir: use more consistent macro convention
33466         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
33467         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
33468         REPLACE_FCHDIR, rather than relying on config.h macros.
33469         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
33470         inside a single make-time REPLACE_FCHDIR block, rather than using
33471         the config.h FCHDIR_REPLACEMENT.
33472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
33473         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
33474         Manage fstat replacement.
33475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
33476         REPLACE_FCHDIR.
33477         * modules/sys_stat (Files): Add m4/unistd_h.m4.
33478         (Makefile.am): Substitute REPLACE_FCHDIR.
33479         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
33480         FCHDIR_REPLACEMENT.
33481         * lib/dup-safer.c (dup_safer): Likewise.
33482         * lib/dup2.c (rpl_dup2): Likewise.
33483         * lib/dup3.c (rpl_dup3): Likewise.
33484         * lib/open.c (rpl_open): Likewise.
33485
33486         fchdir: simplify error handling, and support dup3
33487         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
33488         stdbool, malloc-posix, realloc-posix.
33489         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
33490         (ensure_dirs_slot): Return false on allocation failure.
33491         (rpl_dup2): Delete.
33492         (_gl_register_dup): New function.
33493         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
33494         (_gl_register_fd): Close fd on allocation failure.
33495         * lib/fcntl.in.h (_gl_register_fd): Update signature.
33496         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
33497         prototype.
33498         (rpl_dup2_fchdir): Delete prototype.
33499         * lib/open.c (open): Update caller.
33500         * lib/dup2.c (dup2): Track fchdir metadata.
33501         * lib/dup3.c (dup3): Likewise.
33502         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
33503         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
33504
33505 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33506
33507         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
33508         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
33509         don't pass arguments to AC_OUTPUT.
33510
33511 2009-09-02  Bruno Haible  <bruno@clisp.org>
33512
33513         * modules/mkdtemp (License): Relicense under LGPLv2+.
33514         Reported by Paolo Bonzini.
33515
33516 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33517
33518         Replace uses of obsolete autoconf macros in Jim's modules.
33519         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
33520         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
33521         can evoke a warning from autoconf when run with -Wobsolete
33522         enabled.  They were declared obsolete for good reasons (see
33523         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
33524         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
33525         should not continue using the deprecated macros.
33526         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
33527         obsolete Autoconf macros with modern counterparts.
33528         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33529         * m4/dos.m4 (gl_AC_DOS): Likewise.
33530         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
33531         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
33532         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
33533         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
33534         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
33535         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
33536         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33537         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
33538         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33539         Likewise.
33540         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
33541         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33542         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
33543         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
33544         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33545         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33546
33547 2009-09-01  Eric Blake  <ebb9@byu.net>
33548
33549         fchdir: fix off-by-one bug in previous patch
33550         * lib/fchdir.c (rpl_fstat): Use correct bounds.
33551         (_gl_unregister_fd): Delete useless if.
33552
33553 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
33554
33555         maint.mk: sort the list of syntax-check rules
33556         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
33557         easier to get a sense of progress when the rules are run sequentially
33558         and take a long time.
33559
33560 2009-09-01  Simon Josefsson  <simon@josefsson.org>
33561
33562         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
33563         * modules/netinet_in: Likewise.
33564         * modules/sys_file: Likewise.
33565         * modules/sys_ioctl: Likewise.
33566         * modules/sys_select: Likewise.
33567         * modules/sys_socket: Likewise.
33568         * modules/sys_stat: Likewise.
33569         * modules/sys_time: Likewise.
33570         * modules/sys_times: Likewise.
33571         * modules/sys_utsname: Likewise.
33572         * modules/sys_wait: Likewise.
33573
33574 2009-09-01  Jim Meyering  <meyering@redhat.com>
33575
33576         fts: help ensure that return values are not ignored
33577         * lib/fts_.h (__GNUC_PREREQ): Define.
33578         (__attribute_warn_unused_result__): Define.
33579         (fts_children, fts_close, fts_open, fts_read): Declare with
33580         __attribute_warn_unused_result__.
33581
33582         fts: fts_close now fails also when closing a dir file descriptor fails
33583         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
33584         and propagate to caller, along with errno.
33585
33586         announce-gen: correct formatting in --help output
33587         * build-aux/announce-gen (usage): Move the one-line description in
33588         --help output "up", to where it belongs, just after Usage:.
33589
33590 2009-08-31  Eric Blake  <ebb9@byu.net>
33591
33592         fchdir: port to mingw
33593         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
33594         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
33595         opened, then use a substitute.
33596         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
33597         replacement.
33598         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
33599         (_gl_register_fd): No need to check stat if open already filters
33600         all directories.
33601         (fchdir): Fix error condition to match POSIX.
33602         * modules/fchdir (Depends-on): Add sys_stat.
33603         * doc/posix-functions/open.texi (open): Document the limitation.
33604         * modules/fchdir-tests: New file.
33605         * tests/test-fchdir.c: Likewise.
33606
33607         canonicalize: allow cross-testing from cygwin to mingw
33608         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
33609         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
33610         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
33611         Likewise.
33612         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
33613         target does not support symlinks.
33614         * tests/test-canonicalize-lgpl.sh: Likewise.
33615
33616         chown: avoid compilation warning on mingw
33617         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
33618         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
33619         mingw.
33620         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33621         * modules/chown (Depends-on): Add errno.
33622
33623 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33624
33625         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
33626         command.
33627
33628 2009-08-31  Jim Meyering  <meyering@redhat.com>
33629
33630         canonicalize: remove useless initialization
33631         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
33632         initialization of local, "end".
33633
33634 2009-08-30  Bruno Haible  <bruno@clisp.org>
33635
33636         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
33637         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
33638         ENOSYS.
33639
33640 2009-08-30  Bruno Haible  <bruno@clisp.org>
33641
33642         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
33643         /usr/xpg4/bin/tr when it exists.
33644         * tests/test-pipe-filter-gi1.sh: Likewise.
33645
33646 2009-08-30  Bruno Haible  <bruno@clisp.org>
33647
33648         Work around deficient /usr/bin/id program on Solaris.
33649         * tests/test-file-has-acl.sh (ID): New variable.
33650         * tests/test-set-mode-acl.sh (ID): Likewise.
33651         * tests/test-copy-acl.sh (ID): Likewise.
33652         * tests/test-copy-file.sh (ID): Likewise.
33653
33654 2009-08-30  Bruno Haible  <bruno@clisp.org>
33655
33656         New module 'xstriconveh'.
33657         * lib/xstriconveh.h: New file.
33658         * lib/xstriconveh.c: New file.
33659         * modules/xstriconveh: New file.
33660
33661 2009-08-30  Bruno Haible  <bruno@clisp.org>
33662
33663         Make it easier to use mem_cd_iconveh.
33664         * lib/striconveh.h (iconveh_t): New type.
33665         (iconveh_open, iconveh_close): New declarations.
33666         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33667         with a single 'const iconveh_t *' argument.
33668         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33669         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33670         with a single 'const iconveh_t *' argument.
33671         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33672         * tests/test-striconveh.c (main): Update.
33673         * NEWS: Mention the change.
33674
33675 2009-08-30  Bruno Haible  <bruno@clisp.org>
33676
33677         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33678         problem.
33679
33680 2009-08-30  Bruno Haible  <bruno@clisp.org>
33681
33682         Work around iconv_open problem on Solaris.
33683         * lib/iconv_open-solaris.gperf: New file.
33684         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33685         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33686         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33687         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33688         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33689         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33690
33691 2009-08-29  Jim Meyering  <meyering@redhat.com>
33692
33693         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33694         * top/maint.mk (cvs-check): Remove target; it was just an alias
33695         to the better-named vc-diff-check.
33696         (maintainer-distcheck): Remove rule.  It was used only from
33697         the (alpha/beta/major) target, and all of its commands but one
33698         were coreutils-specific.
33699         (vc-dist): Remove rule.
33700         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33701         Run vc-diff-check, not vc-dist.
33702         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33703
33704 2009-08-27  Bruno Haible  <bruno@clisp.org>
33705
33706         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33707         of 0.
33708
33709 2009-08-27  Bruno Haible  <bruno@clisp.org>
33710
33711         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33712         compilers.
33713         * doc/func.texi: Document the SunPRO C bug.
33714
33715 2009-08-27  Bruno Haible  <bruno@clisp.org>
33716
33717         Fix link error on Solaris.
33718         * tests/test-parse-duration.c (xstrdup): Remove function.
33719
33720 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33721
33722         ignore-value: handle pointer types, too
33723         * lib/ignore-value.h (__attribute__): Remove definition.
33724         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33725         of a more concise and more-often effective "(void) i" statement.
33726         (ignore_ptr): New function to suppress warnings from functions that
33727         return pointers, and to make it explicit that one function doesn't
33728         handle all cases.
33729
33730 2009-08-25  Bruno Haible  <bruno@clisp.org>
33731
33732         dup2: work around a Linux bug.
33733         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33734         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33735         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33736         Reported by Simon Josefsson.
33737
33738 2009-08-25  Jim Meyering  <meyering@redhat.com>
33739
33740         libguestfs uses gnulib
33741         * users.txt: Add libguestfs.
33742
33743 2009-08-24  Eric Blake  <ebb9@byu.net>
33744
33745         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33746         * lib/pipe2.c (includes): Add binary-io.h.
33747         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33748
33749 2009-08-24  Bruno Haible  <bruno@clisp.org>
33750
33751         Tolerate declared but missing accept4 syscall.
33752         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33753         available.
33754         * lib/sys_socket.in.h (accept4): If the function is already present,
33755         override it.
33756         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33757         * modules/accept4 (Makefile.am): Compile accept4.c always.
33758         Reported by Paolo Bonzini and Eric Blake.
33759
33760 2009-08-23  Bruno Haible  <bruno@clisp.org>
33761
33762         New module 'accept4'.
33763         * lib/sys_socket.in.h (accept4): New declaration.
33764         * lib/accept4.c: New file.
33765         * m4/accept4.m4: New file.
33766         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33767         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33768         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33769         HAVE_ACCEPT4.
33770         * modules/accept4: New file.
33771         * doc/glibc-functions/accept4.texi: Mention the new module.
33772
33773 2009-08-24  Jim Meyering  <meyering@redhat.com>
33774
33775         progname: also set global program_invocation_name, when possible
33776         Before this change, a libtool-enabled program that calls glibc's
33777         error function would report the program name as
33778         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33779         * modules/progname (configure.ac): Check for a declaration of
33780         program_invocation_name.
33781         * lib/progname.c:  Include <errno.h>.
33782         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33783         Set program_invocation_name.
33784
33785 2009-08-23  Bruno Haible  <bruno@clisp.org>
33786
33787         * lib/dup3.c: Include <string.h>.
33788
33789 2009-08-23  Bruno Haible  <bruno@clisp.org>
33790
33791         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33792         * lib/pipe2.c (pipe2): Likewise.
33793         Suggested by Eric Blake.
33794
33795 2009-08-23  Bruno Haible  <bruno@clisp.org>
33796
33797         Tolerate declared but missing dup3 syscall.
33798         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33799         * lib/unistd.in.h (dup3): If the function is already present,
33800         override it.
33801         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33802         * modules/dup3 (Makefile.am): Compile dup3.c always.
33803         Reported by Paolo Bonzini.
33804
33805 2009-08-23  Bruno Haible  <bruno@clisp.org>
33806
33807         Tolerate declared but missing pipe2 syscall.
33808         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33809         available.
33810         * lib/unistd.in.h (pipe2): If the function is already present,
33811         override it.
33812         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33813         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33814         Reported by Paolo Bonzini.
33815
33816 2009-08-23  Bruno Haible  <bruno@clisp.org>
33817
33818         * lib/pipe2.c (pipe2): Move #ifs inside function.
33819
33820 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33821
33822         quotearg: document limitations of quote_these_too
33823         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33824         those limitations are created.
33825         * lib/quotearg.h (set_char_quoting): Document that digits and
33826         letters that are special after backslash are not permitted.
33827         (quotearg_char): Cross-reference set_char_quoting documentation.
33828
33829 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33830
33831         quotearg: implement custom_quoting_style
33832         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33833         right_quote fields.
33834         (set_custom_quoting): New public function.
33835         (quotearg_buffer_restyled): Add left_quote and right_quote
33836         arguments, handle them very much like locale quoting, and update
33837         all uses.
33838         (quotearg_n_custom): New public function.
33839         (quotearg_n_custom_mem): New public function.
33840         (quotearg_custom): New public function.
33841         (quotearg_custom_mem): New public function.
33842         * lib/quotearg.h: Prototype and document new public functions.
33843         (enum quoting_style): For escape_quoting_style and
33844         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33845         ignored even though they're otherwise like c_quoting_style.
33846         Add custom_quoting_style member and document with comparison to
33847         clocale_quoting_style.
33848         * tests/test-quotearg.c (custom_quotes): New array.
33849         (custom_results): New array.
33850         (main): Extend to test custom quoting.
33851
33852 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33853
33854         quotearg: fix right quote escaping when it's in quote_these_too
33855         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33856         quote, be sure to prepend only one backslash.
33857         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33858         (main): Test it.
33859
33860 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33861
33862         quotearg-tests: test escaping of embedded locale quotes
33863         * tests/test-quotearg.c (struct result_strings): Add member for
33864         new input.
33865         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33866         (inputs): Add new input.
33867         (results_g): Add expected results.
33868         (flag_results): Likewise.
33869         (locale_results): Likewise.
33870         (compare_strings): Check those.
33871
33872 2009-08-23  Bruno Haible  <bruno@clisp.org>
33873
33874         Tests for module 'dup3'.
33875         * modules/dup3-tests: New file.
33876         * tests/test-dup3.c: New file.
33877
33878         New module 'dup3'.
33879         * lib/unistd.in.h (dup3): New declaration.
33880         * lib/dup3.c: New file.
33881         * m4/dup3.m4: New file.
33882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33883         HAVE_DUP3.
33884         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33885         * modules/dup3: New file.
33886         * doc/glibc-functions/dup3.texi: Mention the new module.
33887
33888 2009-08-23  Bruno Haible  <bruno@clisp.org>
33889
33890         Tweak the dup2 test.
33891         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33892         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33893         the test file is still empty. Fix argument order of lseek.
33894
33895 2009-08-23  Bruno Haible  <bruno@clisp.org>
33896
33897         Avoid test link errors when the modules getopt-gnu, gettext are used.
33898         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33900
33901 2009-08-23  Bruno Haible  <bruno@clisp.org>
33902
33903         Fix getdtablesize() on mingw.
33904         * lib/getdtablesize.c (getdtablesize): Implement differently.
33905         * lib/unistd.in.h (getdtablesize): Improve comment.
33906
33907 2009-08-23  Bruno Haible  <bruno@clisp.org>
33908
33909         New module 'mkostemp'.
33910         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33911         * lib/stdlib.in.h (mksotemp): New declaration.
33912         * lib/mkostemp.c: New file, from glibc with modifications.
33913         * lib/tempname.h (GT_FILE): Remove outdated comment.
33914         (gen_tempname): Add flags argument.
33915         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33916         (__GT_FILE): Map to 1.
33917         (small_open, large_open): Remove macros.
33918         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33919         * lib/mkstemp.c (mkstemp): Update.
33920         * lib/mkdtemp.c (mkdtemp): Likewise.
33921         * m4/mkostemp.m4: New file.
33922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33923         HAVE_MKOSTEMP.
33924         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33925         HAVE_MKOSTEMP.
33926         * modules/mkostemp: New file, based on modules/mkstemp.
33927         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33928         * NEWS: Mention the change.
33929
33930 2009-08-23  Bruno Haible  <bruno@clisp.org>
33931
33932         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33933         Reported by Eric Blake.
33934
33935 2009-08-23  Bruno Haible  <bruno@clisp.org>
33936
33937         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33938         Reported by Eric Blake.
33939
33940 2009-08-23  Bruno Haible  <bruno@clisp.org>
33941
33942         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33943         * modules/pipe2 (Depends-on): Likewise.
33944
33945 2009-08-23  Eric Blake  <ebb9@byu.net>
33946
33947         fcntl-h: add O_TTY_INIT support
33948         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33949         * tests/test-fcntl-h.c (o): Test it.
33950         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33951
33952         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33953         * modules/fcntl: Move <fcntl.h> header replacement...
33954         * modules/fcntl-h: ...to new name, so as not to collide with
33955         like-named function.
33956         * tests/test-fcntl.c: Rename...
33957         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33958         * modules/fcntl-tests: Rename...
33959         * modules/fcntl-h-tests: ...to this.  Update test file name.
33960         * modules/chdir-long (Depends-on): Update clients.
33961         * modules/chdir-safer (Depends-on): Likewise.
33962         * modules/fcntl-safer (Depends-on): Likewise.
33963         * modules/fts (Depends-on): Likewise.
33964         * modules/mkancesdirs (Depends-on): Likewise.
33965         * modules/mkdir-p (Depends-on): Likewise.
33966         * modules/open (Depends-on): Likewise.
33967         * modules/savewd (Depends-on): Likewise.
33968         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33969         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33970
33971 2009-08-22  Bruno Haible  <bruno@clisp.org>
33972
33973         * modules/binary-io (License): Relicense under LGPL.
33974         * modules/pipe2 (License): Likewise.
33975
33976 2009-08-22  Bruno Haible  <bruno@clisp.org>
33977
33978         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33979         return value.
33980         * lib/pipe-filter-gi.c (filter_init): Likewise.
33981         Reported by Eric Blake.
33982
33983 2009-08-22  Bruno Haible  <bruno@clisp.org>
33984
33985         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33986         * modules/pipe (Depends-on): Add pipe2.
33987
33988 2009-08-22  Bruno Haible  <bruno@clisp.org>
33989
33990         Tests for module 'pipe2'.
33991         * modules/pipe2-tests: New file.
33992         * tests/test-pipe2.c: New file.
33993
33994         New module 'pipe2'.
33995         * lib/unistd.in.h (pipe2): New declaration.
33996         * lib/pipe2.c: New file.
33997         * m4/pipe2.m4: New file.
33998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33999         HAVE_PIPE2.
34000         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
34001         * modules/pipe2: New file.
34002         * doc/glibc-functions/pipe2.texi: Mention the new module.
34003
34004 2009-08-22  Bruno Haible  <bruno@clisp.org>
34005
34006         Reference some new glibc functions.
34007         * doc/glibc-functions/accept4.texi: New file.
34008         * doc/glibc-functions/dup3.texi: New file.
34009         * doc/glibc-functions/mkostemp.texi: New file.
34010         * doc/glibc-functions/pipe2.texi: New file.
34011         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
34012         (Glibc sys/socket.h): Refer to accept4.
34013         (Glibc unistd.h): Refer to dup3, pipe2.
34014         Reported by Eric Blake.
34015
34016 2009-08-22  Jim Meyering  <meyering@redhat.com>
34017             Bruno Haible  <bruno@clisp.org>
34018
34019         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
34020         This makes it so packages using automake-1.11's silent-rules option
34021         can print e.g., a single "GEN    configmake.h" line, rather than
34022         the 30+ statements that perform the job.  If you want to see the
34023         actual commands, you can still run "make V=1".
34024         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
34025         so that make output is abbreviated when those variables are defined
34026         appropriately.
34027         * modules/argz: Likewise.
34028         * modules/arpa_inet: Likewise.
34029         * modules/byteswap: Likewise.
34030         * modules/configmake: Likewise.
34031         * modules/dirent: Likewise.
34032         * modules/errno: Likewise.
34033         * modules/fcntl: Likewise.
34034         * modules/float: Likewise.
34035         * modules/fnmatch: Likewise.
34036         * modules/getopt-posix: Likewise.
34037         * modules/glob: Likewise.
34038         * modules/iconv_open: Likewise.
34039         * modules/inttypes: Likewise.
34040         * modules/localcharset: Likewise.
34041         * modules/locale: Likewise.
34042         * modules/math: Likewise.
34043         * modules/netdb: Likewise.
34044         * modules/netinet_in: Likewise.
34045         * modules/poll: Likewise.
34046         * modules/posix_spawnp-tests: Likewise.
34047         * modules/sched: Likewise.
34048         * modules/search: Likewise.
34049         * modules/selinux-h: Likewise.
34050         * modules/signal: Likewise.
34051         * modules/spawn: Likewise.
34052         * modules/stdarg: Likewise.
34053         * modules/stdbool: Likewise.
34054         * modules/stddef: Likewise.
34055         * modules/stdint: Likewise.
34056         * modules/stdio: Likewise.
34057         * modules/stdlib: Likewise.
34058         * modules/string: Likewise.
34059         * modules/strings: Likewise.
34060         * modules/sys_file: Likewise.
34061         * modules/sys_ioctl: Likewise.
34062         * modules/sys_select: Likewise.
34063         * modules/sys_socket: Likewise.
34064         * modules/sys_stat: Likewise.
34065         * modules/sys_time: Likewise.
34066         * modules/sys_times: Likewise.
34067         * modules/sys_utsname: Likewise.
34068         * modules/sys_wait: Likewise.
34069         * modules/sysexits: Likewise.
34070         * modules/time: Likewise.
34071         * modules/unistd: Likewise.
34072         * modules/wchar: Likewise.
34073         * modules/wctype: Likewise.
34074
34075 2009-08-22  Jim Meyering  <meyering@redhat.com>
34076
34077         announce-gen: detect write failure
34078         * build-aux/announce-gen: Add Coda at end.
34079         Remove equivalent-but-more-verbose block at top.
34080
34081 2009-08-19  Akim Demaille  <demaille@gostai.com>
34082
34083         bootstrap: --help to stdout.
34084         * bootstrap (usage): Don't send --help to stderr.
34085         Use a here doc instead of a long string.
34086
34087 2009-08-21  Eric Blake  <ebb9@byu.net>
34088
34089         test-popen-safer: split from test-popen
34090         * tests/test-popen.c (main): Move...
34091         * tests/test-popen.h: ...into new file.
34092         * tests/test-popen-safer2.c: New file.
34093         * modules/popen-tests (Files): Add test-popen.h.
34094         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
34095         Suggested by Bruno Haible.
34096
34097         test-fcntl-safer: split from test-open
34098         * tests/test-open.c (main): Move...
34099         * tests/test-open.h: ...into new file.
34100         * tests/test-fcntl-safer.c: New file.
34101         * modules/open-tests (Files): Add test-open.h.
34102         * modules/fcntl-safer-tests: New file.
34103         Suggested by Bruno Haible.
34104
34105         test-fopen-safer: split from test-fopen
34106         * tests/test-fopen.c (main): Move...
34107         * tests/test-fopen.h: ...into new file.
34108         * tests/test-fopen-safer.c: New file.
34109         * modules/fopen-tests (Files): Add test-fopen.h.
34110         * modules/fopen-safer-tests: New file.
34111         Suggested by Bruno Haible.
34112
34113 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34114
34115         popen-safer: test O_CLOEXEC at run-time.
34116         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
34117
34118 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34119
34120         fcntl: move more flags to the header
34121         * lib/cloexec.c: Do not define FD_CLOEXEC here.
34122         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
34123         * lib/fcntl.in.h: Do both things here.
34124
34125 2009-08-21  Jim Meyering  <meyering@redhat.com>
34126
34127         consistently remove $@-t before redirecting to it
34128         * modules/argz: Remove $@-t and $@ before redirecting to the former.
34129         * modules/alloca-opt: Likewise.
34130         * modules/byteswap: Likewise.
34131         * modules/fnmatch: Likewise.
34132         * modules/getopt-posix: Likewise.
34133         * modules/glob: Likewise.
34134         * modules/poll: Likewise.
34135         * modules/posix_spawnp-tests: Likewise.
34136         * modules/sys_socket: Likewise.
34137         * modules/sysexits: Likewise.
34138
34139 2009-08-21  Eric Blake  <ebb9@byu.net>
34140
34141         popen: simplify access to original popen
34142         * lib/popen.c (rpl_popen): No need to worry about popen being a
34143         macro.
34144         Reported by Bruno Haible.
34145
34146 2009-08-20  Eric Blake  <ebb9@byu.net>
34147
34148         build: avoid some compiler warnings
34149         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
34150         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
34151         type.
34152         (new_exclude_segment, excluded_file_pattern_p)
34153         (excluded_file_name_p): Reduce scope.
34154         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
34155         old-style declaration.
34156
34157 2009-08-20  Simon Josefsson  <simon@josefsson.org>
34158
34159         * tests/test-exclude1.sh: Handle Windows EOL.
34160         * tests/test-exclude2.sh: Likewise.
34161         * tests/test-exclude3.sh: Likewise.
34162         * tests/test-exclude4.sh: Likewise.
34163         * tests/test-exclude5.sh: Likewise.
34164         * tests/test-exclude6.sh: Likewise.
34165         * tests/test-exclude7.sh: Likewise.
34166
34167 2009-08-19  Akim Demaille  <demaille@gostai.com>
34168
34169         bootstrap: find sha1sum when named gsha1sum.
34170         * bootstrap (find_tool): New.
34171         ($SHA1SUM): New.
34172         Use it.
34173
34174 2009-08-20  Jim Meyering  <meyering@redhat.com>
34175
34176         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
34177         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
34178         expression that converts "." in a file name to "\." in the resulting
34179         regexp.  Start with a dummy statement, so that prior shell variable
34180         definitions are expanded portably.  Reported by Simon Josefsson.
34181
34182 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
34183
34184         Fix polling for writeability of a screen buffer.
34185         * lib/poll.c: Distinguish input and screen buffers for the
34186         Win32 implementation.
34187         * lib/select.c: Likewise.
34188
34189 2009-08-19  Eric Blake  <ebb9@byu.net>
34190
34191         popen-safer: prevent popen from clobbering std descriptors
34192         * modules/popen-safer: New file.
34193         * lib/popen-safer.c: Likewise.
34194         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
34195         * lib/stdio--.h (popen): Provide override.
34196         * lib/stdio-safer.h (popen_safer): Provide declaration.
34197         * tests/test-popen.c (includes): Partially test this.
34198         * modules/popen-safer-tests: New file, for more tests.
34199         * tests/test-popen-safer.c: Likewise.
34200         * MODULES.html.sh (file stream based Input/Output): Mention it.
34201
34202         tests: test some of the *-safer modules
34203         * modules/fopen-safer (Depends-on): Add fopen.
34204         * modules/fcntl-safer (Depends-on): Add fcntl.
34205         * modules/stdlib-safer (Depends-on): Add stdlib.
34206         (configure.ac): Set indicator.
34207         * modules/unistd-safer (configure.ac): Likewise.
34208         * modules/tmpfile-safer (configure.ac): Likewise.
34209         (Depends-on): Add tmpfile.
34210         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
34211         active.
34212         * tests/test-fopen.c (includes): Test safer versions when they are
34213         in use.
34214         * tests/test-open.c (includes): Likewise.
34215
34216         popen: fix cygwin 1.5 bug when stdin closed
34217         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
34218         * modules/popen: New file.
34219         * modules/popen-tests: Likewise.
34220         * tests/test-popen.c: Likewise.
34221         * m4/popen.m4: Likewise.
34222         * lib/popen.c: Likewise.
34223         * lib/stdio.in.h (popen): New declaration.
34224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
34225         * modules/stdio (Makefile.am): Likewise.
34226         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
34227
34228 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
34229
34230         maint.mk: give full control over update-copyright exclusions
34231         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
34232         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
34233         (update-copyright): Don't force inclusion of top-level
34234         ChangeLog.  Don't force exclusion of all COPYING files, but make
34235         them the default exclusion instead.
34236
34237 2009-08-16  Bruno Haible  <bruno@clisp.org>
34238
34239         Fix test failures on Solaris 10.
34240         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
34241         tests when Solaris iconv() is used.
34242         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34243         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34244         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34245         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34246         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34247
34248 2009-08-16  Bruno Haible  <bruno@clisp.org>
34249
34250         Fix test failures on Solaris 10.
34251         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
34252         'tr' program and pass it as first argument.
34253         * tests/test-pipe-filter-gi1.sh: Likewise.
34254         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
34255         program as first argument.
34256         * tests/test-pipe-filter-gi1.c (main): Likewise.
34257
34258 2009-08-16  Eric Blake  <ebb9@byu.net>
34259
34260         fpurge: fix previous commits
34261         * modules/fpurge (Makefile.am): Make replacement conditional,
34262         partially reverting 2007-04-29 change; missed in previous
34263         attempt.
34264         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
34265         is missing.
34266
34267 2009-08-16  Bruno Haible  <bruno@clisp.org>
34268
34269         Clarify fpurge's effect on the file position.
34270         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
34271         * tests/test-fpurge.c (main): Make a second pass for checking the file
34272         position.
34273
34274 2009-08-16  Bruno Haible  <bruno@clisp.org>
34275
34276         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
34277         declaration of fpurge is missing.
34278         * tests/test-fpurge.c (main): Check that the file has not more contents
34279         than expected. Close the file before removing it.
34280
34281 2009-08-15  Eric Blake  <ebb9@byu.net>
34282
34283         fpurge: don't wrap working cygwin implementation
34284         * lib/fpurge.c (fpurge): Fix comment typo.
34285         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
34286         1.7 to avoid replacement.
34287         * tests/test-fpurge.c (main): Enhance test.
34288
34289 2009-08-15  Eric Blake  <ebb9@byu.net>
34290         and Jim Meyering  <meyering@redhat.com>
34291
34292         test-update-copyright: skip if perl is insufficient
34293         * tests/test-update-copyright.sh: Failure to run maintainer tool
34294         should not cause testsuite failure on cygwin 1.5.
34295
34296 2009-08-14  Eric Blake  <ebb9@byu.net>
34297
34298         doc: mention more functions added in cygwin 1.7.0
34299         * doc/posix-headers/limits.texi (limits.h): Update for recent
34300         cygwin additions.
34301         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
34302         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34303         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
34304         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
34305         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
34306
34307 2009-08-14  Eric Blake  <ebb9@byu.net>
34308
34309         maint.mk: simplify update-copyright rule
34310         * top/maint.mk (update-copyright-local): Delete, and document how
34311         to do it in cfg.mk instead.
34312         (update-copyright-exclude-regexp): Delete, and document how to do
34313         it in .x-update-copyright instead.
34314         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
34315         exclude ChangeLog.
34316
34317 2009-08-14  Bruno Haible  <bruno@clisp.org>
34318
34319         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
34320
34321 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34322
34323         maint.mk: support update-copyright-env
34324         * top/maint.mk (update-copyright-env): Define place-holder.
34325         (update-copyright): Expand $(update-copyright-env) before
34326         invoking update-copyright.
34327
34328 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34329
34330         update-copyright: implement forced reformatting
34331         * build-aux/update-copyright: Implement and document
34332         UPDATE_COPYRIGHT_FORCE.
34333         * tests/test-update-copyright.sh: Test it.
34334
34335 2009-08-14  Eric Blake  <ebb9@byu.net>
34336         and Bruno Haible  <bruno@clisp.org>
34337
34338         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
34339         * tests/test-locale.c: Revert previous patch related to NULL.
34340         * tests/test-stdio.c: Likewise.
34341         * tests/test-stdlib.c: Likewise.
34342         * tests/test-string.c: Likewise.
34343         * tests/test-unistd.c: Likewise.
34344         * modules/time-tests (Depends-on): Add verify.
34345         * modules/wchar-tests (Depends-on): Likewise.
34346         * tests/test-time.c: Test for NULL compliance.
34347         * tests/test-wchar.c: Likewise.
34348         * modules/locale (Depends-on): Add stddef.
34349         * modules/stdio (Depends-on): Likewise.
34350         * modules/stdlib (Depends-on): Likewise.
34351         * modules/string (Depends-on): Likewise.
34352         * modules/time (Depends-on): Likewise.
34353         * modules/unistd (Depends-on): Likewise.
34354         * modules/wchar (Depends-on): Likewise.
34355         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
34356         * lib/stdlib.in.h (includes): Likewise.
34357         * lib/string.in.h (includes): Likewise.
34358         * lib/time.in.h (includes): Likewise.
34359         * lib/unistd.in.h (includes): Likewise.
34360         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
34361         replaced.
34362         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34363         * m4/stddef_h.m4: New file.
34364         * modules/stddef: Likewise.
34365         * lib/stddef.in.h: Likewise.
34366         * modules/stddef-tests: Likewise.
34367         * tests/test-stddef.c: Likewise.
34368         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
34369         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
34370         * doc/posix-headers/locale.texi (locale.h): Likewise.
34371         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
34372         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
34373         * doc/posix-headers/string.texi (string.h): Likewise.
34374         * doc/posix-headers/time.texi (time.h): Likewise.
34375         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
34376         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
34377
34378 2009-08-14  Eric Blake  <ebb9@byu.net>
34379
34380         doc: improve git diff of texinfo files
34381         * .gitattributes: Add rule for *.texi files, with hint on how to
34382         use it.
34383         Copied from m4, and based on a report by Bruno Haible.
34384
34385 2009-08-14  Bruno Haible  <bruno@clisp.org>
34386
34387         Disable multithread support by default on Cygwin 1.5.x for real.
34388         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
34389
34390 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34391
34392         update-copyright: much ado about intervals
34393         * build-aux/update-copyright: Implement and document
34394         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
34395         of copyright year intervals.
34396         Also, document UPDATE_COPYRIGHT_YEAR.
34397         * tests/test-update-copyright.sh: Test it.
34398
34399         update-copyright: convert 2-digit to 4-digit years
34400         * build-aux/update-copyright: Implement and document.
34401         * tests/test-update-copyright.sh: Update.
34402
34403 2009-08-14  Jim Meyering  <meyering@redhat.com>
34404
34405         test-exclude: avoid coreutils "make check" failure
34406         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
34407         just as in test-argmatch.c.
34408
34409 2009-08-13  Eric Blake  <ebb9@byu.net>
34410
34411         test-dup2: fix bad assumption
34412         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
34413         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
34414
34415         test-version-etc: fix CRLF portability issue
34416         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
34417         recognize \r.
34418         * tests/test-argp-version-etc-1.sh: Likewise.
34419
34420         getopt: update client modules
34421         * modules/argp (Depends-on): Use getopt-gnu.
34422         * modules/git-merge-changelog (Depends-on): Likewise.
34423         * modules/long-options (Depends-on): Likewise.
34424         * modules/xstrtol (Depends-on): Likewise.
34425
34426 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34427
34428         * tests/test-version-etc.sh: Don't fail on different
34429         project/version.  Don't fail on CRLF differences.  Rewrite to use
34430         multiple -e instead of multiple sed forks, suggested by Eric Blake
34431         <ebb9@byu.net>.
34432         * tests/test-argp-version-etc-1.sh: Likewise.
34433
34434 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34435
34436         * tests/test-version-etc.sh: Don't fail on different
34437         project/version.
34438
34439 2009-08-12  Bruno Haible  <bruno@clisp.org>
34440
34441         Tests for modules 'getopt-posix', 'getopt-gnu'.
34442         * modules/getopt-posix-tests: New file.
34443         * tests/test-getopt.c: New file.
34444         * tests/test-getopt.h: New file.
34445         * tests/test-getopt_long.h: New file.
34446
34447         New modules 'getopt-posix', 'getopt-gnu'.
34448         * modules/getopt-gnu: New file, renamed from modules/getopt.
34449         * modules/getopt-posix: New file.
34450         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
34451         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
34452         (gl_GETOPT): Remove macro.
34453         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
34454         Disable the test against BSD systems that declare optreset. Test
34455         against mingw bug. Test against lack of support of optional arguments
34456         on many platforms.
34457         * doc/glibc-headers/getopt.texi: Update module name and list of
34458         relevant platforms.
34459         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
34460         'getopt-gnu' and more portability problems.
34461         * NEWS: Mention the changes.
34462
34463 2009-08-12  Bruno Haible  <bruno@clisp.org>
34464
34465         Ensure that optarg etc. get declared by <unistd.h>.
34466         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
34467         AC_USE_SYSTEM_EXTENSIONS.
34468         * modules/getopt (Depends-on): Add 'extensions'.
34469
34470 2009-08-12  Bruno Haible  <bruno@clisp.org>
34471
34472         Avoid test link errors.
34473         * modules/pipe-filter-ii-tests (Makefile.am): Define
34474         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
34475         * modules/pipe-filter-gi-tests (Makefile.am): Define
34476         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
34477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34478
34479 2009-08-12  Bruno Haible  <bruno@clisp.org>
34480
34481         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
34482         gl_GETOPT_SUBSTITUTE before.
34483         (gl_GETOPT): Use it.
34484         * m4/argp.m4 (gl_ARGP): Update.
34485         Reported by Sergey Poznyakoff.
34486
34487         * m4/getopt.m4: Reorder macros.
34488         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
34489         (gl_GETOPT_SUBSTITUTE): Remove macro.
34490
34491 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34492
34493         Minor improvement in gitlog-to-changelog
34494
34495         * build-aux/gitlog-to-changelog: New option `--format' makes
34496         output format string configurable.
34497
34498 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34499
34500         Optimize exclude: use hash tables for non-wildcard patterns.
34501
34502         * lib/exclude.c: Include hash.h and mbuiter.h
34503         (struct exclude_pattern, exclude_segment): New data types.
34504         (struct exclude): Rewrite.
34505         (fnmatch_pattern_has_wildcards): New function.
34506         (new_exclude_segment, free_exclude_segment): New functions.
34507         (excluded_file_pattern_p, excluded_file_name_p): New functions.
34508         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
34509         * lib/exclude.h (is_fnmatch_pattern): New prototype.
34510         * modules/exclude: Depend on hash and mbuiter.
34511
34512         * modules/exclude-tests: New file.
34513         * tests/test-exclude.c: New file.
34514         * tests/test-exclude1.sh: New file.
34515         * tests/test-exclude2.sh: New file.
34516         * tests/test-exclude3.sh: New file.
34517         * tests/test-exclude4.sh: New file.
34518         * tests/test-exclude5.sh: New file.
34519         * tests/test-exclude6.sh: New file.
34520         * tests/test-exclude7.sh: New file.
34521
34522 2009-08-12  Bruno Haible  <bruno@clisp.org>
34523
34524         Ensure that getopt() gets declared by <unistd.h>.
34525         * lib/unistd.in.h: Conditionally include getopt.h.
34526         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
34527         Set GNULIB_UNISTD_H_GETOPT.
34528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34529         GNULIB_UNISTD_H_GETOPT.
34530         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
34531
34532 2009-08-12  Bruno Haible  <bruno@clisp.org>
34533
34534         Clarify logic.
34535         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
34536         gl_replace_getopt instead of GETOPT_H.
34537
34538 2009-08-12  Bruno Haible  <bruno@clisp.org>
34539
34540         * m4/getopt.m4: Add comments.
34541
34542 2009-08-12  Bruno Haible  <bruno@clisp.org>
34543
34544         Disable multithread support by default on Cygwin 1.5.x.
34545         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
34546         set gl_use_threads=no if not specified otherwise.
34547
34548 2009-08-11  Bruno Haible  <bruno@clisp.org>
34549
34550         Avoid compilation error on NetBSD 5.0.
34551         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
34552         * tests/test-stdio.c: Likewise.
34553         * tests/test-stdlib.c: Likewise.
34554         * tests/test-string.c: Likewise.
34555         * tests/test-unistd.c: Likewise.
34556         Reported by Greg Troxel <gdt@ir.bbn.com>
34557         at <https://savannah.gnu.org/support/?106973>.
34558
34559 2009-08-11  Bruno Haible  <bruno@clisp.org>
34560
34561         * modules/dup2-tests (Depends-on): Remove close.
34562
34563         Undo 2009-07-19 commit.
34564         * modules/acl-tests (Depends-on): Remove close.
34565         * modules/binary-io-tests (Depends-on): Likewise.
34566         * modules/closein-tests (Depends-on): Likewise.
34567         * modules/flock-tests (Depends-on): Likewise.
34568         * modules/fsync-tests (Depends-on): Likewise.
34569         * modules/lseek-tests (Depends-on): Likewise.
34570         * modules/pipe-tests (Depends-on): Likewise.
34571         * modules/posix_spawn-tests (Depends-on): Likewise.
34572         * modules/posix_spawnp-tests (Depends-on): Likewise.
34573         * modules/stat-time-tests (Depends-on): Likewise.
34574         * modules/yesno-tests (Depends-on): Likewise.
34575
34576 2009-08-10  Bruno Haible  <bruno@clisp.org>
34577
34578         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
34579
34580 2009-08-10  Bruno Haible  <bruno@clisp.org>
34581
34582         Fix a gcc warning.
34583         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
34584
34585 2009-08-10  Bruno Haible  <bruno@clisp.org>
34586
34587         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
34588         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
34589         not only the first time.
34590         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
34591         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
34592         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
34593         is 1, not only the the first time.
34594
34595 2009-08-10  Bruno Haible  <bruno@clisp.org>
34596
34597         Make it possible to use module 'gethostname' without module 'close'.
34598         * lib/unistd.in.h (close): Evoke a link error only if
34599         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34601         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34602         * modules/unistd (Makefile.am): Substitute
34603         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34604         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
34605         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34606         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34607         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34608         * modules/sys_ioctl (Makefile.am): Substitute
34609         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34610         * modules/socket (configure.ac): On native Windows, set
34611         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
34612         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34613         Reported by Sam Steingold <sds@gnu.org>.
34614
34615 2009-08-10  Bruno Haible  <bruno@clisp.org>
34616
34617         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
34618         * modules/ioctl (configure.ac): Likewise.
34619
34620 2009-08-10  Bruno Haible  <bruno@clisp.org>
34621
34622         Avoid collision between gnulib wrapper and libintl wrapper.
34623         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
34624         already defined in intl/printf.c.
34625         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
34626         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
34627
34628 2009-08-09  Bruno Haible  <bruno@clisp.org>
34629
34630         Make <sys/select.h> really self-contained, also on Solaris 10.
34631         * lib/sys_select.in.h: Include <string.h>.
34632         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
34633         Solaris 10 problem.
34634         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
34635         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
34636         Reported by Jim Meyering.
34637
34638 2009-08-09  Bruno Haible  <bruno@clisp.org>
34639
34640         Avoid warnings from 'aclocal' that are due to a use of macro name
34641         AM_XGETTEXT_OPTION that is not defined in automake.
34642         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
34643         automake.
34644         * modules/error (configure.ac): Likewise.
34645         * modules/propername (configure.ac): Likewise.
34646         * modules/vasprintf (configure.ac): Likewise.
34647         * modules/verror (configure.ac): Likewise.
34648         * modules/xprintf (configure.ac): Likewise.
34649         * modules/xvasprintf (configure.ac): Likewise.
34650
34651 2009-08-08  Bruno Haible  <bruno@clisp.org>
34652
34653         Avoid compilation error in C++ mode.
34654         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
34655         Reported by Sam Steingold <sds@gnu.org>.
34656
34657 2009-08-08  Bruno Haible  <bruno@clisp.org>
34658
34659         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
34660         for the various Unix platforms.
34661         * doc/posix-headers/limits.texi: Update platforms list regarding
34662         HOST_NAME_MAX.
34663         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34664
34665 2009-08-07  Jim Meyering  <meyering@redhat.com>
34666
34667         selinux-at: fix typo in a comment
34668         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34669         Spotted by Paolo Bonzini.
34670
34671         selinux-at: remove redundant m4 code, add documentation
34672         * modules/selinux-at (configure.ac): Remove redundant code.
34673         LIB_SELINUX is already set via the dependent module, selinux-h.
34674         (Include): Add quotes around selinux-at.h.
34675         * lib/selinux-at.h: Add documentation.
34676         Reported by Bruno Haible in
34677         http://marc.info/?l=gnulib-bug&m=124958988300749
34678
34679 2009-08-07  Bruno Haible  <bruno@clisp.org>
34680
34681         Avoid link error on MacOS X 10.3 and 10.4.
34682         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34683         on non-ELF systems.
34684         * lib/argp-pv.c (argp_program_version): Likewise.
34685         Reported by Simon Josefsson.
34686
34687 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34688
34689         * tests/test-version-etc.sh: Use $EXEEXT.
34690
34691 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34692
34693         update-copyright: update documentation to point to maint.mk
34694         * build-aux/update-copyright: Here.
34695
34696 2009-08-06  Jim Meyering  <meyering@redhat.com>
34697
34698         maint.mk: support update-copyright-local
34699         * top/maint.mk (update-copyright-local): Define place-holder.
34700         (update-copyright): Depend on $(update-copyright-local).
34701
34702 2009-08-06  Jim Meyering  <meyering@redhat.com>
34703
34704         selinux-at: new module
34705         Initially written for coreutils, this module will soon be
34706         used by findutils, too.
34707         * MODULES.html.sh [Misc]: Add selinux-at.
34708         * lib/selinux-at.h: New file, from coreutils.
34709         * lib/selinux-at.c: Likewise.
34710         * modules/selinux-at: Likewise.
34711         (License): Change from LGPL to GPL, since it depends
34712         on the GPL'd openat module.
34713
34714         doc: update README
34715         * README: Remove references to cogito.
34716         Remove cvs-repo-updating instructions from 2007.
34717         Don't imply that CVS is better if you have limited disk space.
34718
34719 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34720
34721         update-copyright: support C-style comments
34722         * build-aux/update-copyright: Implement and document.
34723         * tests/test-update-copyright.sh: Test.
34724
34725 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34726
34727         update-copyright: support omitted "(C)"
34728         * build-aux/update-copyright: Implement and document.  Also,
34729         allow variable whitespace before "(C)".
34730         * tests/test-update-copyright.sh: Test.
34731
34732 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34733
34734         update-copyright: don't trip on non-FSF copyright statements
34735         * build-aux/update-copyright: Fix so that the first correctly
34736         formatted FSF copyright statement is recognized no matter what
34737         appears before it.  Update documentation.
34738         * tests/test-update-copyright.sh: Test that.
34739
34740 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34741
34742         update-copyright: clean up code a little
34743         * build-aux/update-copyright: Append "_re" to the name of any
34744         variable holding a regular expression.
34745         Replace "old" and "new" with "stmt" in variable names.
34746         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34747         handled correctly.
34748         Format code more consistently.
34749
34750 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34751
34752         update-copyright-tests: improve portability
34753         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34754         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34755
34756 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34757
34758         update-copyright: support @copyright{} and &copy;
34759         * build-aux/update-copyright: Implement and document.
34760         * tests/test-update-copyright.sh: Test.
34761
34762 2009-08-04  Jim Meyering  <meyering@redhat.com>
34763
34764         update-copyright-tests: correctly test EOL=\r\n handling
34765         * tests/test-update-copyright.sh: Put \r at the end of some lines
34766         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34767
34768         maint.mk: make update-copyright exclusion list more configurable
34769         * top/maint.mk (update-copyright): Default to excluding COPYING,
34770         but allow an override, in case someone does want to update that file.
34771
34772         maint.mk: don't update copyright date in COPYING
34773         * top/maint.mk (update-copyright): Exclude COPYING.
34774
34775         maint.mk: add a copyright-updating rule
34776         * top/maint.mk (update-copyright): New rule.
34777         Derived from coreutils/Makefile.am.
34778
34779         update-copyright: rename some variables
34780         * build-aux/update-copyright: Rename a few variables for clarity.
34781         Tweak syntax.  List Joel E. Denny as coauthor.
34782
34783 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34784
34785         update-copyright: fix bug for 2-digit last year and add tests
34786         * build-aux/update-copyright: Fix bug.
34787         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34788         specified.
34789         * modules/update-copyright-tests: New
34790         * tests/test-update-copyright.sh: New.
34791
34792 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34793
34794         update-copyright: handle leading tabs in line prefix
34795         * build-aux/update-copyright: Count leading tabs as 8 spaces
34796         when computing margin.  This helps with the formatting of
34797         ChangeLogs, for example.
34798         Fix documentation a little.
34799
34800 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34801
34802         update-copyright: support EOL=\r\n
34803         * build-aux/update-copyright: Implement that.
34804
34805 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34806
34807         update-copyright: automatically format copyright statements
34808         * build-aux/update-copyright: Implement that.
34809         Also, be a little more predictable and safer by always failing
34810         when the full copyright format is not perfectly recognized as an
34811         unbroken whole.  Discussed at
34812         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34813         Rewrite documentation.
34814
34815 2009-08-03  Bruno Haible  <bruno@clisp.org>
34816
34817         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34818
34819 2009-08-02  Bruno Haible  <bruno@clisp.org>
34820
34821         Tests for module 'uname'.
34822         * modules/uname-tests: New file.
34823         * tests/test-uname.c: New file.
34824
34825         New module 'uname'.
34826         * lib/uname.c: New file.
34827         * m4/uname.m4: New file.
34828         * modules/uname: New file.
34829         * doc/posix-functions/uname.texi: Mention the new module.
34830
34831 2009-08-02  Bruno Haible  <bruno@clisp.org>
34832
34833         Tests for module 'sys_utsname'.
34834         * modules/sys_utsname-tests: New file.
34835         * tests/test-sys_utsname.c: New file.
34836
34837         New module 'sys_utsname'.
34838         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34839         * m4/sys_utsname_h.m4: New file.
34840         * modules/sys_utsname: New file.
34841         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34842
34843 2009-08-02  Bruno Haible  <bruno@clisp.org>
34844
34845         Implicitly initialize the sockets library.
34846         * lib/gethostname.c: Include sockets.h.
34847         (rpl_gethostname): Invoke gl_sockets_startup.
34848         * lib/socket.c: Include sockets.h.
34849         (rpl_socket): Invoke gl_sockets_startup.
34850         * modules/gethostname (Depends-on): Add sockets.
34851         * modules/socket (Depends-on): Likewise.
34852         * tests/test-poll.c: Don't include sockets.h.
34853         (main): Don't invoke gl_sockets_startup.
34854         * tests/test-select.c: Don't include sockets.h.
34855         (main): Don't invoke gl_sockets_startup.
34856
34857 2009-08-02  Bruno Haible  <bruno@clisp.org>
34858
34859         Allow multiple calls to gl_sockets_startup.
34860         * lib/sockets.c (initialized_sockets_version): New variable.
34861         (gl_sockets_startup): Do nothing if already called for this or a higher
34862         version.
34863         (gl_sockets_cleanup): Reset initialized_sockets_version.
34864
34865 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34866
34867         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34868         different project/version.
34869
34870 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34871             Bruno Haible  <bruno@clisp.org>
34872
34873         Tests for module 'pipe-filter-gi'.
34874         * modules/pipe-filter-gi-tests: New file.
34875         * tests/test-pipe-filter-gi1.sh: New file.
34876         * tests/test-pipe-filter-gi1.c: New file.
34877         * tests/test-pipe-filter-gi2.sh: New file.
34878         * tests/test-pipe-filter-gi2-main.c: New file.
34879         * tests/test-pipe-filter-gi2-child.c: New file.
34880
34881         New module 'pipe-filter-gi'.
34882         * lib/pipe-filter-gi.c: New file.
34883         * modules/pipe-filter-gi: New file.
34884
34885 2009-08-02  Bruno Haible  <bruno@clisp.org>
34886             Paolo Bonzini  <bonzini@gnu.org>
34887
34888         Tests for module 'pipe-filter-ii'.
34889         * modules/pipe-filter-ii-tests: New file.
34890         * tests/test-pipe-filter-ii1.sh: New file.
34891         * tests/test-pipe-filter-ii1.c: New file.
34892         * tests/test-pipe-filter-ii2.sh: New file.
34893         * tests/test-pipe-filter-ii2-main.c: New file.
34894         * tests/test-pipe-filter-ii2-child.c: New file.
34895
34896         New module 'pipe-filter-ii'.
34897         * lib/pipe-filter.h: New file.
34898         * lib/pipe-filter-ii.c: New file.
34899         * lib/pipe-filter-aux.h: New file.
34900         * modules/pipe-filter-ii: New file.
34901
34902 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34903
34904         * lib/gc-libgcrypt.c: Change copyright to FSF.
34905         * lib/gc-gnulib.c: Likewise.
34906
34907 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34908
34909         * lib/gethostname.c: Include limits.h.
34910
34911 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34912             Bruno Haible  <bruno@clisp.org>
34913
34914         Ensure HOST_NAME_MAX as part of the gethostname module.
34915         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34916         define also HOST_NAME_MAX.
34917         * tests/test-gethostname.c: Include <limits.h>.
34918         (main): Check also HOST_NAME_MAX.
34919         * doc/posix-headers/limits.texi: Document the mingw problem.
34920
34921 2009-08-02  Bruno Haible  <bruno@clisp.org>
34922
34923         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34924         Add comments.
34925
34926 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34927
34928         * lib/gethostname.c: Add Windows wrapper.
34929         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34930         * modules/gethostname: Depend on sys_socket & errno, for also
34931         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34932         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34933
34934 2009-07-31  Jim Meyering  <meyering@redhat.com>
34935
34936         getloadavg: fix symbol name in comment
34937         * lib/getloadavg.c: Correct a typo I introduced when adding
34938         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34939         Matt Kraai spotted the problem.
34940
34941 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34942
34943         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34944         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34945         code also if ! defined N_NAME_POINTER.
34946         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34947         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34948         but the n_name member is a 12-byte array.
34949
34950 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34951
34952         update-copyright: generalize comment handling
34953         * build-aux/update-copyright: Handle copyright statements
34954         within more comment styles.
34955         Document usage.
34956         Report any file with an external copyright holder or parse failure.
34957
34958 2009-07-29  Jim Meyering  <meyering@redhat.com>
34959
34960         mktime: correct setting of REPLACE_MKTIME
34961         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34962
34963         update-copyright: new module
34964         * modules/update-copyright: New file.
34965         * build-aux/update-copyright: New file.
34966         * MODULES.html.sh (maint+release support): Add update-copyright.
34967
34968 2009-07-27  Bruno Haible  <bruno@clisp.org>
34969
34970         Fix compilation error when <ctime> is used and mktime is replaced.
34971         * lib/time.in.h (mktime): New declaration.
34972         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34973         REPLACE_MKTIME instead of defining mktime in config.h.
34974         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34975         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34976         Reported by Ross McFarland <rwmcfa1@neces.com>.
34977
34978 2009-07-27  Bruno Haible  <bruno@clisp.org>
34979
34980         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34981         Reported by Matt Kraai <mkraai@beckman.com>.
34982
34983 2009-07-25  Jim Meyering  <meyering@redhat.com>
34984
34985         maint.mk: avoid warnings about missing files
34986         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34987         diagnostic when .prev-version does not exist.
34988         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34989         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34990         nonexistent cfg.mk.
34991         Suggestions from Simon Josefsson.
34992
34993 2009-07-25  Bruno Haible  <bruno@clisp.org>
34994
34995         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34996         defined as macros. Needed on QNX 6.4.1.
34997         Reported by Matt Kraai <mkraai@beckman.com>.
34998
34999 2009-07-23  Jim Meyering  <meyering@redhat.com>
35000
35001         maint.mk: invoke "make dist" with a working value of XZ_OPT
35002         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
35003
35004 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
35005
35006         Make fseeko.c compile on QNX.
35007         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
35008
35009 2009-07-22  Peter Simons  <simons@cryp.to>
35010
35011         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
35012         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
35013         * lib/md4.h: Likewise.
35014         * lib/md5.h: Likewise.
35015         * lib/sha1.h: Likewise.
35016         * lib/sha256.h: Likewise.
35017         * lib/sha512.h: Likewise.
35018
35019         tests-sha1: don't assign literal string to 'char *' variable
35020         * tests/test-sha1.c (main): Declare locals with "const" to match
35021         attributes of the right hand side.
35022
35023 2009-07-21  Eric Blake  <ebb9@byu.net>
35024
35025         dup2: fix more mingw problems
35026         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
35027         fd to itself.
35028         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35029         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
35030         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
35031         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
35032         care of mingw bugs.
35033
35034 2009-07-21  Jim Meyering  <meyering@redhat.com>
35035
35036         vc-list-files: avoid failure when /bin/sh is dash
35037         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
35038         On some Debian based systems, /bin/sh is a symlink to dash, and running
35039         this command would omit the "/" following each 'tests' prefix:
35040           dash -x build-aux/vc-list-files -C . tests
35041         That is because bash and dash work differently:
35042           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
35043           bash ok
35044           dash odd
35045
35046 2009-07-21  Eric Blake  <ebb9@byu.net>
35047
35048         dup2-tests: test previous patch
35049         * modules/dup2-tests: New file.
35050         * tests/test-dup2.c: Likewise.
35051         * tests/test-open.c (main): Avoid unspecified behavior.
35052         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
35053         test.
35054
35055         dup2: work around mingw and cygwin 1.5 bug
35056         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
35057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35058         * modules/unistd (Makefile.am): Substitute it.
35059         * lib/unistd.in.h (dup2): Declare the replacement.
35060         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
35061         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
35062         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
35063         * modules/execute (Depends-on): Add dup2.
35064         * modules/fseterr (Depends-on): Likewise.
35065         * modules/pipe (Depends-on): Likewise.
35066         * modules/posix_spawn-internal (Depends-on): Likewise.
35067
35068 2009-07-21  Bruno Haible  <bruno@clisp.org>
35069
35070         * modules/.gitattributes: New file.
35071
35072 2009-07-20  Bruno Haible  <bruno@clisp.org>
35073
35074         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
35075         (main): Use it.
35076
35077 2009-07-20  Eric Blake  <ebb9@byu.net>
35078
35079         test-pipe: make a bit more robust.
35080         * tests/test-pipe.c (myerr): Allow error messages regardless of
35081         what we do to stderr.
35082         (test_pipe): Rearrange to avoid deadlock.
35083         (child_main): Try a larger read, to ensure we avoided deadlock.
35084         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
35085         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
35086         if misused.
35087
35088 2009-07-19  Jim Meyering  <meyering@redhat.com>
35089
35090         fts: avoid false-positive cycle-detection
35091         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
35092         for each new command line argument.
35093
35094 2009-07-19  Bruno Haible  <bruno@clisp.org>
35095
35096         Fix build error on mingw with the modules sys_select and unistd.
35097         * modules/acl-tests (Depends-on): Add close.
35098         * modules/binary-io-tests (Depends-on): Likewise.
35099         * modules/closein-tests (Depends-on): Likewise.
35100         * modules/flock-tests (Depends-on): Likewise.
35101         * modules/fsync-tests (Depends-on): Likewise.
35102         * modules/lseek-tests (Depends-on): Likewise.
35103         * modules/pipe-tests (Depends-on): Likewise.
35104         * modules/posix_spawn-tests (Depends-on): Likewise.
35105         * modules/posix_spawnp-tests (Depends-on): Likewise.
35106         * modules/stat-time-tests (Depends-on): Likewise.
35107         * modules/yesno-tests (Depends-on): Likewise.
35108
35109 2009-07-19  Bruno Haible  <bruno@clisp.org>
35110
35111         Unify conditionals.
35112         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
35113         macros, not at the compiler macros.
35114         * lib/pipe.c: Likewise.
35115         * lib/execute.c: Likewise.
35116         * lib/spawni.c: Likewise.
35117
35118 2009-07-19  Bruno Haible  <bruno@clisp.org>
35119
35120         Fix handling of closed stdin/stdout/stderr on mingw.
35121         * lib/w32spawn.h: Include unistd.h.
35122         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
35123         file descriptor with O_NOINHERIT flag.
35124         (fd_safer_noinherit): New function, based on fd-safer.c.
35125         (dup_safer_noinherit): New function, based on dup-safer.c.
35126         (undup_safer_noinherit): New function.
35127         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
35128         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
35129         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
35130         instead of fd_safer.
35131         * tests/test-pipe.c: Include <windows.h>.
35132         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
35133         result.
35134
35135         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
35136         from main.
35137         (test_pipe): Pass an extra argument for disambiguation.
35138         (main): Invoke parent_main or child_main.
35139
35140         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
35141         consistently.
35142
35143 2009-07-18  Eric Blake  <ebb9@byu.net>
35144
35145         test-pipe: fix mingw build
35146         * tests/test-pipe.c (main): Avoid fcntl on mingw.
35147
35148 2009-07-18  Bruno Haible  <bruno@clisp.org>
35149
35150         * modules/pipe-tests (Makefile.am): Fix typo.
35151
35152 2009-07-18  Eric Blake  <ebb9@byu.net>
35153
35154         error: fix mingw build
35155         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
35156         Reported by Bruno Haible.
35157
35158         error: avoid undefined use of stdout
35159         * lib/error.c (error, error_at_line): Check that fd 1 is open
35160         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
35161         is handling faults and the close_stdout module wants to report the
35162         detection of closed stdout as an error.
35163
35164 2009-07-17  Eric Blake  <ebb9@byu.net>
35165
35166         pipe: be robust in face of closed fds
35167         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
35168         should cause child to misbehave.
35169         * modules/pipe-tests: New module.
35170         * tests/test-pipe.c: New file.
35171         * tests/test-pipe.sh: New file.
35172         Reported by Akim Demaille.
35173
35174 2009-07-14  Bruno Haible  <bruno@clisp.org>
35175
35176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
35177         Reported by anonymous kc.
35178
35179 2009-07-07  Jim Meyering  <meyering@redhat.com>
35180
35181         maint.mk: don't look for translatable strings in *.m4 or *.mk
35182         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
35183         when searching for translatable strings.
35184
35185 2009-07-05  Jim Meyering  <meyering@redhat.com>
35186
35187         remove superfluous parentheses in STREQ definition
35188         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
35189         * lib/getugroups.c (STREQ): Likewise.
35190         * lib/fnmatch.c (STREQ): Likewise.
35191         Spotted by Bruno Haible.
35192
35193 2009-07-04  Jim Meyering  <meyering@redhat.com>
35194
35195         argv-iter: new module
35196         * MODULES.html.sh: Add argv-iter.
35197         * lib/argv-iter.c, lib/argv-iter.h: New files.
35198         * modules/argv-iter: New file.
35199         * modules/argv-iter-tests: New file.
35200         * tests/test-argv-iter.c: Test it.
35201
35202 2009-07-04  Bruno Haible  <bruno@clisp.org>
35203
35204         Fix assertion.
35205         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
35206         contains more exact copies of a given entry than file2, leave the extra
35207         copies unpaired rather than aborting.
35208         Reported by Eric Blake.
35209
35210 2009-07-02  Bruno Haible  <bruno@clisp.org>
35211
35212         Speedup git-merge-changelog for git cherry-pick.
35213         * lib/git-merge-changelog.c (struct entries_mapping): New type.
35214         (entries_mapping_get): New function, extracted from compute_mapping.
35215         (entries_mapping_reverse_get): New function.
35216         (compute_mapping): Add a 'full' argument. Return the result in a
35217         'struct entries_mapping'.
35218         (main): Update. Access the mappings through entries_mapping_get.
35219         Reported by Eric Blake.
35220
35221 2009-07-02  Bruno Haible  <bruno@clisp.org>
35222
35223         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
35224         best_i.
35225
35226 2009-07-02  Bruno Haible  <bruno@clisp.org>
35227
35228         Speed up approximate search for matching ChangeLog entries.
35229         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
35230         argument. Call fstrcmp_bounded instead of fstrcmp.
35231         (compute_mapping, try_split_merged_entry, main): Update callers.
35232
35233 2009-07-02  Bruno Haible  <bruno@clisp.org>
35234
35235         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
35236
35237 2009-06-30  Bruno Haible  <bruno@clisp.org>
35238
35239         Reduce the number of uc_is_cased calls.
35240         * lib/unicase.h (casing_suffix_context_t): Add
35241         'first_char_except_ignorable' field.
35242         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
35243         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
35244         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
35245         Update initializer.
35246         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
35247         case-ignorable characters.
35248         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
35249         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
35250         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
35251         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
35252         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
35253
35254 2009-06-30  Bruno Haible  <bruno@clisp.org>
35255
35256         Tests for module 'unicase/ignorable'.
35257         * modules/unicase/ignorable-tests: New file.
35258         * tests/unicase/test-ignorable.c: New file, generated by
35259         gen-uni-tables.
35260
35261         Tests for module 'unicase/cased'.
35262         * modules/unicase/cased-tests: New file.
35263         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
35264         * tests/unicase/test-predicate-part1.h: New file, derived from
35265         tests/unictype/test-predicate-part1.h.
35266         * tests/unicase/test-predicate-part2.h: New file, same as
35267         tests/unictype/test-predicate-part2.h.
35268
35269         Fix evaluation of "Before C" condition of FINAL_SIGMA.
35270         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
35271         (output_casing_properties): New function.
35272         (main): Call it.
35273         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
35274         * lib/unicase/cased.c: Include unictype/bitmap.h.
35275         (uc_is_cased): Define through a bitmap lookup.
35276         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
35277         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
35278         (uc_is_case_ignorable): Define through a bitmap lookup.
35279         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
35280         lib/unictype/bitmap.h.
35281         (Depends-on): Add inline. Clean up.
35282         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
35283         lib/unictype/bitmap.h.
35284         (Depends-on): Add inline. Clean up.
35285         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
35286         recognition.
35287         * tests/unicase/test-u16-tolower.c (main): Likewise.
35288         * tests/unicase/test-u32-tolower.c (main): Likewise.
35289
35290 2009-06-30  Bruno Haible  <bruno@clisp.org>
35291
35292         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
35293         * lib/unicase/u16-casemap.c: Likewise.
35294         * lib/unicase/u32-casemap.c: Likewise.
35295
35296 2009-06-29  Bruno Haible  <bruno@clisp.org>
35297
35298         Define u32_casefold as a wrapper around u32_ct_casefold.
35299         * lib/unicase/u32-casefold.c: Update.
35300         * modules/unicase/u32-casefold (Depends-on): Add
35301         unicase/u32-ct-casefold, unicase/empty-prefix-context,
35302         unicase/empty-suffix-context. Clean up.
35303
35304         Define u16_casefold as a wrapper around u16_ct_casefold.
35305         * lib/unicase/u16-casefold.c: Update.
35306         * modules/unicase/u16-casefold (Depends-on): Add
35307         unicase/u16-ct-casefold, unicase/empty-prefix-context,
35308         unicase/empty-suffix-context. Clean up.
35309
35310         Define u8_casefold as a wrapper around u8_ct_casefold.
35311         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
35312         * lib/unicase/u8-casefold.c: Update.
35313         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
35314         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35315
35316         Define u32_totitle as a wrapper around u32_ct_totitle.
35317         * lib/unicase/u32-totitle.c: Update.
35318         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
35319         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35320
35321         Define u16_totitle as a wrapper around u16_ct_totitle.
35322         * lib/unicase/u16-totitle.c: Update.
35323         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
35324         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35325
35326         Define u8_totitle as a wrapper around u8_ct_totitle.
35327         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
35328         functions.
35329         (FUNC): Delegate to U_CT_TOTITLE.
35330         * lib/unicase/u8-totitle.c: Update.
35331         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
35332         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35333
35334         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
35335         invocation.
35336         * modules/unicase/u32-tolower (Depends-on): Add
35337         unicase/empty-prefix-context, unicase/empty-suffix-context.
35338
35339         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
35340         invocation.
35341         * modules/unicase/u16-tolower (Depends-on): Add
35342         unicase/empty-prefix-context, unicase/empty-suffix-context.
35343
35344         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
35345         * modules/unicase/u8-tolower (Depends-on): Add
35346         unicase/empty-prefix-context, unicase/empty-suffix-context.
35347
35348         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
35349         invocation.
35350         * modules/unicase/u32-toupper (Depends-on): Add
35351         unicase/empty-prefix-context, unicase/empty-suffix-context.
35352
35353         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
35354         invocation.
35355         * modules/unicase/u16-toupper (Depends-on): Add
35356         unicase/empty-prefix-context, unicase/empty-suffix-context.
35357
35358         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
35359         * modules/unicase/u8-toupper (Depends-on): Add
35360         unicase/empty-prefix-context, unicase/empty-suffix-context.
35361
35362         New module 'unicase/u32-ct-casefold'.
35363         * lib/unicase/u32-ct-casefold.c: New file.
35364         * modules/unicase/u32-ct-casefold: New file.
35365
35366         New module 'unicase/u16-ct-casefold'.
35367         * lib/unicase/u16-ct-casefold.c: New file.
35368         * modules/unicase/u16-ct-casefold: New file.
35369
35370         New module 'unicase/u8-ct-casefold'.
35371         * lib/unicase/u8-ct-casefold.c: New file.
35372         * lib/unicase/u-ct-casefold.h: New file, derived from
35373         lib/unicase/u-casefold.h.
35374         * modules/unicase/u8-ct-casefold: New file.
35375
35376         New module 'unicase/u32-ct-totitle'.
35377         * lib/unicase/u32-ct-totitle.c: New file.
35378         * modules/unicase/u32-ct-totitle: New file.
35379
35380         New module 'unicase/u16-ct-totitle'.
35381         * lib/unicase/u16-ct-totitle.c: New file.
35382         * modules/unicase/u16-ct-totitle: New file.
35383
35384         New module 'unicase/u8-ct-totitle'.
35385         * lib/unicase/u8-ct-totitle.c: New file.
35386         * lib/unicase/u-ct-totitle.h: New file, derived from
35387         lib/unicase/u-totitle.h.
35388         * modules/unicase/u8-ct-totitle: New file.
35389
35390         New module 'unicase/u32-ct-tolower'.
35391         * lib/unicase/u32-ct-tolower.c: New file.
35392         * modules/unicase/u32-ct-tolower: New file.
35393
35394         New module 'unicase/u16-ct-tolower'.
35395         * lib/unicase/u16-ct-tolower.c: New file.
35396         * modules/unicase/u16-ct-tolower: New file.
35397
35398         New module 'unicase/u8-ct-tolower'.
35399         * lib/unicase/u8-ct-tolower.c: New file.
35400         * modules/unicase/u8-ct-tolower: New file.
35401
35402         New module 'unicase/u32-ct-toupper'.
35403         * lib/unicase/u32-ct-toupper.c: New file.
35404         * modules/unicase/u32-ct-toupper: New file.
35405
35406         New module 'unicase/u16-ct-toupper'.
35407         * lib/unicase/u16-ct-toupper.c: New file.
35408         * modules/unicase/u16-ct-toupper: New file.
35409
35410         New module 'unicase/u8-ct-toupper'.
35411         * lib/unicase/u8-ct-toupper.c: New file.
35412         * modules/unicase/u8-ct-toupper: New file.
35413
35414         Add context arguments to u*_casemap functions.
35415         * lib/unicase/unicasemap.h: Include unicase.h.
35416         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
35417         suffix_context arguments.
35418         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
35419         functions.
35420         (FUNC): Add prefix_context and suffix_context arguments. Use
35421         uc_is_cased and uc_is_case_ignorable.
35422         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
35423         * lib/unicase/u16-casemap.c: Likewise.
35424         * lib/unicase/u32-casemap.c: Likewise.
35425         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
35426         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35427         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
35428         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35429         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
35430         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35431
35432         New module 'unicase/u32-suffix-context'.
35433         * lib/unicase/u32-suffix-context.c: New file.
35434         * modules/unicase/u32-suffix-context: New file.
35435
35436         New module 'unicase/u16-suffix-context'.
35437         * lib/unicase/u16-suffix-context.c: New file.
35438         * modules/unicase/u16-suffix-context: New file.
35439
35440         New module 'unicase/u8-suffix-context'.
35441         * lib/unicase/u8-suffix-context.c: New file.
35442         * lib/unicase/u-suffix-context.h: New file.
35443         * modules/unicase/u8-suffix-context: New file.
35444
35445         New module 'unicase/empty-suffix-context'.
35446         * lib/unicase/empty-suffix-context.c: New file.
35447         * modules/unicase/empty-suffix-context: New file.
35448
35449         New module 'unicase/u32-prefix-context'.
35450         * lib/unicase/u32-prefix-context.c: New file.
35451         * modules/unicase/u32-prefix-context: New file.
35452
35453         New module 'unicase/u16-prefix-context'.
35454         * lib/unicase/u16-prefix-context.c: New file.
35455         * modules/unicase/u16-prefix-context: New file.
35456
35457         New module 'unicase/u8-prefix-context'.
35458         * lib/unicase/u8-prefix-context.c: New file.
35459         * lib/unicase/u-prefix-context.h: New file.
35460         * lib/unicase/context.h: New file.
35461         * modules/unicase/u8-prefix-context: New file.
35462
35463         New module 'unicase/empty-prefix-context'.
35464         * lib/unicase/empty-prefix-context.c: New file.
35465         * modules/unicase/empty-prefix-context: New file.
35466
35467         New module 'unicase/ignorable'.
35468         * lib/unicase/ignorable.c: New file.
35469         * modules/unicase/ignorable: New file.
35470
35471         New module 'unicase/cased'.
35472         * lib/unicase/caseprop.h: New file.
35473         * lib/unicase/cased.c: New file.
35474         * modules/unicase/cased: New file.
35475
35476         New functions for case mapping of substrings.
35477         * lib/unicase.h (casing_prefix_context_t): New type.
35478         (unicase_empty_prefix_context): New variable.
35479         (u8_casing_prefix_context, u16_casing_prefix_context,
35480         u32_casing_prefix_context, u8_casing_prefixes_context,
35481         u16_casing_prefixes_context, u32_casing_prefixes_context): New
35482         declarations.
35483         (casing_suffix_context_t): New type.
35484         (unicase_empty_suffix_context): New variable.
35485         (u8_casing_suffix_context, u16_casing_suffix_context,
35486         u32_casing_suffix_context, u8_casing_suffixes_context,
35487         u16_casing_suffixes_context, u32_casing_suffixes_context,
35488         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
35489         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
35490         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
35491         declarations.
35492
35493 2009-06-28  Jim Meyering  <meyering@redhat.com>
35494
35495         boostrap: indent only with spaces
35496         * build-aux/bootstrap: Indent only with spaces, never TABs.
35497
35498         bootstrap: split long lines
35499         * build-aux/bootstrap: Keep line length < 80.
35500
35501         bootstrap: sync from coreutils
35502         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
35503         just as autoreconf does.  Verify a list of prerequisite
35504         package-name,version-number pairs if defined in bootstrap.conf.
35505         Refer to README-prereq, if prerequisites are not satisfied.
35506
35507 2009-06-27  Eric Blake  <ebb9@byu.net>
35508
35509         tests: add test for bogus NULL definition
35510         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
35511         * tests/test-stdlib.c: Likewise.
35512         * tests/test-string.c: Likewise.
35513         * tests/test-locale.c: Likewise.
35514         * tests/test-unistd.c: Likewise.
35515         * modules/stdio-tests (Depends-on): Add verify.
35516         * modules/stdlib-tests (Depends-on): Likewise.
35517         * modules/string-tests (Depends-on): Likewise.
35518         * modules/locale-tests (Depends-on): Likewise.
35519         * modules/unistd-tests (Depends-on): Likewise.
35520
35521 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
35522
35523         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
35524         self-explaining comment.
35525         * m4/selinux-selinux-h: Update serial.
35526         (gl_LIBSELINUX): New macro, adding a warning for missing development
35527         packages to code extracted from...
35528         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
35529         Add warning for missing development packages here, too.
35530
35531 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
35532
35533         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
35534
35535 2009-06-25  Eric Blake  <ebb9@byu.net>
35536
35537         version-etc: fix regression
35538         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
35539         gcc.
35540         (version_etc): Use it, to catch bugs with trailing NULL.
35541         * lib/version-etc.c (version_etc_arn): Delete unused argument.
35542         (version_etc_va): Fix logic bug.
35543         * modules/version-etc-tests: Add test.
35544         * tests/test-version-etc.c: New file.
35545         * tests/test-version-etc.sh: Likewise.
35546
35547 2009-06-25  Sam Steingold  <sds@gnu.org>
35548
35549         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
35550         mbtowc declaration.
35551
35552 2009-06-25  Eric Blake  <ebb9@byu.net>
35553
35554         fpurge: migrate into <stdio.h>
35555         * lib/fpurge.h: Delete...
35556         * lib/stdio.in.h (fpurge): ...and declare here, instead.
35557         * lib/fpurge.c (fpurge): Change declaring header.
35558         * modules/fpurge (Files): Drop deleted file.
35559         (Depends-on): Add stdio.
35560         (configure.ac): Set witness.
35561         * modules/stdio (Makefile.am): Support fpurge macros.
35562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35563         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
35564         * lib/fflush.c: Update client.
35565         * tests/test-fpurge.c: Likewise.
35566         * NEWS: Mention the change.
35567
35568 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35569
35570         * lib/argp-version-etc.c (program_authors): Add const
35571         qualifier.
35572         * lib/version-etc.c: Fix typos in the comments.
35573         * modules/argp-version-etc: Depends on version-etc.
35574
35575 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35576
35577         argp-version-etc: new module.
35578
35579         * lib/argp-version-etc.c: New file.
35580         * lib/argp-version-etc.h: New file.
35581         * modules/argp-version-etc: New file.
35582         * modules/argp-version-etc-tests: New file.
35583         * tests/test-argp-version-etc.c: New test.
35584         * tests/test-argp-version-etc-1.sh: New test.
35585
35586 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35587
35588         Provide additional interfaces and documentation for version-etc
35589         module.
35590
35591         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
35592         interfaces.
35593         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
35594         prototypes.
35595
35596 2009-06-24  Bruno Haible  <bruno@clisp.org>
35597
35598         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
35599         HAVE_LIB${NAME} macro.
35600         Reported by Sam Steingold <sds@gnu.org>.
35601
35602 2009-06-23  Simon Josefsson  <simon@josefsson.org>
35603
35604         * modules/hash-tests (test_hash_LDADD): Link to libintl when
35605         needed.
35606
35607 2009-06-21  Bruno Haible  <bruno@clisp.org>
35608
35609         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
35610         work.
35611         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
35612         together with LIB${NAME}, LTLIB${NAME}.
35613         Reported by Sam Steingold <sds@gnu.org>.
35614
35615 2009-06-20  Jim Meyering  <meyering@redhat.com>
35616
35617         tests: make sc_require_test_exit_idiom more generic
35618         * top/maint.mk (Exit_witness_file): New overridable variable.
35619         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
35620         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
35621
35622 2009-06-19  Jim Meyering  <meyering@redhat.com>
35623
35624         hash: reverse order of src/dst parameters in an internal interface
35625         * lib/hash.c (transfer_entries): Reverse order of parameters to
35626         put DST before SRC.  Adjust callers.
35627
35628         tests: test-hash: avoid wholesale duplication
35629         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
35630         Instead, use a loop and add a single conditional.
35631
35632         tests: test-hash: allow seed selection via a command line argument
35633         * tests/test-hash.c (get_seed): New function.
35634         (main): Use it.
35635
35636 2009-06-19  Eric Blake  <ebb9@byu.net>
35637
35638         hash: avoid memory leak on allocation failure
35639         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
35640         failure.  Factor repeated algorithm...
35641         (transfer_entries): ...into new helper routine.
35642         (hash_delete): React to hash_rehash return value.
35643
35644         hash: reduce memory pressure in hash_rehash no-op case
35645         * lib/hash.c (next_prime): Avoid overflow.
35646         (hash_initialize): Factor bucket size computation...
35647         (compute_bucket_size): ...into new helper function.
35648         (hash_rehash): Use new function and open coding to reduce memory
35649         pressure, and avoid a memory leak in USE_OBSTACK code.
35650         Reported by Jim Meyering.
35651
35652 2009-06-18  Eric Blake  <ebb9@byu.net>
35653
35654         hash: make rotation more obvious
35655         * modules/hash (Depends-on): Add bitrotate and stdint.
35656         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
35657         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
35658         (SIZE_MAX): Rely on headers for definition.
35659         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
35660         (raw_hasher): Use rotr_sz.
35661         Suggested by Jim Meyering.
35662
35663         hash: fix memory leak in last patch
35664         * lib/hash.c (hash_rehash): Avoid memory leak.
35665
35666         hash: avoid no-op rehashing
35667         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35668
35669         hash: provide default callback functions
35670         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35671         (hash_initialize): Use them as defaults.
35672         * tests/test-hash.c (main): Test this.
35673
35674         hash: minor optimization
35675         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35676         when possible.
35677         (hash_initialize): Document this promise.
35678         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35679         * tests/test-hash.c (hash_compare_strings): Test this.
35680
35681 2009-06-18  Bruno Haible  <bruno@clisp.org>
35682
35683         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35684         going to be replaced anyway.
35685
35686 2009-06-18  Bruno Haible  <bruno@clisp.org>
35687
35688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35689         in one place.
35690         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35691         be replaced anyway.
35692
35693 2009-06-18  Eric Blake  <ebb9@byu.net>
35694
35695         hash: check for resize before insertion
35696         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35697         threshold before insertion, so that a pathological hash_rehash
35698         that fills every bucket can still trigger another rehash.
35699
35700 2009-06-18  Jim Meyering  <meyering@redhat.com>
35701
35702         hash-tests: add a loop around the small tests
35703         * tests/test-hash.c (main): Repeat small tests with selected
35704         small initial table sizes.
35705
35706 2009-06-17  Eric Blake  <ebb9@byu.net>
35707
35708         hash: minor cleanups
35709         * lib/hash.h (hash_entry): Make opaque, by moving...
35710         * lib/hash.c (hash_entry): ...here.
35711         (hash_insert): Clarify restrictions on what can be inserted.
35712         (hash_get_next): Clarify when it is safe to remove an element
35713         during traversal.
35714         (check_tuning): Skip verification when tuning is known safe.
35715         (hash_initialize): Clarify restrictions on tuning.
35716
35717 2009-06-17  Jim Meyering  <jim@meyering.net>
35718         and Eric Blake  <ebb9@byu.net>
35719
35720         hash-tests: new module
35721         * modules/hash-tests: New file.
35722         * tests/test-hash.c: New file.
35723
35724 2009-06-17  Eric Blake  <ebb9@byu.net>
35725
35726         strstr-simple: document new module
35727         * MODULES.html.sh: Document new module.
35728
35729         strstr, strcasestr: replace on platforms with broken memchr
35730         * modules/strstr: Split into...
35731         * modules/strstr-simple: ...new module that does not care about
35732         performance, but does care about glibc bug.
35733         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35734         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35735         if platform memchr is broken, per Debian bug 521737.
35736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35737         memchr.
35738         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35739         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35740         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35741         * modules/mountlist (Depends-on): Add strstr-simple.
35742         * modules/gen-uni-tables (Depends-on): Likewise.
35743         * modules/argz (Depends-on): Add strstr.
35744
35745 2009-06-17  Bruno Haible  <bruno@clisp.org>
35746
35747         * modules/posix_spawn-internal (Depends-on): Add errno.
35748
35749 2009-06-17  Bruno Haible  <bruno@clisp.org>
35750
35751         Define missing ESTALE on Interix 3.5.
35752         * lib/errno.in.h (ESTALE): Assign a value if missing.
35753         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35754         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35755         missing.
35756         * doc/posix-headers/errno.texi: Mention the Interix bug.
35757         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35758
35759 2009-06-15  Eric Blake  <ebb9@byu.net>
35760
35761         memchr, memchr2: add valgrind exception
35762         * lib/memchr.valgrind: New file.
35763         * lib/memchr2.valgrind: New file.
35764         * modules/memchr (Files): Distribute valgrind file.
35765         * modules/memchr2 (Files): Likewise.
35766
35767         docs: memchr is no longer obsolete
35768         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35769         * lib/string.in.h (memchr): Simplify logic.
35770
35771 2009-06-14  Jim Meyering  <meyering@redhat.com>
35772
35773         link-follow: fix the "checking..." message to not mention trailing slash
35774         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35775         never considered trailing slashes.
35776
35777 2009-06-14  Bruno Haible  <bruno@clisp.org>
35778
35779         * m4/memchr.m4: Mention also the bug on IA-64.
35780         * doc/posix-functions/memchr.texi: Likewise.
35781
35782 2009-06-12  Eric Blake  <ebb9@byu.net>
35783
35784         memchr: detect broken x86_64 and alpha implementations
35785         * modules/memchr-tests (Depends-on): Move mmap detection...
35786         * modules/memchr (Depends-on): ...here.
35787         (configure.ac): Set indicator.
35788         * lib/string.in.h (memchr): Declare replacement.
35789         * modules/string (Makefile.am): Trigger replacement.
35790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35791         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35792         bugs.
35793         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35794         * modules/getpagesize (License): Relax license.
35795
35796 2009-06-11  Bruno Haible  <bruno@clisp.org>
35797
35798         * lib/idpriv.h: Add more references.
35799
35800 2009-06-08  Bruno Haible  <bruno@clisp.org>
35801
35802         Tests for module 'idpriv-droptemp'.
35803         * modules/idpriv-droptemp-tests: New file.
35804         * tests/test-idpriv-droptemp.sh: New file.
35805         * tests/test-idpriv-droptemp.su.sh: New file.
35806         * tests/test-idpriv-droptemp.c: New file.
35807
35808         New module 'idpriv-droptemp'.
35809         * lib/idpriv-droptemp.c: New file.
35810         * modules/idpriv-droptemp: New file.
35811
35812 2009-06-08  Bruno Haible  <bruno@clisp.org>
35813
35814         Tests for module 'idpriv-drop'.
35815         * modules/idpriv-drop-tests: New file.
35816         * tests/test-idpriv-drop.sh: New file.
35817         * tests/test-idpriv-drop.su.sh: New file.
35818         * tests/test-idpriv-drop.c: New file.
35819
35820         New module 'idpriv-drop'.
35821         * lib/idpriv.h: New file.
35822         * lib-idpriv-drop.c: New file.
35823         * m4/idpriv.m4: New file.
35824         * modules/idpriv-drop: New file.
35825
35826 2009-06-08  Bruno Haible  <bruno@clisp.org>
35827
35828         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35829         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35830         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35831         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35832         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35833         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35834         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35835
35836 2009-06-08  Eric Blake  <ebb9@byu.net>
35837
35838         test-strstr: use memory fence, when possible
35839         * tests/test-strstr.c (main): Use memory fence, in order to be
35840         more likely to trigger Debian bug 521737.
35841         * modules/strstr-tests (Files): Pull in additional files.
35842
35843         memchr: no longer obsolete, for wider field testing
35844         * modules/memchr (Status, Notice): Delete, this module is no
35845         longer obsolete.
35846         * modules/vasnprintf (Depends-on): Add memchr.
35847
35848 2009-06-07  Jim Meyering  <meyering@redhat.com>
35849
35850         hash: declare some functions with the warn_unused_result attribute
35851         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35852
35853 2009-06-07  Bruno Haible  <bruno@clisp.org>
35854
35855         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35856         Reported by Eric Blake.
35857
35858 2009-06-06  Eric Blake  <ebb9@byu.net>
35859
35860         test-alignof: fix typo with long double
35861         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35862         compiler error.
35863
35864 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35865
35866         Escape non-texinfo { and }s.
35867         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35868         markup error.
35869
35870 2009-06-04  Jim Meyering  <meyering@redhat.com>
35871
35872         gitlog-to-changelog: don't infloop on an empty commit log
35873         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35874         Reported by Boris Petersen <transacid@centerim.org>.
35875
35876 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35877
35878         version-etc: extend for packagers
35879         Add three new configure options, intended for packagers:
35880           --with-packager="packager name"
35881           --with-packager-version="packager-specific version"
35882           --with-packager-bug-reports="packager bug reporting"
35883         An example with coreutils:
35884           $ ./configure \
35885             --with-packager=Gentoo \
35886             --with-packager-bug-report=http://bugs.gentoo.org/ \
35887             --with-packager-version="patchset 1.6"
35888           $ ./src/ls --version | head -n2
35889           ls (GNU coreutils) 7.1-dirty
35890           Packaged by Gentoo (patchset 1.6)
35891         Note that the bug reporting info via --help doesn't show up because
35892         coreutils uses its own custom emit_bug_reporting_address() implementation
35893         in src/system.h.  If it didn't, it'd look like:
35894           $ ./src/ls --help | tail -n4
35895           Report bugs to <bug-coreutils@gnu.org>.
35896           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35897           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35898           General help using GNU software: <http://www.gnu.org/gethelp/>.
35899         * lib/version-etc.c: Print new information, if provided.
35900         * m4/version-etc.m4: New file.
35901         * modules/version-etc (Files): Add m4/version-etc.m4.
35902         (configure.ac): Add gl_VERSION_ETC.
35903
35904 2009-05-31  Bruno Haible  <bruno@clisp.org>
35905
35906         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35907         and 'int64_t'.
35908         * modules/alignof-tests (Dependencies): Add stdint.
35909         Reported by Eric Blake.
35910
35911 2009-05-31  Bruno Haible  <bruno@clisp.org>
35912
35913         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35914         restriction due to compiler bugs.
35915         Reported by Eric Blake.
35916
35917 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35918             Bruno Haible  <bruno@clisp.org>
35919
35920         Fix test-alignof failure.
35921         * lib/alignof.h (alignof_slot): New macro.
35922         (alignof_type): New macro, with the same semantics as the previous
35923         'alignof'.
35924         (alignof): Alias to alignof_slot.
35925         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35926         check that the results are usable as constant expressions.
35927
35928 2009-05-31  Bruno Haible  <bruno@clisp.org>
35929
35930         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35931         * tests/test-memchr.c (main): Check that memchr does not read past the
35932         first occurrence of the byte.
35933         * tests/test-strstr.c (main): Update comment.
35934         Suggested by Eric Blake.
35935
35936 2009-05-30  Bruno Haible  <bruno@clisp.org>
35937
35938         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35939         detail how to use dumpbin.
35940         Reported by David Byron <dbyron@dbyron.com>.
35941
35942 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35943
35944         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35945
35946 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35947
35948         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35949
35950 2009-05-28  Bruno Haible  <bruno@clisp.org>
35951
35952         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35953         build-aux/ files.
35954
35955 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35956
35957         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35958
35959 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35960
35961         * gnulib-tool (sed_transform_main_lib_file)
35962         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35963         regexps.
35964
35965 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35966
35967         * tests/test-strstr.c: Add another self-test.
35968         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35969         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35970
35971 2009-05-23  Bruno Haible  <bruno@clisp.org>
35972
35973         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35974         change.
35975
35976 2009-05-21  Bruno Haible  <bruno@clisp.org>
35977
35978         Simplify use of mode_t varargs.
35979         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35980         uses 'mode_t' or 'int'.
35981         * lib/openat.c (openat): Likewise.
35982         * lib/open-safer.c (open_safer): Likewise.
35983         * m4/mode_t.m4: New file.
35984         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35985         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35986         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35987         * modules/open (Files): Add m4/mode_t.m4.
35988         * modules/openat (Files): Likewise.
35989         * modules/fcntl-safer (Files): Likewise.
35990         Suggested by Eric Blake.
35991
35992 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35993
35994         * doc/glibc-functions/fallocate.texi: New file.
35995         * doc/gnulib.texi: Include it.
35996
35997 2009-05-21  Eric Blake  <ebb9@byu.net>
35998             Bruno Haible  <bruno@clisp.org>
35999
36000         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
36001         invocations.
36002         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36003
36004 2009-05-21  Eric Blake  <ebb9@byu.net>
36005             Bruno Haible  <bruno@clisp.org>
36006
36007         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
36008         include_next. Fix of 2008-11-20 commit.
36009         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
36010         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
36011         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
36012         NEXT_MATH_H.
36013         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
36014         instead of NEXT_MATH_H.
36015
36016 2009-05-21  Bruno Haible  <bruno@clisp.org>
36017
36018         Avoid redefinition warnings for SIZE_MAX.
36019         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
36020         Reported by Simon Josefsson.
36021
36022 2009-05-21  Bruno Haible  <bruno@clisp.org>
36023
36024         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
36025         AC_CACHE_VAL.
36026
36027 2009-05-20  Bruno Haible  <bruno@clisp.org>
36028
36029         Make zeroptr.h work on mingw.
36030         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
36031         mprotect.
36032         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
36033         * modules/memchr2-tests (configure.ac): Likewise.
36034         * modules/memcmp-tests (configure.ac): Likewise.
36035         * modules/memmem-tests (configure.ac): Likewise.
36036         * modules/memrchr-tests (configure.ac): Likewise.
36037         Reported by Simon Josefsson.
36038
36039 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36040
36041         * tests/test-glob.c: Include string.h for strcmp prototype.
36042
36043 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36044
36045         * modules/getdelim (Depends-on): Add explicit stdint, although it
36046         was implicitly already pulled in via realloc-posix.
36047         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
36048
36049 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36050
36051         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
36052         G. Christensen" <tgc@jupiterrise.com>.
36053         * m4/sys_socket_h.m4: Check for sa_family_t.
36054         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
36055         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
36056         * tests/test-sys_socket.c: Check that sa_family_t works.
36057
36058 2009-05-18  Eric Blake  <ebb9@byu.net>
36059
36060         maint.mk: allow gnulib_dir in VPATH build
36061         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
36062
36063 2009-05-15  Jim Meyering  <meyering@redhat.com>
36064
36065         maint.mk: Give gnulib_dir a default definition.
36066         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
36067         Thus, most packages no longer need to specify this variable in cfg.mk
36068
36069 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
36070
36071         rename.m4: fix typos that would make non-mingw cross-configure fail
36072         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
36073
36074 2009-05-13  Eric Blake  <ebb9@byu.net>
36075
36076         mmap-anon: avoid out-of-order autoconf expansion
36077         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
36078         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
36079         * modules/memchr-tests (Depends-on): Add extensions.
36080         * modules/memchr2-tests (Depends-on): Add extensions.
36081         * modules/memcmp-tests (Depends-on): Add extensions.
36082         * modules/memmem-tests (Depends-on): Add extensions.
36083         * modules/memrchr-tests (Depends-on): Add extensions.
36084
36085 2009-05-13  Bruno Haible  <bruno@clisp.org>
36086
36087         Make some tests ISO C 99 compliant.
36088         * tests/zerosize-ptr.h: New file.
36089         * tests/test-memchr.c: Include zerosize-ptr.h.
36090         (main): Use a zero-size object pointer instead of NULL.
36091         * tests/test-memchr2.c: Include zerosize-ptr.h.
36092         (main): Use a zero-size object pointer instead of NULL.
36093         * tests/test-memcmp.c: Include zerosize-ptr.h.
36094         (main): Use a zero-size object pointer instead of NULL.
36095         * tests/test-memmem.c: Include zerosize-ptr.h.
36096         (main): Use a zero-size object pointer instead of NULL.
36097         * tests/test-memrchr.c: Include zerosize-ptr.h.
36098         (main): Use a zero-size object pointer instead of NULL.
36099         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
36100         m4/mmap-anon.m4.
36101         (Depends-on): Add getpagesize.
36102         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36103         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
36104         m4/mmap-anon.m4.
36105         (Depends-on): Add getpagesize.
36106         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36107         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
36108         m4/mmap-anon.m4.
36109         (Depends-on): Add getpagesize.
36110         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36111         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
36112         m4/mmap-anon.m4.
36113         (Depends-on): Add getpagesize.
36114         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36115         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
36116         m4/mmap-anon.m4.
36117         (Depends-on): Add getpagesize.
36118         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36119
36120 2009-05-12  Bruno Haible  <bruno@clisp.org>
36121
36122         Tests for module 'alignof'.
36123         * modules/alignof-tests: New file.
36124         * tests/test-alignof.c: New file.
36125
36126 2009-05-12  Bruno Haible  <bruno@clisp.org>
36127
36128         Fix alignof macro.
36129         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
36130         vendor compilers that are always correct.
36131
36132 2009-05-12  Bruno Haible  <bruno@clisp.org>
36133
36134         Make the MAP_ANONYMOUS detection work on HP-UX 11.
36135         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
36136         not whether its fully works.
36137
36138 2009-05-12  Bruno Haible  <bruno@clisp.org>
36139
36140         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
36141
36142 2009-05-12  Jim Meyering  <meyering@redhat.com>
36143
36144         * top/maint.mk: Adjust backslash alignment.
36145
36146 2009-05-11  Simon Josefsson  <simon@josefsson.org>
36147
36148         * top/maint.mk: Make $(srcdir)/build-aux configurable.
36149
36150 2009-05-11  Eric Blake  <ebb9@byu.net>
36151
36152         argp: avoid undefined behavior
36153         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
36154         macros.
36155
36156 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36157
36158         * tests/test-vc-list-files-git.sh: Do git config of user.email and
36159         user.name to prevent git commit from complaining.
36160
36161 2009-05-10  Bruno Haible  <bruno@clisp.org>
36162
36163         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
36164         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
36165         it rewrites every file name only once.
36166         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
36167
36168 2009-05-08  Bruno Haible  <bruno@clisp.org>
36169
36170         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
36171         instead of 'max'.
36172
36173 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36174
36175         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
36176         sockaddr_storage test.
36177
36178 2009-05-07  Simon Josefsson  <simon@josefsson.org>
36179
36180         * modules/sys_socket (Makefile.am): Substitute
36181         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
36182         * m4/sys_socket_h.m4: Check for sockaddr_storage.
36183         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
36184         * tests/test-sys_socket.c: Check sockaddr_storage.
36185
36186 2009-05-08  Bruno Haible  <bruno@clisp.org>
36187
36188         New module 'alignof'.
36189         * lib/alignof.h: New file.
36190         * modules/alignof: New file.
36191
36192 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36193             Bruno Haible  <bruno@clisp.org>
36194
36195         Fix test-file-has-acl on FreeBSD.
36196         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
36197         mask is implicitly added.
36198         * tests/test-file-has-acl.c: Include <signal.h>.
36199         (main): Terminate the test after 5 seconds.
36200         * modules/acl-tests (configure.ac): Check for alarm function.
36201
36202 2009-05-04  Bruno Haible  <bruno@clisp.org>
36203
36204         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
36205         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
36206         * modules/errno (configure.ac): Drop AC_REQUIRE.
36207         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
36208         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
36209
36210 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36211
36212         * modules/glob-tests: New module.
36213         * tests/test-glob.c: Add.
36214
36215 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36216
36217         * modules/fnmatch-tests: New module.
36218         * tests/test-fnmatch.c: Add.
36219
36220 2009-05-04  Eric Blake  <ebb9@byu.net>
36221
36222         maint: make the new no-submodule-changes rule VPATH-safe
36223         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
36224
36225 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36226             Bruno Haible  <bruno@clisp.org>
36227
36228         acl: Fix infinite loop on FreeBSD.
36229         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
36230         of return value from acl_get_entry.
36231         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
36232         Likewise.
36233
36234 2009-05-03  Bruno Haible  <bruno@clisp.org>
36235
36236         * lib/acl-internal.h (acl_entries): Clarify return value.
36237         * lib/acl_entries.c (acl_entries): Likewise.
36238
36239 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36240
36241         Bug fix in acl module.
36242         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
36243
36244 2009-05-03  Bruno Haible  <bruno@clisp.org>
36245
36246         Create gperf-generated file in the source dir, not in the build dir.
36247         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
36248         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
36249         * modules/unicase/locale-language (unicase/locale-languages.h):
36250         Likewise.
36251         * modules/unicase/special-casing (unicase/special-casing-table.h):
36252         Likewise.
36253         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
36254         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
36255         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
36256         Reported by Ralf Wildenhues.
36257
36258 2009-05-03  Bruno Haible  <bruno@clisp.org>
36259
36260         * modules/fnmatch (Description, configure.ac): Taken from
36261         fnmatch-posix.
36262         * modules/fnmatch-posix: Turn into a symbolic reference to the
36263         'fnmatch' module, and deprecate.
36264         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
36265
36266 2009-05-03  Bruno Haible  <bruno@clisp.org>
36267
36268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
36269         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
36270         Reported by Ralf Wildenhues.
36271
36272 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36273
36274         * m4/fnmatch.m4: Fix fnmatch re-define.
36275
36276 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36277
36278         priv-set: new module and tests; adapt write-any-file
36279         * lib/priv-set.c: New file.
36280         * lib/priv-set.h: New file.
36281         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
36282         * lib/write-any-file.c: Simplify by using priv-set module.
36283         * m4/priv-set.m4: New file.
36284         * modules/priv-set: New file.
36285         * modules/unlinkdir: Add dependency on priv-set module.
36286         * modules/write-any-file: Likewise.
36287
36288         Tests for module 'priv-set'.
36289         * modules/priv-set-tests: New file.
36290         * tests/test-priv-set.c: New file.
36291
36292 2009-05-03  Jim Meyering  <meyering@redhat.com>
36293             Bruno Haible  <bruno@clisp.org>
36294
36295         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
36296         use the converted UTF-8 variant of the name instead.
36297
36298 2009-05-03  Jim Meyering  <meyering@redhat.com>
36299
36300         tests: tighten some getdate tests
36301         * tests/test-getdate.c (main): Tighten tests: require equality,
36302         not just greater than.  Set TZ envvar to UTC0.
36303
36304 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
36305
36306         getdate: correctly interpret "next monday" when run on a Monday
36307         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
36308         that e.g., "next tues" (when run on a tuesday) results in a date
36309         that is one week in the future, and not today's date.
36310         I.e., add a week when the wday is the same as the current one.
36311         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
36312         and earlier by Martin Bernreuther and Jan Minář.
36313         * tests/test-getdate.c (main): Check that "next DAY" is always in
36314         the future and that "last DAY" is always in the past.
36315
36316 2009-05-02  Jim Meyering  <meyering@redhat.com>
36317
36318         build: ensure that a release build fails when a submodule is unclean
36319         * top/maint.mk (no-submodule-changes): New rule.
36320         (alpha beta major): Depend on it.
36321
36322 2009-05-02  Bruno Haible  <bruno@clisp.org>
36323
36324         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
36325         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
36326         shell variable gl_fnmatch_required to detect which variant is
36327         requested.
36328         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
36329         gl_FUNC_FNMATCH_POSIX.
36330         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
36331         exclude fnmatch-posix.
36332
36333 2009-05-02  Bruno Haible  <bruno@clisp.org>
36334
36335         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
36336         * modules/mbsrtowcs (License): Change to LGPLv2+.
36337         * modules/strnlen1 (License): Likewise.
36338         Reported by Simon Josefsson.
36339
36340 2009-05-02  Bruno Haible  <bruno@clisp.org>
36341
36342         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
36343         "cross".
36344         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
36345         gnulib-tool was called with option --source-base=lib.
36346
36347 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36348
36349         Use automake *-local hooks without commands, for extensibility.
36350         * modules/localcharset (Makefile.am): Rename install-exec-local
36351         rule to install-exec-localcharset, and make it a prerequisite of
36352         install-exec-local.  Likewise, rename the uninstall-local rule to
36353         uninstall-localcharset, and make it a prerequisite of the former.
36354
36355 2009-05-01  Bruno Haible  <bruno@clisp.org>
36356
36357         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
36358         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36359         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
36360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
36361         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
36362         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36363         m4/locale-zh.m4, m4/codeset.m4.
36364
36365         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36366         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
36367         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36368         m4/locale-zh.m4.
36369
36370         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
36371         REPLACE_WCRTOMB if mbstate_t must be replaced.
36372         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
36373         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
36374
36375 2009-05-01  Bruno Haible  <bruno@clisp.org>
36376
36377         Avoid compiler warnings when redefining macros defined by <libintl.h>.
36378         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
36379         dngettext, dcngettext, textdomain, bindtextdomain,
36380         bind_textdomain_codeset): Undefine before redefining.
36381
36382 2009-04-30  Bruno Haible  <bruno@clisp.org>
36383
36384         Fix bug introduced on 2009-04-25.
36385         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
36386         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
36387         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
36388         is defined.
36389         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
36390         is defined.
36391         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
36392         is defined.
36393         Reported by Elbert_Pol <elbert.pol@gmail.com>.
36394
36395 2009-04-28  Bruno Haible  <bruno@clisp.org>
36396
36397         Comment tweaks.
36398         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
36399         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
36400         * lib/unicase.h (u*_casexfrm): Likewise.
36401         Reported by Paolo Bonzini.
36402
36403 2009-04-28  Bruno Haible  <bruno@clisp.org>
36404
36405         Fix a compilation error.
36406         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
36407         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36408         Reported by Jim Meyering.
36409
36410 2009-04-27  Bruno Haible  <bruno@clisp.org>
36411
36412         New module 'libunistring'.
36413         * modules/libunistring: New file.
36414         * m4/libunistring.m4: New file.
36415         * MODULES.html.sh (Unicode string functions): Add it.
36416
36417 2009-04-27  Eric Blake  <ebb9@byu.net>
36418
36419         maint.mk: allow package-specific header to provide <config.h>
36420         * top/maint.mk (sc_require_config_h): New variable.
36421         (sc_require_config_h, sc_require_config_h_first): Use it.
36422
36423 2009-04-27  Simon Josefsson  <simon@josefsson.org>
36424
36425         * top/maint.mk (sc_avoid_if_before_free): Except
36426         useless-if-before-free script.
36427
36428 2009-04-27  Eric Blake  <ebb9@byu.net>
36429
36430         maintainer-makefile: depend on all required helper scripts
36431         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
36432         useless-if-before-free.
36433         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
36434         version, rather than assuming gnulib checkout is available.
36435         Reported by Simen Josefsson.
36436
36437 2009-04-26  Bruno Haible  <bruno@clisp.org>
36438
36439         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
36440         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
36441         "../" or "..".
36442
36443 2009-04-26  Bruno Haible  <bruno@clisp.org>
36444
36445         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
36446         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
36447         AC_LIB_HAVE_LINKFLAGS.
36448
36449 2009-04-26  Bruno Haible  <bruno@clisp.org>
36450
36451         Simplify calling convention of u*_conv_from_encoding.
36452         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
36453         u32_conv_from_encoding): Expect a resultbuf argument and return the
36454         result directly as a pointer.
36455         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
36456         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
36457         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
36458         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
36459         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
36460         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36461         Update.
36462         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
36463         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
36464         * lib/vasnprintf.c (VASNPRINTF): Update.
36465         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
36466         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
36467         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
36468         * NEWS: Mention the change.
36469
36470 2009-04-26  Bruno Haible  <bruno@clisp.org>
36471
36472         Simplify calling convention of u*_conv_to_encoding.
36473         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36474         u32_conv_to_encoding): Expect a resultbuf argument and return the
36475         result directly as a pointer.
36476         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36477         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
36478         freeing scaled_offsets if mem_iconveha failed.
36479         * lib/unicase/u-casexfrm.h (FUNC): Update.
36480         * lib/uninorm/u-normxfrm.h (FUNC): Update.
36481         * lib/vasnprintf.c (VASNPRINTF): Update.
36482         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
36483         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
36484         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
36485         * NEWS: Mention the change.
36486
36487 2009-04-26  Bruno Haible  <bruno@clisp.org>
36488
36489         Avoid test failures on AIX and OSF/1.
36490         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
36491         malloc(0).
36492         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36493         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36494         Likewise.
36495         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
36496         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
36497         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
36498         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
36499         * doc/posix-functions/malloc.texi: Document the portability problem
36500         related to malloc(0).
36501
36502 2009-04-26  Bruno Haible  <bruno@clisp.org>
36503
36504         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
36505         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
36506         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
36507
36508 2009-04-25  Bruno Haible  <bruno@clisp.org>
36509
36510         Avoid link error when creating a namespace clean library.
36511         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
36512         as macro with arguments if already defined as an alias.
36513         * lib/signbitf.c (gl_signbitf): Don't undefine.
36514         * lib/signbitd.c (gl_signbitd): Don't undefine.
36515         * lib/signbitl.c (gl_signbitl): Don't undefine.
36516
36517 2009-04-25  Jim Meyering  <meyering@redhat.com>
36518
36519         vc-list-files: fix another quoting bug
36520         * build-aux/vc-list-files: Avoid sed backslash expansion
36521         of pathological directory names.
36522
36523 2009-04-25  Eric Blake  <ebb9@byu.net>
36524
36525         vc-list-files: fix shell quoting error
36526         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
36527         timestamp.
36528
36529 2009-04-25  Jim Meyering  <meyering@redhat.com>
36530
36531         vc-list-files: restore lost functionality with subdir argument
36532         * build-aux/vc-list-files: When given a non-"." sub-directory
36533         argument, substitute the $dir/ prefix back onto each resulting name.
36534         Otherwise, coreutils' root_tests check would fail.
36535
36536 2009-04-24  Eric Blake  <ebb9@byu.net>
36537
36538         vc-list-files: ignore git symlinks
36539         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
36540         than ls-files, to ignore git symlinks.
36541
36542         maint.mk: import improvements from m4
36543         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
36544         (move_if_change): Delete unused macro.
36545         (news-date-check, vc-diff-check): Support VPATH builds.
36546         (announcement): Likewise.  Split --bootstrap-tools list...
36547         (boostrap-tools): ...into separate list, which can be overridden
36548         in cfg.mk.
36549         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
36550         requiring dependency on useless-if-before-free module.
36551         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
36552         Support VPATH builds.
36553
36554 2009-04-24  Jim Meyering  <meyering@redhat.com>
36555
36556         maint.mk: remove coreutils-specific rules and variables
36557         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
36558         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
36559         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
36560
36561         maint.mk: remove obsolete rule
36562         * top/maint.mk (rel-check): Remove rule.
36563         (WGET, WGETFLAGS): Remove now-unused variables.
36564
36565 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36566
36567         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
36568         consistency.
36569
36570         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
36571         '$(PATH_SEPARATOR)' instead of ':'.
36572
36573 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36574
36575         * lib/getopt1.c (main): Use 'const' for static array.
36576
36577 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36578
36579         * top/maint.mk: Sync with coreutils.
36580         * NEWS: Explain incompatibilities.
36581
36582 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36583             Bruno Haible  <bruno@clisp.org>
36584
36585         Fix cross-compilation results.
36586         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
36587         statement, as third argument of AC_TRY_RUN.
36588         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36589         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
36590         Likewise.
36591         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36592         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36593         Likewise.
36594         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36595         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
36596         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
36597
36598 2009-04-20  Bruno Haible  <bruno@clisp.org>
36599
36600         Avoid test failure on mingw.
36601         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
36602
36603 2009-04-20  Bruno Haible  <bruno@clisp.org>
36604
36605         Avoid compilation error on mingw.
36606         * modules/localename-tests (Depends-on): Add locale.
36607
36608 2009-04-19  Bruno Haible  <bruno@clisp.org>
36609
36610         Support for building a shared library on Windows platforms.
36611         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
36612         (main): Test the presence of UNINORM_NFC here.
36613         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
36614         (main): Test the presence of UNINORM_NFD here.
36615         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
36616         (main): Test the presence of UNINORM_NFKC here.
36617         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
36618         (main): Test the presence of UNINORM_NFKD here.
36619
36620 2009-04-19  Bruno Haible  <bruno@clisp.org>
36621
36622         Avoid a compiler warning.
36623         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
36624         Change type of variable 'sequence'.
36625
36626 2009-04-19  Bruno Haible  <bruno@clisp.org>
36627
36628         * modules/configmake (Makefile.am): When the contents of configmake.h
36629         does not change, arrange to preserve its modification time.
36630
36631 2009-04-17  Simon Josefsson  <simon@josefsson.org>
36632
36633         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
36634         gettext domain.
36635
36636 2009-04-16  Jim Meyering  <meyering@redhat.com>
36637
36638         useless-if-before-free: improve conversion code
36639         * build-aux/useless-if-before-free: Adjust code-in-comment to match
36640         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
36641
36642 2009-04-14  Bruno Haible  <bruno@clisp.org>
36643
36644         * modules/fcntl (Depends-on): Add extensions.
36645         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
36646
36647 2009-04-12  Ben Pfaff  <blp@gnu.org>
36648
36649         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
36650         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
36651
36652 2009-03-20  Ben Pfaff  <blp@gnu.org>
36653
36654         Make rename replace existing destinations on Windows.
36655         * m4/rename.m4: Add test for Mingw.
36656         * lib/rename.c: Add rename replacement that uses MoveFileEx with
36657         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
36658         * doc/posix-functions/rename.texi: Document.
36659
36660 2009-04-10  Bruno Haible  <bruno@clisp.org>
36661
36662         New include file "iconveh.h".
36663         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
36664         * lib/striconveh.h: Include it.
36665         (enum iconv_ilseq_handler): Remove definition.
36666         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36667         striconveh.h.
36668         * lib/striconveha.c: Include striconveh.h.
36669         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36670         * modules/striconveh (Files): Add lib/iconveh.h.
36671         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36672         lib/striconveh.h.
36673
36674 2009-04-10  Bruno Haible  <bruno@clisp.org>
36675
36676         * lib/uniconv.h: Update comment.
36677
36678 2009-04-10  Bruno Haible  <bruno@clisp.org>
36679
36680         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36681         always.
36682         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36683         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36684         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36685         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36686         "unistring-notinline.h", so that the function gets defined always.
36687         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36688         * lib/unistr/u8-uctomb.c: Likewise.
36689         * lib/unistr/u16-mbtouc.c: Likewise.
36690         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36691         * lib/unistr/u16-uctomb.c: Likewise.
36692         * lib/unistr/u32-mbtouc.c: Likewise.
36693         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36694         * lib/unistr/u32-uctomb.c: Likewise.
36695
36696 2009-04-10  Bruno Haible  <bruno@clisp.org>
36697
36698         Mark 'utime' obsolete.
36699         * modules/utime (Status, Notice): New sections.
36700         Suggested by Jim Meyering.
36701
36702         Fix cross-compile guess for utime test.
36703         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36704         autoconf.
36705         * doc/posix-functions/utime.texi: Give more precisions.
36706         Reported by Jan <ipif@ymail.com>.
36707
36708 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36709
36710         filevercmp: correct today's change
36711         * lib/filevercmp.c: Also handle coreutils' test inputs.
36712         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36713
36714         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36715         for reporting it.
36716         * lib/filevercmp.c: Special handle for "", "." and "..".
36717         * tests/test-filevercmp.c: Enlarge the set suite.
36718
36719 2009-04-07  Jim Meyering  <meyering@redhat.com>
36720
36721         useless-if-before-free: show how to remove braced useless free, too
36722         * build-aux/useless-if-before-free: still only in a comment, though.
36723
36724 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36725
36726         maint.mk: import changes to syntax-check macros from coreutils
36727         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36728         Use them in the relevant macros.
36729
36730 2009-04-06  Bruno Haible  <bruno@clisp.org>
36731
36732         Fix unportable use of bit-fields.
36733         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36734         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36735         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36736
36737 2009-04-06  Bruno Haible  <bruno@clisp.org>
36738
36739         Avoid test failures on AIX and OSF/1.
36740         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36741         that malloc(0) = NULL.
36742         * tests/unicase/test-u8-tolower.c (check): Likewise.
36743         * tests/unicase/test-u8-totitle.c (check): Likewise.
36744         * tests/unicase/test-u8-toupper.c (check): Likewise.
36745         * tests/unicase/test-u16-casefold.c (check): Likewise.
36746         * tests/unicase/test-u16-tolower.c (check): Likewise.
36747         * tests/unicase/test-u16-totitle.c (check): Likewise.
36748         * tests/unicase/test-u16-toupper.c (check): Likewise.
36749         * tests/unicase/test-u32-casefold.c (check): Likewise.
36750         * tests/unicase/test-u32-tolower.c (check): Likewise.
36751         * tests/unicase/test-u32-totitle.c (check): Likewise.
36752         * tests/unicase/test-u32-toupper.c (check): Likewise.
36753         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36754         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36755         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36756         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36757         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36758         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36759         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36760         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36761         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36762         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36763         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36764         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36765
36766 2009-04-05  Bruno Haible  <bruno@clisp.org>
36767
36768         Work around an autoconf limitation.
36769         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36770         comment line if it would be longer than 3 KB.
36771
36772 2009-04-05  Bruno Haible  <bruno@clisp.org>
36773
36774         Avoid test failure with libiconv-1.13.
36775         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36776         of the expected test results.
36777
36778 2009-04-05  Bruno Haible  <bruno@clisp.org>
36779
36780         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36781         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36782         that it should be installed.
36783
36784 2009-04-05  Bruno Haible  <bruno@clisp.org>
36785
36786         * gnulib-tool: New option --copy-file.
36787         (func_usage): Document it.
36788         (func_dest_tmpfilename): Moved out of func_import.
36789         (func_add_file, func_update_file): New functions, extracted from
36790         func_import.
36791         (func_import): Update.
36792
36793 2009-04-05  Karl Berry  <karl@gnu.org>
36794
36795         * README: prominently mention gnulib-tool.
36796         Rearrange sections so getting the code is near the top.
36797
36798 2009-04-05  Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/unicase.h: Mention u*_cmp2.
36801         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36802         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36803         * lib/unicase/ulc-casecmp.c: Likewise.
36804         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36805         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36806         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36807         unistr/u8-cmp.
36808         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36809         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36810         unistr/u16-cmp.
36811         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36812         unistr/u32-cmp.
36813
36814         * lib/uninorm.h: Mention u*_cmp2.
36815         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36816         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36817         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36818         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36819         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36820         unistr/u8-cmp.
36821         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36822         unistr/u16-cmp.
36823         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36824         unistr/u32-cmp.
36825
36826         New module 'unistr/u32-cmp2'.
36827         * lib/unistr/u32-cmp2.c: New file.
36828         * modules/unistr/u32-cmp2: New file.
36829
36830         New module 'unistr/u16-cmp2'.
36831         * lib/unistr/u16-cmp2.c: New file.
36832         * modules/unistr/u16-cmp2: New file.
36833
36834         New module 'unistr/u8-cmp2'.
36835         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36836         * lib/unistr/u8-cmp2.c: New file.
36837         * lib/unistr/u-cmp2.h: New file.
36838         * modules/unistr/u8-cmp2: New file.
36839
36840 2009-04-05  Bruno Haible  <bruno@clisp.org>
36841
36842         * lib/unictype.h (uc_property_is_valid): New macro.
36843         * tests/unictype/test-pr_byname.c (main): Use it.
36844
36845         * lib/unistr.h: Doc fixes.
36846         * lib/uniconv.h: Doc fixes.
36847         * lib/unictype.h: Doc fixes.
36848
36849 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36850
36851         Port coreutils 7.2 to Solaris 8.
36852
36853         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36854         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36855         for Solaris 8.  This is a bit of a hack, as it means it's the
36856         caller's responsibility to add -lnsl if needed, but most likely it
36857         won't be needed since only getaddrinfo uses this and getaddrinfo
36858         isn't needed on Solaris 8.
36859
36860         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36861         problem to Solaris 8 encountered with coreutils 7.2, which
36862         resulted in a message "fnmatch.c:292: warning: passing argument 4
36863         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36864         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36865
36866 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36867
36868         * m4/ld-version-script.m4: Add FIXME comment.
36869
36870 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36871
36872         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36873         SOVERSION variable.
36874
36875 2009-04-02  Bruno Haible  <bruno@clisp.org>
36876
36877         * Makefile (info, html, dvi, pdf): Combine the rules.
36878         Suggested by Jim Meyering.
36879
36880 2009-04-01  Bruno Haible  <bruno@clisp.org>
36881
36882         * Makefile (info, html, dvi, pdf): New targets.
36883         Reported by Reuben Thomas <rrt@sc3d.org>.
36884
36885 2009-04-01  Bruno Haible  <bruno@clisp.org>
36886
36887         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36888         can be put into PATH.
36889         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36890
36891 2009-04-01  Bruno Haible  <bruno@clisp.org>
36892
36893         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36894
36895 2009-04-01  Bruno Haible  <bruno@clisp.org>
36896
36897         Rename module 'visibility'.
36898         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36899         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36900         * doc/gnulib.texi: Update.
36901         * MODULES.html.sh (Misc): Update.
36902         * NEWS: Mention the change.
36903
36904 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36905
36906         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36907         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36908         Eric Blake <ebb9@byu.net> for review.
36909         * MODULES.html.sh: Add lib-msvc-compat.
36910         * doc/gnulib.texi: Link to new section.
36911         * m4/ld-output-def.m4: New file.
36912         * doc/ld-output-def.texi: New file.
36913
36914 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36915
36916         Rename ld-version-script to lib-symbol-versions.  Suggested by
36917         Bruno Haible <bruno@clisp.org>.
36918         * modules/ld-version-script: Renamed to lib-symbol-versions.
36919         * doc/ld-version-script.texi: Fix module name.
36920         * MODULES.html.sh: Add lib-symbol-versions.
36921
36922 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36923
36924         * modules/u64-tests: New file.
36925         * tests/test-u64.c: New file.
36926
36927 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36928
36929         * MODULES.html.sh: Mention u64.
36930         * modules/u64: New module.
36931         * modules/crypto/sha512: Depend on u64 module instead of providing
36932         u64.h.
36933
36934 2009-03-27  Eric Blake  <ebb9@byu.net>
36935
36936         test-strerror: make debugging EAI_SYSTEM easier
36937         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36938         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36939         failure was EAI_SYSTEM.
36940
36941 2009-03-25  Bruno Haible  <bruno@clisp.org>
36942
36943         Fix a problem with --enable-relocatable on Solaris 7.
36944         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36945         since 2008-02-24.
36946
36947 2009-03-25  Eric Blake  <ebb9@byu.net>
36948
36949         test-sockets: avoid gcc warning
36950         * tests/test-sockets.c (main): Silence compiler warning.
36951
36952 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36953
36954         New modules nproc, pthread, contributed by Glen Lenker.
36955
36956         * MODULES.html.sh: Add pthread, nproc.
36957         * lib/nproc.c: New file.
36958         * lib/nproc.h: New file.
36959         * lib/pthread.in.h: New file.
36960         * m4/pthread.m4: New file.
36961         * modules/nproc: New file.
36962         * modules/pthread: New file.
36963
36964 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36965
36966         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36967         New variable.
36968
36969 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36970
36971         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36972         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36973         * tests/test-filevercmp.c: Add tests for backup suffixes.
36974
36975 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36976
36977         * modules/stdlib (Depends-on): Add stdint, needed when defining
36978         struct random_data on, for example, HP-UX 10.20.  Reported by
36979         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36980
36981 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36982
36983         * lib/readline.c (readline): Call fflush on stdout after printing
36984         prompt.
36985
36986 2009-03-20  Bruno Haible  <bruno@clisp.org>
36987
36988         Remove dependency from 'close' module to -lws2_32 on native Windows.
36989         * lib/close-hook.h: New file.
36990         * lib/close-hook.c: New file.
36991         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36992         w32sock.h.
36993         (_gl_close_fd_maybe_socket): Remove function.
36994         (rpl_close): Invoke execute_all_close_hooks instead of
36995         _gl_close_fd_maybe_socket.
36996         * lib/sockets.c: Include close-hook.h, w32sock.h.
36997         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36998         (close_sockets_hook): New variable.
36999         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
37000         (gl_sockets_cleanup): Unregister it.
37001         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
37002         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
37003         * modules/close-hook: New file.
37004         * modules/close (Files): Remove lib/w32sock.h.
37005         (Depends-on): Add close-hook.
37006         (Link): Remove section.
37007         * modules/sockets (Files): Add lib/w32sock.h.
37008         (Depends-on): Add close-hook.
37009         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
37010         invocation.
37011         * NEWS: Mention that LIB_CLOSE is gone.
37012
37013 2009-03-23  Eric Blake  <ebb9@byu.net>
37014
37015         signal-tests: test previous patch
37016         * tests/test-signal.c: New file.
37017         * modules/signal-tests: Likewise.
37018
37019         signal.h: always support 'volatile sig_atomic_t'
37020         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
37021         (gl_SIGNAL_H_DEFAULTS): Add a default.
37022         * modules/signal (Makefile.am): Substitute if needed.
37023         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
37024         users can blindly add volatile.
37025         * doc/posix-headers/signal.texi (signal.h): Document it.
37026         Reported by Matthew Woehlke.
37027
37028 2009-03-23  Jim Meyering  <meyering@redhat.com>
37029
37030         pathmax: PATH_MAX: use pathconf only when available
37031         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
37032         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
37033         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
37034         This avoids a link failure in a PSP cross-compilation environment
37035         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
37036
37037         * lib/vasnprintf.c (divide): Fix typo in comment.
37038
37039 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37040
37041         * gnulib-tool (func_filter_filelist): Fix comment.
37042
37043 2009-03-20  Bruno Haible  <bruno@clisp.org>
37044
37045         Make sockets.h self-contained.
37046         * lib/sockets.c: Include sockets.h first.
37047         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
37048
37049 2009-03-19  Eric Blake  <ebb9@byu.net>
37050
37051         doc: mention more functions added in cygwin 1.7.0
37052         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
37053         addition.
37054         * doc/posix-functions/log2f.texi: Likewise.
37055
37056 2009-03-19  Jim Meyering  <meyering@redhat.com>
37057
37058         fsusage: avoid syntax error due to statement-before-declaration
37059         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
37060         after all declarations.  Reported by Matthew Woehlke in
37061         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
37062
37063 2009-03-18  Eric Blake  <ebb9@byu.net>
37064
37065         build-aux/compile: sync from automake
37066         * build-aux/compile: New file, from automake.
37067         * config/srclist.txt: Mention build-aux/compile.
37068
37069 2009-03-17  Bruno Haible  <bruno@clisp.org>
37070
37071         * lib/git-merge-changelog.c: Fix typo in comment.
37072         Reported by Reuben Thomas <rrt@sc3d.org>.
37073
37074 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
37075
37076         * m4/regex.m4: update and improve help for
37077         --without-included-regex.
37078
37079 2009-03-17  Simon Josefsson  <simon@josefsson.org>
37080
37081         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
37082         failure on missing include files.
37083
37084 2009-03-17  Eric Blake  <ebb9@byu.net>
37085
37086         doc: mention more functions added in cygwin 1.7.0
37087         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
37088         addition.
37089         * doc/posix-functions/fwscanf.texi: Likewise.
37090         * doc/posix-functions/swprintf.texi: Likewise.
37091         * doc/posix-functions/swscanf.texi: Likewise.
37092         * doc/posix-functions/vfwprintf.texi: Likewise.
37093         * doc/posix-functions/vfwscanf.texi: Likewise.
37094         * doc/posix-functions/vswprintf.texi: Likewise.
37095         * doc/posix-functions/vswscanf.texi: Likewise.
37096         * doc/posix-functions/vwprintf.texi: Likewise.
37097         * doc/posix-functions/vwscanf.texi: Likewise.
37098         * doc/posix-functions/wcscasecmp.texi: Likewise.
37099         * doc/posix-functions/wcsdup.texi: Likewise.
37100         * doc/posix-functions/wcsftime.texi: Likewise.
37101         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37102         * doc/posix-functions/wprintf.texi: Likewise.
37103         * doc/posix-functions/wscanf.texi: Likewise.
37104         * doc/glibc-functions/gethostbyname2.texi: Likewise.
37105
37106 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37107
37108         maint.mk: really add $(AM_MAKEFLAGS)
37109         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
37110         was inadvertently omitted in the last commit.
37111         Spotted by Bruno Haible.
37112
37113         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
37114         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
37115         $(AM_MAKEFLAGS)' rather than plain `make'.
37116
37117         gnulib-tool: execute $MAKE not make
37118         * gnulib-tool: Default $MAKE to 'make'.
37119         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
37120         than make.  Initialize $MAKE in the do-autobuild script.
37121
37122         gnulib-tool: use $MAKE not make in generated files
37123         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
37124         make, in generated files.  Initialize $MAKE in the do-autobuild
37125         script.
37126
37127         * top/GNUmakefile (_have-git-version-gen): Fix typo.
37128
37129         GNUmakefile: disable parallelism only for multiple, recursive targets
37130         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
37131         additions in the Makefile.
37132         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
37133         by Automake.
37134         (.NOTPARALLEL): Only disable parallel builds if multiple targets
37135         are listed on the command line and at least one of them is
37136         listed in $(ALL_RECURSIVE_TARGETS).
37137
37138 2009-03-14  Bruno Haible  <bruno@clisp.org>
37139
37140         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
37141         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
37142         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
37143         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
37144         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
37145         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
37146         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
37147         unistr/u8-uctomb.
37148         * modules/unistr/u8-strchr (Depends-on): Likewise.
37149         * modules/unistr/u8-strrchr (Depends-on): Likewise.
37150         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
37151         unistr/u16-uctomb.
37152         * modules/unistr/u16-strchr (Depends-on): Likewise.
37153         * modules/unistr/u16-strrchr (Depends-on): Likewise.
37154
37155 2009-03-12  Bruno Haible  <bruno@clisp.org>
37156
37157         Work around select() bug on Interix 3.5.
37158         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
37159         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
37160         * m4/select.m4: New file.
37161         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
37162         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
37163         * modules/select (Files): Add m4/select.m4.
37164         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
37165         * modules/nanosleep (Depends-on): Add select.
37166         * modules/poll (Depends-on): Likewise.
37167         * doc/posix-functions/select.texi: Mention the Interix bug.
37168         Reported by Markus Duft <mduft@gentoo.org>.
37169
37170         * lib/select.c: Renamed from lib/winsock-select.c.
37171         * modules/select (Files): Add lib/select.c, remove
37172         lib/winsock-select.c.
37173         (configure.ac): Update.
37174
37175 2009-03-12  Jim Meyering  <meyering@redhat.com>
37176
37177         avoid gcc warnings about unused macro definitions
37178         * lib/readtokens.c (STREQ): Remove unused definition.
37179         * lib/xmalloc.c (SIZE_MAX): Likewise.
37180         * lib/openat-die.c (N_): Likewise.
37181         * lib/mountlist.c (SIZE_MAX): Remove definition.
37182         Instead, include <stdint.h>.
37183         * lib/readutmp.c: Likewise.
37184         * modules/readutmp (Depends-on): Add stdint.
37185         * modules/mountlist (Depends-on): Add stdint.
37186         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
37187
37188 2009-03-10  Bruno Haible  <bruno@clisp.org>
37189
37190         Tests for module 'mbmemcasecoll'.
37191         * modules/mbmemcasecoll-tests: New file.
37192         * tests/test-mbmemcasecoll1.sh: New file.
37193         * tests/test-mbmemcasecoll2.sh: New file.
37194         * tests/test-mbmemcasecoll3.sh: New file.
37195         * tests/test-mbmemcasecoll.c: New file.
37196
37197         New module 'mbmemcasecoll'.
37198         * lib/mbmemcasecoll.h: New file.
37199         * lib/mbmemcasecoll.c: New file.
37200         * modules/mbmemcasecoll: New file.
37201
37202         * tests/test-mbmemcasecmp.h: New file, extracted from
37203         tests/test-mbmemcasecmp.c.
37204         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
37205         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
37206         (main): Update.
37207         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
37208
37209 2009-03-09  Bruno Haible  <bruno@clisp.org>
37210
37211         Tests for module 'mbmemcasecmp'.
37212         * modules/mbmemcasecmp-tests: New file.
37213         * tests/test-mbmemcasecmp1.sh: New file.
37214         * tests/test-mbmemcasecmp2.sh: New file.
37215         * tests/test-mbmemcasecmp3.sh: New file.
37216         * tests/test-mbmemcasecmp.c: New file.
37217
37218         New module 'mbmemcasecmp'.
37219         * lib/mbmemcasecmp.h: New file.
37220         * lib/mbmemcasecmp.c: New file.
37221         * modules/mbmemcasecmp: New file.
37222
37223 2009-03-09  Bruno Haible  <bruno@clisp.org>
37224
37225         Tests for module 'unicase/ulc-casecoll'.
37226         * modules/unicase/ulc-casecoll-tests: New file.
37227         * tests/unicase/test-ulc-casecoll1.sh: New file.
37228         * tests/unicase/test-ulc-casecoll2.sh: New file.
37229         * tests/unicase/test-ulc-casecoll.c: New file.
37230
37231         New module 'unicase/ulc-casecoll'.
37232         * lib/unicase.h (ulc_casecoll): New declaration.
37233         * lib/unicase/ulc-casecoll.c: New file.
37234         * modules/unicase/ulc-casecoll: New file.
37235
37236         New module 'unicase/ulc-casexfrm'.
37237         * lib/unicase.h (ulc_casexfrm): New declaration.
37238         * lib/unicase/ulc-casexfrm.c: New file.
37239         * modules/unicase/ulc-casexfrm: New file.
37240
37241 2009-03-09  Bruno Haible  <bruno@clisp.org>
37242
37243         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
37244         invocations.
37245
37246         * m4/mbscasecmp.m4: Remove file.
37247         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
37248         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
37249
37250         * m4/mbscasestr.m4: Remove file.
37251         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
37252         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
37253
37254         * m4/mbschr.m4: Remove file.
37255         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
37256         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
37257
37258         * m4/mbscspn.m4: Remove file.
37259         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
37260         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
37261
37262         * m4/mbslen.m4: Remove file.
37263         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
37264         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
37265
37266         * m4/mbsncasecmp.m4: Remove file.
37267         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
37268         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
37269
37270         * m4/mbsnlen.m4: Remove file.
37271         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
37272         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
37273
37274         * m4/mbspbrk.m4: Remove file.
37275         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
37276         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
37277
37278         * m4/mbspcasecmp.m4: Remove file.
37279         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
37280         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
37281
37282         * m4/mbsrchr.m4: Remove file.
37283         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
37284         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
37285
37286         * m4/mbssep.m4: Remove file.
37287         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
37288         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
37289
37290         * m4/mbsspn.m4: Remove file.
37291         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
37292         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
37293
37294         * m4/mbsstr.m4: Remove file.
37295         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
37296         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
37297
37298         * m4/mbstok_r.m4: Remove file.
37299         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
37300         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
37301
37302         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
37303
37304         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
37305         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
37306
37307         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
37308
37309 2009-03-08  Bruno Haible  <bruno@clisp.org>
37310
37311         Tests for module 'unicase/ulc-casecmp'.
37312         * modules/unicase/ulc-casecmp-tests: New file.
37313         * tests/unicase/test-ulc-casecmp1.sh: New file.
37314         * tests/unicase/test-ulc-casecmp2.sh: New file.
37315         * tests/unicase/test-ulc-casecmp.c: New file.
37316
37317         New module 'unicase/ulc-casecmp'.
37318         * lib/unicase.h (ulc_casecmp): New declaration.
37319         * lib/unicase/ulc-casecmp.c: New file.
37320         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
37321         'const SRC_UNIT *'.
37322         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
37323         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
37324         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
37325         * modules/unicase/ulc-casecmp: New file.
37326
37327         Tests for module 'unicase/u32-is-cased'.
37328         * modules/unicase/u32-is-cased-tests: New file.
37329         * tests/unicase/test-u32-is-cased.c: New file.
37330
37331         Tests for module 'unicase/u16-is-cased'.
37332         * modules/unicase/u16-is-cased-tests: New file.
37333         * tests/unicase/test-u16-is-cased.c: New file.
37334
37335         Tests for module 'unicase/u8-is-cased'.
37336         * modules/unicase/u8-is-cased-tests: New file.
37337         * tests/unicase/test-u8-is-cased.c: New file.
37338         * tests/unicase/test-is-cased.h: New file.
37339
37340         New module 'unicase/u32-is-cased'.
37341         * lib/unicase/u32-is-cased.c: New file.
37342         * modules/unicase/u32-is-cased: New file.
37343
37344         New module 'unicase/u16-is-cased'.
37345         * lib/unicase/u16-is-cased.c: New file.
37346         * modules/unicase/u16-is-cased: New file.
37347
37348         New module 'unicase/u8-is-cased'.
37349         * lib/unicase/u8-is-cased.c: New file.
37350         * lib/unicase/u-is-cased.h: New file.
37351         * modules/unicase/u8-is-cased: New file.
37352
37353         Tests for module 'unicase/u32-is-casefolded'.
37354         * modules/unicase/u32-is-casefolded-tests: New file.
37355         * tests/unicase/test-u32-is-casefolded.c: New file.
37356
37357         Tests for module 'unicase/u16-is-casefolded'.
37358         * modules/unicase/u16-is-casefolded-tests: New file.
37359         * tests/unicase/test-u16-is-casefolded.c: New file.
37360
37361         Tests for module 'unicase/u8-is-casefolded'.
37362         * modules/unicase/u8-is-casefolded-tests: New file.
37363         * tests/unicase/test-u8-is-casefolded.c: New file.
37364         * tests/unicase/test-is-casefolded.h: New file.
37365
37366         New module 'unicase/u32-is-casefolded'.
37367         * lib/unicase/u32-is-casefolded.c: New file.
37368         * modules/unicase/u32-is-casefolded: New file.
37369
37370         New module 'unicase/u16-is-casefolded'.
37371         * lib/unicase/u16-is-casefolded.c: New file.
37372         * modules/unicase/u16-is-casefolded: New file.
37373
37374         New module 'unicase/u8-is-casefolded'.
37375         * lib/unicase/u8-is-casefolded.c: New file.
37376         * modules/unicase/u8-is-casefolded: New file.
37377
37378         Tests for module 'unicase/u32-is-titlecase'.
37379         * modules/unicase/u32-is-titlecase-tests: New file.
37380         * tests/unicase/test-u32-is-titlecase.c: New file.
37381
37382         Tests for module 'unicase/u16-is-titlecase'.
37383         * modules/unicase/u16-is-titlecase-tests: New file.
37384         * tests/unicase/test-u16-is-titlecase.c: New file.
37385
37386         Tests for module 'unicase/u8-is-titlecase'.
37387         * modules/unicase/u8-is-titlecase-tests: New file.
37388         * tests/unicase/test-u8-is-titlecase.c: New file.
37389         * tests/unicase/test-is-titlecase.h: New file.
37390
37391         New module 'unicase/u32-is-titlecase'.
37392         * lib/unicase/u32-is-titlecase.c: New file.
37393         * modules/unicase/u32-is-titlecase: New file.
37394
37395         New module 'unicase/u16-is-titlecase'.
37396         * lib/unicase/u16-is-titlecase.c: New file.
37397         * modules/unicase/u16-is-titlecase: New file.
37398
37399         New module 'unicase/u8-is-titlecase'.
37400         * lib/unicase/u8-is-titlecase.c: New file.
37401         * modules/unicase/u8-is-titlecase: New file.
37402
37403         Tests for module 'unicase/u32-is-lowercase'.
37404         * modules/unicase/u32-is-lowercase-tests: New file.
37405         * tests/unicase/test-u32-is-lowercase.c: New file.
37406
37407         Tests for module 'unicase/u16-is-lowercase'.
37408         * modules/unicase/u16-is-lowercase-tests: New file.
37409         * tests/unicase/test-u16-is-lowercase.c: New file.
37410
37411         Tests for module 'unicase/u8-is-lowercase'.
37412         * modules/unicase/u8-is-lowercase-tests: New file.
37413         * tests/unicase/test-u8-is-lowercase.c: New file.
37414         * tests/unicase/test-is-lowercase.h: New file.
37415
37416         New module 'unicase/u32-is-lowercase'.
37417         * lib/unicase/u32-is-lowercase.c: New file.
37418         * modules/unicase/u32-is-lowercase: New file.
37419
37420         New module 'unicase/u16-is-lowercase'.
37421         * lib/unicase/u16-is-lowercase.c: New file.
37422         * modules/unicase/u16-is-lowercase: New file.
37423
37424         New module 'unicase/u8-is-lowercase'.
37425         * lib/unicase/u8-is-lowercase.c: New file.
37426         * modules/unicase/u8-is-lowercase: New file.
37427
37428         Tests for module 'unicase/u32-is-uppercase'.
37429         * modules/unicase/u32-is-uppercase-tests: New file.
37430         * tests/unicase/test-u32-is-uppercase.c: New file.
37431
37432         Tests for module 'unicase/u16-is-uppercase'.
37433         * modules/unicase/u16-is-uppercase-tests: New file.
37434         * tests/unicase/test-u16-is-uppercase.c: New file.
37435
37436         Tests for module 'unicase/u8-is-uppercase'.
37437         * modules/unicase/u8-is-uppercase-tests: New file.
37438         * tests/unicase/test-u8-is-uppercase.c: New file.
37439         * tests/unicase/test-is-uppercase.h: New file.
37440
37441         New module 'unicase/u32-is-uppercase'.
37442         * lib/unicase/u32-is-uppercase.c: New file.
37443         * modules/unicase/u32-is-uppercase: New file.
37444
37445         New module 'unicase/u16-is-uppercase'.
37446         * lib/unicase/u16-is-uppercase.c: New file.
37447         * modules/unicase/u16-is-uppercase: New file.
37448
37449         New module 'unicase/u8-is-uppercase'.
37450         * lib/unicase/u8-is-uppercase.c: New file.
37451         * modules/unicase/u8-is-uppercase: New file.
37452
37453         New module 'unicase/u32-is-invariant'.
37454         * lib/unicase/u32-is-invariant.c: New file.
37455         * modules/unicase/u32-is-invariant: New file.
37456
37457         New module 'unicase/u16-is-invariant'.
37458         * lib/unicase/u16-is-invariant.c: New file.
37459         * modules/unicase/u16-is-invariant: New file.
37460
37461         New module 'unicase/u8-is-invariant'.
37462         * lib/unicase/u8-is-invariant.c: New file.
37463         * lib/unicase/invariant.h: New file.
37464         * lib/unicase/u-is-invariant.h: New file.
37465         * modules/unicase/u8-is-invariant: New file.
37466
37467         Tests for module 'unicase/u32-casecoll'.
37468         * modules/unicase/u32-casecoll-tests: New file.
37469         * tests/unicase/test-u32-casecoll.c: New file.
37470
37471         Tests for module 'unicase/u16-casecoll'.
37472         * modules/unicase/u16-casecoll-tests: New file.
37473         * tests/unicase/test-u16-casecoll.c: New file.
37474
37475         Tests for module 'unicase/u8-casecoll'.
37476         * modules/unicase/u8-casecoll-tests: New file.
37477         * tests/unicase/test-u8-casecoll.c: New file.
37478
37479         New module 'unicase/u32-casecoll'.
37480         * lib/unicase/u32-casecoll.c: New file.
37481         * modules/unicase/u32-casecoll: New file.
37482
37483         New module 'unicase/u16-casecoll'.
37484         * lib/unicase/u16-casecoll.c: New file.
37485         * modules/unicase/u16-casecoll: New file.
37486
37487         New module 'unicase/u8-casecoll'.
37488         * lib/unicase/u8-casecoll.c: New file.
37489         * lib/unicase/u-casecoll.h: New file.
37490         * modules/unicase/u8-casecoll: New file.
37491
37492         New module 'unicase/u32-casexfrm'.
37493         * lib/unicase/u32-casexfrm.c: New file.
37494         * modules/unicase/u32-casexfrm: New file.
37495
37496         New module 'unicase/u16-casexfrm'.
37497         * lib/unicase/u16-casexfrm.c: New file.
37498         * modules/unicase/u16-casexfrm: New file.
37499
37500         New module 'unicase/u8-casexfrm'.
37501         * lib/unicase/u8-casexfrm.c: New file.
37502         * lib/unicase/u-casexfrm.h: New file.
37503         * modules/unicase/u8-casexfrm: New file.
37504
37505         Tests for module 'unicase/u32-casecmp'.
37506         * modules/unicase/u32-casecmp-tests: New file.
37507         * tests/unicase/test-u32-casecmp.c: New file.
37508
37509         Tests for module 'unicase/u16-casecmp'.
37510         * modules/unicase/u16-casecmp-tests: New file.
37511         * tests/unicase/test-u16-casecmp.c: New file.
37512
37513         Tests for module 'unicase/u8-casecmp'.
37514         * modules/unicase/u8-casecmp-tests: New file.
37515         * tests/unicase/test-u8-casecmp.c: New file.
37516         * tests/unicase/test-casecmp.h: New file.
37517
37518         New module 'unicase/u32-casecmp'.
37519         * lib/unicase/u32-casecmp.c: New file.
37520         * modules/unicase/u32-casecmp: New file.
37521
37522         New module 'unicase/u16-casecmp'.
37523         * lib/unicase/u16-casecmp.c: New file.
37524         * modules/unicase/u16-casecmp: New file.
37525
37526         New module 'unicase/u8-casecmp'.
37527         * lib/unicase/u8-casecmp.c: New file.
37528         * lib/unicase/u-casecmp.h: New file.
37529         * modules/unicase/u8-casecmp: New file.
37530
37531         Tests for module 'unicase/u32-casefold'.
37532         * modules/unicase/u32-casefold-tests: New file.
37533         * tests/unicase/test-u32-casefold.c: New file.
37534
37535         Tests for module 'unicase/u16-casefold'.
37536         * modules/unicase/u16-casefold-tests: New file.
37537         * tests/unicase/test-u16-casefold.c: New file.
37538
37539         Tests for module 'unicase/u8-casefold'.
37540         * modules/unicase/u8-casefold-tests: New file.
37541         * tests/unicase/test-u8-casefold.c: New file.
37542
37543         New module 'unicase/u32-casefold'.
37544         * lib/unicase/u32-casefold.c: New file.
37545         * modules/unicase/u32-casefold: New file.
37546
37547         New module 'unicase/u16-casefold'.
37548         * lib/unicase/u16-casefold.c: New file.
37549         * modules/unicase/u16-casefold: New file.
37550
37551         New module 'unicase/u8-casefold'.
37552         * lib/unicase/u8-casefold.c: New file.
37553         * lib/unicase/u-casefold.h: New file.
37554         * modules/unicase/u8-casefold: New file.
37555
37556         New module 'unicase/tocasefold'.
37557         * lib/unicase/casefold.h: New file.
37558         * lib/unicase/tocasefold.c: New file.
37559         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
37560         * modules/unicase/tocasefold: New file.
37561
37562         Tests for module 'unicase/u32-totitle'.
37563         * modules/unicase/u32-totitle-tests: New file.
37564         * tests/unicase/test-u32-totitle.c: New file.
37565
37566         Tests for module 'unicase/u16-totitle'.
37567         * modules/unicase/u16-totitle-tests: New file.
37568         * tests/unicase/test-u16-totitle.c: New file.
37569
37570         Tests for module 'unicase/u8-totitle'.
37571         * modules/unicase/u8-totitle-tests: New file.
37572         * tests/unicase/test-u8-totitle.c: New file.
37573
37574         New module 'unicase/u32-totitle'.
37575         * lib/unicase/u32-totitle.c: New file.
37576         * modules/unicase/u32-totitle: New file.
37577
37578         New module 'unicase/u16-totitle'.
37579         * lib/unicase/u16-totitle.c: New file.
37580         * modules/unicase/u16-totitle: New file.
37581
37582         New module 'unicase/u8-totitle'.
37583         * lib/unicase/u8-totitle.c: New file.
37584         * lib/unicase/u-totitle.h: New file.
37585         * modules/unicase/u8-totitle: New file.
37586
37587         Tests for module 'unicase/u32-tolower'.
37588         * modules/unicase/u32-tolower-tests: New file.
37589         * tests/unicase/test-u32-tolower.c: New file.
37590
37591         Tests for module 'unicase/u16-tolower'.
37592         * modules/unicase/u16-tolower-tests: New file.
37593         * tests/unicase/test-u16-tolower.c: New file.
37594
37595         Tests for module 'unicase/u8-tolower'.
37596         * modules/unicase/u8-tolower-tests: New file.
37597         * tests/unicase/test-u8-tolower.c: New file.
37598
37599         New module 'unicase/u32-tolower'.
37600         * lib/unicase/u32-tolower.c: New file.
37601         * modules/unicase/u32-tolower: New file.
37602
37603         New module 'unicase/u16-tolower'.
37604         * lib/unicase/u16-tolower.c: New file.
37605         * modules/unicase/u16-tolower: New file.
37606
37607         New module 'unicase/u8-tolower'.
37608         * lib/unicase/u8-tolower.c: New file.
37609         * modules/unicase/u8-tolower: New file.
37610
37611         Tests for module 'unicase/u32-toupper'.
37612         * modules/unicase/u32-toupper-tests: New file.
37613         * tests/unicase/test-u32-toupper.c: New file.
37614
37615         Tests for module 'unicase/u16-toupper'.
37616         * modules/unicase/u16-toupper-tests: New file.
37617         * tests/unicase/test-u16-toupper.c: New file.
37618
37619         Tests for module 'unicase/u8-toupper'.
37620         * modules/unicase/u8-toupper-tests: New file.
37621         * tests/unicase/test-u8-toupper.c: New file.
37622
37623         New module 'unicase/u32-toupper'.
37624         * lib/unicase/u32-toupper.c: New file.
37625         * modules/unicase/u32-toupper: New file.
37626
37627         New module 'unicase/u16-toupper'.
37628         * lib/unicase/u16-toupper.c: New file.
37629         * modules/unicase/u16-toupper: New file.
37630
37631         New module 'unicase/u8-toupper'.
37632         * lib/unicase/u8-toupper.c: New file.
37633         * modules/unicase/u8-toupper: New file.
37634
37635         New module 'unicase/u32-casemap'.
37636         * lib/unicase/u32-casemap.c: New file.
37637         * modules/unicase/u32-casemap: New file.
37638
37639         New module 'unicase/u16-casemap'.
37640         * lib/unicase/u16-casemap.c: New file.
37641         * modules/unicase/u16-casemap: New file.
37642
37643         New module 'unicase/u8-casemap'.
37644         * lib/unicase/unicasemap.h: New file.
37645         * lib/unicase/u8-casemap.c: New file.
37646         * lib/unicase/u-casemap.h: New file.
37647         * modules/unicase/u8-casemap: New file.
37648
37649         New module 'unicase/special-casing'.
37650         * lib/unicase/special-casing.h: New file.
37651         * lib/unicase/special-casing.c: New file.
37652         * lib/unicase/special-casing-table.gperf: New file, generated by
37653         gen-uni-tables.c.
37654         * modules/unicase/special-casing: New file.
37655
37656         Tests for module 'unicase/locale-language'.
37657         * modules/unicase/locale-language-tests: New file.
37658         * tests/unicase/test-locale-language.sh: New file.
37659         * tests/unicase/test-locale-language.c: New file.
37660
37661         New module 'unicase/locale-language'.
37662         * lib/unicase/locale-language.c: New file.
37663         * lib/unicase/locale-languages.gperf: New file.
37664         * modules/unicase/locale-language: New file.
37665
37666         Generate more tables for case conversion and case folding.
37667         * lib/gen-uni-tables.c (SCC_*): New enum items.
37668         (struct special_casing_rule): New type.
37669         (casing_rules, num_casing_rules, allocated_casing_rules): New
37670         variables.
37671         (add_casing_rule, fill_casing_rules): New functions.
37672         (struct casefold_rule): New type.
37673         (casefolding_rules, num_casefolding_rules,
37674         allocated_casefolding_rules): New variables.
37675         (fill_casefolding_rules): New function.
37676         (unicode_casefold): New variable.
37677         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37678         sort_casing_rules, output_casing_rules): New functions.
37679         (main): Accept to more arguments: SpecialCasing.txt and
37680         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37681         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37682         Output mapping for casefolding.
37683
37684         * lib/unicase.h: Include stdbool.h, uninorm.h.
37685         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37686         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37687         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37688         arguments.
37689         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37690         resultp arguments.
37691         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37692         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37693         resultp arguments.
37694         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37695         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37696         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37697         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37698         declarations.
37699         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37700
37701 2009-03-08  Bruno Haible  <bruno@clisp.org>
37702
37703         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37704         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37705         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37706         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37707
37708 2009-03-07  Bruno Haible  <bruno@clisp.org>
37709
37710         Adjust u*_normcmp, u*_normcoll API.
37711         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37712         u16_normcoll, u32_normcoll): Change failure conventions.
37713         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37714         errno and return -1.
37715         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37716
37717 2009-03-07  Bruno Haible  <bruno@clisp.org>
37718
37719         Tests for module 'uninorm/u32-normcoll'.
37720         * modules/uninorm/u32-normcoll-tests: New file.
37721         * tests/uninorm/test-u32-normcoll.c: New file.
37722
37723         Tests for module 'uninorm/u16-normcoll'.
37724         * modules/uninorm/u16-normcoll-tests: New file.
37725         * tests/uninorm/test-u16-normcoll.c: New file.
37726
37727         Tests for module 'uninorm/u8-normcoll'.
37728         * modules/uninorm/u8-normcoll-tests: New file.
37729         * tests/uninorm/test-u8-normcoll.c: New file.
37730
37731 2009-03-07  Bruno Haible  <bruno@clisp.org>
37732
37733         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37734         tests/uninorm/test-u32-normcmp.c.
37735         * tests/uninorm/test-u32-normcmp.c: Include it.
37736         (test_nonascii): New function, extracted from main. Add some more
37737         tests.
37738         (main): Invoke test_ascii and test_nonascii.
37739         * modules/uninorm/u32-normcmp-tests (Files): Add
37740         tests/uninorm/test-u32-normcmp.h.
37741         (Depends-on): Remove uninorm/u32-normcmp.
37742
37743         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37744         tests/uninorm/test-u16-normcmp.c.
37745         * tests/uninorm/test-u16-normcmp.c: Include it.
37746         (test_nonascii): New function, extracted from main. Add some more
37747         tests.
37748         (main): Invoke test_ascii and test_nonascii.
37749         * modules/uninorm/u16-normcmp-tests (Files): Add
37750         tests/uninorm/test-u16-normcmp.h.
37751         (Depends-on): Remove uninorm/u16-normcmp.
37752
37753         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37754         tests/uninorm/test-u8-normcmp.c.
37755         * tests/uninorm/test-u8-normcmp.c: Include it.
37756         (test_nonascii): New function, extracted from main. Add some more
37757         tests.
37758         (main): Invoke test_ascii and test_nonascii.
37759         * modules/uninorm/u8-normcmp-tests (Files): Add
37760         tests/uninorm/test-u8-normcmp.h.
37761         (Depends-on): Remove uninorm/u8-normcmp.
37762
37763 2009-03-07  Bruno Haible  <bruno@clisp.org>
37764
37765         New module 'uninorm/u32-normcoll'.
37766         * lib/uninorm/u32-normcoll.c: New file.
37767         * modules/uninorm/u32-normcoll: New file.
37768
37769         New module 'uninorm/u16-normcoll'.
37770         * lib/uninorm/u16-normcoll.c: New file.
37771         * modules/uninorm/u16-normcoll: New file.
37772
37773         New module 'uninorm/u8-normcoll'.
37774         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37775         declarations.
37776         * lib/uninorm/u8-normcoll.c: New file.
37777         * lib/uninorm/u-normcoll.h: New file.
37778         * modules/uninorm/u8-normcoll: New file.
37779
37780         New module 'uninorm/u32-normxfrm'.
37781         * lib/uninorm/u32-normxfrm.c: New file.
37782         * modules/uninorm/u32-normxfrm: New file.
37783
37784         New module 'uninorm/u16-normxfrm'.
37785         * lib/uninorm/u16-normxfrm.c: New file.
37786         * modules/uninorm/u16-normxfrm: New file.
37787
37788         New module 'uninorm/u8-normxfrm'.
37789         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37790         declarations.
37791         * lib/uninorm/u8-normxfrm.c: New file.
37792         * lib/uninorm/u-normxfrm.h: New file.
37793         * modules/uninorm/u8-normxfrm: New file.
37794
37795 2009-03-07  Bruno Haible  <bruno@clisp.org>
37796
37797         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37798         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37799         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37800
37801 2009-03-07  Bruno Haible  <bruno@clisp.org>
37802
37803         New module 'memxfrm'.
37804         * lib/memxfrm.h: New file.
37805         * lib/memxfrm.c: New file.
37806         * modules/memxfrm: New file.
37807
37808 2009-03-07  Bruno Haible  <bruno@clisp.org>
37809
37810         New module 'memcmp2'.
37811         * lib/memcmp2.h: New file.
37812         * lib/memcmp2.c: New file.
37813         * modules/memcmp2: New file.
37814
37815 2009-03-07  Bruno Haible  <bruno@clisp.org>
37816
37817         Tests for module 'uninorm/decomposing-form'.
37818         * modules/uninorm/decomposing-form-tests: New file.
37819         * tests/uninorm/test-decomposing-form.c: New file.
37820
37821         New module 'uninorm/decomposing-form'.
37822         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37823         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37824         Add 'decomposing_variant' field.
37825         * lib/uninorm/decomposing-form.c: New file.
37826         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37827         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37828         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37829         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37830         * modules/uninorm/decomposing-form: New file.
37831         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37832         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37833
37834 2009-03-07  Bruno Haible  <bruno@clisp.org>
37835
37836         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37837         strings.
37838
37839 2009-03-06  Bruno Haible  <bruno@clisp.org>
37840
37841         Tests for module 'uninorm/u32-normcmp'.
37842         * tests/uninorm/test-u32-normcmp.c: New file.
37843         * modules/uninorm/u32-normcmp-tests: New file.
37844
37845         Tests for module 'uninorm/u16-normcmp'.
37846         * tests/uninorm/test-u16-normcmp.c: New file.
37847         * modules/uninorm/u16-normcmp-tests: New file.
37848
37849         Tests for module 'uninorm/u8-normcmp'.
37850         * tests/uninorm/test-u8-normcmp.c: New file.
37851         * modules/uninorm/u8-normcmp-tests: New file.
37852
37853         New module 'uninorm/u32-normcmp'.
37854         * lib/uninorm/u32-normcmp.c: New file.
37855         * modules/uninorm/u32-normcmp: New file.
37856
37857         New module 'uninorm/u16-normcmp'.
37858         * lib/uninorm/u16-normcmp.c: New file.
37859         * modules/uninorm/u16-normcmp: New file.
37860
37861         New module 'uninorm/u8-normcmp'.
37862         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37863         declarations.
37864         * lib/uninorm/u8-normcmp.c: New file.
37865         * lib/uninorm/u-normcmp.h: New file.
37866         * modules/uninorm/u8-normcmp: New file.
37867
37868 2009-03-06  Bruno Haible  <bruno@clisp.org>
37869
37870         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37871         Reported by Eric Blake.
37872
37873 2009-03-06  Eric Blake  <ebb9@byu.net>
37874             Bruno Haible  <bruno@clisp.org>
37875
37876         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37877         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37878         condition.
37879         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37880         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37881         condition.
37882         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37883
37884 2009-03-06  Eric Blake  <ebb9@byu.net>
37885
37886         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37887         to avoid compiler warnings.
37888         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37889
37890 2009-03-05  Bruno Haible  <bruno@clisp.org>
37891
37892         * tests/test-ftell.c (main): Disable test beyond end of file on
37893         FreeMiNT.
37894         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37895
37896 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37897
37898         * lib/filevercmp.c: Move hidden files up in ordering.
37899         * tests/test-filevercmp.c: Add tests for hidden files.
37900
37901 2009-03-04  Bruno Haible  <bruno@clisp.org>
37902
37903         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37904         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37905         AM_CFLAGS.
37906         Reported by Simon Josefsson.
37907
37908 2009-03-03  Bruno Haible  <bruno@clisp.org>
37909
37910         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37911         Reported by Simon Josefsson.
37912
37913         * doc/ld-version-script.texi: Update node reference.
37914
37915 2009-03-03  Bruno Haible  <bruno@clisp.org>
37916
37917         * modules/visibility (License): Change to 'unlimited'.
37918         Suggested by Simon Josefsson.
37919
37920 2009-03-03  Jim Meyering  <meyering@redhat.com>
37921
37922         unlinkdir: cannot_unlink_dir may modify process state
37923         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37924         it's neither thread-safe nor appropriate for use in a library.
37925
37926 2009-03-03  Eric Blake  <ebb9@byu.net>
37927
37928         test-closein: silence test under Darwin
37929         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37930         care if it dies from EPIPE or EBADF.
37931
37932 2009-03-03  Bruno Haible  <bruno@clisp.org>
37933
37934         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37935         earlier.
37936         * doc/visibility.texi: Fix @node and @section.
37937
37938 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37939
37940         * doc/gnulib.texi: Link to sections for ld version script and
37941         visibility.
37942         * doc/visibility.texi: Add @node and @section.
37943         * modules/ld-version-script: New module.
37944         * m4/ld-version-script.m4: New file.
37945         * doc/ld-version-script.texi: New file.
37946
37947 2009-03-02  David Lutterkort  <lutter@redhat.com>
37948
37949         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37951
37952 2009-03-02  Bruno Haible  <bruno@clisp.org>
37953
37954         * doc/visibility.texi: Mention libtool's -export-symbols option.
37955
37956 2009-03-02  Jim Meyering  <meyering@redhat.com>
37957
37958         announce-gen: new option: --no-print-checksums
37959         * build-aux/announce-gen (usage): Describe it.
37960         (print_checksums): Print a newline here, not in the [*] footnote.
37961         (main): Honor it.
37962
37963 2009-03-01  Bruno Haible  <bruno@clisp.org>
37964
37965         Use socklen_t in the native Windows replacements prototypes.
37966         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37967         instead of 'int'.
37968         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37969         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37970         * modules/getsockopt (Depends-on): Add socklen.
37971         * modules/setsockopt (Depends-on): Add socklen.
37972
37973 2009-03-01  Bruno Haible  <bruno@clisp.org>
37974
37975         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37976         least 4.2.
37977
37978 2009-03-01  Eric Blake  <ebb9@byu.net>
37979             Bruno Haible  <bruno@clisp.org>
37980
37981         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37982         error messages.
37983         * lib/wait-process.c (wait_subprocess): Omit error message about
37984         deadly signal sent to the child of termsigp != NULL.
37985
37986 2009-03-01  Eric Blake  <ebb9@byu.net>
37987
37988         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37989
37990 2009-03-01  Bruno Haible  <bruno@clisp.org>
37991
37992         Avoid a gcc warning.
37993         * tests/test-sched.c (b): Make global.
37994         Reported by Eric Blake.
37995
37996 2009-01-19  Martin Lambers  <marlam@marlam.de>
37997
37998         Provide POSIX semantics for socket timeout options on W32.
37999         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
38000         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
38001         * modules/setsockopt: Depend on sys_time module for struct timeval.
38002         * modules/getsockopt: Depend on sys_time module for struct timeval.
38003
38004 2009-03-01  Simon Josefsson  <simon@josefsson.org>
38005
38006         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
38007         __USE_GNU, for consistency with netdb.in.h.
38008         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38009
38010 2009-03-01  Bruno Haible  <bruno@clisp.org>
38011
38012         More support for FreeMiNT.
38013         * lib/fseeko.c (rpl_fseeko): Complete last commit.
38014         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38015
38016 2009-03-01  Bruno Haible  <bruno@clisp.org>
38017
38018         More support for FreeMiNT.
38019         * lib/fpurge.c (fpurge): Correct last commit.
38020         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38021
38022 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38023
38024         Fix unportable awk script in vc-list-files.
38025         * build-aux/vc-list-files: In the replacement awk script, use
38026         substr with a second argument of 1, not zero.
38027         Report by Simon Josefsson.
38028
38029 2009-02-28  Bruno Haible  <bruno@clisp.org>
38030
38031         More support for FreeMiNT.
38032         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
38033         to FreeMiNT today.
38034         * lib/fwriting.c (fwriting): Likewise.
38035         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
38036
38037 2009-02-28  Bruno Haible  <bruno@clisp.org>
38038
38039         * tests/test-freadseek.c (main): Disable test beyond end of file on
38040         FreeMiNT.
38041         * tests/test-ftello.c (main): Likewise.
38042         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38043
38044 2009-02-28  Bruno Haible  <bruno@clisp.org>
38045
38046         Add tentative support for FreeMiNT.
38047         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
38048         * lib/fpurge.c (fpurge): Likewise.
38049         * lib/freadable.c (freadable): Likewise.
38050         * lib/freading.c (freading): Likewise.
38051         * lib/freadptr.c (freadptr): Likewise.
38052         * lib/freadseek.c (freadptrinc): Likewise.
38053         * lib/fseeko.c (rpl_fseeko): Likewise.
38054         * lib/fseterr.c (fseterr): Likewise.
38055         * lib/fwritable.c (fwritable): Likewise.
38056         * lib/fwriting.c (fwriting): Likewise.
38057         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
38058         Hourihane.
38059         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38060
38061 2009-02-28  Bruno Haible  <bruno@clisp.org>
38062
38063         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
38064         SIGCHLD.
38065         Reported by Jim Meyering.
38066
38067 2009-02-28  Bruno Haible  <bruno@clisp.org>
38068
38069         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
38070         Mention the results of these tests on various platforms.
38071         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
38072         order.
38073         * doc/posix-functions/printf.texi: Likewise.
38074         * doc/posix-functions/snprintf.texi: Likewise.
38075         * doc/posix-functions/sprintf.texi: Likewise.
38076         * doc/posix-functions/vfprintf.texi: Likewise.
38077         * doc/posix-functions/vprintf.texi: Likewise.
38078         * doc/posix-functions/vsnprintf.texi: Likewise.
38079         * doc/posix-functions/vsprintf.texi: Likewise.
38080         * doc/glibc-functions/obstack_printf.texi: Likewise.
38081         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
38082
38083 2009-02-28  Bruno Haible  <bruno@clisp.org>
38084
38085         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
38086         Reported by Loïc Minier <lool@dooz.org>.
38087
38088 2009-02-27  Bruno Haible  <bruno@clisp.org>
38089
38090         * gnulib-tool (func_import): Make the sed expression used to create the
38091         sed script for updating the .gitignore file POSIX compliant.
38092         Reported by Eric Blake.
38093
38094 2009-02-27  Bruno Haible  <bruno@clisp.org>
38095
38096         * gnulib-tool (sed): Don't alias as "sed --posix".
38097         Reported by Eric Blake.
38098
38099 2009-02-27  Bruno Haible  <bruno@clisp.org>
38100
38101         Avoid test link errors.
38102         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
38103         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
38104         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
38105         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
38106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38107
38108 2009-02-27  Bruno Haible  <bruno@clisp.org>
38109
38110         Avoid spurious "(cached)" in configure output.
38111         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
38112         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
38113         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38114         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38115         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38116         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
38117         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38118         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
38119         Reported by Eric Blake.
38120
38121 2009-02-27  Eric Blake  <ebb9@byu.net>
38122
38123         printf: fix regression in previous patch
38124         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
38125
38126 2009-02-27  Bruno Haible  <bruno@clisp.org>
38127
38128         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
38129         value.
38130         * lib/stdint.in.h: Likewise.
38131         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
38132
38133 2009-02-27  Eric Blake  <ebb9@byu.net>
38134
38135         doc: mention more functions added in cygwin 1.7.0
38136         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
38137         addition.
38138         * doc/posix-functions/open_wmemstream.texi: Likewise.
38139         * doc/posix-functions/wcsnlen.texi: Likewise.
38140         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38141         * doc/posix-functions/wcstod.texi: Likewise.
38142         * doc/posix-functions/wcstof.texi: Likewise.
38143         * doc/posix-functions/wcstoimax.texi: Likewise.
38144         * doc/posix-functions/wcstok.texi: Likewise.
38145         * doc/posix-functions/wcstoumax.texi: Likewise.
38146
38147         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
38148         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
38149         * doc/posix-functions/fprintf.texi: Update.
38150         * doc/posix-functions/printf.texi: Update.
38151         * doc/posix-functions/snprintf.texi: Update.
38152         * doc/posix-functions/sprintf.texi: Update.
38153         * doc/posix-functions/vfprintf.texi: Update.
38154         * doc/posix-functions/vprintf.texi: Update.
38155         * doc/posix-functions/vsnprintf.texi: Update.
38156         * doc/posix-functions/vsprintf.texi: Update.
38157         * doc/glibc-functions/obstack_printf.texi: Update.
38158         * doc/glibc-functions/obstack_vprintf.texi: Update.
38159
38160 2009-02-26  Eric Blake  <ebb9@byu.net>
38161
38162         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
38163         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
38164         compilation bug by using runtime conversion.
38165         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
38166         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
38167         * modules/ceill-tests (Files): Use nan.h.
38168         * modules/floorl-tests (Files): Likewise.
38169         * modules/frexpl-tests (Files): Likewise.
38170         * modules/isnanl-tests (Files): Likewise.
38171         * modules/ldexpl-tests (Files): Likewise.
38172         * modules/roundl-tests (Files): Likewise.
38173         * modules/truncl-tests (Files): Likewise.
38174         * tests/test-ceill.c (main): Use a working NaN.
38175         * tests/test-floorl.c (main): Likewise.
38176         * tests/test-frexpl.c (main): Likewise.
38177         * tests/test-isnan.c (test_long_double): Likewise.
38178         * tests/test-isnanl.h (main): Likewise.
38179         * tests/test-ldexpl.h (main): Likewise.
38180         * tests/test-roundl.h (main): Likewise.
38181         * tests/test-truncl.h (main): Likewise.
38182         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
38183
38184 2009-02-26  Eric Blake  <ebb9@byu.net>
38185             Bruno Haible  <bruno@clisp.org>
38186
38187         Work around a *printf bug with %ls on Solaris.
38188         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
38189         precision is specified, sprintf stops converting the wide string
38190         argument when the number of bytes that have been produced by this
38191         conversion equals or exceeds the precision.
38192         * doc/posix-functions/fprintf.texi: Update.
38193         * doc/posix-functions/printf.texi: Update.
38194         * doc/posix-functions/snprintf.texi: Update.
38195         * doc/posix-functions/sprintf.texi: Update.
38196         * doc/posix-functions/vfprintf.texi: Update.
38197         * doc/posix-functions/vprintf.texi: Update.
38198         * doc/posix-functions/vsnprintf.texi: Update.
38199         * doc/posix-functions/vsprintf.texi: Update.
38200         * doc/glibc-functions/obstack_printf.texi: Update.
38201         * doc/glibc-functions/obstack_vprintf.texi: Update.
38202
38203 2009-02-26  Eric Blake  <ebb9@byu.net>
38204
38205         stdlib: favor compiler check of random.h
38206         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
38207         to avoid an ObjC random.h installed by Swarm.
38208
38209 2009-02-26  Bruno Haible  <bruno@clisp.org>
38210
38211         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
38212         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
38213         Reported by Gary V. Vaughan <gary@gnu.org>.
38214
38215 2009-02-26  Bruno Haible  <bruno@clisp.org>
38216
38217         Fix *printf behaviour regarding the %ls directive.
38218         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
38219         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
38220         NEED_PRINTF_DIRECTIVE_LS.
38221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
38222         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38223         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38224         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
38225         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
38226         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
38227         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38228         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38229         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38232         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
38233         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38234         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38235         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38236         * doc/posix-functions/fprintf.texi: Update.
38237         * doc/posix-functions/printf.texi: Update.
38238         * doc/posix-functions/snprintf.texi: Update.
38239         * doc/posix-functions/sprintf.texi: Update.
38240         * doc/posix-functions/vfprintf.texi: Update.
38241         * doc/posix-functions/vprintf.texi: Update.
38242         * doc/posix-functions/vsnprintf.texi: Update.
38243         * doc/posix-functions/vsprintf.texi: Update.
38244         * doc/glibc-functions/obstack_printf.texi: Update.
38245         * doc/glibc-functions/obstack_vprintf.texi: Update.
38246         Reported by Eric Blake.
38247
38248 2009-02-25  Bruno Haible  <bruno@clisp.org>
38249
38250         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
38251         with known value.
38252         Reported by Gary V. Vaughan <gary@gnu.org>.
38253
38254 2009-02-25  Bruno Haible  <bruno@clisp.org>
38255
38256         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
38257         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
38258         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
38259         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
38260         Reported by Gary V. Vaughan <gary@gnu.org>.
38261
38262 2009-02-25  Bruno Haible  <bruno@clisp.org>
38263
38264         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
38265         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
38266         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
38267         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
38268         Reported by Gary V. Vaughan <gary@gnu.org>.
38269
38270 2009-02-25  Eric Blake  <ebb9@byu.net>
38271
38272         tests: skip fseek/ftell tests if ungetc is broken
38273         * m4/ungetc.m4: New file.
38274         * modules/fseek-tests: Split test, so ungetc dependency is
38275         separate from rest of test.
38276         * modules/fseeko-tests: Likewise.
38277         * modules/ftell-tests: Likewise.
38278         * modules/ftello-tests: Likewise.
38279         * tests/test-fseek.c (main): Isolate ungetc dependency.
38280         * tests/test-fseeko.c (main): Likewise.
38281         * tests/test-ftell.c (main): Likewise.
38282         * tests/test-ftello.c (main): Likewise.
38283         * tests/test-fseek2.sh: New file.
38284         * tests/test-fseeko2.sh: Likewise.
38285         * tests/test-ftell2.sh: Likewise.
38286         * tests/test-ftello2.sh: Likewise.
38287
38288 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
38289
38290         test-getaddrinfo: fix usage of skip return code 77
38291         * tests/test-gettaddrinfo.c: Return skip code 77 only
38292         for first occurance of skip (4x77 is not 77)
38293
38294 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
38295
38296         strtod: avoid C99 decl-after-statement
38297         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
38298
38299 2009-02-24  Eric Blake  <ebb9@byu.net>
38300
38301         strtod: detect HP-UX 11.31 bug
38302         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
38303         Reported by Gary V. Vaughan.
38304
38305 2009-02-23  Bruno Haible  <bruno@clisp.org>
38306
38307         Fix invalid read past end of memory block.
38308         * lib/vasnprintf.c (DCHAR_SET): Define.
38309         (local_wcslen): Define only when needed.
38310         (local_strnlen, local_wcsnlen): New functions.
38311         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
38312         directives that involve a conversion ourselves.
38313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
38314         wcsnlen, mbrtowc, wcrtomb.
38315         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
38316         * tests/test-vasprintf-posix.c (test_function): Likewise.
38317         * tests/test-snprintf-posix.h (test_function): Likewise.
38318         * tests/test-sprintf-posix.h (test_function): Likewise.
38319         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38320
38321 2009-02-22  Bruno Haible  <bruno@clisp.org>
38322
38323         Implement new clarified decomposition of Hangul syllables.
38324         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
38325         of type LTV, return only a pairwise decomposition.
38326         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
38327         Likewise.
38328         * tests/uninorm/test-decomposition.c (main): Updated expected result.
38329         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
38330         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
38331
38332 2009-02-22  Bruno Haible  <bruno@clisp.org>
38333
38334         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
38335         zero-length results and shrink excess allocated memory.
38336         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
38337         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
38338         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
38339         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
38340         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
38341         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
38342         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
38343         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
38344         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
38345         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
38346         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
38347         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
38348
38349 2009-02-21  Bruno Haible  <bruno@clisp.org>
38350
38351         * doc/gnulib.texi: Include safe-alloc.texi earlier.
38352         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
38353         spaces after a period. Put a space between a macro name and its
38354         argument list. Trivial rewordings.
38355         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
38356         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
38357         (main): Return 0 explicitly.
38358
38359 2009-02-21  Bruno Haible  <bruno@clisp.org>
38360
38361         Tests for module 'uninorm/filter'.
38362         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
38363         * modules/uninorm/filter-tests: New file.
38364
38365         New module 'uninorm/filter'.
38366         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
38367         uninorm_filter_flush, uninorm_filter_free): New declarations.
38368         * lib/uninorm/uninorm-filter.c: New file.
38369         * modules/uninorm/filter: New file.
38370
38371 2009-02-21  Bruno Haible  <bruno@clisp.org>
38372
38373         Tests for module 'uninorm/nfkc'.
38374         * tests/uninorm/test-nfkc.c: New file.
38375         * tests/uninorm/test-u8-nfkc.c: New file.
38376         * tests/uninorm/test-u16-nfkc.c: New file.
38377         * tests/uninorm/test-u32-nfkc.c: New file.
38378         * tests/uninorm/test-u32-nfkc-big.sh: New file.
38379         * tests/uninorm/test-u32-nfkc-big.c: New file.
38380         * modules/uninorm/nfkc-tests: New file.
38381
38382         New module 'uninorm/nfkc'.
38383         * lib/uninorm/nfkc.c: New file.
38384         * modules/uninorm/nfkc: New file.
38385
38386         Tests for module 'uninorm/nfkd'.
38387         * tests/uninorm/test-nfkd.c: New file.
38388         * tests/uninorm/test-u8-nfkd.c: New file.
38389         * tests/uninorm/test-u16-nfkd.c: New file.
38390         * tests/uninorm/test-u32-nfkd.c: New file.
38391         * tests/uninorm/test-u32-nfkd-big.sh: New file.
38392         * tests/uninorm/test-u32-nfkd-big.c: New file.
38393         * modules/uninorm/nfkd-tests: New file.
38394
38395         New module 'uninorm/nfkd'.
38396         * lib/uninorm/nfkd.c: New file.
38397         * modules/uninorm/nfkd: New file.
38398
38399         Tests for module 'uninorm/nfc'.
38400         * tests/uninorm/test-nfc.c: New file.
38401         * tests/uninorm/test-u8-nfc.c: New file.
38402         * tests/uninorm/test-u16-nfc.c: New file.
38403         * tests/uninorm/test-u32-nfc.c: New file.
38404         * tests/uninorm/test-u32-nfc-big.sh: New file.
38405         * tests/uninorm/test-u32-nfc-big.c: New file.
38406         * modules/uninorm/nfc-tests: New file.
38407
38408         New module 'uninorm/nfc'.
38409         * lib/uninorm/nfc.c: New file.
38410         * modules/uninorm/nfc: New file.
38411
38412         Tests for module 'uninorm/nfd'.
38413         * tests/uninorm/test-nfd.c: New file.
38414         * tests/uninorm/test-u8-nfd.c: New file.
38415         * tests/uninorm/test-u16-nfd.c: New file.
38416         * tests/uninorm/test-u32-nfd.c: New file.
38417         * tests/uninorm/test-u32-nfd-big.sh: New file.
38418         * tests/uninorm/test-u32-nfd-big.c: New file.
38419         * tests/uninorm/test-u32-normalize-big.h: New file.
38420         * tests/uninorm/test-u32-normalize-big.c: New file.
38421         * tests/uninorm/NormalizationTest.txt: New file, created from
38422         Unicode 5.1.0 NormalizationTest.txt.
38423         * modules/uninorm/nfd-tests: New file.
38424
38425         New module 'uninorm/nfd'.
38426         * lib/uninorm/nfd.c: New file.
38427         * modules/uninorm/nfd: New file.
38428
38429         New module 'uninorm/u32-normalize'.
38430         * lib/uninorm/u32-normalize.c: New file.
38431         * modules/uninorm/u32-normalize: New file.
38432
38433         New module 'uninorm/u16-normalize'.
38434         * lib/uninorm/u16-normalize.c: New file.
38435         * modules/uninorm/u16-normalize: New file.
38436
38437         New module 'uninorm/u8-normalize'.
38438         * lib/uninorm/u8-normalize.c: New file.
38439         * lib/uninorm/normalize-internal.h: New file.
38440         * lib/uninorm/u-normalize-internal.h: New file.
38441         * modules/uninorm/u8-normalize: New file.
38442
38443         New module 'uninorm/decompose-internal'.
38444         * lib/uninorm/decompose-internal.c: New file.
38445         * modules/uninorm/decompose-internal: New file.
38446
38447         Tests for module 'uninorm/composition'.
38448         * tests/uninorm/test-composition.c: New file.
38449         * modules/uninorm/composition-tests: New file.
38450
38451         New module 'uninorm/composition'.
38452         * lib/uninorm/composition.c: New file.
38453         * lib/uninorm/composition-table.gperf: New file, generated by
38454         gen-uni-tables.
38455         * modules/uninorm/composition: New file.
38456
38457         Tests for module 'uninorm/compat-decomposition'.
38458         * tests/uninorm/test-compat-decomposition.c: New file.
38459         * modules/uninorm/compat-decomposition-tests: New file.
38460
38461         New module 'uninorm/compat-decomposition'.
38462         * lib/uninorm/decompose-internal.h: New file.
38463         * lib/uninorm/compat-decomposition.c: New file.
38464         * modules/uninorm/compat-decomposition: New file.
38465
38466         Tests for module 'uninorm/canonical-decomposition'.
38467         * tests/uninorm/test-canonical-decomposition.c: New file.
38468         * modules/uninorm/canonical-decomposition-tests: New file.
38469
38470         New module 'uninorm/canonical-decomposition'.
38471         * lib/uninorm/canonical-decomposition.c: New file.
38472         * modules/uninorm/canonical-decomposition: New file.
38473
38474         Tests for module 'uninorm/decomposition'.
38475         * tests/uninorm/test-decomposition.c: New file.
38476         * modules/uninorm/decomposition-tests: New file.
38477
38478         New module 'uninorm/decomposition'.
38479         * lib/uninorm/decomposition.c: New file.
38480         * modules/uninorm/decomposition: New file.
38481
38482         New module 'uninorm/decomposition-table'.
38483         * lib/uninorm/decomposition-table.h: New file.
38484         * lib/uninorm/decomposition-table.c: New file.
38485         * lib/uninorm/decomposition-table1.h: New file, generated by
38486         gen-uni-tables.
38487         * lib/uninorm/decomposition-table2.h: New file, generated by
38488         gen-uni-tables.
38489         * modules/uninorm/decomposition-table: New file.
38490
38491         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
38492         (UC_DECOMP_*): New enumeration items.
38493         (get_decomposition): New function.
38494         (struct decomp_table): New type.
38495         (output_decomposition, output_decomposition_tables): New functions.
38496         (unicode_composition_exclusions): New variable.
38497         (fill_composition_exclusions, debug_output_composition_tables): New
38498         functions.
38499         (main): Accept one more argument. Invoke fill_composition_exclusions.
38500         Output decomposition and composition tables.
38501
38502         New module 'uninorm/base'.
38503         * lib/uninorm.h: New file.
38504         * lib/unictype.h: Update comment.
38505         * modules/uninorm/base: New file.
38506
38507 2009-02-21  David Lutterkort  <lutter@redhat.com>
38508
38509         Tests for module 'safe-alloc'.
38510         * tests/test-safe-alloc.c: New file.
38511         * modules/safe-alloc-tests: New file.
38512
38513         New module 'safe-alloc'.
38514         * lib/safe-alloc.h: New file.
38515         * lib/safe-alloc.c: New file.
38516         * m4/safe-alloc.m4: New file.
38517         * modules/safe-alloc: New file.
38518         * doc/safe-alloc.texi: New file.
38519         * doc/gnulib.texi: Include it.
38520         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
38521         safe-alloc.
38522
38523 2009-02-18  Bruno Haible  <bruno@clisp.org>
38524
38525         Fix link error on non-glibc systems.
38526         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
38527         variable.
38528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38529
38530 2009-02-18  Jim Meyering  <meyering@redhat.com>
38531
38532         fts: avoid used-uninitialized error due to recent change
38533         * lib/fts.c (fts_read): Guard uses of the new member,
38534         parent->fts_n_dirs_remaining, since it's not relevant for
38535         the parent of a directory specified on the command-line.
38536
38537 2009-02-17  James Youngman  <jay@gnu.org>
38538             Bruno Haible  <bruno@clisp.org>
38539
38540         * m4/include_next.m4: Reformulate comment.
38541
38542 2009-02-16  Jim Meyering  <meyering@redhat.com>
38543
38544         fts: add #if guards so that the fts_lgpl module still builds
38545         * lib/fts.c: Guard just-added hash-table-using parts with
38546         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
38547         Reported by Simon Josefsson.
38548
38549 2009-02-15  Bruno Haible  <bruno@clisp.org>
38550
38551         * modules/array-mergesort-tests: New file.
38552         * tests/test-array-mergesort.c: New file.
38553
38554         New module 'array-mergesort'.
38555         * modules/array-mergesort: New file.
38556         * lib/array-mergesort.h: New file.
38557
38558 2009-02-15  Bruno Haible  <bruno@clisp.org>
38559
38560         Fix 2009-02-07 commit.
38561         * lib/gen-uni-tables.c (output_predicate, output_category,
38562         output_combclass, output_bidi_category, output_decimal_digit,
38563         output_digit, output_numeric, output_mirror, output_scripts,
38564         output_ident_category, output_simple_mapping): Fix format directives.
38565         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
38566
38567 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
38568
38569         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
38570         fixes are available from IBM.
38571
38572 2009-02-13  Jim Meyering  <meyering@redhat.com>
38573
38574         fts: arrange not to stat non-directories in more cases
38575         This makes GNU find (when it doesn't need to stat each file)
38576         *much* more efficient at traversing reiserfs file systems.
38577         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
38578         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
38579         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
38580         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
38581         (leaf_optimization_applies): New function.
38582         (LCO_hash, LCO_compare): New helper functions.
38583         (link_count_optimize_ok): New function.
38584         (fts_stat): Initialize new member (if dir).
38585         (fts_read): Decrement parent's fts_n_dirs_remaining count if
38586         we've just stat'ed a directory.  Skip the stat call when possible.
38587         ---
38588         Note this AFS-related exchange:
38589         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
38590         and note find's pioctl call in find/fstype.c.
38591         But that is necessary only if you want to enable the
38592         optimization for AFS, and for now, I don't.
38593
38594         fts: move a function definition "up" (no semantic change)
38595         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
38596         "up" to precede upcoming use of a related function.
38597
38598 2009-02-11  Jim Meyering  <meyering@redhat.com>
38599
38600         fts: correct internal computation of nlinks (optimization-related)
38601         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
38602         whether the current entry is a directory, so don't test it.
38603
38604 2009-02-10  Bruno Haible  <bruno@clisp.org>
38605
38606         Tests for module 'uniwbrk/ulc-wordbreaks'.
38607         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
38608         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
38609         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
38610
38611         Tests for module 'uniwbrk/u32-wordbreaks'.
38612         * modules/uniwbrk/u32-wordbreaks-tests: New file.
38613         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
38614
38615         Tests for module 'uniwbrk/u16-wordbreaks'.
38616         * modules/uniwbrk/u16-wordbreaks-tests: New file.
38617         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
38618
38619         Tests for module 'uniwbrk/u8-wordbreaks'.
38620         * modules/uniwbrk/u8-wordbreaks-tests: New file.
38621         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
38622
38623 2009-02-10  Bruno Haible  <bruno@clisp.org>
38624
38625         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
38626         property.
38627         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
38628         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
38629         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
38630
38631 2009-02-10  Simon Josefsson  <simon@josefsson.org>
38632
38633         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
38634         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
38635
38636 2009-02-10  Bruno Haible  <bruno@clisp.org>
38637
38638         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
38639         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
38640         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
38641         * lib/unilbrk/u8-possible-linebreaks.c: Update.
38642         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
38643         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
38644
38645 2009-02-09  Simon Josefsson  <simon@josefsson.org>
38646
38647         * lib/sockets.h (gl_fd_to_handle): New function.
38648
38649         * tests/test-sockets.c: Call gl_fd_to_handle.
38650
38651 2009-02-09  Bruno Haible  <bruno@clisp.org>
38652
38653         * doc/havelib.texi: Document the conventions on bi-arch systems.
38654
38655 2009-02-08  Bruno Haible  <bruno@clisp.org>
38656
38657         Document the AC_LIB_LINKFLAGS macro.
38658         * doc/havelib.texi: New file, mostly written on 2005-05-24.
38659         * doc/gnulib.texi: Include it.
38660
38661 2009-02-08  Bruno Haible  <bruno@clisp.org>
38662
38663         Fix wrong order of sections, compared to TOC.
38664         * doc/gnulib.texi: Include relocatable-maint.texi after the
38665         "Regular expressions" node, not before.
38666
38667 2009-02-08  Bruno Haible  <bruno@clisp.org>
38668
38669         Tests for module 'unicase/totitle'.
38670         * modules/unicase/totitle-tests: New file.
38671
38672         Tests for module 'unicase/tolower'.
38673         * modules/unicase/tolower-tests: New file.
38674
38675         Tests for module 'unicase/toupper'.
38676         * modules/unicase/toupper-tests: New file.
38677         * tests/unicase/test-mapping-part1.h: New file.
38678         * tests/unicase/test-mapping-part2.h: New file.
38679
38680         New module 'unicase/totitle'.
38681         * modules/unicase/totitle: New file.
38682         * lib/unicase/totitle.c: New file.
38683
38684         New module 'unicase/tolower'.
38685         * modules/unicase/tolower: New file.
38686         * lib/unicase/tolower.c: New file.
38687
38688         New module 'unicase/toupper'.
38689         * modules/unicase/toupper: New file.
38690         * lib/unicase/toupper.c: New file.
38691         * lib/unicase/simple-mapping.h: New file.
38692
38693         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38694         (mapping_table): New structure.
38695         (output_simple_mapping): New function.
38696         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38697         * modules/gen-uni-tables (Description): Update.
38698         * lib/unicase/toupper.h: New file, automatically generated by
38699         gen-uni-tables.
38700         * lib/unicase/tolower.h: New file, automatically generated by
38701         gen-uni-tables.
38702         * lib/unicase/totitle.h: New file, automatically generated by
38703         gen-uni-tables.
38704         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38705         gen-uni-tables.
38706         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38707         gen-uni-tables.
38708         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38709         gen-uni-tables.
38710
38711         New module 'unicase/base'.
38712         * modules/unicase/base: New file.
38713         * lib/unicase.h: New file.
38714
38715 2009-02-08  Bruno Haible  <bruno@clisp.org>
38716
38717         New module 'uniwbrk/ulc-wordbreaks'.
38718         * modules/uniwbrk/ulc-wordbreaks: New file.
38719         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38720
38721         New module 'uniwbrk/u32-wordbreaks'.
38722         * modules/uniwbrk/u32-wordbreaks: New file.
38723         * lib/uniwbrk/u32-wordbreaks.c: New file.
38724
38725         New module 'uniwbrk/u16-wordbreaks'.
38726         * modules/uniwbrk/u16-wordbreaks: New file.
38727         * lib/uniwbrk/u16-wordbreaks.c: New file.
38728
38729         New module 'uniwbrk/u8-wordbreaks'.
38730         * modules/uniwbrk/u8-wordbreaks: New file.
38731         * lib/uniwbrk/u8-wordbreaks.c: New file.
38732         * lib/uniwbrk/u-wordbreaks.h: New file.
38733
38734         New module 'uniwbrk/table'.
38735         * modules/uniwbrk/table: New file.
38736         * lib/uniwbrk/wbrktable.h: New file.
38737         * lib/uniwbrk/wbrktable.c: New file.
38738
38739         New module 'uniwbrk/wordbreak-property'.
38740         * modules/uniwbrk/wordbreak-property: New file.
38741         * lib/uniwbrk/wordbreak-property.c: New file.
38742
38743         * lib/gen-uni-tables.c (WBP_*): New enum items.
38744         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38745         (unicode_org_wbp): New variable.
38746         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38747         New functions.
38748         (wbp_table): New structure.
38749         (output_wbp, output_wbrk_tables): New functions.
38750         (main): Accept additional argument. Invoke fill_org_wbp,
38751         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38752         output_wbrk_tables.
38753         * modules/gen-uni-tables (Description): Update.
38754         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38755         gen-uni-tables.
38756
38757         New module 'uniwbrk/base'.
38758         * modules/uniwbrk/base: New file.
38759         * lib/uniwbrk.h: New file.
38760
38761 2009-02-08  Bruno Haible  <bruno@clisp.org>
38762
38763         Update to Unicode 5.1.0.
38764         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38765         U+2185..U+2188.
38766         (is_property_default_ignorable_code_point): Don't include characters
38767         of category Cc or Cs and not-a-characters.
38768         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38769         U+0D79, U+109E, U+109F, U+A60C.
38770         * lib/unictype/bidi_of.h: Regenerated.
38771         * lib/unictype/blocks.h: Regenerated.
38772         * lib/unictype/categ_C.h: Regenerated.
38773         * lib/unictype/categ_Cf.h: Regenerated.
38774         * lib/unictype/categ_Cn.h: Regenerated.
38775         * lib/unictype/categ_L.h: Regenerated.
38776         * lib/unictype/categ_Ll.h: Regenerated.
38777         * lib/unictype/categ_Lm.h: Regenerated.
38778         * lib/unictype/categ_Lo.h: Regenerated.
38779         * lib/unictype/categ_Lu.h: Regenerated.
38780         * lib/unictype/categ_M.h: Regenerated.
38781         * lib/unictype/categ_Mc.h: Regenerated.
38782         * lib/unictype/categ_Me.h: Regenerated.
38783         * lib/unictype/categ_Mn.h: Regenerated.
38784         * lib/unictype/categ_N.h: Regenerated.
38785         * lib/unictype/categ_Nd.h: Regenerated.
38786         * lib/unictype/categ_Nl.h: Regenerated.
38787         * lib/unictype/categ_No.h: Regenerated.
38788         * lib/unictype/categ_P.h: Regenerated.
38789         * lib/unictype/categ_Pd.h: Regenerated.
38790         * lib/unictype/categ_Pe.h: Regenerated.
38791         * lib/unictype/categ_Pf.h: Regenerated.
38792         * lib/unictype/categ_Pi.h: Regenerated.
38793         * lib/unictype/categ_Po.h: Regenerated.
38794         * lib/unictype/categ_Ps.h: Regenerated.
38795         * lib/unictype/categ_S.h: Regenerated.
38796         * lib/unictype/categ_Sk.h: Regenerated.
38797         * lib/unictype/categ_Sm.h: Regenerated.
38798         * lib/unictype/categ_So.h: Regenerated.
38799         * lib/unictype/categ_of.h: Regenerated.
38800         * lib/unictype/combining.h: Regenerated.
38801         * lib/unictype/ctype_alnum.h: Regenerated.
38802         * lib/unictype/ctype_alpha.h: Regenerated.
38803         * lib/unictype/ctype_graph.h: Regenerated.
38804         * lib/unictype/ctype_lower.h: Regenerated.
38805         * lib/unictype/ctype_print.h: Regenerated.
38806         * lib/unictype/ctype_punct.h: Regenerated.
38807         * lib/unictype/ctype_upper.h: Regenerated.
38808         * lib/unictype/decdigit.h: Regenerated.
38809         * lib/unictype/digit.h: Regenerated.
38810         * lib/unictype/mirror.h: Regenerated.
38811         * lib/unictype/numeric.h: Regenerated.
38812         * lib/unictype/pr_alphabetic.h: Regenerated.
38813         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38814         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38815         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38816         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38817         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38818         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38819         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38820         * lib/unictype/pr_combining.h: Regenerated.
38821         * lib/unictype/pr_dash.h: Regenerated.
38822         * lib/unictype/pr_decimal_digit.h: Regenerated.
38823         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38824         * lib/unictype/pr_deprecated.h: Regenerated.
38825         * lib/unictype/pr_diacritic.h: Regenerated.
38826         * lib/unictype/pr_extender.h: Regenerated.
38827         * lib/unictype/pr_format_control.h: Regenerated.
38828         * lib/unictype/pr_grapheme_base.h: Regenerated.
38829         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38830         * lib/unictype/pr_grapheme_link.h: Regenerated.
38831         * lib/unictype/pr_id_continue.h: Regenerated.
38832         * lib/unictype/pr_id_start.h: Regenerated.
38833         * lib/unictype/pr_ideographic.h: Regenerated.
38834         * lib/unictype/pr_ignorable_control.h: Regenerated.
38835         * lib/unictype/pr_lowercase.h: Regenerated.
38836         * lib/unictype/pr_math.h: Regenerated.
38837         * lib/unictype/pr_numeric.h: Regenerated.
38838         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38839         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38840         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38841         * lib/unictype/pr_other_id_continue.h: Regenerated.
38842         * lib/unictype/pr_other_lowercase.h: Regenerated.
38843         * lib/unictype/pr_other_math.h: Regenerated.
38844         * lib/unictype/pr_punctuation.h: Regenerated.
38845         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38846         * lib/unictype/pr_soft_dotted.h: Regenerated.
38847         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38848         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38849         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38850         * lib/unictype/pr_uppercase.h: Regenerated.
38851         * lib/unictype/pr_xid_continue.h: Regenerated.
38852         * lib/unictype/pr_xid_start.h: Regenerated.
38853         * lib/unictype/pr_zero_width.h: Regenerated.
38854         * lib/unictype/scripts.h: Regenerated.
38855         * lib/unictype/scripts_byname.gperf: Regenerated.
38856         * lib/unictype/sy_java_ident.h: Regenerated.
38857         * lib/unilbrk/lbrkprop1.h: Regenerated.
38858         * lib/unilbrk/lbrkprop2.h: Regenerated.
38859         * tests/unictype/test-categ_C.c: Regenerated.
38860         * tests/unictype/test-categ_Cf.c: Regenerated.
38861         * tests/unictype/test-categ_Cn.c: Regenerated.
38862         * tests/unictype/test-categ_L.c: Regenerated.
38863         * tests/unictype/test-categ_Ll.c: Regenerated.
38864         * tests/unictype/test-categ_Lm.c: Regenerated.
38865         * tests/unictype/test-categ_Lo.c: Regenerated.
38866         * tests/unictype/test-categ_Lu.c: Regenerated.
38867         * tests/unictype/test-categ_M.c: Regenerated.
38868         * tests/unictype/test-categ_Mc.c: Regenerated.
38869         * tests/unictype/test-categ_Me.c: Regenerated.
38870         * tests/unictype/test-categ_Mn.c: Regenerated.
38871         * tests/unictype/test-categ_N.c: Regenerated.
38872         * tests/unictype/test-categ_Nd.c: Regenerated.
38873         * tests/unictype/test-categ_Nl.c: Regenerated.
38874         * tests/unictype/test-categ_No.c: Regenerated.
38875         * tests/unictype/test-categ_P.c: Regenerated.
38876         * tests/unictype/test-categ_Pd.c: Regenerated.
38877         * tests/unictype/test-categ_Pe.c: Regenerated.
38878         * tests/unictype/test-categ_Pf.c: Regenerated.
38879         * tests/unictype/test-categ_Pi.c: Regenerated.
38880         * tests/unictype/test-categ_Po.c: Regenerated.
38881         * tests/unictype/test-categ_Ps.c: Regenerated.
38882         * tests/unictype/test-categ_S.c: Regenerated.
38883         * tests/unictype/test-categ_Sk.c: Regenerated.
38884         * tests/unictype/test-categ_Sm.c: Regenerated.
38885         * tests/unictype/test-categ_So.c: Regenerated.
38886         * tests/unictype/test-ctype_alnum.c: Regenerated.
38887         * tests/unictype/test-ctype_alpha.c: Regenerated.
38888         * tests/unictype/test-ctype_graph.c: Regenerated.
38889         * tests/unictype/test-ctype_lower.c: Regenerated.
38890         * tests/unictype/test-ctype_print.c: Regenerated.
38891         * tests/unictype/test-ctype_punct.c: Regenerated.
38892         * tests/unictype/test-ctype_upper.c: Regenerated.
38893         * tests/unictype/test-decdigit.h: Regenerated.
38894         * tests/unictype/test-digit.h: Regenerated.
38895         * tests/unictype/test-numeric.h: Regenerated.
38896         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38897         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38898         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38899         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38900         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38901         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38902         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38903         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38904         * tests/unictype/test-pr_combining.c: Regenerated.
38905         * tests/unictype/test-pr_dash.c: Regenerated.
38906         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38907         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38908         * tests/unictype/test-pr_deprecated.c: Regenerated.
38909         * tests/unictype/test-pr_diacritic.c: Regenerated.
38910         * tests/unictype/test-pr_extender.c: Regenerated.
38911         * tests/unictype/test-pr_format_control.c: Regenerated.
38912         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38913         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38914         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38915         * tests/unictype/test-pr_id_continue.c: Regenerated.
38916         * tests/unictype/test-pr_id_start.c: Regenerated.
38917         * tests/unictype/test-pr_ideographic.c: Regenerated.
38918         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38919         * tests/unictype/test-pr_lowercase.c: Regenerated.
38920         * tests/unictype/test-pr_math.c: Regenerated.
38921         * tests/unictype/test-pr_numeric.c: Regenerated.
38922         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38923         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38924         Regenerated.
38925         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38926         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38927         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38928         * tests/unictype/test-pr_other_math.c: Regenerated.
38929         * tests/unictype/test-pr_punctuation.c: Regenerated.
38930         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38931         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38932         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38933         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38934         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38935         * tests/unictype/test-pr_uppercase.c: Regenerated.
38936         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38937         * tests/unictype/test-pr_xid_start.c: Regenerated.
38938         * tests/unictype/test-pr_zero_width.c: Regenerated.
38939
38940         Update to Unicode 5.1.0.
38941         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38942         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38943         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38944         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38945         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38946         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38947         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38948         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38949         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38950         (nonspacing_table_ind): Update.
38951         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38952
38953         Update to Unicode 5.1.0.
38954         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38955         code transform.
38956         * lib/uniname/uniname.c (unicode_character_name,
38957         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38958         * lib/uniname/uninames.h: Regenerated.
38959         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38960
38961 2009-02-07  Bruno Haible  <bruno@clisp.org>
38962
38963         Merge gen-ctype and gen-lbrk into a single program.
38964         * lib/gen-uni-tables.c: New file, incorporating
38965         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38966         Add directory prefixes to the names of the generated files.
38967         * lib/unictype/gen-ctype.c: Remove file.
38968         * lib/unilbrk/gen-lbrk.c: Remove file.
38969         * modules/gen-uni-tables: New file.
38970         * modules/unictype/gen-ctype: Remove file.
38971         * modules/unilbrk/gen-lbrk: Remove file.
38972
38973 2009-02-07  Bruno Haible  <bruno@clisp.org>
38974
38975         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38976
38977         New module 'unistr/u32-strcoll'.
38978         * modules/unistr/u32-strcoll: New file.
38979         * lib/unistr/u32-strcoll.c: New file.
38980
38981         New module 'unistr/u16-strcoll'.
38982         * modules/unistr/u16-strcoll: New file.
38983         * lib/unistr/u16-strcoll.c: New file.
38984
38985         New module 'unistr/u8-strcoll'.
38986         * modules/unistr/u8-strcoll: New file.
38987         * lib/unistr/u8-strcoll.c: New file.
38988         * lib/unistr/u-strcoll.h: New file.
38989
38990 2009-02-07  Bruno Haible  <bruno@clisp.org>
38991
38992         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38993         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38994         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38995         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38996         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38997         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38998
38999 2009-02-07  Bruno Haible  <bruno@clisp.org>
39000
39001         Make 64-bit clean.
39002         * lib/unictype/gen-ctype.c (output_predicate, output_category,
39003         output_combclass, output_bidi_category, output_decimal_digit,
39004         output_digit, output_numeric, output_mirror, output_scripts,
39005         output_ident_category): Use proper width specifier in format strings.
39006
39007 2009-02-07  Bruno Haible  <bruno@clisp.org>
39008
39009         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
39010         failure behaviour.
39011
39012 2009-02-07  Jim Meyering  <meyering@redhat.com>
39013
39014         regex: avoid compilation failure with upcoming gcc-4.4
39015         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
39016         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
39017         "... error: integer overflow in preprocessor expression".
39018
39019 2009-02-05  Ben Pfaff  <blp@gnu.org>
39020
39021         Fix link errors on Windows when close module is used.
39022         * modules/close: Add $(LIB_CLOSE) to Link section.
39023         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
39024         $(LIB_CLOSE) on Windows.
39025
39026 2009-02-05  Jim Meyering  <meyering@redhat.com>
39027
39028         still avoid unused-parameter warnings, but do it cleanly
39029         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
39030         (get_fs_usage): Cast to void instead.
39031         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
39032         (dev_from_mount_options, read_file_system_list): Cast to void.
39033         Prompted by Bruno Haible.
39034
39035 2009-02-04  Jim Meyering  <meyering@redhat.com>
39036
39037         fsusage.c: correct copyright year
39038         * lib/fsusage.c: Reflect year in which the change is pushed into
39039
39040         avoid misc. warnings
39041         * lib/fsusage.c (UNUSED_PARAM): Define.
39042         (get_fs_usage): Mark parameter "disk" as unused.
39043         * lib/getugroups.c (getgrent): Use "void" in prototype.
39044         * lib/mountlist.c: Mark unused parameters.
39045         (read_file_system_list): Declare a local with "const".
39046         * lib/nanosleep.c (getnow): Declare static.
39047         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
39048
39049         dirfd: set errno upon failure
39050         * lib/dirfd.c: Include <errno.h>.
39051         Set errno to ENOTSUP when returning -1.
39052         * modules/dirfd (Depends-on): Add errno.
39053         Suggested by John Kodis <kodis@comcast.net>.
39054
39055 2009-02-01  Bruno Haible  <bruno@clisp.org>
39056
39057         Don't assume sizeof (long) >= sizeof (void *).
39058         * lib/memcmp.c: Include stdint.h.
39059         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
39060         srcp2 to 'const byte *'.
39061         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
39062         types to uintptr_t.
39063         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
39064         * modules/memcmp (Depends-on): Add stdint.
39065         Reported by Ozkan Sezer <sezeroz@gmail.com>.
39066
39067 2009-01-30  Eric Blake  <ebb9@byu.net>
39068
39069         fix more require-before-expand issues
39070         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
39071         expand, AC_PROG_AWK.
39072         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
39073
39074 2009-01-28  Eric Blake  <ebb9@byu.net>
39075
39076         version-etc: use consistent URL formatting
39077         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
39078         Improve formatting.  Use fputs for string without %.
39079
39080 2009-01-28  Jim Meyering  <meyering@redhat.com>
39081
39082         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
39083         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
39084         "underquoted definition of NAME" from autoconf-2.59.
39085
39086 2009-01-28  Bruno Haible  <bruno@clisp.org>
39087
39088         * doc/gnulib.texi: Add "Obsolete modules" to index.
39089
39090 2009-01-28  Jim Meyering  <meyering@redhat.com>
39091
39092         useless-if-before-free: recognize more variants
39093         * build-aux/useless-if-before-free: Also recognize e.g.,
39094         if (NULL != p) free (p);
39095
39096 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
39097
39098         test-getaddrinfo: skip (don't fail) this test when there's no network
39099         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
39100         on the presumption that it means you lack network access.
39101
39102 2009-01-26  Jim Meyering  <meyering@redhat.com>
39103
39104         fflush: avoid warnings on modern systems
39105         * lib/fflush.c (rpl_fflush): Move declarations of locals,
39106         pos and result, into scopes where they're used.
39107
39108 2009-01-26  Eric Blake  <ebb9@byu.net>
39109
39110         Silence warning reintroduced by recent extensions patch.
39111         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
39112         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
39113         autoconf.
39114
39115         Backport improved autoconf semantics of AC_DEFUN_ONCE.
39116         * m4/00gnulib.m4: New file.
39117         * gnulib-tool (func_get_filelist): Always use it.
39118         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
39119         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
39120
39121 2009-01-25  Bruno Haible  <bruno@clisp.org>
39122
39123         Make test-quotearg work on MacOS X and AIX.
39124         * tests/test-quotearg.sh: New file.
39125         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
39126         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
39127         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
39128         include <libintl.h>.
39129         (fake_locale): Remove variable.
39130         (gettext, dgettext, dcgettext): Remove functions.
39131         (main): Instead of setting a fake locale, set a real locale. Call
39132         textdomain and bindtextdomain.
39133         * modules/quotearg-tests (Files): Add the new files.
39134         (Depends-on): Add gettext, setenv, unsetenv.
39135         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
39136         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
39137         Augment TESTS_ENVIRONMENT.
39138
39139 2009-01-25  Bruno Haible  <bruno@clisp.org>
39140
39141         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
39142         fr_FR.ISO8859-1 locale on MacOS X.
39143         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
39144         ja_JP.eucJP locale on MacOS X.
39145         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
39146         zh_CN.GB18030 locale on MacOS X.
39147
39148 2009-01-25  Bruno Haible  <bruno@clisp.org>
39149
39150         Avoid link errors on MacOS X 10.3.
39151         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
39152         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39153
39154 2009-01-25  Bruno Haible  <bruno@clisp.org>
39155
39156         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39157         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
39158         * modules/pipe (Files): Remove m4/posix_spawn.m4.
39159         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39160         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
39161         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39162         posix_spawnattr_init, posix_spawnattr_setsigmask,
39163         posix_spawnattr_setflags, posix_spawnattr_destroy.
39164
39165         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39166         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
39167         * modules/execute (Files): Remove m4/posix_spawn.m4.
39168         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39169         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39170         posix_spawnattr_init, posix_spawnattr_setsigmask,
39171         posix_spawnattr_setflags, posix_spawnattr_destroy.
39172
39173 2009-01-25  Bruno Haible  <bruno@clisp.org>
39174
39175         * lib/glthread/threadlib.c: Include <stdlib.h>.
39176
39177 2009-01-25  Bruno Haible  <bruno@clisp.org>
39178
39179         * lib/glthread/threadlib.c (dummy): New declaration.
39180
39181 2009-01-25  Bruno Haible  <bruno@clisp.org>
39182
39183         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
39184         multibyte characters also for the GB18030 encoding. Don't crash when
39185         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
39186
39187 2009-01-25  Bruno Haible  <bruno@clisp.org>
39188
39189         Avoid redefining 'struct random_data' on OSF/1 5.1.
39190         * lib/stdlib.in.h: Include <random.h> if it exists.
39191         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
39192         HAVE_RANDOM_H. Include <random.h> when testing whether
39193         'struct random_data' exists.
39194         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
39195
39196 2009-01-25  Bruno Haible  <bruno@clisp.org>
39197
39198         Don't install charset.alias on MacOS X >= 10.3.
39199         * lib/localcharset.c (DARWIN7): New macro.
39200         (get_charset_aliases): Hardcode the result for Darwin7.
39201         * modules/localcharset (install-exec-local): Don't install
39202         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
39203
39204 2009-01-25  Bruno Haible  <bruno@clisp.org>
39205
39206         Don't install charset.alias on mingw and Cygwin.
39207         * modules/localcharset (install-exec-local): Don't install
39208         charset.alias on mingw and Cygwin, if the file does not yet exist.
39209         The result for these platforms is hardcoded in localcharset.c.
39210
39211 2009-01-25  Bruno Haible  <bruno@clisp.org>
39212
39213         Make it possible again to use AC_GNU_SOURCE together with gnulib.
39214         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
39215         before requiring AC_USE_SYSTEM_EXTENSIONS.
39216
39217 2009-01-25  Jim Meyering  <meyering@redhat.com>
39218
39219         c-strtod: avoid warnings
39220         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
39221         "assignment discards qualifiers from pointer target type" warnings.
39222
39223 2009-01-24  Bruno Haible  <bruno@clisp.org>
39224
39225         Add support for non-UTF-8 locales on MacOS X.
39226         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
39227         canonical encodings. For Darwin 7 and newer, don't map traditional
39228         encodings to UTF-8.
39229         Reported by Vincent Lefevre <vincent@vinc17.org>
39230         at <http://savannah.gnu.org/bugs/?25235>.
39231
39232 2009-01-24  Bruno Haible  <bruno@clisp.org>
39233
39234         * doc/gnulib.texi (Obsolete modules): New section.
39235         Reported by Mike Frysinger <vapier@gentoo.org>.
39236
39237 2009-01-24  Bruno Haible  <bruno@clisp.org>
39238
39239         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
39240         (%.dvi): New rule.
39241
39242 2009-01-24  Bruno Haible  <bruno@clisp.org>
39243
39244         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
39245         Reported by Eric Blake.
39246
39247 2009-01-24  Bruno Haible  <bruno@clisp.org>
39248
39249         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
39250         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
39251         Reported by Gary V. Vaughan <gary@gnu.org>.
39252
39253 2009-01-24  Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
39256
39257 2009-01-23  Bruno Haible  <bruno@clisp.org>
39258
39259         Make c-strtod, c-strtold usable in libraries.
39260         * lib/c-strtod.c: Include string.h instead of xalloc.h.
39261         (C_STRTOD): Call strdup instead of xstrdup.
39262         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
39263         * modules/c-strtold (Depends-on): Likewise.
39264         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
39265         * NEWS: Mention the change.
39266         Reported by Michael Gold <mgold@ncf.ca>.
39267
39268 2009-01-23  Jim Meyering  <meyering@redhat.com>
39269
39270         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
39271         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
39272         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
39273
39274 2009-01-23  Simon Josefsson  <simon@josefsson.org>
39275
39276         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
39277         GNU CoreUtils.
39278         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
39279         * modules/version-etc (Description): Update.
39280
39281 2009-01-22  Bruno Haible  <bruno@clisp.org>
39282
39283         Cache the C locale object.
39284         * lib/c-strtod.c (c_locale_cache): New variable.
39285         (c_locale): New function.
39286         (C_STRTOD): Use it, and don't call freelocale.
39287         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
39288         Suggested by Paolo Bonzini.
39289
39290 2009-01-21  Bruno Haible  <bruno@clisp.org>
39291
39292         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
39293         conditions other than overflow.
39294
39295 2009-01-21  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/c-strtod.c: Include errno.h.
39298         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
39299         value from STRTOD_L and STRTOD.
39300
39301 2009-01-21  Bruno Haible  <bruno@clisp.org>
39302         and Jim Meyering  <meyering@redhat.com>
39303
39304         nanosleep: skip configure test (fail it) for apple universal builds
39305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
39306         universal builds, assume that nanosleep does not work.
39307         * modules/nanosleep (Depends-on): Add multiarch.
39308
39309         mktime: skip configure test (fail it) for apple universal builds
39310         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
39311         universal builds, assume that mktime does not work.
39312         * modules/mktime (Depends-on): Add multiarch.
39313
39314 2009-01-21  Eric Blake  <ebb9@byu.net>
39315
39316         multiarch: avoid expand-before-require warning
39317         * modules/multiarch (configure.ac): Require, rather than expand,
39318         gl_MULTIARCH.
39319         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
39320         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
39321         enforce that all clients require it.  Partial reversion of
39322         2008-12-29 patch.
39323
39324         error: avoid expand-before-require warning
39325         * modules/errno (configure.ac): Require, rather than expand,
39326         gl_HEADER_ERRNO_H.
39327         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
39328         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
39329         enforce that all clients require it.
39330
39331         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
39332         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
39333         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
39334         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
39335
39336 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
39337
39338         Revert:
39339         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39340
39341         regex: do not depend on obsolete modules.
39342         * modules/regex: Remove memcmp and memmove.
39343
39344 2009-01-20  Bruno Haible  <bruno@clisp.org>
39345
39346         Make the 'link' module link on Windows NT 4.
39347         * lib/link.c (_WIN32_WINNT): Don't define.
39348         (CreateHardLinkFuncType): New type.
39349         (CreateHardLinkFunc, initialized): New variables.
39350         (initialize): New function.
39351         (link): Invoke CreateHardLink indirectly through the function pointer.
39352
39353 2009-01-20  Bruno Haible  <bruno@clisp.org>
39354
39355         Fix compilation failure on mingw.
39356         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
39357
39358 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
39359
39360         * doc/c-strtod.texi: Mention a couple of restrictions.
39361
39362 2009-01-20  Jim Meyering  <meyering@redhat.com>
39363
39364         gettimeofday: move more declarations out of functions
39365         * lib/gettimeofday.c: Move extern declarations of tzset and
39366         gmtime out of containing functions.  Prompted by Bruno Haible.
39367
39368 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39369
39370         regex: do not depend on obsolete modules.
39371         * modules/regex: Remove memcmp and memmove.
39372
39373 2009-01-19  Bruno Haible  <bruno@clisp.org>
39374
39375         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39376         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
39377         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39378         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
39379         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
39380
39381 2009-01-19  Bruno Haible  <bruno@clisp.org>
39382
39383         * tests/test-link.c: Include <errno.h>.
39384         (main): Exit with code 77 when a hard link cannot be created due to
39385         the file system.
39386         * tests/test-link.sh: Skip test when a hard link cannot be created due
39387         to the file system.
39388         Suggested by Eric Blake.
39389
39390 2009-01-19  Martin Lambers  <marlam@marlam.de>
39391
39392         * modules/link-tests: New file.
39393         * tests/test-link.sh: New file.
39394         * tests/test-link.c: New file.
39395
39396 2009-01-19  Eric Blake  <ebb9@byu.net>
39397
39398         doc: mention another function added in cygwin 1.7.0
39399         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
39400         Another new function in cygwin 1.7.
39401
39402 2009-01-19  Bruno Haible  <bruno@clisp.org>
39403
39404         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39405         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
39406         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
39407         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39408         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39409         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39410         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39411         * m4/md4.m4 (gl_MD4): Likewise.
39412         * m4/md5.m4 (gl_MD5): Likewise.
39413         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
39414         * m4/sha1.m4 (gl_SHA1): Likewise.
39415         * m4/sha256.m4 (gl_SHA256): Likewise.
39416         * m4/sha512.m4 (gl_SHA512): Likewise.
39417
39418 2009-01-19  Bruno Haible  <bruno@clisp.org>
39419
39420         * modules/uniname/uniname-tests (Depends-on): Add progname.
39421         * tests/uniname/test-uninames.c: Include progname.h.
39422         (main): Call set_program_name.
39423
39424         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
39425         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
39426         (main): Call set_program_name.
39427
39428         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
39429         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
39430         (main): Call set_program_name.
39431
39432         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
39433         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
39434         (main): Call set_program_name.
39435
39436         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
39437         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
39438         (main): Call set_program_name.
39439
39440         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
39441         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
39442         (main): Call set_program_name.
39443
39444         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
39445         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
39446         (main): Call set_program_name.
39447
39448         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
39449         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
39450         (main): Call set_program_name.
39451
39452         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
39453         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
39454         (main): Call set_program_name.
39455
39456 2009-01-19  Eric Blake  <ebb9@byu.net>
39457
39458         test-unistd: test previous patch
39459         * tests/test-unistd.c: Test *_FILENO macros.
39460
39461         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
39462         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39463         Guarantee a definition.
39464         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
39465         * modules/unistd-safer (Depends-on): Add dependency on unistd.
39466         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
39467         * lib/dup-safer.c (STDERR_FILENO): Likewise.
39468         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39469         Likewise.
39470         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
39471         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
39472         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39473         Likewise.
39474         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
39475         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
39476         (STDERR_FILENO): Likewise.
39477         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
39478         (STDERR_FILENO): Likewise.
39479         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
39480         (STDERR_FILENO): Likewise.
39481         Reported by Elbert Pol.
39482
39483 2009-01-19  Eric Blake  <ebb9@byu.net>
39484
39485         doc: mention more functions added in cygwin 1.7.0
39486         * doc/posix-functions/abort.texi (abort): Update wording related
39487         to cygwin.
39488         * doc/posix-functions/daylight.texi (daylight): Likewise.
39489         * doc/posix-functions/optarg.texi (optarg): Likewise.
39490         * doc/posix-functions/optarg.texi (opterr): Likewise.
39491         * doc/posix-functions/optarg.texi (optind): Likewise.
39492         * doc/posix-functions/optarg.texi (optopt): Likewise.
39493         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
39494         worked in 1.5.x, and was withdrawn in 1.7.
39495         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
39496         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
39497         cygwin versions.
39498         * doc/posix-functions/perror.texi (perror): Likewise.
39499         * doc/posix-functions/printf.texi (printf): Likewise.
39500         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
39501         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
39502         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39503         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39504         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39505         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
39506         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39507         Likewise.
39508         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39509         Likewise.
39510         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
39511         this function.
39512         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
39513         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
39514         Likewise.
39515         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
39516         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
39517         * doc/posix-functions/confstr.texi (confstr): Likewise.
39518         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
39519         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
39520         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
39521         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
39522         * doc/posix-functions/fputws.texi (fputws): Likewise.
39523         * doc/posix-functions/fwide.texi (fwide): Likewise.
39524         * doc/posix-functions/getwc.texi (getwc): Likewise.
39525         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
39526         * doc/posix-functions/putwc.texi (putwc): Likewise.
39527         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
39528         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
39529         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
39530         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
39531         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
39532         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
39533         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
39534         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
39535         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
39536         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
39537         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
39538
39539 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39540
39541         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
39542         * lib/ioctl.c: Include <sys/ioctl.h>.
39543
39544 2009-01-19  Simon Josefsson  <simon@josefsson.org>
39545
39546         * modules/getdate-tests (Depends-on): Add progname.
39547         * tests/test-getdate.c: Use progname module, to avoid link errors
39548         on non-glibc systems.
39549
39550 2009-01-18  Simon Josefsson  <simon@josefsson.org>
39551
39552         * modules/filenamecat-tests (Depends-on): Add progname.
39553         * modules/fstrcmp-tests (Depends-on): Likewise.
39554
39555         * tests/test-filenamecat.c: Use progname module, to avoid link
39556         errors on non-glibc systems.
39557         * tests/test-fstrcmp.c: Likewise.
39558
39559 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39560
39561         gettimeofday: avoid warning: nested extern declaration of 'localtime'
39562         * lib/gettimeofday.c: Move extern declaration out of function.
39563
39564 2009-01-18  Bruno Haible  <bruno@clisp.org>
39565
39566         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
39567         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
39568         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
39569
39570 2009-01-18  Bruno Haible  <bruno@clisp.org>
39571
39572         * lib/strftime.c (MEMPCPY): Remove unused macro.
39573         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
39574
39575 2009-01-18  Martin Lambers  <marlam@marlam.de>
39576
39577         New module 'link'.
39578         * lib/unistd.in.h (link): New declaration.
39579         * lib/link.c: New file.
39580         * m4/link.m4: New file.
39581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
39582         HAVE_LINK.
39583         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
39584         * modules/link: New file.
39585         * doc/posix-functions/link.texi: Mention the new module.
39586
39587 2009-01-18  Bruno Haible  <bruno@clisp.org>
39588
39589         * tests/test-avltree_list.c (main): Call set_program_name.
39590         * tests/test-avltree_oset.c (main): Likewise.
39591         * tests/test-obstack-printf.c: Include progname.h.
39592         (main): Call set_program_name.
39593         * tests/test-quotearg.c: Include progname.h.
39594         (main): Call set_program_name.
39595         * tests/test-xmemdup0.c: Include progname.h.
39596         (main): Call set_program_name.
39597
39598 2009-01-18  Bruno Haible  <bruno@clisp.org>
39599
39600         New module 'alphasort'.
39601         * lib/dirent.in.h (alphasort): New declaration.
39602         * lib/alphasort.c: New file, from glibc with modifications.
39603         * m4/alphasort.m4: New file.
39604         * modules/alphasort: New file.
39605         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
39606         HAVE_ALPHASORT.
39607         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
39608         HAVE_ALPHASORT.
39609         * doc/posix-functions/alphasort.texi: Mention the new module and the
39610         portability problems.
39611
39612 2009-01-18  Bruno Haible  <bruno@clisp.org>
39613
39614         New module 'scandir'.
39615         * lib/dirent.in.h (scandir): New declaration.
39616         * lib/scandir.c: New file, from glibc with modifications.
39617         * m4/scandir.m4: New file.
39618         * modules/scandir: New file.
39619         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
39620         HAVE_SCANDIR.
39621         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
39622         HAVE_SCANDIR.
39623         * doc/posix-functions/scandir.texi: Mention the new module and the
39624         portability problems.
39625
39626 2009-01-17  Bruno Haible  <bruno@clisp.org>
39627
39628         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
39629         Update documentation.
39630         (func_remove_suffix): Escape all dots in the suffix. Update
39631         documentation.
39632         (func_filter_filelist): Update documentation.
39633         Reported by Ralf Wildenhues.
39634
39635 2009-01-17  Bruno Haible  <bruno@clisp.org>
39636
39637         * modules/dprintf-posix-tests: New file.
39638         * tests/test-dprintf-posix.sh: New file.
39639         * tests/test-dprintf-posix.c: New file.
39640
39641         New modules 'dprintf', 'dprintf-posix'.
39642         * lib/stdio.in.h (dprintf): New declaration.
39643         * lib/dprintf.c: New file.
39644         * m4/dprintf.m4: New file.
39645         * m4/dprintf-posix.m4: New file.
39646         * modules/dprintf: New file.
39647         * modules/dprintf-posix: New file.
39648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
39649         HAVE_DPRINTF, REPLACE_DPRINTF.
39650         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
39651         HAVE_DPRINTF, REPLACE_DPRINTF.
39652         * doc/posix-functions/dprintf.texi: Mention the new modules.
39653
39654 2009-01-17  Bruno Haible  <bruno@clisp.org>
39655
39656         * modules/vdprintf-posix-tests: New file.
39657         * tests/test-vdprintf-posix.sh: New file.
39658         * tests/test-vdprintf-posix.c: New file.
39659
39660         New modules 'vdprintf', 'vdprintf-posix'.
39661         * lib/stdio.in.h (vdprintf): New declaration.
39662         * lib/vdprintf.c: New file.
39663         * m4/vdprintf.m4: New file.
39664         * m4/vdprintf-posix.m4: New file.
39665         * modules/vdprintf: New file.
39666         * modules/vdprintf-posix: New file.
39667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39668         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39669         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39670         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39671         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39672
39673 2009-01-17  Bruno Haible  <bruno@clisp.org>
39674
39675         Fix replacement of fopen on mingw.
39676         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39677         mingw.
39678
39679 2009-01-17  Bruno Haible  <bruno@clisp.org>
39680
39681         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39682         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39683
39684 2009-01-17  Bruno Haible  <bruno@clisp.org>
39685
39686         Avoid test-fflush2.sh failure on mingw.
39687         * tests/test-fflush2.c: Include binary-io.h.
39688         (main): Put standard input into binary mode.
39689         * modules/fflush-tests (Depends-on): Add binary-io.
39690
39691 2009-01-17  Bruno Haible  <bruno@clisp.org>
39692
39693         * lib/wchar.in.h: In another particular situation, include only the
39694         system's <wchar.h> file.
39695         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39696         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39697         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39698
39699 2009-01-17  Bruno Haible  <bruno@clisp.org>
39700
39701         Support for stripping executables in --enable-relocatable.
39702         * build-aux/install-reloc: Expect one more argument, or an environment
39703         variable RELOC_STRIP_PROG. If set, strip the destination program and
39704         its wrapper.
39705         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39706         RELOC_STRIP_PROG.
39707         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39708         to set RELOCATABLE_STRIP.
39709         * NEWS: Mention the new Makefile requirement.
39710
39711 2009-01-17  Bruno Haible  <bruno@clisp.org>
39712
39713         * build-aux/install-reloc: Remove debugging information left over by
39714         C compiler on MacOS X.
39715
39716 2009-01-17  Bruno Haible  <bruno@clisp.org>
39717
39718         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39719         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39720         _NSGetExecutablePath.
39721
39722 2009-01-16  Jim Meyering  <meyering@redhat.com>
39723
39724         strerror: avoid warnings about discarding "const"
39725         * lib/strerror.c (rpl_strerror): Instead of returning a const
39726         string from each and every "case", use a variable, and add a single
39727         cast after the switch.
39728
39729 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39730
39731         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39732
39733 2009-01-16  Bruno Haible  <bruno@clisp.org>
39734
39735         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39736         array initializer syntax that also works in C++ mode.
39737         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39738
39739 2009-01-16  Jim Meyering  <meyering@redhat.com>
39740
39741         poll: suppress a warning
39742         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39743         to ignore "...unsigned expression < 0 is always false" warnings.
39744
39745 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39746
39747         poll: remove declarations of unused variables
39748         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39749         sockbuf and optlen.
39750
39751 2009-01-15  Bruno Haible  <bruno@clisp.org>
39752
39753         Make fflush-after-ungetc POSIX compliant on BSD systems.
39754         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39755         (clear_ungetc_buffer): Implement also for other systems.
39756         (rpl_fflush): On glibc systems, invoke
39757         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39758         clear_ungetc_buffer after fetching the stream's position, not before.
39759
39760 2009-01-15  Bruno Haible  <bruno@clisp.org>
39761
39762         Make fflush-after-ungetc POSIX compliant on glibc systems.
39763         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39764         after ungetc.
39765         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39766         (rpl_fflush): On glibc systems, simply call the system's fflush
39767         function after clearing the ungetc buffer.
39768         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39769         Instead, lseek only to the end of file, then use the system's fseeko
39770         for the rest. On glibc systems, reset the EOF indicator bit.
39771
39772 2009-01-15  Jim Meyering  <meyering@redhat.com>
39773
39774         openmp.m4: revert quote-adding change, for portability to older autoconf
39775         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39776         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39777         Simon Josefsson noticed the problem when using autoconf-2.61.
39778
39779 2009-01-15  Bruno Haible  <bruno@clisp.org>
39780
39781         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39782         * tests/test-fflush2.c (ASSERT): Always fail.
39783         (main): Add two tests for fflush() after ungetc(), taking into account
39784         the Austin Group's clarification.
39785         Suggested by Eric Blake.
39786
39787 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39788
39789         mktime.m4: remove K&R-style function prototypes
39790         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39791         for the Sun C++ compiler.
39792
39793 2009-01-14  Bruno Haible  <bruno@clisp.org>
39794
39795         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39796         while including <wchar.h>.
39797         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39798         the system's <wchar.h> file.
39799         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39800
39801 2009-01-14  Bruno Haible  <bruno@clisp.org>
39802
39803         * m4/csharp.m4: Don't mention gettext on the serial number line.
39804         * m4/csharpexec.m4: Likewise.
39805         * m4/eaccess.m4: Likewise.
39806         * m4/javaexec.m4: Likewise.
39807         * m4/sig_atomic_t.m4: Likewise.
39808         * m4/tmpdir.m4: Likewise.
39809         * m4/intldir.m4: Bump gettext version.
39810         * m4/lib-ld.m4: Likewise.
39811
39812 2009-01-14  Bruno Haible  <bruno@clisp.org>
39813
39814         * lib/progname.c (set_program_name): Add more comments.
39815         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39816
39817 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39818
39819         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39820         were sys/stat.h does not define it.
39821
39822 2009-01-14  Jim Meyering  <meyering@redhat.com>
39823
39824         many *.m4 files: improve m4 quoting
39825         99% of this change was performed by running the following commands:
39826         git ls-files | grep '\.m4$' | xargs perl -pi \
39827           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39828           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39829           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39830           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39831         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39832         The remainder were to add Copyright dates, increment serial numbers,
39833         undo some changes in comments, exclude m4/intl.m4, and add quotes
39834         around the "1" in ",1" where the unusual spacing prohibited the
39835         above regexps from doing the job.  For more details, see
39836         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39837         * m4/acl.m4: Modified.
39838         * m4/afs.m4: Likewise.
39839         * m4/alloca.m4: Likewise.
39840         * m4/argp.m4: Likewise.
39841         * m4/argz.m4: Likewise.
39842         * m4/atexit.m4: Likewise.
39843         * m4/bison-i18n.m4: Likewise.
39844         * m4/bison.m4: Likewise.
39845         * m4/byteswap.m4: Likewise.
39846         * m4/c-stack.m4: Likewise.
39847         * m4/c-strtod.m4: Likewise.
39848         * m4/calloc.m4: Likewise.
39849         * m4/canonicalize-lgpl.m4: Likewise.
39850         * m4/chown.m4: Likewise.
39851         * m4/clock_time.m4: Likewise.
39852         * m4/codeset.m4: Likewise.
39853         * m4/copy-file.m4: Likewise.
39854         * m4/csharp.m4: Likewise.
39855         * m4/csharpcomp.m4: Likewise.
39856         * m4/csharpexec.m4: Likewise.
39857         * m4/d-ino.m4: Likewise.
39858         * m4/d-type.m4: Likewise.
39859         * m4/dirfd.m4: Likewise.
39860         * m4/double-slash-root.m4: Likewise.
39861         * m4/eaccess.m4: Likewise.
39862         * m4/eealloc.m4: Likewise.
39863         * m4/environ.m4: Likewise.
39864         * m4/errno_h.m4: Likewise.
39865         * m4/euidaccess.m4: Likewise.
39866         * m4/execute.m4: Likewise.
39867         * m4/fatal-signal.m4: Likewise.
39868         * m4/fchdir.m4: Likewise.
39869         * m4/fcntl_h.m4: Likewise.
39870         * m4/fileblocks.m4: Likewise.
39871         * m4/filenamecat.m4: Likewise.
39872         * m4/findprog.m4: Likewise.
39873         * m4/flexmember.m4: Likewise.
39874         * m4/fnmatch.m4: Likewise.
39875         * m4/fopen.m4: Likewise.
39876         * m4/fpending.m4: Likewise.
39877         * m4/fprintf-posix.m4: Likewise.
39878         * m4/free.m4: Likewise.
39879         * m4/frexp.m4: Likewise.
39880         * m4/frexpl.m4: Likewise.
39881         * m4/fsusage.m4: Likewise.
39882         * m4/ftruncate.m4: Likewise.
39883         * m4/gc-camellia.m4: Likewise.
39884         * m4/gc-random.m4: Likewise.
39885         * m4/gc.m4: Likewise.
39886         * m4/getaddrinfo.m4: Likewise.
39887         * m4/getcwd-abort-bug.m4: Likewise.
39888         * m4/getcwd-path-max.m4: Likewise.
39889         * m4/getdate.m4: Likewise.
39890         * m4/getdomainname.m4: Likewise.
39891         * m4/getgroups.m4: Likewise.
39892         * m4/gethostname.m4: Likewise.
39893         * m4/gethrxtime.m4: Likewise.
39894         * m4/getline.m4: Likewise.
39895         * m4/getloadavg.m4: Likewise.
39896         * m4/getndelim2.m4: Likewise.
39897         * m4/getpass.m4: Likewise.
39898         * m4/gettext.m4: Likewise.
39899         * m4/gettime.m4: Likewise.
39900         * m4/gettimeofday.m4: Likewise.
39901         * m4/gnulib-common.m4: Likewise.
39902         * m4/group-member.m4: Likewise.
39903         * m4/host-os.m4: Likewise.
39904         * m4/iconv.m4: Likewise.
39905         * m4/iconv_open.m4: Likewise.
39906         * m4/inet_ntop.m4: Likewise.
39907         * m4/inet_pton.m4: Likewise.
39908         * m4/inline.m4: Likewise.
39909         * m4/intldir.m4: Likewise.
39910         * m4/intlmacosx.m4: Likewise.
39911         * m4/intmax.m4: Likewise.
39912         * m4/intmax_t.m4: Likewise.
39913         * m4/inttypes.m4: Likewise.
39914         * m4/inttypes_h.m4: Likewise.
39915         * m4/inttypes-pri.m4: Likewise.
39916         * m4/isapipe.m4: Likewise.
39917         * m4/isnand.m4: Likewise.
39918         * m4/isnanf.m4: Likewise.
39919         * m4/isnanl.m4: Likewise.
39920         * m4/javacomp.m4: Likewise.
39921         * m4/javaexec.m4: Likewise.
39922         * m4/jm-winsz1.m4: Likewise.
39923         * m4/jm-winsz2.m4: Likewise.
39924         * m4/lchown.m4: Likewise.
39925         * m4/lcmessage.m4: Likewise.
39926         * m4/ldexpl.m4: Likewise.
39927         * m4/lib-ld.m4: Likewise.
39928         * m4/lib-link.m4: Likewise.
39929         * m4/libsigsegv.m4: Likewise.
39930         * m4/link-follow.m4: Likewise.
39931         * m4/localcharset.m4: Likewise.
39932         * m4/locale-fr.m4: Likewise.
39933         * m4/locale-ja.m4: Likewise.
39934         * m4/locale-tr.m4: Likewise.
39935         * m4/locale-zh.m4: Likewise.
39936         * m4/lock.m4: Likewise.
39937         * m4/longlong.m4: Likewise.
39938         * m4/ls-mntd-fs.m4: Likewise.
39939         * m4/lstat.m4: Likewise.
39940         * m4/malloc.m4: Likewise.
39941         * m4/mathl.m4: Likewise.
39942         * m4/mbrtowc.m4: Likewise.
39943         * m4/mbstate_t.m4: Likewise.
39944         * m4/mbswidth.m4: Likewise.
39945         * m4/memchr.m4: Likewise.
39946         * m4/memcmp.m4: Likewise.
39947         * m4/memcpy.m4: Likewise.
39948         * m4/memmem.m4: Likewise.
39949         * m4/memmove.m4: Likewise.
39950         * m4/mempcpy.m4: Likewise.
39951         * m4/memrchr.m4: Likewise.
39952         * m4/memset.m4: Likewise.
39953         * m4/minmax.m4: Likewise.
39954         * m4/mkdir-slash.m4: Likewise.
39955         * m4/mkdtemp.m4: Likewise.
39956         * m4/mktime.m4: Likewise.
39957         * m4/mmap-anon.m4: Likewise.
39958         * m4/mountlist.m4: Likewise.
39959         * m4/nanosleep.m4: Likewise.
39960         * m4/nls.m4: Likewise.
39961         * m4/nocrash.m4: Likewise.
39962         * m4/open.m4: Likewise.
39963         * m4/openat.m4: Likewise.
39964         * m4/openmp.m4: Likewise.
39965         * m4/pathmax.m4: Likewise.
39966         * m4/perl.m4: Likewise.
39967         * m4/physmem.m4: Likewise.
39968         * m4/pipe.m4: Likewise.
39969         * m4/po.m4: Likewise.
39970         * m4/poll.m4: Likewise.
39971         * m4/posixtm.m4: Likewise.
39972         * m4/posixver.m4: Likewise.
39973         * m4/printf-frexp.m4: Likewise.
39974         * m4/printf-frexpl.m4: Likewise.
39975         * m4/printf-posix.m4: Likewise.
39976         * m4/printf-posix-rpl.m4: Likewise.
39977         * m4/printf.m4: Likewise.
39978         * m4/progtest.m4: Likewise.
39979         * m4/putenv.m4: Likewise.
39980         * m4/readline.m4: Likewise.
39981         * m4/readlink.m4: Likewise.
39982         * m4/readutmp.m4: Likewise.
39983         * m4/realloc.m4: Likewise.
39984         * m4/regex.m4: Likewise.
39985         * m4/relocatable.m4: Likewise.
39986         * m4/relocatable-lib.m4: Likewise.
39987         * m4/rename-dest-slash.m4: Likewise.
39988         * m4/rename.m4: Likewise.
39989         * m4/rmdir-errno.m4: Likewise.
39990         * m4/rmdir.m4: Likewise.
39991         * m4/roundf.m4: Likewise.
39992         * m4/roundl.m4: Likewise.
39993         * m4/rpmatch.m4: Likewise.
39994         * m4/save-cwd.m4: Likewise.
39995         * m4/selinux-selinux-h.m4: Likewise.
39996         * m4/setenv.m4: Likewise.
39997         * m4/settime.m4: Likewise.
39998         * m4/sig2str.m4: Likewise.
39999         * m4/sig_atomic_t.m4: Likewise.
40000         * m4/signalblocking.m4: Likewise.
40001         * m4/signbit.m4: Likewise.
40002         * m4/sigpipe.m4: Likewise.
40003         * m4/sockets.m4: Likewise.
40004         * m4/sockpfaf.m4: Likewise.
40005         * m4/st_dm_mode.m4: Likewise.
40006         * m4/stat-time.m4: Likewise.
40007         * m4/stdbool.m4: Likewise.
40008         * m4/stdint.m4: Likewise.
40009         * m4/stdint_h.m4: Likewise.
40010         * m4/stpcpy.m4: Likewise.
40011         * m4/stpncpy.m4: Likewise.
40012         * m4/strcase.m4: Likewise.
40013         * m4/strchrnul.m4: Likewise.
40014         * m4/strcspn.m4: Likewise.
40015         * m4/strdup.m4: Likewise.
40016         * m4/strftime.m4: Likewise.
40017         * m4/strndup.m4: Likewise.
40018         * m4/strnlen.m4: Likewise.
40019         * m4/strpbrk.m4: Likewise.
40020         * m4/strptime.m4: Likewise.
40021         * m4/strsep.m4: Likewise.
40022         * m4/strtod.m4: Likewise.
40023         * m4/strtoimax.m4: Likewise.
40024         * m4/strtok_r.m4: Likewise.
40025         * m4/strtol.m4: Likewise.
40026         * m4/strtoll.m4: Likewise.
40027         * m4/strtoul.m4: Likewise.
40028         * m4/strtoull.m4: Likewise.
40029         * m4/strtoumax.m4: Likewise.
40030         * m4/strverscmp.m4: Likewise.
40031         * m4/threadlib.m4: Likewise.
40032         * m4/timegm.m4: Likewise.
40033         * m4/tm_gmtoff.m4: Likewise.
40034         * m4/tmpdir.m4: Likewise.
40035         * m4/tmpfile.m4: Likewise.
40036         * m4/tzset.m4: Likewise.
40037         * m4/uintmax_t.m4: Likewise.
40038         * m4/unlinkdir.m4: Likewise.
40039         * m4/unlocked-io.m4: Likewise.
40040         * m4/uptime.m4: Likewise.
40041         * m4/userspec.m4: Likewise.
40042         * m4/utimbuf.m4: Likewise.
40043         * m4/utime.m4: Likewise.
40044         * m4/utimes-null.m4: Likewise.
40045         * m4/utimes.m4: Likewise.
40046         * m4/vararrays.m4: Likewise.
40047         * m4/vasnprintf.m4: Likewise.
40048         * m4/vfprintf-posix.m4: Likewise.
40049         * m4/vprintf-posix.m4: Likewise.
40050         * m4/wait-process.m4: Likewise.
40051         * m4/wchar_t.m4: Likewise.
40052         * m4/wint_t.m4: Likewise.
40053         * m4/write-any-file.m4: Likewise.
40054         * m4/yield.m4: Likewise.
40055
40056 2009-01-13  Bruno Haible  <bruno@clisp.org>
40057
40058         Avoid test-copy-file.sh failures when ACL support insufficient.
40059         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
40060         TESTS_ENVIRONMENT.
40061         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
40062         Reported by Jim Meyering.
40063
40064 2009-01-13  Bruno Haible  <bruno@clisp.org>
40065
40066         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
40067         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
40068         * modules/unistdio/u8-printf-parse (Files): Likewise.
40069         * modules/unistdio/u32-printf-parse (Files): Likewise.
40070         * modules/unistdio/ulc-printf-parse (Files): Likewise.
40071
40072 2009-01-13  Simon Josefsson  <simon@josefsson.org>
40073
40074         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
40075         and m4/inttypes_h.m4 too.
40076
40077 2009-01-12  Eric Blake  <ebb9@byu.net>
40078
40079         tests: IRIX 6.2 cc can't compile -0.0 into .data
40080         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
40081         rather than at compile-time.
40082         * tests/test-floorl.c (minus_zero): Likewise.
40083         * tests/test-frexpl.c (minus_zero): Likewise.
40084         * tests/test-isnan.c (minus_zerol): Likewise.
40085         * tests/test-isnanl.h (minus_zero): Likewise.
40086         * tests/test-ldexpl.c (minus_zero): Likewise.
40087         * tests/test-roundl.c (minus_zero): Likewise.
40088         * tests/test-signbit.c (minus_zerol): Likewise.
40089         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40090         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40091         * tests/test-truncl.c (minus_zero): Likewise.
40092         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40093         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40094         Reported by Tom G. Christensen and Nelson H. F. Beebe.
40095
40096 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40097
40098         regex: fix glibc bug 9697
40099         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
40100         handling.
40101
40102 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40103
40104         regex: fix glibc bug 697
40105         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
40106         being NULL also if there are no backreferences.
40107
40108 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40109
40110         regex: merge glibc changes
40111         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
40112         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
40113         re_string_skip_chars, re_string_reconstruct): Likewise.
40114         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
40115
40116 2009-01-07  Jim Meyering  <meyering@redhat.com>
40117
40118         poll: filter through cppi
40119         * lib/poll.c: Indent cpp directives to reflect nesting.
40120
40121 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
40122
40123         poll: don't return uninitialized
40124         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
40125
40126 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
40127
40128         avoid compile failure on AIX 6.1
40129         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
40130         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
40131
40132 2009-01-04  Jim Meyering  <meyering@redhat.com>
40133
40134         remove duplicate inclusion of <stdio.h>
40135         * tests/test-fprintf-posix.c: Likewise.
40136         * tests/test-printf-posix.c: Likewise.
40137         * tests/test-snprintf-posix.c: Likewise.
40138         * tests/test-sprintf-posix.c: Likewise.
40139         * tests/test-vasprintf-posix.c: Likewise.
40140         * tests/test-vfprintf-posix.c: Likewise.
40141         * tests/test-vprintf-posix.c: Likewise.
40142         * tests/test-vsnprintf-posix.c: Likewise.
40143         * tests/test-vsprintf-posix.c: Likewise.
40144
40145 2009-01-03  Jim Meyering  <meyering@redhat.com>
40146
40147         gnulib-tool: fix sed-based filtering
40148         * gnulib-tool (func_filter_filelist): Remove extra backslash
40149         in sed_fff_filter definition.
40150
40151 2009-01-02  Jim Meyering  <meyering@redhat.com>
40152
40153         strftime: avoid compilation failure on Solaris 2.6
40154         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
40155         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
40156         Don't #define mbrlen or mbsinit, since now they're guaranteed to
40157         be available.  Reported by Tom G. Christensen.  Details in
40158         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
40159
40160 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40161             Bruno Haible  <bruno@clisp.org>
40162
40163         Speed up gnulib-tool by doing more string processing through shell
40164         built-ins.
40165         * gnulib-tool (fast_func_append): New variable.
40166         (func_remove_prefix, func_remove_suffix): New functions.
40167         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
40168         (func_filter_filelist): New function.
40169         (func_get_dependencies): Use func_remove_suffix instead of sed.
40170         (func_get_automake_snippet): Use func_filter_filelist instead of a
40171         subshell and sed invocation.
40172
40173 2009-01-01  Bruno Haible  <bruno@clisp.org>
40174
40175         Fix a security bug.
40176         * gnulib-tool (func_import, import, update): Don't allow the characters
40177         '"', '$', '`', '\' in macro arguments that become part of commands that
40178         are evaluated.
40179
40180 2009-01-01  Bruno Haible  <bruno@clisp.org>
40181
40182         * gnulib-tool (func_reset_sigpipe): Add more comments.
40183
40184 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40185
40186         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
40187         func_emit_tests_Makefile_am, func_import): Abort loops early if we
40188         already know the answer.
40189
40190 2009-01-01  Jim Meyering  <meyering@redhat.com>
40191
40192         * lib/version-etc.c (version_etc_va): Update copyright year.
40193
40194 2008-12-30  Bruno Haible  <bruno@clisp.org>
40195
40196         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
40197         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
40198         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
40199
40200 2008-12-29  Eric Blake  <ebb9@byu.net>
40201
40202         multiarch: avoid autoconf AC_REQUIRE bug
40203         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
40204         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
40205         2.63 and older.
40206         Reported by Bruno Haible, and analyzed in
40207         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
40208
40209 2008-12-29  Bruno Haible  <bruno@clisp.org>
40210
40211         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
40212         files in subdirectories correctly.
40213         Reported by Ralf Wildenhues.
40214
40215 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40216
40217         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
40218         rather than 'join FILE -', for Solaris join.
40219
40220 2008-12-29  Bruno Haible  <bruno@clisp.org>
40221
40222         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
40223         quoting.
40224         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40225         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40226         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40227         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
40228         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40229         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40230         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40231         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40232         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40233         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40234         * m4/nls.m4 (AM_NLS): Likewise.
40235         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
40236         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40237         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40238         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40239         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40240         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40241         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
40242         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40243         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40244         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40245         * m4/xsize.m4 (gl_XSIZE): Likewise.
40246         Suggested by Jim Meyering.
40247
40248 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40249
40250         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
40251         * lib/parse-duration.c: use a switch instead of cascading if's.
40252
40253 2008-12-29  Eric Blake  <ebb9@byu.net>
40254
40255         wchar.h: supply WEOF on Irix 5.3
40256         * lib/wchar.in.h (wint_t): Also supply WEOF.
40257         * lib/wctype.in.h (wint_t): Likewise.
40258         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
40259         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
40260         Reported by Tom G. Christensen.
40261
40262 2008-12-26  Bruno Haible  <bruno@clisp.org>
40263
40264         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
40265         i486, i586, i686.
40266
40267 2008-12-26  Bruno Haible  <bruno@clisp.org>
40268
40269         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
40270
40271 2008-12-26  Bruno Haible  <bruno@clisp.org>
40272
40273         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
40274         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
40275         not __STDC_CONSTANT_MACROS.
40276         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40277
40278 2008-12-25  Bruno Haible  <bruno@clisp.org>
40279
40280         Add support for universal builds to vasnprintf.
40281         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
40282         universal builds, guess no.
40283         * modules/vasnprintf-posix (Depends-on): Add multiarch.
40284         * modules/vasprintf-posix (Depends-on): Likewise.
40285         * modules/fprintf-posix (Depends-on): Likewise.
40286         * modules/vfprintf-posix (Depends-on): Likewise.
40287         * modules/snprintf-posix (Depends-on): Likewise.
40288         * modules/vsnprintf-posix (Depends-on): Likewise.
40289         * modules/sprintf-posix (Depends-on): Likewise.
40290         * modules/vsprintf-posix (Depends-on): Likewise.
40291         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40292         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40293         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40294         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40295         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40296         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40297         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40298
40299         Add support for universal builds to <inttypes.h>.
40300         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
40301         _SCNu64_PREFIX): In Apple
40302         universal builds, define directly, using _LP64.
40303         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
40304         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
40305         * modules/inttypes (Depends-on): Add multiarch.
40306         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40307
40308         Add support for universal builds to <stdint.h>.
40309         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
40310         universal builds, define directly, using _LP64.
40311         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
40312         Apple universal builds, don't test for the size and suffix of ptrdiff_t
40313         and size_t.
40314         * modules/stdint (Depends-on): Add multiarch.
40315         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40316
40317         New module 'multiarch'.
40318         * modules/multiarch: New file.
40319         * m4/multiarch.m4: New file.
40320
40321 2008-12-25  Bruno Haible  <bruno@clisp.org>
40322
40323         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
40324
40325 2008-12-25  Bruno Haible  <bruno@clisp.org>
40326
40327         * modules/btowc (License): Relicense under LGPLv2+.
40328         * modules/mbsinit (License): Likewise.
40329         * modules/mbrtowc (License): Likewise.
40330         * modules/wcrtomb (License): Likewise.
40331         * modules/streq (License): Likewise.
40332         Reported by David Lutterkort <lutter@redhat.com>.
40333
40334 2008-12-23  Bruno Haible  <bruno@clisp.org>
40335
40336         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
40337
40338 2008-12-23  Bruno Haible  <bruno@clisp.org>
40339
40340         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
40341         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
40342         GETADDRINFO_LIB, not in LIBS.
40343         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
40344         * modules/canon-host (Link): Likewise.
40345         * NEWS: Mention the change.
40346         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
40347         GETADDRINFO_LIB.
40348
40349 2008-12-22  Bruno Haible  <bruno@clisp.org>
40350
40351         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
40352         * doc/posix-functions/iswalpha_l.texi: Likewise.
40353         * doc/posix-functions/iswblank_l.texi: Likewise.
40354         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40355         * doc/posix-functions/iswctype_l.texi: Likewise.
40356         * doc/posix-functions/iswdigit_l.texi: Likewise.
40357         * doc/posix-functions/iswgraph_l.texi: Likewise.
40358         * doc/posix-functions/iswlower_l.texi: Likewise.
40359         * doc/posix-functions/iswprint_l.texi: Likewise.
40360         * doc/posix-functions/iswpunct_l.texi: Likewise.
40361         * doc/posix-functions/iswspace_l.texi: Likewise.
40362         * doc/posix-functions/iswupper_l.texi: Likewise.
40363         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40364         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
40365         * doc/posix-functions/open_wmemstream.texi: Likewise.
40366         * doc/posix-functions/swscanf.texi: Likewise.
40367         * doc/posix-functions/towctrans_l.texi: Likewise.
40368         * doc/posix-functions/towlower.texi: Likewise.
40369         * doc/posix-functions/towlower_l.texi: Likewise.
40370         * doc/posix-functions/towupper.texi: Likewise.
40371         * doc/posix-functions/towupper_l.texi: Likewise.
40372         * doc/posix-functions/vfwprintf.texi: Likewise.
40373         * doc/posix-functions/vfwscanf.texi: Likewise.
40374         * doc/posix-functions/vswscanf.texi: Likewise.
40375         * doc/posix-functions/vwprintf.texi: Likewise.
40376         * doc/posix-functions/vwscanf.texi: Likewise.
40377         * doc/posix-functions/wcpcpy.texi: Likewise.
40378         * doc/posix-functions/wcpncpy.texi: Likewise.
40379         * doc/posix-functions/wcscasecmp.texi: Likewise.
40380         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
40381         * doc/posix-functions/wcscoll_l.texi: Likewise.
40382         * doc/posix-functions/wcsdup.texi: Likewise.
40383         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40384         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
40385         * doc/posix-functions/wcsnlen.texi: Likewise.
40386         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40387         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40388         * doc/posix-functions/wctrans_l.texi: Likewise.
40389         * doc/posix-functions/wctype_l.texi: Likewise.
40390         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
40391         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
40392         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
40393         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
40394         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
40395         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
40396         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
40397         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
40398         * doc/glibc-functions/wcschrnul.texi: Likewise.
40399         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40400         * doc/glibc-functions/wcstod_l.texi: Likewise.
40401         * doc/glibc-functions/wcstof_l.texi: Likewise.
40402         * doc/glibc-functions/wcstol_l.texi: Likewise.
40403         * doc/glibc-functions/wcstold_l.texi: Likewise.
40404         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40405         * doc/glibc-functions/wcstoq.texi: Likewise.
40406         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40407         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40408         * doc/glibc-functions/wcstouq.texi: Likewise.
40409         * doc/glibc-functions/wmempcpy.texi: Likewise.
40410
40411 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40412             Eric Blake  <ebb9@byu.net>
40413             Paolo Bonzini  <bonzini@gnu.org>
40414             Bruno Haible  <bruno@clisp.org>
40415
40416         Make c-stack work on Haiku.
40417         * lib/c-stack.c (SA_ONSTACK): Define fallback.
40418         (c_stack_action): Use SA_ONSTACK flag.
40419
40420 2008-12-22  Bruno Haible  <bruno@clisp.org>
40421
40422         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
40423
40424 2008-12-22  Bruno Haible  <bruno@clisp.org>
40425
40426         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
40427         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
40428         being overridden.
40429         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
40430         New macros.
40431         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
40432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
40433         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
40434         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
40435
40436 2008-12-22  Bruno Haible  <bruno@clisp.org>
40437
40438         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
40439         from test code.
40440
40441 2008-12-22  Eric Blake  <ebb9@byu.net>
40442
40443         Avoid gcc warnings on cygwin.
40444         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
40445         Avoid unused variable.
40446         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
40447         Likewise.
40448
40449 2008-12-22  Bruno Haible  <bruno@clisp.org>
40450
40451         Remove HAVE_MBRTOWC conditionals.
40452         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
40453         (mbscasecmp): Assume mbrtowc function.
40454         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
40455         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
40456         * lib/mbschr.c: Include mbuiter.h unconditionally.
40457         (mbschr): Assume mbrtowc function.
40458         * lib/mbscspn.c: Include mbuiter.h unconditionally.
40459         (mbscspn): Assume mbrtowc function.
40460         * lib/mbslen.c: Include mbuiter.h unconditionally.
40461         (mbslen): Assume mbrtowc function.
40462         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
40463         (mbsncasecmp): Assume mbrtowc function.
40464         * lib/mbsnlen.c: Include mbiter.h unconditionally.
40465         (mbsnlen): Assume mbrtowc function.
40466         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
40467         (mbspbrk): Assume mbrtowc function.
40468         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
40469         (mbspcasecmp): Assume mbrtowc function.
40470         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
40471         (mbsrchr): Assume mbrtowc function.
40472         * lib/mbssep.c: Include mbuiter.h unconditionally.
40473         (mbssep): Assume mbrtowc function.
40474         * lib/mbsspn.c: Include mbuiter.h unconditionally.
40475         (mbsspn): Assume mbrtowc function.
40476         * lib/mbsstr.c: Include mbuiter.h unconditionally.
40477         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
40478         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
40479         (mbstok_r): Assume mbrtowc function.
40480         * lib/propername.c: Include mbuiter.h unconditionally.
40481         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
40482         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
40483         (trim2): Assume mbrtowc function.
40484         * lib/mbswidth.c (mbsinit): Remove fallback definition.
40485         (mbsnwidth): Assume mbrtowc function.
40486         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
40487         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
40488         fallback definitions.
40489         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
40490
40491 2008-12-22  Bruno Haible  <bruno@clisp.org>
40492
40493         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
40494
40495 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
40496
40497         * modules/regex: Request emulations for the mb*/wc* functions we need.
40498         * m4/regex.m4: Don't look for those functions here.
40499         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
40500
40501 2008-12-22  Bruno Haible  <bruno@clisp.org>
40502
40503         * modules/fnmatch (Depends-on): Remove duplicated dependency.
40504
40505 2008-12-21  Bruno Haible  <bruno@clisp.org>
40506
40507         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
40508         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
40509         (Include): Remove conditionalization.
40510         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
40511         (Include): Remove conditionalization.
40512         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
40513         (Include): Remove conditionalization.
40514         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
40515         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40516         * NEWS: Mention the change.
40517         Reported by Alan Hourihane <alanh@fairlite.co.uk>
40518         via Sergey Poznyakoff <gray@gnu.org.ua>.
40519
40520 2008-12-21  Bruno Haible  <bruno@clisp.org>
40521
40522         * MODULES.html.sh (Extended multibyte and wide character utilities
40523         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
40524         wcrtomb, wcsrtombs.
40525         (Support for systems lacking POSIX:2008): Add accept, bind, close,
40526         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
40527         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
40528         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
40529
40530 2008-12-21  Bruno Haible  <bruno@clisp.org>
40531
40532         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
40533
40534 2008-12-21  Bruno Haible  <bruno@clisp.org>
40535
40536         * modules/wcsnrtombs-tests: New file.
40537         * tests/test-wcsnrtombs1.sh: New file.
40538         * tests/test-wcsnrtombs2.sh: New file.
40539         * tests/test-wcsnrtombs3.sh: New file.
40540         * tests/test-wcsnrtombs4.sh: New file.
40541         * tests/test-wcsnrtombs.c: New file.
40542
40543         New module 'wcsnrtombs'.
40544         * lib/wchar.in.h (wcsnrtombs): New declaration.
40545         * lib/wcsnrtombs.c: New file.
40546         * lib/wcsrtombs-state.c: New file.
40547         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
40548         (internal_state): Remove variable.
40549         * m4/wcsnrtombs.m4: New file.
40550         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
40551         compilation units.
40552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
40553         HAVE_WCSNRTOMBS.
40554         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
40555         HAVE_WCSNRTOMBS.
40556         * modules/wcsnrtombs: New file.
40557         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
40558         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
40559
40560 2008-12-21  Bruno Haible  <bruno@clisp.org>
40561
40562         * modules/wcsrtombs-tests: New file.
40563         * tests/test-wcsrtombs1.sh: New file.
40564         * tests/test-wcsrtombs2.sh: New file.
40565         * tests/test-wcsrtombs3.sh: New file.
40566         * tests/test-wcsrtombs4.sh: New file.
40567         * tests/test-wcsrtombs.c: New file.
40568
40569         New module 'wcsrtombs'.
40570         * lib/wchar.in.h (wcsrtombs): New declaration.
40571         * lib/wcsrtombs.c: New file.
40572         * m4/wcsrtombs.m4: New file.
40573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
40574         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
40576         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40577         * modules/wcsrtombs: New file.
40578         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
40579         bugs.
40580
40581 2008-12-21  Bruno Haible  <bruno@clisp.org>
40582
40583         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
40584         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
40585         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
40586         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
40587         if not correct.
40588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
40589         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
40590         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40591         m4/locale-zh.m4, m4/codeset.m4.
40592         * doc/posix-functions/wcrtomb.texi: Document the bug.
40593
40594 2008-12-21  Bruno Haible  <bruno@clisp.org>
40595
40596         Work around a btowc() bug on IRIX 6.5.
40597         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
40598         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
40599         REPLACE_WTOBC if not.
40600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
40601         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
40602         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
40603
40604 2008-12-21  Bruno Haible  <bruno@clisp.org>
40605
40606         * modules/wcrtomb-tests: New file.
40607         * tests/test-wcrtomb.sh: New file.
40608         * tests/test-wcrtomb.c: New file.
40609
40610         New module 'wcrtomb'.
40611         * lib/wchar.in.h (wcrtomb): New declaration.
40612         * lib/wcrtomb.c: New file.
40613         * m4/wcrtomb.m4: New file.
40614         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
40615         HAVE_WCRTOMB.
40616         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
40617         HAVE_WCRTOMB.
40618         * modules/wcrtomb: New file.
40619         * doc/posix-functions/wcrtomb.texi: Mention the new module.
40620
40621 2008-12-21  Bruno Haible  <bruno@clisp.org>
40622
40623         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
40624         * modules/mbsrtowcs (Files): Likewise.
40625         * modules/wctob (Files): Likewise.
40626         * modules/c-strcase-tests (Files): Likewise.
40627         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40628         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40629         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40630         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40631         * modules/vasnprintf-posix-tests (Files): Likewise.
40632
40633 2008-12-21  William Pursell  <bill.pursell@gmail.com>
40634
40635         gitlog-to-changelog: pass all command-line arguments to git-log
40636         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
40637         it is sometimes convenient to filter the commits in various ways.
40638         gitlog-to-changelog only allows --since to specify a start date,
40639         but git-log itself supports many other filtering mechanisms.
40640         At the moment, I want to filter by branch name.  Rather than
40641         adding a --branch option to gitlog-to-changelog, it seems more
40642         flexible to simply pass all options directly to git-log and let
40643         git do the work.  Notice that this effectively makes --since a
40644         redundant option for gitlog-to-changelog, but removing it would
40645         require current usage to change since calls would then require
40646         an additional '--'.
40647
40648 2008-12-21  Bruno Haible  <bruno@clisp.org>
40649
40650         * modules/mbsnrtowcs-tests: New file.
40651         * tests/test-mbsnrtowcs1.sh: New file.
40652         * tests/test-mbsnrtowcs2.sh: New file.
40653         * tests/test-mbsnrtowcs3.sh: New file.
40654         * tests/test-mbsnrtowcs4.sh: New file.
40655         * tests/test-mbsnrtowcs.c: New file.
40656
40657         New module 'mbsnrtowcs'.
40658         * lib/wchar.in.h (mbsnrtowcs): New declaration.
40659         * lib/mbsnrtowcs.c: New file.
40660         * lib/mbsrtowcs-state.c: New file.
40661         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
40662         (internal_state): Remove variable.
40663         * m4/mbsnrtowcs.m4: New file.
40664         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40665         compilation units.
40666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40667         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40668         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40669         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40670         * modules/mbsnrtowcs: New file.
40671         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40672         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40673         portability problem.
40674
40675 2008-12-21  Bruno Haible  <bruno@clisp.org>
40676
40677         Work around mbsrtowcs bug.
40678         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40679         (gl_FUNC_MBSRTOWCS): Invoke it.
40680         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40681         m4/locale-zh.m4.
40682         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40683
40684 2008-12-21  Bruno Haible  <bruno@clisp.org>
40685
40686         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40687
40688 2008-12-21  Bruno Haible  <bruno@clisp.org>
40689
40690         Update doc for AIX.
40691         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40692         16-bit wchar_t type.
40693         * doc/posix-functions/btowc.texi: Likewise.
40694         * doc/posix-functions/fgetwc.texi: Likewise.
40695         * doc/posix-functions/fgetws.texi: Likewise.
40696         * doc/posix-functions/fputwc.texi: Likewise.
40697         * doc/posix-functions/fputws.texi: Likewise.
40698         * doc/posix-functions/fwide.texi: Likewise.
40699         * doc/posix-functions/fwprintf.texi: Likewise.
40700         * doc/posix-functions/fwscanf.texi: Likewise.
40701         * doc/posix-functions/getwchar.texi: Likewise.
40702         * doc/posix-functions/getwc.texi: Likewise.
40703         * doc/posix-functions/iswalnum.texi: Likewise.
40704         * doc/posix-functions/iswalpha.texi: Likewise.
40705         * doc/posix-functions/iswblank.texi: Likewise.
40706         * doc/posix-functions/iswcntrl.texi: Likewise.
40707         * doc/posix-functions/iswctype.texi: Likewise.
40708         * doc/posix-functions/iswdigit.texi: Likewise.
40709         * doc/posix-functions/iswgraph.texi: Likewise.
40710         * doc/posix-functions/iswlower.texi: Likewise.
40711         * doc/posix-functions/iswprint.texi: Likewise.
40712         * doc/posix-functions/iswpunct.texi: Likewise.
40713         * doc/posix-functions/iswspace.texi: Likewise.
40714         * doc/posix-functions/iswupper.texi: Likewise.
40715         * doc/posix-functions/iswxdigit.texi: Likewise.
40716         * doc/posix-functions/mbrtowc.texi: Likewise.
40717         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40718         * doc/posix-functions/mbstowcs.texi: Likewise.
40719         * doc/posix-functions/mbtowc.texi: Likewise.
40720         * doc/posix-functions/putwchar.texi: Likewise.
40721         * doc/posix-functions/putwc.texi: Likewise.
40722         * doc/posix-functions/swprintf.texi: Likewise.
40723         * doc/posix-functions/tolower.texi: Likewise.
40724         * doc/posix-functions/toupper.texi: Likewise.
40725         * doc/posix-functions/towctrans.texi: Likewise.
40726         * doc/posix-functions/ungetwc.texi: Likewise.
40727         * doc/posix-functions/vswprintf.texi: Likewise.
40728         * doc/posix-functions/wcrtomb.texi: Likewise.
40729         * doc/posix-functions/wcscat.texi: Likewise.
40730         * doc/posix-functions/wcschr.texi: Likewise.
40731         * doc/posix-functions/wcscmp.texi: Likewise.
40732         * doc/posix-functions/wcscoll.texi: Likewise.
40733         * doc/posix-functions/wcscpy.texi: Likewise.
40734         * doc/posix-functions/wcscspn.texi: Likewise.
40735         * doc/posix-functions/wcsftime.texi: Likewise.
40736         * doc/posix-functions/wcslen.texi: Likewise.
40737         * doc/posix-functions/wcsncat.texi: Likewise.
40738         * doc/posix-functions/wcsncmp.texi: Likewise.
40739         * doc/posix-functions/wcsncpy.texi: Likewise.
40740         * doc/posix-functions/wcspbrk.texi: Likewise.
40741         * doc/posix-functions/wcsrchr.texi: Likewise.
40742         * doc/posix-functions/wcsrtombs.texi: Likewise.
40743         * doc/posix-functions/wcsspn.texi: Likewise.
40744         * doc/posix-functions/wcsstr.texi: Likewise.
40745         * doc/posix-functions/wcstod.texi: Likewise.
40746         * doc/posix-functions/wcstof.texi: Likewise.
40747         * doc/posix-functions/wcstoimax.texi: Likewise.
40748         * doc/posix-functions/wcstok.texi: Likewise.
40749         * doc/posix-functions/wcstold.texi: Likewise.
40750         * doc/posix-functions/wcstoll.texi: Likewise.
40751         * doc/posix-functions/wcstol.texi: Likewise.
40752         * doc/posix-functions/wcstombs.texi: Likewise.
40753         * doc/posix-functions/wcstoull.texi: Likewise.
40754         * doc/posix-functions/wcstoul.texi: Likewise.
40755         * doc/posix-functions/wcstoumax.texi: Likewise.
40756         * doc/posix-functions/wcswidth.texi: Likewise.
40757         * doc/posix-functions/wcsxfrm.texi: Likewise.
40758         * doc/posix-functions/wctob.texi: Likewise.
40759         * doc/posix-functions/wctomb.texi: Likewise.
40760         * doc/posix-functions/wctrans.texi: Likewise.
40761         * doc/posix-functions/wctype.texi: Likewise.
40762         * doc/posix-functions/wcwidth.texi: Likewise.
40763         * doc/posix-functions/wmemchr.texi: Likewise.
40764         * doc/posix-functions/wmemcmp.texi: Likewise.
40765         * doc/posix-functions/wmemcpy.texi: Likewise.
40766         * doc/posix-functions/wmemmove.texi: Likewise.
40767         * doc/posix-functions/wmemset.texi: Likewise.
40768         * doc/posix-functions/wprintf.texi: Likewise.
40769         * doc/posix-functions/wscanf.texi: Likewise.
40770
40771 2008-12-21  Bruno Haible  <bruno@clisp.org>
40772
40773         Update doc for HP-UX 11.11.
40774         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40775         in HP-UX version 11.00, not in all versions of HP-UX 11.
40776         * doc/posix-functions/fwide.texi: Likewise.
40777         * doc/posix-functions/fwprintf.texi: Likewise.
40778         * doc/posix-functions/fwscanf.texi: Likewise.
40779         * doc/posix-functions/inet_ntop.texi: Likewise.
40780         * doc/posix-functions/inet_pton.texi: Likewise.
40781         * doc/posix-functions/mbrlen.texi: Likewise.
40782         * doc/posix-functions/mbrtowc.texi: Likewise.
40783         * doc/posix-functions/mbsinit.texi: Likewise.
40784         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40785         * doc/posix-functions/swprintf.texi: Likewise.
40786         * doc/posix-functions/swscanf.texi: Likewise.
40787         * doc/posix-functions/towctrans.texi: Likewise.
40788         * doc/posix-functions/vfwprintf.texi: Likewise.
40789         * doc/posix-functions/vswprintf.texi: Likewise.
40790         * doc/posix-functions/vwprintf.texi: Likewise.
40791         * doc/posix-functions/wcrtomb.texi: Likewise.
40792         * doc/posix-functions/wcsrtombs.texi: Likewise.
40793         * doc/posix-functions/wcsstr.texi: Likewise.
40794         * doc/posix-functions/wctob.texi: Likewise.
40795         * doc/posix-functions/wctrans.texi: Likewise.
40796         * doc/posix-functions/wmemchr.texi: Likewise.
40797         * doc/posix-functions/wmemcmp.texi: Likewise.
40798         * doc/posix-functions/wmemcpy.texi: Likewise.
40799         * doc/posix-functions/wmemmove.texi: Likewise.
40800         * doc/posix-functions/wmemset.texi: Likewise.
40801         * doc/posix-functions/wprintf.texi: Likewise.
40802         * doc/posix-functions/wscanf.texi: Likewise.
40803
40804 2008-12-21  Bruno Haible  <bruno@clisp.org>
40805
40806         Work around a portability problem.
40807         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40808         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40809
40810 2008-12-20  Bruno Haible  <bruno@clisp.org>
40811
40812         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40813         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40814         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40815         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40816         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40817
40818         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40819         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40820         set.
40821         (GNULIB_defined_mbstate_t): New macro.
40822         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40823         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40824         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40825         reuses the system's mbrtowc function but works around the bugs.
40826         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40827         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40828         macros.
40829         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40830         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40831         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40832         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40833         REPLACE_MBSINIT if mbsinit needs to be overridden.
40834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40835         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40836         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40837         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40838         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40839         m4/locale-zh.m4.
40840         (Depends): Add mbsinit.
40841         * modules/mbsinit (Depends): Add mbrtowc.
40842         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40843
40844 2008-12-20  Bruno Haible  <bruno@clisp.org>
40845
40846         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40847         so that there are no conversion errors on AIX.
40848         * tests/test-mbsrtowcs.c (main): LIkewise.
40849
40850 2008-12-20  Bruno Haible  <bruno@clisp.org>
40851
40852         Work around wctob bug on Solaris <= 9.
40853         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40854         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40855         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40856         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40857         * modules/wctob (Files): Add m4/locale-fr.m4.
40858         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40859
40860 2008-12-20  Bruno Haible  <bruno@clisp.org>
40861
40862         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40863         /dev/null.
40864         * tests/test-select-in.sh: Likewise.
40865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40866
40867 2008-12-20  Bruno Haible  <bruno@clisp.org>
40868
40869         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40870         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40871         Cygwin 1.5.x.
40872
40873 2008-12-20  Bruno Haible  <bruno@clisp.org>
40874
40875         Ensure mbstate_t is defined on HP-UX 11.11.
40876         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40877         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40878         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40879         AC_USE_SYSTEM_EXTENSIONS.
40880         * modules/fnmatch (Depends-on): Add extensions.
40881         * modules/mbrlen (Depends-on): Likewise.
40882         * modules/mbrtowc (Depends-on): Likewise.
40883         * modules/mbsinit (Depends-on): Likewise.
40884         * modules/mbsrtowcs (Depends-on): Likewise.
40885         * modules/mbswidth (Depends-on): Likewise.
40886         * modules/quotearg (Depends-on): Likewise.
40887         * modules/strftime (Depends-on): Likewise.
40888
40889 2008-12-20  Bruno Haible  <bruno@clisp.org>
40890
40891         Ensure wctob is declared on IRIX 6.5.
40892         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40893         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40894         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40895         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40896         of HAVE_WCTOB.
40897         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40898         HAVE_WCTOB.
40899         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40900
40901 2008-12-19  Bruno Haible  <bruno@clisp.org>
40902
40903         * modules/mbsrtowcs-tests: New file.
40904         * tests/test-mbsrtowcs1.sh: New file.
40905         * tests/test-mbsrtowcs2.sh: New file.
40906         * tests/test-mbsrtowcs3.sh: New file.
40907         * tests/test-mbsrtowcs4.sh: New file.
40908         * tests/test-mbsrtowcs.c: New file.
40909
40910         New module 'mbsrtowcs'.
40911         * lib/wchar.in.h (mbsrtowcs): New declaration.
40912         * lib/mbsrtowcs.c: New file.
40913         * m4/mbsrtowcs.m4: New file.
40914         * modules/mbsrtowcs: New file.
40915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40916         HAVE_MBSRTOWCS.
40917         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40918         HAVE_MBSRTOWCS.
40919         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40920
40921 2008-12-19  Bruno Haible  <bruno@clisp.org>
40922
40923         New module 'mbrlen'.
40924         * lib/wchar.in.h (mbrlen): New declaration.
40925         * lib/mbrlen.c: New file.
40926         * m4/mbrlen.m4: New file.
40927         * modules/mbrlen: New file.
40928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40929         HAVE_MBRLEN.
40930         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40931         HAVE_MBRLEN.
40932         * doc/posix-functions/mbrlen.texi: Document the new module.
40933
40934 2008-12-19  Bruno Haible  <bruno@clisp.org>
40935
40936         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40937         * modules/mbrtowc (Depends-on): Add verify.
40938         Suggested by Paul Eggert.
40939
40940 2008-12-18  Bruno Haible  <bruno@clisp.org>
40941
40942         * modules/mbsinit-tests: New file.
40943         * tests/test-mbsinit.sh: New file.
40944         * tests/test-mbsinit.c: New file.
40945
40946 2008-12-18  Bruno Haible  <bruno@clisp.org>
40947
40948         * modules/mbrtowc-tests: New file.
40949         * tests/test-mbrtowc1.sh: New file.
40950         * tests/test-mbrtowc2.sh: New file.
40951         * tests/test-mbrtowc3.sh: New file.
40952         * tests/test-mbrtowc4.sh: New file.
40953         * tests/test-mbrtowc.c: New file.
40954
40955         New module 'mbrtowc'.
40956         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40957         mbsinit and mbrtowc.
40958         (mbrtowc): New declaration.
40959         * lib/mbrtowc.c: New file.
40960         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40961         * modules/mbrtowc: New file.
40962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40963         HAVE_MBRTOWC.
40964         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40965         HAVE_MBRTOWC.
40966         * doc/posix-functions/mbrtowc.texi: Document the new module.
40967
40968 2008-12-18  Bruno Haible  <bruno@clisp.org>
40969
40970         New module 'wctob'.
40971         * lib/wchar.in.h (wctob): New declaration.
40972         * lib/wctob.c: New file.
40973         * m4/wctob.m4: New file.
40974         * modules/wctob: New file.
40975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40976         HAVE_WCTOB.
40977         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40978         * doc/posix-functions/wctob.texi: Document the new module.
40979
40980 2008-12-18  Bruno Haible  <bruno@clisp.org>
40981
40982         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40983         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40984
40985 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40986
40987         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40988         G. Christensen" <tgc@jupiterrise.com>.
40989
40990         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40991         G. Christensen" <tgc@jupiterrise.com>.
40992
40993         * lib/flock.c: Need to include string.h.  Reported by "Tom
40994         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40995         <ebb9@byu.net>.
40996
40997 2008-12-18  Bruno Haible  <bruno@clisp.org>
40998
40999         * m4/locale-ja.m4: New file, from GNU gettext.
41000
41001 2008-12-17  Bruno Haible  <bruno@clisp.org>
41002
41003         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
41004         Suggested by Eric Blake.
41005
41006 2008-12-17  Bruno Haible  <bruno@clisp.org>
41007
41008         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
41009
41010 2008-12-17  Bruno Haible  <bruno@clisp.org>
41011
41012         * lib/mbsinit.c: Include verify.h. Verify an assumption.
41013         * modules/mbsinit (Depends-on): Add verify.
41014         Suggested by Paul Eggert.
41015
41016 2008-12-17  Bruno Haible  <bruno@clisp.org>
41017
41018         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
41019         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
41020         gl_FUNC_MBRTOWC.
41021         * m4/mbiter.m4 (gl_MBITER): LIkewise.
41022         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
41023         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
41024         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
41025         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
41026         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
41027         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
41028         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
41029         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
41030         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
41031         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
41032         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
41033         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
41034         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
41035         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
41036         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41037         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
41038         * modules/trim (configure.ac): Likewise.
41039
41040 2008-12-17  Bruno Haible  <bruno@clisp.org>
41041
41042         * modules/btowc-tests: New file.
41043         * tests/test-btowc1.sh: New file.
41044         * tests/test-btowc2.sh: New file.
41045         * tests/test-btowc.c: New file.
41046
41047         New module 'btowc'.
41048         * lib/wchar.in.h (btowc): New declaration.
41049         * lib/btowc.c: New file.
41050         * m4/btowc.m4: New file.
41051         * modules/btowc: New file.
41052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
41053         HAVE_BTOWC.
41054         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
41055         * doc/posix-functions/btowc.texi: Document the new module.
41056
41057 2008-12-17  Bruno Haible  <bruno@clisp.org>
41058
41059         New module 'mbsinit'.
41060         * lib/wchar.in.h (mbsinit): New declaration.
41061         * lib/mbsinit.c: New file.
41062         * m4/mbsinit.m4: New file.
41063         * modules/mbsinit: New file.
41064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
41065         HAVE_MBSINIT.
41066         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
41067         HAVE_MBSINIT.
41068         * doc/posix-functions/mbsinit.texi: Document the new module.
41069
41070 2008-12-16  Bruno Haible  <bruno@clisp.org>
41071
41072         * lib/unistd.in.h: Add comment.
41073         * tests/test-environ.c: Don't include <stdlib.h>.
41074
41075 2008-12-16  Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/parse-duration.h (parse_duration): Document return value
41078         convention.
41079         * lib/parse-duration.c: Include specification header first. Add
41080         comments.
41081         (_): Remove macro.
41082         (parse_year_month_day, parse_hour_minute_second): Move side effects
41083         outside of strchr call.
41084         (parse_non_iso8601): Move side effects outside of isspace call.
41085         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
41086         call.
41087
41088 2008-12-16  Bruno Haible  <bruno@clisp.org>
41089
41090         * tests/test-parse-duration.sh: Produce no output when the test
41091         succeeds.
41092
41093 2008-12-16  Bruno Haible  <bruno@clisp.org>
41094
41095         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
41096         expressions.
41097
41098 2008-12-15  Bruno Haible  <bruno@clisp.org>
41099
41100         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
41101         * doc/glibc-functions/flistxattr.texi: Likewise.
41102         * doc/glibc-functions/fopencookie.texi: Likewise.
41103         * doc/glibc-functions/fremovexattr.texi: Likewise.
41104         * doc/glibc-functions/fsetxattr.texi: Likewise.
41105         * doc/glibc-functions/getxattr.texi: Likewise.
41106         * doc/glibc-functions/lgetxattr.texi: Likewise.
41107         * doc/glibc-functions/listxattr.texi: Likewise.
41108         * doc/glibc-functions/llistxattr.texi: Likewise.
41109         * doc/glibc-functions/lremovexattr.texi: Likewise.
41110         * doc/glibc-functions/lsetxattr.texi: Likewise.
41111         * doc/glibc-functions/removexattr.texi: Likewise.
41112         * doc/glibc-functions/setxattr.texi: Likewise.
41113         * doc/posix-functions/open_memstream.texi: Likewise.
41114
41115 2008-12-15  Eric Blake  <ebb9@byu.net>
41116
41117         Update doc for cygwin 1.7.
41118         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
41119         functions.
41120         * doc/posix-functions/fchmodat.texi: Likewise.
41121         * doc/posix-functions/fchownat.texi: Likewise.
41122         * doc/posix-functions/fdopendir.texi: Likewise.
41123         * doc/posix-functions/fmemopen.texi: Likewise.
41124         * doc/posix-functions/freeaddrinfo.texi: Likewise.
41125         * doc/posix-functions/fstatat.texi: Likewise.
41126         * doc/posix-functions/futimens.texi: Likewise.
41127         * doc/posix-functions/gai_strerror.texi: Likewise.
41128         * doc/posix-functions/getaddrinfo.texi: Likewise.
41129         * doc/posix-functions/getnameinfo.texi: Likewise.
41130         * doc/posix-functions/if_freenameindex.texi: Likewise.
41131         * doc/posix-functions/if_indextoname.texi: Likewise.
41132         * doc/posix-functions/if_nameindex.texi: Likewise.
41133         * doc/posix-functions/if_nametoindex.texi: Likewise.
41134         * doc/posix-functions/insque.texi: Likewise.
41135         * doc/posix-functions/linkat.texi: Likewise.
41136         * doc/posix-functions/llrint.texi: Likewise.
41137         * doc/posix-functions/llrintf.texi: Likewise.
41138         * doc/posix-functions/llrintl.texi: Likewise.
41139         * doc/posix-functions/lockf.texi: Likewise.
41140         * doc/posix-functions/lrintl.texi: Likewise.
41141         * doc/posix-functions/mkdirat.texi: Likewise.
41142         * doc/posix-functions/mkfifoat.texi: Likewise.
41143         * doc/posix-functions/mknodat.texi: Likewise.
41144         * doc/posix-functions/mq_close.texi: Likewise.
41145         * doc/posix-functions/mq_getattr.texi: Likewise.
41146         * doc/posix-functions/mq_notify.texi: Likewise.
41147         * doc/posix-functions/mq_open.texi: Likewise.
41148         * doc/posix-functions/mq_receive.texi: Likewise.
41149         * doc/posix-functions/mq_send.texi: Likewise.
41150         * doc/posix-functions/mq_setattr.texi: Likewise.
41151         * doc/posix-functions/mq_timedreceive.texi: Likewise.
41152         * doc/posix-functions/mq_timedsend.texi: Likewise.
41153         * doc/posix-functions/mq_unlink.texi: Likewise.
41154         * doc/posix-functions/open_memstream.texi: Likewise.
41155         * doc/posix-functions/openat.texi: Likewise.
41156         * doc/posix-functions/posix_fadvise.texi: Likewise.
41157         * doc/posix-functions/posix_fallocate.texi: Likewise.
41158         * doc/posix-functions/posix_madvise.texi: Likewise.
41159         * doc/posix-functions/posix_memalign.texi: Likewise.
41160         * doc/posix-functions/posix_openpt.texi: Likewise.
41161         * doc/posix-functions/readlinkat.texi: Likewise.
41162         * doc/posix-functions/remque.texi: Likewise.
41163         * doc/posix-functions/renameat.texi: Likewise.
41164         * doc/posix-functions/rintl.texi: Likewise.
41165         * doc/posix-functions/sem_unlink.texi: Likewise.
41166         * doc/posix-functions/shm_open.texi: Likewise.
41167         * doc/posix-functions/shm_unlink.texi: Likewise.
41168         * doc/posix-functions/signgam.texi: Likewise.
41169         * doc/posix-functions/sigset.texi: Likewise.
41170         * doc/posix-functions/stpcpy.texi: Likewise.
41171         * doc/posix-functions/stpncpy.texi: Likewise.
41172         * doc/posix-functions/strerror.texi: Likewise.
41173         * doc/posix-functions/strtod.texi: Likewise.
41174         * doc/posix-functions/symlinkat.texi: Likewise.
41175         * doc/posix-functions/unlinkat.texi: Likewise.
41176         * doc/posix-functions/utimensat.texi: Likewise.
41177         * doc/glibc-functions/bindresvport.texi: Likewise.
41178         * doc/glibc-functions/dn_expand.texi: Likewise.
41179         * doc/glibc-functions/exp10.texi: Likewise.
41180         * doc/glibc-functions/exp10f.texi: Likewise.
41181         * doc/glibc-functions/fgetxattr.texi: Likewise.
41182         * doc/glibc-functions/flistxattr.texi: Likewise.
41183         * doc/glibc-functions/fopencookie.texi: Likewise.
41184         * doc/glibc-functions/freeifaddrs.texi: Likewise.
41185         * doc/glibc-functions/fremovexattr.texi: Likewise.
41186         * doc/glibc-functions/fsetxattr.texi: Likewise.
41187         * doc/glibc-functions/getifaddrs.texi: Likewise.
41188         * doc/glibc-functions/getxattr.texi: Likewise.
41189         * doc/glibc-functions/lgetxattr.texi: Likewise.
41190         * doc/glibc-functions/listxattr.texi: Likewise.
41191         * doc/glibc-functions/llistxattr.texi: Likewise.
41192         * doc/glibc-functions/lremovexattr.texi: Likewise.
41193         * doc/glibc-functions/lsetxattr.texi: Likewise.
41194         * doc/glibc-functions/pow10.texi: Likewise.
41195         * doc/glibc-functions/pow10f.texi: Likewise.
41196         * doc/glibc-functions/rcmd_af.texi: Likewise.
41197         * doc/glibc-functions/removexattr.texi: Likewise.
41198         * doc/glibc-functions/res_init.texi: Likewise.
41199         * doc/glibc-functions/res_mkquery.texi: Likewise.
41200         * doc/glibc-functions/res_query.texi: Likewise.
41201         * doc/glibc-functions/res_querydomain.texi: Likewise.
41202         * doc/glibc-functions/res_send.texi: Likewise.
41203         * doc/glibc-functions/rresvport_af.texi: Likewise.
41204         * doc/glibc-functions/setxattr.texi: Likewise.
41205         * doc/glibc-functions/strcasestr.texi: Likewise.
41206
41207 2008-12-15  Bruno Haible  <bruno@clisp.org>
41208
41209         Fix compilation error on OSF/1 4.0.
41210         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
41211         <sys/time.h>, simply delegate to the system header.
41212         Reported by Daniel Richard G. <oss@teragram.com>.
41213
41214 2008-12-15  Bruno Haible  <bruno@clisp.org>
41215
41216         * doc/posix-functions/openat.texi: Mention the 'openat' module.
41217         * doc/posix-functions/fchmodat.texi: Likewise.
41218         * doc/posix-functions/fchownat.texi: Likewise.
41219         * doc/posix-functions/fdopendir.texi: Likewise.
41220         * doc/posix-functions/fstatat.texi: Likewise.
41221         * doc/posix-functions/mkdirat.texi: Likewise.
41222         * doc/posix-functions/unlinkat.texi: Likewise.
41223
41224 2008-12-14  Bruno Haible  <bruno@clisp.org>
41225
41226         Update doc for POSIX:2008.
41227         * doc/posix-functions/faccessat.texi: New file.
41228         * doc/posix-functions/fchmodat.texi: New file.
41229         * doc/posix-functions/fchownat.texi: New file.
41230         * doc/posix-functions/fdopendir.texi: New file.
41231         * doc/posix-functions/fstatat.texi: New file.
41232         * doc/posix-functions/futimens.texi: New file.
41233         * doc/posix-functions/linkat.texi: New file.
41234         * doc/posix-functions/mkdirat.texi: New file.
41235         * doc/posix-functions/mkfifoat.texi: New file.
41236         * doc/posix-functions/mknodat.texi: New file.
41237         * doc/posix-functions/open_wmemstream.texi: New file.
41238         * doc/posix-functions/openat.texi: New file.
41239         * doc/posix-functions/psiginfo.texi: New file.
41240         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
41241         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
41242         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
41243         * doc/posix-functions/readlinkat.texi: New file.
41244         * doc/posix-functions/renameat.texi: New file.
41245         * doc/posix-functions/strerror_l.texi: New file.
41246         * doc/posix-functions/symlinkat.texi: New file.
41247         * doc/posix-functions/unlinkat.texi: New file.
41248         * doc/posix-functions/utimensat.texi: New file.
41249         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41250
41251 2008-12-14  Bruno Haible  <bruno@clisp.org>
41252
41253         Update doc for POSIX:2008.
41254         * doc/posix-functions/alphasort.texi: Renamed from
41255         doc/glibc-functions/alphasort.texi.
41256         * doc/posix-functions/dirfd.texi: Renamed from
41257         doc/glibc-functions/dirfd.texi.
41258         * doc/posix-functions/dprintf.texi: Renamed from
41259         doc/glibc-functions/dprintf.texi.
41260         * doc/posix-functions/duplocale.texi: Renamed from
41261         doc/glibc-functions/duplocale.texi.
41262         * doc/posix-functions/fexecve.texi: Renamed from
41263         doc/glibc-functions/fexecve.texi.
41264         * doc/posix-functions/fmemopen.texi: Renamed from
41265         doc/glibc-functions/fmemopen.texi.
41266         * doc/posix-functions/freelocale.texi: Renamed from
41267         doc/glibc-functions/freelocale.texi.
41268         * doc/posix-functions/getdate_err.texi: Renamed from
41269         doc/glibc-functions/getdate_err.texi.
41270         * doc/posix-functions/isalnum_l.texi: Renamed from
41271         doc/glibc-functions/isalnum_l.texi.
41272         * doc/posix-functions/isalpha_l.texi: Renamed from
41273         doc/glibc-functions/isalpha_l.texi.
41274         * doc/posix-functions/isblank_l.texi: Renamed from
41275         doc/glibc-functions/isblank_l.texi.
41276         * doc/posix-functions/iscntrl_l.texi: Renamed from
41277         doc/glibc-functions/iscntrl_l.texi.
41278         * doc/posix-functions/isdigit_l.texi: Renamed from
41279         doc/glibc-functions/isdigit_l.texi.
41280         * doc/posix-functions/isgraph_l.texi: Renamed from
41281         doc/glibc-functions/isgraph_l.texi.
41282         * doc/posix-functions/islower_l.texi: Renamed from
41283         doc/glibc-functions/islower_l.texi.
41284         * doc/posix-functions/isprint_l.texi: Renamed from
41285         doc/glibc-functions/isprint_l.texi.
41286         * doc/posix-functions/ispunct_l.texi: Renamed from
41287         doc/glibc-functions/ispunct_l.texi.
41288         * doc/posix-functions/isspace_l.texi: Renamed from
41289         doc/glibc-functions/isspace_l.texi.
41290         * doc/posix-functions/isupper_l.texi: Renamed from
41291         doc/glibc-functions/isupper_l.texi.
41292         * doc/posix-functions/iswalnum_l.texi: Renamed from
41293         doc/glibc-functions/iswalnum_l.texi.
41294         * doc/posix-functions/iswalpha_l.texi: Renamed from
41295         doc/glibc-functions/iswalpha_l.texi.
41296         * doc/posix-functions/iswblank_l.texi: Renamed from
41297         doc/glibc-functions/iswblank_l.texi.
41298         * doc/posix-functions/iswcntrl_l.texi: Renamed from
41299         doc/glibc-functions/iswcntrl_l.texi.
41300         * doc/posix-functions/iswctype_l.texi: Renamed from
41301         doc/glibc-functions/iswctype_l.texi.
41302         * doc/posix-functions/iswdigit_l.texi: Renamed from
41303         doc/glibc-functions/iswdigit_l.texi.
41304         * doc/posix-functions/iswgraph_l.texi: Renamed from
41305         doc/glibc-functions/iswgraph_l.texi.
41306         * doc/posix-functions/iswlower_l.texi: Renamed from
41307         doc/glibc-functions/iswlower_l.texi.
41308         * doc/posix-functions/iswprint_l.texi: Renamed from
41309         doc/glibc-functions/iswprint_l.texi.
41310         * doc/posix-functions/iswpunct_l.texi: Renamed from
41311         doc/glibc-functions/iswpunct_l.texi.
41312         * doc/posix-functions/iswspace_l.texi: Renamed from
41313         doc/glibc-functions/iswspace_l.texi.
41314         * doc/posix-functions/iswupper_l.texi: Renamed from
41315         doc/glibc-functions/iswupper_l.texi.
41316         * doc/posix-functions/iswxdigit_l.texi: Renamed from
41317         doc/glibc-functions/iswxdigit_l.texi.
41318         * doc/posix-functions/isxdigit_l.texi: Renamed from
41319         doc/glibc-functions/isxdigit_l.texi.
41320         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
41321         doc/glibc-functions/mbsnrtowcs.texi.
41322         * doc/posix-functions/mkdtemp.texi: Renamed from
41323         doc/glibc-functions/mkdtemp.texi.
41324         * doc/posix-functions/newlocale.texi: Renamed from
41325         doc/glibc-functions/newlocale.texi.
41326         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
41327         doc/glibc-functions/nl_langinfo_l.texi.
41328         * doc/posix-functions/open_memstream.texi: Renamed from
41329         doc/glibc-functions/open_memstream.texi.
41330         * doc/posix-functions/opterr.texi: Renamed from
41331         doc/glibc-functions/opterr.texi.
41332         * doc/posix-functions/optind.texi: Renamed from
41333         doc/glibc-functions/optind.texi.
41334         * doc/posix-functions/optopt.texi: Renamed from
41335         doc/glibc-functions/optopt.texi.
41336         * doc/posix-functions/psignal.texi: Renamed from
41337         doc/glibc-functions/psignal.texi.
41338         * doc/posix-functions/scandir.texi: Renamed from
41339         doc/glibc-functions/scandir.texi.
41340         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
41341         doc/glibc-functions/sched_get_priority_min.texi.
41342         * doc/posix-functions/signgam.texi: Renamed from
41343         doc/glibc-functions/signgam.texi.
41344         * doc/posix-functions/stpcpy.texi: Renamed from
41345         doc/glibc-functions/stpcpy.texi.
41346         * doc/posix-functions/stpncpy.texi: Renamed from
41347         doc/glibc-functions/stpncpy.texi.
41348         * doc/posix-functions/strcasecmp_l.texi: Renamed from
41349         doc/glibc-functions/strcasecmp_l.texi.
41350         * doc/posix-functions/strcoll_l.texi: Renamed from
41351         doc/glibc-functions/strcoll_l.texi.
41352         * doc/posix-functions/strfmon_l.texi: Renamed from
41353         doc/glibc-functions/strfmon_l.texi.
41354         * doc/posix-functions/strftime_l.texi: Renamed from
41355         doc/glibc-functions/strftime_l.texi.
41356         * doc/posix-functions/strncasecmp_l.texi: Renamed from
41357         doc/glibc-functions/strncasecmp_l.texi.
41358         * doc/posix-functions/strndup.texi: Renamed from
41359         doc/glibc-functions/strndup.texi.
41360         * doc/posix-functions/strnlen.texi: Renamed from
41361         doc/glibc-functions/strnlen.texi.
41362         * doc/posix-functions/strsignal.texi: Renamed from
41363         doc/glibc-functions/strsignal.texi.
41364         * doc/posix-functions/strxfrm_l.texi: Renamed from
41365         doc/glibc-functions/strxfrm_l.texi.
41366         * doc/posix-functions/timer_gettime.texi: Renamed from
41367         doc/glibc-functions/timer_gettime.texi.
41368         * doc/posix-functions/tolower_l.texi: Renamed from
41369         doc/glibc-functions/tolower_l.texi.
41370         * doc/posix-functions/toupper_l.texi: Renamed from
41371         doc/glibc-functions/toupper_l.texi.
41372         * doc/posix-functions/towctrans_l.texi: Renamed from
41373         doc/glibc-functions/towctrans_l.texi.
41374         * doc/posix-functions/towlower_l.texi: Renamed from
41375         doc/glibc-functions/towlower_l.texi.
41376         * doc/posix-functions/towupper_l.texi: Renamed from
41377         doc/glibc-functions/towupper_l.texi.
41378         * doc/posix-functions/uselocale.texi: Renamed from
41379         doc/glibc-functions/uselocale.texi.
41380         * doc/posix-functions/vdprintf.texi: Renamed from
41381         doc/glibc-functions/vdprintf.texi.
41382         * doc/posix-functions/wcpcpy.texi:
41383         Renamed from doc/glibc-functions/wcpcpy.texi.
41384         * doc/posix-functions/wcpncpy.texi: Renamed from
41385         doc/glibc-functions/wcpncpy.texi.
41386         * doc/posix-functions/wcscasecmp.texi: Renamed from
41387         doc/glibc-functions/wcscasecmp.texi.
41388         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
41389         doc/glibc-functions/wcscasecmp_l.texi.
41390         * doc/posix-functions/wcscoll_l.texi: Renamed from
41391         doc/glibc-functions/wcscoll_l.texi.
41392         * doc/posix-functions/wcsdup.texi: Renamed from
41393         doc/glibc-functions/wcsdup.texi.
41394         * doc/posix-functions/wcsncasecmp.texi: Renamed from
41395         doc/glibc-functions/wcsncasecmp.texi.
41396         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
41397         doc/glibc-functions/wcsncasecmp_l.texi.
41398         * doc/posix-functions/wcsnlen.texi: Renamed from
41399         doc/glibc-functions/wcsnlen.texi.
41400         * doc/posix-functions/wcsnrtombs.texi: Renamed from
41401         doc/glibc-functions/wcsnrtombs.texi.
41402         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
41403         doc/glibc-functions/wcsxfrm_l.texi.
41404         * doc/posix-functions/wctrans_l.texi: Renamed from
41405         doc/glibc-functions/wctrans_l.texi.
41406         * doc/posix-functions/wctype_l.texi: Renamed from
41407         doc/glibc-functions/wctype_l.texi.
41408         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41409         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41410         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41411         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41412         these subsections.
41413         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
41414         Remove sections.
41415
41416 2008-12-14  Bruno Haible  <bruno@clisp.org>
41417
41418         Update doc for POSIX:2008.
41419         * doc/posix-functions/*.texi: Update URL of POSIX specification.
41420
41421 2008-12-14  Bruno Haible  <bruno@clisp.org>
41422
41423         Update doc for POSIX:2008.
41424         * doc/pastposix-functions/bcmp.texi: Renamed from
41425         doc/posix-functions/bcmp.texi.
41426         * doc/pastposix-functions/bcopy.texi: Renamed from
41427         doc/posix-functions/bcopy.texi.
41428         * doc/pastposix-functions/bsd_signal.texi: Renamed from
41429         doc/posix-functions/bsd_signal.texi.
41430         * doc/pastposix-functions/bzero.texi: Renamed from
41431         doc/posix-functions/bzero.texi.
41432         * doc/pastposix-functions/ecvt.texi: Renamed from
41433         doc/posix-functions/ecvt.texi.
41434         * doc/pastposix-functions/fcvt.texi: Renamed from
41435         doc/posix-functions/fcvt.texi.
41436         * doc/pastposix-functions/ftime.texi: Renamed from
41437         doc/posix-functions/ftime.texi.
41438         * doc/pastposix-functions/gcvt.texi: Renamed from
41439         doc/posix-functions/gcvt.texi.
41440         * doc/pastposix-functions/getcontext.texi: Renamed from
41441         doc/posix-functions/getcontext.texi.
41442         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
41443         doc/posix-functions/gethostbyaddr.texi.
41444         * doc/pastposix-functions/gethostbyname.texi: Renamed from
41445         doc/posix-functions/gethostbyname.texi.
41446         * doc/pastposix-functions/getwd.texi: Renamed from
41447         doc/posix-functions/getwd.texi.
41448         * doc/pastposix-functions/h_errno.texi: Renamed from
41449         doc/posix-functions/h_errno.texi.
41450         * doc/pastposix-functions/index.texi: Renamed from
41451         doc/posix-functions/index.texi.
41452         * doc/pastposix-functions/makecontext.texi: Renamed from
41453         doc/posix-functions/makecontext.texi.
41454         * doc/pastposix-functions/mktemp.texi: Renamed from
41455         doc/posix-functions/mktemp.texi.
41456         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
41457         doc/posix-functions/pthread_attr_getstackaddr.texi.
41458         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
41459         doc/posix-functions/pthread_attr_setstackaddr.texi.
41460         * doc/pastposix-functions/rindex.texi: Renamed from
41461         doc/posix-functions/rindex.texi.
41462         * doc/pastposix-functions/scalb.texi: Renamed from
41463         doc/posix-functions/scalb.texi.
41464         * doc/pastposix-functions/setcontext.texi: Renamed from
41465         doc/posix-functions/setcontext.texi.
41466         * doc/pastposix-functions/swapcontext.texi: Renamed from
41467         doc/posix-functions/swapcontext.texi.
41468         * doc/pastposix-functions/ualarm.texi: Renamed from
41469         doc/posix-functions/ualarm.texi.
41470         * doc/pastposix-functions/usleep.texi: Renamed from
41471         doc/posix-functions/usleep.texi.
41472         * doc/pastposix-functions/vfork.texi: Renamed from
41473         doc/posix-functions/vfork.texi.
41474         * doc/pastposix-functions/wcswcs.texi: Renamed from
41475         doc/posix-functions/wcswcs.texi.
41476         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
41477         (Function Substitutes): Update.
41478
41479 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41480
41481         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
41482         m4/strerror.m4.
41483
41484 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41485             Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
41488
41489 2008-12-13  Bruno Haible  <bruno@clisp.org>
41490
41491         * modules/strtoull (Depends-on): Remove unistd.
41492
41493 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41494
41495         * modules/strtoull (Depends-on): Add stdlib.
41496
41497 2008-12-11  Simon Josefsson  <simon@josefsson.org>
41498
41499         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
41500
41501 2008-12-10  Jim Meyering  <meyering@redhat.com>
41502
41503         gl_ASSERT: don't say assertions are disabled when they're not
41504         * m4/assert.m4 (gl_ASSERT): Do not make configure report
41505         "checking whether to enable assertions... no", when they are in
41506         fact enabled.  This is solely a bug in the output of configure.
41507         In spite of saying "no", NDEBUG was not defined in that case.
41508         Also, as noted by Eric Blake, leave assertions enabled upon
41509         --enable-assert=INVALID.
41510
41511 2008-12-10  Bruno Haible  <bruno@clisp.org>
41512
41513         Change MODULES.html to refer to POSIX:2008 where possible.
41514         * MODULES.html.sh (POSIX2008_URL): New variable.
41515         (posix_headers): Remove sys/timeb, ucontext.
41516         (posix2001_headers): New variable.
41517         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
41518         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
41519         index, makecontext, mktemp, pthread_attr_getstackaddr,
41520         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
41521         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
41522         (posix2001_functions): New variable.
41523         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
41524         otherwise.
41525
41526 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41527
41528         add missing include to parse-duration.c
41529         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
41530         * modules/parse-duration (Depends-on): Add xalloc.
41531
41532         fix sed script reading maint.mk
41533         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
41534         (syntax-check-rules): Use it.
41535
41536 2008-12-09  Bruno Haible  <bruno@clisp.org>
41537
41538         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
41539         MacOS X 10.4/PowerPC.
41540         Reported by Simon Josefsson.
41541
41542 2008-12-08  Jim Meyering  <meyering@redhat.com>
41543
41544         work around mingw's lack of some S_IF definitions
41545         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
41546         Reported by Simon Josefsson.
41547
41548 2008-12-08  Bruno Haible  <bruno@clisp.org>
41549
41550         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
41551         applied to variables. Needed on MacOS X 10.4/PowerPC.
41552         Reported by Simon Josefsson.
41553
41554 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
41555         and Eric Blake  <ebb9@byu.net>
41556
41557         assert: honor --enable-assert
41558         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
41559         order to honor --enable-assert, rather than treating it as a
41560         synonym for --disable-assert.
41561
41562 2008-12-08  Jim Meyering  <meyering@redhat.com>
41563
41564         * lib/posixtm.c: Remove now-useless declaration of mktime.
41565
41566         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
41567
41568 2008-12-07  Bruno Haible  <bruno@clisp.org>
41569
41570         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
41571         test_once): Mark functions as static.
41572         * tests/test-tls.c (test_tls): Likewise.
41573
41574 2008-12-07  Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
41577         iconv_register_autodetect.
41578
41579 2008-12-07  Jim Meyering  <meyering@redhat.com>
41580
41581         posixtm.c: avoid a warning
41582         * lib/posixtm.c (posixtime): Don't initialize tm0.
41583         It's no longer needed to placate gcc4's -Wuninitialized,
41584         and the attempt to placate would elicit a new warning.
41585
41586         unicodeio.c: mark unused parameters
41587         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41588         (fallback_failure_callback): Likewise.
41589
41590 2008-12-07  Bruno Haible  <bruno@clisp.org>
41591
41592         * gnulib-tool (func_create_testdir): When building the tests
41593         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
41594         Reported by Simon Josefsson.
41595
41596 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41597
41598         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
41599
41600 2008-12-06  Bruno Haible  <bruno@clisp.org>
41601
41602         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
41603         Suggested by Eric Blake.
41604
41605 2008-12-06  Bruno Haible  <bruno@clisp.org>
41606
41607         Fix a c-stack test failure on MacOS X.
41608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
41609         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
41610         handler for SIGBUS as well.
41611         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
41612         install a signal handler for SIGBUS as well.
41613         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
41614
41615 2008-12-06  Bruno Haible  <bruno@clisp.org>
41616
41617         Advocacy documentation.
41618         * doc/gnulib-intro.texi (Benefits): New section.
41619         * doc/gnulib.texi: Update.
41620
41621 2008-12-06  Bruno Haible  <bruno@clisp.org>
41622
41623         Document the 'manywarnings' module.
41624         * doc/manywarnings.texi: New file.
41625         * doc/gnulib.texi: Include it.
41626
41627 2008-12-05  Eric Blake  <ebb9@byu.net>
41628
41629         tests: silence some gcc warnings
41630         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
41631         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
41632         type mismatches.
41633
41634 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41635             Bruno Haible  <bruno@clisp.org>
41636
41637         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
41638
41639 2008-11-29  Jim Meyering  <meyering@redhat.com>
41640
41641         unicodeio.c: mark unused parameters
41642         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41643         (fallback_failure_callback): Likewise.
41644
41645         fts: fix a thinko
41646         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
41647         (set_stat_type): Return S_IF*-valued "type" directly.
41648         Prompted by James Youngman's spotting a related bug.
41649         Confirmed by further testing through find.
41650
41651         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
41652         * lib/fts.c (D_TYPE): Define.
41653         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
41654         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
41655         (s_ifmt_shift_bits): New function.
41656         (set_stat_type): New function.
41657         (fts_build): When not calling fts_stat, call set_stat_type
41658         to propagate dirent.d_type info to fts_read caller.
41659         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
41660         fts_statp->st_mode type information may be valid.
41661
41662 2008-11-28  Simon Josefsson  <simon@josefsson.org>
41663
41664         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41665         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41666         <sds@gnu.org>.
41667
41668 2008-11-20  Bruno Haible  <bruno@clisp.org>
41669
41670         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41671         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41672         INCLUDE_NEXT.
41673         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41674         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41675         * modules/math (Makefile.am): Substitute
41676         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41677         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41678
41679 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41680             Bruno Haible  <bruno@clisp.org>
41681
41682         * lib/stdint.in.h: Define all type macros so that their expansion is
41683         a single typedef'ed token. Fixes a compilation failure in Boost which
41684         does "using ::int8_t;".
41685
41686 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41687
41688         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41689         gl_MANYWARN_ALL_GCC.
41690         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41691         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41692         * modules/manywarnings: New file.
41693         * MODULES.html.sh: Mention manywarnings module.
41694
41695 2008-11-18  Bruno Haible  <bruno@clisp.org>
41696
41697         * doc/gnulib-tool.texi (Unit tests): New section.
41698
41699 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41700
41701         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41702         paths like 'lib/po/foo.po'.
41703
41704 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41705
41706         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41707         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41708
41709 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41710
41711         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41712         parameter works.
41713
41714 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41715
41716         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41717
41718 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41719
41720         * modules/parse-duration-tests: New file.
41721         * tests/test-parse-duration.sh: New file.
41722         * tests/test-parse-duration.c: New file.
41723
41724         New module 'parse-duration'.
41725         * lib/parse-duration.h: New file.
41726         * lib/parse-duration.c: New file.
41727         * modules/parse-duration: New file.
41728
41729 2008-11-17  Bruno Haible  <bruno@clisp.org>
41730
41731         * tests/test-select-out.sh: Comment out the first pipe test.
41732         Reported by Simon Josefsson.
41733
41734 2008-11-17  Bruno Haible  <bruno@clisp.org>
41735
41736         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41738         gl_HOSTENT.
41739
41740 2008-11-17  Bruno Haible  <bruno@clisp.org>
41741
41742         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41743         -lnetwork and -lnet. Needed for Haiku and BeOS.
41744
41745 2008-11-16  Bruno Haible  <bruno@clisp.org>
41746
41747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41748
41749 2008-11-16  Bruno Haible  <bruno@clisp.org>
41750
41751         Avoid test failure on Haiku.
41752         * tests/test-fsync.c: Include <errno.h>.
41753         (main): Don't require that fsync (0) fails.
41754
41755 2008-11-15  Bruno Haible  <bruno@clisp.org>
41756
41757         New module 'hostent'.
41758         * modules/hostent: New file.
41759         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41760
41761 2008-11-15  Bruno Haible  <bruno@clisp.org>
41762
41763         New module 'servent'.
41764         * modules/servent: New file.
41765         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41766
41767 2008-11-15  Bruno Haible  <bruno@clisp.org>
41768
41769         Avoid generating same test program with two different rules.
41770         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41771         test-frexp to test-frexp-nolibm.
41772         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41773         test-frexpl to test-frexpl-nolibm.
41774
41775 2008-11-15  Bruno Haible  <bruno@clisp.org>
41776
41777         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41778         $(FREXPL_LIBM).
41779
41780 2008-11-15  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/netdb.in.h: Activate the definitions also when the system's
41783         <netdb.h> has 'struct addrinfo'.
41784         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41785         EAI_OVERFLOW or AI_NUMERICSERV.
41786         * doc/posix-headers/netdb.texi: Document the problem.
41787
41788 2008-11-15  Bruno Haible  <bruno@clisp.org>
41789
41790         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41791
41792         Make the 'sched' module work on platforms where <sched.h> exists but
41793         is incomplete (such as Haiku).
41794         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41795         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41796         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41797         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41798         HAVE_STRUCT_SCHED_PARAM.
41799         * modules/sched (Depends-on): Add include_next.
41800         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41801         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41802         * doc/posix-headers/sched.texi: Document the issue.
41803
41804 2008-11-13  Jim Meyering  <meyering@redhat.com>
41805
41806         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41807         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41808         test would fail due to the difference in the Report bugs to ...
41809         line.  The expected address is empty, "<>", while the actual
41810         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41811
41812 2008-11-12  Bruno Haible  <bruno@clisp.org>
41813
41814         lstat: don't compile lstat.c on systems lacking lstat
41815         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41816         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41817         Reported by Daniel P. Berrange via Jim Meyering.
41818
41819 2008-11-12  Jim Meyering  <meyering@redhat.com>
41820
41821         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41822
41823 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41824
41825         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41826         instead.
41827
41828 2008-11-12  Bruno Haible  <bruno@clisp.org>
41829
41830         * lib/unicodeio.c: Include unistr.h.
41831         (utf8_wctomb): Remove function.
41832         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41833
41834 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41835
41836         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41837         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41838         <bruno@clisp.org>.
41839         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41840
41841 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41842
41843         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41844         * doc/gnulib.texi: Add section for warnings.
41845
41846 2008-11-11  Bruno Haible  <bruno@clisp.org>
41847
41848         * lib/sockets.h: Add a comment.
41849
41850 2008-11-11  Karl Berry  <karl@gnu.org>
41851
41852         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41853
41854 2008-11-11  Eric Blake  <ebb9@byu.net>
41855
41856         fdl.texi: avoid git symlinks
41857         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41858
41859 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41860
41861         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41862
41863 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41864
41865         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41866         (gl_WARN_ADD): Substitute $2 if literal.
41867
41868 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41869
41870         * m4/warning.m4: Remove.
41871
41872 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41873
41874         * m4/warnings.m4: Almost complete rewrite. :-)
41875
41876 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41877
41878         * modules/warnings: New module.
41879         * m4/warnings.m4: New file.
41880         * MODULES.html.sh: Mention warnings module.
41881         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41882         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41883
41884 2008-11-10  Eric Blake  <ebb9@byu.net>
41885
41886         fdl.texi: make a symlink to the latest version
41887         * doc/standards.texi: Revert today's earlier change.
41888         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41889         * doc/fdl.texi: ...and replace this with a symlink to the newer
41890         fdl-1.3.texi.
41891
41892 2008-11-10  Bruno Haible  <bruno@clisp.org>
41893
41894         * tests/test-select-fd.c (main): Accept the result file name as fourth
41895         argument.
41896         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41897         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41898
41899 2008-11-10  Bruno Haible  <bruno@clisp.org>
41900
41901         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41902         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41903         as autoconf-substituted macros.
41904         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41905         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41906         gl_NETDB_H_DEFAULTS. Set these variables.
41907         * modules/netdb (Makefile.am): Substitute these variables.
41908
41909 2008-11-10  Eric Blake  <ebb9@byu.net>
41910
41911         standards.texi: include correct file for FDL 1.3
41912         * doc/standards.texi (GNU Free Documentation License): Change
41913         include file to pull in FDL 1.3, not 1.2.
41914
41915         fdl.texi: revert accidental change to license
41916         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41917
41918 2008-11-10  Bruno Haible  <bruno@clisp.org>
41919
41920         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41921         cross-compiling guesses also when the native compile gives no result.
41922
41923 2008-11-10  Bruno Haible  <bruno@clisp.org>
41924
41925         * lib/spawni.c (__spawni): Force variable into the stack.
41926
41927 2008-11-10  Bruno Haible  <bruno@clisp.org>
41928
41929         Add support for Haiku.
41930         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41931         glibc and BeOS, but also on Haiku.
41932         * lib/fpurge.c (fpurge): Likewise.
41933         * lib/freadable.c (freadable): Likewise.
41934         * lib/freadahead.c (freadahead): Likewise.
41935         * lib/freading.c (freading): Likewise.
41936         * lib/freadptr.c (freadptr): Likewise.
41937         * lib/freadseek.c (freadptrinc): Likewise.
41938         * lib/fseeko.c (rpl_fseeko): Likewise.
41939         * lib/fseterr.c (fseterr): Likewise.
41940         * lib/fwritable.c (fwritable): Likewise.
41941         * lib/fwriting.c (fwriting): Likewise.
41942         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41943
41944 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41945
41946         * lib/config.charset: Treat Haiku like BeOS.
41947
41948 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41949
41950         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41951         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41952
41953 2008-11-08  Bruno Haible  <bruno@clisp.org>
41954
41955         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41956         AC_CACHE_CHECK.
41957
41958 2008-11-08  Bruno Haible  <bruno@clisp.org>
41959
41960         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41961
41962 2008-11-08  Bruno Haible  <bruno@clisp.org>
41963
41964         * tests/test-select-fd.c: New file.
41965         * tests/test-select-in.sh: New file.
41966         * tests/test-select-out.sh: New file.
41967         * tests/test-select-stdin.c: New file.
41968         * modules/select-tests (Files): Add the new files.
41969         (Depends-on): Add gettimeofday.
41970         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41971         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41972         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41973
41974 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41975             Bruno Haible  <bruno@clisp.org>
41976
41977         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41978
41979 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41980
41981         * build-aux/pmccabe2html: Added support for C++ source files.
41982
41983 2008-11-05  Ben Pfaff  <blp@gnu.org>
41984
41985         Fix lib/close.c build on Windows.
41986         * modules/close (Files): Add lib/w32sock.h.
41987
41988 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41989
41990         Accept Bison's NEWS format.
41991         * build-aux/announce-gen (print_news_deltas): Tweak
41992         $re_prefix.
41993
41994 2008-11-04  Bruno Haible  <bruno@clisp.org>
41995
41996         * modules/random_r (Maintainer): Add glibc.
41997
41998 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41999
42000         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
42001         by karl@freefriends.org (Karl Berry).
42002         * doc/alloca.texi: Likewise.
42003         * doc/c-ctype.texi: Likewise.
42004         * doc/c-strcase.texi: Likewise.
42005         * doc/c-strcaseeq.texi: Likewise.
42006         * doc/c-strcasestr.texi: Likewise.
42007         * doc/c-strstr.texi: Likewise.
42008         * doc/c-strtod.texi: Likewise.
42009         * doc/c-strtold.texi: Likewise.
42010         * doc/ctime.texi: Likewise.
42011         * doc/error.texi: Likewise.
42012         * doc/fdl.texi: Likewise.
42013         * doc/gcd.texi: Likewise.
42014         * doc/getdate.texi: Likewise.
42015         * doc/gnulib-intro.texi: Likewise.
42016         * doc/gnulib-tool.texi: Likewise.
42017         * doc/gnulib.texi: Likewise.
42018         * doc/inet_ntoa.texi: Likewise.
42019         * doc/maintain.texi: Likewise.
42020         * doc/make-stds.texi: Likewise.
42021         * doc/quote.texi: Likewise.
42022         * doc/regexprops-generic.texi: Likewise.
42023         * doc/standards.texi: Likewise.
42024         * doc/verify.texi: Likewise.
42025         * doc/visibility.texi: Likewise.
42026         * doc/gnulib.texi (GNU Free Documentation License): Include
42027         fdl-1.3.texi instead of fdl.texi.
42028
42029 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42030
42031         * doc/fdl-1.3.texi: New file, from
42032         <http://www.gnu.org/licenses/fdl-1.3.texi>.
42033         * modules/fdl-1.3: Add.
42034         * MODULES.html.sh: Add fdl-1.3.
42035
42036 2008-11-03  Bruno Haible  <bruno@clisp.org>
42037
42038         Make determination of absolute name of header file work with AIX xlc.
42039         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
42040         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
42041         preprocessing.
42042         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42043         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42044
42045 2008-11-03  Simon Josefsson  <simon@josefsson.org>
42046
42047         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
42048         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
42049         <ludo@gnu.org>.
42050
42051 2008-11-02  Bruno Haible  <bruno@clisp.org>
42052
42053         Mark 'strpbrk' obsolete.
42054         * modules/strpbrk (Status, Notice): New sections.
42055         * modules/strtok_r (Depends-on): Add strpbrk.
42056
42057 2008-11-02  Bruno Haible  <bruno@clisp.org>
42058
42059         Mark 'strdup' obsolete.
42060         * modules/strdup (Status, Notice): New sections.
42061         * modules/findprog (Depends-on): Add strdup.
42062         * modules/getaddrinfo (Depends-on): Likewise.
42063         * modules/localename (Depends-on): Likewise.
42064         * modules/relocatable-lib (Depends-on): Likewise.
42065         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
42066         * modules/relocatable-prog (Depends-on): Likewise.
42067         * modules/trim (Depends-on): Likewise.
42068         * modules/unictype/gen-ctype (Depends-on): Likewise.
42069         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42070
42071 2008-11-02  Bruno Haible  <bruno@clisp.org>
42072
42073         Mark 'strcspn' obsolete.
42074         * modules/strcspn (Status, Notice): New sections.
42075
42076 2008-11-02  Bruno Haible  <bruno@clisp.org>
42077
42078         Mark 'rmdir' obsolete.
42079         * modules/rmdir (Status, Notice): New sections.
42080         * modules/clean-temp (Depends-on): Add rmdir.
42081         * modules/openat (Depends-on): Likewise.
42082
42083 2008-11-02  Bruno Haible  <bruno@clisp.org>
42084
42085         Mark 'raise' obsolete.
42086         * modules/raise (Status, Notice): New sections.
42087         (Include): Specify <signal.h>.
42088         * modules/stdio (Depends-on): Add raise.
42089         * modules/write (Depends-on): Likewise.
42090
42091 2008-11-02  Bruno Haible  <bruno@clisp.org>
42092
42093         Mark 'memset' obsolete.
42094         * modules/memset (Status, Notice): New sections.
42095
42096 2008-11-02  Bruno Haible  <bruno@clisp.org>
42097
42098         Mark 'memmove' obsolete.
42099         * modules/memmove (Status, Notice): New sections.
42100         * modules/argp (Depends-on): Add memmove.
42101         * modules/argz (Depends-on): Likewise.
42102         * modules/canonicalize (Depends-on): Likewise.
42103         * modules/canonicalize-lgpl (Depends-on): Likewise.
42104         * modules/fts (Depends-on): Likewise.
42105         * modules/getcwd (Depends-on): Likewise.
42106         * modules/human (Depends-on): Likewise.
42107         * modules/regex (Depends-on): Likewise.
42108         * modules/striconveh (Depends-on): Likewise.
42109         * modules/trim (Depends-on): Likewise.
42110         * modules/unistr/u8-move (Depends-on): Likewise.
42111         * modules/unistr/u16-move (Depends-on): Likewise.
42112         * modules/unistr/u32-move (Depends-on): Likewise.
42113
42114 2008-11-02  Bruno Haible  <bruno@clisp.org>
42115
42116         Mark 'memcpy' obsolete.
42117         * modules/memcpy (Status, Notice): New sections.
42118
42119 2008-11-02  Bruno Haible  <bruno@clisp.org>
42120
42121         Mark 'memcmp' obsolete.
42122         * modules/memcmp (Status, Notice): New sections.
42123         * modules/argmatch (Depends-on): Add memchr.
42124         * modules/backupfile (Depends-on): Likewise.
42125         * modules/c-strcasestr (Depends-on): Likewise.
42126         * modules/crypto/des (Depends-on): Likewise.
42127         * modules/csharpcomp (Depends-on): Likewise.
42128         * modules/fnmatch (Depends-on): Likewise.
42129         * modules/git-merge-changelog (Depends-on): Likewise.
42130         * modules/isnand (Depends-on): Likewise.
42131         * modules/isnand-nolibm (Depends-on): Likewise.
42132         * modules/isnanf (Depends-on): Likewise.
42133         * modules/isnanf-nolibm (Depends-on): Likewise.
42134         * modules/isnanl (Depends-on): Likewise.
42135         * modules/isnanl-nolibm (Depends-on): Likewise.
42136         * modules/mbchar (Depends-on): Likewise.
42137         * modules/memcoll (Depends-on): Likewise.
42138         * modules/quotearg (Depends-on): Likewise.
42139         * modules/regex (Depends-on): Likewise.
42140         * modules/relocatable-prog (Depends-on): Likewise.
42141         * modules/same (Depends-on): Likewise.
42142         * modules/signbit (Depends-on): Likewise.
42143         * modules/strcasestr-simple (Depends-on): Likewise.
42144         * modules/unictype/gen-ctype (Depends-on): Likewise.
42145         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42146         * modules/uniname/uniname (Depends-on): Likewise.
42147         * modules/unistr/u8-cmp (Depends-on): Likewise.
42148
42149 2008-11-02  Bruno Haible  <bruno@clisp.org>
42150
42151         Mark 'memchr' obsolete.
42152         * modules/memchr (Status, Notice): New sections.
42153         * modules/argp (Depends-on): Add memchr.
42154         * modules/base64 (Depends-on): Likewise.
42155         * modules/c-strcasestr (Depends-on): Likewise.
42156         * modules/chdir-long (Depends-on): Likewise.
42157         * modules/fnmatch (Depends-on): Likewise.
42158         * modules/getsubopt (Depends-on): Likewise.
42159         * modules/git-merge-changelog (Depends-on): Likewise.
42160         * modules/glob (Depends-on): Likewise.
42161         * modules/strcasestr-simple (Depends-on): Likewise.
42162         * modules/strnlen (Depends-on): Likewise.
42163
42164 2008-11-02  Bruno Haible  <bruno@clisp.org>
42165
42166         Mark 'atexit' obsolete.
42167         * modules/atexit (Status, Notice): New sections.
42168         * modules/chdir-long (Depends-on): Add atexit.
42169         * modules/wait-process (Depends-on): Likewise.
42170
42171 2008-11-02  Bruno Haible  <bruno@clisp.org>
42172
42173         * gnulib-tool: New option --with-obsolete.
42174         (func_usage): Document it.
42175         (func_modules_transitive_closure): Drop obsolete dependencies if
42176         incobsolete is not true.
42177         (func_import): Read and save the incobsolete variable to the cache.
42178
42179 2008-11-02  Bruno Haible  <bruno@clisp.org>
42180
42181         * modules/TEMPLATE-EXTENDED: New field 'Status'.
42182         * gnulib-tool: New option --extract-status.
42183         (func_usage): Document it.
42184         (sed_extract_prog): Recognize it.
42185         (func_get_status): New function.
42186
42187 2008-10-30  Simon Josefsson  <simon@josefsson.org>
42188
42189         * modules/sockets (License): Change from LGPL to LGPLv2+.
42190
42191 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42192
42193         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
42194
42195 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42196
42197         * MODULES.html.sh (Support for systems lacking POSIX:2001):
42198         Mention times and sys_times.
42199         * modules/sys_times, modules/sys_times-tests: New modules.
42200         * modules/times, modules/times-tests: Likewise
42201         * m4/sys_times_h.m4: New file.
42202         * lib/sys_times.in.h: Likewise
42203         * lib/times.c: Likewise.
42204         * tests/test-sys_times.c: Likewise.
42205         * tests/test-times.c: Likewise.
42206         * doc/posix-headers/sys_times.texi: Update.
42207         * doc/posix-functions/times.texi: Update.
42208
42209 2008-10-28  Jim Meyering  <meyering@redhat.com>
42210
42211         * modules/tempname (Depends-on): Add lstat.
42212
42213         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
42214
42215 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42216
42217         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
42218         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
42219         using idiom used elsewhere in gnulib.
42220
42221 2008-10-27  Jim Meyering  <meyering@redhat.com>
42222
42223         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
42224
42225 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42226
42227         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
42228         TESTS_ENVIRONMENT, for shell scripts that needs to call built
42229         programs.
42230         * tests/test-argp-2.sh: Use $EXEEXT when needed.
42231
42232 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42233
42234         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
42235
42236 2008-10-27  Bruno Haible  <bruno@clisp.org>
42237
42238         * tests/test-lstat.c: Include <stdio.h>.
42239
42240 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42241
42242         * modules/lstat-tests: New module.
42243         * tests/test-lstat.c: New file.
42244
42245 2008-10-26  Jim Meyering  <meyering@redhat.com>
42246
42247         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
42248
42249 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42250             Bruno Haible  <bruno@clisp.org>
42251
42252         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
42253         * modules/configmake (Include): Add a note that the include must come
42254         after all system headers.
42255         * lib/javaversion.c: Include configmake.h after all other includes.
42256
42257 2008-10-26  Bruno Haible  <bruno@clisp.org>
42258
42259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
42260         HAVE_STRUCT_RANDOM_DATA to 1.
42261         (gl_STDLIB_H): Simplify.
42262
42263 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42264
42265         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
42266         substitute HAVE_STRUCT_RANDOM_DATA.
42267         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
42268         random_data.
42269         * modules/stdlib (Makefile.am): Substitute
42270         HAVE_STRUCT_RANDOM_DATA.
42271
42272 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42273
42274         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
42275         * doc/gnulib-intro.texi (Copyright): Likewise.
42276
42277 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42278
42279         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
42280         findings.
42281
42282 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
42283             Bruno Haible  <bruno@clisp.org>
42284
42285         * lib/unistd.in.h: Include <winsock2.h>.
42286         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
42287         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
42288         Provide dummy declarations.
42289         (gethostname): Override.
42290         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
42291         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
42292         gl_PREREQ_SYS_H_WINSOCK2.
42293         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
42294         * doc/posix-functions/gethostname.texi: More details.
42295
42296 2008-10-25  Bruno Haible  <bruno@clisp.org>
42297
42298         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42299         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
42300         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
42301
42302         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
42303         here ...
42304         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
42305         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
42306         gl_UNISTD_H_DEFAULTS.
42307
42308 2008-10-25  Eric Blake  <ebb9@byu.net>
42309
42310         signbit: avoid spurious compiler failure
42311         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
42312         declarations inside function.
42313
42314 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42315             Bruno Haible  <bruno@clisp.org>
42316
42317         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
42318         * modules/random_r (Depends-on): Add stdint.
42319
42320 2008-10-24  Bruno Haible  <bruno@clisp.org>
42321
42322         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
42323         Eggert.
42324         * modules/strerror (License): Likewise.
42325
42326 2008-10-24  Jim Meyering  <meyering@redhat.com>
42327
42328         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
42329         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
42330
42331 2008-10-24  Eric Blake  <ebb9@byu.net>
42332
42333         getgroups: fix compilation when getgroups is available
42334         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
42335         but with <config.h> override of getgroups disabled.
42336
42337 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42338
42339         * doc/gnulib.texi (Header files): Add note about C++ problems.
42340         Explained by Bruno Haible <bruno@clisp.org>.
42341
42342 2008-10-23  Bruno Haible  <bruno@clisp.org>
42343
42344         Define a dummy SA_NODEFER macro on Interix.
42345         * lib/signal.in.h (SA_NODEFER): Define fallback.
42346         Reported by Aleksey Cheusov <cheusov@tut.by> via
42347         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
42348
42349 2008-10-23  Bruno Haible  <bruno@clisp.org>
42350
42351         * modules/freadahead (License): Change to LGPLv2+.
42352         Suggested by Simon Josefsson.
42353
42354 2008-10-23  Jim Meyering  <meyering@redhat.com>
42355
42356         random_r: new module
42357         * modules/random_r: New file.
42358         * m4/random_r.m4: New file.
42359         * lib/random_r.c: New file, from glibc.
42360         * modules/random_r-tests: New file.
42361         * tests/test-random_r.c: New file.
42362         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
42363          Declare.
42364         (RAND_MAX): Define.
42365         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
42366         * modules/stdlib: Substitute them, too.
42367         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
42368         * doc/glibc-functions/initstate_r.texi: Mention the new module.
42369         * doc/glibc-functions/random_r.texi: Likewise.
42370         * doc/glibc-functions/setstate_r.texi: Likewise.
42371         * doc/glibc-functions/srandom_r.texi: Likewise.
42372         * config/srclist.txt: Mention it.
42373
42374 2008-10-23  David Lutterkort  <lutter@redhat.com>
42375
42376         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
42377         link requirement
42378
42379 2008-10-23  Jim Meyering  <meyering@redhat.com>
42380
42381         selinux-h: mark parameters of stub functions as intentionally unused
42382         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
42383         * lib/se-context.in.h: Likewise.
42384
42385 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42386
42387         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
42388
42389 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42390
42391         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
42392
42393 2008-10-22  Eric Blake  <ebb9@byu.net>
42394
42395         glthread/thread: avoid compiler warning
42396         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
42397         Add unreachable abort to silence compiler.
42398
42399 2008-10-22  Eric Blake  <ebb9@byu.net>
42400
42401         netdb: also supply struct addrinfo for cygwin 1.5.x
42402         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
42403         older cygwin.
42404         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
42405         cygwin.
42406         * doc/posix-headers/netdb.texi (netdb.h): Document this.
42407
42408 2008-10-22  Bruno Haible  <bruno@clisp.org>
42409
42410         * users.txt: Update entry about pspp.
42411
42412 2008-10-21  Bruno Haible  <bruno@clisp.org>
42413
42414         Simplification.
42415         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
42416         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
42417
42418         Simplification.
42419         * lib/ioctl.c (ioctl): Don't undefine.
42420         * lib/socket.c (socket): Don't undefine.
42421
42422         Remove unused module indicator macros.
42423         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
42424         GNULIB_$1 as a C macro.
42425
42426         * doc/posix-functions/close.texi: Undo last change.
42427         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
42428         Windows platforms.
42429
42430 2008-10-21  Bruno Haible  <bruno@clisp.org>
42431
42432         Add gethostname() declaration to <unistd.h>.
42433         * lib/unistd.in.h (gethostname): New declaration.
42434         * lib/gethostname.c: Include <unistd.h>.
42435         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
42436         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
42437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
42438         and HAVE_GETHOSTNAME.
42439         * modules/gethostname (Depends-on): Add unistd.
42440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42441         (Include): Specify <unistd.h>.
42442         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
42443         HAVE_GETHOSTNAME.
42444         * tests/test-gethostname.c: Include <unistd.h> first.
42445
42446 2008-10-21  Bruno Haible  <bruno@clisp.org>
42447
42448         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
42449         * modules/select-tests (Depends-on): Likewise.
42450         Reported by Simon Josefsson.
42451
42452 2008-10-21  Simon Josefsson  <simon@josefsson.org>
42453
42454         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
42455         * lib/accept.c: New file, based on winsock.c.
42456         * lib/bind.c: New file, based on winsock.c.
42457         * lib/connect.c: New file, based on winsock.c.
42458         * lib/getpeername.c: New file, based on winsock.c.
42459         * lib/getsockname.c: New file, based on winsock.c.
42460         * lib/getsockopt.c: New file, based on winsock.c.
42461         * lib/ioctl.c: New file, based on winsock.c.
42462         * lib/listen.c: New file, based on winsock.c.
42463         * lib/recv.c: New file, based on winsock.c.
42464         * lib/recvfrom.c: New file, based on winsock.c.
42465         * lib/send.c: New file, based on winsock.c.
42466         * lib/sendto.c: New file, based on winsock.c.
42467         * lib/setsockopt.c: New file, based on winsock.c.
42468         * lib/shutdown.c: New file, based on winsock.c.
42469         * lib/socket.c: New file, based on winsock.c.
42470         * lib/w32sock.h: New file, based on winsock.c.
42471         * lib/winsock.c: Remove file.
42472         * modules/accept: Likewise.
42473         * modules/bind: Likewise.
42474         * modules/connect: Likewise.
42475         * modules/getpeername: Likewise.
42476         * modules/getsockname: Likewise.
42477         * modules/getsockopt: Likewise.
42478         * modules/ioctl: Likewise.
42479         * modules/listen: Likewise.
42480         * modules/recv: Likewise.
42481         * modules/recvfrom: Likewise.
42482         * modules/send: Likewise.
42483         * modules/sendto: Likewise.
42484         * modules/setsockopt: Likewise.
42485         * modules/shutdown: Likewise.
42486         * modules/socket: Use socket.c instead of winsock.c.
42487         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
42488         * doc/posix-functions/accept.texi: Doc fix.
42489         * doc/posix-functions/bind.texi: Doc fix.
42490         * doc/posix-functions/close.texi: Doc fix.
42491         * doc/posix-functions/connect.texi: Doc fix.
42492         * doc/posix-functions/getpeername.texi: Doc fix.
42493         * doc/posix-functions/getsockname.texi: Doc fix.
42494         * doc/posix-functions/getsockopt.texi: Doc fix.
42495         * doc/posix-functions/ioctl.texi: Doc fix.
42496         * doc/posix-functions/listen.texi: Doc fix.
42497         * doc/posix-functions/recv.texi: Doc fix.
42498         * doc/posix-functions/recvfrom.texi: Doc fix.
42499         * doc/posix-functions/send.texi: Doc fix.
42500         * doc/posix-functions/sendto.texi: Doc fix.
42501         * doc/posix-functions/setsockopt.texi: Doc fix.
42502         * doc/posix-functions/shutdown.texi: Doc fix.
42503         * doc/posix-functions/socket.texi: Doc fix.
42504
42505 2008-10-20  Bruno Haible  <bruno@clisp.org>
42506
42507         Take into account the role of SIGABRT_COMPAT on Windows 2008.
42508         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
42509         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
42510         as an alias for SIGABRT.
42511         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
42512         (sigaction): Map it to SIGABRT.
42513         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
42514
42515 2008-10-20  Bruno Haible  <bruno@clisp.org>
42516
42517         * lib/fts.c: Don't include lstat.h.
42518         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
42519
42520         Move the lstat() declaration to <sys/stat.h>.
42521         * lib/lstat.h: Remove file.
42522         * lib/sys_stat.in.h: Add special invocation convention.
42523         (lstat): New declaration.
42524         * lib/lstat.c (orig_lstat): New function.
42525         (rpl_lstat): Use orig_lstat instead of lstat.
42526         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
42527         AC_C_INLINE. Set REPLACE_LSTAT.
42528         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
42529         and REPLACE_LSTAT.
42530         * modules/lstat (Files): Remove lib/lstat.h.
42531         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42532         (Include): Specify <sys/stat.h> instead of lstat.h.
42533         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
42534         REPLACE_LSTAT.
42535         * NEWS: Mention the change.
42536
42537 2008-10-20  Bruno Haible  <bruno@clisp.org>
42538
42539         * modules/posix_spawn-tests: New file.
42540         * tests/test-posix_spawn3.c: New file.
42541
42542 2008-10-20  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
42545         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42546         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
42547         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42548         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
42549
42550 2008-10-20  Bruno Haible  <bruno@clisp.org>
42551
42552         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
42553         of posix_spawn on AIX 5.3.
42554
42555 2008-10-20  Bruno Haible  <bruno@clisp.org>
42556
42557         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
42558
42559 2008-10-20  Bruno Haible  <bruno@clisp.org>
42560
42561         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
42562         of AC_LANG_PROGRAM.
42563
42564 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42565
42566         * lib/netdb.in.h: Don't define GNU specific constants until they
42567         are supported or needed.  Reported by Bruno Haible
42568         <bruno@clisp.org>.
42569
42570 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42571
42572         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
42573
42574 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42575
42576         * lib/getaddrinfo.h: Remove file.
42577         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
42578         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
42579         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
42580         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
42581         * modules/netdb: Substitute GNULIB_GETADDRINFO.
42582         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
42583         * tests/test-getaddrinfo.c: Likewise.
42584         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
42585         * NEWS: Mention change.
42586
42587 2008-10-19  Bruno Haible  <bruno@clisp.org>
42588
42589         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
42590
42591 2008-10-19  Bruno Haible  <bruno@clisp.org>
42592
42593         * lib/wait-process.c: Include simply <sys/wait.h>.
42594         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
42595         WIFSTOPPED): Remove fallback definitions.
42596         * modules/wait-process (Depends-on): Add sys_wait.
42597
42598         New module 'sys_wait'.
42599         * modules/sys_wait: New file.
42600         * lib/sys_wait.in.h: New file, partially copied from
42601         lib/wait-process.c.
42602         * m4/sys_wait_h.m4: New file.
42603         * doc/posix-headers/sys_wait.texi: Mention the new module.
42604
42605 2008-10-19  Bruno Haible  <bruno@clisp.org>
42606
42607         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
42608
42609 2008-10-19  Bruno Haible  <bruno@clisp.org>
42610
42611         Assume that waitpid() fills an 'int' status, not a 'union wait'.
42612         * lib/wait-process.c (WAIT_T): Remove type.
42613         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
42614         (wait_subprocess): Update.
42615
42616 2008-10-19  Bruno Haible  <bruno@clisp.org>
42617
42618         New module 'atoll'.
42619         * modules/atoll: New file.
42620         * lib/stdlib.in.h (atoll): New declaration.
42621         * lib/atoll.c: New file, from glibc with modifications.
42622         * m4/atoll.m4: New file.
42623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
42624         HAVE_ATOLL.
42625         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
42626         * doc/posix-functions/atoll.texi: Mention the new module.
42627
42628 2008-10-19  Bruno Haible  <bruno@clisp.org>
42629
42630         Add strtoull() declaration to <stdlib.h>.
42631         * lib/stdlib.in.h (strtoull): New declaration.
42632         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42633         Set HAVE_STRTOULL.
42634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
42635         HAVE_STRTOULL.
42636         * modules/strtoull (Depends-on): Add stdlib.
42637         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42638         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
42639         HAVE_STRTOULL.
42640
42641 2008-10-19  Bruno Haible  <bruno@clisp.org>
42642
42643         Add strtoll() declaration to <stdlib.h>.
42644         * lib/stdlib.in.h (strtoll): New declaration.
42645         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42646         Set HAVE_STRTOLL.
42647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
42648         HAVE_STRTOLL.
42649         * modules/strtoll (Depends-on): Add stdlib.
42650         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42651         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
42652
42653 2008-10-19  Bruno Haible  <bruno@clisp.org>
42654
42655         * modules/bcopy (Depends-on): Add strings.
42656         (Include): Specify <strings.h>.
42657
42658 2008-10-19  Bruno Haible  <bruno@clisp.org>
42659
42660         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
42661
42662 2008-10-19  Bruno Haible  <bruno@clisp.org>
42663
42664         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42665         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42666         mingw.
42667
42668 2008-10-19  Bruno Haible  <bruno@clisp.org>
42669
42670         * lib/atanl.c: Don't include isnanl.h.
42671         * lib/cosl.c: Likewise.
42672         * lib/ldexpl.c: Likewise.
42673         * lib/logl.c: Likewise.
42674         * lib/sinl.c: Likewise.
42675         * lib/sqrtl.c: Likewise.
42676         * lib/tanl.c: Likewise.
42677
42678         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42679         * lib/isnanf.h: Remove file.
42680         * lib/isnand.h: Remove file.
42681         * lib/isnanl.h: Remove file.
42682         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42683         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42684         macros.
42685         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42686         HAVE_ISNANF, don't define it as a C macro.
42687         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42688         HAVE_ISNAND, don't define it as a C macro.
42689         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42690         HAVE_ISNANL, don't define it as a C macro.
42691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42692         HAVE_ISNAN[FDL].
42693         * modules/isnanf (Files): Remove lib/isnanf.h.
42694         (Depends-on): Add math.
42695         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42696         (Include): Specify <math.h> instead of isnanf.h.
42697         * modules/isnand (Files): Remove lib/isnand.h.
42698         (Depends-on): Add math.
42699         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42700         (Include): Specify <math.h> instead of isnand.h.
42701         * modules/isnanl (Files): Remove lib/isnanl.h.
42702         (Depends-on): Add math.
42703         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42704         (Include): Specify <math.h> instead of isnanl.h.
42705         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42706         HAVE_ISNAN[FDL].
42707         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42708         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42709         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42710         * NEWS: Mention the change.
42711
42712 2008-10-18  Bruno Haible  <bruno@clisp.org>
42713
42714         Add getusershell(), setusershell(), endusershell() declarations to
42715         <unistd.h>.
42716         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42717         declarations.
42718         * lib/getusershell.c: Include unistd.h.
42719         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42720         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42721         HAVE_GETUSERSHELL.
42722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42723         and HAVE_GETUSERSHELL.
42724         * modules/getusershell (Depends-on): Add unistd, extensions.
42725         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42726         (Include): Specify <unistd.h>.
42727         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42728         HAVE_GETUSERSHELL.
42729
42730 2008-10-18  Bruno Haible  <bruno@clisp.org>
42731
42732         Add a getloadavg() declaration to <stdlib.h>.
42733         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42734         getloadavg declaration.
42735         (getloadavg): New declaration.
42736         * lib/getloadavg.c: Include <stdlib.h> first.
42737         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42738         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42739         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42741         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42742         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42743         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42744         (Include): Specify <stdlib.h>.
42745         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42746         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42747
42748 2008-10-18  Bruno Haible  <bruno@clisp.org>
42749
42750         * lib/dirchownmod.c: Don't include lchmod.h.
42751
42752         Move the lchmod() declaration to <sys/stat.h>.
42753         * lib/lchmod.h: Remove file.
42754         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42755         (lchmod): New declaration, moved here from lib/lchown.h.
42756         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42757         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42758         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42759         and HAVE_LCHMOD.
42760         * modules/lchmod (Files): Remove lib/lchmod.h.
42761         (Depends-on): Add sys_stat, extensions.
42762         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42763         (Include): Specify <sys/stat.h> instead of lchmod.h.
42764         * modules/sys_stat (Depends-on): Add link-warning.
42765         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42766         definition of GL_LINK_WARNING.
42767         * NEWS: Mention the change.
42768
42769 2008-10-18  Bruno Haible  <bruno@clisp.org>
42770
42771         * lib/fchdir.c: Don't include dirfd.h.
42772         * lib/fts.c: Likewise.
42773         * lib/getcwd.c: Likewise.
42774         * lib/glob.c: Likewise.
42775
42776         Move the dirfd() declaration to <dirent.h>.
42777         * lib/dirfd.h: Remove file.
42778         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42779         (dirfd): New declaration.
42780         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42781         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42782         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42783         HAVE_DECL_DIRFD.
42784         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42785         HAVE_DECL_DIRFD.
42786         * modules/dirfd (Files): Remove lib/dirfd.h.
42787         (Depends-on): Add dirent, extensions.
42788         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42789         (Include): Specify <dirent.h> instead of dirfd.h.
42790         * modules/dirent (Depends-on): Add link-warning.
42791         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42792         definition of GL_LINK_WARNING.
42793         * NEWS: Mention the change.
42794
42795 2008-10-18  Bruno Haible  <bruno@clisp.org>
42796
42797         Move the euidaccess() declaration to <unistd.h>.
42798         * lib/euidaccess.h: Remove file.
42799         * lib/unistd.in.h (euidaccess): New declaration.
42800         * lib/euidaccess.c: Don't include euidaccess.h.
42801         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42802         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42804         and HAVE_EUIDACCESS.
42805         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42806         (Depends-on): Add unistd.
42807         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42808         (Include): Specify <unistd.h> instead of euidaccess.h.
42809         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42810         HAVE_EUIDACCESS.
42811         * NEWS: Mention the change.
42812
42813 2008-10-18  Bruno Haible  <bruno@clisp.org>
42814
42815         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42816
42817         Move the getdomainname() declaration to <unistd.h>.
42818         * lib/getdomainname.h: Remove file.
42819         * lib/unistd.in.h (getdomainname): New declaration.
42820         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42821         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42822         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42823         HAVE_GETDOMAINNAME.
42824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42825         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42826         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42827         (Depends-on): Add unistd, extensions.
42828         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42829         (Includes): Specify <unistd.h> instead of getdomainname.h.
42830         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42831         HAVE_GETDOMAINNAME.
42832         * NEWS: Mention the change.
42833
42834 2008-10-18  Bruno Haible  <bruno@clisp.org>
42835
42836         * modules/dirent: New file.
42837         * m4/dirent_h.m4: New file.
42838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42839         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42840         * modules/fchdir (Files): Remove lib/dirent.in.h.
42841         (Depends-on): Add dirent.
42842         (Makefile.am): Move rules to modules/dirent.
42843         * doc/posix-headers/dirent.texi: Mention the new module.
42844
42845 2008-10-18  Bruno Haible  <bruno@clisp.org>
42846
42847         Avoid -Wunused-parameter warnings in public gnulib header files.
42848         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42849         macro.
42850         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42851
42852 2008-10-18  Bruno Haible  <bruno@clisp.org>
42853
42854         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42855         * doc/glibc-functions/error.texi: Mention the module 'error'.
42856         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42857         * doc/glibc-functions/getdomainname.texi: Mention the module
42858         'getdomainname'.
42859         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42860         * doc/glibc-functions/getpagesize.texi: Mention the module
42861         'getpagesize'.
42862         * doc/glibc-functions/getusershell.texi: Mention the module
42863         'getusershell'.
42864         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42865         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42866         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42867         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42868         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42869         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42870         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42871         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42872         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42873         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42874         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42875         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42876         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42877         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42878
42879 2008-10-17  Bruno Haible  <bruno@clisp.org>
42880
42881         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42882         HP-UX and IRIX, use -0.0L.
42883         * tests/test-ceill.c (minus_zero): Likewise.
42884         * tests/test-floorl.c (minus_zero): Likewise.
42885         * tests/test-frexpl.c (minus_zero): Likewise.
42886         * tests/test-isnan.c (minus_zerol): Likewise.
42887         * tests/test-isnanl.h (minus_zero): Likewise.
42888         * tests/test-ldexpl.c (minus_zero): Likewise.
42889         * tests/test-roundl.c (minus_zero): Likewise.
42890         * tests/test-signbit.c (minus_zerol): Likewise.
42891         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42892         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42893         * tests/test-truncl.c (minus_zero): Likewise.
42894         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42895         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42896         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42897         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42898
42899 2008-10-17  Bruno Haible  <bruno@clisp.org>
42900
42901         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42902         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42903         that it gets activated only for gcc >= 3.0.
42904         * lib/dirent.in.h: Likewise.
42905         * lib/errno.in.h: Likewise.
42906         * lib/fcntl.in.h: Likewise.
42907         * lib/float.in.h: Likewise.
42908         * lib/iconv.in.h: Likewise.
42909         * lib/inttypes.in.h: Likewise.
42910         * lib/locale.in.h: Likewise.
42911         * lib/math.in.h: Likewise.
42912         * lib/netdb.in.h: Likewise.
42913         * lib/netinet_in.in.h: Likewise.
42914         * lib/search.in.h: Likewise.
42915         * lib/signal.in.h: Likewise.
42916         * lib/spawn.in.h: Likewise.
42917         * lib/stdarg.in.h: Likewise.
42918         * lib/stdint.in.h: Likewise.
42919         * lib/stdio.in.h: Likewise.
42920         * lib/stdlib.in.h: Likewise.
42921         * lib/string.in.h: Likewise.
42922         * lib/strings.in.h: Likewise.
42923         * lib/sys_file.in.h: Likewise.
42924         * lib/sys_ioctl.in.h: Likewise.
42925         * lib/sys_select.in.h: Likewise.
42926         * lib/sys_socket.in.h: Likewise.
42927         * lib/sys_stat.in.h: Likewise.
42928         * lib/sys_time.in.h: Likewise.
42929         * lib/sysexits.in.h: Likewise.
42930         * lib/time.in.h: Likewise.
42931         * lib/unistd.in.h: Likewise.
42932         * lib/wchar.in.h: Likewise.
42933         * lib/wctype.in.h: Likewise.
42934         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42935
42936 2008-10-17  Jim Meyering  <meyering@redhat.com>
42937
42938         ignore-value: don't depend on inline module
42939         * modules/ignore-value (Depends-on): Remove 'inline'.
42940         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42941         Suggestion from Bruno Haible.
42942
42943 2008-10-17  Bruno Haible  <bruno@clisp.org>
42944
42945         New implementation of condition variables for Win32.
42946         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42947         (gl_linked_waitqueue_t): New type.
42948         (gl_cond_t): Use it.
42949         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42950         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42951         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42952         (glthread_cond_init_func, glthread_cond_wait_func,
42953         glthread_cond_timedwait_func, glthread_cond_signal_func,
42954         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42955         Reimplemented on the basis of gl_linked_waitqueue_t.
42956         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42957         gl_waitqueue_t.
42958         (gl_rwlock_t): Update.
42959         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42960
42961 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42962
42963         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42964         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42965
42966 2008-10-17  Jim Meyering  <meyering@redhat.com>
42967
42968         ignore-value: new module
42969         * modules/ignore-value: New file.
42970         * lib/ignore-value.h: New file.
42971         * MODULES.html.sh (Compiler warning management): New section,
42972         just for this module.  More to come.
42973
42974 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42975
42976         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42977         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42978         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42979
42980 2008-10-16  Jim Meyering  <meyering@redhat.com>
42981
42982         openat-die.c: avoid 'no previous prototype' warning
42983         * lib/openat-die.c: Include "openat.h".
42984         Reported by Reuben Thomas <rrt@sc3d.org>.
42985
42986 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42987
42988         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42989         * lib/netdb.in.h: Fix typo.
42990         Reported by Bruno Haible  <bruno@clisp.org>
42991
42992         * lib/netdb.in.h: Include sys/socket.h for platforms without
42993         netdb.h, to get structures like hostent on MinGW.
42994         * modules/netdb (Depends-on): Add sys_socket.
42995
42996 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42997
42998         * modules/netdb, modules/netdb-tests: New file.
42999         * m4/netdb_h.m4: New file.
43000         * lib/netdb.in.h: Add, currently just an empty file pending
43001         definitions.
43002         * tests/test-netdb.c: New file.
43003         * doc/posix-headers/netdb.texi: Mention that we replace it if
43004         needed.
43005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43006         netdb.
43007
43008 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43009
43010         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
43011         with code.
43012
43013 2008-10-13  Bruno Haible  <bruno@clisp.org>
43014
43015         * lib/glthread/cond.c (glthread_cond_wait_func,
43016         glthread_cond_timedwait_func): Add a comment.
43017
43018 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43019
43020         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
43021         * tests/test-select.c: Likewise,
43022
43023 2008-10-13  Bruno Haible  <bruno@clisp.org>
43024
43025         * lib/glthread/cond.c (glthread_cond_wait_func,
43026         glthread_cond_timedwait_func): Fix variable name.
43027         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43028
43029 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
43030
43031         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
43032         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
43033         struct sockaddr.sa_len.
43034         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
43035
43036 2008-10-13  Simon Josefsson  <simon@josefsson.org>
43037
43038         * build-aux/pmccabe2html: Add css and css_url parameters.
43039
43040 2008-10-12  Bruno Haible  <bruno@clisp.org>
43041
43042         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
43043         calling aclx_get.
43044         Reported by Rainer Tammer <tammer@tammer.net>.
43045
43046 2008-10-12  Bruno Haible  <bruno@clisp.org>
43047
43048         Use msvcrt aware primitives for creation/termination of Win32 threads.
43049         * lib/glthread/thread.c: Include <process.h>.
43050         (glthread_create_func): Use _beginthreadex instead of CreateThread.
43051         (wrapper_func): Update signature.
43052         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
43053
43054 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43055             Bruno Haible  <bruno@clisp.org>
43056
43057         Provide a Win32 implementation of the 'cond' module.
43058         * lib/glthread/cond.h [USE_WIN32]: New implementation.
43059         * lib/glthread/cond.c (glthread_cond_init_func,
43060         glthread_cond_wait_func, glthread_cond_timedwait_func,
43061         glthread_cond_signal_func, glthread_cond_broadcast_func,
43062         glthread_cond_destroy_func) [USE_WIN32]: New functions.
43063         * modules/cond (Dependencies): Add gettimeofday.
43064
43065 2008-10-11  Bruno Haible  <bruno@clisp.org>
43066
43067         Make sleep work on older versions of mingw.
43068         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
43069         only whether it exists.
43070         * doc/posix-functions/sleep.texi: Mention the problem with older
43071         versions of mingw.
43072
43073 2008-10-11  Bruno Haible  <bruno@clisp.org>
43074
43075         New module 'shutdown'.
43076         * modules/shutdown: New file.
43077         * lib/sys_socket.in.h (shutdown): New declaration.
43078         * lib/winsock.c (shutdown): New function.
43079         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43080         GNULIB_SHUTDOWN.
43081         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
43082         * doc/posix-functions/shutdown.texi: Document the new module.
43083
43084 2008-10-11  Jim Meyering  <meyering@redhat.com>
43085
43086         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
43087
43088 2008-10-11  Bruno Haible  <bruno@clisp.org>
43089
43090         New module 'fclose'.
43091         * modules/fclose: New file.
43092         * lib/stdio.in.h (fclose): New declaration.
43093         * lib/fclose.c: New file.
43094         * m4/fclose.m4: New file.
43095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
43096         REPLACE_FCLOSE.
43097         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
43098         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
43099         REPLACE_FCLOSE.
43100         * modules/close (Depends-on): fclose.
43101         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
43102
43103 2008-10-11  Bruno Haible  <bruno@clisp.org>
43104
43105         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
43106         set errno and don't call _close.
43107
43108 2008-10-10  Bruno Haible  <bruno@clisp.org>
43109
43110         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
43111         ACL, not afterwards. Fixes test failure on Cygwin.
43112
43113 2008-10-09  Ben Pfaff  <blp@gnu.org>
43114
43115         * build-aux/announce-gen: Fix gnulib version related part of usage
43116         message.  Die with a useful error message if no tarballs are
43117         found.
43118
43119 2008-10-10  Jim Meyering  <meyering@redhat.com>
43120
43121         bootstrap: use git's --depth=N option only if it's supported
43122         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
43123         recognize the --depth option.  Reported by Pádraig Brady.
43124
43125 2008-10-09  Bruno Haible  <bruno@clisp.org>
43126
43127         New module 'ioctl'.
43128         * modules/ioctl: New file.
43129         * lib/sys_socket.in.h (ioctl): Remove declaration.
43130         * lib/winsock.c: Include <sys/ioctl.h>.
43131         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
43132         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43133         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
43134         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
43135         * doc/posix-functions/ioctl.texi: Mention the new module.
43136
43137 2008-10-09  Bruno Haible  <bruno@clisp.org>
43138
43139         New module 'sys_ioctl'.
43140         * lib/sys_ioctl.in.h: New file.
43141         * m4/sys_ioctl_h.m4: New file.
43142         * modules/sys_ioctl: New file.
43143         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
43144
43145 2008-10-09  Bruno Haible  <bruno@clisp.org>
43146
43147         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
43148         * lib/winsock.c: Include <stdarg.h>.
43149         (rpl_ioctl): Change to second argument 'int' and then varargs.
43150
43151 2008-10-09  Bruno Haible  <bruno@clisp.org>
43152
43153         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
43154         when the sys_socket module is present and the system has <winsock2.h>.
43155
43156 2008-10-09  Bruno Haible  <bruno@clisp.org>
43157
43158         * doc/posix-functions/close.texi: Mention module 'close' instead of
43159         module 'sys_socket'.
43160
43161 2008-10-09  Bruno Haible  <bruno@clisp.org>
43162
43163         * doc/glibc-headers/sys_ioctl.texi: New file.
43164         * doc/gnulib.texi: Include it.
43165
43166 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43167             Bruno Haible  <bruno@clisp.org>
43168
43169         Combine the two replacements of 'close'.
43170         * lib/sys_socket.in.h (close): Define to a reminder to include
43171         <unistd.h>.
43172         (_gl_close_fd_maybe_socket): New declaration.
43173         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
43174         * lib/winsock.c (close): Remove undefinition.
43175         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
43176         needed for the gnulib module 'close'.
43177         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
43178         define to an error symbol or to a warning, if suitable.
43179         * lib/close.c: Include <sys/socket.h>.
43180         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
43181         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
43182         UNISTD_H_HAVE_WINSOCK2_H.
43183         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
43184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43185         UNISTD_H_HAVE_WINSOCK2_H.
43186         * modules/sys_socket (Files): Add m4/unistd_h.m4.
43187         (configure.ac): Set a module indicator.
43188         (Makefile.am): Substitute GNULIB_CLOSE.
43189         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
43190         * modules/poll-tests (Depends-on): Add close.
43191         * modules/select-tests (Depends-on): Likewise.
43192
43193 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43194             Bruno Haible  <bruno@clisp.org>
43195
43196         New module 'close'.
43197         * modules/close: New file.
43198         * lib/unistd.in.h (close): Move declaration out of the
43199         FCHDIR_REPLACEMENT scope.
43200         (_gl_unregister_fd): New declaration.
43201         * lib/close.c: New file.
43202         * lib/fchdir.c (rpl_close): Remove function.
43203         * m4/close.m4: New file.
43204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43205         close.
43206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
43207         REPLACE_CLOSE.
43208         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
43209         REPLACE_CLOSE.
43210         * modules/fchdir (Depends-on): Add close.
43211
43212 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43213             Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/fcntl.in.h (open): Simplify conditionals.
43216         (_gl_register_fd): New declaration.
43217         * lib/fchdir.c (rpl_open): Remove function.
43218         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
43219         also.
43220         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
43221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43222         open.
43223
43224 2008-10-09  Jim Meyering  <meyering@redhat.com>
43225
43226         GNUmakefile: use the more name-space-friendly "_version"
43227         * top/GNUmakefile (_dummy): Update.
43228         (_version): Rename from "version".
43229
43230 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43231             Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
43234         rpl_close.
43235         (_gl_register_fd): New function, extracted from rpl_open.
43236         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
43237         (rpl_open, rpl_opendir): Use _gl_register_fd.
43238
43239 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43240
43241         Fix organization of 'open' replacement.
43242         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
43243         (gl_FUNC_OPEN): Use it.
43244         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
43245
43246 2008-10-08  Bruno Haible  <bruno@clisp.org>
43247
43248         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
43249
43250 2008-10-08  Simon Josefsson  <simon@josefsson.org>
43251
43252         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
43253         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
43254         listen).
43255
43256 2008-10-08  Eric Blake  <ebb9@byu.net>
43257
43258         GNUmakefile: add 'make version' target
43259         * top/GNUmakefile (_curr-ver): Split version update rules...
43260         (version): ...into a target.
43261
43262 2008-10-07  Bruno Haible  <bruno@clisp.org>
43263
43264         Use a more portable replacement expression for -0.0L.
43265         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
43266         instead of -0.0L. Fix m4 quotation.
43267
43268         * tests/test-signbit.c: Include <float.h>.
43269         (minus_zero): New variable.
43270         (test_signbitl): Use minus_zero instead of -zero.
43271         * modules/signbit-tests (Depends-on): Add float.
43272
43273         * tests/test-ceill.c: Include <float.h>.
43274         (zero): Remove variable.
43275         (minus_zero): New variable.
43276         (main): Use minus_zero instead of -zero.
43277         * modules/ceill-tests (Depends-on): Add float.
43278
43279         * tests/test-floorl.c: Include <float.h>.
43280         (zero): Remove variable.
43281         (minus_zero): New variable.
43282         (main): Use minus_zero instead of -zero.
43283         * modules/floorl-tests (Depends-on): Add float.
43284
43285         * tests/test-roundl.c: Include <float.h>.
43286         (zero): Remove variable.
43287         (minus_zero): New variable.
43288         (main): Use minus_zero instead of -zero.
43289         * modules/roundl-tests (Depends-on): Add float.
43290
43291         * tests/test-truncl.c: Include <float.h>.
43292         (zero): Remove variable.
43293         (minus_zero): New variable.
43294         (main): Use minus_zero instead of -zero.
43295         * modules/truncl-tests (Depends-on): Add float.
43296
43297         * tests/test-frexpl.c (zero): Remove variable.
43298         (minus_zero): New variable.
43299         (main): Use minus_zero instead of -zero.
43300         * modules/frexpl-tests (Depends-on): Add float.
43301
43302         * tests/test-isnan.c (zerol): Remove variable.
43303         (minus_zerol): New variable.
43304         (test_long_double): Use minus_zerol instead of -zerol.
43305         * modules/isnan-tests (Depends-on): Add float.
43306
43307         * tests/test-isnanl.h (zero): Remove variable.
43308         (minus_zero): New variable.
43309         (main): Use minus_zero instead of -zero.
43310         * modules/isnanl-nolibm-tests (Depends-on): Add float.
43311         * modules/isnanl-tests (Depends-on): Add float.
43312
43313         * tests/test-ldexpl.c (zero): Remove variable.
43314         (minus_zero): New variable.
43315         (main): Use minus_zero instead of -zero.
43316         * modules/ldexpl-tests (Depends-on): Add float.
43317
43318         * tests/test-snprintf-posix.h (zerol): Remove variable.
43319         (minus_zerol): New variable.
43320         (test_function): Use minus_zerol instead of -zerol.
43321         * modules/snprintf-posix-tests (Depends-on): Add float.
43322         * modules/vsnprintf-posix-tests (Depends-on): Add float.
43323
43324         * tests/test-sprintf-posix.h (zerol): Remove variable.
43325         (minus_zerol): New variable.
43326         (test_function): Use minus_zerol instead of -zerol.
43327         * modules/sprintf-posix-tests (Depends-on): Add float.
43328         * modules/vsprintf-posix-tests (Depends-on): Add float.
43329
43330         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
43331         (minus_zerol): New variable.
43332         (test_function): Use minus_zerol instead of -zerol.
43333         * modules/vasnprintf-posix-tests (Depends-on): Add float.
43334
43335         * tests/test-vasprintf-posix.c (zerol): Remove variable.
43336         (minus_zerol): New variable.
43337         (test_function): Use minus_zerol instead of -zerol.
43338         * modules/vasprintf-posix-tests (Depends-on): Add float.
43339
43340 2008-10-07  Simon Josefsson  <simon@josefsson.org>
43341
43342         * MODULES.html.sh (Support for building documentation): Mention
43343         pmccabe2html.  Sort entries.
43344
43345         Add pmccabe2html module, from gnupdf.
43346         * build-aux/pmccabe.css: New file.
43347         * build-aux/pmccabe2html: New file.
43348         * m4/pmccabe2html.m4: New file.
43349         * modules/pmccabe2html: New file.
43350
43351 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
43352
43353         flock: new module
43354         * MODULES.html.sh: Add to list of modules.
43355         * lib/flock.c: flock implementation for Windows and Unix systems
43356         which have fcntl.
43357         * doc/glibc-functions/flock.texi: Update documentation.
43358         * lib/sys_file.in.h: <sys/file.h> header file.
43359         * m4/flock.m4: M4 macros.
43360         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
43361         * modules/flock: flock module.
43362         * modules/flock-tests: flock tests module.
43363         * modules/sys_file: sys/file.h module.
43364         * tests/test-flock.c: test suite for flock.
43365
43366 2008-10-06  Jim Meyering  <meyering@redhat.com>
43367
43368         bootstrap: check for LT_INIT more portably still ;-)
43369         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
43370         Spotted by Bruno Haible.
43371
43372 2008-10-06  Eric Blake  <ebb9@byu.net>
43373
43374         test-signbit: avoid tripping Irix cc bug on -0.0L
43375         * tests/test-signbit.c (minus_zerol): Delete, and replace with
43376         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
43377         entire testsuite consistent and avoids an Irix 6.2 bug.
43378
43379 2008-10-05  Bruno Haible  <bruno@clisp.org>
43380             Jim Meyering  <jim@meyering.net>
43381
43382         Add an option for ignoring EPIPE during close_stdout.
43383         * lib/closeout.h: Include <stdbool.h>.
43384         (close_stdout_set_ignore_EPIPE): New declaration.
43385         * lib/closeout.c: Include <stdbool.h>.
43386         (ignore_EPIPE): New variable.
43387         (close_stdout_set_ignore_EPIPE): New function.
43388         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
43389         * lib/close-stream.c (close_stream): Mention the possible EPIPE
43390         failure.
43391         * modules/closeout (Depends-on): Add stdbool.
43392
43393 2008-10-05  Bruno Haible  <bruno@clisp.org>
43394
43395         * modules/accept: New file.
43396         * modules/bind: New file.
43397         * modules/connect: New file.
43398         * modules/getpeername: New file.
43399         * modules/getsockname: New file.
43400         * modules/getsockopt: New file.
43401         * modules/listen: New file.
43402         * modules/recv: New file.
43403         * modules/recvfrom: New file.
43404         * modules/send: New file.
43405         * modules/sendto: New file.
43406         * modules/setsockopt: New file.
43407         * modules/socket: New file.
43408         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
43409         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43410         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43411         the particular module is requested. Add a link warning when the
43412         particular module is not requested.
43413         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
43414         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
43415         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
43416         the particular module is requested.
43417         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
43418         gl_SYS_SOCKET_H_DEFAULTS): New macros.
43419         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
43420         * modules/sys_socket (Depends-on): Add link-warning.
43421         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
43422         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
43423         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
43424         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
43425         GL_LINK_WARNING.
43426         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
43427         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
43428         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
43429         * doc/posix-functions/getpeername.texi: Mention the new module
43430         'getpeername'.
43431         * doc/posix-functions/getsockname.texi: Mention the new module
43432         'getsockname'.
43433         * doc/posix-functions/getsockopt.texi: Mention the new module
43434         'getsockopt'.
43435         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
43436         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
43437         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
43438         * doc/posix-functions/send.texi: Mention the new module 'send'.
43439         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
43440         * doc/posix-functions/setsockopt.texi: Mention the new module
43441         'setsockopt'.
43442         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
43443         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
43444         listen, connect, accept.
43445         * modules/select-tests (Depends-on): Likewise.
43446
43447 2008-10-05  Bruno Haible  <bruno@clisp.org>
43448
43449         * lib/winsock.c (strerror): Remove unused #undef.
43450         (rpl_close): Remove unused local variable.
43451
43452         * modules/sys_socket (Depends-on); Add errno.
43453
43454 2008-10-05  Bruno Haible  <bruno@clisp.org>
43455
43456         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
43457         (select): Add a link warning when the 'select' module is not used.
43458         * modules/sys_select (Depends-on): Add link-warning.
43459         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
43460         Suggested by Paolo Bonzini.
43461
43462 2008-10-05  Jim Meyering  <meyering@redhat.com>
43463
43464         bootstrap: check for LT_INIT more portably
43465         * build-aux/bootstrap: Avoid using grep -E, since it's not
43466         portable enough.  Suggestion from Bruno Haible.
43467
43468 2008-10-05  Bruno Haible  <bruno@clisp.org>
43469
43470         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
43471         as being fixed by gnulib.
43472
43473 2008-10-05  Bruno Haible  <bruno@clisp.org>
43474
43475         * modules/select-tests: New file, mostly copied from
43476         modules/sys_select-tests.
43477         * tests/test-select.c: New file, mostly copied from
43478         tests/test-sys_select.c.
43479         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
43480         * modules/sys_select-tests (Depends-on): Remove all dependencies.
43481         (Makefile.am): Remove test_sys_select_LDADD.
43482
43483         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
43484         to an undefined symbol, for an error message.
43485         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
43486         (gl_SYS_SELECT_H_DEFAULTS): New macro.
43487         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
43488         winsock-select.c here.
43489         * modules/sys_select (Files): Remove lib/winsock-select.c.
43490         (Depends-on): Remove alloca.
43491         (Makefile.am): Substitute GNULIB_SELECT.
43492         * modules/select: New file.
43493         * doc/posix-functions/select.texi: Update.
43494
43495 2008-10-05  Bruno Haible  <bruno@clisp.org>
43496
43497         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
43498         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
43499         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
43500         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
43501         getdtablesize.
43502         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
43503         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
43504
43505 2008-10-05  Bruno Haible  <bruno@clisp.org>
43506
43507         * modules/getdtablesize-tests: New file.
43508         * tests/test-getdtablesize.c: New file.
43509
43510         New module 'getdtablesize'.
43511         * lib/unistd.in.h (getdtablesize): New declaration.
43512         * lib/getdtablesize.c: New file.
43513         * m4/getdtablesize.m4: New file.
43514         * modules/getdtablesize: New file.
43515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43516         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
43517         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
43518         HAVE_GETDTABLESIZE.
43519         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
43520
43521 2008-10-05  Bruno Haible  <bruno@clisp.org>
43522
43523         * modules/sched (Makefile.am): Fix typo.
43524         Reported by Simon Josefsson.
43525
43526 2008-10-05  Jim Meyering  <meyering@redhat.com>
43527
43528         bootstrap: check for LT_INIT, too
43529         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
43530         are deprecated.  Suggestion from Ralf Wildenhues.
43531
43532 2008-10-05  Bruno Haible  <bruno@clisp.org>
43533
43534         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
43535         overriding them by ours.
43536         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
43537
43538 2008-10-05  Jim Meyering  <meyering@redhat.com>
43539
43540         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
43541         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
43542         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
43543
43544 2008-10-04  Bruno Haible  <bruno@clisp.org>
43545
43546         * modules/dup2 (License): Change to LGPLv2+.
43547         * modules/sleep (License): Likewise.
43548         * modules/perror (License): Likewise.
43549         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
43550         Blake.
43551         * modules/signal (License): Likewise.
43552         * modules/sigprocmask (License): Likewise.
43553         * modules/raise (License): Change to LGPLv2+, with approval by Jim
43554         Meyering.
43555
43556 2008-10-04  Bruno Haible  <bruno@clisp.org>
43557
43558         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
43559         Reported by Rainer Tammer <tammer@tammer.net>.
43560
43561 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
43562             Bruno Haible  <bruno@clisp.org>
43563
43564         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
43565         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
43566         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
43567
43568 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
43569
43570         filevercmp: new module
43571         * lib/filevercmp.h: New function filevercmp comparing version strings.
43572         * lib/filevercmp.c: Implementation of filevercmp function.
43573         * modules/filevercmp: Module metadata.
43574         * tests/test-filevercmp.c: Unit test for new module.
43575         * modules/filevercmp-tests: Unit test metadata.
43576         * MODULES.html.sh: Add filevercmp module.
43577
43578 2008-10-03  Bruno Haible  <bruno@clisp.org>
43579
43580         * lib/c-ctype.h: Add comment.
43581         Reported by Jim Meyering.
43582
43583 2008-10-02  Bruno Haible  <bruno@clisp.org>
43584
43585         * modules/posix_spawn-internal (Depends-on): Add 'open'.
43586
43587 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43588
43589         * build-aux/bootstrap: Allow renaming bootstrap, and change the
43590         name of bootstrap.conf accordingly.
43591
43592 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43593
43594         * build-aux/bootstrap: Install git-merge-changelog configuration
43595         items into .gitconfig if needed.
43596
43597 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43598
43599         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
43600         git repository, and initialize/update it accordingly.
43601
43602 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
43603
43604         * modules/fsync-tests: New file.
43605         * tests/test-fsync.c: New file.
43606
43607         New module 'fsync'.
43608         * lib/fsync.c: New file.
43609         * m4/fsync.m4: New file.
43610         * modules/fsync: New file.
43611         * lib/unistd.in.h (fsync): New declaration.
43612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
43613         GNULIB_FSYNC and HAVE_FSYNC.
43614         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
43615         * MODULES.html.sh (posix_functions): Add fsync.
43616         * doc/posix-functions/fsync.texi: Mention the new module.
43617
43618 2008-10-02  Jim Meyering  <meyering@redhat.com>
43619
43620         fts.c: sync with similar code from coreutils' remove.c
43621         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
43622         Guard also with "#if defined __linux__", since for now at least,
43623         this code is Linux-kernel-specific.
43624
43625 2008-10-02  Jim Meyering  <meyering@redhat.com>
43626
43627         fts: bug fixes
43628         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
43629         Include <sys/vfs.h>, not <sys/statfs.h>.
43630
43631         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
43632         Include <sys/vfs.h>, not <sys/statfs.h>.
43633
43634 2008-10-01  Bruno Haible  <bruno@clisp.org>
43635
43636         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
43637         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
43638         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
43639         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
43640         * doc/posix-functions/posix_spawnp.texi: Likewise.
43641         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
43642         whether posix_spawn actually works.
43643         * m4/pipe.m4 (gl_PIPE): Likewise.
43644         * modules/execute (Files): Add m4/posix_spawn.m4.
43645         * modules/pipe (Files): Add m4/posix_spawn.m4.
43646         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
43647
43648 2008-10-01  Jim Meyering  <meyering@redhat.com>
43649
43650         remove trailing spaces
43651         * NEWS: Likewise.
43652         * lib/poll.c (poll): Likewise.
43653         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
43654         * lib/winsock.c (rpl_close): Likewise.
43655         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
43656         * modules/yield: Likewise.
43657         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
43658         * tests/test-sys_select.c (connect_to_socket): Likewise.
43659
43660         fts.c: adjust a new interface to be more generally useful
43661         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
43662         (fts_build): Adjust caller.
43663
43664 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43665
43666         * modules/cond-tests: New file.
43667         * tests/test-cond.c: New file.
43668
43669 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43670             Bruno Haible  <bruno@clisp.org>
43671
43672         * modules/cond (Dependencies): Add errno, time.
43673         * lib/glthread/cond.h: Include <time.h>.
43674         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43675         across platforms.
43676
43677 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43678             Bruno Haible  <bruno@clisp.org>
43679
43680         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43681
43682 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43683             Bruno Haible  <bruno@clisp.org>
43684
43685         * modules/tls-tests (Depends-on): Add thread, yield.
43686         (configure.ac): Remove all checks.
43687         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43688         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43689         gl_thread_self): Remove definitions. Include glthread/thread.h and
43690         glthread/yield.h instead.
43691         (test_tls): Pass an additional NULL argument to gl_thread_join.
43692
43693 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43694             Bruno Haible  <bruno@clisp.org>
43695
43696         * modules/lock-tests (Depends-on): Add thread, yield.
43697         (configure.ac): Remove all checks.
43698         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43699         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43700         gl_thread_self): Remove definitions. Include glthread/thread.h and
43701         glthread/yield.h instead.
43702         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43703         additional NULL argument to gl_thread_join.
43704
43705 2008-09-30  Bruno Haible  <bruno@clisp.org>
43706
43707         Fix the Win32 implementation of the 'thread' module.
43708         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43709         pointer type.
43710         (gl_thread_self): Invoke gl_thread_self_func.
43711         (gl_thread_self_func): New declaration.
43712         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43713         (do_init_self_key, init_self_key): New functions.
43714         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43715         Remove some fields.
43716         (running_threads, running_lock): Remove variables.
43717         (get_current_thread_handle): New function.
43718         (gl_thread_self_func, wrapper_func, glthread_create_func,
43719         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43720         simplified.
43721
43722 2008-09-30  Bruno Haible  <bruno@clisp.org>
43723
43724         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43725         files.
43726
43727 2008-09-30  Jim Meyering  <meyering@redhat.com>
43728
43729         fts.m4: correct the test for statfs.f_type
43730         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43731         when checking for statfs.f_type.
43732
43733 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43734
43735         tests: avoid some compiler warnings
43736         * tests/test-memchr.c (main): Pass NULL indirectly.
43737         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43738
43739 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43740
43741         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43742         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43743         exactly specified dayshifts.
43744         (dayshift): New rule.
43745         (rel): Add dayshift.
43746         (relative_time_table) [tomorrow, yesterday, today, now]:
43747         Use tDAY_SHIFT in place of tDAY_UNIT.
43748         * tests/test-getdate.c: Add tests for now-disallowed countable
43749         dayshifts, e.g., "4 yesterday ago".
43750
43751 2008-09-29  Bruno Haible  <bruno@clisp.org>
43752
43753         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43754         * tests/test-posix_spawn1.in.sh: Renamed from
43755         tests/test-posix_spawn.in.sh.
43756         * tests/test-posix_spawn2.c: New file.
43757         * tests/test-posix_spawn2.in.sh: New file.
43758         * modules/posix_spawnp-tests (Files): Update.
43759         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43760
43761 2008-09-29  Bruno Haible  <bruno@clisp.org>
43762
43763         Propagate effects of putenv/setenv/unsetenv to child processes.
43764         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43765         * lib/pipe.c (create_pipe): Likewise.
43766
43767 2008-09-29  Bruno Haible  <bruno@clisp.org>
43768
43769         Enable use of shell scripts as executables in mingw.
43770         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43771         run the program as a shell script.
43772         * lib/pipe.c (create_pipe): Likewise.
43773         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43774         resulting array.
43775
43776 2008-09-29  Eric Blake  <ebb9@byu.net>
43777
43778         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43779
43780 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43781
43782         * doc/posix-functions/accept.texi: Update mingw problems.
43783         * doc/posix-functions/bind.texi: Update mingw problems.
43784         * doc/posix-functions/close.texi: Update mingw problems.
43785         * doc/posix-functions/connect.texi: Update mingw problems.
43786         * doc/posix-functions/getpeername.texi: Update mingw problems.
43787         * doc/posix-functions/getsockname.texi: Update mingw problems.
43788         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43789         * doc/posix-functions/ioctl.texi: Update mingw problems.
43790         * doc/posix-functions/listen.texi: Update mingw problems.
43791         * doc/posix-functions/recv.texi: Update mingw problems.
43792         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43793         * doc/posix-functions/select.texi: Update mingw problems.
43794         * doc/posix-functions/send.texi: Update mingw problems.
43795         * doc/posix-functions/sendto.texi: Update mingw problems.
43796         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43797         * doc/posix-functions/socket.texi: Update mingw problems.
43798
43799 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43800             Bruno Haible  <bruno@clisp.org>
43801
43802         * lib/sys_select.in.h: Include sys/time.h.
43803         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43804         * modules/sys_select: Depend on sys_time.
43805         * tests/test-sys_select.c: Test that sys/select.h defines struct
43806         timeval fully.
43807
43808 2008-09-29  Bruno Haible  <bruno@clisp.org>
43809
43810         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43811         * lib/sys_select.in.h: Likewise.
43812
43813 2008-09-29  Bruno Haible  <bruno@clisp.org>
43814
43815         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43816
43817 2008-09-29  Bruno Haible  <bruno@clisp.org>
43818
43819         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43820         Set LIBSOCKET instead of augmenting LIBS.
43821         * modules/sockets (Link): New section.
43822         * modules/sockets-tests (test_sockets_LDADD): New variable.
43823         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43824         * modules/poll-tests (test_poll_LDADD): New variable.
43825         * NEWS: Document the change.
43826
43827 2008-09-29  Bruno Haible  <bruno@clisp.org>
43828
43829         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43830         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43831         ARPA_INET_H directly.
43832         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43833
43834 2008-09-28  Bruno Haible  <bruno@clisp.org>
43835
43836         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43837         from gl_HEADER_SYS_SOCKET.
43838         (gl_HEADER_SYS_SOCKET): Invoke it.
43839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43840
43841 2008-09-28  Bruno Haible  <bruno@clisp.org>
43842
43843         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43844         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43845         Needed on OSF/1 4.0.
43846
43847 2008-09-28  Bruno Haible  <bruno@clisp.org>
43848
43849         Override open more carefully.
43850         * lib/open.c (orig_open): New function.
43851         (rpl_open): Use orig_open instead of open.
43852         * lib/fcntl.in.h: Add special invocation convention.
43853         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43854         (gl_FUNC_OPEN): Invoke it.
43855
43856         Override freopen more carefully.
43857         * lib/freopen.c (orig_freopen): New function.
43858         (rpl_freopen): Use orig_freopen instead of freopen.
43859         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43860         (gl_FUNC_FREOPEN): Invoke it.
43861
43862         Override fopen more carefully.
43863         * lib/fopen.c (orig_fopen): New function.
43864         (rpl_fopen): Use orig_fopen instead of fopen.
43865         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43866         (gl_FUNC_FOPEN): Invoke it.
43867         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43868
43869 2008-09-28  Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43872         SIGPIPE.
43873
43874 2008-09-28  Bruno Haible  <bruno@clisp.org>
43875
43876         * tests/test-sigaction.c (handler, main): Disable the check whether
43877         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43878         glibc systems with LinuxThreads.
43879
43880 2008-09-28  Bruno Haible  <bruno@clisp.org>
43881
43882         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43883
43884         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43885         with AIX xlc.
43886         * lib/fcntl.in.h (open): Likewise.
43887         Reported by Rainer Tammer <tammer@tammer.net>.
43888
43889 2008-09-28  Bruno Haible  <bruno@clisp.org>
43890
43891         * modules/posix_spawnp-tests: New file.
43892         * tests/test-posix_spawn.c: New file.
43893         * tests/test-posix_spawn.in.sh: New file.
43894
43895         New module 'posix_spawnp'.
43896         * modules/posix_spawnp: New file.
43897         * lib/spawnp.c: New file, from GNU libc with modifications.
43898         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43899
43900         New module 'posix_spawn'.
43901         * modules/posix_spawn: New file.
43902         * lib/spawn.c: New file, from GNU libc with modifications.
43903         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43904
43905         New module 'posix_spawnattr_destroy'.
43906         * modules/posix_spawnattr_destroy: New file.
43907         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43908         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43909         module.
43910
43911         New module 'posix_spawnattr_setsigmask'.
43912         * modules/posix_spawnattr_setsigmask: New file.
43913         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43914         modifications.
43915         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43916         new module.
43917
43918         New module 'posix_spawnattr_getsigmask'.
43919         * modules/posix_spawnattr_getsigmask: New file.
43920         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43921         modifications.
43922         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43923         new module.
43924
43925         New module 'posix_spawnattr_setsigdefault'.
43926         * modules/posix_spawnattr_setsigdefault: New file.
43927         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43928         modifications.
43929         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43930         new module.
43931
43932         New module 'posix_spawnattr_getsigdefault'.
43933         * modules/posix_spawnattr_getsigdefault: New file.
43934         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43935         modifications.
43936         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43937         new module.
43938
43939         New module 'posix_spawnattr_setschedpolicy'.
43940         * modules/posix_spawnattr_setschedpolicy: New file.
43941         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43942         modifications.
43943         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43944         new module.
43945
43946         New module 'posix_spawnattr_getschedpolicy'.
43947         * modules/posix_spawnattr_getschedpolicy: New file.
43948         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43949         modifications.
43950         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43951         new module.
43952
43953         New module 'posix_spawnattr_setschedparam'.
43954         * modules/posix_spawnattr_setschedparam: New file.
43955         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43956         modifications.
43957         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43958         new module.
43959
43960         New module 'posix_spawnattr_getschedparam'.
43961         * modules/posix_spawnattr_getschedparam: New file.
43962         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43963         modifications.
43964         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43965         new module.
43966
43967         New module 'posix_spawnattr_setpgroup'.
43968         * modules/posix_spawnattr_setpgroup: New file.
43969         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43970         modifications.
43971         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43972         module.
43973
43974         New module 'posix_spawnattr_getpgroup'.
43975         * modules/posix_spawnattr_getpgroup: New file.
43976         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43977         modifications.
43978         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43979         module.
43980
43981         New module 'posix_spawnattr_setflags'.
43982         * modules/posix_spawnattr_setflags: New file.
43983         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43984         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43985         module.
43986
43987         New module 'posix_spawnattr_getflags'.
43988         * modules/posix_spawnattr_getflags: New file.
43989         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43990         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43991         module.
43992
43993         New module 'posix_spawnattr_init'.
43994         * modules/posix_spawnattr_init: New file.
43995         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43996         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43997         module.
43998
43999         New module 'posix_spawn_file_actions_destroy'.
44000         * modules/posix_spawn_file_actions_destroy: New file.
44001         * lib/spawn_faction_destroy.c: New file, from GNU libc with
44002         modifications.
44003         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
44004         the new module.
44005
44006         New module 'posix_spawn_file_actions_addopen'.
44007         * modules/posix_spawn_file_actions_addopen: New file.
44008         * lib/spawn_faction_addopen.c: New file, from GNU libc with
44009         modifications.
44010         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44011         the new module.
44012
44013         New module 'posix_spawn_file_actions_adddup2'.
44014         * modules/posix_spawn_file_actions_adddup2: New file.
44015         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
44016         modifications.
44017         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44018         the new module.
44019
44020         New module 'posix_spawn_file_actions_addclose'.
44021         * modules/posix_spawn_file_actions_addclose: New file.
44022         * lib/spawn_faction_addclose.c: New file, from GNU libc with
44023         modifications.
44024         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44025         the new module.
44026
44027         New module 'posix_spawn_file_actions_init'.
44028         * modules/posix_spawn_file_actions_init: New file.
44029         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
44030         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
44031         new module.
44032
44033         New module 'posix_spawn-internal'.
44034         * modules/posix_spawn-internal: New file.
44035         * lib/spawn_int.h: New file, from GNU libc with modifications.
44036         * lib/spawni.c: New file, from GNU libc with modifications.
44037         * m4/posix_spawn.m4: New file.
44038
44039         New module 'spawn'.
44040         * modules/spawn: New file.
44041         * lib/spawn.in.h: New file, from GNU libc with modifications.
44042         * m4/spawn_h.m4: New file.
44043         * doc/posix-headers/spawn.texi: Mention the new module.
44044
44045 2008-09-28  Bruno Haible  <bruno@clisp.org>
44046
44047         * modules/sched-tests: New file.
44048         * tests/test-sched.c: New file.
44049
44050         New module 'sched'.
44051         * modules/sched: New file.
44052         * lib/sched.in.h: New file.
44053         * m4/sched_h.m4: New file.
44054         * doc/posix-headers/sched.texi: Mention the new module.
44055
44056 2008-09-27  Eric Blake  <ebb9@byu.net>
44057
44058         Fix previous patch, and tweak references to $0.
44059         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
44060         (func_version, func_gnulib_dir): Don't call this program
44061         gnulib-tool.
44062         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
44063         with using $0 in function.
44064         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
44065         (func_fatal_error): Reuse the name the user invoked us with.
44066
44067 2008-09-27  Bruno Haible  <bruno@clisp.org>
44068
44069         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
44070         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
44071         (gl_ICONV_H): Not here.
44072         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
44073         instead of assigning ICONV_H directly.
44074
44075         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
44076         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
44077         WCHAR_H directly.
44078
44079 2008-09-27  Bruno Haible  <bruno@clisp.org>
44080
44081         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
44082         * modules/arpa_inet (Depends-on): Add link-warning.
44083         (Makefile.am): Insert the definition of GL_LINK-WARNING.
44084         * modules/unistd (Makefile.am): Likewise.
44085
44086 2008-09-26  Bruno Haible  <bruno@clisp.org>
44087
44088         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
44089         variables.
44090         (func_version): Essentially copied from gnulib-tool.
44091         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
44092         func_readlink): Copied from gnulib-tool.
44093
44094 2008-09-26  Bruno Haible  <bruno@clisp.org>
44095
44096         * gnulib-tool (func_version): Change directory to $gnulib_dir before
44097         invoking git-version-gen.
44098
44099 2008-09-26  Bruno Haible  <bruno@clisp.org>
44100
44101         * posix-modules: Update to directory names changed on 2008-01-19.
44102         Remove commas in output before splitting into words. No more need to
44103         avoid 'ftruncate' since 2007-02-19.
44104
44105 2008-09-26  Bruno Haible  <bruno@clisp.org>
44106
44107         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
44108
44109 2008-09-26  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
44112         * modules/fwriteerror (Depends-on): Add errno.
44113
44114 2008-09-26  Bruno Haible  <bruno@clisp.org>
44115
44116         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
44117         * tests/test-vc-list-files-cvs.sh: Likewise.
44118
44119 2008-09-26  Bruno Haible  <bruno@clisp.org>
44120
44121         * doc/posix-headers/sys_resource.texi: Reorder items.
44122
44123 2008-09-26  Jim Meyering  <meyering@redhat.com>
44124
44125         fts: tweak inode comparison function
44126         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
44127         inode numbers, as documented.
44128
44129         fts: sort dirent entries on inode number before traversing
44130         This avoids a quadratic, seek-related performance penalty when
44131         operating on a directory containing many entries (measurable at 10k;
44132         3.5 hours at 2 million entries with a cold cache) on certain types
44133         of file systems, including ext3 and ext4, but not tmpfs.
44134         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
44135         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
44136         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
44137         (fs_handles_readdir_ordered_dirents_efficiently): New function.
44138         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
44139         (fts_build): Set the stat.st_ino member from D_INO.
44140         If it is likely to be useful, sort dirent entries on inode number.
44141
44142         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
44143         and the struct statfs.f_type member.
44144         * modules/fts (Depends-on): Add d-ino.
44145
44146 2008-09-26  Bruno Haible  <bruno@clisp.org>
44147
44148         * modules/sigpipe-die (Depends-on): Add sigpipe.
44149
44150         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
44151         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
44152         and GNULIB_STDIO_H_SIGPIPE are set.
44153         * lib/stdio-write.c: New file.
44154         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
44155         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44156         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44157         REPLACE_STDIO_WRITE_FUNCS.
44158         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
44159         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44160         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44161         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44162         * modules/stdio (Files): Add lib/stdio-write.c.
44163         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
44164         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44165         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44166         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44167         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
44168         REPLACE_FPRINTF_POSIX.
44169         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
44170         REPLACE_PRINTF_POSIX.
44171         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
44172         REPLACE_VFPRINTF_POSIX.
44173         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
44174         REPLACE_VPRINTF_POSIX.
44175         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
44176         SIGPIPE issue.
44177         * doc/posix-functions/fputc.texi: Likewise.
44178         * doc/posix-functions/fputs.texi: Likewise.
44179         * doc/posix-functions/fwrite.texi: Likewise.
44180         * doc/posix-functions/printf.texi: Likewise.
44181         * doc/posix-functions/putc.texi: Likewise.
44182         * doc/posix-functions/putchar.texi: Likewise.
44183         * doc/posix-functions/puts.texi: Likewise.
44184         * doc/posix-functions/vfprintf.texi: Likewise.
44185         * doc/posix-functions/vprintf.texi: Likewise.
44186
44187         * modules/safe-write (Depends-on): Add write.
44188
44189         * modules/sigpipe-tests: New file.
44190         * tests/test-sigpipe.c: New file.
44191         * tests/test-sigpipe.sh: New file.
44192
44193         * modules/write: New file.
44194         * lib/unistd.in.h: Include <sys/types.h>.
44195         (write): New declaration.
44196         * lib/write.c: New file.
44197         * m4/write.m4: New file.
44198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44199         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
44200         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
44201         GNULIB_WRITE, REPLACE_WRITE.
44202         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
44203         and the SIGPIPE issue.
44204
44205         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
44206         (raise): New declaration.
44207         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
44208         (ext_signal): New function.
44209         (rpl_raise): New function.
44210         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
44211         GNULIB_SIGNAL_H_SIGPIPE.
44212         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
44213         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
44214
44215         * modules/sigpipe: New file.
44216         * m4/sigpipe.m4: New file.
44217
44218 2008-09-25  Derek Price  <derek@ximbiot.com>
44219             Bruno Haible  <bruno@clisp.org>
44220
44221         * gnulib-tool (func_import): Report all license incompatibilities, not
44222         just the first one.
44223
44224 2008-09-25  Bruno Haible  <bruno@clisp.org>
44225
44226         * gnulib-tool (func_import): When computing the edits, consider not
44227         only the Makefile.ams that exist but also those that will be generated.
44228
44229 2008-09-25  Simon Josefsson  <simon@josefsson.org>
44230
44231         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
44232         fixes gnulib-tool --test warning about duplicate dependency.
44233
44234 2008-09-25  Bruno Haible  <bruno@clisp.org>
44235
44236         * gnulib-tool: Don't ask the user to perform edits in the generated
44237         Makefile.ams.
44238         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
44239         apply to the Makefile.am being generated.
44240         (func_emit_tests_Makefile_am): Execute edits that apply to the
44241         Makefile.am being generated.
44242         (func_import): Setup list of Makefile.am edits before emitting the
44243         Makefile.ams, not at the end.
44244         (func_create_testdir): Update.
44245         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44246
44247 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44248
44249         * gnulib-tool (func_import): Store the --tests-base option in the
44250         comment in gnulib-cache.m4.
44251
44252 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
44253
44254         * NEWS: Document increased portability that sys_select now provides.
44255
44256         * lib/sys_select.in.h: Install select wrapper.
44257         * lib/sys_socket.in.h: Use more descriptive name when there is no
44258         select wrapper.
44259         * lib/winsock-select.c: New.
44260         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
44261         Require gl_HEADER_SYS_SOCKET.
44262         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
44263         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
44264         * tests/test-sys_select.c: Add functional tests.
44265
44266 2008-09-24  Eric Blake  <ebb9@byu.net>
44267
44268         open, fopen: close fd leak in last patch
44269         * lib/open.c (rpl_open): Close fd before returning error.
44270         * lib/fopen.c (rpl_fopen): Close fd before returning error.
44271         * doc/posix-functions/open.texi (open): Document that Irix also
44272         has the bug.
44273         * doc/posix-functions/fopen.texi (fopen): Likewise.
44274         Reported by Paolo Bonzini.
44275
44276 2008-09-24  Bruno Haible  <bruno@clisp.org>
44277
44278         Ensure that a filename ending in a slash cannot be used to access a
44279         non-directory.
44280         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
44281         to check whether it's really a directory.
44282         * lib/fopen.c: Include fcntl.h, unistd.h.
44283         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
44284         and fdopen().
44285         * modules/fopen (Depends-on): Add unistd.
44286         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
44287         * tests/test-fopen.c (main): Likewise.
44288         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
44289         * doc/posix-functions/fopen.texi: Likewise.
44290         Reported by Eric Blake.
44291
44292 2008-09-23  Eric Blake  <ebb9@byu.net>
44293
44294         c-stack: avoid compiler optimizations when provoking overflow
44295         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
44296         recursion harder to optimize, to ensure a stack overflow occurs.
44297         * tests/test-c-stack.c (recurse): Likewise.
44298         Borrowed from libsigsegv.
44299
44300         c-stack: work around Irix sigaltstack bug
44301         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
44302         whether sigaltstack uses wrong end of stack_t (copied in part from
44303         libsigsegv).
44304         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
44305         Irix bug, without requiring an over-allocation.
44306         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
44307         bug.
44308
44309         fopen: document mingw bug on directories
44310         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
44311         not allowing a stream visiting a directory, even though reading
44312         from such a stream is not portable.
44313
44314 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44315
44316         * lib/poll.c: Rewrite.
44317         * modules/poll: Depend on alloca.
44318
44319 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44320
44321         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
44322         instead define prototypes for a full set of wrappers.  Ensure
44323         that Cygwin does not use the compatibility code, which is only
44324         for MinGW.
44325         * lib/winsock.c: New.
44326         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
44327         * modules/sys_socket: Add lib/winsock.c.
44328
44329         * modules/poll-tests: Add errno and perror.
44330         * tests/test-poll.c: Use ioctl, not ioctlsocket.
44331
44332 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44333
44334         * tests/test-poll.c: Downgrade minimum needed Winsock version.
44335
44336 2008-09-23  Bruno Haible  <bruno@clisp.org>
44337
44338         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
44339         * doc/glibc-functions/*: Likewise.
44340
44341 2008-09-23  Simon Josefsson  <simon@josefsson.org>
44342
44343         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
44344         success.
44345
44346 2008-09-22  Eric Blake  <ebb9@byu.net>
44347             Bruno Haible  <bruno@clisp.org>
44348
44349         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
44350         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
44351         supply %A but mishandle pseudo-NaN.
44352         Reported by Simon Josefsson.
44353
44354 2008-09-21  Bruno Haible  <bruno@clisp.org>
44355
44356         * tests/test-lock.c (main): Tweak skip message.
44357         * tests/test-tls.c (main): Likewise.
44358
44359 2008-09-21  Bruno Haible  <bruno@clisp.org>
44360
44361         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
44362         whether 'struct sigaction' has sa_sigaction here...
44363         (gl_PREREQ_SIG_HANDLER_H): ... not here.
44364         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
44365
44366 2008-09-21  Bruno Haible  <bruno@clisp.org>
44367
44368         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
44369         section.
44370         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
44371         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
44372         the new section.
44373         (Support for obsolete systems lacking POSIX:2001): New section.
44374         (String handling <string.h>): Move strdup to the new section.
44375         Suggested by Simon Josefsson and Paolo Bonzini.
44376
44377 2008-09-21  Bruno Haible  <bruno@clisp.org>
44378
44379         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
44380         exponents in %e and %g results on 'long double'. Needed for mingw's
44381         improved *printf functions.
44382         * tests/test-vasprintf-posix.c (test_function): Likewise.
44383         * tests/test-snprintf-posix.h (test_function): Likewise.
44384         * tests/test-sprintf-posix.h (test_function): Likewise.
44385         Reported by Eric Blake.
44386
44387 2008-09-21  Bruno Haible  <bruno@clisp.org>
44388
44389         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
44390         * tests/test-sprintf-posix.h (test_function): Likewise.
44391
44392 2008-09-21  Bruno Haible  <bruno@clisp.org>
44393
44394         * modules/getpass (Depends-on): Add strdup-posix.
44395
44396         New module 'strdup-posix'.
44397         * modules/strdup-posix: New file.
44398         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
44399         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
44400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44401         REPLACE_STRDUP.
44402         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
44403         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
44404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44405         strdup-posix.
44406
44407         * modules/strdup (Depends-on): Remove malloc-posix.
44408
44409 2008-09-20  Bruno Haible  <bruno@clisp.org>
44410
44411         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44412         Wildenhues.
44413
44414 2008-09-20  Bruno Haible  <bruno@clisp.org>
44415
44416         Ensure that wint_t gets defined on IRIX 5.3.
44417         * lib/wchar.in.h (wint_t): Define if not defined by the system.
44418         * lib/wctype.in.h (wint_t): Likewise.
44419         (__wctype_wint_t): Remove type.
44420         (isw*): Use wint_t instead of __wctype_wint_t.
44421         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
44422         * modules/wchar (Files): Add m4/wint_t.m4.
44423         (Makefile.am): Substitute HAVE_WINT_T.
44424         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
44425         * tests/test-wctype.c: Check that wint_t is defined.
44426         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
44427         * doc/posix-headers/wctype.texi: Likewise.
44428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44429
44430 2008-09-18  Bruno Haible  <bruno@clisp.org>
44431
44432         * gnulib-tool (func_exit): Update comment.
44433
44434 2008-09-18  Simon Josefsson  <simon@josefsson.org>
44435
44436         * modules/getaddrinfo (Depends-on): Remove strdup, this module
44437         assumes strdup exists and does not depend on strdup to return
44438         ENOMEM on out of memory conditions.
44439
44440 2008-09-18  Bruno Haible  <bruno@clisp.org>
44441
44442         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
44443         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
44444         digits for the exponent.
44445
44446 2008-09-18  Jim Meyering  <meyering@redhat.com>
44447             Bruno Haible  <bruno@clisp.org>
44448
44449         * lib/vasnprintf.c (decimal_point_char): Define also if
44450         NEED_PRINTF_INFINITE_LONG_DOUBLE.
44451
44452 2008-09-16  Bruno Haible  <bruno@clisp.org>
44453         and Eric Blake  <ebb9@byu.net>
44454
44455         vasnprintf: support Irix 5.3
44456         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
44457         that mishandle long double infinity.
44458         Reported by Tom G. Christensen.
44459
44460 2008-09-16  Bruno Haible  <bruno@clisp.org>
44461
44462         * doc/glibc-functions/scandir.texi: Mention the function is missing on
44463         Solaris 9.
44464         * doc/glibc-functions/alphasort.texi: Likewise.
44465         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
44466
44467 2008-09-16  Jim Meyering  <meyering@redhat.com>
44468
44469         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
44470         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
44471         a umask modification leak out of a subshell.  Otherwise, the
44472         opensolaris /bin/sh would be accepted and thus cause unwarranted
44473         failures in the coreutils test suite.
44474
44475 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
44476
44477         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
44478         to succeed.
44479
44480 2008-09-16  Jim Meyering  <meyering@redhat.com>
44481
44482         avoid spurious test failure when library is built without ACL support
44483         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
44484         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
44485         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
44486         * tests/test-copy-acl.sh: Likewise.
44487
44488 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44489
44490         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
44491         based on character occurrence counts.
44492
44493 2008-09-15  Eric Blake  <ebb9@byu.net>
44494
44495         tests: avoid some compiler warnings
44496         * tests/test-memchr.c (main): Pass NULL indirectly.
44497         * tests/test-closein.c (main): Avoid unused variable.
44498
44499 2008-09-15  Bruno Haible  <bruno@clisp.org>
44500
44501         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
44502         are missing on OpenBSD 4.0 individually.
44503         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44504
44505 2008-09-15  Bruno Haible  <bruno@clisp.org>
44506
44507         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
44508         * doc/posix-functions/strerror.texi: Mention also Cygwin.
44509         * doc/posix-functions/perror.texi: Likewise.
44510         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
44511         is missing.
44512         Reported by Eric Blake.
44513
44514         * lib/errno.in.h: Use replacement values >= 2000.
44515         Reported by Eric Blake.
44516
44517 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44518
44519         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
44520         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
44521         limit.
44522         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
44523         compareseq was aborted.
44524
44525 2008-09-14  Bruno Haible  <bruno@clisp.org>
44526
44527         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
44528         yvec_edit_count.
44529         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
44530         (fstrcmp_bounded): Simplify result computation accordingly.
44531
44532 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44533
44534         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
44535         (fstrcmp): Define in terms of fstrcmp_bounded.
44536         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
44537         lower_bound argument.
44538         Return quickly if the result is certainly < lower_bound.
44539         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
44540
44541 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44542
44543         * lib/diffseq.h (EARLY_ABORT): New macro.
44544         (compareseq): Change return type to bool. Return true when EARLY_ABORT
44545         evaluates to true.
44546
44547 2008-09-14  Bruno Haible  <bruno@clisp.org>
44548
44549         * modules/perror-tests: New file.
44550         * tests/test-perror.sh: New file.
44551         * tests/test-perror.c: New file.
44552
44553         New module 'perror'.
44554         * lib/stdio.in.h (perror): New declaration.
44555         * lib/perror.c: New file.
44556         * m4/perror.m4: New file.
44557         * modules/perror: New file.
44558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
44559         * doc/posix-functions/perror.texi: Mention the perror module.
44560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
44561         REPLACE_PERROR.
44562         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
44563         REPLACE_PERROR.
44564
44565 2008-09-14  Bruno Haible  <bruno@clisp.org>
44566
44567         * modules/stdio (Makefile.am): Reorder to match the order in
44568         lib/stdio.in.h.
44569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44570
44571 2008-09-13  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
44574
44575 2008-09-13  Bruno Haible  <bruno@clisp.org>
44576
44577         Extend strerror to cover the added errno values.
44578         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
44579         (rpl_strerror): Provide error messages for the added errno values and
44580         for the WSA* values.
44581         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
44582         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
44583         strerror.
44584         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
44585         * modules/strerror (Depends-on): Add errno.
44586         * doc/posix-functions/strerror.texi: Document the change.
44587         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
44588         and EOVERFLOW.
44589
44590 2008-09-13  Bruno Haible  <bruno@clisp.org>
44591
44592         * modules/EOVERFLOW: Remove file.
44593         * m4/eoverflow.m4: Remove file.
44594         * modules/EOVERFLOW-tests: Remove file.
44595         * tests/test-EOVERFLOW.c: Remove file.
44596         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
44597         * modules/ftell (Depends-on): Likewise.
44598         * modules/getdelim (Depends-on): Likewise.
44599         * modules/getugroups (Depends-on): Likewise.
44600         * modules/poll (Depends-on): Likewise.
44601         * modules/snprintf (Depends-on): Likewise.
44602         * modules/sprintf-posix (Depends-on): Likewise.
44603         * modules/vasnprintf (Depends-on): Likewise.
44604         * modules/vasprintf (Depends-on): Likewise.
44605         * modules/vfprintf-posix (Depends-on): Likewise.
44606         * modules/vsnprintf (Depends-on): Likewise.
44607         * modules/vsprintf-posix (Depends-on): Likewise.
44608         * modules/xvasprintf (Depends-on): Likewise.
44609         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44610         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
44611         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
44612         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
44613         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44614         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
44615         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
44616         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
44617         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44618         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
44619         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
44620         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
44621         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44622         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
44623         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
44624         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
44625         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44626         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
44627         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
44628         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
44629         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44630         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
44631         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
44632         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
44633         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
44634         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44635         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
44636         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
44637         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
44638         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
44639         * MODULES.html.sh: Remove EOVERFLOW.
44640         * NEWS: Mention the change.
44641
44642 2008-09-13  Bruno Haible  <bruno@clisp.org>
44643
44644         * modules/errno-tests: New file.
44645         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
44646
44647         * lib/errno.in.h: New file.
44648         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
44649         * modules/errno: New file.
44650         * doc/posix-headers/errno.texi: Update documentation.
44651         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
44652
44653 2008-09-13  Bruno Haible  <bruno@clisp.org>
44654
44655         * tests/test-poll.c: Use #if for native Windows, rather than testing
44656         __MSVCRT__.
44657
44658 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44659             Bruno Haible  <bruno@clisp.org>
44660
44661         * lib/glob.c: Don't include <pwd.h> on native Windows.
44662         (WINDOWS32): New macro.
44663         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
44664
44665 2008-09-13  Bruno Haible  <bruno@clisp.org>
44666
44667         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44668         (ETIMEDOUT): Remove macro.
44669         (glthread_cond_timedwait_multithreaded): New declaration.
44670         (glthread_cond_timedwait): Use it.
44671         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44672         (glthread_cond_timedwait_multithreaded): New function.
44673
44674 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44675
44676         * modules/poll-tests: Do not check for io.h.
44677         * tests/test-poll.c: Check for __MSVCRT__ instead.
44678
44679 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44680
44681         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44682         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44683         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44684
44685 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44686
44687         * modules/poll-tests: New.
44688         * tests/test-poll.c: New.
44689
44690 2008-09-12  Eric Blake  <ebb9@byu.net>
44691
44692         frexp: test for NetBSD failure on -0.0
44693         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44694         not all, bugs from NetBSD 3.0 have been fixed.
44695         * doc/posix-functions/frexp.texi (frexp): Document bug.
44696         Reported by Thomas Klausner.
44697
44698         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44699         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44700         literal -0.0.
44701         Reported by Jonathan C. Patschke <jp@centtech.com>.
44702
44703 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44704
44705         * lib/glthread/cond.h: Use dummy implementation also if
44706         USE_WIN32_THREADS.
44707
44708 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44709
44710         * modules/fnmatch-posix (License): Change to LGPLv2+.
44711         * modules/fnmatch-gnu (License): Likewise.
44712
44713 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44714
44715         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44716
44717 2008-09-11  Jim Meyering  <meyering@redhat.com>
44718
44719         * users.txt: Add gtk-vnc.
44720
44721 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44722
44723         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44724         rotate amounts.
44725
44726         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44727         required for 16-bit and 8-bit rotates.
44728         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44729         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44730         UINT8_MAX instead of hard-coded constants.
44731         Suggested by Paul Eggert.
44732
44733 2008-09-07  Bruno Haible  <bruno@clisp.org>
44734
44735         * tests/test-striconveh.c (main): Check behaviour when converting from
44736         UTF-7.
44737
44738         Make striconveh work better with stateful encodings.
44739         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44740         that iconv does not increment the inptr when returning -1/EINVAL.
44741
44742 2008-09-07  Bruno Haible  <bruno@clisp.org>
44743
44744         * build-aux/config.rpath: Update according to libtool-2.2.6.
44745         * build-aux/config.libpath: Likewise.
44746
44747 2008-09-06  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44750         * lib/freadptr.c (freadptr): Likewise.
44751         * lib/freadseek.c (freadptrinc): Likewise.
44752         Reported by Simon Josefsson.
44753
44754 2008-09-06  Bruno Haible  <bruno@clisp.org>
44755
44756         * modules/freadptr (License): Change to LGPLv2+.
44757         * modules/freadseek (License): Likewise.
44758         Suggested by Eric Blake.
44759
44760         * modules/memchr2 (License): Change to LGPLv2+.
44761         Approved by Eric Blake.
44762
44763 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44764             Bruno Haible  <bruno@clisp.org>
44765
44766         Make gnulib-tool work with native 'sed' on AIX.
44767         * gnulib-tool (sed_noop): New variable.
44768         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44769         func_add_or_update, func_create_testdir): Use it to initialize sed
44770         script variables.
44771         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44772
44773 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44774             Bruno Haible  <bruno@clisp.org>
44775
44776         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44777         also works after #include directives.
44778
44779 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44780
44781         getdate.y: reject an out-of-range timezone value
44782         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44783         the range [-24...+24].  When specified with only one or two digits,
44784         * tests/test-getdate.c: Tests for the fix.
44785         * doc/getdate.texi: Document this change.
44786
44787 2008-09-03  Bruno Haible  <bruno@clisp.org>
44788
44789         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44790
44791 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44792
44793         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44794         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44795         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44796         Blake <ebb9@byu.net>.
44797
44798         * tests/test-bitrotate.c: Add more test vectors.
44799
44800 2008-09-02  Eric Blake  <ebb9@byu.net>
44801
44802         vasnprintf-posix: handle large precision via %.*d
44803         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44804         when handling it ourselves.
44805         * tests/test-vasnprintf-posix.c (test_function): Add test.
44806         * tests/test-snprintf-posix.h (test_function): Likewise.
44807         * tests/test-sprintf-posix.h (test_function): Likewise.
44808         * tests/test-vasprintf-posix.c (test_function): Likewise.
44809         Reported by Alain Guibert.
44810
44811 2008-09-01  Eric Blake  <ebb9@byu.net>
44812
44813         c-stack: make configure-time check more robust
44814         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44815         successful sigaction call.
44816         Reported by Tom G. Christensen.
44817
44818 2008-09-01  Bruno Haible  <bruno@clisp.org>
44819
44820         New module 'findprog-lgpl'.
44821         * modules/findprog-lgpl: New file.
44822         * lib/findprog-lgpl.c: New file.
44823         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44824         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44825         to decide whether to use strdup or xstrdup, concatenated_filename or
44826         xconcatenated_filename.
44827
44828 2008-09-01  Bruno Haible  <bruno@clisp.org>
44829
44830         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44831         'xconcat-filename' (GPL).
44832         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44833         (License): Change to LGPLv2+.
44834         * modules/xconcat-filename: New file.
44835         * lib/concat-filename.h (concatenated_filename): Change specification.
44836         (xconcatenated_filename): New declaration.
44837         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44838         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44839         memory situations.
44840         * lib/xconcat-filename.c: New file.
44841         * NEWS: Mention the change.
44842         * lib/findprog.c: Include concat-filename.h, not filename.h.
44843         (find_in_path): Use xconcatenated_filename instead of
44844         concatenated_filename.
44845         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44846         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44847         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44848         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44849         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44850         instead of concatenated_filename.
44851         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44852         (execute_java_class): Use xconcatenated_filename instead of
44853         concatenated_filename.
44854         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44855         * modules/javacomp (Depends-on): Likewise.
44856         * modules/javaexec (Depends-on): Likewise.
44857
44858 2008-09-01  Bruno Haible  <bruno@clisp.org>
44859
44860         Split module 'filename' into 'filename' and 'concat-filename'.
44861         * modules/filename: Keep only lib/filename.h.
44862         (License): Change to LGPLv2+.
44863         * modules/concat-filename: New file, extracted from modules/filename.
44864         * lib/filename.h (concatenated_filename): Remove declaration.
44865         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44866         * lib/concat-filename.c: Include concat-filename.h.
44867         * NEWS: Mention the change.
44868
44869 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44870
44871         * lib/bitrotate.h (rotl8, rotr8): Add.
44872
44873         * modules/bitrotate (configure.ac): Need
44874         AC_REQUIRE([AC_C_INLINE]).
44875         (Description): Mention stdint.h.  Reported by Bruno Haible
44876         <bruno@clisp.org>.
44877
44878         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44879         Paolo Bonzini <bonzini@gnu.org>.
44880
44881 2008-08-31  Bruno Haible  <bruno@clisp.org>
44882
44883         Assume Solaris specific bi-arch conventions on Solaris systems.
44884         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44885         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44886         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44887         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44888         like acl_libdirstem.
44889         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44890         acl_libdirstem.
44891         * NEWS: Mention the change.
44892         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44893
44894 2008-08-31  Jim Meyering  <meyering@redhat.com>
44895
44896         * lib/strftime.h: Add comments describing the two added arguments.
44897
44898         remove duplicate #include directives
44899         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44900         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44901
44902 2008-08-31  Bruno Haible  <bruno@clisp.org>
44903
44904         New module 'sigpipe-die'.
44905         * modules/sigpipe-die: New file.
44906         * lib/sigpipe-die.h: New file.
44907         * lib/sigpipe-die.c: New file.
44908         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44909
44910 2008-08-31  Bruno Haible  <bruno@clisp.org>
44911
44912         Don't override previously installed signal handlers.
44913         * lib/fatal-signal.c (saved_sigactions): New variable.
44914         (uninstall_handlers): Reset the signal to the saved handler, not
44915         to SIG_DFL (except when ignored).
44916         (install_handlers): Save the previous handlers.
44917
44918 2008-08-30  Bruno Haible  <bruno@clisp.org>
44919
44920         * gnulib-tool (func_reset_sigpipe): New function.
44921         (func_get_automake_snippet, func_modules_transitive_closure,
44922         func_import): Invoke it before a join command that reads from stdin,
44923         to avoid "echo: write error: Broken pipe" error messages on stderr.
44924         Reported by Sam Steingold <sds@gnu.org>.
44925
44926 2008-08-30  Bruno Haible  <bruno@clisp.org>
44927
44928         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44929         Code copied from m4/open.m4.
44930         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44931         access and the filename ends in a slash. Code copied from lib/open.c.
44932         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44933         * tests/test-fopen.c (main): Check against bug with trailing slash.
44934
44935 2008-08-29  Bruno Haible  <bruno@clisp.org>
44936
44937         Avoid some "gcc -pedantic" warnings.
44938         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44939         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44940         * lib/dirent.in.h: Likewise.
44941         * lib/fcntl.in.h: Likewise.
44942         * lib/float.in.h: Likewise.
44943         * lib/iconv.in.h: Likewise.
44944         * lib/inttypes.in.h: Likewise.
44945         * lib/locale.in.h: Likewise.
44946         * lib/math.in.h: Likewise.
44947         * lib/netinet_in.in.h: Likewise.
44948         * lib/search.in.h: Likewise.
44949         * lib/signal.in.h: Likewise.
44950         * lib/stdarg.in.h: Likewise.
44951         * lib/stdint.in.h: Likewise.
44952         * lib/stdio.in.h: Likewise.
44953         * lib/stdlib.in.h: Likewise.
44954         * lib/string.in.h: Likewise.
44955         * lib/strings.in.h: Likewise.
44956         * lib/sys_select.in.h: Likewise.
44957         * lib/sys_socket.in.h: Likewise.
44958         * lib/sys_stat.in.h: Likewise.
44959         * lib/sys_time.in.h: Likewise.
44960         * lib/sysexits.in.h: Likewise.
44961         * lib/time.in.h: Likewise.
44962         * lib/unistd.in.h: Likewise.
44963         * lib/wchar.in.h: Likewise.
44964         * lib/wctype.in.h: Likewise.
44965         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44966         * modules/fchdir (Makefile.am): Likewise.
44967         * modules/fcntl (Makefile.am): Likewise.
44968         * modules/float (Makefile.am): Likewise.
44969         * modules/iconv_open (Makefile.am): Likewise.
44970         * modules/inttypes (Makefile.am): Likewise.
44971         * modules/locale (Makefile.am): Likewise.
44972         * modules/math (Makefile.am): Likewise.
44973         * modules/netinet_in (Makefile.am): Likewise.
44974         * modules/search (Makefile.am): Likewise.
44975         * modules/signal (Makefile.am): Likewise.
44976         * modules/stdarg (Makefile.am): Likewise.
44977         * modules/stdint (Makefile.am): Likewise.
44978         * modules/stdio (Makefile.am): Likewise.
44979         * modules/stdlib (Makefile.am): Likewise.
44980         * modules/string (Makefile.am): Likewise.
44981         * modules/strings (Makefile.am): Likewise.
44982         * modules/sys_select (Makefile.am): Likewise.
44983         * modules/sys_socket (Makefile.am): Likewise.
44984         * modules/sys_stat (Makefile.am): Likewise.
44985         * modules/sys_time (Makefile.am): Likewise.
44986         * modules/sysexits (Makefile.am): Likewise.
44987         * modules/time (Makefile.am): Likewise.
44988         * modules/unistd (Makefile.am): Likewise.
44989         * modules/wchar (Makefile.am): Likewise.
44990         * modules/wctype (Makefile.am): Likewise.
44991         Reported by Reuben Thomas <rrt@sc3d.org>.
44992
44993 2008-08-29  Bruno Haible  <bruno@clisp.org>
44994
44995         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44996         any more.
44997
44998 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44999
45000         * MODULES.html.sh (Misc): Add bitrotate.
45001
45002         * modules/bitrotate: New file.
45003
45004         * lib/bitrotate.h: New file.
45005
45006         * modules/bitrotate-tests: New file.
45007
45008         * tests/test-bitrotate.c: New file.
45009
45010         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
45011         on the bitrotate module.
45012
45013         * lib/arctwo.c: Use new bitrotate module.
45014
45015 2008-08-29  Jim Meyering  <meyering@redhat.com>
45016
45017         bootstrap: merge changes from coreutils
45018         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
45019         of copied files.  Remove a kludge, now that this is fixed.
45020         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
45021         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
45022         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
45023
45024 2008-08-29  Bruno Haible  <bruno@clisp.org>
45025
45026         * MODULES.html.sh: Remove --cvs-urls option.
45027
45028 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
45029
45030         maint.mk: adjust to file name change
45031         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
45032
45033 2008-08-28  Jim Meyering  <meyering@redhat.com>
45034
45035         * modules/getndelim2 (License): Relicense to LGPLv2+.
45036         Approved by Richard Stallman for the version of 1995, and by
45037         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
45038
45039 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
45040
45041         * lib/getdelim.c (flockfile, funlockfile): Make all of them
45042         dummy if one is not available.  Do not touch them if
45043         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
45044         (getc_maybe_unlocked): New.
45045         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
45046
45047 2008-08-26  Eric Blake  <ebb9@byu.net>
45048
45049         doc/INSTALL: resync from autoconf
45050         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
45051         (INSTALL_PRELUDE): Delete; this is done more efficiently by
45052         moving...
45053         * install.texi [!autoconf]: ...here.  Resync from autoconf.
45054         * INSTALL: Regenerate.
45055         * INSTALL.ISO: New file.
45056         * INSTALL.UTF-8: Likewise.
45057
45058 2008-08-26  Jim Meyering  <meyering@redhat.com>
45059
45060         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
45061         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
45062         these definitions conditional, so that they may be overridden, too.
45063
45064 2008-08-26  Bruno Haible  <bruno@clisp.org>
45065
45066         Generate INSTALL file variants with prettier quotes.
45067         * doc/Makefile (INSTALL_PRELUDE): New macro.
45068         (INSTALL): Use it.
45069         (INSTALL.ISO, INSTALL.UTF-8): New rules.
45070
45071 2008-08-26  Bruno Haible  <bruno@clisp.org>
45072
45073         Run makeinfo in an English locale.
45074         * doc/Makefile (MAKEINFO): New variable.
45075
45076 2008-08-26  Bruno Haible  <bruno@clisp.org>
45077
45078         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
45079         Suggested by Eric Blake.
45080
45081 2008-08-25  Bruno Haible  <bruno@clisp.org>
45082
45083         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
45084
45085 2008-08-25  Eric Blake  <ebb9@byu.net>
45086
45087         c-stack: test that stack overflow can be caught
45088         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
45089         that platform allows handling stack overflow; at least OS/2 EMX
45090         has sigaltstack, but crashes before transferring control to
45091         handler on stack overflow.
45092         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
45093         check for HAVE_STACK_OVERFLOW_HANDLING.
45094         Reported by Elbert Pol.
45095
45096 2008-08-25  Bruno Haible  <bruno@clisp.org>
45097
45098         * doc/posix-functions/strftime.texi: Fix description of strftime
45099         module.
45100
45101 2008-08-24  Bruno Haible  <bruno@clisp.org>
45102
45103         * tests/uniwidth/test-uc_width2.c: New file.
45104         * tests/uniwidth/test-uc_width2.sh: New file.
45105         * modules/uniwidth/width-tests (Files): Add the new files.
45106         (TESTS): Add uniwidth/test-uc_width2.sh.
45107         (TESTS_ENVIRONMENT): New variable.
45108         (check_PROGRAMS): Add test-uc_width2.
45109         (test_uc_width2_SOURCES): New variable.
45110
45111         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
45112         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
45113         not 0x00AB.
45114         Reported by Alexander V. Lukyanov <lav@netis.ru>.
45115
45116 2008-08-22  Eric Blake  <ebb9@byu.net>
45117
45118         test-lock, test-tls: mention why a test is skipped
45119         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
45120         skipped.
45121         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
45122
45123         count-one-bits: relax license
45124         * modules/count-one-bits (License): Relicense to LGPLv2+.
45125         Suggested by Ludovic Courtès, approved by Ben Pfaff.
45126
45127 2008-08-22  Andreas Schwab  <schwab@suse.de>
45128
45129         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
45130         Remove spurious space in assignment.
45131
45132 2008-08-21  Simon Josefsson  <simon@josefsson.org>
45133
45134         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
45135         Paul Eggert <eggert@CS.UCLA.EDU>.
45136
45137 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
45138
45139         * modules/gettext: Add m4/threadlib.m4.
45140
45141 2008-08-19  Eric Blake  <ebb9@byu.net>
45142
45143         test-c-stack: fix compilation failure on FreeBSD 5.0
45144         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
45145         headers before <sys/resource.h>.
45146         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
45147         the bug.
45148         Reported by Nelson H. F. Beebe.
45149
45150         strverscmp: migrate from "strverscmp.h" to <string.h>
45151         * modules/string (Makefile.am): Add new hooks.
45152         * modules/strverscmp (Files): Remove strverscmp.h.
45153         (Depends-on): Add string.
45154         (configure.ac): Add indicator.
45155         (Include): Mention new header.
45156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
45157         defaults.
45158         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
45159         results.
45160         * lib/strverscmp.h: Delete.
45161         * lib/string.in.h (strverscmp): Provide declaration, when needed.
45162         * tests/test-strverscmp.c (includes): Adjust client.
45163         * lib/check-version.c (includes): Likewise.
45164         * NEWS: Document the change.
45165
45166         strverscmp: add unit test
45167         * modules/strverscmp-tests: New file.
45168         * tests/test-strverscmp.c: Likewise.
45169
45170 2008-08-19  Simon Josefsson  <simon@josefsson.org>
45171
45172         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
45173         regarding Windows crypto stuff, from Mono.
45174
45175 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
45176
45177         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
45178         if present, for intel RND.  Return error on failures.
45179
45180 2008-08-18  Ben Pfaff  <blp@gnu.org>
45181
45182         gitlog-to-changelog: give better diagnostic for failed pipe-open
45183         * build-aux/gitlog-to-changelog: Improve error message: suggest
45184         that the version of Git may be too old.
45185
45186 2008-08-18  Simon Josefsson  <simon@josefsson.org>
45187
45188         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
45189         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
45190
45191 2008-08-18  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
45194         pthread_in_use().
45195
45196 2008-08-18  Bruno Haible  <bruno@clisp.org>
45197
45198         * lib/glthread/threadlib.c: Include <pthread.h>.
45199
45200 2008-08-18  Bruno Haible  <bruno@clisp.org>
45201
45202         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
45203         glthread_recursive_lock_* macros.
45204         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
45205         Fix syntax error.
45206
45207 2008-08-18  Bruno Haible  <bruno@clisp.org>
45208
45209         * lib/glthread/thread.c: Avoid forcing a context switch right after
45210         thread creation.
45211
45212 2008-08-17  Bruno Haible  <bruno@clisp.org>
45213
45214         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
45215         * lib/glthread/thread.h: Provide Win32 specific implementation.
45216         * modules/thread (Files): Add lib/glthread/thread.c.
45217         (Depends-on): Add lock.
45218         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
45219
45220 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45221
45222         New module 'yield'.
45223         * modules/yield: New file.
45224         * lib/glthread/yield.h: New file.
45225         * m4/yield.m4: New file.
45226         * MODULES.html.sh (Multithreading): Add yield.
45227
45228 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45229
45230         New module 'thread'.
45231         * modules/thread: New file.
45232         * lib/glthread/thread.h: New file.
45233         * m4/thread.m4: New file.
45234         * MODULES.html.sh (Multithreading): Add thread.
45235
45236 2008-08-17  Bruno Haible  <bruno@clisp.org>
45237
45238         * lib/glthread/lock.h: Include <stdlib.h> always.
45239         * lib/glthread/tls.h: Likewise.
45240         * lib/glthread/cond.h: Likewise.
45241
45242 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45243
45244         New module 'cond'.
45245         * modules/cond: New file.
45246         * lib/glthread/cond.h: New file.
45247         * lib/glthread/cond.c: New file.
45248         * m4/cond.m4: New file.
45249         * MODULES.html.sh (Multithreading): Add cond.
45250
45251 2008-08-16  Eric Blake  <ebb9@byu.net>
45252
45253         c-stack: fix regression on Irix 5.3 from 2008-06-21
45254         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
45255         sa_sigaction...
45256         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
45257         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
45258         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
45259         * modules/signal (Makefile.am): Use the value.
45260         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
45261         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
45262         * doc/posix-headers/signal.texi (signal.h): Document this
45263         portability issue.
45264         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
45265         Reported by Tom G. Christensen.
45266
45267 2008-08-17  Bruno Haible  <bruno@clisp.org>
45268
45269         New module 'threadlib'.
45270         * modules/threadlib: New file.
45271         * lib/glthread/threadlib.c: New file, extracted from
45272         lib/glthread/lock.c.
45273         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
45274         functions.
45275         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
45276         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
45277         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
45278         macros.
45279         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
45280         (gl_DISABLE_THREADS): Remove macro.
45281         * modules/lock (Files): Remove build-aux/config.rpath.
45282         (Depends-on): Remove havelib. Add threadlib.
45283         (configure.ac-early): Remove section.
45284         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
45285         * modules/tls (Depends-on): Remove lock. Add threadlib.
45286         (Link): New section, copied from threadlib.
45287         * MODULES.html.sh (Multithreading): Add threadlib.
45288
45289 2008-08-14  Bruno Haible  <bruno@clisp.org>
45290
45291         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
45292         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
45293         glthread_rwlock_unlock, glthread_rwlock_destroy,
45294         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
45295         glthread_recursive_lock_destroy): Define as macros always.
45296         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
45297         glthread_lock_lock.
45298         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
45299         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
45300         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
45301         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
45302         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
45303         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
45304         (glthread_recursive_lock_lock_func): Renamed from
45305         glthread_recursive_lock_lock.
45306         (glthread_recursive_lock_unlock_func): Renamed from
45307         glthread_recursive_lock_unlock.
45308         (glthread_recursive_lock_destroy_func): Renamed from
45309         glthread_recursive_lock_destroy.
45310
45311 2008-08-14  Bruno Haible  <bruno@clisp.org>
45312
45313         * lib/glthread/lock.h: Renamed from lib/lock.h.
45314         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
45315         * lib/glthread/tls.h: Renamed from lib/tls.h.
45316         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
45317         * lib/fstrcmp.c: Update includes.
45318         * lib/strsignal.c: Update includes.
45319         * modules/lock (Files, Makefile.am): Update.
45320         (Include): Change to "glthread/lock.h".
45321         * modules/tls (Files, Makefile.am): Update.
45322         (Include): Change to "glthread/tls.h".
45323         * tests/test-lock.c: Update includes.
45324         * tests/test-tls.c: Update includes.
45325         * NEWS: Mention the renamed header files.
45326
45327 2008-08-11  Jim Meyering  <meyering@redhat.com>
45328
45329         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
45330
45331 2008-08-11  Eric Blake  <ebb9@byu.net>
45332
45333         test-c-stack: avoid C99-ism
45334         * tests/test-c-stack.c (main): Fix whitespace, move declaration
45335         before statement.
45336         Reported by Alain Guibert.
45337
45338 2008-08-10  Jim Meyering  <meyering@redhat.com>
45339
45340         ensure that return value of uinttostr et al are not ignored
45341         * lib/inttostr.h (__GNUC_PREREQ): Define.
45342         (__attribute_warn_unused_result__): Define.
45343         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
45344
45345 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
45346
45347         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
45348         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
45349
45350 2008-08-07  Jim Meyering  <meyering@redhat.com>
45351
45352         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
45353
45354         * modules/mkstemp (License): Relicense under LGPLv2+.
45355         * modules/tempname (License): Likewise.
45356
45357 2008-08-06  Bruno Haible  <bruno@clisp.org>
45358
45359         * lib/poll.c (poll): Further micro-optimization.
45360
45361 2008-08-06  Jim Meyering  <meyering@redhat.com>
45362
45363         inet_pton.c: use locale-independent tolower
45364         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
45365         (inet_pton6): Use c_tolower rather than tolower.
45366         * modules/inet_pton (Depends-on): Add c-ctype.
45367
45368 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
45369
45370         * lib/poll.c (poll): Avoid division when timeout is 0, cache
45371         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
45372
45373 2008-08-06  Jim Meyering  <meyering@redhat.com>
45374
45375         * modules/inet_pton (License): Relicense under LGPLv2+.
45376
45377 2008-08-03  Bruno Haible  <bruno@clisp.org>
45378
45379         Additional non-aborting API for lock and tls.
45380         * lib/lock.h: Include <errno.h>.
45381         (glthread_lock_init): New macro/function.
45382         (gl_lock_init): Define as wrapper around glthread_lock_init.
45383         (glthread_lock_lock): New macro/function.
45384         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
45385         (glthread_lock_unlock): New macro/function.
45386         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
45387         (glthread_lock_destroy): New macro/function.
45388         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
45389         (glthread_rwlock_init): New macro/function.
45390         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
45391         (glthread_rwlock_rdlock): New macro/function.
45392         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
45393         (glthread_rwlock_wrlock): New macro/function.
45394         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
45395         (glthread_rwlock_unlock): New macro/function.
45396         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
45397         (glthread_rwlock_destroy): New macro/function.
45398         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
45399         (glthread_recursive_lock_init): New macro/function.
45400         (gl_recursive_lock_init): Define as wrapper around
45401         glthread_recursive_lock_init.
45402         (glthread_recursive_lock_lock): New macro/function.
45403         (gl_recursive_lock_lock): Define as wrapper around
45404         glthread_recursive_lock_lock.
45405         (glthread_recursive_lock_unlock): New macro/function.
45406         (gl_recursive_lock_unlock): Define as wrapper around
45407         glthread_recursive_lock_unlock.
45408         (glthread_recursive_lock_destroy): New macro/function.
45409         (gl_recursive_lock_destroy): Define as wrapper around
45410         glthread_recursive_lock_destroy.
45411         (glthread_once): New macro/function.
45412         (gl_once): Define as wrapper around glthread_once.
45413         Update function declarations.
45414         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
45415         glthread_rwlock_init. Return error code.
45416         (glthread_rwlock_rdlock_multithreaded): Renamed from
45417         glthread_rwlock_rdlock. Return error code.
45418         (glthread_rwlock_wrlock_multithreaded): Renamed from
45419         glthread_rwlock_wrlock. Return error code.
45420         (glthread_rwlock_unlock_multithreaded): Renamed from
45421         glthread_rwlock_unlock. Return error code.
45422         (glthread_rwlock_destroy_multithreaded): Renamed from
45423         glthread_rwlock_destroy. Return error code.
45424         (glthread_recursive_lock_init_multithreaded): Renamed from
45425         glthread_recursive_lock_init. Return error code.
45426         (glthread_recursive_lock_lock_multithreaded): Renamed from
45427         glthread_recursive_lock_lock. Return error code.
45428         (glthread_recursive_lock_unlock_multithreaded): Renamed from
45429         glthread_recursive_lock_unlock. Return error code.
45430         (glthread_recursive_lock_destroy_multithreaded): Renamed from
45431         glthread_recursive_lock_destroy. Return error code.
45432         (glthread_once_call): Make static.
45433         (glthread_once_multithreaded): Renamed from glthread_once.
45434         * lib/tls.h: Include <errno.h>.
45435         (glthread_tls_key_init): New macro/function.
45436         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
45437         (glthread_tls_set): New macro/function.
45438         (gl_tls_set): Define as wrapper around glthread_tls_set.
45439         (glthread_tls_key_destroy): New macro/function.
45440         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
45441         Update function declarations.
45442         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
45443         glthread_tls_get.
45444         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45445
45446 2008-08-04  Eric Blake  <ebb9@byu.net>
45447
45448         gnumakefile: use space, not TAB, outside of targets
45449         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
45450
45451 2008-08-02  Jim Meyering  <meyering@redhat.com>
45452
45453         getdate.y: avoid locale-dependent date parsing failure
45454         In Turkish locales, getdate would fail to recognize keywords
45455         containing a lowercase "i".  The solution is not to rely on
45456         locale-sensitive case-conversion.
45457         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
45458         (lookup_word): Use c_toupper in place of toupper.
45459         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
45460         Reported by Vefa Bicakci <bicave@superonline.com> in
45461         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
45462         * modules/getdate (Depends-on): Add c-ctype.
45463
45464 2008-08-02  Bruno Haible  <bruno@clisp.org>
45465
45466         * gnulib-tool (func_import): When updating or creating a .gitignore
45467         file, prepend each added line with a slash, and ignore leading slashes
45468         from the existing lines.
45469         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45470
45471 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45472
45473         Portability fix for GNU make 3.79.1.
45474         * top/GNUmakefile: Avoid 'else COND', which older GNU make
45475         versions do not understand.
45476
45477 2008-08-01  Bruno Haible  <bruno@clisp.org>
45478
45479         Work around bug of HP-UX 10.20 cc with -0.0 literal.
45480         * tests/test-isnanf.h (zero): New variable.
45481         (main): Avoid literal -0.0f.
45482         * tests/test-isnand.h (zero): New variable.
45483         (main): Avoid literal -0.0.
45484         * tests/test-isnanl.h (zero): New variable.
45485         (main): Avoid literal -0.0L.
45486         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
45487         (test_float, test_double, test_long_double): Avoid literals -0.0f,
45488         -0.0, -0.0L.
45489         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
45490         (test_signbitd): Avoid literal -0.0.
45491         (test_signbitl): Avoid literal -0.0L.
45492         * tests/test-ceilf1.c (zero): New variable.
45493         (main): Avoid literal -0.0f.
45494         * tests/test-ceill.c (zero): New variable.
45495         (main): Avoid literal -0.0L.
45496         * tests/test-floorf1.c (zero): New variable.
45497         (main): Avoid literal -0.0f.
45498         * tests/test-floorl.c (zero): New variable.
45499         (main): Avoid literal -0.0L.
45500         * tests/test-roundf1.c (zero): New variable.
45501         (main): Avoid literal -0.0f.
45502         * tests/test-round1.c (zero): New variable.
45503         (main): Avoid literal -0.0.
45504         * tests/test-roundl.c (zero): New variable.
45505         (main): Avoid literal -0.0L.
45506         * tests/test-truncf1.c (zero): New variable.
45507         (main): Avoid literal -0.0f.
45508         * tests/test-trunc1.c (zero): New variable.
45509         (main): Avoid literal -0.0.
45510         * tests/test-truncl.c (zero): New variable.
45511         (main): Avoid literal -0.0L.
45512         * tests/test-frexp.c (zero): New variable.
45513         (main): Avoid literal -0.0.
45514         * tests/test-frexpl.c (zero): New variable.
45515         (main): Avoid literal -0.0L.
45516         * tests/test-ldexpl.c (zero): New variable.
45517         (main): Avoid literal -0.0L.
45518         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45519         (zerod, zerol): New variables.
45520         (test_function): Avoid literals -0.0, -0.0L.
45521         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45522         (zerod, zerol): New variables.
45523         (test_function): Avoid literals -0.0, -0.0L.
45524         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45525         (zerod, zerol): New variables.
45526         (test_function): Avoid literals -0.0, -0.0L.
45527         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45528         (zerod, zerol): New variables.
45529         (test_function): Avoid literals -0.0, -0.0L.
45530         * tests/test-strtod.c (zero): New variable.
45531         (main): Avoid literal -0.0.
45532         Reported by Jonathan C. Patschke <jp@centtech.com>.
45533
45534 2008-07-31  Jim Meyering  <meyering@redhat.com>
45535
45536         sha256.h: correct definition of SHA224_DIGEST_SIZE
45537         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
45538         Reported by Paulie Pena IV <paulie4@gmail.com>.
45539         Define as 224 / 8, rather than as a literal.
45540         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
45541         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
45542         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
45543
45544 2008-07-31  Bruno Haible  <bruno@clisp.org>
45545
45546         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
45547         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
45548         Reported by Jonathan Patschke <jp@centtech.com>.
45549
45550 2008-07-31  Bruno Haible  <bruno@clisp.org>
45551
45552         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
45553         Reported by Paolo Bonzini <bonzini@gnu.org>.
45554
45555 2008-07-30  Eric Blake  <ebb9@byu.net>
45556
45557         test-strtod: allow compilation without -lm
45558         * tests/test-strtod.c (main): Avoid link dependence on fabs.
45559         Reported by Dennis Clarke <blastwave@gmail.com>.
45560
45561 2008-07-28  Jim Meyering  <meyering@redhat.com>
45562
45563         bootstrap: work also when there are no .po files in po/
45564         * build-aux/bootstrap (update_po_files): Complete the change
45565         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
45566
45567 2008-07-27  Jim Meyering  <meyering@redhat.com>
45568
45569         * users.txt: Add zile.
45570
45571 2008-07-26  Ben Pfaff  <blp@gnu.org>
45572
45573         Add missing dependencies on new m4/exponent[fdl].m4 files.
45574         * modules/isnanf-nolibm: Add m4/exponentf.m4.
45575         * modules/isnand-nolibm: Add m4/exponentd.m4.
45576         * modules/isnanl-nolibm: Add m4/exponentl.m4.
45577         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
45578         m4/isnan[fdl].m4, because the macros actually used moved.
45579         Reported by Jim Meyering.
45580
45581 2008-07-14  Ben Pfaff  <blp@gnu.org>
45582
45583         Add isinf module.
45584         * lib/isinf.c: New file.
45585         * lib/math.in.h: Define isinf macro if we have decided to replace
45586         it.
45587         * m4/isinf.m4: New file.
45588         * m4/math_h.m4: Initialize and substitute variables for isinf
45589         module.
45590         * modules/isinf: New file.
45591         * modules/isinf-tests: New file.
45592         * modules/math: Add substitutions for new module.
45593         * tests/test-isinf.c: New file.
45594         * doc/posix-functions/isinf.texi: Mention new module.
45595         * MODULES.html.sh: Mention new module.
45596
45597 2008-07-14  Ben Pfaff  <blp@gnu.org>
45598
45599         Factor out some macros for use by additional modules.
45600         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
45601         exponentf.m4.
45602         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
45603         exponentd.m4.
45604         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
45605         file exponentl.m4.
45606         * m4/exponentf.m4: New file.
45607         * m4/exponentd.m4: New file.
45608         * m4/exponentl.m4: New file.
45609         * modules/isnanf: Use new file m4/exponentf.m4.
45610         * modules/isnand: Use new file m4/exponentd.m4.
45611         * modules/isnanl: Use new file m4/exponentl.m4.
45612
45613 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
45614
45615         mktime.c: normalize tp->tm_isdst value to -1/0/1.
45616         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
45617         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
45618         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
45619
45620         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
45621         readlink on platforms without PATH_MAX.
45622
45623 2008-07-21  Eric Blake  <ebb9@byu.net>
45624
45625         Warn, not fail, on stale version.
45626         * top/GNUmakefile (_curr-ver): Tone down previous patch.
45627
45628         Don't allow installation with stale devel version number.
45629         * top/GNUmakefile (_is-install-target): New macro.
45630         (_curr-ver): Forbid installation with stale version number.
45631
45632 2008-07-20  Bruno Haible  <bruno@clisp.org>
45633
45634         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
45635         TESTS_ENVIRONMENT.
45636         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
45637
45638 2008-07-20  Bruno Haible  <bruno@clisp.org>
45639
45640         * lib/c-stack.h (c_stack_action): Add documentation.
45641         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
45642
45643 2008-07-20  Bruno Haible  <bruno@clisp.org>
45644
45645         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
45646         * modules/readlink (License): Likewise.
45647
45648 2008-07-17  Eric Blake  <ebb9@byu.net>
45649
45650         * modules/c-stack (Link): Fix typo.
45651
45652         Make c-stack use libsigsegv, when available.
45653         * modules/c-stack (Depends-on): Add libsigsegv.
45654         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
45655         needed.
45656         * lib/c-stack.c (SIGSTKSZ): Define fallback.
45657         (segv_handler, overflow_handler, c_stack_action)
45658         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
45659         implementation when libsigsegv is available, but only when using
45660         the library is necessary.
45661         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
45662         comment, explaining why XSI check fails on Linux.
45663         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
45664         * tests/test-c-stack2.sh: Tweak skip message.
45665         * NEWS: Document new link-time requirements.
45666
45667 2008-07-16  Eric Blake  <ebb9@byu.net>
45668
45669         c-stack: Expose false positives when not using libsigsegv.
45670         * modules/c-stack-tests (Files): Expand test.
45671         * tests/test-c-stack.c (main): Add means to conditionally trigger
45672         non-overflow SIGSEGV.
45673         * tests/test-c-stack2.sh: New file.
45674
45675 2008-07-14  Bruno Haible  <bruno@clisp.org>
45676
45677         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45678         Reported by Eric Blake.
45679
45680 2008-07-14  Sam Steingold  <sds@gnu.org>
45681             Bruno Haible  <bruno@clisp.org>
45682
45683         New module libsigsegv.
45684         * modules/libsigsegv: New file.
45685         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45686         modifications.
45687         * MODULES.html.sh (Signal handling): New section.
45688
45689 2008-07-14  Bruno Haible  <bruno@clisp.org>
45690
45691         * modules/unictype/ctype-* (Description): Add the word "function".
45692         Improves the resulting doc in MODULES.html.
45693
45694 2008-07-12  Ben Pfaff  <blp@gnu.org>
45695
45696         Add longlong module.
45697         * modules/longlong: New file.
45698
45699 2008-07-12  Bruno Haible  <bruno@clisp.org>
45700
45701         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45702         to empty.
45703
45704 2008-07-10  Ben Pfaff  <blp@gnu.org>
45705
45706         Add isnan module.
45707         * doc/posix-functions/isnan.texi: Mention new module.
45708         * lib/math.in.h: Define isnan macro if we have decided to replace
45709         it.
45710         * m4/isnan.m4: New file.
45711         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45712         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45713         also.
45714         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45715         redundancy.
45716         * m4/math_h.m4: Initialize and substitute variables for isnan
45717         module.
45718         * modules/isnan: New file.
45719         * modules/isnan-tests: New file.
45720         * modules/math: Add substitutions for new module.
45721         * tests/test-isnan.c: New file.
45722         * MODULES.html.sh: Mention new module.
45723
45724 2008-07-10  Ben Pfaff  <blp@gnu.org>
45725
45726         Add isnanf module.
45727         * lib/isnanf.m4: New file.
45728         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45729         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45730         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45731         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45732         * modules/isnanf: New file.
45733         * modules/isnanf-tests: New file.
45734         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45735         files.
45736         * tests/test-isnanf-nolibm.c: factored most of its contents into
45737         new file tests/test-isnanf.h.
45738         * tests/test-isnanf.h: New file.
45739         * tests/test-isnanf.c: New file.
45740         * MODULES.html.sh: Mention new module.
45741         * doc/glibc-functions/isnanf.texi: Mention new module.
45742
45743 2008-07-10  Ben Pfaff  <blp@gnu.org>
45744
45745         Add isnand module.
45746         * lib/isnand.h: New file.
45747         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45748         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45749         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45750         functionality also.
45751         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45752         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45753         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45754         * modules/isnand: New file.
45755         * modules/isnand-tests: New file.
45756         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45757         files.
45758         * tests/test-isnand-nolibm.c: factored most of its contents into
45759         new file tests/test-isnand.h.
45760         * tests/test-isnand.h: New file.
45761         * tests/test-isnand.c: New file.
45762         * MODULES.html.sh: Mention new module.
45763
45764 2008-07-10  Ben Pfaff  <blp@gnu.org>
45765
45766         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45767         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45768         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45769         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45770         * modules/isnanf-nolibm: Update references to renamed files.
45771         * modules/isnand-nolibm: Likewise.
45772         * modules/isnanf-nolibm-tests: Likewise.
45773         * modules/isnand-nolibm-tests: Likewise.
45774         * lib/frexp.c: Likewise.
45775         * lib/isfinite.c: Likewise.
45776         * lib/signbitd.c: Likewise.
45777         * lib/signbitf.c: Likewise.
45778         * lib/vasnprintf.c: Likewise.
45779         * tests/test-ceilf1.c: Likewise.
45780         * tests/test-ceilf2.c: Likewise.
45781         * tests/test-floorf1.c: Likewise.
45782         * tests/test-floorf2.c: Likewise.
45783         * tests/test-frexp.c: Likewise.
45784         * tests/test-round1.c: Likewise.
45785         * tests/test-round2.c: Likewise.
45786         * tests/test-roundf1.c: Likewise.
45787         * tests/test-strtod.c: Likewise.
45788         * tests/test-trunc1.c: Likewise.
45789         * tests/test-trunc2.c: Likewise.
45790         * tests/test-truncf1.c: Likewise.
45791         * tests/test-truncf2.c: Likewise.
45792         * NEWS: Mention the renamed header files.
45793
45794 2008-07-11  Jim Meyering  <meyering@redhat.com>
45795
45796         vc-list-files: make the last-resort awk code more portable
45797         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45798         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45799         does not support it.
45800
45801 2008-07-10  Eric Blake  <ebb9@byu.net>
45802
45803         Work with tar's bootstrap.
45804         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45805         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45806         an m4 comment.
45807
45808 2008-07-09  Jim Meyering  <meyering@redhat.com>
45809
45810         posix-shell.m4: fix typo that made this test malfunction
45811         * m4/posix-shell.m4: Remove capitalization in variable name.
45812
45813 2008-07-08  Bruno Haible  <bruno@clisp.org>
45814
45815         * m4/onceonly.m4: Update comments.
45816         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45817
45818 2008-07-04  Jim Meyering  <meyering@redhat.com>
45819
45820         * users.txt: Add vc-dwim.
45821         (bison, coreutils): Use the gitweb URL.
45822
45823 2008-07-03  Jim Meyering  <meyering@redhat.com>
45824
45825         * users.txt: Add libffcall.  From Sam Steingold.
45826
45827 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45828
45829         getdate.y: do not ignore TZ with relative day, month or year offset
45830         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45831         relative-date-handling, since otherwise, the latter would clobber the
45832         sole output (an updated Start value) of the tz-handling block.
45833         * tests/test-getdate.c: Tests for the fix
45834
45835 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45836
45837         Recognize 'foo_LIBRARIES += libgnu.a'.
45838         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45839         makefile snippet has already specified an installation location,
45840         also using '+='.
45841
45842 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45843
45844         getdate.y: factor out common actions
45845         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45846         Use them in place of open-coded actions.
45847
45848 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45849
45850         Add self-test for getdate module.
45851         * modules/getdate-tests: New file.
45852         * tests/test-getdate.c: New file.
45853
45854 2008-06-29  Bruno Haible  <bruno@clisp.org>
45855
45856         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45857         .gitignore.
45858         Reported by Sylvain Beucler <beuc@beuc.net>.
45859
45860 2008-06-29  Bruno Haible  <bruno@clisp.org>
45861
45862         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45863         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45864
45865 2008-06-29  Bruno Haible  <bruno@clisp.org>
45866
45867         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45868         EXTRA_DIST.
45869         Reported by Sylvain Beucler <beuc@beuc.net>.
45870
45871 2008-06-26  Jim Meyering  <meyering@redhat.com>
45872
45873         make several modules depend on the "open" module
45874         This provides slightly increased consistency when opening-for-write
45875         the name of a non-directory spelled with a trailing slash.
45876         * modules/chdir-safer: Likewise.
45877         * modules/chown: Likewise.
45878         * modules/clean-temp: Likewise.
45879         * modules/copy-file: Likewise.
45880         * modules/fchdir: Likewise.
45881         * modules/fcntl-safer: Likewise.
45882         * modules/pipe: Likewise.
45883         * modules/utime: Likewise.
45884         Prompted by Eric Blake and Bruno Haible.
45885
45886 2008-06-24  Andreas Schwab  <schwab@suse.de>
45887
45888         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45889         literals can be used as initializers for global variables.
45890
45891 2008-06-23  Eric Blake  <ebb9@byu.net>
45892
45893         Make gnulib-cache.m4 easier to diff.
45894         * gnulib-tool (func_import): Allow newlines when reading cached
45895         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45896
45897 2008-06-23  Bruno Haible  <bruno@clisp.org>
45898
45899         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45900         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45901         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45902         m4/signalblocking.m4.
45903         (gl_PREREQ_SIGACTION): Don't invoke it.
45904         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45905         gl_PREREQ_SIG_HANDLER_H.
45906         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45907         Don't check for sigaction here.
45908
45909 2008-06-23  Bruno Haible  <bruno@clisp.org>
45910
45911         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45912         (install_handlers): Don't set the SA_RESETHAND flag.
45913
45914 2008-06-23  Bruno Haible  <bruno@clisp.org>
45915
45916         * m4/sigaction.m4: Comment fixes.
45917         * lib/signal.in.h: Likewise.
45918
45919 2008-06-23  Eric Blake  <ebb9@byu.net>
45920
45921         Fix typo.
45922         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45923
45924         Avoid SA_ namespace.
45925         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45926         Reported by Ralf Wildenhues.
45927
45928         Avoid test failure due to SA_RESTORER.
45929         * tests/test-sigaction.c (SA_MASK): New macro.
45930         (main): Avoid failing due to extension flags being set.
45931         Reported by Jim Meyering.
45932
45933         Revert use of sig-handler.h in sigprocmask.c.
45934         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45935         it requires the existence of struct sigaction.
45936         * lib/sigprocmask.c (handler_t): Restore typedef.
45937         (rpl_signal, old_handlers): Use local type.
45938
45939 2008-06-22  Bruno Haible  <bruno@clisp.org>
45940
45941         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45942         conditionally.
45943         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45944
45945 2008-06-22  Bruno Haible  <bruno@clisp.org>
45946
45947         * doc/posix-functions/siginterrupt.texi: Move note.
45948
45949         * lib/signal.in.h (SA_RESTART): New macro.
45950         * lib/sigaction.c: Update comment.
45951
45952         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45953
45954         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45955         (gl_PREREQ_SIGPROCMASK): Invoke it.
45956         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45957
45958         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45959
45960         * lib/sigprocmask.c: Update a comment.
45961
45962 2008-06-21  Eric Blake  <ebb9@byu.net>
45963
45964         Use sigaction module rather than signal().
45965         * modules/c-stack (Depends-on): Add sigaction.
45966         * modules/fatal-signal (Depends-on): Likewise.
45967         * modules/nanosleep (Depends-on): Likewise.
45968         * modules/sigprocmask (Files): Add sig-handler.h.
45969         * modules/sigaction (Files): Likewise.
45970         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45971         Eggert.
45972         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45973         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45974         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45975         (init_fatal_signals): Likewise.
45976         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45977         (siginterrupt): Delete fallback.
45978         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45979         instead.
45980         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45981         siginterrupt.
45982
45983         New module sigaction, for mingw.
45984         * modules/sigaction: New module...
45985         * modules/sigaction-tests: ...and its test.
45986         * m4/sigaction.m4: New file.
45987         * lib/sigaction.c: Likewise.
45988         * tests/test-sigaction.c: Likewise.
45989         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45990         * modules/signal (Makefile.am): Likewise.
45991         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45992         needed.
45993         * doc/posix-headers/signal.texi (signal.h): Mention provided
45994         types.
45995         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45996         that sigaction is preferable.
45997         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45998         module.
45999         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46000         sigaction.
46001
46002         Improve robustness of sigprocmask by overriding signal.
46003         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
46004         is in use.
46005         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
46006         (SIGKILL, SIGSTOP): Provide fallbacks.
46007         (rpl_signal): Implement.
46008         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
46009         signal can be called inside handlers.
46010
46011         Fix nanosleep module on mingw.
46012         * modules/nanosleep (Depends-on): Add sys_select.
46013         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
46014
46015         Fix licensing of sigprocmask.
46016         * modules/raise (License): Relicense as LGPL.
46017
46018 2008-06-21  Bruno Haible  <bruno@clisp.org>
46019
46020         * lib/propername.c (proper_name_utf8): Don't use the transliterated
46021         result if it contains question marks.
46022         Reported by Michael Geng <linux@michaelgeng.de>.
46023
46024 2008-06-19  Bruno Haible  <bruno@clisp.org>
46025
46026         Fix CVS-ism.
46027         * doc/gnulib.texi: Include updated-stamp.texi.
46028         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
46029         (updated-stamp.texi): New rule.
46030         (gnulib.info): Depend on it.
46031         * doc/.gitignore: Add updated-stamp.texi.
46032         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
46033
46034 2008-06-19  Bruno Haible  <bruno@clisp.org>
46035
46036         * doc/Makefile (gnulib.info): Update and simplify dependencies.
46037         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46038
46039 2008-06-19  Eric Blake  <ebb9@byu.net>
46040
46041         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
46042         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
46043         Reported by Stepan Kasal.
46044
46045 2008-06-18  Bruno Haible  <bruno@clisp.org>
46046
46047         * lib/fatal-signal.c (init_fatal_signals): Add comment.
46048         Reported by Eric Blake.
46049
46050 2008-06-18  Eric Blake  <ebb9@byu.net>
46051
46052         Work around cygwin 1.5.25 strsignal bug.
46053         * tests/test-strsignal.c: Allow for const char *.
46054         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
46055
46056 2008-06-18  Simon Josefsson  <simon@josefsson.org>
46057
46058         * users.txt: Update URL to article and add author/date
46059         information.
46060
46061 2008-06-17  Bruno Haible  <bruno@clisp.org>
46062
46063         New macro gl_DISABLE_THREADS.
46064         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
46065         if the user did not pass --enable-threads or --disable-threads option.
46066         (gl_DISABLE_THREADS): New macro.
46067         Reported by Eric Blake <ebb9@byu.net>.
46068
46069 2008-06-17  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
46072         when the macro ignores it.
46073         Based on a patch by Eric Blake <ebb9@byu.net>.
46074
46075 2008-06-17  Bruno Haible  <bruno@clisp.org>
46076
46077         * modules/tls (License): Change to LGPLv2+.
46078         Reported by Eric Blake.
46079
46080 2008-06-17  Eric Blake  <ebb9@byu.net>
46081
46082         Simplify c-stack prerequisites.
46083         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
46084         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
46085         no longer requires <ucontext.h> to exist.  Optimize setrlimit
46086         check.
46087         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
46088         <sys/resource.h>.
46089
46090         Move c-stack test into testsuite.
46091         * modules/c-stack-tests: New file.
46092         * lib/c-stack.c [DEBUG]: Move test program...
46093         * tests/test-c-stack.c: ...into this new file.  Skip rather than
46094         fail test if sigaltstack is lacking.
46095         * tests/test-c-stack.sh: New driver file.
46096
46097 2008-06-16  Eric Blake  <ebb9@byu.net>
46098
46099         Use raise module consistently.
46100         * modules/fatal-signal (Depends-on): Add raise.
46101         * modules/sigprocmask (Depends-on): Likewise.
46102         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
46103         * lib/sigprocmask.c (sigprocmask): Likewise.
46104         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46105         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
46106
46107         Fix compliance bug in sigpending.
46108         * lib/sigprocmask.c (sigpending): Return pending array via
46109         parameter, not return value.
46110
46111 2008-06-14  Eric Blake  <ebb9@byu.net>
46112
46113         Improve obstack-printf test code.
46114         * tests/test-obstack-printf.c (test_function): Fix comment, and
46115         simplify usage of obstack_* in macros.  Add a test for coverage.
46116         Reported by Bruno Haible.
46117
46118 2008-06-14  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
46121         array size as a constant, not as a const variable.
46122         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
46123         AC_USE_SYSTEM_EXTENSIONS.
46124         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46125         Test whether the obstack_printf function actually exists.
46126         * modules/obstack-printf (Depends-on): Add extensions.
46127         (Include): Remove obstack.h.
46128         * modules/obstack-printf-posix (Depends-on): Add extensions.
46129         (Include): Remove obstack.h.
46130
46131 2008-06-13  Eric Blake  <ebb9@byu.net>
46132
46133         Add obstack-printf and obstack-printf-posix modules.
46134         * modules/obstack-printf: New file.
46135         * modules/obstack-printf-posix: Likewise.
46136         * MODULES.html.sh (Misc): Mention them.
46137         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46138         Likewise.
46139         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46140         Likewise.
46141         * modules/stdio (Makefile.am): Accomodate new modules.
46142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46143         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
46144         Declare.
46145         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
46146         functions.
46147         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
46148         (gl_REPLACE_OBSTACK_PRINTF): New macros
46149         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
46150         * tests/test-obstack-printf.c: New file.
46151         * modules/obstack-printf-tests: Likewise.
46152         * modules/obstack-printf-posix-tests: Likewise.
46153
46154 2008-06-11  Bruno Haible  <bruno@clisp.org>
46155
46156         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
46157         * lib/open.c: Include errno.h.
46158         (open): Fail when attempting to write to a file that has a trailing
46159         slash.
46160         * tests/test-open.c (main): Test against trailing slash bug.
46161         * doc/posix-functions/open.texi: Mention the trailing slash bug.
46162
46163 2008-06-10  Bruno Haible  <bruno@clisp.org>
46164
46165         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
46166         for $? to work inside the trap command, with various /bin/sh-s.
46167         * tests/test-vc-list-files-cvs.sh: Likewise.
46168
46169 2008-06-10  Bruno Haible  <bruno@clisp.org>
46170
46171         * lib/acl-internal.h: Don't include gettext.h here.
46172         * lib/set-mode-acl.c: Include gettext.h here.
46173         * lib/copy-acl.c: Likewise.
46174
46175 2008-06-10  Bruno Haible  <bruno@clisp.org>
46176
46177         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
46178         * lib/wait-process.c (wait_subprocess): Likewise.
46179         * lib/execute.h (execute): Add termsigp argument.
46180         * lib/execute.c (execute): Likewise.
46181         * lib/csharpcomp.c (compile_csharp_using_pnet,
46182         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
46183         * lib/csharpexec.c (execute_csharp_using_pnet,
46184         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
46185         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
46186         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
46187         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
46188         is_jikes_present): Update.
46189         * lib/javaexec.c (execute_java_class): Update.
46190         * lib/javaversion.c (execute_and_read_line): Update.
46191         * NEWS: Document the changes.
46192         Reported by Eric Blake.
46193
46194 2008-06-10  Eric Blake  <ebb9@byu.net>
46195
46196         Add missing include.
46197         * tests/test-strstr.c (includes): Add <signal.h>.
46198         * tests/test-strcasestr.c (includes): Likewise.
46199         * tests/test-memmem.c (includes): Likewise.
46200
46201 2008-06-10  Bruno Haible  <bruno@clisp.org>
46202
46203         * lib/wait-process.c (wait_subprocess): Add an assertion.
46204
46205 2008-06-10  Bruno Haible  <bruno@clisp.org>
46206
46207         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
46208
46209 2008-06-10  Bruno Haible  <bruno@clisp.org>
46210
46211         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
46212         using alarm().
46213         * tests/test-strcasestr.c (main): Likewise.
46214         * tests/test-strstr.c (main): Likewise.
46215
46216 2008-06-09  Bruno Haible  <bruno@clisp.org>
46217
46218         Work around the Solaris 10 ACE ACLs ABI change.
46219         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
46220         declare if ACL_NO_TRIVIAL is present.
46221         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
46222         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
46223         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
46224         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
46225         define if ACL_NO_TRIVIAL is present.
46226         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
46227         and use the current ABI.
46228         (file_has_acl): Use same #if condition as elsewhere.
46229         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
46230         in use, and use the current ABI.
46231         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
46232         Reported by Jim Meyering.
46233
46234 2008-06-09  Eric Blake  <ebb9@byu.net>
46235
46236         Work around environments that (stupidly) ignore SIGALRM.
46237         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
46238         before using alarm().
46239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46240         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46241         Reported by Ian Beckwith <ianb@erislabs.net>.
46242
46243         Produce autobuild blurb earlier in log.
46244         * modules/autobuild (configure.ac-early): Move AB_INIT here.
46245
46246 2008-06-09  Jim Meyering  <meyering@redhat.com>
46247         and OndÅ™ej Vašík  <ovasik@redhat.com>
46248
46249         utimens.c: correct kernel bug work-around
46250         OndÅ™ej Vašík found that the invalid return value of 280 indicates
46251         failure, not success, and the kernel bug we're trying to work
46252         around affects not just the utimensat call, but also the fallback
46253         futimens call.
46254         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
46255         not success.
46256         [HAVE_FUTIMENS]: Use the same work-around, here.
46257
46258 2008-06-09  Jim Meyering  <meyering@redhat.com>
46259
46260         add more guards around definition of ACE_-related code
46261         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
46262         ALLOW and ACE_OWNER are also defined.
46263
46264 2008-06-08  Bruno Haible  <bruno@clisp.org>
46265
46266         * lib/acl-internal.h: Add me as co-author.
46267         * lib/file-has-acl.c: Likewise.
46268         * lib/set-mode-acl.c: Likewise.
46269         * lib/copy-acl.c: Likewise.
46270
46271 2008-06-08  Bruno Haible  <bruno@clisp.org>
46272
46273         Add support for AIX ACLs.
46274         * lib/acl-internal.h (acl_nontrivial): New declaration.
46275         * lib/file-has-acl.c (acl_nontrivial): New function.
46276         (file_has_acl): Add implementation using AIX 4 ACL API.
46277         * lib/set-mode-acl.c (qset_acl): Likewise.
46278         * lib/copy-acl.c (qcopy_acl): Likewise.
46279
46280 2008-06-08  Bruno Haible  <bruno@clisp.org>
46281
46282         Add support for HP-UX ACLs.
46283         * lib/acl-internal.h (acl_nontrivial): New declaration.
46284         * lib/file-has-acl.c (acl_nontrivial): New function.
46285         (file_has_acl): Add implementation using HP-UX 11 ACL API.
46286         * lib/set-mode-acl.c (qset_acl): Likewise.
46287         * lib/copy-acl.c (qcopy_acl): Likewise.
46288
46289 2008-06-08  Bruno Haible  <bruno@clisp.org>
46290
46291         Add support for Cygwin ACLs.
46292         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
46293         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
46294         the chmod_or_fchmod call.
46295         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
46296
46297 2008-06-08  Bruno Haible  <bruno@clisp.org>
46298
46299         Fix bug with setuid modes in Solaris 10+ code.
46300         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
46301         succeeded, when the mode contains some special bits.
46302
46303 2008-06-08  Bruno Haible  <bruno@clisp.org>
46304
46305         Add support for Solaris 7..10 ACLs.
46306         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
46307         declarations.
46308         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
46309         functions.
46310         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
46311         * lib/set-mode-acl.c (qset_acl): Likewise.
46312         * lib/copy-acl.c (qcopy_acl): Likewise.
46313
46314 2008-06-08  Bruno Haible  <bruno@clisp.org>
46315
46316         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
46317         declaration.
46318         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
46319         (acl_access_nontrivial): Remove MacOS X case.
46320         (file_has_acl): Use acl_extended_nontrivial.
46321         * lib/copy-acl.c (qcopy_acl): Likewise.
46322
46323 2008-06-08  Bruno Haible  <bruno@clisp.org>
46324
46325         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
46326
46327 2008-06-08  Jim Meyering  <meyering@redhat.com>
46328
46329         * modules/acl (Maintainer): Add Bruno Haible.
46330
46331 2008-06-07  Bruno Haible  <bruno@clisp.org>
46332
46333         Improve support for Tru64 ACLs.
46334         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
46335         ACL on OSF/1.
46336
46337 2008-06-07  Bruno Haible  <bruno@clisp.org>
46338
46339         Add support for MacOS X ACLs.
46340         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
46341         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
46342         * lib/set-mode-acl.c (qset_acl): Likewise.
46343         * lib/copy-acl.c (qcopy_acl): Likewise.
46344
46345 2008-06-07  Bruno Haible  <bruno@clisp.org>
46346
46347         Fix memory leak introduced on 2008-05-22.
46348         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
46349         use.
46350
46351 2008-06-07  Bruno Haible  <bruno@clisp.org>
46352
46353         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
46354         to construct an empty ACL.
46355
46356 2008-06-07  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
46359         precisely.
46360         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
46361
46362 2008-06-07  Bruno Haible  <bruno@clisp.org>
46363
46364         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
46365         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
46366
46367 2008-06-07  Bruno Haible  <bruno@clisp.org>
46368
46369         * doc/posix-functions/_setjmp.texi: Explain the use of this function
46370         regardless of POSIX.
46371         * doc/posix-functions/_longjmp.texi: Likewise.
46372         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
46373         SystemV platform in this case.
46374
46375 2008-06-06  Eric Blake  <ebb9@byu.net>
46376
46377         Document abort() bugs.
46378         * doc/posix-functions/abort.texi (abort): Mention anomalies.
46379
46380         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
46381         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
46382         sigsetjmp.
46383         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
46384         siglongjmp, but only as a macro.
46385         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
46386         is obsolete.
46387         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
46388
46389         Tweak documentation to cover cygwin argz bugs.
46390         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
46391         argz bug fix; no code change needed since no cygwin releases
46392         occurred between the last fix and the bug being tested.
46393         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
46394         module and recently fixed cygwin bugs.
46395         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
46396         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
46397         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
46398         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
46399         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
46400         Likewise.
46401         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
46402         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
46403         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
46404         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
46405         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
46406         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
46407         Likewise.
46408
46409         Avoid gcc warning on cygwin.
46410         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46411         !ACL_NO_TRIVIAL]: Avoid unused variable.
46412
46413 2008-06-05  Eric Blake  <ebb9@byu.net>
46414
46415         Be tolerant of UNKNOWN version in gnulib-tool test dir.
46416         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
46417         git-version-gen fails to come up with a version.
46418         Reported by Simon Josefsson.
46419
46420 2008-06-05  Jim Meyering  <meyering@redhat.com>
46421             Paul Eggert  <eggert@cs.ucla.edu>
46422
46423         utimens.c: work around a probable Linux kernel bug
46424         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
46425         appears to be a kernel bug that causes utimensat to return 280
46426         instead of 0, indicating success.
46427
46428 2008-06-04  Bruno Haible  <bruno@clisp.org>
46429
46430         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
46431         2008-06-01 commit.
46432
46433 2008-06-04  Bruno Haible  <bruno@clisp.org>
46434
46435         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
46436         * lib/file-has-acl.c (acl_access_nontrivial): New function.
46437         (file_has_acl): Use it. Save errno afterwards.
46438         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
46439
46440 2008-06-03  Bruno Haible  <bruno@clisp.org>
46441
46442         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
46443         draft code. Simplify #ifs.
46444         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
46445         Put Solaris code after POSIX-draft code. Fix comments regarding
46446         Solaris 10, HP-UX. Mention Cygwin.
46447         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
46448
46449 2008-06-03  Eric Blake  <ebb9@byu.net>
46450
46451         Provide fallback for older kernels.
46452         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
46453         Provide runtime fallback if kernel lacks support.
46454         Reported by Mike Frysinger.
46455
46456 2008-06-02  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
46459         it exists.
46460
46461 2008-06-02  Bruno Haible  <bruno@clisp.org>
46462
46463         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
46464         * lib/copy-acl.c (qcopy_acl): Update comment.
46465
46466 2008-06-02  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
46469         like ACL APIs.
46470
46471 2008-06-02  Bruno Haible  <bruno@clisp.org>
46472
46473         * tests/test-file-has-acl.sh: Use different code for Cygwin.
46474         * tests/test-set-mode-acl.sh: Likewise.
46475         * tests/test-copy-acl.sh: Likewise.
46476         * tests/test-copy-file.sh: Likewise.
46477
46478 2008-06-02  Bruno Haible  <bruno@clisp.org>
46479
46480         * tests/test-file-has-acl.sh: Remove unused code.
46481
46482 2008-06-01  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
46485         (copy_acl): Just a wrapper around qcopy_acl that emits the error
46486         messages.
46487         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
46488
46489 2008-06-01  Bruno Haible  <bruno@clisp.org>
46490
46491         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
46492         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
46493         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
46494         APIs.
46495         * modules/acl-tests (configure.ac): Remove tests now contained in
46496         m4/acl.m4.
46497
46498 2008-06-02  Jim Meyering  <meyering@redhat.com>
46499
46500         announce-gen: use a better key-server host name
46501         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
46502         it may be more consistently reliable.  Suggested by Werner Koch
46503         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
46504
46505 2008-06-01  Bruno Haible  <bruno@clisp.org>
46506
46507         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
46508         Reported by Voroskoi Andras <voroskoi@gmail.com>.
46509
46510 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
46511
46512         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
46513
46514 2008-06-01  Bruno Haible  <bruno@clisp.org>
46515
46516         New ACL tests.
46517         * tests/test-file-has-acl.sh: New file.
46518         * tests/test-file-has-acl.c: New file.
46519         * tests/test-set-mode-acl.sh: New file.
46520         * tests/test-set-mode-acl.c: New file.
46521         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
46522         * tests/test-copy-acl.c: New file.
46523         * modules/acl-tests: New file, based on modules/copy-file-tests.
46524         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
46525         (Depends-on): Add acl-tests.
46526         (configure.ac): Remove checks.
46527         (Makefile.am): Don't create test-sameacls program here any more.
46528
46529 2008-06-01  Bruno Haible  <bruno@clisp.org>
46530
46531         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
46532         * tests/test-sameacls.c: Include progname.h.
46533         (main): Invoke set_program_name. Portability fixes for MacOS X,
46534         Solaris, HP-UX.
46535
46536 2008-06-01  Bruno Haible  <bruno@clisp.org>
46537
46538         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
46539         function.
46540         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
46541
46542 2008-06-01  Bruno Haible  <bruno@clisp.org>
46543
46544         * modules/rpmatch (Depends-on): Add strdup.
46545
46546 2008-06-01  Bruno Haible  <bruno@clisp.org>
46547
46548         * lib/pipe.c: Include unistd-safer.h.
46549         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
46550         * modules/pipe (Depends-on): Add unistd-safer.
46551
46552 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46553
46554         * modules/autobuild (configure.ac): Call AB_INIT.
46555
46556 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46557
46558         * tests/test-getaddrinfo.c: Don't print debug messages by default.
46559         Suggested by Bruno Haible <bruno@clisp.org>.
46560
46561 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46562
46563         * tests/test-base64.c: Cast size_t to unsigned long when invoking
46564         printf.  Use %lu instead of %d.  Reported by Bruno Haible
46565         <bruno@clisp.org>.
46566
46567 2008-05-29  Eric Blake  <ebb9@byu.net>
46568
46569         Prefer new POSIX 200x interfaces over futimesat.
46570         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
46571         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
46572         when available.
46573         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
46574
46575 2008-05-28  Bruno Haible  <bruno@clisp.org>
46576
46577         * modules/stpcpy (License): Change to LGPLv2+.
46578         Requested by David Lutterkort <dlutter@redhat.com>.
46579
46580 2008-05-27  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
46583         current mingw.
46584         Reported by Jose E. Marchesi <jemarch@gnu.org>.
46585
46586 2008-05-27  Bruno Haible  <bruno@clisp.org>
46587
46588         * modules/iconv_open (Link): New section, from module 'iconv'.
46589         * modules/striconv (Link): Likewise.
46590         * modules/striconveh (Link): Likewise.
46591         * modules/xstriconv (Link): Likewise.
46592         * modules/unicodeio (Link): Likewise.
46593         * modules/propername (Link): Likewise.
46594         Reported by Jim Meyering.
46595
46596 2008-05-26  Jim Meyering  <meyering@redhat.com>
46597
46598         sha256: do not artificially restrict buffer length to be < 2^32
46599         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
46600         uint32_t to size_t.
46601         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
46602         to match.
46603
46604         avoid unaligned access errors, e.g., on sparc
46605         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
46606         direct access through a possibly-unaligned uint64* pointer.
46607         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
46608         direct access through a possibly-unaligned uint32* pointer.
46609         Prompted by this patch from Tom "spot" Callaway:
46610         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
46611
46612         sha512.c: fix typo in comment
46613         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
46614
46615 2008-05-25  Bruno Haible  <bruno@clisp.org>
46616
46617         * lib/set-mode-acl.c: Renamed from lib/acl.c.
46618         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
46619         (Makefile.am): Update lib_SOURCES.
46620
46621 2008-05-25  Bruno Haible  <bruno@clisp.org>
46622
46623         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
46624
46625 2008-05-25  Jim Meyering  <meyering@redhat.com>
46626
46627         useless-if-before-free: freed expr may have white-space differences
46628         * build-aux/useless-if-before-free: Recognize cases in which the
46629         freed expression differs from the tested one in embedded white
46630         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
46631         $1 was used, so we can't make any regexp shy.  Improved tests now
46632         detect this.
46633
46634         useless-if-before-free: accept white space in the expression.
46635         * build-aux/useless-if-before-free: For now, any white space
46636         in the expression must be identical in the free argument.
46637
46638         useless-if-before-free: efficiency tweak
46639         * build-aux/useless-if-before-free: Make the expression-matching
46640         regexp "shy".
46641         Make the *outer* regexp shy, not the expr-matching one.
46642
46643         update code-in-comment to accept cast of free arg
46644         * build-aux/useless-if-before-free: Update regexp.
46645
46646 2008-05-25  Bruno Haible  <bruno@clisp.org>
46647
46648         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
46649         * modules/copy-file-tests (Files, Makefile.am): Update.
46650         * tests/test-copy-file.c (func_test_copy): Update.
46651
46652 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
46653
46654         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
46655
46656 2008-05-23  Bruno Haible  <bruno@clisp.org>
46657
46658         Improve support for ACLs on OSF/1.
46659         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
46660         Remove fallback for unknown flavors of ACLs.
46661
46662 2008-05-22  Bruno Haible  <bruno@clisp.org>
46663
46664         Add support for ACLs on OSF/1.
46665         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46666         replacements.
46667         (acl_free_text): New macro fallback.
46668         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46669         acl_free.
46670         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46671         acl_free_text function. Require AC_C_INLINE.
46672
46673 2008-05-22  Bruno Haible  <bruno@clisp.org>
46674
46675         Make copy_acl work on MacOS X 10.5.
46676         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46677         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46678         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46679         If MODE_INSIDE_ACL, don't assume that every system has the same text
46680         representation for ACLs as FreeBSD.
46681         * lib/copy-acl.c (copy_acl): Add support for platforms with
46682         !MODE_INSIDE_ACL.
46683         * lib/file-has-acl.c (file_has_acl): Likewise.
46684         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46685         FreeBSD, MacOS X, or IRIX, respectively.
46686
46687 2008-05-22  Bruno Haible  <bruno@clisp.org>
46688
46689         * lib/acl.h: Don't include <sys/acl.h>.
46690         (GETACLCNT): Move fallback to lib/acl-internal.h.
46691         * lib/acl-internal.h: Include <sys/acl.h> here.
46692         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46693
46694 2008-05-22  Bruno Haible  <bruno@clisp.org>
46695
46696         Split off copy_acl function to separate file.
46697         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46698         * lib/acl.c (copy_acl): Moved function to separate file.
46699         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46700         * modules/acl (Files): Add lib/copy-acl.c.
46701         (Makefiles.am): Augment lib_SOURCES.
46702
46703 2008-05-22  Bruno Haible  <bruno@clisp.org>
46704
46705         * modules/copy-file-tests: New file.
46706         * tests/test-copy-file.sh: New file.
46707         * tests/test-copy-file.c: New file.
46708         * tests/test-copy-file-sameacls.c: New file.
46709
46710 2008-05-22  Eric Blake  <ebb9@byu.net>
46711
46712         Avoid gcc warning.
46713         * tests/test-memcmp.c (main): Pass NULL indirectly.
46714
46715 2008-05-21  Bruno Haible  <bruno@clisp.org>
46716
46717         Add reference doc about ACLs.
46718         * doc/acl-resources.txt: New file.
46719         * doc/acl-cygwin.txt: New file.
46720
46721 2008-05-21  Bruno Haible  <bruno@clisp.org>
46722
46723         Avoid one more warning from gcc.
46724         * lib/vasnprintf.c (IF_LINT): Update comments.
46725         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46726
46727 2008-05-21  Jim Meyering  <meyering@redhat.com>
46728
46729         avoid a warning from gcc
46730         * lib/vasnprintf.c (IF_LINT): Define.
46731         (scale10_round_decimal_long_double):
46732         Use it to avoid a "may be used uninitialized" warning.
46733         (scale10_round_decimal_double): Likewise.
46734
46735 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46736
46737         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46738         declared.
46739
46740 2008-05-20  Bruno Haible  <bruno@clisp.org>
46741
46742         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46743         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46744
46745 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46746
46747         * modules/memcmp-tests: New file.
46748         * tests/test-memcmp.c: New file.
46749
46750 2008-05-19  Bruno Haible  <bruno@clisp.org>
46751
46752         * modules/propername (Notice, configure.ac): Put quoted "..." into
46753         --keyword option.
46754         * lib/propername.h: Update comments accordingly.
46755         Reported by Eric Blake.
46756
46757 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46758
46759         * modules/getpass-gnu (Depends-on): Add fseeko.
46760
46761 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46762
46763         * modules/base64-tests: New file.
46764
46765 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46766
46767         * lib/base64.c (base64_decode_ctx): If a decode context structure
46768         was passed in use it to ignore newlines.  If a context structure
46769         was _not_ passed in, continue to treat newlines as garbage (this
46770         is the historical behavior).  Formerly base64_decode.
46771         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46772         takes a decode context structure.
46773         * lib/base64.h (base64_decode): Macro for four-argument calls.
46774         (base64_decode_alloc): Likewise.
46775         * lib/base64.c (base64_decode_ctx): If a decode context structure
46776         was passed in use it to ignore newlines.  If a context structure
46777         was _not_ passed in, continue to treat newlines as garbage (this
46778         is the historical behavior).  Formerly base64_decode.
46779         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46780         takes a decode context structure.
46781         * lib/base64.h (base64_decode): Macro for four-argument calls.
46782         (base64_decode_alloc): Likewise.
46783
46784 2008-05-19  Jim Meyering  <meyering@redhat.com>
46785
46786         avoid a warning from gcc
46787         * lib/trim.c (IF_LINT): Define.
46788         (trim2): Use it to avoid a "may be used uninitialized" warning.
46789
46790         Fix doc typo.
46791         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46792
46793 2008-05-19  Bruno Haible  <bruno@clisp.org>
46794
46795         * doc/glibc-functions/getpass.texi: Document limits of other
46796         implementations.
46797
46798 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46799             Bruno Haible <bruno@clisp.org>
46800
46801         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46802
46803 2008-05-18  Bruno Haible  <bruno@clisp.org>
46804
46805         * modules/propername: New file, from GNU gettext.
46806         * lib/propername.h: New file, from GNU gettext.
46807         * lib/propername.c: New file, from GNU gettext.
46808         * MODULES.html.sh (Internationalization functions): Add propername.
46809
46810 2008-05-16  Jim Meyering  <meyering@redhat.com>
46811             Bruno Haible  <bruno@clisp.org>
46812
46813         Avoid some warnings from "gcc -Wshadow".
46814         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46815
46816 2008-05-15  Eric Blake  <ebb9@byu.net>
46817
46818         Extend previous patch to cygwin 1.7.0.
46819         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46820         fast implementation in cygwin >= 1.7.0.
46821         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46823
46824 2008-05-15  Bruno Haible  <bruno@clisp.org>
46825
46826         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46827         implementation in glibc >= 2.9.
46828         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46830
46831 2008-05-15  Bruno Haible  <bruno@clisp.org>
46832
46833         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46834         (Unicode string functions): Add unilbrk/*.
46835         Reported by Karl Berry.
46836
46837 2008-05-15  Eric Blake  <ebb9@byu.net>
46838
46839         Fix violation of <stdbool.h> replacement in regex.
46840         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46841         * lib/regexec.c (re_search_internal): Likewise.
46842         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46843
46844 2008-05-15  Jim Meyering  <meyering@redhat.com>
46845
46846         avoid distracting test output when git or cvs is not found
46847         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46848         * tests/test-vc-list-files-git.sh: Likewise.
46849
46850 2008-05-15  Eric Blake  <ebb9@byu.net>
46851
46852         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46853         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46854         glibc version.
46855         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46856         * doc/posix-functions/strstr.texi (strstr): Likewise.
46857         * lib/str-two-way.h (MAX): Sychronize with glibc.
46858
46859 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46860
46861         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46862         opr.ctx_type.
46863         (calc_first): Initialize constraint field.
46864         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46865         Fix grammar.
46866         (duplicate_node): Merge constraint field for all node types.
46867         (calc_eclosure_iter): Look at constraint field for all node types.
46868         * lib/regex_internal.c (create_cd_newstate): Don't look at
46869         opr.ctx_type.
46870
46871 2008-05-14  Bruno Haible  <bruno@clisp.org>
46872
46873         Help GCC to do better code generation.
46874         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46875         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46876         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46877         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46878         Declare with attribute 'malloc' if supported.
46879
46880 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46881
46882         use "echo STR|wc -c" rather than unportable "expr length STR"
46883         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46884         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46885
46886 2008-05-14  Jim Meyering  <meyering@redhat.com>
46887
46888         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46889         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46890         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46891         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46892         via Collin Lasse.
46893
46894 2008-05-14  Eric Blake  <ebb9@byu.net>
46895
46896         Avoid quadratic growth in gl_LIBSOURCES.
46897         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46898         Suggested by Bruno Haible.
46899
46900         Test xmemdup0.
46901         * modules/xmemdup0-tests: New file.
46902         * tests/test-xmemdup0.c: Likewise.
46903
46904 2008-05-13  Eric Blake  <ebb9@byu.net>
46905
46906         Split xmemdup0 into its own module.
46907         * modules/xmemdup0: New file.
46908         * lib/xmemdup0.h: Likewise.
46909         * lib/xmemdup0.c: Likewise.
46910         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46911         * lib/xalloc.h (xmemdup0): Remove.
46912         * lib/xmalloc.c (xmemdup0): Likewise.
46913
46914 2008-05-13  Eric Blake  <ebb9@byu.net>
46915             Bruno Haible  <bruno@clisp.org>
46916
46917         Reduce number of forks required during autoconf.
46918         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46919         and gl_LIBSOURCES_DIR.
46920         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46921         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46922         m4_syscmd per file.
46923         <m4_foreach_w>: Move...
46924         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46925
46926 2008-05-13  Eric Blake  <ebb9@byu.net>
46927
46928         * gnulib-tool: Fix various comment typos.
46929
46930 2008-05-12  Bruno Haible  <bruno@clisp.org>
46931
46932         Tailor the linebreaking algorithm.
46933         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46934
46935 2008-05-12  Bruno Haible  <bruno@clisp.org>
46936
46937         Update to Unicode 5.0.0.
46938         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46939         LBP_JV, LBP_JT. Redistribute values.
46940         (unilbrk_table): Change size.
46941         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46942         Unicode TR#14 rev. 22.
46943         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46944         LBP_JV, LBP_JT. Redistribute values.
46945         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46946         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46947         Update.
46948         * lib/unilbrk/lbrkprop1.h: Regenerated.
46949         * lib/unilbrk/lbrkprop2.h: Regenerated.
46950         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46951         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46952         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46953         Likewise.
46954         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46955         Likewise.
46956         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46957         result.
46958         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46959         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46960         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46961         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46962         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46963         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46964
46965 2008-05-11  Bruno Haible  <bruno@clisp.org>
46966
46967         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46968
46969 2008-05-11  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46972         * modules/unilbrk/gen-lbrk: New file.
46973
46974 2008-05-11  Bruno Haible  <bruno@clisp.org>
46975
46976         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46977         * m4/sha512.m4 (gl_SHA512): Likewise.
46978
46979 2008-05-11  Jim Meyering  <meyering@redhat.com>
46980
46981         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46982         * modules/crypto/sha256: New file.
46983         * modules/crypto/sha512: Likewise.
46984         * lib/sha256.c: Likewise.
46985         * lib/sha256.h: Likewise.
46986         * lib/sha512.c: Likewise.
46987         * lib/sha512.h: Likewise.
46988         * lib/u64.h: Likewise.
46989         * m4/sha256.m4: Likewise.
46990         * m4/sha512.m4: Likewise.
46991         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46992
46993 2008-05-10  Bruno Haible  <bruno@clisp.org>
46994
46995         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46996         (Input/Output <stdio.h>): Add xprintf.
46997         (Signal handling <signal.h>): Add strsignal.
46998         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46999         (Core language properties): Add func.
47000         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
47001         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
47002         strings.
47003         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
47004         (Input/output): New section.
47005         (File system functions): Add openat-die, stat-macros.
47006         (Networking functions): Add sockets.
47007         (Unicode string functions): Add unictype/*.
47008         (Support for building libraries and executables): Add gperf.
47009         (Support for building documentation): Add agpl-3.0.
47010         (Misc): Add nocrash.
47011
47012 2008-05-10  Bruno Haible  <bruno@clisp.org>
47013
47014         * modules/unictype/gen-ctype: New file.
47015
47016 2008-05-10  Jim Meyering  <meyering@redhat.com>
47017
47018         Make chdir-safer.c more efficient on a system with no symlinks.
47019         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
47020         also if ELOOP is zero.  Suggested by Bruno Haible.
47021
47022         Make chdir-safer.c slightly safer.
47023         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
47024         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
47025
47026         Avoid compile failure on systems without ELOOP (like mingw).
47027         * lib/chdir-safer.c (ELOOP): Define if not already defined.
47028         Reported by Bruno Haible.
47029
47030 2008-05-10  Bruno Haible  <bruno@clisp.org>
47031
47032         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
47033         (is_utf8_encoding): Use a case-insensitive comparison.
47034         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
47035         streq.
47036
47037 2008-05-10  Bruno Haible  <bruno@clisp.org>
47038
47039         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
47040         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
47041         * lib/unilbrk/ulc-common.h (iconv_string_length,
47042         iconv_string_keeping_offsets): Remove declarations.
47043         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
47044         Don't include <iconv.h>, streq.h, xsize.h.
47045         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
47046         conversion.
47047         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
47048         <iconv.h>, streq.h, xsize.h.
47049         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
47050         conversion.
47051         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
47052         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
47053         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
47054         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
47055
47056 2008-05-10  Bruno Haible  <bruno@clisp.org>
47057
47058         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
47059         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
47060
47061         * modules/unilbrk/u32-width-linebreaks-tests: New file.
47062         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
47063
47064         * modules/unilbrk/u16-width-linebreaks-tests: New file.
47065         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
47066
47067         * modules/unilbrk/u8-width-linebreaks-tests: New file.
47068         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
47069
47070         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
47071         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
47072
47073         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
47074         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
47075
47076         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
47077         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
47078
47079         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
47080         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
47081
47082 2008-05-10  Bruno Haible  <bruno@clisp.org>
47083
47084         Split up 'linebreak' module.
47085         * lib/unilbrk.h: New file, based on lib/linebreak.h.
47086         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
47087         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
47088         modifications.
47089         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
47090         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
47091         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
47092         lib/linebreak.c.
47093         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
47094         lib/linebreak.c.
47095         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
47096         lib/linebreak.c.
47097         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
47098         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
47099         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
47100         lib/linebreak.c.
47101         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
47102         lib/linebreak.c.
47103         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
47104         lib/linebreak.c.
47105         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
47106         lib/linebreak.c.
47107         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
47108         lib/linebreak.c.
47109         * modules/unilbrk/base: New file.
47110         * modules/unilbrk/tables: New file.
47111         * modules/unilbrk/u8-possible-linebreaks: New file.
47112         * modules/unilbrk/u16-possible-linebreaks: New file.
47113         * modules/unilbrk/u32-possible-linebreaks: New file.
47114         * modules/unilbrk/ulc-common: New file.
47115         * modules/unilbrk/ulc-possible-linebreaks: New file.
47116         * modules/unilbrk/u8-width-linebreaks: New file.
47117         * modules/unilbrk/u16-width-linebreaks: New file.
47118         * modules/unilbrk/u32-width-linebreaks: New file.
47119         * modules/unilbrk/ulc-width-linebreaks: New file.
47120         * lib/linebreak.h: Remove file.
47121         * lib/linebreak.c: Remove file.
47122         * m4/linebreak.m4: Remove file.
47123         * modules/linebreak: Remove file.
47124         * NEWS: Mention the changes.
47125
47126 2008-05-09  Eric Blake  <ebb9@byu.net>
47127
47128         Add xmemdup0.
47129         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
47130         implementation.
47131         * lib/xmalloc.c (xmemdup0): New C implementation.
47132
47133 2008-05-08  Bruno Haible  <bruno@clisp.org>
47134
47135         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
47136
47137 2008-05-07  Eric Blake  <ebb9@byu.net>
47138
47139         Support cross-compilation of <wctype.h>.
47140         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
47141         AC_CACHE_CHECK.
47142
47143 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
47144
47145         * build-aux/vc-list-files: Add support for bzr.
47146
47147 2008-05-03  Jim Meyering  <meyering@redhat.com>
47148
47149         avoid failed assertion with tight malloc
47150         * tests/test-getndelim2.c: Correct an off-by-one assertion.
47151
47152 2008-05-03  Simon Josefsson  <simon@josefsson.org>
47153
47154         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
47155         are needed from arpa/inet.h.
47156         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
47157         Reported by Bruno Haible.
47158
47159 2008-05-02  Jim Meyering  <meyering@redhat.com>
47160
47161         avoid compilation error on FreeBSD 6
47162         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
47163
47164 2008-05-01  Jim Meyering  <meyering@redhat.com>
47165
47166         useless-if-before-free: correct --help's exit status description
47167         * build-aux/useless-if-before-free (usage): Like grep, exit 0
47168         for one or more matches, etc.  Reported by Bruno Haible.
47169
47170         vc-list-files: make the stand-alone gnulib test work
47171         * modules/vc-list-files-tests (configure.ac):
47172         Define and AC_SUBST abs_aux_dir.
47173         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
47174         $(abs_top_srcdir) to each script and having each of them
47175         duplicate the work of setting PATH, set PATH here, using
47176         the new variable, abs_aux_dir instead.
47177         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
47178         * tests/test-vc-list-files-git.sh: Likewise.
47179         Reported by Bruno Haible.
47180
47181 2008-05-01  Bruno Haible  <bruno@clisp.org>
47182
47183         * lib/getndelim2.c (getndelim2): Fix newsize computation during
47184         reallocation. Rename 'done' to 'found_delimiter'.
47185
47186 2008-05-01  Jim Meyering  <meyering@redhat.com>
47187
47188         vc-list-files: accommodate /bin/sh like the one from Solaris 10
47189         * build-aux/vc-list-files: Use `...`, not $(...).
47190
47191 2008-04-30  Jim Meyering  <meyering@redhat.com>
47192
47193         add tests for vc-list-files
47194         * modules/vc-list-files-tests: New module.
47195         * tests/test-vc-list-files-cvs.sh: New file.
47196         * tests/test-vc-list-files-git.sh: New file.
47197
47198         avoid a warning from gcc
47199         * lib/getndelim2.c (IF_LINT): Define.
47200         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
47201
47202         vc-list-files: work properly with build-aux/cvsu, too
47203         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
47204         to all cvs-based clauses.
47205
47206         vc-list-files: work properly in the CVS+awk case, too
47207         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
47208
47209         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
47210         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
47211         take more than one file argument, so .  Add quotes, just in case $dir
47212         ever contains a shell meta-character.  Prompted by Soren Hansen in
47213         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
47214
47215 2008-04-29  Eric Blake  <ebb9@byu.net>
47216
47217         Optimize getndelim2 to use block operations when possible.
47218         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
47219         freadseek, and memchr2.
47220         * lib/getndelim2.c (getndelim2): Use them for block reads.
47221
47222 2008-04-29  Bruno Haible  <bruno@clisp.org>
47223
47224         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
47225         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47226         * modules/inet_ntop (Depends-on): Add extensions.
47227         * modules/inet_pton (Depends-on): Likewise.
47228         Reported by Simon Josefsson.
47229
47230 2008-04-29  Jim Meyering  <meyering@redhat.com>
47231
47232         When the is more than one match in a block, match all of them.
47233         * build-aux/useless-if-before-free: Iterate through each block
47234         until there are no more matches.
47235
47236         Fix broken useless-if-before-free script.
47237         * build-aux/useless-if-before-free: Fix typo: missing "?" after
47238         the expression to match cast of argument to free-like function.
47239
47240 2008-04-29  Eric Blake  <ebb9@byu.net>
47241
47242         Use new header.
47243         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
47244
47245 2008-04-29  Jim Meyering  <meyering@redhat.com>
47246
47247         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
47248         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
47249         by gnulib to exist and to declare e.g., inet_ntop.
47250         Don't include "inet_ntop.h", now removed.
47251
47252         * m4/arpa_inet_h.m4: Remove trailing blanks.
47253
47254 2008-04-29  Eric Blake  <ebb9@byu.net>
47255
47256         Silence valgrind on safe reads beyond potential array bounds.
47257         * lib/rawmemchr.valgrind: New file.
47258         * lib/strchrnul.valgrind: Likewise.
47259         * modules/rawmemchr (Files): Distribute new file.
47260         * modules/strchrnul (Files): Likewise.
47261         Suggested by Bruno Haible.
47262
47263 2008-04-29  Bruno Haible  <bruno@clisp.org>
47264
47265         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
47266         (inet_ntop, inet_pton): Change portability warning's wording.
47267         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
47268         Invoke gl_CHECK_NEXT_HEADERS.
47269         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
47270         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
47271         set ARPA_INET_H.
47272         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47273         * modules/arpa_inet (Description): No longer only for systems that
47274         lack it.
47275         (Depends-on): Add include_next.
47276         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
47277         HAVE_ARPA_INET_H.
47278
47279 2008-04-29  Jim Meyering  <meyering@redhat.com>
47280
47281         * modules/mkdir (License): Re-license as LGPLv2+.
47282
47283 2008-04-29  Bruno Haible  <bruno@clisp.org>
47284
47285         * modules/rawmemchr (Maintainer): Set to Eric.
47286         * modules/strchrnul (Maintainer): Likewise.
47287
47288 2008-04-29  Simon Josefsson  <simon@josefsson.org>
47289
47290         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
47291         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
47292
47293         * modules/arpa_inet (arpa/inet.h): Use them.
47294
47295 2008-04-28  Eric Blake  <ebb9@byu.net>
47296
47297         Test getndelim2.
47298         * modules/getndelim2-tests: New file.
47299         * tests/test-getndelim2.c: Likewise.
47300         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
47301         stream.
47302         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
47303
47304         * MODULES.html.sh: Document new module.
47305
47306 2008-04-20  Bruno Haible  <bruno@clisp.org>
47307
47308         * lib/c-stack.c (die): Use raise.
47309         * modules/c-stack (Depends-on): Add raise.
47310
47311 2008-04-28  Bruno Haible  <bruno@clisp.org>
47312
47313         Expect rpmatch to be declared.
47314         * lib/yesno.c (rpmatch): Remove declaration.
47315
47316         Declare rpmatch.
47317         * lib/stdlib.in.h (rpmatch): New declaration.
47318         * lib/rpmatch.c: Include <stdlib.h> first.
47319         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
47320         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
47321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
47322         HAVE_RPMATCH.
47323         * modules/rpmatch (Depends-on): Add stdlib, extensions.
47324         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47325         (Include): Set to <stdlib.h>.
47326         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
47327         HAVE_RPMATCH.
47328         * NEWS: Document the change.
47329
47330 2008-04-28  Bruno Haible  <bruno@clisp.org>
47331
47332         Change rpmatch to use nl_langinfo when appropriate.
47333         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
47334         (N_): New macro.
47335         (localized_pattern): New function/macro.
47336         (try): Remove match, nomatch arguments. Copy the pattern into safe
47337         memory before caching it.
47338         (rpmatch): Use localized_pattern. Add translator comments.
47339         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
47340         Suggested by Eric Blake.
47341         * modules/rpmatch (Depends-on): Add stdbool.
47342
47343 2008-04-28  Eric Blake  <ebb9@byu.net>
47344
47345         Add rawmemchr module, matching glibc.
47346         * modules/string (Makefile.am): New indicator.
47347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
47348         * lib/string.in.h (rawmemchr): Declare when appropriate.
47349         * modules/rawmemchr: New file.
47350         * m4/rawmemchr.m4: Likewise.
47351         * lib/rawmemchr.c: Likewise.
47352         * modules/rawmemchr-tests: Likewise.
47353         * tests/test-rawmemchr.c: Likewise.
47354         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
47355         module.
47356         * modules/strchrnul (Depends-on): Add rawmemchr.
47357         * lib/strchrnul.c (strchrnul): Optimize a corner case.
47358
47359         Whitespace cleanup.
47360         * tests/test-strchrnul.c: Reindent.
47361         * lib/strchrnul.c: Likewise.
47362
47363         Optimize and test strchrnul.
47364         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
47365         * modules/strchrnul-tests: New file.
47366         * tests/test-strchrnul.c: Likewise.
47367
47368         Remove intprops dependency.
47369         * modules/memchr (Depends-on): Remove intprops.
47370         * modules/memrchr (Depends-on): Likewise.
47371         * modules/memchr2 (Depends-on): Likewise.
47372         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
47373         * lib/memrchr.c (__memrchr): Likewise.
47374         * lib/memrchr2.c (memchr2): Likewise.
47375         Reported by Simon Josefsson.
47376
47377 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47378
47379         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
47380         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47381
47382 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47383
47384         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
47385
47386         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
47387
47388         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
47389
47390         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
47391         declarations.
47392         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
47393
47394         * m4/inet_pton.m4: Don't check for header files.
47395
47396         * m4/inet_ntop.m4: Don't check for header files.
47397
47398 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47399
47400         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
47401         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
47402         trigger for cygwin).
47403         Reported by Bruno Haible  <bruno@clisp.org>.
47404
47405 2008-04-28  Bruno Haible  <bruno@clisp.org>
47406
47407         * doc/posix-functions/strdup.texi: Mention mingw problem.
47408
47409 2008-04-27  Bruno Haible  <bruno@clisp.org>
47410
47411         * modules/stat-time-tests (Depends-on): Add sleep.
47412         * tests/test-stat-time.c (force_unlink): New function.
47413         (cleanup): Use it.
47414         (test_mtime): Remove the ctime related tests.
47415         (test_ctime): New function, containing the ctime related tests.
47416         (main): Call test_ctime, except on native Windows platforms.
47417
47418 2008-04-27  Bruno Haible  <bruno@clisp.org>
47419
47420         * lib/rpmatch.c (rpmatch): Add some comments.
47421         Reported by James Youngman <jay@gnu.org>.
47422
47423 2008-04-27  Bruno Haible  <bruno@clisp.org>
47424
47425         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
47426         quiet NaNs.
47427
47428 2008-04-27  Bruno Haible  <bruno@clisp.org>
47429
47430         Make test-yesno.sh work on mingw.
47431         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
47432         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
47433         (main): Set stdin to binary mode.
47434         * modules/yesno-tests (Depends-on): Add binary-io.
47435
47436 2008-04-27  Bruno Haible  <bruno@clisp.org>
47437
47438         Fix 'isfinite' on x86, x86_64, ia64 platforms.
47439         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
47440         argument that lie outside the IEEE 854 domain.
47441         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
47442         (gl_ISFINITE): Use it.
47443         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
47444
47445 2008-04-27  Bruno Haible  <bruno@clisp.org>
47446
47447         Allow local renaming in config.h.
47448         * lib/memrchr.c (memrchr): Don't undefine outside libc.
47449
47450 2008-04-27  Bruno Haible  <bruno@clisp.org>
47451
47452         * lib/memchr.c (__memchr): Change type of 'i'.
47453         * lib/memchr2.c (memchr2): Likewise.
47454
47455 2008-04-26  Eric Blake  <ebb9@byu.net>
47456         and Bruno Haible  <bruno@clisp.org>
47457
47458         Optimize and test memrchr.
47459         * modules/memrchr (Depends-on): Add intprops.
47460         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
47461         * modules/memrchr-tests: New file.
47462         * tests/test-memrchr.c: New file.
47463
47464 2008-04-26  Bruno Haible  <bruno@clisp.org>
47465
47466         Add tentative support for DragonFly BSD.
47467         * lib/stdio-impl.h: Add macros for DragonFly BSD.
47468         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
47469         fp.
47470         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47471         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
47472         * lib/fpurge.c (fpurge): Likewise.
47473         * lib/freadable.c (freaadable): Likewise.
47474         * lib/freadahead.c (freadahead): Likewise.
47475         * lib/freading.c (freading): Likewise.
47476         * lib/freadptr.c (freadptr): Likewise.
47477         * lib/freadseek.c (freadptrinc): Likewise.
47478         * lib/fseeko.c (fseeko): Likewise.
47479         * lib/fseterr.c (fseterr): Likewise.
47480         * lib/fwritable.c (fwritable): Likewise.
47481         * lib/fwriting.c (fwriting): Likewise.
47482
47483 2008-04-26  Bruno Haible  <bruno@clisp.org>
47484
47485         * lib/stdio-impl.h: New file.
47486         * lib/fbufmode.c: Include stdio-impl.h.
47487         (fbufmode): Use fp_, remove redundant #defines.
47488         * lib/fflush.c: Include stdio-impl.h.
47489         (clear_ungetc_buffer): Remove redundant #defines.
47490         * lib/fpurge.c: Include stdio-impl.h.
47491         (fpurge): Remove redundant #defines.
47492         * lib/freadable.c: Include stdio-impl.h.
47493         (freadable): Remove redundant #defines.
47494         * lib/freadahead.c: Include stdio-impl.h.
47495         (freadahead): Remove redundant #defines.
47496         * lib/freading.c: Include stdio-impl.h.
47497         (freading): Remove redundant #defines.
47498         * lib/freadptr.c: Include stdio-impl.h.
47499         (freadptr): Remove redundant #defines.
47500         * lib/freadseek.c: Include stdio-impl.h.
47501         (freadptrinc): Remove redundant #defines.
47502         * lib/fseeko.c: Include stdio-impl.h.
47503         (rpl_fseeko): Remove redundant #defines.
47504         * lib/fseterr.c: Include stdio-impl.h.
47505         (fseterr): Remove redundant #defines.
47506         * lib/fwritable.c: Include stdio-impl.h.
47507         (fwritable: Remove redundant #defines.
47508         * lib/fwriting.c: Include stdio-impl.h.
47509         (fwriting): Remove redundant #defines.
47510         * modules/fbufmode (Files): Add lib/stdio-impl.h.
47511         * modules/fflush (Files): Likewise.
47512         * modules/fpurge (Files): Likewise.
47513         * modules/freadable (Files): Likewise.
47514         * modules/freadahead (Files): Likewise.
47515         * modules/freading (Files): Likewise.
47516         * modules/freadptr (Files): Likewise.
47517         * modules/freadseek (Files): Likewise.
47518         * modules/fseeko (Files): Likewise.
47519         * modules/fseterr (Files): Likewise.
47520         * modules/fwritable (Files): Likewise.
47521         * modules/fwriting (Files): Likewise.
47522
47523 2008-04-26  Bruno Haible  <bruno@clisp.org>
47524
47525         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47526         restore_seek_optimization, update_fpos_cache): New functions, extracted
47527         from rpl_fflush.
47528         (rpl_fflush): Use them.
47529         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
47530         (gl_REPLACE_FFLUSH): Use it.
47531
47532 2008-04-26  Bruno Haible  <bruno@clisp.org>
47533
47534         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
47535         on Solaris.
47536         * tests/test-xstrtoimax.sh: Likewise.
47537         * tests/test-xstrtoumax.sh: Likewise.
47538         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47539
47540 2008-04-26  Bruno Haible  <bruno@clisp.org>
47541
47542         * modules/memchr-tests: New file.
47543         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
47544
47545 2008-04-26  Eric Blake  <ebb9@byu.net>
47546             Bruno Haible  <bruno@clisp.org>
47547
47548         * lib/memchr.c: Include intprops.h.
47549         (__memchr): Optimize parallel detection of matching bytes. Rename local
47550         variables. Add explanatory comments.
47551
47552 2008-04-26  Bruno Haible  <bruno@clisp.org>
47553
47554         Fix module 'memchr', broken since 2000-10-28.
47555         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
47556
47557 2008-04-26  Bruno Haible  <bruno@clisp.org>
47558
47559         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
47560         comments.
47561
47562 2008-04-25  Eric Blake  <ebb9@byu.net>
47563
47564         Use native fstatat on cygwin 1.7.0.
47565         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
47566         first.
47567
47568 2008-04-23  Eric Blake  <ebb9@byu.net>
47569
47570         Improve memchr2 performance.
47571         * lib/memchr2.c (memchr2): Further optimize parallel detection of
47572         NUL bytes.
47573         * modules/memchr2 (Depends-on): Use intprops.h.
47574
47575 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47576
47577         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
47578         an inline function instead of a CPP macro.  Patch by Ben Pfaff
47579         <blp@cs.stanford.edu>.
47580
47581 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47582
47583         * lib/arpa_inet.in.h: New file.
47584
47585         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
47586         (Makefile.am): Sed in substitute header file.
47587
47588         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
47589         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
47590
47591         * modules/inet_ntop (configure.ac): Use
47592         gl_ARPA_INET_MODULE_INDICATOR.
47593
47594         * modules/inet_pton (configure.ac): Use
47595         gl_ARPA_INET_MODULE_INDICATOR.
47596
47597 2008-04-22  Jim Meyering  <meyering@redhat.com>
47598
47599         * modules/verify (License): Re-license as LGPLv2+.
47600
47601 2008-04-22  Simon Josefsson  <simon@josefsson.org>
47602
47603         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
47604         parameter to void* as per POSIX standard (MinGW uses char*).
47605
47606 2008-04-21  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47609         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47610         Define to replacements if REPLACE_ISWCNTRL is 1.
47611         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
47612         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
47613         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
47614         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
47615         what it fixes.
47616         * doc/posix-functions/iswalpha.texi: Likewise.
47617         * doc/posix-functions/iswblank.texi: Likewise.
47618         * doc/posix-functions/iswcntrl.texi: Likewise.
47619         * doc/posix-functions/iswdigit.texi: Likewise.
47620         * doc/posix-functions/iswgraph.texi: Likewise.
47621         * doc/posix-functions/iswlower.texi: Likewise.
47622         * doc/posix-functions/iswprint.texi: Likewise.
47623         * doc/posix-functions/iswpunct.texi: Likewise.
47624         * doc/posix-functions/iswspace.texi: Likewise.
47625         * doc/posix-functions/iswupper.texi: Likewise.
47626         * doc/posix-functions/iswxdigit.texi: Likewise.
47627         Reported by Alain Guibert.
47628
47629 2008-04-21  Bruno Haible  <bruno@clisp.org>
47630
47631         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
47632         Patch by Alain Guibert.
47633
47634 2008-04-21  Bruno Haible  <bruno@clisp.org>
47635
47636         Fix test failures on mingw.
47637         * tests/test-xstrtol.c (print_no_progname): New function.
47638         (main): Install it in error_print_progname hook.
47639         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
47640         * tests/test-xstrtoimax.sh: Likewise.
47641         * tests/test-xstrtoumax.sh: Likewise.
47642
47643 2008-04-21  Bruno Haible  <bruno@clisp.org>
47644
47645         Fix test failure on mingw.
47646         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47647
47648 2008-04-21  Bruno Haible  <bruno@clisp.org>
47649
47650         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
47651         Actually assign a value.
47652
47653 2008-04-20  Bruno Haible  <bruno@clisp.org>
47654
47655         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
47656         take 2.
47657         * lib/canonicalize.c (canonicalize_file_name): Elide if the
47658         'canonicalize-lgpl' module is also used.
47659         * lib/canonicalize-lgpl.c: Undo last change.
47660         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
47661
47662 2008-04-20  Bruno Haible  <bruno@clisp.org>
47663
47664         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47665         config.h. Provide _mkdir based fallback for mingw.
47666         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47667         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47668         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47669         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47670         rather than defining mkdir in config.h.
47671         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47672         (gl_SYS_STAT_H_DEFAULTS): New macro.
47673         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47674         HAVE_IO_H any more.
47675         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47676         HAVE_DECL_MKDIR and HAVE_IO_H.
47677
47678 2008-04-20  Bruno Haible  <bruno@clisp.org>
47679
47680         * lib/isapipe.c: Port to native Windows platforms.
47681
47682 2008-04-20  Bruno Haible  <bruno@clisp.org>
47683
47684         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47685
47686 2008-04-21  Eric Blake  <ebb9@byu.net>
47687
47688         Work around preprocessors that don't handle UINTMAX_MAX.
47689         * lib/memchr2.c (memchr2): Avoid embedded #if.
47690         Reported by Alain Guibert, fix suggested by Bruno Haible.
47691
47692 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47693
47694         * doc/posix-functions/strftime.texi (strftime): Explain better
47695         Windows incompatibility.  Suggested by Micah Cowan
47696         <micah@cowan.name>.
47697
47698 2008-04-20  Bruno Haible  <bruno@clisp.org>
47699
47700         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47701         unistr/u8-mblen.
47702
47703 2008-04-20  Bruno Haible  <bruno@clisp.org>
47704
47705         Fix test failure on platforms with non-GNU iconv.
47706         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47707         (U_TO_U8): Use it, rather than u16_to_u8.
47708         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47709         units at the end of the input string.
47710         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47711
47712 2008-04-20  Bruno Haible  <bruno@clisp.org>
47713
47714         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47715         when the resulting length is 0.
47716         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47717
47718 2008-04-20  Bruno Haible  <bruno@clisp.org>
47719
47720         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47721         works.
47722         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47723
47724 2008-04-20  Bruno Haible  <bruno@clisp.org>
47725
47726         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47727         * modules/tsearch-tests (configure.ac): Test for initstate function.
47728
47729 2008-04-20  Bruno Haible  <bruno@clisp.org>
47730
47731         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47732         for nlink_t if missing.
47733         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47734
47735 2008-04-19  Bruno Haible  <bruno@clisp.org>
47736
47737         Work around snprintf bug on Linux libc5.
47738         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47740         gl_SNPRINTF_SIZE1.
47741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47742         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47743         that test failed.
47744         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47745         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47746         * modules/snprintf (Files): Add m4/printf.m4.
47747         * modules/vsnprintf (Files): Likewise.
47748         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47749         * doc/posix-functions/vsnprintf.texi: Likewise.
47750
47751 2008-04-19  Bruno Haible  <bruno@clisp.org>
47752
47753         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47754         from 0.0058 to less than 10^-7.
47755
47756 2008-04-19  Bruno Haible  <bruno@clisp.org>
47757
47758         Fix rounding when a precision is given.
47759         * lib/vasnprintf.c (is_borderline): New function.
47760         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47761         9...9x.
47762         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47763         %e, %g.
47764         * tests/test-vasprintf-posix.c (test_function): Likewise.
47765         * tests/test-snprintf-posix.h (test_function): Likewise.
47766         * tests/test-sprintf-posix.h (test_function): Likewise.
47767         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47768         * tests/test-printf-posix.h (test_function): Likewise.
47769         * tests/test-printf-posix.output: Update.
47770         Reported by John Darrington <john@darrington.wattle.id.au> via
47771         Ben Pfaff <blp@cs.stanford.edu>.
47772
47773 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47774
47775         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47776         Suggested by Bruno Haible <bruno@clisp.org>.
47777
47778 2008-04-17  Bruno Haible  <bruno@clisp.org>
47779
47780         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47781         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47782         implementation.
47783         Patch by Bruce Merry <bmerry@gmail.com>.
47784
47785 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47786
47787         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47788         doesn't work under Windows.
47789
47790 2008-04-16  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47793         New macros.
47794         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47795         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47796         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47797         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47798         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47799         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47800         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47801         macros.
47802         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47803         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47804         Northern Sotho, Uighur.
47805
47806 2008-04-16  Bruno Haible  <bruno@clisp.org>
47807
47808         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47809         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47810         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47811         Reported by Daniel Bergström <daniel@octocode.com>.
47812
47813 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47814             Bruno Haible  <bruno@clisp.org>
47815
47816         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47817         function.
47818         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47819         New functions, mostly extracted from gl_locale_name_default.
47820         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47821
47822 2008-04-16  Eric Blake  <ebb9@byu.net>
47823
47824         Adjust strtod detection to catch glibc 2.7 bug.
47825         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47826         Reported by John Gatewood Ham.
47827
47828 2008-04-16  Bruno Haible  <bruno@clisp.org>
47829
47830         Add tentative support for Linux libc5.
47831         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47832         * lib/fpurge.c (fpurge): Likewise.
47833         * lib/freadable.c (freadable): Likewise.
47834         * lib/freadahead.c (freadahead): Likewise.
47835         * lib/freading.c (freading): Likewise.
47836         * lib/freadptr.c (freadptr): Likewise.
47837         * lib/freadseek.c (freadptrinc): Likewise.
47838         * lib/fseeko.c (rpl_fseeko): Likewise.
47839         * lib/fseterr.c (fseterr): Likewise.
47840         * lib/fwritable.c (fwritable): Likewise.
47841         * lib/fwriting.c (fwriting): Likewise.
47842         Reported by Alain Guibert <alguibert+bts@free.fr>.
47843
47844 2008-04-15  Bruno Haible  <bruno@clisp.org>
47845
47846         * modules/mathl (configure.ac): Define module indicator.
47847
47848 2008-04-15  Bruno Haible  <bruno@clisp.org>
47849
47850         * lib/logl.c (logl): Remove unused variables.
47851
47852 2008-04-15  Bruno Haible  <bruno@clisp.org>
47853
47854         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47855         fails.
47856
47857 2008-04-15  Bruno Haible  <bruno@clisp.org>
47858
47859         * lib/trim.c (trim2): Fix argument of isspace() macro.
47860
47861 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47862
47863         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47864         to 0.
47865         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47866
47867 2008-04-14  Bruno Haible  <bruno@clisp.org>
47868
47869         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47870         AC_LANG_PROGRAM argument.
47871         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47872         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47873         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47874         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47875         * m4/math_h.m4 (gl_MATH_H): Likewise.
47876         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47877         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47878         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47879         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47880         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47881         * m4/regex.m4 (gl_REGEX): Likewise.
47882         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47883         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47884         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47885         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47886         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47887         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47888         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47889         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47890
47891 2008-04-14  Jim Meyering  <meyering@redhat.com>
47892
47893         test-strtod: fix typos: s/abs/fabs/
47894         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47895
47896 2008-04-13  Bruno Haible  <bruno@clisp.org>
47897
47898         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47899         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47900         module is also used and while not building the reloc-wrapper.
47901
47902 2008-04-13  Bruno Haible  <bruno@clisp.org>
47903
47904         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47905
47906 2008-04-13  Bruno Haible  <bruno@clisp.org>
47907
47908         Fix AIX compilation failure introduced on 2008-04-02.
47909         * tests/test-frexp.c (exp): Undefine before redefining.
47910         * tests/test-frexpl.c (exp): Likewise.
47911
47912 2008-04-13  Bruno Haible  <bruno@clisp.org>
47913
47914         Work around a HP-UX stdio bug.
47915         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47916         * tests/test-ftello.c (main): Likewise.
47917         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47918         * doc/posix-functions/ftello.texi: Likewise.
47919
47920 2008-04-13  Bruno Haible  <bruno@clisp.org>
47921
47922         Make test-signbit pass on HP-UX/hppa.
47923         * tests/test-signbit.c (minus_zerol): New variable.
47924         (test_signbitl): Use it.
47925
47926 2008-04-13  Bruno Haible  <bruno@clisp.org>
47927
47928         Make truncl work on OSF/1 4.0.
47929         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47930         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47931         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47933         HAVE_DECL_TRUNCL.
47934         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47935         HAVE_DECL_TRUNCL.
47936         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47937
47938 2008-04-13  Bruno Haible  <bruno@clisp.org>
47939
47940         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47941
47942 2008-04-13  Bruno Haible  <bruno@clisp.org>
47943
47944         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47945         expression, so as to avoid HP-UX 11 cc compiler bug.
47946
47947 2008-04-13  Bruno Haible  <bruno@clisp.org>
47948
47949         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47950
47951 2008-04-13  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/git-merge-changelog.c: Remove empty declaration outside of
47954         functions.
47955
47956 2008-04-13  Bruno Haible  <bruno@clisp.org>
47957
47958         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47959
47960 2008-04-13  Bruno Haible  <bruno@clisp.org>
47961
47962         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47963         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47964         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47965         also if it exists but lacks definitions of the SHUT_* macros.
47966         * modules/sys_socket (Description): Update.
47967         Reported by Elbert Pol <e.pol@chello.nl>.
47968
47969 2008-04-13  Bruno Haible  <bruno@clisp.org>
47970
47971         * lib/localcharset.c (OS2): Don't redefine if already defined.
47972         Reported by Elbert Pol <e.pol@chello.nl>.
47973
47974 2008-04-13  Bruno Haible  <bruno@clisp.org>
47975
47976         * lib/binary-io.h [__EMX__]: Include <io.h>.
47977         Reported by Elbert Pol <e.pol@chello.nl>.
47978
47979 2008-04-12  Bruno Haible  <bruno@clisp.org>
47980
47981         * lib/fpucw.h: Enable the definitions also for x86_64.
47982         Needed for NetBSD/x86_64.
47983         Reported by Thomas Klausner <tk@giga.or.at>.
47984
47985 2008-04-12  Bruno Haible  <bruno@clisp.org>
47986
47987         * tests/test-strtod.c: Include isnand.h.
47988         (main): Use isnand instead of isnan.
47989         Reported by Jim Meyering.
47990
47991 2008-04-12  Bruno Haible  <bruno@clisp.org>
47992
47993         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47994         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47995
47996 2008-04-12  Jim Meyering  <meyering@redhat.com>
47997
47998         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47999
48000 2008-04-12  Bruno Haible  <bruno@clisp.org>
48001
48002         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
48003         Reported by Elbert Pol <e.pol@chello.nl>.
48004
48005 2008-04-12  Eric Blake  <ebb9@byu.net>
48006
48007         Work around Solaris 10 math.h bug.
48008         * m4/math_h.m4 (gl_MATH_H): Check for bug.
48009         (gl_MATH_H_DEFAULTS): Set up default.
48010         * modules/math (Makefile.am): Replace new indicators.
48011         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
48012         * tests/test-math.c (main): Test this.
48013         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
48014         * doc/posix-headers/math.texi (math.h): Mention bug.
48015         Reported by Nelson H. F. Beebe and Jim Meyering.
48016
48017 2008-04-11  Bruno Haible  <bruno@clisp.org>
48018
48019         Adapt to future versions of Apple GCC.
48020         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
48021         Reported by Peter O'Gorman <peter@pogma.com>.
48022
48023 2008-04-11  Bruno Haible  <bruno@clisp.org>
48024
48025         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
48026
48027 2008-04-11  Bruno Haible  <bruno@clisp.org>
48028
48029         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
48030
48031         * modules/getaddrinfo-tests (Makefile.am): Define
48032         test_getaddrinfo_LDADD.
48033
48034 2008-04-11  Bruno Haible  <bruno@clisp.org>
48035
48036         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
48037         (init): Fix syntax error.
48038         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
48039         is declared.
48040
48041 2008-04-11  Bruno Haible  <bruno@clisp.org>
48042
48043         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
48044         * modules/glob (Depends-on): Add stdbool.
48045
48046 2008-04-11  Bruno Haible  <bruno@clisp.org>
48047
48048         * lib/trim.c: Include <string.h>.
48049
48050 2008-04-11  Eric Blake  <ebb9@byu.net>
48051
48052         Avoid compile failure on OS/2.
48053         * lib/regex_internal.h (internal_function): Disable optimization
48054         on OS/2 (__EMX__), where it caused compiler error.
48055         Reported by Elbert Pol.
48056
48057 2008-04-11  Bruno Haible  <bruno@clisp.org>
48058
48059         Flush the standard error stream before aborting. Needed on mingw.
48060         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
48061         * tests/test-array_list.c (ASSERT): Likewise.
48062         * tests/test-array_oset.c (ASSERT): Likewise.
48063         * tests/test-avltree_list.c (ASSERT): Likewise.
48064         * tests/test-avltree_oset.c (ASSERT): Likewise.
48065         * tests/test-avltreehash_list.c (ASSERT): Likewise.
48066         * tests/test-binary-io.c (ASSERT): Likewise.
48067         * tests/test-byteswap.c (ASSERT): Likewise.
48068         * tests/test-c-ctype.c (ASSERT): Likewise.
48069         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
48070         * tests/test-c-strcasestr.c (ASSERT): Likewise.
48071         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
48072         * tests/test-c-strstr.c (ASSERT): Likewise.
48073         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
48074         * tests/test-canonicalize.c (ASSERT): Likewise.
48075         * tests/test-carray_list.c (ASSERT): Likewise.
48076         * tests/test-ceilf1.c (ASSERT): Likewise.
48077         * tests/test-ceilf2.c (ASSERT): Likewise.
48078         * tests/test-ceill.c (ASSERT): Likewise.
48079         * tests/test-count-one-bits.c (ASSERT): Likewise.
48080         * tests/test-fbufmode.c (ASSERT): Likewise.
48081         * tests/test-fflush2.c (ASSERT): Likewise.
48082         * tests/test-floorf1.c (ASSERT): Likewise.
48083         * tests/test-floorf2.c (ASSERT): Likewise.
48084         * tests/test-floorl.c (ASSERT): Likewise.
48085         * tests/test-fopen.c (ASSERT): Likewise.
48086         * tests/test-fpending.c (ASSERT): Likewise.
48087         * tests/test-fprintf-posix.c (ASSERT): Likewise.
48088         * tests/test-fpurge.c (ASSERT): Likewise.
48089         * tests/test-freadable.c (ASSERT): Likewise.
48090         * tests/test-freadahead.c (ASSERT): Likewise.
48091         * tests/test-freading.c (ASSERT): Likewise.
48092         * tests/test-freadptr.c (ASSERT): Likewise.
48093         * tests/test-freadptr2.c (ASSERT): Likewise.
48094         * tests/test-freadseek.c (ASSERT): Likewise.
48095         * tests/test-freopen.c (ASSERT): Likewise.
48096         * tests/test-frexp.c (ASSERT): Likewise.
48097         * tests/test-frexpl.c (ASSERT): Likewise.
48098         * tests/test-fseek.c (ASSERT): Likewise.
48099         * tests/test-fseeko.c (ASSERT): Likewise.
48100         * tests/test-fstrcmp.c (ASSERT): Likewise.
48101         * tests/test-ftell.c (ASSERT): Likewise.
48102         * tests/test-ftello.c (ASSERT): Likewise.
48103         * tests/test-func.c (ASSERT): Likewise.
48104         * tests/test-fwritable.c (ASSERT): Likewise.
48105         * tests/test-fwriting.c (ASSERT): Likewise.
48106         * tests/test-getdelim.c (ASSERT): Likewise.
48107         * tests/test-getline.c (ASSERT): Likewise.
48108         * tests/test-i-ring.c (ASSERT): Likewise.
48109         * tests/test-iconv-utf.c (ASSERT): Likewise.
48110         * tests/test-iconv.c (ASSERT): Likewise.
48111         * tests/test-isfinite.c (ASSERT): Likewise.
48112         * tests/test-isnand.c (ASSERT): Likewise.
48113         * tests/test-isnanf.c (ASSERT): Likewise.
48114         * tests/test-isnanl.h (ASSERT): Likewise.
48115         * tests/test-ldexpl.c (ASSERT): Likewise.
48116         * tests/test-linked_list.c (ASSERT): Likewise.
48117         * tests/test-linkedhash_list.c (ASSERT): Likewise.
48118         * tests/test-localename.c (ASSERT): Likewise.
48119         * tests/test-lseek.c (ASSERT): Likewise.
48120         * tests/test-mbscasecmp.c (ASSERT): Likewise.
48121         * tests/test-mbscasestr1.c (ASSERT): Likewise.
48122         * tests/test-mbscasestr2.c (ASSERT): Likewise.
48123         * tests/test-mbscasestr3.c (ASSERT): Likewise.
48124         * tests/test-mbscasestr4.c (ASSERT): Likewise.
48125         * tests/test-mbschr.c (ASSERT): Likewise.
48126         * tests/test-mbscspn.c (ASSERT): Likewise.
48127         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
48128         * tests/test-mbspbrk.c (ASSERT): Likewise.
48129         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
48130         * tests/test-mbsrchr.c (ASSERT): Likewise.
48131         * tests/test-mbsspn.c (ASSERT): Likewise.
48132         * tests/test-mbsstr1.c (ASSERT): Likewise.
48133         * tests/test-mbsstr2.c (ASSERT): Likewise.
48134         * tests/test-mbsstr3.c (ASSERT): Likewise.
48135         * tests/test-memchr2.c (ASSERT): Likewise.
48136         * tests/test-memmem.c (ASSERT): Likewise.
48137         * tests/test-open.c (ASSERT): Likewise.
48138         * tests/test-printf-frexp.c (ASSERT): Likewise.
48139         * tests/test-printf-frexpl.c (ASSERT): Likewise.
48140         * tests/test-printf-posix.c (ASSERT): Likewise.
48141         * tests/test-quotearg.c (ASSERT): Likewise.
48142         * tests/test-rbtree_list.c (ASSERT): Likewise.
48143         * tests/test-rbtree_oset.c (ASSERT): Likewise.
48144         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
48145         * tests/test-round1.c (ASSERT): Likewise.
48146         * tests/test-roundf1.c (ASSERT): Likewise.
48147         * tests/test-roundl.c (ASSERT): Likewise.
48148         * tests/test-signbit.c (ASSERT): Likewise.
48149         * tests/test-sleep.c (ASSERT): Likewise.
48150         * tests/test-snprintf-posix.c (ASSERT): Likewise.
48151         * tests/test-snprintf.c (ASSERT): Likewise.
48152         * tests/test-sprintf-posix.c (ASSERT): Likewise.
48153         * tests/test-stat-time.c (ASSERT): Likewise.
48154         * tests/test-strcasestr.c (ASSERT): Likewise.
48155         * tests/test-strerror.c (ASSERT): Likewise.
48156         * tests/test-striconv.c (ASSERT): Likewise.
48157         * tests/test-striconveh.c (ASSERT): Likewise.
48158         * tests/test-striconveha.c (ASSERT): Likewise.
48159         * tests/test-strsignal.c (ASSERT): Likewise.
48160         * tests/test-strstr.c (ASSERT): Likewise.
48161         * tests/test-strtod.c (ASSERT): Likewise.
48162         * tests/test-trunc1.c (ASSERT): Likewise.
48163         * tests/test-trunc2.c (ASSERT): Likewise.
48164         * tests/test-truncf1.c (ASSERT): Likewise.
48165         * tests/test-truncf2.c (ASSERT): Likewise.
48166         * tests/test-truncl.c (ASSERT): Likewise.
48167         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
48168         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
48169         * tests/test-vasnprintf.c (ASSERT): Likewise.
48170         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
48171         * tests/test-vasprintf.c (ASSERT): Likewise.
48172         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
48173         * tests/test-vprintf-posix.c (ASSERT): Likewise.
48174         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
48175         * tests/test-vsnprintf.c (ASSERT): Likewise.
48176         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
48177         * tests/test-wcwidth.c (ASSERT): Likewise.
48178         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
48179         * tests/test-xprintf-posix.c (ASSERT): Likewise.
48180         * tests/test-xvasprintf.c (ASSERT): Likewise.
48181         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
48182         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
48183         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
48184         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
48185         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
48186         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
48187         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
48188         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
48189         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
48190         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
48191         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
48192         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
48193         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
48194         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
48195         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
48196         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
48197         * tests/unictype/test-block_list.c (ASSERT): Likewise.
48198         * tests/unictype/test-block_of.c (ASSERT): Likewise.
48199         * tests/unictype/test-block_test.c (ASSERT): Likewise.
48200         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
48201         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
48202         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
48203         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
48204         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
48205         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
48206         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
48207         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
48208         * tests/unictype/test-combining.c (ASSERT): Likewise.
48209         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
48210         * tests/unictype/test-digit.c (ASSERT): Likewise.
48211         * tests/unictype/test-mirror.c (ASSERT): Likewise.
48212         * tests/unictype/test-numeric.c (ASSERT): Likewise.
48213         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
48214         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
48215         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
48216         * tests/unictype/test-scripts.c (ASSERT): Likewise.
48217         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
48218         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
48219         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
48220         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
48221         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
48222         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
48223         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
48224         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
48225         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
48226         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
48227         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
48228         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
48229         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
48230         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
48231         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
48232         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
48233         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
48234         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
48235         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
48236         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
48237         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
48238         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
48239         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
48240         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
48241         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
48242         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
48243         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
48244         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
48245         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
48246         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
48247         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
48248         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
48249         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
48250         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
48251         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
48252         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
48253         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
48254         Reported by Eric Blake.
48255
48256 2008-04-11  Bruno Haible  <bruno@clisp.org>
48257
48258         * lib/wchar.in.h: Tweak comment.
48259
48260 2008-04-11  Bruno Haible  <bruno@clisp.org>
48261
48262         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
48263         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
48264         gl_COMMON.
48265         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
48266
48267 2008-04-11  Bruno Haible  <bruno@clisp.org>
48268
48269         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
48270
48271 2008-04-11  Simon Josefsson  <simon@josefsson.org>
48272
48273         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
48274         of attempting to use non-existing /dev/*random.  Based on patch
48275         from Adam Strzelecki <ono@java.pl> in
48276         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
48277
48278 2008-04-08  Bruno Haible  <bruno@clisp.org>
48279
48280         Add tentative support for emx+gcc.
48281         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
48282         * lib/fpurge.c (fpurge): Likewise.
48283         * lib/freadable.c (freadable): Likewise.
48284         * lib/freadahead.c (freadahead): Likewise.
48285         * lib/freading.c (freading): Likewise.
48286         * lib/freadptr.c (freadptr): Likewise.
48287         * lib/freadseek.c (freadptrinc): Likewise.
48288         * lib/fseeko.c (rpl_fseeko): Likewise.
48289         * lib/fseterr.c (fseterr): Likewise.
48290         * lib/fwritable.c (fwritable): Likewise.
48291         * lib/fwriting.c (fwriting): Likewise.
48292         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
48293
48294 2008-04-09  Eric Blake  <ebb9@byu.net>
48295
48296         Avoid some autoconf warnings.
48297         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
48298         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
48299         * m4/afs.m4 (gl_AFS): Likewise.
48300         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
48301         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
48302         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48303         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
48304         (gl_INTEGER_TYPE_SUFFIX): Likewise.
48305         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
48306         (AC_CHECK_DECLS_ONCE): Likewise.
48307         Rename file...
48308         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
48309         gnulib-tool requires autoconf 2.59 or better.
48310         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
48311
48312 2008-04-08  Eric Blake  <ebb9@byu.net>
48313
48314         Use 'git describe --match' if present (added in git 1.5.5).
48315         * build-aux/git-version-gen: Limit result to tags that match 'v*'
48316         if possible.
48317
48318 2008-04-08  Bruno Haible  <bruno@clisp.org>
48319
48320         Add tentative support for OpenServer.
48321         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
48322         _ptr, _cnt.
48323         * lib/fpurge.c (fpurge): Likewise.
48324         * lib/freadable.c (freadable): Likewise.
48325         * lib/freadahead.c (freadahead): Likewise.
48326         * lib/freading.c (freading): Likewise.
48327         * lib/freadptr.c (freadptr): Likewise.
48328         * lib/freadseek.c (freadptrinc): Likewise.
48329         * lib/fseeko.c (rpl_fseeko): Likewise.
48330         * lib/fseterr.c (fseterr): Likewise.
48331         * lib/fwritable.c (fwritable): Likewise.
48332         * lib/fwriting.c (fwriting): Likewise.
48333         Reported by Roger Cornelius <rac@tenzing.org> and
48334         Brian K. White <brian@aljex.com>.
48335
48336 2008-04-06  Jim Meyering  <meyering@redhat.com>
48337
48338         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
48339
48340 2008-04-06  Bruno Haible  <bruno@clisp.org>
48341
48342         Avoid possible error with non-ASCII bytes in UTF-8 locales.
48343         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
48344         * tests/test-printf-posix.sh: Likewise.
48345         * tests/test-vfprintf-posix.sh: Likewise.
48346         * tests/test-vprintf-posix.sh: Likewise.
48347         * tests/test-xprintf-posix.sh: Likewise.
48348
48349 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48350
48351         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
48352         hide error from 'ls', needed on OS/2.
48353         Report by Elbert Pol <elbert.pol@gmail.com>.
48354
48355 2008-04-04  Eric Blake  <ebb9@byu.net>
48356
48357         Make test-fseeko.c failures meaningful.
48358         * tests/test-fseeko.c: Print line number on failure.
48359         * tests/test-fseek.c: Likewise.
48360         Reported by Nelson H. F. Beebe.
48361
48362         Improve strtod bug detection check.
48363         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
48364         required for Solaris 10.
48365         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
48366
48367 2008-04-04  Bruno Haible  <bruno@clisp.org>
48368
48369         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
48370         by m4/setenv.m4.
48371
48372 2008-04-03  Eric Blake  <ebb9@byu.net>
48373
48374         Ensure sane .version contents.
48375         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
48376         version string.
48377         * build-aux/git-version-gen: Improve documentation.
48378
48379         Make GNU make output nicer.
48380         * top/GNUmakefile [!_have-Makefile]: Add dependency on
48381         MAKECMDGOALS to enforce message for all command line targets.  Set
48382         srcdir for use in maint.mk.
48383
48384         Another maintainer tweak.
48385         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
48386         a target that regenerates version.
48387
48388 2008-04-03  Jim Meyering  <meyering@redhat.com>
48389
48390         vc-list-files: don't cause coreutils "make po-check" failure
48391         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
48392
48393 2008-04-03  Eric Blake  <ebb9@byu.net>
48394
48395         Allow VPATH usage of vc-list-files.
48396         * build-aux/vc-list-files (scriptversion): Add timestamp.
48397         (options): Add --help, --version, -C.
48398         (CVS): Support installed cvsu.
48399
48400 2008-04-02  Bruno Haible  <bruno@clisp.org>
48401
48402         Avoid some "statement with no effect" warnings from gcc.
48403         * tests/test-wctype.c (main): Explicitly ignore unused values.
48404         Reported by Jim Meyering.
48405
48406 2008-04-02  Jim Meyering  <meyering@redhat.com>
48407
48408         Avoid some warnings from "gcc -Wshadow".
48409         * tests/test-frexp.c (exp): Define to a different identifier.
48410         * tests/test-frexpl.c (exp): Likewise.
48411
48412 2008-04-03  Jim Meyering  <meyering@redhat.com>
48413
48414         bootstrap: remove dangling *.[ch] symlinks from lib
48415         * build-aux/bootstrap [dangling symlink removal]: Move find's
48416         -depth option to precede all others, to avoid a warning.
48417         Remove *.[ch] files too, and from "$source_base" (usually lib/).
48418
48419 2008-04-02  Bruno Haible  <bruno@clisp.org>
48420
48421         Avoid some warnings from "gcc -Wshadow".
48422         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
48423         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
48424         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
48425         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
48426         Reported by Jim Meyering.
48427
48428 2008-04-01  Bruno Haible  <bruno@clisp.org>
48429
48430         Fix test to work on IRIX 6.5 with cc.
48431         * tests/test-math.c (numeric_equal): New function.
48432         (main): Use it.
48433
48434 2008-04-01  Bruno Haible  <bruno@clisp.org>
48435
48436         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
48437
48438 2008-04-01  Bruno Haible  <bruno@clisp.org>
48439
48440         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
48441         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48442         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
48443         (Depends-on): Remove math.
48444
48445         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
48446         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48447         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
48448         (Depends-on): Remove math.
48449
48450         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
48451         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48452         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
48453         (Depends-on): Remove math.
48454         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
48455         (Depends-on): Remove math.
48456
48457         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
48458         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48459         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
48460         (Depends-on): Remove math.
48461         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
48462         (Depends-on): Remove math.
48463
48464         * tests/test-round1.c: Include nan.h.
48465         (main): Use NaNd instead of NAN.
48466         * modules/round-tests (Files): Add tests/nan.h.
48467
48468         * tests/test-trunc1.c: Include nan.h.
48469         (main): Use NaNd instead of NAN.
48470         * modules/trunc-tests (Files): Add tests/nan.h.
48471
48472         * tests/test-roundf1.c: Include nan.h.
48473         (main): Use NaNf instead of NAN.
48474         * modules/roundf-tests (Files): Add tests/nan.h.
48475
48476         * tests/test-truncf1.c: Include nan.h.
48477         (main): Use NaNf instead of NAN.
48478         * modules/truncf-tests (Files): Add tests/nan.h.
48479
48480         * tests/test-ceilf1.c: Include nan.h.
48481         (main): Use NaNf instead of NAN.
48482         * modules/ceilf-tests (Files): Add tests/nan.h.
48483
48484         * tests/test-floorf1.c: Include nan.h.
48485         (main): Use NaNf instead of NAN.
48486         * modules/floorf-tests (Files): Add tests/nan.h.
48487
48488         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
48489         (main): Use NaNf instead of NAN.
48490         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
48491
48492         * tests/test-isnand.c: Include nan.h instead of <math.h>.
48493         (main): Use NaNd instead of NAN.
48494         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
48495
48496         * tests/test-frexp.c: Include nan.h.
48497         (main): Use NaNd instead of NAN.
48498         * modules/frexp-tests (Files): Add tests/nan.h.
48499
48500         * lib/isnan.c: Don't include <math.h>.
48501         (FUNC): Don't use NAN macro.
48502         * modules/isnand-nolibm (Depends-on): Remove math.
48503         * modules/isnanf-nolibm (Depends-on): Remove math.
48504         * modules/isnanl (Depends-on): Remove math.
48505         * modules/isnanl-nolibm (Depends-on): Remove math.
48506
48507         * tests/nan.h: New file.
48508
48509 2008-04-01  Eric Blake  <ebb9@byu.net>
48510
48511         Fix typos.
48512         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
48513         values to be the right type.
48514
48515         For now, cater to gnulib strtod inaccuracies.
48516         * tests/test-strtod.c (main): Allow 1-ulp error on expected
48517         fractional results.  While not as nice from a QoI perspective, it
48518         is a quicker patch than correctly implementing decimal to binary
48519         rounding.
48520
48521 2008-03-31  Eric Blake  <ebb9@byu.net>
48522
48523         Guarantee a definition of NAN.
48524         * lib/math.in.h (NAN): Define if missing.
48525         * tests/test-math.c (main): Test it.
48526         * doc/posix-headers/math.texi (math.h): Document this.
48527         * lib/isnan.c (rpl_isnand): Use it.
48528         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
48529         * tests/test-floorf1.c (NaN): Likewise.
48530         * tests/test-frexp.c (NaN): Likewise.
48531         * tests/test-isnand.c (NaN): Likewise.
48532         * tests/test-isnanf.c (NaN): Likewise.
48533         * tests/test-round1.c (NaN): Likewise.
48534         * tests/test-roundf1.c (NaN): Likewise.
48535         * tests/test-snprintf-posix.h (NaN): Likewise.
48536         * tests/test-sprintf-posix.h (NaN): Likewise.
48537         * tests/test-trunc1.c (NaN): Likewise.
48538         * tests/test-truncf1.c (NaN): Likewise.
48539         * tests/test-vasnprintf-posix.c (NaN): Likewise.
48540         * tests/test-vasprintf-posix.c (NaN): Likewise.
48541         * modules/isnand-nolibm (Depends-on): Add math.
48542         * modules/isnanf-nolibm (Depends-on): Likewise.
48543         * modules/isnanl (Depends-on): Likewise.
48544         * modules/isnanl-nolibm (Depends-on): Likewise.
48545         * modules/snprintf-posix-tests (Depends-on): Likewise.
48546         * modules/sprintf-posix-tests (Depends-on): Likewise.
48547         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
48548         * modules/vsprintf-posix-tests (Depends-on): Likewise.
48549         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
48550         * modules/vasprintf-posix-tests (Depends-on): Likewise.
48551
48552 2008-03-31  Bruno Haible  <bruno@clisp.org>
48553
48554         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
48555         * doc/posix-functions/strtod.texi: Likewise.
48556
48557 2008-03-31  Bruno Haible  <bruno@clisp.org>
48558
48559         * tests/test-strtod.c (main): Don't use C99 syntax.
48560
48561 2008-03-31  Bruno Haible  <bruno@clisp.org>
48562
48563         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
48564         Reported by Eric Blake.
48565
48566 2008-03-31  Jim Meyering  <meyering@redhat.com>
48567
48568         Don't compare actual signbit return values.
48569         * tests/test-strtod.c (main): Rather, compare only their
48570         zero/non-zero nature.
48571
48572 2008-03-31  Eric Blake  <ebb9@byu.net>
48573
48574         More strtod documentation.
48575         * doc/posix-functions/strtod.texi (strtod): Interpret more test
48576         failures as distinct bugs.
48577
48578 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48579
48580         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
48581         Problem reported by Erik Benada in
48582         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
48583
48584 2008-03-30  Bruno Haible  <bruno@clisp.org>
48585
48586         * tests/test-strtod.c: Add comments about which assertion fails on which
48587         platform.
48588         * doc/posix-functions/strtod.texi: Add info about many more platforms.
48589
48590 2008-03-30  Eric Blake  <ebb9@byu.net>
48591
48592         Test signbit behavior on zeros.
48593         * tests/test-signbit.c (test_signbitf): Add tests for zero.
48594         (test_signbitd, test_signbitl): Likewise.
48595
48596         More strtod touchups.
48597         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
48598         sign of negative underflow, for now.  Use .5, not .1.
48599         * doc/posix-functions/strtod.texi (strtod): Mention these
48600         limitations.
48601         Reported by Jim Meyering.
48602
48603 2008-03-30  Bruno Haible  <bruno@clisp.org>
48604
48605         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
48606         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
48607
48608 2008-03-30  Bruno Haible  <bruno@clisp.org>
48609
48610         Avoid failure when attempting to return empty iconv results on some
48611         platforms.
48612         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
48613         allocation, don't report ENOMEM when the resulting string is empty.
48614
48615 2008-03-30  Bruno Haible  <bruno@clisp.org>
48616
48617         Fix buffer overrun.
48618         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
48619         Don't consider the width for tmp_length. Check count against tmp_length
48620         before doing the padding. Ensure enough allocation during padding.
48621
48622 2008-03-30  Eric Blake  <ebb9@byu.net>
48623
48624         strtod touchups.
48625         * lib/strtod.c (strtod): Avoid compiler warnings.
48626         Reported by Jim Meyering.
48627
48628 2008-03-30  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
48631         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
48632         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
48633         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
48634         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
48635         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
48636         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
48637         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
48638
48639         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
48640         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
48641         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
48642         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
48643         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
48644         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
48645         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
48646         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
48647
48648         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
48649         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48650         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
48651         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
48652         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
48653         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
48654         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
48655         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
48656
48657         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
48658         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
48659
48660         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
48661         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
48662
48663         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
48664         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48665
48666         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48668         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48669
48670         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48672         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48673
48674         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48676         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48677
48678         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48679         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48680         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48681
48682         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48683         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48684         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48685         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48686         (Depends-on): Add EOVERFLOW.
48687         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48688         (Depends-on): Add EOVERFLOW.
48689         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48690         (Depends-on): Add EOVERFLOW.
48691         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48692         (Depends-on): Add EOVERFLOW.
48693         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48694         (Depends-on): Add EOVERFLOW.
48695         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48696         (Depends-on): Add EOVERFLOW.
48697         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48698         (Depends-on): Add EOVERFLOW.
48699         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48700         (Depends-on): Add EOVERFLOW.
48701
48702         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48703         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48704         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48705
48706         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48708         * modules/snprintf (Depends-on): Add EOVERFLOW.
48709
48710         * lib/poll.c (EOVERFLOW): Remove fallback.
48711         * modules/poll (Depends-on): Add EOVERFLOW.
48712
48713         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48714         * modules/getugroups (Depends-on): Add EOVERFLOW.
48715
48716         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48717         * modules/getdelim (Depends-on): Add EOVERFLOW.
48718
48719         * lib/ftell.c (EOVERFLOW): Remove fallback.
48720         * modules/ftell (Depends-on): Add EOVERFLOW.
48721
48722         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48724         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48725
48726         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48727
48728         * modules/EOVERFLOW-tests: New file.
48729         * tests/test-EOVERFLOW.c: New file.
48730
48731         * modules/EOVERFLOW: New file.
48732         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48733
48734 2008-03-30  Bruno Haible  <bruno@clisp.org>
48735
48736         Fix bug introduced on 2007-06-10.
48737         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48738         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48739
48740 2008-03-30  Bruno Haible  <bruno@clisp.org>
48741
48742         Improve freadseek's efficiency after ungetc.
48743         * lib/freadseek.c: Include freadahead.h.
48744         (freadptrinc): New function, extracted from freadseek.
48745         (freadseek): Use it in a loop. Use freadahead to determine the number
48746         of loop iterations.
48747         * modules/freadseek (Depends-on): Add freadahead.
48748         (configure.ac): Require AC_C_INLINE.
48749
48750 2008-03-30  Bruno Haible  <bruno@clisp.org>
48751
48752         * lib/freadseek.c (freadseek): Don't ignore the return value of
48753         freadptr.
48754
48755 2008-03-29  Eric Blake  <ebb9@byu.net>
48756
48757         Add hex float support.
48758         * modules/strtod (Depends-on): Add c-ctype.
48759         (Link): Mention POW_LIB.
48760         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48761         whitespace between 'e' and exponent.
48762         * tests/test-strtod.c (main): Enable hex float tests.
48763         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48764         now provides.
48765
48766         Document various strtod bugs, with some fixes.
48767         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48768         "-0x", "inf", "nan", and hex constants.
48769         * doc/posix-functions/atof.texi (atof): Likewise.
48770         * modules/stdlib (Makefile.am): Support strtod.
48771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48772         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48773         detect additional strtod bugs.
48774         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48775         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48776         bool where appropriate.  Parse 'inf' and 'nan'.
48777         * tests/test-strtod.c: New file.
48778         * modules/strtod (Depends-on): Add stdbool, stdlib.
48779         (configure.ac): Turn on module indicator.
48780         * modules/strtod-tests: New module.
48781
48782 2008-03-29  Eric Blake  <ebb9@byu.net>
48783
48784         Fix ftell on mingw.
48785         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48786         * modules/ftell-tests (Depends-on): Add binary-io.
48787         * modules/ftello-tests (Depends-on): Likewise.
48788         * tests/test-ftell.c (main): Enhance test to cover behavior after
48789         ungetc.  Enforce binary mode.
48790         * tests/test-ftello.c (main): Likewise.
48791
48792         Pass test-freadseek on cygwin.
48793         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48794         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48795         ungetc buffer.
48796
48797         * tests/test-fflush2.c (main): Fix typo.
48798
48799 2008-03-29  Bruno Haible  <bruno@clisp.org>
48800
48801         * tests/test-fflush2.c (main): Temporarily disable the contents of
48802         this test.
48803         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48804         Reported by Eric Blake.
48805
48806 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48807
48808         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48809         (GC_SHA224_DIGEST_SIZE): Add.
48810
48811         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48812         (gc_hash_digest_length): Likewise.
48813         (gc_hash_buffer): Likewise.
48814
48815 2008-03-25  Bruno Haible  <bruno@clisp.org>
48816
48817         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48818         detail which gettext release to use.
48819         Reported by Simon Josefsson.
48820
48821 2008-03-26  Jim Meyering  <meyering@redhat.com>
48822
48823         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48824         * modules/gnumakefile (clean-GNUmakefile): Also, use
48825         test ... && ... || : syntax rather than if-then ... fi.
48826
48827         gnumakefile: Don't double-quote-expand $(VPATH) value.
48828         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48829
48830 2008-03-24  Eric Blake  <ebb9@byu.net>
48831
48832         Alter GNUmakefile to install into top directory.
48833         * modules/maintainer-makefile: Split, and add dependency...
48834         * modules/gnumakefile: to this new module.
48835         * build-aux/GNUmakefile: Move...
48836         * top/GNUmakefile: ...here.
48837         * build-aux/maint.mk: Move...
48838         * top/maint.mk: ...here.
48839         * MODULES.html.sh (Support for maintaining...): Document new
48840         module.
48841
48842 2008-03-23  Bruno Haible  <bruno@clisp.org>
48843
48844         * gnulib-tool: New options --vc-files, --no-vc-files.
48845         (func_usage): Document them.
48846         (vc_files): New variable.
48847         (func_import): Consider vc_files.
48848         (func_create_testdir): Set vc_files to empty.
48849         Suggested by Jim Meyering and Karl Berry.
48850
48851 2008-03-23  Bruno Haible  <bruno@clisp.org>
48852
48853         Fix regex compilation error on HP-UX 11.
48854         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48855         * modules/regex (Files): Add m4/mbstate_t.m4.
48856         Reported by Ton Voon <ton.voon@altinity.com>.
48857
48858 2008-03-23  Bruno Haible  <bruno@clisp.org>
48859
48860         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48861
48862 2008-03-23  Eric Blake  <ebb9@byu.net>
48863             Bruno Haible  <bruno@clisp.org>
48864
48865         Install files from top/ in the destination directory.
48866         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48867         augmentation also for the files from top/.
48868         (func_import, func_create_testdir): Rewrite file names:
48869         top/filename -> filename.
48870
48871 2008-03-23  Bruno Haible  <bruno@clisp.org>
48872
48873         Tweak "gnulib --version" output.
48874         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48875
48876 2008-03-23  Bruno Haible  <bruno@clisp.org>
48877
48878         Tweak "gnulib --version" output.
48879         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48880         rather than contents of ChangeLog, when possible.
48881
48882 2008-03-21  Eric Blake  <ebb9@byu.net>
48883
48884         More --version tweaks.
48885         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48886         date of last ChangeLog entry.
48887
48888 2008-03-21  Jim Meyering  <meyering@redhat.com>
48889
48890         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48891
48892 2008-03-20  Eric Blake  <ebb9@byu.net>
48893
48894         VPATH fix.
48895         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48896
48897 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48898
48899         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48900         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48901
48902 2008-03-20  Eric Blake  <ebb9@byu.net>
48903
48904         Sync GNUmakefile with coreutils.
48905         * build-aux/GNUmakefile (have-Makefile): Rename...
48906         (_have-Makefile): ...to this, for namespace consideration.
48907         (GNUmakefile.cfg): Include, if present.
48908         (_autoreconf): Define a default.
48909         (_is-dist-target): New rule for rebuilds to pick up intra-release
48910         version.
48911         (maint-cfg.mk): Rename...
48912         (cfg.mk): ...to this.
48913
48914 2008-03-18  Jim Meyering  <meyering@redhat.com>
48915
48916         New script and module: mktempd
48917         * MODULES.html.sh (maint+release support): Add mktempd.
48918         * build-aux/mktempd: New file.
48919         * modules/mktempd: New file.
48920
48921 2008-03-15  Jim Meyering  <meyering@redhat.com>
48922
48923         Undo last change.
48924         * lib/sha1.c, lib/md5.c: 63 != ~63.
48925         Reported by Andreas Schwab.
48926
48927         sha1.c, md5.c: Hoist a redundant expression.
48928         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48929         "ctx->buflen" only once, before calling *_process_block.
48930         * lib/md5.c (md5_process_bytes): Likewise.
48931
48932 2008-03-14  Eric Blake  <ebb9@byu.net>
48933
48934         Bump copyright year in files generated by gnulib-tool.
48935         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48936         gnulib-tool, rather than hard-coding it.
48937
48938         Fix 'gnulib-tool --version' output to work with git.
48939         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48940         (startup): ...here.
48941         (func_version): Use it to invoke git-version-gen, rather than
48942         relying on CVS keyword expansion.  Modernize wording.
48943         (cvsdatestamp, last_checkin_date, version): Kill unused
48944         variables.
48945
48946 2008-03-12  Jim Meyering  <meyering@redhat.com>
48947
48948         Recognize optional cast of the argument to free.
48949         * build-aux/useless-if-before-free: Update regexps.
48950
48951         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48952
48953 2008-03-11  Bruno Haible  <bruno@clisp.org>
48954
48955         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48956         by a single package.
48957         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48958         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48959         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48960         Reported by Sam Steingold <sds@gnu.org>.
48961
48962 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48963
48964         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48965         repositories.
48966
48967 2008-03-11  Bruno Haible  <bruno@clisp.org>
48968
48969         Avoid conflicts between local macro definitions.
48970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48971         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48972
48973 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48974             Bruno Haible  <bruno@clisp.org>
48975
48976         Make va_copy work with some version of xlc on AIX 5.1.
48977         * lib/stdarg.in.h: New file.
48978         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48979         On AIX, use a <stdarg.h> file substitute.
48980         * modules/stdarg (Files): Add lib/stdarg.in.h.
48981         (Depends-on): Add include_next.
48982         (Makefile.am): Build a stdarg.h substitute if requested.
48983         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48984
48985 2008-03-10  Bruno Haible  <bruno@clisp.org>
48986
48987         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48988         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48989         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48990
48991 2008-03-10  Bruno Haible  <bruno@clisp.org>
48992
48993         * modules/stdlib (Depends-on): Add include_next, remove
48994         absolute-header.
48995
48996 2008-03-09  Bruno Haible  <bruno@clisp.org>
48997
48998         * lib/freadahead.h (freadahead): Document more precisely.
48999         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
49000         the sum of both buffer sizes.
49001         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
49002         * NEWS: Document the change.
49003
49004 2008-03-09  Bruno Haible  <bruno@clisp.org>
49005
49006         Extend freadptr to return also the buffer size.
49007         * lib/freadptr.h (freadptr): Add sizep argument.
49008         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
49009         (freadptr): Add sizep argument. Determine buffer size like freadahead
49010         does.
49011         * tests/test-freadptr.c: Don't include freadahead.h.
49012         (main): Adapt for new calling convention of freadptr.
49013         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
49014         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
49015         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
49016         tests/test-freadptr2.sh.
49017         (Depends): Remove freadahead.
49018         (TESTS): Add test-freadptr2.sh.
49019         (check_PROGRAMS): Add test-freadptr2.
49020
49021 2008-03-09  Bruno Haible  <bruno@clisp.org>
49022
49023         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
49024         Report and solution by Simon Josefsson.
49025
49026 2008-03-06  Bruno Haible  <bruno@clisp.org>
49027
49028         Make fflush after ungetc work on BSD platforms.
49029         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
49030         * tests/test-fflush2.c: New file.
49031         * tests/test-fflush2.sh: New file.
49032         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
49033         tests/test-fflush2.c.
49034         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
49035         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
49036
49037 2008-03-06  Eric Blake  <ebb9@byu.net>
49038
49039         Likewise for ftello.
49040         * modules/ftello (Dependencies): Add extensions.
49041         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
49042
49043 2008-03-06  Bruno Haible  <bruno@clisp.org>
49044
49045         * modules/fseeko (Dependencies): Add extensions.
49046         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
49047         Needed on glibc systems.
49048
49049 2008-03-06  Bruno Haible  <bruno@clisp.org>
49050
49051         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
49052         email address.
49053         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49054
49055 2008-03-06  Bruno Haible  <bruno@clisp.org>
49056
49057         * users.txt: Add libgnupdf.
49058
49059 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49060
49061         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
49062         (Header File Substitutes, Function Substitutes,
49063         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
49064         (Build robot for gnulib): Fix typo.
49065
49066 2008-03-06  Bruno Haible  <bruno@clisp.org>
49067
49068         * doc/gnulib-tool.texi (VCS Issues): Small updates.
49069         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49070
49071 2008-03-06  Bruno Haible  <bruno@clisp.org>
49072
49073         * doc/func.texi: New file, extracted from doc/gnulib.texi.
49074         * doc/gnulib.texi: Include it.
49075
49076 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49077
49078         * modules/func (License): Change license to unlimited; there was
49079         no LGPL parts in the module anyway.
49080
49081 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49082
49083         * modules/__func__: Renamed to modules/func.
49084         * modules/__func__-tests: Renamed to modules/func-tests.
49085         * tests/test-__func__.c: Renamed to tests/test-func.c.
49086         * m4/__func__.m4: Renamed to m4/func.m4.
49087         * doc/gnulib.texi (__func__): Section renamed to func.
49088         Suggested by Eric Blake <ebb9@byu.net>.
49089
49090 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49091
49092         * doc/gnulib.texi (__func__): Use C99 terminology when talking
49093         about __func__.  Make example self-contained.  Suggested by Eric
49094         Blake <ebb9@byu.net>.
49095
49096         * tests/test-__func__.c (main): Avoid extraneous () around __func.
49097         Suggested by Eric Blake <ebb9@byu.net>.
49098
49099 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49100
49101         * modules/__func__: New file.
49102         * modules/__func__-tests: New file.
49103         * tests/test-__func__.c: New file.
49104         * m4/__func__.m4: New file.
49105         * doc/gnulib.texi (__func__): Document __func__ module.
49106
49107 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49108
49109         * modules/byteswap (License): Re-license as LGPLv2+.
49110
49111 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49112
49113         * doc/Makefile: Add pdf target.
49114
49115 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49116
49117         * modules/inline (License): Use 'unlimited', since there are only
49118         *.m4 files in this module.
49119
49120 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49121             Bruno Haible  <bruno@clisp.org>
49122
49123         Add support for HP C 7.1 on OpenVMS 8.3.
49124         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
49125
49126 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49127
49128         Update VMS specifics.
49129         * lib/getopt.c [VMS]: Remove include of unixlib.h.
49130
49131 2008-03-02  Jim Meyering  <meyering@redhat.com>
49132
49133         Remove the last dependency on the "free" module.
49134         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
49135         Reported by Bob Proulx.
49136
49137         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
49138
49139         Remove useless "if" tests before free.  Deprecate "free" module.
49140         * doc/posix-functions/free.texi: Mention that this
49141         module is no longer useful.
49142         * modules/free (Notice): Say this module is obsolete.
49143         * modules/readutmp (Depends-on): Remove free.
49144         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
49145         * lib/putenv.c (putenv): Likewise.
49146         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
49147         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
49148         * tests/test-c-strcasestr.c (main): Likewise.
49149         * tests/test-c-strstr.c (main): Likewise.
49150         * tests/test-mbscasestr1.c (main): Likewise.
49151         * tests/test-mbscasestr2.c (main): Likewise.
49152         * tests/test-mbsstr1.c (main): Likewise.
49153         * tests/test-mbsstr2.c (main): Likewise.
49154         * tests/test-memmem.c (main): Likewise.
49155         * tests/test-strcasestr.c (main): Likewise.
49156         * tests/test-striconv.c (main): Likewise.
49157         * tests/test-striconveh.c (main): Likewise.
49158         * tests/test-striconveha.c (main): Likewise.
49159         * tests/test-strstr.c (main): Likewise.
49160
49161         * build-aux/git-version-gen: Adjust a comment and the Usage string.
49162
49163         bootstrap: sync from coreutils again
49164         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
49165
49166 2008-03-01  Jim Meyering  <meyering@redhat.com>
49167
49168         bootstrap: sync from coreutils
49169         * build-aux/bootstrap (update_po_files): Copy a .po file into place
49170         also when the target doesn't exist.
49171
49172 2008-03-01  Eric Blake  <ebb9@byu.net>
49173
49174         Fix bugs in last patch.
49175         * lib/memchr2.c (memchr2): Fix typo.
49176         * tests/test-memchr2.c: Test previous bug, and don't use GNU
49177         extension.
49178         Reported by Bruce Korb.
49179
49180         New module 'memchr2'.
49181         * modules/memchr2: New file.
49182         * modules/memchr2-tests: Likewise.
49183         * lib/memchr2.h: Likewise.
49184         * lib/memchr2.c: Likewise, based on memchr.c.
49185         * tests/test-memchr2.c: New test.
49186         * MODULES.html.sh (String handling): Add memchr2.
49187
49188 2008-02-29  Bruno Haible  <bruno@clisp.org>
49189
49190         * modules/freadseek-tests: New file.
49191         * tests/test-freadseek.sh: New file.
49192         * tests/test-freadseek.c: New file.
49193
49194         New module 'freadseek'.
49195         * modules/freadseek: New file.
49196         * lib/freadseek.h: New file.
49197         * lib/freadseek.c: New file.
49198         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
49199
49200 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49201
49202         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
49203         wydawca.
49204
49205         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
49206         program_invocation_name and program_invocation_short_name are
49207         present.
49208
49209 2008-02-28  Bruno Haible  <bruno@clisp.org>
49210
49211         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
49212         * tests/test-freadptr.sh: Also test non-seekable stdin.
49213
49214 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
49215
49216         * build-aux/bootstrap (source_base, m4_base)
49217         (doc_base, tests_base): New variables.
49218         (gnulib_tool_options): Do not hardcode base directories, use
49219         the above variables instead.
49220
49221 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
49222
49223         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
49224
49225 2008-02-28  Bruno Haible  <bruno@clisp.org>
49226
49227         * modules/freadptr-tests: New file.
49228         * tests/test-freadptr.sh: New file.
49229         * tests/test-freadptr.c: New file.
49230
49231         New module 'freadptr'.
49232         * modules/freadptr: New file.
49233         * lib/freadptr.h: New file.
49234         * lib/freadptr.c: New file.
49235         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
49236
49237 2008-02-26  Karl Berry  <karl@freefriends.org>
49238
49239         Sync from Libtool:
49240         * libltdl/argz.c (argz_add, argz_count): New functions.
49241         * libltdl/argz.in.h: Declare them.
49242         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
49243
49244 2008-02-22  Bruno Haible  <bruno@clisp.org>
49245
49246         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
49247         is a pointer type.  Needed for HP-UX 10.
49248         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
49249         * doc/posix-functions/gmtime_r.texi: Likewise.
49250         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49251
49252 2008-02-24  Bruno Haible  <bruno@clisp.org>
49253
49254         * modules/environ-tests: New file.
49255         * tests/test-environ.c: New file.
49256
49257         New module 'environ'.
49258         * modules/environ: New file.
49259         * lib/unistd.in.h (environ): New declaration.
49260         * m4/environ.m4: New file.
49261         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
49262         after use.
49263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
49264         HAVE_DECL_ENVIRON.
49265         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
49266         HAVE_DECL_ENVIRON.
49267         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
49268         wrong claim that 'environ' is missing on some systems.
49269         * modules/execute (Depends-on): Add environ.
49270         * lib/execute.c (environ): Remove fallback declaration.
49271         * modules/pipe (Depends-on): Add environ.
49272         * lib/pipe.c (environ): Remove fallback declaration.
49273         * modules/setenv (Depends-on): Add environ.
49274         * lib/setenv.c (environ): Remove fallback declaration.
49275         * modules/unsetenv (Depends-on): Add environ.
49276         * lib/unsetenv.c (environ): Remove fallback declaration.
49277         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
49278         m4/environ.m4.
49279         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
49280         (gl_PREREQ_UNSETENV): Likewise.
49281
49282 2008-02-24  Bruno Haible  <bruno@clisp.org>
49283
49284         * doc/posix-functions/environ.texi: Document the MacOS X problem.
49285
49286 2008-02-20  Bob Proulx  <bob@proulx.com>
49287
49288         Enable use of older two part flavor 'git describe'.
49289         * build-aux/git-version-gen: If using the older two part flavor of
49290         git version then recreate the third part now present in the
49291         newer three part flavor of git describe.
49292
49293 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
49294
49295         * lib/fts.c (fts_build): Typo correction to comment.
49296
49297 2008-02-17  Bruno Haible  <bruno@clisp.org>
49298
49299         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
49300         generating no-op conflicts.
49301
49302 2008-02-17  Bruno Haible  <bruno@clisp.org>
49303
49304         Speed up by 10%.
49305         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
49306         result_entries, rather than an index-based loop.
49307
49308 2008-02-17  Bruno Haible  <bruno@clisp.org>
49309
49310         Speed up by 25%.
49311         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
49312         'hashcode_cached'.
49313         (entry_create): New function.
49314         (entry_hashcode): Use the cached hashcode if possible.
49315         (read_changelog_file, try_split_merged_entry): Use entry_create.
49316
49317 2008-02-17  Bruno Haible  <bruno@clisp.org>
49318
49319         Speed up from O(n^2) to O(n) for long ChangeLog files.
49320         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
49321         (read_changelog_file): Change implementation of entries_reversed list
49322         to rbtreehash.
49323         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
49324
49325 2008-02-17  Bruno Haible  <bruno@clisp.org>
49326
49327         New option --split-merged-entry.
49328         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
49329         (find_paragraph_end, try_split_merged_entry): New functions.
49330         (long_options): Add option --split-merged-entry.
49331         (usage): Document option --split-merged-entry.
49332         (main): Implement option --split-merged-entry.
49333         Reported by Eric Blake.
49334
49335 2008-02-17  Bruno Haible  <bruno@clisp.org>
49336
49337         * lib/git-merge-changelog.c: Include c-strstr.h.
49338         (main): Support the "git pull --rebase" situation.
49339         * modules/git-merge-changelog (Depends-on): Add c-strstr.
49340         Reported by Eric Blake.
49341
49342 2008-02-16  Eric Blake  <ebb9@byu.net>
49343
49344         Avoid doubling \ in common case of "c-maybe" quoting style.
49345         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
49346         eliding outer quotes.
49347         * lib/quotearg.h: Document this.
49348         * tests/test-quotearg.c (result_strings, inputs, results_g)
49349         (flag_results, locale_results): Test it by adding a new string to
49350         each test group.
49351         (compare_strings): Test new string.
49352
49353 2008-02-13  Eric Blake  <ebb9@byu.net>
49354
49355         Avoid trigraph quoting in default output.
49356         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
49357         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
49358         unless explicitly requested.
49359         * tests/test-quotearg.c (flag_results, main): Add additional tests.
49360
49361 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
49362
49363         Don't rely on signed integer overflowing to negative value.
49364         * lib/getugroups.c (getugroups): Include <limits.h>.
49365         Instead, compare against INT_MAX, and increment only if the test passes.
49366
49367 2008-02-13  Jim Meyering  <meyering@redhat.com>
49368         and Eric Blake  <ebb9@byu.net>
49369
49370         Avoid shadowing warning and compile errors on Linux.
49371         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
49372         forwarding macros on Linux.
49373         (dcgettext): Define a stub, for Linux.
49374         (results_g, main): Avoid warnings.
49375
49376 2008-02-12  Eric Blake  <ebb9@byu.net>
49377
49378         Silence warning in last patch.
49379         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
49380
49381         Quotearg part 4: add tests, fix c-maybe colon quoting.
49382         * lib/quotearg.h: Improve documentation.
49383         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
49384         escapes when adding outer quotes.  When quoting trigraphs, use
49385         valid C notation.  When quoting NUL, omit extra characters if next
49386         character is not digit.  Alter prototype.
49387         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
49388         callers.
49389         * modules/quotearg-tests: New module.
49390         * tests/test-quotearg.c: New test.
49391
49392 2008-02-07  Eric Blake  <ebb9@byu.net>
49393
49394         Quotearg part 3: add flag to control outer quote elision.
49395         * lib/quotearg.h (c_maybe_quoting_style): New style.
49396         (enum quoting_flags): Better documentation of flags.
49397         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
49398         c-maybe style.
49399         (quotearg_buffer_restyled): Handle new flag to elide outer
49400         quotes.
49401
49402         Quotearg part 2: add flag that can control NUL elision.
49403         * lib/quotearg.h (set_quoting_flags): New prototype.
49404         * lib/quotearg.c (struct quoting_options): Add flag field.
49405         (set_quoting_flags): New function.
49406         (quotearg_buffer_restyled): Add flags parameter.
49407         (quotearg_alloc_mem): Set the flag if length cannot be returned.
49408         (quotearg_n_options): Set the flag, since length cannot be
49409         returned.
49410         (quoting_options_from_style): Default flags correctly.
49411
49412         Quotearg part 1: more wrappers, restore quotearg_char state.
49413         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
49414         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
49415         (quotearg_colon_mem): New wrappers.
49416         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
49417         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
49418         functions.
49419         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
49420         (quotearg_colon_mem): New functions.
49421
49422 2008-02-11  Bruno Haible  <bruno@clisp.org>
49423
49424         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
49425         library in the current directory: it does not work with parallel make.
49426         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49427
49428 2008-02-11  Bruno Haible  <bruno@clisp.org>
49429
49430         * .gitattributes: New file.
49431
49432 2008-02-11  Jim Meyering  <meyering@redhat.com>
49433
49434         useless-if-before-free: Fix reversed exit values.
49435         * build-aux/useless-if-before-free: Use correct values
49436         for EXIT_MATCH and EXIT_NO_MATCH.
49437
49438         * build-aux/useless-if-before-free: Close stdout carefully.
49439
49440 2008-02-10  Bruno Haible  <bruno@clisp.org>
49441
49442         New module 'git-merge-changelog'.
49443         * modules/git-merge-changelog: New file.
49444         * lib/git-merge-changelog.c: New file.
49445
49446 2008-02-10  Jim Meyering  <meyering@redhat.com>
49447
49448         useless-if-before-free: New option: --list (-l).
49449
49450         useless-if-before-free: Don't exit immediately upon open failure.
49451         * build-aux/useless-if-before-free: Exit 2 for errors.
49452         Upon failure to open a file, don't exit immediately.
49453         Rather, just warn and continue with any remaining files.
49454
49455 2008-02-10  Bruno Haible  <bruno@clisp.org>
49456
49457         New abstract list operation 'node_set_value'.
49458         * lib/gl_list.h (gl_list_node_set_value): New function.
49459         (struct gl_list_implementation): New field node_set_value.
49460         * lib/gl_list.c (gl_list_node_set_value): New function.
49461         * lib/gl_array_list.c (gl_array_node_set_value): New function.
49462         (gl_array_list_implementation): Update.
49463         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
49464         (gl_carray_list_implementation): Update.
49465         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
49466         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49467         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49468         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
49469         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49470         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49471         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49472         Update.
49473         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49474         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
49475         (gl_sublist_list_implementation): Update.
49476
49477 2008-02-10  Bruno Haible  <bruno@clisp.org>
49478
49479         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
49480         Needed when ELEMENT is #defined to 'some_type *'.
49481
49482 2008-02-10  Jim Meyering  <meyering@redhat.com>
49483
49484         New script and module: useless-if-before-free
49485         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
49486         * build-aux/useless-if-before-free: New file.
49487         * modules/useless-if-before-free: New file.
49488
49489         * build-aux/gitlog-to-changelog: Use committer date, not author date.
49490
49491         xstrtol_error: Fix typo.
49492         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
49493         s/exit_failure/exit_status/.
49494
49495 2008-02-09  Jim Meyering  <meyering@redhat.com>
49496
49497         New script and module: gitlog-to-changelog
49498         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
49499         * modules/gitlog-to-changelog: New file.
49500         * build-aux/gitlog-to-changelog: New file.
49501
49502 2008-02-08  Jim Meyering  <meyering@redhat.com>
49503
49504         Avoid two "parameter unused" warnings.
49505         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
49506         Mark "st" as used.
49507
49508         Use "git COMMAND", not "git-COMMAND".
49509         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
49510         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
49511         * build-aux/git-version-gen: Use "git status", not "git-status".
49512
49513 2008-02-07  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
49516         Avoids a crash on Windows Vista.
49517         Reported by Adam Strzelecki <ono@java.pl> via
49518         Simon Josefsson <simon@josefsson.org>.
49519
49520 2008-02-06  Bruno Haible  <bruno@clisp.org>
49521
49522         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
49523         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
49524         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
49525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49526         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49527         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49528         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
49529         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
49530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49532         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49533         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49537         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
49538         left-adjust flag.
49539         * tests/test-snprintf-posix.h (test_function): Likewise.
49540         * tests/test-sprintf-posix.h (test_function): Likewise.
49541         * tests/test-vasprintf-posix.c (test_function): Likewise.
49542         * doc/posix-functions/fprintf.texi: Update.
49543         * doc/posix-functions/printf.texi: Update.
49544         * doc/posix-functions/snprintf.texi: Update.
49545         * doc/posix-functions/sprintf.texi: Update.
49546         * doc/posix-functions/vfprintf.texi: Update.
49547         * doc/posix-functions/vprintf.texi: Update.
49548         * doc/posix-functions/vsnprintf.texi: Update.
49549         * doc/posix-functions/vsprintf.texi: Update.
49550         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49551
49552 2008-02-06  Bruno Haible  <bruno@clisp.org>
49553
49554         Fix bug introduced on 2008-01-26.
49555         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
49556
49557 2008-02-06  Bruno Haible  <bruno@clisp.org>
49558
49559         Fix bug introduced on 2007-06-10.
49560         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
49561         !NEED_PRINTF_FLAG_ZERO.
49562
49563 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
49564
49565         getloadavg: use libperfstat on AIX5
49566         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
49567
49568 2008-02-03  Bruno Haible  <bruno@clisp.org>
49569
49570         * lib/diffseq.h: Add comments about required #includes.
49571         Reported by Michael Biggs <gnulib@doubleplum.net>.
49572
49573 2008-02-01  Bruno Haible  <bruno@clisp.org>
49574
49575         * users.txt: Add gnuit.
49576
49577 2008-01-31  Bruno Haible  <bruno@clisp.org>
49578
49579         * lib/md4.c (set_uint32): Mark as inline.
49580         * lib/md5.c (set_uint32): Likewise.
49581         * lib/sha1.c (set_uint32): Likewise.
49582         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
49583         * m4/md5.m4 (gl_MD5): Likewise.
49584         * m4/sha1.m4 (gl_SHA1): Likewise.
49585
49586 2008-01-31  Jim Meyering  <meyering@redhat.com>
49587
49588         Use "sizeof VAR", rather than a literal "4".
49589         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
49590         * lib/md4.c (md4_read_ctx): Likewise.
49591         * lib/sha1.c (sha1_read_ctx): Likewise.
49592
49593 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49594
49595         * tests/test-sha1.c: New file, based on test-md5.c.
49596
49597         * modules/crypto/sha1-tests: New file.
49598
49599 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49600
49601         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
49602
49603 2008-01-31  Jim Meyering  <meyering@redhat.com>
49604
49605         Prefer "sizeof v" over the equivalent "4".
49606         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
49607         * lib/md5.c (set_uint32): Likewise.
49608         * lib/sha1.c (set_uint32): Likewise.
49609
49610 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49611
49612         * lib/sha1.c (set_uint32): Mark function as static.
49613
49614 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49615
49616         md2: clarify comments to say that alignment is not required.
49617         * lib/md2.h: Remove warning about alignment in comment.
49618         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
49619         never been required.
49620
49621 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49622
49623         md4: adapt alignment constraint fix from sha1.
49624         * lib/md4.c (set_uint32): New function, from sha1.c
49625         (md4_read_ctx): Use it.
49626         (md4_finish_ctx): Doc fix.
49627         * lib/md4.h: Doc fix.
49628
49629 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49630
49631         md5: adapt alignment constraint fix from sha1.
49632         * lib/md5.c (set_uint32): New function, from sha1.c
49633         (md5_read_ctx): Use it.
49634         (md5_finish_ctx): Doc fix.
49635         * lib/md5.h: Doc fix.
49636
49637 2008-01-30  Peter Palfrader  <weasel@debian.org>
49638
49639         sha1: remove the result buffer alignment constraint
49640         * lib/sha1.c (set_uint32): New function.
49641         (sha1_read_ctx): Rewrite to remove the result buffer alignment
49642         constraint.
49643         (sha1_finish_ctx): Remove comment warning about alignment constraint.
49644         * lib/sha1.h: Likewise.
49645
49646 2008-01-30  Andreas Schwab  <schwab@suse.de>
49647             Bruno Haible  <bruno@clisp.org>
49648
49649         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
49650         correct definition of LDBL_MIN_EXP.
49651
49652 2008-01-30  Karl Berry  <karl@gnu.org>
49653
49654         * config/srclist-update: try to preserve x bit on updates.
49655         * config/srclistvars.sh: update for karl.
49656
49657 2008-01-29  Jim Meyering  <meyering@redhat.com>
49658
49659         vasnprintf.c: Avoid warning about unused label
49660         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
49661         "overflow" label definition and associated code with the
49662         same cpp condition that guards the sole use of that label.
49663
49664 2008-01-26  Bruno Haible  <bruno@clisp.org>
49665
49666         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49667         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49668         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49669         * lib/isnanl-nolibm.h (isnanl): Likewise.
49670         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49671
49672 2008-01-26  Bruno Haible  <bruno@clisp.org>
49673
49674         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49675         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49676
49677 2008-01-26  Bruno Haible  <bruno@clisp.org>
49678
49679         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49680         GCC >= 4.0 built-in.
49681         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49682
49683 2008-01-26  Bruno Haible  <bruno@clisp.org>
49684
49685         Rename isnan, applicable to 'double' only, to isnand.
49686         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49687         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49688         (configure.ac): Update.
49689         (Include): Replace "isnan.h" with "isnand.h".
49690         * m4/isnand.m4: Renamed from m4/isnan.m4.
49691         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49692         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49693         instead of isnan.c.
49694         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49695         instead of HAVE_ISNAN_IN_LIBC.
49696         (isnand): Renamed from isnan.
49697         * lib/isnand.c: New file.
49698         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49699         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49700         (Makefile.am): Update.
49701         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49702         Include isnand.h instead of isnan.h.
49703         (main): Test isnand instead of isnan.
49704         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49705         isnan-nolibm.
49706         * modules/frexp (Depends-on): Likewise.
49707         * modules/frexp-tests (Depends-on): Likewise.
49708         * modules/frexp-nolibm (Depends-on): Likewise.
49709         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49710         * modules/isfinite (Depends-on): Likewise.
49711         * modules/round-tests (Depends-on): Likewise.
49712         * modules/signbit (Depends-on): Likewise.
49713         * modules/signbit-tests (Depends-on): Likewise.
49714         * modules/snprintf-posix (Depends-on): Likewise.
49715         * modules/sprintf-posix (Depends-on): Likewise.
49716         * modules/trunc-tests (Depends-on): Likewise.
49717         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49718         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49719         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49720         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49721         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49722         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49723         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49724         * modules/vasnprintf-posix (Depends-on): Likewise.
49725         * modules/vasprintf-posix (Depends-on): Likewise.
49726         * modules/vfprintf-posix (Depends-on): Likewise.
49727         * modules/vsnprintf-posix (Depends-on): Likewise.
49728         * modules/vsprintf-posix (Depends-on): Likewise.
49729         * lib/frexp.c: Include isnand.h instead of isnan.h.
49730         (ISNAN): Set to isnand instead of isnan.
49731         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49732         (gl_isfinited): Use isnand instead of isnan.
49733         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49734         (gl_signbitd): Use isnand instead of isnan.
49735         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49736         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49737         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49738         (main): Use isnand instead of isnan.
49739         * tests/test-round1.c: Include isnand.h.
49740         (main): Use isnand instead of isnan.
49741         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49742         (ISNAN): Set to isnand instead of isnan.
49743         * tests/test-trunc1.c: Include isnand.h.
49744         (main): Use isnand instead of isnan.
49745         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49746         (equal): Use isnand instead of isnan.
49747         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49748         isnand-nolibm.
49749         * NEWS: Mention the change.
49750
49751 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49752             Bruno Haible  <bruno@clisp.org>
49753
49754         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49755         the GCC builtins for signbits are present and set
49756         REPLACE_SIGNBIT_USING_GCC if so.
49757         * lib/math.in.h (signbit): Define using GCC builtins if
49758         REPLACE_SIGNBIT_USING_GCC is set.
49759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49760         REPLACE_SIGNBIT_USING_GCC.
49761         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49762
49763 2008-01-25  Jim Meyering  <meyering@redhat.com>
49764
49765         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49766         * lib/poll.c: Include <config.h>, not "config.h".
49767         * tests/test-getaddrinfo.c: Likewise.
49768
49769 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49770
49771         * modules/sockets-tests: New file.
49772
49773 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49774
49775         * modules/sockets: New module, can be used to call WSA_Startup and
49776         WSA_Cleanup when needed.
49777
49778         * lib/sockets.h, lib/sockets.c: New files.
49779
49780         * m4/sockets.m4: New file.
49781
49782         * tests/test-sockets.c: New file.
49783
49784 2008-01-19  Bruno Haible  <bruno@clisp.org>
49785
49786         * doc/posix-headers: Renamed from doc/headers.
49787         * doc/posix-functions: Renamed from doc/functions.
49788         * doc/gnulib.texi: Update.
49789
49790 2008-01-19  Bruno Haible  <bruno@clisp.org>
49791
49792         * doc/glibc-functions/strcasestr.texi: Include contents of
49793         doc/functions/strcasestr.texi, fixing the list of platforms.
49794         * doc/functions/strcasestr.texi: Remove file.
49795
49796 2008-01-19  Bruno Haible  <bruno@clisp.org>
49797
49798         * doc/glibc-functions/memmem.texi: Include contents of
49799         doc/functions/memmem.texi.
49800         * doc/functions/memmem.texi: Remove file.
49801
49802 2008-01-18  Bruno Haible  <bruno@clisp.org>
49803
49804         * doc/glibc-functions/*.texi: New files.
49805         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49806         to use the new files.
49807
49808 2008-01-17  Bruno Haible  <bruno@clisp.org>
49809
49810         * tests/test-gethostname.c (main): Fix printf statement.
49811
49812 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49813
49814         * modules/gethostname-tests: New file.
49815
49816         * tests/test-gethostname.c: New file.
49817
49818 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49819
49820         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49821         used by the UNAME case.  Reported by Bruno Haible
49822         <bruno@clisp.org>.
49823
49824 2008-01-17  Eric Blake  <ebb9@byu.net>
49825
49826         Convert c-strcasestr to be more efficient.
49827         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49828         (Depends-on): Add c-strcase, remove malloca, strnlen.
49829         * tests/test-c-strcasestr.c (main): Enhance test.
49830         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49831
49832 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49833
49834         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49835         Use it in creating po/Makevars.
49836
49837 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49838
49839         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49840         Applications that requires it should initialize libgcrypt
49841         manually.
49842
49843 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49844
49845         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49846
49847 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49848
49849         Fix problem with getdate on mingw32 reported by Simon Josefsson
49850         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49851         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49852         tzname", when deciding whether to declare tzname.
49853         * lib/strftime.c (tzname): Likewise.
49854
49855 2008-01-15  Bruno Haible  <bruno@clisp.org>
49856
49857         Work around a MacOS X 10.5 bug in frexpl().
49858         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49859         * doc/functions/frexpl.texi: Document the bug.
49860         Reported by Elias Pipping <pipping@gentoo.org>.
49861
49862 2008-01-14  Eric Blake  <ebb9@byu.net>
49863
49864         Touch up previous patch.
49865         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49866         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49867
49868         Convert strcasestr module to use Two-Way algorithm.
49869         * modules/strcasestr-simple: New module, based on the old
49870         strcasestr, but with Two-Way rather than KMP.
49871         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49872         * lib/string.in.h (rpl_strcasestr): Declare.
49873         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49874         performance.
49875         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49876         * modules/string (Makefile.am): Support strcasestr.
49877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49878         * modules/strcasestr-tests (Depends-on): Check for alarm.
49879         * tests/test-strcasestr.c: Augment test.
49880         * lib/str-two-way.h: Clean up stray macro.
49881         * NEWS: Document new module.
49882         * MODULES.html.sh (string handling): Likewise.
49883         * doc/functions/strcasestr.texi: New file.
49884         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49885         here, since it is not a POSIX function.
49886
49887 2008-01-14  Colin Watson  <cjwatson@debian.org>
49888             Bruno Haible  <bruno@clisp.org>
49889
49890         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49891         works fine; if not, set REPLACE_STRSIGNAL.
49892         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49894         REPLACE_STRSIGNAL.
49895         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49896         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49897         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49898
49899 2008-01-14  Bruno Haible  <bruno@clisp.org>
49900
49901         * modules/strsignal (Include): Change to <string.h>.
49902
49903 2008-01-14  Colin Watson  <cjwatson@debian.org>
49904
49905         * modules/argp (Notice): Add a notice recommending to change
49906         XGETTEXT_OPTIONS.
49907         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49908
49909 2008-01-13  Colin Watson  <cjwatson@debian.org>
49910
49911         * modules/strsignal-tests: New file.
49912         * tests/test-strsignal.c: New file.
49913
49914         * lib/strsignal.c: New file, from glibc with modifications.
49915         * lib/siglist.h: New file, from glibc with modifications.
49916         * lib/string.in.h (strsignal): New declaration.
49917         * m4/strsignal.m4: New file.
49918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49919         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49920         * modules/strsignal: New file.
49921         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49922         HAVE_DECL_STRSIGNAL.
49923
49924 2008-01-13  Bruno Haible  <bruno@clisp.org>
49925
49926         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49927         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49928         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49929         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49930
49931 2008-01-13  Bruno Haible  <bruno@clisp.org>
49932
49933         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49934         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49935         * lib/argp.h (__attribute__): Likewise.
49936         * lib/c-stack.c (__attribute__): Likewise.
49937         * lib/error.h (__attribute__): Likewise.
49938         * lib/fts.c (__attribute__): Likewise.
49939         * lib/openat.h (__attribute__): Likewise.
49940         * lib/stdio.in.h (__attribute__): Likewise.
49941         * lib/string.in.h (__attribute__): Likewise.
49942         * lib/utimens.c (__attribute__): Likewise.
49943         * lib/vasnprintf.h (__attribute__): Likewise.
49944         * lib/xalloc.h (__attribute__): Likewise.
49945         * lib/xprintf.h (__attribute__): Likewise.
49946         * lib/xstrtol.h (__attribute__): Likewise.
49947         * lib/xvasprintf.h (__attribute__): Likewise.
49948
49949 2008-01-12  Bruno Haible  <bruno@clisp.org>
49950
49951         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49952         * doc/glibc-headers/a.out.texi: New file.
49953         * doc/glibc-headers/aliases.texi: New file.
49954         * doc/glibc-headers/alloca.texi: New file.
49955         * doc/glibc-headers/ar.texi: New file.
49956         * doc/glibc-headers/argp.texi: New file.
49957         * doc/glibc-headers/argz.texi: New file.
49958         * doc/glibc-headers/byteswap.texi: New file.
49959         * doc/glibc-headers/crypt.texi: New file.
49960         * doc/glibc-headers/endian.texi: New file.
49961         * doc/glibc-headers/envz.texi: New file.
49962         * doc/glibc-headers/err.texi: New file.
49963         * doc/glibc-headers/error.texi: New file.
49964         * doc/glibc-headers/execinfo.texi: New file.
49965         * doc/glibc-headers/fpu_control.texi: New file.
49966         * doc/glibc-headers/fstab.texi: New file.
49967         * doc/glibc-headers/fts.texi: New file.
49968         * doc/glibc-headers/getopt.texi: New file.
49969         * doc/glibc-headers/ieee754.texi: New file.
49970         * doc/glibc-headers/ifaddrs.texi: New file.
49971         * doc/glibc-headers/libintl.texi: New file.
49972         * doc/glibc-headers/mcheck.texi: New file.
49973         * doc/glibc-headers/mntent.texi: New file.
49974         * doc/glibc-headers/obstack.texi: New file.
49975         * doc/glibc-headers/paths.texi: New file.
49976         * doc/glibc-headers/printf.texi: New file.
49977         * doc/glibc-headers/pty.texi: New file.
49978         * doc/glibc-headers/resolv.texi: New file.
49979         * doc/glibc-headers/shadow.texi: New file.
49980         * doc/glibc-headers/sysexits.texi: New file.
49981         * doc/glibc-headers/ttyent.texi: New file.
49982
49983 2008-01-12  Jim Meyering  <meyering@redhat.com>
49984
49985         announce-gen: emit Gnulib's git-based version string.
49986         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49987         New option --gnulib-version=V, where V is expected to be
49988         the output of running git describe in the gnulib directory.
49989         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49990         not useful, and plan to stop publishing an xdelta file with each
49991         coreutils release.
49992
49993         * build-aux/announce-gen: Also check for lzma-compressed files.
49994
49995 2008-01-11  Bruno Haible  <bruno@clisp.org>
49996
49997         * tests/test-memmem.c (main): Increase maximum allowed time.
49998         * tests/test-strstr.c (main): Likewise.
49999
50000 2008-01-11  Bruno Haible  <bruno@clisp.org>
50001
50002         * doc/functions/memmem.texi: Add more precisions about platforms.
50003         * doc/functions/strstr.texi: Likewise.
50004
50005 2008-01-10  Eric Blake  <ebb9@byu.net>
50006
50007         * m4/strstr.m4: Delete cruft from copy-n-paste.
50008         Reported by Bruno Haible.
50009
50010 2008-01-10  Bruno Haible  <bruno@clisp.org>
50011
50012         Make c-strstr rely on strstr.
50013         * lib/c-strstr.c: Don't include str-kmp.h.
50014         (c_strstr): Define in terms of strstr.
50015         * modules/c-strstr (Files): Remove lib/str-kmp.h.
50016         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
50017
50018 2008-01-10  Bruno Haible  <bruno@clisp.org>
50019
50020         * doc/gnulib.texi (String Functions in C Locale): New section.
50021         * doc/c-ctype.texi: New file.
50022         * doc/c-strcase.texi: New file.
50023         * doc/c-strcaseeq.texi: New file.
50024         * doc/c-strcasestr.texi: New file.
50025         * doc/c-strstr.texi: New file.
50026         * doc/c-strtod.texi: New file.
50027         * doc/c-strtold.texi: New file.
50028
50029 2008-01-10  Eric Blake  <ebb9@byu.net>
50030
50031         * lib/relocatable.h: Fix a comment.
50032
50033 2008-01-10  Eric Blake  <ebb9@byu.net>
50034
50035         Share two-way algorithm.
50036         * lib/str-two-way.h: New file, merged from...
50037         * lib/memmem.c: ...here...
50038         * lib/strstr.c: ...and here.
50039         * modules/memmem (Files): Use it.
50040         * modules/strstr (Files): Likewise.
50041
50042         Avoid quadratic strstr implementations.
50043         * lib/strstr.c: New file.
50044         * m4/strstr.m4: Likewise.
50045         * modules/strstr: Likewise.
50046         * modules/strstr-tests: Likewise.
50047         * tests/test-strstr.c: Likewise.
50048         * lib/string.in.h (rpl_strstr): Declare.
50049         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
50050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
50051         * modules/string (Makefile.am): Likewise.
50052         * MODULES.html.sh (string handling): Mention new module.
50053         * doc/functions/strstr.texi (strstr): Document the bug.
50054
50055 2008-01-10  Bruno Haible  <bruno@clisp.org>
50056
50057         * lib/relocatable.h (relocate): State whether result is freshly
50058         allocated or not.
50059         * lib/relocatable.c (relocate): Return a freshly allocated string
50060         instead of a pointer to a privately held string.
50061         Reported by Sylvain Beucler <beuc@gnu.org>.
50062
50063 2008-01-10  Colin Watson  <cjwatson@debian.org>
50064
50065         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
50066         s/S_ISNLK/S_ISLNK/.
50067
50068 2008-01-09  Bruno Haible  <bruno@clisp.org>
50069
50070         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
50071         and other files.
50072         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
50073         if it's only a guess.
50074         * modules/memmem: Simplify by depending on memmem-simple.
50075
50076 2008-01-09  Bruno Haible  <bruno@clisp.org>
50077
50078         Work around OpenBSD 4.0 tdelete() bug.
50079         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
50080         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
50081         macros and don't redefine the enum values.
50082         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
50083         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
50084         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
50085
50086 2008-01-09  Bruno Haible  <bruno@clisp.org>
50087
50088         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
50089         (main): Don't perform the tests if setlocale did not install a UTF-8
50090         locale. Needed on OpenBSD 4.0.
50091         * modules/wcwidth-tests (Depends-on): Add localcharset.
50092
50093 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50094
50095         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
50096         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
50097         * NEWS: announce this.
50098         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
50099
50100 2008-01-09  Simon Josefsson  <simon@josefsson.org>
50101         and Eric Blake  <ebb9@byu.net>
50102
50103         Add memmem-simple module.
50104         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
50105         (gl_FUNC_MEMMEM): Separate performance from presence checks.
50106         * modules/memmem-simple: New file.
50107         * modules/memmem (Description): Tweak.
50108         * MODULES.html.sh (string handling): Mention new module.
50109         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
50110         addressed by memmem-simple.
50111         * NEWS: Document the difference.
50112
50113 2008-01-09  Eric Blake  <ebb9@byu.net>
50114
50115         Give gcc some memmem optimization hints.
50116         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
50117         (strcasestr): Declare as pure.
50118         * modules/memmem (Maintainer): Claim my implementation.
50119
50120 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50121
50122         Support AIX 6.1 and higher.
50123         * build-aux/config.libpath: Likewise.
50124         * build-aux/config.rpath: Likewise.
50125
50126 2008-01-08  Jim Meyering  <meyering@redhat.com>
50127             Bruno Haible  <bruno@clisp.org>
50128
50129         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
50130         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
50131         Reported by Peter Fales in
50132         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
50133
50134 2008-01-08  Bruno Haible  <bruno@clisp.org>
50135
50136         * modules/unictype/category-of (Depends-on): Add
50137         unictype/category-none.
50138         * modules/unictype/category-and-tests (Depends-on): Add
50139         unictype/category-{L,N,Lu,Nd}.
50140         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
50141         * modules/unictype/category-or-tests (Depends-on): Add
50142         unictype/category-{L,N}.
50143         * modules/unictype/category-name-tests (Depends-on): Add
50144         unictype/category-{Z,Nl}.
50145         Reported by Simon Josefsson.
50146
50147 2008-01-08  Bruno Haible  <bruno@clisp.org>
50148
50149         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
50150         convention better.
50151         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
50152         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
50153         Reported by Peter Miller <millerp@canb.auug.org.au>.
50154
50155 2008-01-08  Eric Blake  <ebb9@byu.net>
50156
50157         Rewrite memmem to guarantee linear complexity without malloc.
50158         * lib/memmem.c (memmem): Use Two-Way rather than
50159         Knuth-Morris-Pratt, to allow O(1) space usage.
50160         (critical_factorization, two_way_short_needle)
50161         (two_way_long_needle): New functions.
50162         (knuth_morris_pratt): Delete.
50163         * modules/memmem (Depends-on): No longer need malloca or stdbool.
50164         Add stdint.
50165         * tests/test-memmem.c (main): Add tests for periodic needle and
50166         sublinear performance.
50167         * doc/functions/memmem.texi (memmem): Document other deficiencies
50168         in cygwin and older glibc.
50169
50170 2008-01-08  Bruno Haible  <bruno@clisp.org>
50171
50172         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
50173         augmentation.
50174
50175 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
50176
50177         Add a configure time option: --disable-acl.
50178         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
50179         AC_ARG_ENABLE(acl).
50180
50181 2008-01-06  Simon Josefsson  <simon@josefsson.org>
50182
50183         * tests/test-localename.c: Don't include obsolete "setenv.h".
50184
50185         * modules/localename-tests (Depends-on): Need unsetenv.
50186
50187 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50188
50189         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
50190
50191 2008-01-06  Colin Watson  <cjwatson@debian.org>
50192
50193         * users.txt: Add man-db.
50194
50195 2008-01-07  Bruno Haible  <bruno@clisp.org>
50196
50197         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
50198         previous section name.
50199
50200 2008-01-07  Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/progname.c (set_program_name): Don't strip off a leading
50203         "lt-" prefix outside a .libs directory.
50204         Suggested by Paul Eggert.
50205
50206 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
50207             Bruno Haible  <bruno@clisp.org>
50208
50209         Improve memory cleanup in 'relocatable' module.
50210         * lib/relocatable.h (compute_curr_prefix): Change return type to
50211         'char *'.
50212         * lib/relocatable.c (compute_curr_prefix): Change return type to
50213         'char *'. Free curr_installdir after use.
50214         (relocate): Free curr_prefix_better after use.
50215         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
50216
50217 2008-01-01  Bruno Haible  <bruno@clisp.org>
50218
50219         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
50220         failure on older glibc systems.
50221         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50222
50223 2008-01-05  Eric Blake  <ebb9@byu.net>
50224
50225         Avoid quadratic system memmem.
50226         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
50227         Reported by Ralf Wildenhues.
50228
50229         Fix memmem test for mingw.
50230         * modules/memmem-tests (configure.ac): Check for alarm.
50231         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
50232         it.
50233         * doc/functions/memmem.texi: New file.
50234         * doc/gnulib.texi (Function Substitutes): Add memmem.
50235         Reported by Bruno Haible.
50236
50237 2008-01-04  Bruno Haible  <bruno@clisp.org>
50238
50239         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
50240         Require gl_HEADER_STRINGS_H_DEFAULTS, not
50241         gl_HEADER_STRING_H_DEFAULTS.
50242
50243 2008-01-04  Eric Blake  <ebb9@byu.net>
50244
50245         Shorten duration of memmem test.
50246         * tests/test-memmem.c (main): Use alarm to declare failure if test
50247         is taking too long.
50248         Reported by Ralf Wildenhues.
50249
50250 2007-12-21  Simon Josefsson  <simon@josefsson.org>
50251
50252         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
50253         string, needed by strerror.
50254
50255 2008-01-03  Colin Watson  <cjwatson@debian.org>
50256             Bruno Haible  <bruno@clisp.org>
50257
50258         * doc/gnulib-tool.texi (Localization): New section.
50259
50260 2008-01-02  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
50263         variables to 'unsigned char *' type.
50264         Reported by Paul Eggert.
50265
50266 2008-01-02  Jim Meyering  <jim@meyering.net>
50267
50268         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
50269
50270 2007-12-31  Jim Meyering  <jim@meyering.net>
50271
50272         Avoid use of private FTS type name.
50273         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
50274
50275 2007-12-30  Karl Berry  <karl@gnu.org>
50276
50277         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
50278         work around defect in Texinfo and/or the standalone Info browser.
50279
50280 2007-12-30  Bruno Haible  <bruno@clisp.org>
50281
50282         Unify 5 copies of the KMP code.
50283         * lib/str-kmp.h: New file.
50284         * lib/c-strcasestr.c: Include str-kmp.h.
50285         (knuth_morris_pratt): Remove function.
50286         (c_strcasestr): Update.
50287         * lib/c-strstr.c: Include str-kmp.h.
50288         (knuth_morris_pratt): Remove function.
50289         (c_strcasestr): Update.
50290         * lib/mbscasestr.c: Include str-kmp.h.
50291         (knuth_morris_pratt_unibyte): Remove function.
50292         * lib/mbsstr.c: Include str-kmp.h.
50293         (knuth_morris_pratt_unibyte): Remove function.
50294         * lib/strcasestr.c: Include str-kmp.h.
50295         (knuth_morris_pratt): Remove function.
50296         (strcasestr): Update.
50297         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
50298         * modules/c-strstr (Files): Likewise.
50299         * modules/mbscasestr (Files): Likewise.
50300         * modules/mbsstr (Files): Likewise.
50301         * modules/strcasestr (Files): Likewise.
50302         Suggested by Paul Eggert.
50303
50304 2007-12-30  Bruno Haible  <bruno@clisp.org>
50305
50306         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
50307         defined.
50308
50309 2007-12-30  Bruno Haible  <bruno@clisp.org>
50310
50311         * lib/xmalloca.h: Include xalloc.h.
50312         (xnmalloca): New macro.
50313
50314 2007-12-30  Bruno Haible  <bruno@clisp.org>
50315
50316         * lib/malloca.h (nmalloca): New macro.
50317         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
50318         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
50319         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
50320         knuth_morris_pratt_multibyte): Likewise.
50321         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
50322         knuth_morris_pratt_multibyte): Likewise.
50323         * lib/memmem.c (knuth_morris_pratt): Likewise.
50324         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
50325
50326 2007-12-25  Bruno Haible  <bruno@clisp.org>
50327
50328         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
50329         * lib/glob.c: Don't include openat.h.
50330         (link_exists2_p): Add back the code that deals with the
50331         !GLOB_ALTDIRFUNC case.
50332         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
50333         let it do the filename concatenation.
50334         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
50335         * modules/glob (Depends-on): Remove openat.
50336
50337 2007-12-31  Bruno Haible  <bruno@clisp.org>
50338
50339         * modules/dirfd (License): Change to LGPLv2+.
50340         Approved by Jim Meyering.
50341
50342 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50343
50344         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
50345         when multiplying M by sizeof (size_t).
50346
50347 2007-12-10  Martin Lambers  <marlam@marlam.de>
50348
50349         Override getpagesize on mingw.
50350         * lib/getpagesize.c: New file.
50351         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
50352         * modules/getpagesize (Files): Add lib/getpagesize.c.
50353         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
50354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50355         REPLACE_GETPAGESIZE.
50356         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
50357
50358 2007-12-25  Bruno Haible  <bruno@clisp.org>
50359
50360         * modules/localcharset (Notice): New field.
50361         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
50362         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50363
50364 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50365             Bruno Haible  <bruno@clisp.org>
50366
50367         Avoid using the syntax symbol() in formatted documentation.
50368         * MODULES.html.sh (func_module): When replacing symbol() with a
50369         hyperlink, remove the parentheses. Show an error if some remain.
50370         Recognize and render the '...' syntax.
50371         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
50372         Rework. Add paragraph about GCC's inlining.
50373         * doc/alloca.texi: Likewise.
50374         * doc/error.texi: Remove parentheses from symbol reference.
50375         * doc/gnulib-intro.texi: Likewise.
50376         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
50377         * modules/fnmatch (Description): Reword to say "the ... function".
50378         * modules/full-read (Description): Likewise.
50379         * modules/full-write (Description): Likewise.
50380         * modules/safe-read (Description): Likewise.
50381         * modules/safe-write (Description): Likewise.
50382         * modules/strchrnul (Description): Likewise.
50383         * modules/trim (Description): Likewise.
50384         * modules/error (Description): Remove parentheses from symbol
50385         references.
50386         * modules/verror (Description): Likewise.
50387         Reported by Karl Berry.
50388
50389 2007-12-25  Bruno Haible  <bruno@clisp.org>
50390
50391         Fixup after 2007-10-16 commit.
50392         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
50393
50394 2007-12-24  Bruno Haible  <bruno@clisp.org>
50395
50396         Make --enable-relocatable work with DESTDIR.
50397         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
50398         to compute installdir from destprog.
50399         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
50400         also set the RELOC_DESTDIR variable.
50401         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50402
50403 2007-12-24  Bruno Haible  <bruno@clisp.org>
50404
50405         Fix link error due to xalloc_die().
50406         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
50407         of xreadlink.
50408         * lib/relocwrapper.c: Update comments.
50409         * build-aux/install-reloc: Remove xreadlink.c from file list.
50410         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50411         xreadlink.c.
50412         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50413
50414 2007-12-24  Bruno Haible  <bruno@clisp.org>
50415
50416         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
50417         * lib/setenv.h: Remove file.
50418         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
50419         lib/setenv.h.
50420         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
50421         (Depends-on): Add stdlib.
50422         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
50423         gl_FUNC_UNSETENV.
50424         (Include): Replace setenv.h with <stdlib.h>.
50425         * modules/unsetenv: New file.
50426         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
50427         * lib/unsetenv.c: Include <stdlib.h> first.
50428         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
50429         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
50430         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
50431         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
50432         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
50433         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
50435         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50436         * doc/functions/unsetenv.texi: Update.
50437         * modules/xsetenv (Depends-on): Add unsetenv.
50438         * modules/getdate (Depends-on): Likewise.
50439         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
50440         * lib/xsetenv.c: Don't include setenv.h.
50441         * lib/getdate.y: Likewise.
50442         * lib/relocwrapper.c: Likewise.
50443         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
50444         (Depends-on): Add stdlib.
50445         * NEWS: Mention the changes.
50446         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50447
50448 2007-12-23  Bruno Haible  <bruno@clisp.org>
50449
50450         * lib/memmem.c (memmem): Use lowercase variable names. Tab
50451         indentation.
50452
50453 2007-12-23  Bruno Haible  <bruno@clisp.org>
50454
50455         * lib/c-strcasestr.c: Add more comments.
50456         * lib/c-strstr.c: Likewise.
50457         * lib/mbscasestr.c: Likewise.
50458         * lib/mbsstr.c: Likewise.
50459         * lib/strcasestr.c: Likewise.
50460         * lib/memmem.c: Likewise.
50461
50462 2007-12-23  Bruno Haible  <bruno@clisp.org>
50463
50464         * tests/test-memmem.c: Include <string.h> first.
50465
50466 2007-12-22  Bruno Haible  <bruno@clisp.org>
50467
50468         * gnulib-tool (func_create_testdir): Change $auxdir while generating
50469         the contents of $testsbase.
50470         Reported by Ralf Wildenhues.
50471
50472 2007-12-22  Bruno Haible  <bruno@clisp.org>
50473
50474         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
50475         two variables local_ldadd_before, local_ldadd_last.
50476
50477 2007-12-20  Eric Blake  <ebb9@byu.net>
50478
50479         Work around circular library issue when cross-compiling.
50480         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
50481         that progname.o does not need to pull in rpl_memcmp.
50482
50483 2007-12-19  Eric Blake  <ebb9@byu.net>
50484
50485         Fix memmem to avoid O(n^2) worst-case complexity.
50486         * lib/memmem.c (knuth_morris_pratt): New function.
50487         (memmem): Use it if first few naive iterations fail.
50488         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
50489         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
50490         * modules/memchr (License): Likewise.
50491         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
50492         malloca.
50493         * tests/test-memmem.c: Rewrite, borrowing ideas from
50494         test-mbsstr1.c; the old version wouldn't even compile!
50495         * modules/memmem-tests: New file.
50496         * lib/string.in.h (rpl_memmem): Add declaration.
50497         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
50498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
50499         REPLACE_MEMMEM.
50500
50501 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50502
50503         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
50504         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
50505         before any system include files, and undef after them all.  This
50506         should fix a problem on VMS reported by John E. Malmberg in
50507         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
50508
50509 2007-12-17  Eric Blake  <ebb9@byu.net>
50510
50511         Revert addition of verify, for BSD/OS.
50512         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
50513         can't handle large files, for the sake of obsolete platforms.
50514         * modules/fseeko (Depends-on): Remove verify.
50515         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
50516         * doc/functions/ftello.texi (ftello): Likewise.
50517         * doc/functions/fgetpos.texi (fgetpos): Likewise.
50518         Reported by Larry Jones.
50519
50520 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
50521
50522         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
50523         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
50524
50525 2007-12-17  Jim Meyering  <meyering@redhat.com>
50526
50527         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
50528         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
50529         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
50530         * modules/getcwd (Depends-on): Add openat.
50531         Reported by Petr Salinger.
50532
50533 2007-12-17  Bruno Haible  <bruno@clisp.org>
50534
50535         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
50536         avoid a segmentation fault of the configure test on x86_64 systems.
50537
50538 2007-12-15  Jim Meyering  <meyering@redhat.com>
50539
50540         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
50541
50542 2007-12-13  Eric Blake  <ebb9@byu.net>
50543
50544         Another fseek test.
50545         * tests/test-fseek.c (main): Also test ungetc handling.
50546         * tests/test-fseeko.c (main): Likewise.
50547         * modules/fseeko (Depends-on): Add verify.
50548         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
50549         large.
50550         Reported by Larry Jones.
50551
50552         Fix fseeko on mingw.
50553         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
50554         seek.
50555
50556         Beef up fseek tests.
50557         * tests/test-fseek.c (main): Also test eof handling.
50558         * tests/test-fseeko.c (main): Likewise.
50559         Reported by Larry Jones.
50560
50561 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
50562
50563         Fix fseeko on BSD-based platforms.
50564         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
50565         successful seek.
50566
50567 2007-12-12  Eric Blake  <ebb9@byu.net>
50568
50569         Allow circular dependency of separate libtests.a
50570         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
50571         when use_libtests.
50572
50573 2007-12-11  Eric Blake  <ebb9@byu.net>
50574
50575         Fix bug with -0.0L in previous patch.
50576         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
50577         * tests/test-isnan.c (main): Also test on zeroes.
50578         * tests/test-isnanf.c (main): Likewise.
50579         * tests/test-isnanl.h (main): Likewise.
50580
50581         Detect pseudo-denormals on x86 even when cross-compiling.
50582         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
50583         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
50584         invalid bit patterns that happen to satisfy ==.
50585
50586         Avoid link failures with separate libtests.a.
50587         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
50588         last, to satisfy circular dependencies.
50589
50590 2007-12-11  Eric Blake  <ebb9@byu.net>
50591         and Bruno Haible  <bruno@clisp.org>
50592
50593         Fix OpenBSD 4.0 <float.h> handling of long double.
50594         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
50595         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
50596         * doc/headers/float.texi (float.h): Document OpenBSD bug.
50597
50598 2007-12-11  Jim Meyering  <meyering@redhat.com>
50599
50600         * users.txt: Add libvirt.
50601
50602         Support versions of autoconf prior to 2.59c.
50603         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
50604         if it is not already defined.
50605
50606 2007-12-09  Bruno Haible  <bruno@clisp.org>
50607
50608         Let 'gnulib-tool --import' collect sources needed for the tests in
50609         tests/ rather than in lib/.
50610         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
50611         argument. If true, add rules to generate libtests.a, and put libtests.a
50612         into $(LDADD). Consider source files in subdirectories and set
50613         uses_subdirs.
50614         (func_emit_initmacro_start, func_emit_initmacro_end,
50615         func_emit_initmacro_done): Pass all arguments explicitly.
50616         (func_import): Determine two module lists main_modules,
50617         testsrelated_modules. Determine use_libtests. Determine two variables
50618         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
50619         instead of just sed_transform_lib_file. Determine two variables
50620         main_files and testsrelated_files. Compute 'files' as the union of
50621         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
50622         func_add_or_update. In the generated gnulib-comp.m4, collect the
50623         object files for tests/ in different variables than those for lib/.
50624         Substitute LIBTESTS_LIBDEPS.
50625         (func_create_testdir): Combine the uses_subdirs results from
50626         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
50627
50628 2007-12-09  Bruno Haible  <bruno@clisp.org>
50629
50630         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
50631         the build-aux directory.
50632
50633 2007-12-09  Bruno Haible  <bruno@clisp.org>
50634
50635         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
50636         introduced on 2006-09-09.
50637
50638 2007-12-07  Jim Meyering  <meyering@redhat.com>
50639
50640         Let these macros work also with autoconf-2.59.
50641         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
50642         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
50643         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50644
50645 2007-12-06  Jim Meyering  <meyering@redhat.com>
50646
50647         Avoid a configure-time syntax error in gl_FUNC_ACL.
50648         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
50649         function in each branch, before testing the cache variable.
50650
50651 2007-12-04  Eric Blake  <ebb9@byu.net>
50652
50653         Make scripts executable.
50654         * build-aux/config.guess: Add execute permissions.
50655         * build-aux/config.sub: Likewise.
50656         * build-aux/gendocs.sh: Likewise.
50657
50658         Fix frexp on mingw.
50659         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
50660         cross-compiling.
50661         * doc/functions/frexp.texi (frexp): Document the bug.
50662
50663         Make cygwin fseeko check more reliable.
50664         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50665         version numbers, rather than unrelated feature check.
50666         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50667         * doc/functions/ftello.texi (ftello): Likewise.
50668         Reported by Bruno Haible.
50669
50670         * m4/strerror.m4: Bump version number.
50671
50672 2007-12-03  Bruno Haible  <bruno@clisp.org>
50673
50674         * doc/functions/mprotect.texi: Mention the mingw problem.
50675
50676 2007-12-03  Eric Blake  <ebb9@byu.net>
50677
50678         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50679         REPLACE_STRERROR is initialized before this macro.
50680
50681 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50684         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50685         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50686         put -lsec in even for programs other than 'ls'.  This fixes a problem
50687         for gettext reported by Bruno Haible in
50688         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50689         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50690         Add support for Solaris 10.  This isn't efficient, but should get the
50691         job done for now.
50692
50693 2007-12-03  James Youngman  <jay@gnu.org>
50694
50695         * doc/regexprops-generic.texi: change "an close-group" to "a
50696         close-group" and "illegal" to "not allowed".
50697
50698 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50699
50700         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50701         pr_byname.h. Needed for the rare case when the maintainer has done
50702         "make maintainer-clean" in the source directory and then attempts a
50703         build outside the source directory.
50704         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50705         scripts_byname.h.
50706
50707 2007-12-02  Martin Lambers <marlam@marlam.de>
50708             Bruno Haible  <bruno@clisp.org>
50709
50710         * lib/getpagesize.h: Remove file.
50711         * lib/unistd.in.h: Include declaration of getpagesize here.
50712         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50713         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50714         HAVE_SYS_PARAM_H.
50715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50716         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50717         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50718         (Depends-on): Add unistd.
50719         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50720         (Include): Use <unistd.h> instead of getpagesize.h.
50721         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50722         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50723         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50724         gl_GETPAGESIZE invocation, already handled by module dependency.
50725         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50726
50727 2007-12-02  Bruno Haible  <bruno@clisp.org>
50728
50729         * modules/strings-tests: New file.
50730         * tests/test-strings.c: New file.
50731
50732         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50733         * lib/strings.in.h: New file.
50734         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50735         * m4/strings_h.m4: New file.
50736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50737         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50738         * modules/strings: New file.
50739         * modules/string (Makefile.am): Update.
50740         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50741         Reported by Karl Berry.
50742
50743 2007-12-01  Eric Blake  <ebb9@byu.net>
50744
50745         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50746         accomodate fix in cygwin 1.5.25.
50747
50748 2007-12-01  Jim Meyering  <meyering@redhat.com>
50749
50750         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50751         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50752         that would inhibit utf8-optimization of a regexp containing line-
50753         or buffer-anchors, e.g., `^', `$'.
50754
50755 2007-11-30  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50758         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50759         glthread_recursive_lock_init.
50760         * lib/lock.c (glthread_recursive_lock_init)
50761         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50762         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50763
50764 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50765
50766         New function qset_acl, like set_acl but with syscall semantics.
50767         * lib/acl.h (qset_acl): New decl.
50768         * lib/acl.c (qset_acl): New function.
50769         (set_acl): Use new function.  Use more-consistent diagnostics.
50770
50771 2007-11-28  Jim Meyering  <meyering@redhat.com>
50772
50773         * modules/physmem (License): Change from GPL to LGPLv2+.
50774
50775 2007-11-26  Bruno Haible  <bruno@clisp.org>
50776
50777         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50778         'long double' type has excess precision.
50779         Reported by Jim Meyering in
50780         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50781
50782 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50783
50784         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50785         Sync from <http://gnu.org/licenses>.
50786         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50787         with license text from same location.
50788         * doc/maintain.texi, doc/standards.texi:  Sync from
50789         <http://savannah.gnu.org/projects/gnustandards>.
50790
50791 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50792         and Jim Meyering  <meyering@redhat.com>
50793
50794         Adjust getdate' grammar to accept a slightly more regular language.
50795         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50796         Before, the former was rejected.
50797         * lib/getdate.y (digits_to_date_time): New function, factored
50798         out of ...
50799         (number): ...here.  Just call digits_to_date_time.
50800         (hybrid): New non-terminal to handle an <unsigned number,
50801         signed relative offset> sequence consistently.
50802
50803 2007-11-18  Jim Meyering  <meyering@redhat.com>
50804
50805         Pull my changes from coreutils:
50806         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50807         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50808         use of $gnulib_tool_option_extras, so that it's separated from the
50809         preceding argument.
50810
50811         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50812         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50813         parent destination directories before copying a file into place.
50814
50815 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50816
50817         bootstrap: work also with 4-argument variant of AC_INIT
50818         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50819
50820 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50821
50822         Port test-getaddrinfo to Solaris.
50823         Problem reported by Bruno Haible in
50824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50825         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50826         explanation of setting 'hints'.
50827         Don't reject an implementation merely because it returns EAI_SERVICE.
50828         (EAI_SERVICE): Define to 0 if not defined.
50829
50830 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50831
50832         The license of gnu-make and posix-shell is now "GPLed build tool".
50833         * modules/gnu-make (License): Likewise.
50834         * modules/posix-shell (License): Likewise.
50835
50836         New module posix-shell, for determining a POSIX shell
50837         or perhaps something that is close enough to a POSIX shell.
50838         * m4/posix-shell.m4: New file.
50839         * modules/posix-shell: New file.
50840
50841         * MODULES.html.sh: Mention new module.
50842
50843         New module gnu-make, for determining whether we're using GNU Make.
50844         * m4/gnu-make.m4: New file.
50845         * modules/gnu-make: New file.
50846         * MODULES.html.sh: Mention new module.
50847
50848 2007-11-14  Jim Meyering  <meyering@redhat.com>
50849
50850         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50851         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50852         use this macro to create a function _definition_.
50853         Remove useless "#undef ARGMATCH_DIE".
50854
50855 2007-11-14  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/config.charset: Update for OpenBSD 4.1.
50858         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50859
50860 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50861
50862         Document 64-bit #if problems in stdint.texi.
50863         * doc/headers/stdint.texi (stdint.h): Mention problems with
50864         64-bit-#if, and how to work around them.
50865
50866         Don't insist on 'long long int' support in the preprocessor.  It
50867         breaks too many things.  For example, PRIdMAX still uses a 'long
50868         long int' format with the latest Sun compiler, even though
50869         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50870         preprocessor problem.  This causes the latest coreutils to dump
50871         core on Solaris 10 sparc with the Sun C compiler.
50872         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50873         the troublesome expressions at configure-time, not at #if-time.
50874         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50875         preprocessor.
50876         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50877         compile-time C checks, done at 'configure'-time.
50878         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50879         * modules/inttypes (Makefile): Substitute the new symbols that
50880         gl_INTTYPES_H now generates.
50881         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50882
50883 2007-11-12  Bruno Haible  <bruno@clisp.org>
50884
50885         Tests for Unicode character classification functions.
50886
50887         * modules/unictype/bidicategory-byname-tests: New file.
50888         * modules/unictype/bidicategory-name-tests: New file.
50889         * modules/unictype/bidicategory-of-tests: New file.
50890         * modules/unictype/bidicategory-test-tests: New file.
50891         * modules/unictype/block-list-tests: New file.
50892         * modules/unictype/block-of-tests: New file.
50893         * modules/unictype/block-test-tests: New file.
50894         * modules/unictype/category-C-tests: New file.
50895         * modules/unictype/category-Cc-tests: New file.
50896         * modules/unictype/category-Cf-tests: New file.
50897         * modules/unictype/category-Cn-tests: New file.
50898         * modules/unictype/category-Co-tests: New file.
50899         * modules/unictype/category-Cs-tests: New file.
50900         * modules/unictype/category-L-tests: New file.
50901         * modules/unictype/category-Ll-tests: New file.
50902         * modules/unictype/category-Lm-tests: New file.
50903         * modules/unictype/category-Lo-tests: New file.
50904         * modules/unictype/category-Lt-tests: New file.
50905         * modules/unictype/category-Lu-tests: New file.
50906         * modules/unictype/category-M-tests: New file.
50907         * modules/unictype/category-Mc-tests: New file.
50908         * modules/unictype/category-Me-tests: New file.
50909         * modules/unictype/category-Mn-tests: New file.
50910         * modules/unictype/category-N-tests: New file.
50911         * modules/unictype/category-Nd-tests: New file.
50912         * modules/unictype/category-Nl-tests: New file.
50913         * modules/unictype/category-No-tests: New file.
50914         * modules/unictype/category-P-tests: New file.
50915         * modules/unictype/category-Pc-tests: New file.
50916         * modules/unictype/category-Pd-tests: New file.
50917         * modules/unictype/category-Pe-tests: New file.
50918         * modules/unictype/category-Pf-tests: New file.
50919         * modules/unictype/category-Pi-tests: New file.
50920         * modules/unictype/category-Po-tests: New file.
50921         * modules/unictype/category-Ps-tests: New file.
50922         * modules/unictype/category-S-tests: New file.
50923         * modules/unictype/category-Sc-tests: New file.
50924         * modules/unictype/category-Sk-tests: New file.
50925         * modules/unictype/category-Sm-tests: New file.
50926         * modules/unictype/category-So-tests: New file.
50927         * modules/unictype/category-Z-tests: New file.
50928         * modules/unictype/category-Zl-tests: New file.
50929         * modules/unictype/category-Zp-tests: New file.
50930         * modules/unictype/category-Zs-tests: New file.
50931         * modules/unictype/category-and-not-tests: New file.
50932         * modules/unictype/category-and-tests: New file.
50933         * modules/unictype/category-byname-tests: New file.
50934         * modules/unictype/category-name-tests: New file.
50935         * modules/unictype/category-none-tests: New file.
50936         * modules/unictype/category-of-tests: New file.
50937         * modules/unictype/category-or-tests: New file.
50938         * modules/unictype/category-test-withtable-tests: New file.
50939         * modules/unictype/combining-class-tests: New file.
50940         * modules/unictype/ctype-alnum-tests: New file.
50941         * modules/unictype/ctype-alpha-tests: New file.
50942         * modules/unictype/ctype-blank-tests: New file.
50943         * modules/unictype/ctype-cntrl-tests: New file.
50944         * modules/unictype/ctype-digit-tests: New file.
50945         * modules/unictype/ctype-graph-tests: New file.
50946         * modules/unictype/ctype-lower-tests: New file.
50947         * modules/unictype/ctype-print-tests: New file.
50948         * modules/unictype/ctype-punct-tests: New file.
50949         * modules/unictype/ctype-space-tests: New file.
50950         * modules/unictype/ctype-upper-tests: New file.
50951         * modules/unictype/ctype-xdigit-tests: New file.
50952         * modules/unictype/decimal-digit-tests: New file.
50953         * modules/unictype/digit-tests: New file.
50954         * modules/unictype/mirror-tests: New file.
50955         * modules/unictype/numeric-tests: New file.
50956         * modules/unictype/property-alphabetic-tests: New file.
50957         * modules/unictype/property-ascii-hex-digit-tests: New file.
50958         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50959         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50960         * modules/unictype/property-bidi-block-separator-tests: New file.
50961         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50962         * modules/unictype/property-bidi-common-separator-tests: New file.
50963         * modules/unictype/property-bidi-control-tests: New file.
50964         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50965         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50966         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50967         * modules/unictype/property-bidi-european-digit-tests: New file.
50968         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50969         * modules/unictype/property-bidi-left-to-right-tests: New file.
50970         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50971         * modules/unictype/property-bidi-other-neutral-tests: New file.
50972         * modules/unictype/property-bidi-pdf-tests: New file.
50973         * modules/unictype/property-bidi-segment-separator-tests: New file.
50974         * modules/unictype/property-bidi-whitespace-tests: New file.
50975         * modules/unictype/property-byname-tests: New file.
50976         * modules/unictype/property-combining-tests: New file.
50977         * modules/unictype/property-composite-tests: New file.
50978         * modules/unictype/property-currency-symbol-tests: New file.
50979         * modules/unictype/property-dash-tests: New file.
50980         * modules/unictype/property-decimal-digit-tests: New file.
50981         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50982         * modules/unictype/property-deprecated-tests: New file.
50983         * modules/unictype/property-diacritic-tests: New file.
50984         * modules/unictype/property-extender-tests: New file.
50985         * modules/unictype/property-format-control-tests: New file.
50986         * modules/unictype/property-grapheme-base-tests: New file.
50987         * modules/unictype/property-grapheme-extend-tests: New file.
50988         * modules/unictype/property-grapheme-link-tests: New file.
50989         * modules/unictype/property-hex-digit-tests: New file.
50990         * modules/unictype/property-hyphen-tests: New file.
50991         * modules/unictype/property-id-continue-tests: New file.
50992         * modules/unictype/property-id-start-tests: New file.
50993         * modules/unictype/property-ideographic-tests: New file.
50994         * modules/unictype/property-ids-binary-operator-tests: New file.
50995         * modules/unictype/property-ids-trinary-operator-tests: New file.
50996         * modules/unictype/property-ignorable-control-tests: New file.
50997         * modules/unictype/property-iso-control-tests: New file.
50998         * modules/unictype/property-join-control-tests: New file.
50999         * modules/unictype/property-left-of-pair-tests: New file.
51000         * modules/unictype/property-line-separator-tests: New file.
51001         * modules/unictype/property-logical-order-exception-tests: New file.
51002         * modules/unictype/property-lowercase-tests: New file.
51003         * modules/unictype/property-math-tests: New file.
51004         * modules/unictype/property-non-break-tests: New file.
51005         * modules/unictype/property-not-a-character-tests: New file.
51006         * modules/unictype/property-numeric-tests: New file.
51007         * modules/unictype/property-other-alphabetic-tests: New file.
51008         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
51009         * modules/unictype/property-other-grapheme-extend-tests: New file.
51010         * modules/unictype/property-other-id-continue-tests: New file.
51011         * modules/unictype/property-other-id-start-tests: New file.
51012         * modules/unictype/property-other-lowercase-tests: New file.
51013         * modules/unictype/property-other-math-tests: New file.
51014         * modules/unictype/property-other-uppercase-tests: New file.
51015         * modules/unictype/property-paired-punctuation-tests: New file.
51016         * modules/unictype/property-paragraph-separator-tests: New file.
51017         * modules/unictype/property-pattern-syntax-tests: New file.
51018         * modules/unictype/property-pattern-white-space-tests: New file.
51019         * modules/unictype/property-private-use-tests: New file.
51020         * modules/unictype/property-punctuation-tests: New file.
51021         * modules/unictype/property-quotation-mark-tests: New file.
51022         * modules/unictype/property-radical-tests: New file.
51023         * modules/unictype/property-sentence-terminal-tests: New file.
51024         * modules/unictype/property-soft-dotted-tests: New file.
51025         * modules/unictype/property-space-tests: New file.
51026         * modules/unictype/property-terminal-punctuation-tests: New file.
51027         * modules/unictype/property-test-tests: New file.
51028         * modules/unictype/property-titlecase-tests: New file.
51029         * modules/unictype/property-unassigned-code-value-tests: New file.
51030         * modules/unictype/property-unified-ideograph-tests: New file.
51031         * modules/unictype/property-uppercase-tests: New file.
51032         * modules/unictype/property-variation-selector-tests: New file.
51033         * modules/unictype/property-white-space-tests: New file.
51034         * modules/unictype/property-xid-continue-tests: New file.
51035         * modules/unictype/property-xid-start-tests: New file.
51036         * modules/unictype/property-zero-width-tests: New file.
51037         * modules/unictype/scripts-tests: New file.
51038         * modules/unictype/syntax-c-ident-tests: New file.
51039         * modules/unictype/syntax-c-whitespace-tests: New file.
51040         * modules/unictype/syntax-java-ident-tests: New file.
51041         * modules/unictype/syntax-java-whitespace-tests: New file.
51042         * tests/unictype/test-bidi_byname.c: New file.
51043         * tests/unictype/test-bidi_name.c: New file.
51044         * tests/unictype/test-bidi_of.c: New file.
51045         * tests/unictype/test-bidi_test.c: New file.
51046         * tests/unictype/test-block_list.c: New file.
51047         * tests/unictype/test-block_of.c: New file.
51048         * tests/unictype/test-block_test.c: New file.
51049         * tests/unictype/test-categ_and.c: New file.
51050         * tests/unictype/test-categ_and_not.c: New file.
51051         * tests/unictype/test-categ_byname.c: New file.
51052         * tests/unictype/test-categ_name.c: New file.
51053         * tests/unictype/test-categ_none.c: New file.
51054         * tests/unictype/test-categ_of.c: New file.
51055         * tests/unictype/test-categ_or.c: New file.
51056         * tests/unictype/test-categ_test_withtable.c: New file.
51057         * tests/unictype/test-combining.c: New file.
51058         * tests/unictype/test-decdigit.c: New file.
51059         * tests/unictype/test-digit.c: New file.
51060         * tests/unictype/test-mirror.c: New file.
51061         * tests/unictype/test-numeric.c: New file.
51062         * tests/unictype/test-pr_byname.c: New file.
51063         * tests/unictype/test-pr_test.c: New file.
51064         * tests/unictype/test-predicate-part1.h: New file.
51065         * tests/unictype/test-predicate-part2.h: New file.
51066         * tests/unictype/test-scripts.c: New file.
51067         * tests/unictype/test-sy_c_ident.c: New file.
51068         * tests/unictype/test-sy_java_ident.c: New file.
51069
51070         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
51071         for Unicode 5.0.0.
51072         * tests/unictype/test-categ_Cc.c: Likewise.
51073         * tests/unictype/test-categ_Cf.c: Likewise.
51074         * tests/unictype/test-categ_Cn.c: Likewise.
51075         * tests/unictype/test-categ_Co.c: Likewise.
51076         * tests/unictype/test-categ_Cs.c: Likewise.
51077         * tests/unictype/test-categ_L.c: Likewise.
51078         * tests/unictype/test-categ_Ll.c: Likewise.
51079         * tests/unictype/test-categ_Lm.c: Likewise.
51080         * tests/unictype/test-categ_Lo.c: Likewise.
51081         * tests/unictype/test-categ_Lt.c: Likewise.
51082         * tests/unictype/test-categ_Lu.c: Likewise.
51083         * tests/unictype/test-categ_M.c: Likewise.
51084         * tests/unictype/test-categ_Mc.c: Likewise.
51085         * tests/unictype/test-categ_Me.c: Likewise.
51086         * tests/unictype/test-categ_Mn.c: Likewise.
51087         * tests/unictype/test-categ_N.c: Likewise.
51088         * tests/unictype/test-categ_Nd.c: Likewise.
51089         * tests/unictype/test-categ_Nl.c: Likewise.
51090         * tests/unictype/test-categ_No.c: Likewise.
51091         * tests/unictype/test-categ_P.c: Likewise.
51092         * tests/unictype/test-categ_Pc.c: Likewise.
51093         * tests/unictype/test-categ_Pd.c: Likewise.
51094         * tests/unictype/test-categ_Pe.c: Likewise.
51095         * tests/unictype/test-categ_Pf.c: Likewise.
51096         * tests/unictype/test-categ_Pi.c: Likewise.
51097         * tests/unictype/test-categ_Po.c: Likewise.
51098         * tests/unictype/test-categ_Ps.c: Likewise.
51099         * tests/unictype/test-categ_S.c: Likewise.
51100         * tests/unictype/test-categ_Sc.c: Likewise.
51101         * tests/unictype/test-categ_Sk.c: Likewise.
51102         * tests/unictype/test-categ_Sm.c: Likewise.
51103         * tests/unictype/test-categ_So.c: Likewise.
51104         * tests/unictype/test-categ_Z.c: Likewise.
51105         * tests/unictype/test-categ_Zl.c: Likewise.
51106         * tests/unictype/test-categ_Zp.c: Likewise.
51107         * tests/unictype/test-categ_Zs.c: Likewise.
51108         * tests/unictype/test-ctype_alnum.c: Likewise.
51109         * tests/unictype/test-ctype_alpha.c: Likewise.
51110         * tests/unictype/test-ctype_blank.c: Likewise.
51111         * tests/unictype/test-ctype_cntrl.c: Likewise.
51112         * tests/unictype/test-ctype_digit.c: Likewise.
51113         * tests/unictype/test-ctype_graph.c: Likewise.
51114         * tests/unictype/test-ctype_lower.c: Likewise.
51115         * tests/unictype/test-ctype_print.c: Likewise.
51116         * tests/unictype/test-ctype_punct.c: Likewise.
51117         * tests/unictype/test-ctype_space.c: Likewise.
51118         * tests/unictype/test-ctype_upper.c: Likewise.
51119         * tests/unictype/test-ctype_xdigit.c: Likewise.
51120         * tests/unictype/test-decdigit.h: Likewise.
51121         * tests/unictype/test-digit.h: Likewise.
51122         * tests/unictype/test-numeric.h: Likewise.
51123         * tests/unictype/test-pr_alphabetic.c: Likewise.
51124         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
51125         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
51126         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
51127         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
51128         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
51129         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
51130         * tests/unictype/test-pr_bidi_control.c: Likewise.
51131         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
51132         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
51133         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
51134         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
51135         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
51136         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
51137         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
51138         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
51139         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
51140         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
51141         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
51142         * tests/unictype/test-pr_combining.c: Likewise.
51143         * tests/unictype/test-pr_composite.c: Likewise.
51144         * tests/unictype/test-pr_currency_symbol.c: Likewise.
51145         * tests/unictype/test-pr_dash.c: Likewise.
51146         * tests/unictype/test-pr_decimal_digit.c: Likewise.
51147         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
51148         * tests/unictype/test-pr_deprecated.c: Likewise.
51149         * tests/unictype/test-pr_diacritic.c: Likewise.
51150         * tests/unictype/test-pr_extender.c: Likewise.
51151         * tests/unictype/test-pr_format_control.c: Likewise.
51152         * tests/unictype/test-pr_grapheme_base.c: Likewise.
51153         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
51154         * tests/unictype/test-pr_grapheme_link.c: Likewise.
51155         * tests/unictype/test-pr_hex_digit.c: Likewise.
51156         * tests/unictype/test-pr_hyphen.c: Likewise.
51157         * tests/unictype/test-pr_id_continue.c: Likewise.
51158         * tests/unictype/test-pr_id_start.c: Likewise.
51159         * tests/unictype/test-pr_ideographic.c: Likewise.
51160         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
51161         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
51162         * tests/unictype/test-pr_ignorable_control.c: Likewise.
51163         * tests/unictype/test-pr_iso_control.c: Likewise.
51164         * tests/unictype/test-pr_join_control.c: Likewise.
51165         * tests/unictype/test-pr_left_of_pair.c: Likewise.
51166         * tests/unictype/test-pr_line_separator.c: Likewise.
51167         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
51168         * tests/unictype/test-pr_lowercase.c: Likewise.
51169         * tests/unictype/test-pr_math.c: Likewise.
51170         * tests/unictype/test-pr_non_break.c: Likewise.
51171         * tests/unictype/test-pr_not_a_character.c: Likewise.
51172         * tests/unictype/test-pr_numeric.c: Likewise.
51173         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
51174         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
51175         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
51176         * tests/unictype/test-pr_other_id_continue.c: Likewise.
51177         * tests/unictype/test-pr_other_id_start.c: Likewise.
51178         * tests/unictype/test-pr_other_lowercase.c: Likewise.
51179         * tests/unictype/test-pr_other_math.c: Likewise.
51180         * tests/unictype/test-pr_other_uppercase.c: Likewise.
51181         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
51182         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
51183         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
51184         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
51185         * tests/unictype/test-pr_private_use.c: Likewise.
51186         * tests/unictype/test-pr_punctuation.c: Likewise.
51187         * tests/unictype/test-pr_quotation_mark.c: Likewise.
51188         * tests/unictype/test-pr_radical.c: Likewise.
51189         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
51190         * tests/unictype/test-pr_soft_dotted.c: Likewise.
51191         * tests/unictype/test-pr_space.c: Likewise.
51192         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
51193         * tests/unictype/test-pr_titlecase.c: Likewise.
51194         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
51195         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
51196         * tests/unictype/test-pr_uppercase.c: Likewise.
51197         * tests/unictype/test-pr_variation_selector.c: Likewise.
51198         * tests/unictype/test-pr_white_space.c: Likewise.
51199         * tests/unictype/test-pr_xid_continue.c: Likewise.
51200         * tests/unictype/test-pr_xid_start.c: Likewise.
51201         * tests/unictype/test-pr_zero_width.c: Likewise.
51202         * tests/unictype/test-sy_c_whitespace.c: Likewise.
51203         * tests/unictype/test-sy_java_whitespace.c: Likewise.
51204
51205 2007-11-12  Bruno Haible  <bruno@clisp.org>
51206
51207         Unicode character classification functions.
51208         * lib/unictype.h: New file.
51209         * modules/unictype/base: New file.
51210         * modules/unictype/category-L: New file.
51211         * modules/unictype/category-Lu: New file.
51212         * modules/unictype/category-Ll: New file.
51213         * modules/unictype/category-Lt: New file.
51214         * modules/unictype/category-Lm: New file.
51215         * modules/unictype/category-Lo: New file.
51216         * modules/unictype/category-M: New file.
51217         * modules/unictype/category-Mn: New file.
51218         * modules/unictype/category-Mc: New file.
51219         * modules/unictype/category-Me: New file.
51220         * modules/unictype/category-N: New file.
51221         * modules/unictype/category-Nd: New file.
51222         * modules/unictype/category-Nl: New file.
51223         * modules/unictype/category-No: New file.
51224         * modules/unictype/category-P: New file.
51225         * modules/unictype/category-Pc: New file.
51226         * modules/unictype/category-Pd: New file.
51227         * modules/unictype/category-Ps: New file.
51228         * modules/unictype/category-Pe: New file.
51229         * modules/unictype/category-Pi: New file.
51230         * modules/unictype/category-Pf: New file.
51231         * modules/unictype/category-Po: New file.
51232         * modules/unictype/category-S: New file.
51233         * modules/unictype/category-Sm: New file.
51234         * modules/unictype/category-Sc: New file.
51235         * modules/unictype/category-Sk: New file.
51236         * modules/unictype/category-So: New file.
51237         * modules/unictype/category-Z: New file.
51238         * modules/unictype/category-Zs: New file.
51239         * modules/unictype/category-Zl: New file.
51240         * modules/unictype/category-Zp: New file.
51241         * modules/unictype/category-C: New file.
51242         * modules/unictype/category-Cc: New file.
51243         * modules/unictype/category-Cf: New file.
51244         * modules/unictype/category-Cs: New file.
51245         * modules/unictype/category-Co: New file.
51246         * modules/unictype/category-Cn: New file.
51247         * modules/unictype/category-or: New file.
51248         * modules/unictype/category-of: New file.
51249         * modules/unictype/category-test: New file.
51250         * modules/unictype/category-test-withtable: New file.
51251         * modules/unictype/category-byname: New file.
51252         * modules/unictype/category-none: New file.
51253         * modules/unictype/category-and: New file.
51254         * modules/unictype/category-and-not: New file.
51255         * modules/unictype/category-name: New file.
51256         * modules/unictype/combining-class: New file.
51257         * modules/unictype/category-all: New file.
51258         * modules/unictype/bidicategory-all: New file.
51259         * modules/unictype/bidicategory-byname: New file.
51260         * modules/unictype/bidicategory-name: New file.
51261         * modules/unictype/bidicategory-of: New file.
51262         * modules/unictype/bidicategory-test: New file.
51263         * modules/unictype/decimal-digit: New file.
51264         * modules/unictype/digit: New file.
51265         * modules/unictype/numeric: New file.
51266         * modules/unictype/mirror: New file.
51267         * modules/unictype/property-white-space: New file.
51268         * modules/unictype/property-alphabetic: New file.
51269         * modules/unictype/property-other-alphabetic: New file.
51270         * modules/unictype/property-not-a-character: New file.
51271         * modules/unictype/property-default-ignorable-code-point: New file.
51272         * modules/unictype/property-other-default-ignorable-code-point: New
51273         file.
51274         * modules/unictype/property-deprecated: New file.
51275         * modules/unictype/property-logical-order-exception: New file.
51276         * modules/unictype/property-variation-selector: New file.
51277         * modules/unictype/property-private-use: New file.
51278         * modules/unictype/property-unassigned-code-value: New file.
51279         * modules/unictype/property-uppercase: New file.
51280         * modules/unictype/property-other-uppercase: New file.
51281         * modules/unictype/property-lowercase: New file.
51282         * modules/unictype/property-other-lowercase: New file.
51283         * modules/unictype/property-titlecase: New file.
51284         * modules/unictype/property-soft-dotted: New file.
51285         * modules/unictype/property-id-start: New file.
51286         * modules/unictype/property-other-id-start: New file.
51287         * modules/unictype/property-id-continue: New file.
51288         * modules/unictype/property-other-id-continue: New file.
51289         * modules/unictype/property-xid-start: New file.
51290         * modules/unictype/property-xid-continue: New file.
51291         * modules/unictype/property-pattern-white-space: New file.
51292         * modules/unictype/property-pattern-syntax: New file.
51293         * modules/unictype/property-join-control: New file.
51294         * modules/unictype/property-grapheme-base: New file.
51295         * modules/unictype/property-grapheme-extend: New file.
51296         * modules/unictype/property-other-grapheme-extend: New file.
51297         * modules/unictype/property-grapheme-link: New file.
51298         * modules/unictype/property-bidi-control: New file.
51299         * modules/unictype/property-bidi-left-to-right: New file.
51300         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
51301         * modules/unictype/property-bidi-arabic-right-to-left: New file.
51302         * modules/unictype/property-bidi-european-digit: New file.
51303         * modules/unictype/property-bidi-eur-num-separator: New file.
51304         * modules/unictype/property-bidi-eur-num-terminator: New file.
51305         * modules/unictype/property-bidi-arabic-digit: New file.
51306         * modules/unictype/property-bidi-common-separator: New file.
51307         * modules/unictype/property-bidi-block-separator: New file.
51308         * modules/unictype/property-bidi-segment-separator: New file.
51309         * modules/unictype/property-bidi-whitespace: New file.
51310         * modules/unictype/property-bidi-non-spacing-mark: New file.
51311         * modules/unictype/property-bidi-boundary-neutral: New file.
51312         * modules/unictype/property-bidi-pdf: New file.
51313         * modules/unictype/property-bidi-embedding-or-override: New file.
51314         * modules/unictype/property-bidi-other-neutral: New file.
51315         * modules/unictype/property-hex-digit: New file.
51316         * modules/unictype/property-ascii-hex-digit: New file.
51317         * modules/unictype/property-ideographic: New file.
51318         * modules/unictype/property-unified-ideograph: New file.
51319         * modules/unictype/property-radical: New file.
51320         * modules/unictype/property-ids-binary-operator: New file.
51321         * modules/unictype/property-ids-trinary-operator: New file.
51322         * modules/unictype/property-zero-width: New file.
51323         * modules/unictype/property-space: New file.
51324         * modules/unictype/property-non-break: New file.
51325         * modules/unictype/property-iso-control: New file.
51326         * modules/unictype/property-format-control: New file.
51327         * modules/unictype/property-dash: New file.
51328         * modules/unictype/property-hyphen: New file.
51329         * modules/unictype/property-punctuation: New file.
51330         * modules/unictype/property-line-separator: New file.
51331         * modules/unictype/property-paragraph-separator: New file.
51332         * modules/unictype/property-quotation-mark: New file.
51333         * modules/unictype/property-sentence-terminal: New file.
51334         * modules/unictype/property-terminal-punctuation: New file.
51335         * modules/unictype/property-currency-symbol: New file.
51336         * modules/unictype/property-math: New file.
51337         * modules/unictype/property-other-math: New file.
51338         * modules/unictype/property-paired-punctuation: New file.
51339         * modules/unictype/property-left-of-pair: New file.
51340         * modules/unictype/property-combining: New file.
51341         * modules/unictype/property-composite: New file.
51342         * modules/unictype/property-decimal-digit: New file.
51343         * modules/unictype/property-numeric: New file.
51344         * modules/unictype/property-diacritic: New file.
51345         * modules/unictype/property-extender: New file.
51346         * modules/unictype/property-ignorable-control: New file.
51347         * modules/unictype/property-test: New file.
51348         * modules/unictype/property-byname: New file.
51349         * modules/unictype/property-all: New file.
51350         * modules/unictype/scripts: New file.
51351         * modules/unictype/scripts-all: New file.
51352         * modules/unictype/block-of: New file.
51353         * modules/unictype/block-test: New file.
51354         * modules/unictype/block-list: New file.
51355         * modules/unictype/block-all: New file.
51356         * modules/unictype/syntax-c-whitespace: New file.
51357         * modules/unictype/syntax-java-whitespace: New file.
51358         * modules/unictype/syntax-c-ident: New file.
51359         * modules/unictype/syntax-java-ident: New file.
51360         * modules/unictype/ctype-alnum: New file.
51361         * modules/unictype/ctype-alpha: New file.
51362         * modules/unictype/ctype-cntrl: New file.
51363         * modules/unictype/ctype-digit: New file.
51364         * modules/unictype/ctype-graph: New file.
51365         * modules/unictype/ctype-lower: New file.
51366         * modules/unictype/ctype-print: New file.
51367         * modules/unictype/ctype-punct: New file.
51368         * modules/unictype/ctype-space: New file.
51369         * modules/unictype/ctype-upper: New file.
51370         * modules/unictype/ctype-xdigit: New file.
51371         * modules/unictype/ctype-blank: New file.
51372         * lib/unictype/bidi_byname.c: New file.
51373         * lib/unictype/bidi_name.c: New file.
51374         * lib/unictype/bidi_of.c: New file.
51375         * lib/unictype/bidi_test.c: New file.
51376         * lib/unictype/bitmap.h: New file.
51377         * lib/unictype/block_test.c: New file.
51378         * lib/unictype/blocks.c: New file.
51379         * lib/unictype/categ_C.c: New file.
51380         * lib/unictype/categ_Cc.c: New file.
51381         * lib/unictype/categ_Cf.c: New file.
51382         * lib/unictype/categ_Cn.c: New file.
51383         * lib/unictype/categ_Co.c: New file.
51384         * lib/unictype/categ_Cs.c: New file.
51385         * lib/unictype/categ_L.c: New file.
51386         * lib/unictype/categ_Ll.c: New file.
51387         * lib/unictype/categ_Lm.c: New file.
51388         * lib/unictype/categ_Lo.c: New file.
51389         * lib/unictype/categ_Lt.c: New file.
51390         * lib/unictype/categ_Lu.c: New file.
51391         * lib/unictype/categ_M.c: New file.
51392         * lib/unictype/categ_Mc.c: New file.
51393         * lib/unictype/categ_Me.c: New file.
51394         * lib/unictype/categ_Mn.c: New file.
51395         * lib/unictype/categ_N.c: New file.
51396         * lib/unictype/categ_Nd.c: New file.
51397         * lib/unictype/categ_Nl.c: New file.
51398         * lib/unictype/categ_No.c: New file.
51399         * lib/unictype/categ_P.c: New file.
51400         * lib/unictype/categ_Pc.c: New file.
51401         * lib/unictype/categ_Pd.c: New file.
51402         * lib/unictype/categ_Pe.c: New file.
51403         * lib/unictype/categ_Pf.c: New file.
51404         * lib/unictype/categ_Pi.c: New file.
51405         * lib/unictype/categ_Po.c: New file.
51406         * lib/unictype/categ_Ps.c: New file.
51407         * lib/unictype/categ_S.c: New file.
51408         * lib/unictype/categ_Sc.c: New file.
51409         * lib/unictype/categ_Sk.c: New file.
51410         * lib/unictype/categ_Sm.c: New file.
51411         * lib/unictype/categ_So.c: New file.
51412         * lib/unictype/categ_Z.c: New file.
51413         * lib/unictype/categ_Zl.c: New file.
51414         * lib/unictype/categ_Zp.c: New file.
51415         * lib/unictype/categ_Zs.c: New file.
51416         * lib/unictype/categ_and.c: New file.
51417         * lib/unictype/categ_and_not.c: New file.
51418         * lib/unictype/categ_byname.c: New file.
51419         * lib/unictype/categ_name.c: New file.
51420         * lib/unictype/categ_none.c: New file.
51421         * lib/unictype/categ_of.c: New file.
51422         * lib/unictype/categ_or.c: New file.
51423         * lib/unictype/categ_test.c: New file.
51424         * lib/unictype/combining.c: New file.
51425         * lib/unictype/ctype_alnum.c: New file.
51426         * lib/unictype/ctype_alpha.c: New file.
51427         * lib/unictype/ctype_blank.c: New file.
51428         * lib/unictype/ctype_cntrl.c: New file.
51429         * lib/unictype/ctype_digit.c: New file.
51430         * lib/unictype/ctype_graph.c: New file.
51431         * lib/unictype/ctype_lower.c: New file.
51432         * lib/unictype/ctype_print.c: New file.
51433         * lib/unictype/ctype_punct.c: New file.
51434         * lib/unictype/ctype_space.c: New file.
51435         * lib/unictype/ctype_upper.c: New file.
51436         * lib/unictype/ctype_xdigit.c: New file.
51437         * lib/unictype/decdigit.c: New file.
51438         * lib/unictype/digit.c: New file.
51439         * lib/unictype/identsyntaxmap.h: New file.
51440         * lib/unictype/mirror.c: New file.
51441         * lib/unictype/numeric.c: New file.
51442         * lib/unictype/pr_alphabetic.c: New file.
51443         * lib/unictype/pr_ascii_hex_digit.c: New file.
51444         * lib/unictype/pr_bidi_arabic_digit.c: New file.
51445         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
51446         * lib/unictype/pr_bidi_block_separator.c: New file.
51447         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
51448         * lib/unictype/pr_bidi_common_separator.c: New file.
51449         * lib/unictype/pr_bidi_control.c: New file.
51450         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
51451         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
51452         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
51453         * lib/unictype/pr_bidi_european_digit.c: New file.
51454         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
51455         * lib/unictype/pr_bidi_left_to_right.c: New file.
51456         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
51457         * lib/unictype/pr_bidi_other_neutral.c: New file.
51458         * lib/unictype/pr_bidi_pdf.c: New file.
51459         * lib/unictype/pr_bidi_segment_separator.c: New file.
51460         * lib/unictype/pr_bidi_whitespace.c: New file.
51461         * lib/unictype/pr_byname.c: New file.
51462         * lib/unictype/pr_byname.gperf: New file.
51463         * lib/unictype/pr_combining.c: New file.
51464         * lib/unictype/pr_composite.c: New file.
51465         * lib/unictype/pr_currency_symbol.c: New file.
51466         * lib/unictype/pr_dash.c: New file.
51467         * lib/unictype/pr_decimal_digit.c: New file.
51468         * lib/unictype/pr_default_ignorable_code_point.c: New file.
51469         * lib/unictype/pr_deprecated.c: New file.
51470         * lib/unictype/pr_diacritic.c: New file.
51471         * lib/unictype/pr_extender.c: New file.
51472         * lib/unictype/pr_format_control.c: New file.
51473         * lib/unictype/pr_grapheme_base.c: New file.
51474         * lib/unictype/pr_grapheme_extend.c: New file.
51475         * lib/unictype/pr_grapheme_link.c: New file.
51476         * lib/unictype/pr_hex_digit.c: New file.
51477         * lib/unictype/pr_hyphen.c: New file.
51478         * lib/unictype/pr_id_continue.c: New file.
51479         * lib/unictype/pr_id_start.c: New file.
51480         * lib/unictype/pr_ideographic.c: New file.
51481         * lib/unictype/pr_ids_binary_operator.c: New file.
51482         * lib/unictype/pr_ids_trinary_operator.c: New file.
51483         * lib/unictype/pr_ignorable_control.c: New file.
51484         * lib/unictype/pr_iso_control.c: New file.
51485         * lib/unictype/pr_join_control.c: New file.
51486         * lib/unictype/pr_left_of_pair.c: New file.
51487         * lib/unictype/pr_line_separator.c: New file.
51488         * lib/unictype/pr_logical_order_exception.c: New file.
51489         * lib/unictype/pr_lowercase.c: New file.
51490         * lib/unictype/pr_math.c: New file.
51491         * lib/unictype/pr_non_break.c: New file.
51492         * lib/unictype/pr_not_a_character.c: New file.
51493         * lib/unictype/pr_numeric.c: New file.
51494         * lib/unictype/pr_other_alphabetic.c: New file.
51495         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
51496         * lib/unictype/pr_other_grapheme_extend.c: New file.
51497         * lib/unictype/pr_other_id_continue.c: New file.
51498         * lib/unictype/pr_other_id_start.c: New file.
51499         * lib/unictype/pr_other_lowercase.c: New file.
51500         * lib/unictype/pr_other_math.c: New file.
51501         * lib/unictype/pr_other_uppercase.c: New file.
51502         * lib/unictype/pr_paired_punctuation.c: New file.
51503         * lib/unictype/pr_paragraph_separator.c: New file.
51504         * lib/unictype/pr_pattern_syntax.c: New file.
51505         * lib/unictype/pr_pattern_white_space.c: New file.
51506         * lib/unictype/pr_private_use.c: New file.
51507         * lib/unictype/pr_punctuation.c: New file.
51508         * lib/unictype/pr_quotation_mark.c: New file.
51509         * lib/unictype/pr_radical.c: New file.
51510         * lib/unictype/pr_sentence_terminal.c: New file.
51511         * lib/unictype/pr_soft_dotted.c: New file.
51512         * lib/unictype/pr_space.c: New file.
51513         * lib/unictype/pr_terminal_punctuation.c: New file.
51514         * lib/unictype/pr_test.c: New file.
51515         * lib/unictype/pr_titlecase.c: New file.
51516         * lib/unictype/pr_unassigned_code_value.c: New file.
51517         * lib/unictype/pr_unified_ideograph.c: New file.
51518         * lib/unictype/pr_uppercase.c: New file.
51519         * lib/unictype/pr_variation_selector.c: New file.
51520         * lib/unictype/pr_white_space.c: New file.
51521         * lib/unictype/pr_xid_continue.c: New file.
51522         * lib/unictype/pr_xid_start.c: New file.
51523         * lib/unictype/pr_zero_width.c: New file.
51524         * lib/unictype/scripts.c: New file.
51525         * lib/unictype/sy_c_ident.c: New file.
51526         * lib/unictype/sy_c_whitespace.c: New file.
51527         * lib/unictype/sy_java_ident.c: New file.
51528         * lib/unictype/sy_java_whitespace.c: New file.
51529
51530         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
51531         Unicode 5.0.0.
51532         * lib/unictype/blocks.h: Likewise.
51533         * lib/unictype/categ_C.h: Likewise.
51534         * lib/unictype/categ_Cc.h: Likewise.
51535         * lib/unictype/categ_Cf.h: Likewise.
51536         * lib/unictype/categ_Cn.h: Likewise.
51537         * lib/unictype/categ_Co.h: Likewise.
51538         * lib/unictype/categ_Cs.h: Likewise.
51539         * lib/unictype/categ_L.h: Likewise.
51540         * lib/unictype/categ_Ll.h: Likewise.
51541         * lib/unictype/categ_Lm.h: Likewise.
51542         * lib/unictype/categ_Lo.h: Likewise.
51543         * lib/unictype/categ_Lt.h: Likewise.
51544         * lib/unictype/categ_Lu.h: Likewise.
51545         * lib/unictype/categ_M.h: Likewise.
51546         * lib/unictype/categ_Mc.h: Likewise.
51547         * lib/unictype/categ_Me.h: Likewise.
51548         * lib/unictype/categ_Mn.h: Likewise.
51549         * lib/unictype/categ_N.h: Likewise.
51550         * lib/unictype/categ_Nd.h: Likewise.
51551         * lib/unictype/categ_Nl.h: Likewise.
51552         * lib/unictype/categ_No.h: Likewise.
51553         * lib/unictype/categ_P.h: Likewise.
51554         * lib/unictype/categ_Pc.h: Likewise.
51555         * lib/unictype/categ_Pd.h: Likewise.
51556         * lib/unictype/categ_Pe.h: Likewise.
51557         * lib/unictype/categ_Pf.h: Likewise.
51558         * lib/unictype/categ_Pi.h: Likewise.
51559         * lib/unictype/categ_Po.h: Likewise.
51560         * lib/unictype/categ_Ps.h: Likewise.
51561         * lib/unictype/categ_S.h: Likewise.
51562         * lib/unictype/categ_Sc.h: Likewise.
51563         * lib/unictype/categ_Sk.h: Likewise.
51564         * lib/unictype/categ_Sm.h: Likewise.
51565         * lib/unictype/categ_So.h: Likewise.
51566         * lib/unictype/categ_Z.h: Likewise.
51567         * lib/unictype/categ_Zl.h: Likewise.
51568         * lib/unictype/categ_Zp.h: Likewise.
51569         * lib/unictype/categ_Zs.h: Likewise.
51570         * lib/unictype/categ_of.h: Likewise.
51571         * lib/unictype/combining.h: Likewise.
51572         * lib/unictype/ctype_alnum.h: Likewise.
51573         * lib/unictype/ctype_alpha.h: Likewise.
51574         * lib/unictype/ctype_blank.h: Likewise.
51575         * lib/unictype/ctype_cntrl.h: Likewise.
51576         * lib/unictype/ctype_digit.h: Likewise.
51577         * lib/unictype/ctype_graph.h: Likewise.
51578         * lib/unictype/ctype_lower.h: Likewise.
51579         * lib/unictype/ctype_print.h: Likewise.
51580         * lib/unictype/ctype_punct.h: Likewise.
51581         * lib/unictype/ctype_space.h: Likewise.
51582         * lib/unictype/ctype_upper.h: Likewise.
51583         * lib/unictype/ctype_xdigit.h: Likewise.
51584         * lib/unictype/decdigit.h: Likewise.
51585         * lib/unictype/digit.h: Likewise.
51586         * lib/unictype/mirror.h: Likewise.
51587         * lib/unictype/numeric.h: Likewise.
51588         * lib/unictype/pr_alphabetic.h: Likewise.
51589         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51590         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51591         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51592         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51593         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51594         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51595         * lib/unictype/pr_bidi_control.h: Likewise.
51596         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51597         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51598         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51599         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51600         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51601         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51602         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51603         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51604         * lib/unictype/pr_bidi_pdf.h: Likewise.
51605         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51606         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51607         * lib/unictype/pr_combining.h: Likewise.
51608         * lib/unictype/pr_composite.h: Likewise.
51609         * lib/unictype/pr_currency_symbol.h: Likewise.
51610         * lib/unictype/pr_dash.h: Likewise.
51611         * lib/unictype/pr_decimal_digit.h: Likewise.
51612         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51613         * lib/unictype/pr_deprecated.h: Likewise.
51614         * lib/unictype/pr_diacritic.h: Likewise.
51615         * lib/unictype/pr_extender.h: Likewise.
51616         * lib/unictype/pr_format_control.h: Likewise.
51617         * lib/unictype/pr_grapheme_base.h: Likewise.
51618         * lib/unictype/pr_grapheme_extend.h: Likewise.
51619         * lib/unictype/pr_grapheme_link.h: Likewise.
51620         * lib/unictype/pr_hex_digit.h: Likewise.
51621         * lib/unictype/pr_hyphen.h: Likewise.
51622         * lib/unictype/pr_id_continue.h: Likewise.
51623         * lib/unictype/pr_id_start.h: Likewise.
51624         * lib/unictype/pr_ideographic.h: Likewise.
51625         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51626         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51627         * lib/unictype/pr_ignorable_control.h: Likewise.
51628         * lib/unictype/pr_iso_control.h: Likewise.
51629         * lib/unictype/pr_join_control.h: Likewise.
51630         * lib/unictype/pr_left_of_pair.h: Likewise.
51631         * lib/unictype/pr_line_separator.h: Likewise.
51632         * lib/unictype/pr_logical_order_exception.h: Likewise.
51633         * lib/unictype/pr_lowercase.h: Likewise.
51634         * lib/unictype/pr_math.h: Likewise.
51635         * lib/unictype/pr_non_break.h: Likewise.
51636         * lib/unictype/pr_not_a_character.h: Likewise.
51637         * lib/unictype/pr_numeric.h: Likewise.
51638         * lib/unictype/pr_other_alphabetic.h: Likewise.
51639         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51640         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51641         * lib/unictype/pr_other_id_continue.h: Likewise.
51642         * lib/unictype/pr_other_id_start.h: Likewise.
51643         * lib/unictype/pr_other_lowercase.h: Likewise.
51644         * lib/unictype/pr_other_math.h: Likewise.
51645         * lib/unictype/pr_other_uppercase.h: Likewise.
51646         * lib/unictype/pr_paired_punctuation.h: Likewise.
51647         * lib/unictype/pr_paragraph_separator.h: Likewise.
51648         * lib/unictype/pr_pattern_syntax.h: Likewise.
51649         * lib/unictype/pr_pattern_white_space.h: Likewise.
51650         * lib/unictype/pr_private_use.h: Likewise.
51651         * lib/unictype/pr_punctuation.h: Likewise.
51652         * lib/unictype/pr_quotation_mark.h: Likewise.
51653         * lib/unictype/pr_radical.h: Likewise.
51654         * lib/unictype/pr_sentence_terminal.h: Likewise.
51655         * lib/unictype/pr_soft_dotted.h: Likewise.
51656         * lib/unictype/pr_space.h: Likewise.
51657         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51658         * lib/unictype/pr_titlecase.h: Likewise.
51659         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51660         * lib/unictype/pr_unified_ideograph.h: Likewise.
51661         * lib/unictype/pr_uppercase.h: Likewise.
51662         * lib/unictype/pr_variation_selector.h: Likewise.
51663         * lib/unictype/pr_white_space.h: Likewise.
51664         * lib/unictype/pr_xid_continue.h: Likewise.
51665         * lib/unictype/pr_xid_start.h: Likewise.
51666         * lib/unictype/pr_zero_width.h: Likewise.
51667         * lib/unictype/scripts.h: Likewise.
51668         * lib/unictype/scripts_byname.gperf: Likewise.
51669         * lib/unictype/sy_c_ident.h: Likewise.
51670         * lib/unictype/sy_c_whitespace.h: Likewise.
51671         * lib/unictype/sy_java_ident.h: Likewise.
51672         * lib/unictype/sy_java_whitespace.h: Likewise.
51673
51674         * lib/unictype/Makefile: New file.
51675         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51676         glibc.
51677         * lib/unictype/3level.h: New file, copied from glibc.
51678         * lib/unictype/3levelbit.h: New file.
51679
51680 2007-11-11  Bruno Haible  <bruno@clisp.org>
51681
51682         * modules/gperf: New file.
51683         * modules/iconv_open (Depends-on): Add it.
51684         (Makefile.am): Remove the GPERF definition.
51685
51686 2007-11-11  Bruno Haible  <bruno@clisp.org>
51687
51688         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51689         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51690
51691 2007-11-11  Bruno Haible  <bruno@clisp.org>
51692
51693         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51694         (usage): Remove function.
51695
51696 2007-11-11  Bruno Haible  <bruno@clisp.org>
51697
51698         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51699         gl_FUNC_CEILF_LIBS.
51700         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51701         gl_FUNC_CEIL_LIBS.
51702         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51703         gl_FUNC_CEILL_LIBS.
51704         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51705         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51706         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51707
51708 2007-11-11  Bruno Haible  <bruno@clisp.org>
51709
51710         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51711         roundf were declared but do not exist on functions.
51712         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51713         roundl were declared but do not exist on functions.
51714         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51715         HAVE_FLOORL_AND_CEILL, respectively.
51716         Needed for Sun C on Solaris 10.
51717
51718 2007-11-11  Bruno Haible  <bruno@clisp.org>
51719
51720         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51721         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51722         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51723         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51724         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51725         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51726         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51727         HAVE_DECL_ROUNDF.
51728         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51729         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51731         of HAVE_DECL_ROUND*.
51732         * modules/math (Makefile.am): Update.
51733
51734 2007-11-10  Bruno Haible  <bruno@clisp.org>
51735
51736         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51737         ptrdiff_t as m4/intl.m4.
51738
51739 2007-11-10  Jim Meyering  <meyering@redhat.com>
51740
51741         Avoid link failure for the argmatch test.
51742         * tests/test-argmatch.c (usage): Define function to avoid a link
51743         failure: argmatch_die requires a usage function.
51744
51745 2007-11-09  Bruno Haible  <bruno@clisp.org>
51746
51747         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51748         * doc/functions/vsnprintf.texi: Likewise.
51749         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51750         with a size argument < 2.
51751
51752 2007-11-09  Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51755         buffer. Fixes an inefficiency introduced on 2007-11-03.
51756
51757 2007-11-09  Bruno Haible  <bruno@clisp.org>
51758
51759         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51760         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51761
51762 2007-11-08  Jim Meyering  <meyering@redhat.com>
51763
51764         Change cache variable name prefix "jm_" to "gl_" everywhere.
51765         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51766         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51767         * m4/uptime.m4: s/gl_/jm_/
51768
51769 2007-11-07  Bruno Haible  <bruno@clisp.org>
51770
51771         Update to GNU gettext 0.17.
51772         * m4/intl.m4: Update to GNU gettext 0.17.
51773         * m4/po.m4: Likewise.
51774         * modules/gettext (Files): Remove m4/ulonglong.m4.
51775         (configure.ac): Require gettext infrastructure from version 0.17.
51776
51777 2007-11-06  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51780         symbolic values are not defined in a public header.
51781         * lib/freadable.c (freadable) [QNX]: Likewise.
51782         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51783         * lib/freading.c (freading) [QNX]: Likewise.
51784         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51785         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51786         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51787         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51788         Reported by Alain Magloire.
51789
51790         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51791
51792 2007-11-05  Bruno Haible  <bruno@clisp.org>
51793
51794         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51795         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51796         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51797         Reported by Eric Blake.
51798
51799 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51800             Bruno Haible  <bruno@clisp.org>
51801
51802         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51803         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51804         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51805         (malloc): Undefine also before including <stdlib.h>.
51806         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51807         Needed on OSF/1 4.0.
51808
51809 2007-11-05  Jim Meyering  <meyering@redhat.com>
51810
51811         git-version-gen: sync from coreutils.
51812         * build-aux/git-version-gen: Add comments.
51813         Change the first '-' to '.' in the snapshot version string,
51814         e.g., 6.9-377-08144 -> 6.9.377-08144
51815         Remove first parameter.
51816         Don't declare a version "-dirty" merely because a time
51817         stamp has changed.
51818
51819 2007-11-04  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/lock.h: Protect all macro definitions containing an 'if'
51822         statement through a "do { ... } while (0)".
51823         * lib/tls.h: Likewise.
51824
51825 2007-11-04  Bruno Haible  <bruno@clisp.org>
51826
51827         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51828
51829 2007-11-04  Bruno Haible  <bruno@clisp.org>
51830
51831         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51832         * modules/fprintf-posix (Depends-on): Add nocrash.
51833         * modules/snprintf-posix (Depends-on): Likewise.
51834         * modules/sprintf-posix (Depends-on): Likewise.
51835         * modules/vasnprintf-posix (Depends-on): Likewise.
51836         * modules/vasprintf-posix (Depends-on): Likewise.
51837         * modules/vfprintf-posix (Depends-on): Likewise.
51838         * modules/vsnprintf-posix (Depends-on): Likewise.
51839         * modules/vsprintf-posix (Depends-on): Likewise.
51840         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51841         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51842         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51843         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51844         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51845         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51846         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51847
51848 2007-11-04  Bruno Haible  <bruno@clisp.org>
51849
51850         * modules/nocrash: New file.
51851         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51852         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51853
51854 2007-11-04  Bruno Haible  <bruno@clisp.org>
51855
51856         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51857         precision handling.
51858         * tests/test-vasprintf-posix.c (test_function): Likewise.
51859         * tests/test-snprintf-posix.h (test_function): Likewise.
51860         * tests/test-sprintf-posix.h (test_function): Likewise.
51861
51862         Fix *printf behaviour for large precisions on mingw and BeOS.
51863         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51864         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51865         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51866         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51867         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51868         gl_PRINTF_PRECISION and test its result. Invoke
51869         gl_PREREQ_VASNPRINTF_PRECISION.
51870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51872         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51877         * doc/functions/fprintf.texi: Update.
51878         * doc/functions/printf.texi: Update.
51879         * doc/functions/snprintf.texi: Update.
51880         * doc/functions/sprintf.texi: Update.
51881         * doc/functions/vfprintf.texi: Update.
51882         * doc/functions/vprintf.texi: Update.
51883         * doc/functions/vsnprintf.texi: Update.
51884         * doc/functions/vsprintf.texi: Update.
51885
51886 2007-11-04  Bruno Haible  <bruno@clisp.org>
51887
51888         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51889
51890 2007-11-04  Bruno Haible  <bruno@clisp.org>
51891
51892         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51893         Reported by Sylvain Beucler <beuc@gnu.org>.
51894
51895 2007-11-03  Bruno Haible  <bruno@clisp.org>
51896
51897         * tests/test-fprintf-posix2.sh: New file.
51898         * tests/test-fprintf-posix2.c: New file.
51899         * modules/fprintf-posix-tests (Files): Add them.
51900         (TESTS): Add test-fprintf-posix2.sh.
51901         (configure.ac): Check for getrlimit and setrlimit.
51902         (check_PROGRAMS): Add test-fprintf-posix2.
51903
51904         * tests/test-printf-posix2.sh: New file.
51905         * tests/test-printf-posix2.c: New file.
51906         * modules/printf-posix-tests (Files): Add them.
51907         (TESTS): Add test-printf-posix2.sh.
51908         (configure.ac): Check for getrlimit and setrlimit.
51909         (check_PROGRAMS): Add test-printf-posix2.
51910
51911         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51912         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51913         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51914         (decode_double): New function, copied from decode_long_double.
51915         (scale10_round_decimal_decoded): New function, extracted from
51916         scale10_round_decimal_long_double.
51917         (scale10_round_decimal_long_double): Use it.
51918         (scale10_round_decimal_double): New function.
51919         (floorlog10): New function.
51920         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51922         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51924         gl_PRINTF_ENOMEM and test its result. Invoke
51925         gl_PREREQ_VASNPRINTF_ENOMEM.
51926         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51927         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51928         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51929         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51930         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51932         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51933         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51934         * modules/snprintf-posix (Depends-on): Likewise.
51935         * modules/sprintf-posix (Depends-on): Likewise.
51936         * modules/vasnprintf-posix (Depends-on): Likewise.
51937         * modules/vasprintf-posix (Depends-on): Likewise.
51938         * modules/vfprintf-posix (Depends-on): Likewise.
51939         * modules/vsnprintf-posix (Depends-on): Likewise.
51940         * modules/vsprintf-posix (Depends-on): Likewise.
51941         * doc/functions/fprintf.texi: Update.
51942         * doc/functions/printf.texi: Update.
51943         * doc/functions/snprintf.texi: Update.
51944         * doc/functions/sprintf.texi: Update.
51945         * doc/functions/vfprintf.texi: Update.
51946         * doc/functions/vprintf.texi: Update.
51947         * doc/functions/vsnprintf.texi: Update.
51948         * doc/functions/vsprintf.texi: Update.
51949
51950 2007-11-03  Bruno Haible  <bruno@clisp.org>
51951
51952         * modules/frexp-nolibm-tests: New file.
51953
51954         * modules/frexp-nolibm: New file.
51955         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51956
51957 2007-11-03  Bruno Haible  <bruno@clisp.org>
51958
51959         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51960         value is C99 compliant.
51961         Needed for OSF/1 5.1.
51962
51963 2007-11-03  Bruno Haible  <bruno@clisp.org>
51964
51965         Fix out-of-memory handling of vasnprintf.
51966         * lib/printf-parse.c: Include <errno.h>.
51967         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51968         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51969         is already set.
51970
51971 2007-11-02  Eric Blake  <ebb9@byu.net>
51972
51973         Fix tests on cygwin.
51974         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51975
51976 2007-11-01  Bruno Haible  <bruno@clisp.org>
51977
51978         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51979         warning.
51980         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51981         needed for POSIX compatibility.
51982
51983 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51984
51985         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51986         for compatibility with GNU.
51987
51988 2007-11-01  Bruno Haible  <bruno@clisp.org>
51989
51990         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51991         (putenv): Renamed from rpl_putenv. Change argument type from
51992         'const char *' to 'char *'.
51993         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51994         of defining putenv in config.h, just set REPLACE_PUTENV.
51995         * modules/putenv (Depends-on): Add stdlib.
51996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51997         (Include): Use <stdlib.h>.
51998         * lib/stdlib.in.h (putenv): New declaration.
51999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
52000         REPLACE_PUTENV.
52001         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
52002         REPLACE_PUTENV.
52003         Needed for MacOS X 10.5.0.
52004         Reported by Peter O'Gorman <peter@pogma.com>.
52005
52006 2007-11-01  Jim Meyering  <meyering@redhat.com>
52007
52008         Treat an empty date string exactly like "0".
52009         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
52010         if the remaining date string (to be parsed) is empty, use "0".
52011         Reported by Mischa Molhoek and discussed in this thread:
52012         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
52013
52014 2007-10-31  Bruno Haible  <bruno@clisp.org>
52015
52016         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
52017         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
52018         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
52019         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
52020         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
52021         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
52022
52023 2007-10-31  Bruno Haible  <bruno@clisp.org>
52024
52025         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
52026         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
52027         (AC_TYPE_LONG_LONG_INT): Use it.
52028         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
52029         it as well.
52030         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
52031         to m4/longlong.m4.
52032         * modules/stdint (Files): Remove m4/ulonglong.m4.
52033         * modules/strtoull (Files): Use m4/longlong.m4 instead of
52034         m4/ulonglong.m4.
52035         * modules/strtoumax (Files): Likewise.
52036
52037 2007-10-30  Bruno Haible  <bruno@clisp.org>
52038
52039         * modules/xvasprintf-posix: New file.
52040         Suggested by Eric Blake.
52041
52042 2007-10-30  Bruno Haible  <bruno@clisp.org>
52043
52044         * modules/xprintf-posix-tests: New file.
52045         * tests/test-xprintf-posix.sh: New file.
52046         * tests/test-xprintf-posix.c: New file.
52047         * tests/test-xfprintf-posix.c: New file.
52048
52049         * modules/xprintf-posix: New file.
52050
52051 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52052
52053         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
52054         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
52055         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
52056
52057 2007-10-29  Bruno Haible  <bruno@clisp.org>
52058
52059         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
52060         contain the special marker '_cv_'.
52061         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
52062         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
52063         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
52064         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
52065         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
52066         Reported by Ralf Wildenhues.
52067
52068 2007-10-29  Bruno Haible  <bruno@clisp.org>
52069
52070         * gnulib-tool (func_import): When --lgpl is not specified, set
52071         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
52072         GPLv3.
52073         Reported by Simon Josefsson.
52074
52075 2007-10-28  Bruno Haible  <bruno@clisp.org>
52076
52077         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
52078         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
52079         HAVE_DECL_ISFINITE.
52080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52081         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
52082         HAVE_DECL_ISFINITE.
52083
52084 2007-10-28  Bruno Haible  <bruno@clisp.org>
52085
52086         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
52087         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
52088
52089 2007-10-28  Bruno Haible  <bruno@clisp.org>
52090
52091         Fix link errors with Sun C 5.0 on Solaris 10.
52092         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
52093         function is declared but not present in the compiler's libm.
52094         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
52095         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52096         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
52097         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
52098         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
52099         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
52100         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
52101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52102         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
52103         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
52104         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
52105         HAVE_DECL_FLOORL.
52106
52107 2007-10-28  Bruno Haible  <bruno@clisp.org>
52108
52109         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
52110         gl_FUNC_FLOORL. Cache the result.
52111         (gl_FUNC_FLOORL): Use it.
52112         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
52113         gl_FUNC_CEILL. Cache the result.
52114         (gl_FUNC_CEILL): Use it.
52115
52116         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
52117         gl_FUNC_FLOOR. Cache the result.
52118         (gl_FUNC_FLOOR): Use it.
52119         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
52120         gl_FUNC_CEIL. Cache the result.
52121         (gl_FUNC_CEIL): Use it.
52122
52123         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
52124         gl_FUNC_FLOORF. Cache the result.
52125         (gl_FUNC_FLOORF): Use it.
52126         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
52127         gl_FUNC_CEILF. Cache the result.
52128         (gl_FUNC_CEILF): Use it.
52129
52130 2007-10-28  Bruno Haible  <bruno@clisp.org>
52131
52132         * gnulib-tool: Allow specifying the LGPL version number through
52133         --lgpl=2 or --lgpl=3.
52134         (func_usage): Document --lgpl with argument.
52135         Handle --lgpl=... arguments.
52136         (func_import): Recognize also gl_LGPL calls with an argument. When
52137         --lgpl=2 is used and the module's license is just LGPL, report an
52138         error. Set sed_transform_lib_file according to the lgpl variable. In
52139         the generated files, use --lgpl or gl_LGPL invocations with argument,
52140         if necessary.
52141         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
52142         an LGPv2+ license.
52143         * doc/gnulib-tool.texi (Modified imports): Update explanation of
52144         gl_LGPL macro.
52145
52146 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52147             Bruno Haible  <bruno@clisp.org>
52148
52149         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
52150         (u16_uctomb_aux): Likewise.
52151         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
52152         !HAVE_INLINE.
52153         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
52154
52155 2007-10-28  Bruno Haible  <bruno@clisp.org>
52156
52157         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
52158         Invoke AM_GETTEXT_OPTION if it exists.
52159         * modules/vasprintf: Likewise.
52160         * modules/verror: Likewise.
52161         * modules/xprintf: Likewise.
52162         * modules/xvasprintf: Likewise.
52163
52164 2007-10-27  Ben Pfaff  <blp@gnu.org>
52165
52166         * lib/math.in.h: Define isfinite macro and prototypes for
52167         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
52168         implementations.
52169         * m4/math_h.m4: New substitutions for isfinite module.
52170         * lib/isfinite.c: New file.
52171         * m4/isfinite.m4: New file.
52172         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
52173         * modules/isfinite: New file.
52174         * modules/isfinite-tests: New file.
52175         * tests/tests-isfinite.c: New file.
52176         * doc/functions/isfinite.texi: Mention isfinite module.
52177         * MODULES.html.sh: Mention new module.
52178
52179 2007-10-27  Ben Pfaff  <blp@gnu.org>
52180
52181         Ralf Wildenhues reported that Tru64 4.0D declares the round
52182         functions but does not have definitions.
52183         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
52184         cannot be found in any library, set the output variable to
52185         "missing" instead of "".
52186         * m4/round.m4: Also use our substitute if we cannot find round in
52187         any library, even if it is declared.
52188         * m4/roundf.m4: Likewise for roundf.
52189         * m4/roundl.m4: Likewise for roundl.
52190         * lib/math.in.h: Undefine roundf, round, roundl before defining
52191         their replacements, to allow for hypothetical systems where these
52192         may be defined as macros but not available in libraries.
52193
52194 2007-10-27  Bruno Haible  <bruno@clisp.org>
52195
52196         * doc/gnulib.texi: Invoke @firstparagraphindent.
52197         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
52198         changes in gnulib.
52199         (Source changes): New section.
52200
52201 2007-10-26  Bruno Haible  <bruno@clisp.org>
52202
52203         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
52204         borrowed from autoconf.
52205
52206 2007-10-26  Bruno Haible  <bruno@clisp.org>
52207
52208         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
52209         strerror returned the empty string. Needed on HP-UX 11.00.
52210
52211 2007-10-24  Micah Cowan  <micah@cowan.name>
52212
52213         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
52214         * build-aux/bootstrap: Remove support for now-unnecessary option,
52215         --cvs-user, and envvars CVS_USER, CVS_RSH.
52216
52217 2007-10-24  Jim Meyering  <meyering@redhat.com>
52218
52219         Avoid diagnostics from sha1sum when there is no cached checksum.
52220         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
52221         if the po.s1 file hasn't been created yet.
52222
52223         * build-aux/bootstrap: Sync from coreutils:
52224         2007-10-24  Jim Meyering  <meyering@redhat.com>
52225         Get gnulib from the git repository, not from an obsolete cvs one.
52226         * build-aux/bootstrap: Suggestion from Micah Cowan.
52227         2007-10-04  Jim Meyering  <jim@meyering.net>
52228         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
52229         (update_po_files): Work also when there are no .po files in po/.
52230
52231 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52232
52233         * README: Append ".git" to git and cg examples.
52234         Problem reported by Benoit Sigoure.
52235
52236 2007-10-23  Micah Cowan  <micah@cowan.name>
52237
52238         * users.txt: Add wget.
52239
52240 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52241
52242         Fix linking of some unistdio tests on FreeBSD.
52243         * modules/unistdio/u16-vsnprintf-tests
52244         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
52245         * modules/unistdio/u16-vsprintf-tests
52246         (test_u16_vsnprintf1_LDADD): Likewise.
52247         * modules/unistdio/u32-vsnprintf-tests
52248         (test_u32_vsnprintf1_LDADD): Likewise.
52249         * modules/unistdio/u32-vsprintf-tests
52250         (test_u32_vsprintf1_LDADD): Likewise.
52251         * modules/unistdio/u8-vsnprintf-tests
52252         (test_u8_vsnprintf1_LDADD): Likewise.
52253         * modules/unistdio/u8-vsprintf-tests
52254         (test_u8_vsprintf1_LDADD): Likewise.
52255         * modules/unistdio/ulc-vsnprintf-tests
52256         (test_ulc_vsnprintf1_LDADD): Likewise.
52257         * modules/unistdio/ulc-vsprintf-tests
52258         (test_ulc_vsprintf1_LDADD): Likewise.
52259
52260         Fix linking of some uniconv tests on FreeBSD.
52261         * modules/uniconv/u16-conv-from-enc-tests
52262         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
52263         * modules/uniconv/u16-conv-to-enc-tests
52264         (test_u16_conv_to_enc_LDADD): Likewise.
52265         * modules/uniconv/u16-strconv-from-enc-tests
52266         (test_u16_strconv_from_enc_LDADD): Likewise.
52267         * modules/uniconv/u16-strconv-to-enc-tests
52268         (test_u16_strconv_to_enc_LDADD): Likewise.
52269         * modules/uniconv/u32-conv-from-enc-tests
52270         (test_u32_conv_from_enc_LDADD): Likewise.
52271         * modules/uniconv/u32-conv-to-enc-tests
52272         (test_u32_conv_to_enc_LDADD): Likewise.
52273         * modules/uniconv/u32-strconv-from-enc-tests
52274         (test_u32_strconv_from_enc_LDADD): Likewise.
52275         * modules/uniconv/u32-strconv-to-enc-tests
52276         (test_u32_strconv_to_enc_LDADD): Likewise.
52277         * modules/uniconv/u8-conv-from-enc-tests
52278         (test_u8_conv_from_enc_LDADD): Likewise.
52279         * modules/uniconv/u8-conv-to-enc-tests
52280         (test_u8_conv_to_enc_LDADD): Likewise.
52281         * modules/uniconv/u8-strconv-from-enc-tests
52282         (test_u8_strconv_from_enc_LDADD): Likewise.
52283         * modules/uniconv/u8-strconv-to-enc-tests
52284         (test_u8_strconv_to_enc_LDADD): Likewise.
52285
52286 2007-10-22  Bruno Haible  <bruno@clisp.org>
52287
52288         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
52289         size.
52290
52291 2007-10-22  Eric Blake  <ebb9@byu.net>
52292
52293         Tweak x*printf documentation.
52294         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
52295         variable name and comments.
52296         Suggested by Bruno Haible.
52297
52298 2007-10-22  Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/acl.c (copy_acl): Fix file name in comment.
52301
52302 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52303
52304         Fix Tru64 problem with stdbool.h.
52305         * lib/stdbool.in.h (false, true):
52306         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
52307         Don't declare as an enum in this situation; it runs afoul of Tru64.
52308         Problem reported by Steven M. Schweda in
52309         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
52310
52311 2007-10-22  Eric Blake  <ebb9@byu.net>
52312
52313         Also wrap vf?printf.
52314         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
52315         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
52316         (xvprintf, xvfprintf): New functions.
52317
52318 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52319
52320         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
52321         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
52322
52323         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
52324         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
52325
52326 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52327
52328         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
52329         by Bruno Haible.
52330
52331 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52332
52333         * lib/getloadavg.c
52334         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
52335         Undef `sys' after including sys/table.h, for Tru64 4.0D.
52336
52337         * tests/test-i-ring.c: Work for C89.
52338
52339 2007-10-22  Bruno Haible  <bruno@clisp.org>
52340
52341         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
52342         -1u, in preprocessor expression, so that we don't test for the bug
52343         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
52344         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
52345
52346 2007-10-22  Eric Blake  <ebb9@byu.net>
52347
52348         * tests/test-yesno.sh: Silence stderr during test.
52349
52350 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52351
52352         * modules/crypto/gc-camellia: New file.
52353
52354         * m4/gc-camellia.m4: New file.
52355
52356         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
52357
52358         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
52359
52360 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52361
52362         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
52363         --help to stdout.  Reported by sms@antinode.org (Steven
52364         M. Schweda).
52365
52366 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52367
52368         * users.txt: Fix link to libksba.
52369
52370 2007-10-21  Ben Pfaff  <blp@gnu.org>
52371
52372         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
52373         round.c roundf implementation that depends on floorf and ceilf to
52374         be tested unconditionally.
52375
52376 2007-10-21  Ben Pfaff  <blp@gnu.org>
52377
52378         * m4/check-libm-func.m4: Removed.
52379         * m4/check-math-lib.m4: New file.
52380         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
52381         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
52382         definition and lack of AC_LIBOBJ([roundf]).
52383         * m4/roundl.m4: Ditto, and similarly for roundl.
52384         * modules/round: Reference new m4 file.
52385         * modules/roundf: Ditto.
52386         * modules/roundl: Ditto.
52387         * tests/test-round2.c (main): Use ROUND instead of round.
52388         Bug report from Bruno Haible.
52389
52390 2007-10-21  Bruno Haible  <bruno@clisp.org>
52391
52392         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
52393         context.
52394
52395 2007-10-21  Bruno Haible  <bruno@clisp.org>
52396
52397         * tests/test-wcwidth.c (main): Allow negative result for some control
52398         characters.
52399
52400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
52401         Needed on OSF/1 5.1.
52402
52403 2007-10-21  Bruno Haible  <bruno@clisp.org>
52404
52405         * tests/test-floorf1.c: Include isnanf.h.
52406         (main): Use isnanf() instead of isnan().
52407         * tests/test-ceilf1.c: Include isnanf.h.
52408         (main): Use isnanf() instead of isnan().
52409         * tests/test-truncf1.c: Include isnanf.h.
52410         (main): Use isnanf() instead of isnan().
52411         * tests/test-roundf1.c: Include isnanf.h.
52412         (main): Use isnanf() instead of isnan().
52413
52414 2007-10-21  Eric Blake  <ebb9@byu.net>
52415
52416         * users.txt: Update URL for m4.
52417
52418 2007-10-21  Bruno Haible  <bruno@clisp.org>
52419
52420         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
52421
52422 2007-10-21  Bruno Haible  <bruno@clisp.org>
52423
52424         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
52425         Git's management files if the CVS files are not present.
52426
52427 2007-10-20  Bruno Haible  <bruno@clisp.org>
52428
52429         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
52430         gcc-3.4.x.
52431
52432 2007-10-20  Ben Pfaff  <blp@gnu.org>
52433
52434         * lib/math.in.h: Declare round, roundf, roundl if we are providing
52435         implementations.
52436         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
52437         * lib/round.c: New file.
52438         * lib/roundf.c: New file.
52439         * lib/roundl.c: New file.
52440         * m4/round.m4: New file.
52441         * m4/roundf.m4: New file.
52442         * m4/roundl.m4: New file.
52443         * m4/check-libm-func-m4: New file.
52444         * modules/math: Replace round, roundf, roundl related @VARS@ in
52445         math.in.h.
52446         * modules/round: New file.
52447         * modules/round-tests: New file.
52448         * modules/roundf: New file.
52449         * modules/roundf-tests: New file.
52450         * modules/roundl: New file.
52451         * modules/roundl-tests: New file.
52452         * tests/test-round1.c: New file.
52453         * tests/test-round2.c: New file.
52454         * tests/test-roundf1.c: New file.
52455         * tests/test-roundf2.c: New file.
52456         * tests/test-roundl.c: New file.
52457         * doc/functions/round.texi: Mention round module.
52458         * doc/functions/roundf.texi: Mention roundf module.
52459         * doc/functions/roundl.texi: Mention roundl module.
52460         * MODULES.html.sh: Mention new modules.
52461         Thanks to Bruno Haible for suggestions.
52462
52463 2007-10-20  Jim Meyering  <meyering@redhat.com>
52464
52465         * lib/xprintf.c: Include <config.h> unconditionally.
52466
52467         Change xprintf's license to GPL.
52468         * modules/xprintf (License): s/LGPL/GPL/, since this module
52469         depends on modules (exit and exitfail) which are GPL.
52470         Suggestion from Bruno Haible.
52471
52472         xprintf fixes.
52473         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
52474         Use a clearer diagnostic.
52475         Patch from Bruno Haible.
52476
52477 2007-10-20  Bruno Haible  <bruno@clisp.org>
52478
52479         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
52480         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
52481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52482
52483 2007-10-20  Bruno Haible  <bruno@clisp.org>
52484
52485         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
52486         precision in the comparison result > x - 1 or similar.
52487         * tests/test-ceilf2.c (correct_result_p): Likewise.
52488         * tests/test-truncf2.c (correct_result_p): Likewise.
52489         * tests/test-trunc2.c (correct_result_p): Likewise.
52490         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52491
52492 2007-10-20  Bruno Haible  <bruno@clisp.org>
52493
52494         * modules/ceil: New file.
52495         * m4/ceil.m4: New file.
52496         * doc/functions/ceil.texi: Mention the 'ceil' module.
52497
52498 2007-10-20  Bruno Haible  <bruno@clisp.org>
52499
52500         * modules/floor: New file.
52501         * m4/floor.m4: New file.
52502         * doc/functions/floor.texi: Mention the 'floor' module.
52503
52504 2007-10-20  Bruno Haible  <bruno@clisp.org>
52505
52506         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
52507         of %a.
52508         * modules/floorf-tests (Depends-on): Likewise.
52509         * modules/truncf-tests (Depends-on): Likewise.
52510         * modules/trunc-tests (Depends-on): Likewise.
52511         Reported by Ben Pfaff.
52512
52513 2007-10-19  Jim Meyering  <meyering@redhat.com>
52514
52515         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
52516         Don't bother testing specific errno values.  Just test ferror.
52517
52518         New module: xprintf
52519         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
52520
52521 2007-10-19  Bruno Haible  <bruno@clisp.org>
52522
52523         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
52524         syntax.
52525         * modules/javaexec (Makefile.am): Likewise.
52526         * modules/relocatable-prog (Makefile.am): Likewise.
52527         Suggested by Jim Meyering.
52528
52529 2007-10-18  Bruno Haible  <bruno@clisp.org>
52530
52531         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
52532         Reported by Jim Meyering.
52533
52534 2007-10-18  Eric Blake  <ebb9@byu.net>
52535
52536         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
52537
52538 2007-10-18  Bruno Haible  <bruno@clisp.org>
52539
52540         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
52541         the format string into writable memory. Needed in Fortify conditions.
52542
52543 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
52544             Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
52547         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
52548         * modules/trim (Depends-on): Add mbchar.
52549         (configure.ac): Add gl_FUNC_MBRTOWC.
52550         (Makefile.am): Augment lib_SOURCES.
52551
52552 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52553
52554         Modify glob.c to use fstatat and dirfd, to simplify it.
52555         Suggested by Eric Blake.
52556         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
52557         Don't include <stdbool.h>; not used.
52558         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
52559         (link_exists_p): Simplify implementation, since we can now assume
52560         dirfd and fstatat.
52561         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
52562
52563 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52564
52565         * gnulib-tool (func_get_dependencies): Fix sed script to
52566         match only tests.
52567
52568 2007-10-17  Bruno Haible  <bruno@clisp.org>
52569
52570         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
52571         allow locale names without encoding suffix.
52572         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52573         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52574
52575 2007-10-16  Bruno Haible  <bruno@clisp.org>
52576
52577         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
52578         * lib/getgroups.c (getgroups): Likewise.
52579         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
52580
52581 2007-10-16  Bruno Haible  <bruno@clisp.org>
52582
52583         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
52584         * modules/malloc-posix (License): Likewise.
52585         * modules/realloc-posix (License): Likewise.
52586         * modules/calloc-posix (License): Likewise.
52587         * modules/intprops (License): Change from GPL to LGPL, with
52588         Paul Eggert's approval.
52589
52590 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52591
52592         Merge glibc changes into lib/glob.c.
52593
52594         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
52595         2007-10-15 04:59:03 UTC.  Here are the changes:
52596
52597         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
52598
52599         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
52600
52601         * lib/glob.c: Add some branch prediction throughout.
52602
52603         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
52604
52605         [BZ #5103]
52606         * lib/glob.c (glob): Recognize patterns starting \/.
52607
52608         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
52609
52610         [BZ #3996]
52611         * lib/glob.c (attribute_hidden): Define if not defined.
52612         (glob): Unescape dirname, filename or username when needed and not
52613         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
52614         is NULL.  Handle unescaped [ in pattern without closing ].
52615         Don't pass GLOB_CHECK down to recursive glob for directories.
52616         (__glob_pattern_type): New function.
52617         (__glob_pattern_p): Implement using __glob_pattern_type.
52618         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
52619         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
52620         Remove unreachable code.
52621
52622         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
52623
52624         * lib/glob.c (glob_in_dir): Add some comments and asserts to
52625         explain why there are no leaks.
52626
52627         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
52628
52629         [BZ #3253]
52630         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
52631         time, rather allocate increasingly bigger arrays of pointers, if
52632         possible with alloca, if too large with malloc.
52633
52634 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52635
52636         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
52637         Problem reported by H.Merijn Brand in
52638         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
52639         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
52640         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52641
52642 2007-10-15  Bruno Haible  <bruno@clisp.org>
52643
52644         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
52645         with explicit rpl_ prefix.
52646         * lib/fopen.c (fopen): Likewise.
52647         * lib/freopen.c (freopen): Likewise.
52648         * lib/iconv.c (iconv): Likewise.
52649         * lib/iconv_close.c (iconv_close): Likewise.
52650
52651 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52652
52653         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
52654
52655 2007-10-15  Bruno Haible  <bruno@clisp.org>
52656
52657         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
52658         <stddef.h> instead of <stdlib.h> since we only need NULL.
52659         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52660
52661 2007-10-15  Bruno Haible  <bruno@clisp.org>
52662
52663         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
52664         Replace paragraph talking about LIBOBJS.
52665         Reported by Colin Watson <cjwatson@debian.org>.
52666
52667 2007-10-15  Bruno Haible  <bruno@clisp.org>
52668
52669         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52670         <stdlib.h> before using NULL.
52671
52672 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52673
52674         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52675         Reported by Albert Chin <china@thewrittenword.com>.
52676
52677 2007-10-14  Bruno Haible  <bruno@clisp.org>
52678
52679         * modules/iconv_open-utf-tests: New file.
52680         * tests/test-iconv-utf.c: New file.
52681
52682         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52683         * modules/iconv_open-utf: New file.
52684         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52685         (iconv, iconv_close): New declarations.
52686         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52687         be defined.
52688         (iconv_open): Add special handling of conversion between UTF-8 and
52689         UTF-{16,32}{BE,LE}.
52690         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52691         * lib/iconv_close.c: New file.
52692         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52693         gl_FUNC_ICONV_OPEN.
52694         (gl_FUNC_ICONV_OPEN): Use it.
52695         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52696         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52697         and REPLACE_ICONV_UTF.
52698         * modules/iconv_open (Depends-on): Add c-strcase.
52699         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52700         ICONV_CONST.
52701         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52702
52703 2007-10-13  Albert Chin  <china@thewrittenword.com>
52704             Bruno Haible  <bruno@clisp.org>
52705
52706         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52707         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52708
52709 2007-10-13  Bruno Haible  <bruno@clisp.org>
52710
52711         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52712         defined, use the ISO C99 inline semantics.
52713         * lib/argp.h (ARGP_EI): Likewise.
52714
52715 2007-10-13  Bruno Haible  <bruno@clisp.org>
52716
52717         Handle 'inline' change in gcc 4.3.0.
52718         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52719         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52720         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52721         argp_fmtstream_point): Disable 'extern' declaration if the function
52722         definition is going to be provided inline.
52723         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52724         semantics, not the ISO C99 inline semantics.
52725         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52726         'extern' declaration if the function definition is going to be provided
52727         inline.
52728         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52729         the GNU C inline semantics, not the ISO C99 inline semantics. With
52730         GCC 4.2, avoid a warning.
52731
52732 2007-10-13  Bruno Haible  <bruno@clisp.org>
52733
52734         * lib/freading.h (freading): Enable the use of __freading for
52735         glibc >= 2.7.
52736         * lib/freading.c (freading): Likewise.
52737
52738 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52739
52740         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52741         "warning: C99 inline functions are not supported; using GNU89".
52742
52743 2007-10-12  Bruno Haible  <bruno@clisp.org>
52744
52745         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52746         of 2.
52747         * tests/test-ceilf2.c: New file.
52748         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52749
52750         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52751         * modules/ceilf-tests: Update.
52752
52753 2007-10-12  Bruno Haible  <bruno@clisp.org>
52754
52755         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52756         of 2.
52757         * tests/test-floorf2.c: New file.
52758         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52759
52760         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52761         * modules/floorf-tests: Update.
52762
52763 2007-10-12  Bruno Haible  <bruno@clisp.org>
52764
52765         * tests/test-trunc2.c: New file.
52766         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52767
52768         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52769         * modules/trunc-tests: Update.
52770
52771 2007-10-12  Bruno Haible  <bruno@clisp.org>
52772
52773         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52774         of 2.
52775         * tests/test-truncf2.c: New file.
52776         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52777
52778         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52779         * modules/truncf-tests: Update.
52780
52781 2007-10-11  Eric Blake  <ebb9@byu.net>
52782
52783         Don't claim strerror is broken on Interix.
52784         * doc/functions/strerror.texi (strerror): Known broken systems are
52785         now Solaris 8, and not Interix.
52786         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52787         Interix on cross-compile.
52788         Reported by Martin Koeppe in
52789         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52790
52791 2007-10-11  Bruno Haible  <bruno@clisp.org>
52792
52793         * modules/i-ring-tests: New file.
52794         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52795         instead of assert.
52796
52797 2007-10-11  Bruno Haible  <bruno@clisp.org>
52798
52799         * modules/filenamecat-tests: New file.
52800         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52801         * lib/filenamecat.c: Remove test code.
52802
52803 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52804
52805         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52806
52807         * lib/strerror.c: Include <string.h> always, to test interface,
52808         and to remove the need for the dummy.
52809         Include intprops.h to compute width instead of doing it ourselves
52810         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52811         (strerror): Define it to return NULL if there's no system strerror.
52812         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52813         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52814         ancient pre-strerror Unix systems well any more.  Saying "unknown
52815         system error" is enough.
52816         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52817         simpler strerror.c implementation.
52818         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52819         Simplify the tests to reflect the simpler strerror implementation.
52820         * modules/strerror (Depends-on): Add intprops.
52821
52822 2007-10-09  Eric Blake  <ebb9@byu.net>
52823
52824         Silence test-fpending.
52825         * modules/fpending-tests (Files): Add wrapper script.
52826         * tests/test-fpending.sh: New file.
52827
52828 2007-10-09  Bruno Haible  <bruno@clisp.org>
52829
52830         * MODULES.html.sh (func_module): Don't create a hyperlink for
52831         function names like 'printf_frexp'.
52832         (Misc): Add crc, memxor.
52833         (Characteristics of floating types): New section.
52834         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52835         isnanf-nolibm, signbit, trunc, truncf, truncl.
52836         (Enhancements for ISO C 99 functions): New subsection Input/output.
52837         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52838         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52839         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52840         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52841         (Enhancements for POSIX:2001 functions): Add chdir-long.
52842         (File system functions): Add areadlink, chdir-safer, read-file.
52843         Remove cycle-check.
52844         (File system as inode set): New section.
52845         (Date and time): Add gethrxtime.
52846         (Multithreading): Add openmp.
52847         (Internationalization functions): Add localename.
52848         (Unicode string functions): Add unistr/u*-mbsnlen.
52849         (Support for maintaining and releasing projects): Add git-version-gen.
52850         (Lone files): Remove directories.
52851
52852 2007-10-08  Ben Pfaff  <blp@gnu.org>
52853
52854         * lib/xmalloca.h: Fix typo in comment.
52855
52856 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52857
52858         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52859         when avoiding problems with integer overflow.  Use a portable test
52860         instead.
52861
52862 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52863
52864         * modules/dummy (License): Change to LGPLv2+.
52865         * modules/float (License): Likewise
52866         * modules/realloc (License): Likewise
52867         * modules/stdlib (License): Likewise
52868
52869 2007-10-07  Bruno Haible  <bruno@clisp.org>
52870
52871         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52872         * floor.c (TWO_MANT_DIG): Likewise.
52873         * ceil.c (TWO_MANT_DIG): Likewise.
52874         Reported by Ben Pfaff.
52875
52876 2007-10-07  Bruno Haible  <bruno@clisp.org>
52877
52878         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52879         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52880         * lib/frexp.c (FUNC): Likewise.
52881         * lib/printf-frexp.h (printf_frexp): Likewise.
52882         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52883         * lib/printf-frexp.c (FUNC): Likewise.
52884         Suggested by Jim Meyering.
52885
52886 2007-10-07  Jim Meyering  <meyering@redhat.com>
52887
52888         Make xnanosleep's integer overflow test more robust.
52889         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52890         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52891
52892 2007-10-07  Bruno Haible  <bruno@clisp.org>
52893
52894         * NEWS: Mention the license change.
52895
52896         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52897         abbreviations in the modules files.
52898
52899         Change copyright notice from GPLv2+ to GPLv3+.
52900         * README: Change copyright notice.
52901         * MODULES.html.sh: Likewise.
52902         * build-aux/bootstrap.conf: Likewise.
52903         * build-aux/config.libpath: Likewise.
52904         * build-aux/csharpcomp.sh.in: Likewise.
52905         * build-aux/csharpexec.sh.in: Likewise.
52906         * build-aux/install-reloc: Likewise.
52907         * build-aux/javacomp.sh.in: Likewise.
52908         * build-aux/javaexec.sh.in: Likewise.
52909         * build-aux/ldd.sh.in: Likewise.
52910         * build-aux/reloc-ldflags: Likewise.
52911         * build-aux/relocatable.sh.in: Likewise.
52912         * build-aux/x-to-1.in: Likewise.
52913         * check-module: Likewise.
52914         * config/srclistvars.sh: Likewise.
52915         * gnulib-tool: Likewise.
52916         * lib/acl-internal.h: Likewise.
52917         * lib/acl.c: Likewise.
52918         * lib/acl.h: Likewise.
52919         * lib/acl_entries.c: Likewise.
52920         * lib/areadlink-with-size.c: Likewise.
52921         * lib/areadlink.c: Likewise.
52922         * lib/areadlink.h: Likewise.
52923         * lib/argmatch.c: Likewise.
52924         * lib/argmatch.h: Likewise.
52925         * lib/argp-ba.c: Likewise.
52926         * lib/argp-eexst.c: Likewise.
52927         * lib/argp-fmtstream.c: Likewise.
52928         * lib/argp-fmtstream.h: Likewise.
52929         * lib/argp-fs-xinl.c: Likewise.
52930         * lib/argp-help.c: Likewise.
52931         * lib/argp-namefrob.h: Likewise.
52932         * lib/argp-parse.c: Likewise.
52933         * lib/argp-pin.c: Likewise.
52934         * lib/argp-pv.c: Likewise.
52935         * lib/argp-pvh.c: Likewise.
52936         * lib/argp-xinl.c: Likewise.
52937         * lib/argp.h: Likewise.
52938         * lib/at-func.c: Likewise.
52939         * lib/atanl.c: Likewise.
52940         * lib/backupfile.c: Likewise.
52941         * lib/backupfile.h: Likewise.
52942         * lib/basename.c: Likewise.
52943         * lib/binary-io.h: Likewise.
52944         * lib/byteswap.in.h: Likewise.
52945         * lib/c-stack.c: Likewise.
52946         * lib/c-stack.h: Likewise.
52947         * lib/c-strcasestr.c: Likewise.
52948         * lib/c-strcasestr.h: Likewise.
52949         * lib/c-strstr.c: Likewise.
52950         * lib/c-strstr.h: Likewise.
52951         * lib/c-strtod.c: Likewise.
52952         * lib/calloc.c: Likewise.
52953         * lib/canon-host.c: Likewise.
52954         * lib/canon-host.h: Likewise.
52955         * lib/canonicalize-lgpl.c: Likewise.
52956         * lib/canonicalize.c: Likewise.
52957         * lib/canonicalize.h: Likewise.
52958         * lib/ceil.c: Likewise.
52959         * lib/ceilf.c: Likewise.
52960         * lib/ceill.c: Likewise.
52961         * lib/chdir-long.c: Likewise.
52962         * lib/chdir-long.h: Likewise.
52963         * lib/chdir-safer.c: Likewise.
52964         * lib/chdir-safer.h: Likewise.
52965         * lib/chown.c: Likewise.
52966         * lib/classpath.c: Likewise.
52967         * lib/classpath.h: Likewise.
52968         * lib/clean-temp.c: Likewise.
52969         * lib/clean-temp.h: Likewise.
52970         * lib/cloexec.c: Likewise.
52971         * lib/close-stream.c: Likewise.
52972         * lib/closein.c: Likewise.
52973         * lib/closein.h: Likewise.
52974         * lib/closeout.c: Likewise.
52975         * lib/closeout.h: Likewise.
52976         * lib/concat-filename.c: Likewise.
52977         * lib/copy-file.c: Likewise.
52978         * lib/copy-file.h: Likewise.
52979         * lib/count-one-bits.h: Likewise.
52980         * lib/crc.c: Likewise.
52981         * lib/crc.h: Likewise.
52982         * lib/creat-safer.c: Likewise.
52983         * lib/csharpcomp.c: Likewise.
52984         * lib/csharpcomp.h: Likewise.
52985         * lib/csharpexec.c: Likewise.
52986         * lib/csharpexec.h: Likewise.
52987         * lib/cycle-check.c: Likewise.
52988         * lib/cycle-check.h: Likewise.
52989         * lib/diacrit.c: Likewise.
52990         * lib/diacrit.h: Likewise.
52991         * lib/diffseq.h: Likewise.
52992         * lib/dirchownmod.c: Likewise.
52993         * lib/dirent.in.h: Likewise.
52994         * lib/dirfd.c: Likewise.
52995         * lib/dirfd.h: Likewise.
52996         * lib/dirname.c: Likewise.
52997         * lib/dirname.h: Likewise.
52998         * lib/dummy.c: Likewise.
52999         * lib/dup-safer.c: Likewise.
53000         * lib/dup2.c: Likewise.
53001         * lib/eealloc.h: Likewise.
53002         * lib/error.c: Likewise.
53003         * lib/error.h: Likewise.
53004         * lib/euidaccess.c: Likewise.
53005         * lib/exclude.c: Likewise.
53006         * lib/exclude.h: Likewise.
53007         * lib/execute.c: Likewise.
53008         * lib/execute.h: Likewise.
53009         * lib/exitfail.c: Likewise.
53010         * lib/exitfail.h: Likewise.
53011         * lib/expl.c: Likewise.
53012         * lib/fatal-signal.c: Likewise.
53013         * lib/fatal-signal.h: Likewise.
53014         * lib/fbufmode.c: Likewise.
53015         * lib/fbufmode.h: Likewise.
53016         * lib/fchdir.c: Likewise.
53017         * lib/fchmodat.c: Likewise.
53018         * lib/fchownat.c: Likewise.
53019         * lib/fcntl--.h: Likewise.
53020         * lib/fcntl-safer.h: Likewise.
53021         * lib/fcntl.in.h: Likewise.
53022         * lib/fd-safer.c: Likewise.
53023         * lib/fflush.c: Likewise.
53024         * lib/file-has-acl.c: Likewise.
53025         * lib/file-set.c: Likewise.
53026         * lib/file-type.c: Likewise.
53027         * lib/file-type.h: Likewise.
53028         * lib/fileblocks.c: Likewise.
53029         * lib/filemode.c: Likewise.
53030         * lib/filemode.h: Likewise.
53031         * lib/filename.h: Likewise.
53032         * lib/filenamecat.c: Likewise.
53033         * lib/filenamecat.h: Likewise.
53034         * lib/findprog.c: Likewise.
53035         * lib/findprog.h: Likewise.
53036         * lib/float.in.h: Likewise.
53037         * lib/floor.c: Likewise.
53038         * lib/floorf.c: Likewise.
53039         * lib/floorl.c: Likewise.
53040         * lib/fopen-safer.c: Likewise.
53041         * lib/fopen.c: Likewise.
53042         * lib/fpending.c: Likewise.
53043         * lib/fpending.h: Likewise.
53044         * lib/fprintf.c: Likewise.
53045         * lib/fprintftime.h: Likewise.
53046         * lib/fpucw.h: Likewise.
53047         * lib/fpurge.c: Likewise.
53048         * lib/fpurge.h: Likewise.
53049         * lib/freadable.c: Likewise.
53050         * lib/freadable.h: Likewise.
53051         * lib/freadahead.c: Likewise.
53052         * lib/freadahead.h: Likewise.
53053         * lib/freading.c: Likewise.
53054         * lib/freading.h: Likewise.
53055         * lib/free.c: Likewise.
53056         * lib/freopen.c: Likewise.
53057         * lib/frexp.c: Likewise.
53058         * lib/frexpl.c: Likewise.
53059         * lib/fseek.c: Likewise.
53060         * lib/fseterr.c: Likewise.
53061         * lib/fseterr.h: Likewise.
53062         * lib/fstatat.c: Likewise.
53063         * lib/fstrcmp.c: Likewise.
53064         * lib/fstrcmp.h: Likewise.
53065         * lib/fsusage.c: Likewise.
53066         * lib/fsusage.h: Likewise.
53067         * lib/ftell.c: Likewise.
53068         * lib/ftello.c: Likewise.
53069         * lib/fts-cycle.c: Likewise.
53070         * lib/fts.c: Likewise.
53071         * lib/fts_.h: Likewise.
53072         * lib/full-read.c: Likewise.
53073         * lib/full-read.h: Likewise.
53074         * lib/full-write.c: Likewise.
53075         * lib/full-write.h: Likewise.
53076         * lib/fwritable.c: Likewise.
53077         * lib/fwritable.h: Likewise.
53078         * lib/fwriteerror.c: Likewise.
53079         * lib/fwriteerror.h: Likewise.
53080         * lib/fwriting.c: Likewise.
53081         * lib/fwriting.h: Likewise.
53082         * lib/gcd.c: Likewise.
53083         * lib/gcd.h: Likewise.
53084         * lib/getcwd.c: Likewise.
53085         * lib/getdate.h: Likewise.
53086         * lib/getdate.y: Likewise.
53087         * lib/getdomainname.c: Likewise.
53088         * lib/getdomainname.h: Likewise.
53089         * lib/getgroups.c: Likewise.
53090         * lib/gethostname.c: Likewise.
53091         * lib/gethrxtime.c: Likewise.
53092         * lib/gethrxtime.h: Likewise.
53093         * lib/getloadavg.c: Likewise.
53094         * lib/getndelim2.c: Likewise.
53095         * lib/getndelim2.h: Likewise.
53096         * lib/getnline.c: Likewise.
53097         * lib/getnline.h: Likewise.
53098         * lib/getopt.c: Likewise.
53099         * lib/getopt.in.h: Likewise.
53100         * lib/getopt1.c: Likewise.
53101         * lib/getopt_int.h: Likewise.
53102         * lib/getpagesize.h: Likewise.
53103         * lib/getsubopt.c: Likewise.
53104         * lib/gettime.c: Likewise.
53105         * lib/getugroups.c: Likewise.
53106         * lib/getugroups.h: Likewise.
53107         * lib/getusershell.c: Likewise.
53108         * lib/gl_anyavltree_list1.h: Likewise.
53109         * lib/gl_anyavltree_list2.h: Likewise.
53110         * lib/gl_anyhash_list1.h: Likewise.
53111         * lib/gl_anyhash_list2.h: Likewise.
53112         * lib/gl_anylinked_list1.h: Likewise.
53113         * lib/gl_anylinked_list2.h: Likewise.
53114         * lib/gl_anyrbtree_list1.h: Likewise.
53115         * lib/gl_anyrbtree_list2.h: Likewise.
53116         * lib/gl_anytree_list1.h: Likewise.
53117         * lib/gl_anytree_list2.h: Likewise.
53118         * lib/gl_anytree_oset.h: Likewise.
53119         * lib/gl_anytreehash_list1.h: Likewise.
53120         * lib/gl_anytreehash_list2.h: Likewise.
53121         * lib/gl_array_list.c: Likewise.
53122         * lib/gl_array_list.h: Likewise.
53123         * lib/gl_array_oset.c: Likewise.
53124         * lib/gl_array_oset.h: Likewise.
53125         * lib/gl_avltree_list.c: Likewise.
53126         * lib/gl_avltree_list.h: Likewise.
53127         * lib/gl_avltree_oset.c: Likewise.
53128         * lib/gl_avltree_oset.h: Likewise.
53129         * lib/gl_avltreehash_list.c: Likewise.
53130         * lib/gl_avltreehash_list.h: Likewise.
53131         * lib/gl_carray_list.c: Likewise.
53132         * lib/gl_carray_list.h: Likewise.
53133         * lib/gl_linked_list.c: Likewise.
53134         * lib/gl_linked_list.h: Likewise.
53135         * lib/gl_linkedhash_list.c: Likewise.
53136         * lib/gl_linkedhash_list.h: Likewise.
53137         * lib/gl_list.c: Likewise.
53138         * lib/gl_list.h: Likewise.
53139         * lib/gl_oset.c: Likewise.
53140         * lib/gl_oset.h: Likewise.
53141         * lib/gl_rbtree_list.c: Likewise.
53142         * lib/gl_rbtree_list.h: Likewise.
53143         * lib/gl_rbtree_oset.c: Likewise.
53144         * lib/gl_rbtree_oset.h: Likewise.
53145         * lib/gl_rbtreehash_list.c: Likewise.
53146         * lib/gl_rbtreehash_list.h: Likewise.
53147         * lib/gl_sublist.c: Likewise.
53148         * lib/gl_sublist.h: Likewise.
53149         * lib/group-member.c: Likewise.
53150         * lib/group-member.h: Likewise.
53151         * lib/hard-locale.c: Likewise.
53152         * lib/hard-locale.h: Likewise.
53153         * lib/hash-pjw.c: Likewise.
53154         * lib/hash-pjw.h: Likewise.
53155         * lib/hash-triple.c: Likewise.
53156         * lib/hash.c: Likewise.
53157         * lib/hash.h: Likewise.
53158         * lib/human.c: Likewise.
53159         * lib/human.h: Likewise.
53160         * lib/i-ring.c: Likewise.
53161         * lib/i-ring.h: Likewise.
53162         * lib/idcache.c: Likewise.
53163         * lib/imaxabs.c: Likewise.
53164         * lib/imaxdiv.c: Likewise.
53165         * lib/inet_pton.c: Likewise.
53166         * lib/inet_pton.h: Likewise.
53167         * lib/intprops.h: Likewise.
53168         * lib/inttostr.c: Likewise.
53169         * lib/inttostr.h: Likewise.
53170         * lib/inttypes.in.h: Likewise.
53171         * lib/isapipe.c: Likewise.
53172         * lib/isdir.c: Likewise.
53173         * lib/isnan.c: Likewise.
53174         * lib/isnan.h: Likewise.
53175         * lib/isnanf.c: Likewise.
53176         * lib/isnanf.h: Likewise.
53177         * lib/isnanl-nolibm.h: Likewise.
53178         * lib/isnanl.c: Likewise.
53179         * lib/isnanl.h: Likewise.
53180         * lib/javacomp.c: Likewise.
53181         * lib/javacomp.h: Likewise.
53182         * lib/javaexec.c: Likewise.
53183         * lib/javaexec.h: Likewise.
53184         * lib/javaversion.c: Likewise.
53185         * lib/javaversion.h: Likewise.
53186         * lib/javaversion.java: Likewise.
53187         * lib/lbrkprop.h: Likewise.
53188         * lib/lchmod.h: Likewise.
53189         * lib/lchown.c: Likewise.
53190         * lib/ldexpl.c: Likewise.
53191         * lib/linebreak.c: Likewise.
53192         * lib/linebreak.h: Likewise.
53193         * lib/linebuffer.c: Likewise.
53194         * lib/linebuffer.h: Likewise.
53195         * lib/locale.in.h: Likewise.
53196         * lib/logl.c: Likewise.
53197         * lib/long-options.c: Likewise.
53198         * lib/long-options.h: Likewise.
53199         * lib/lstat.c: Likewise.
53200         * lib/lstat.h: Likewise.
53201         * lib/math.in.h: Likewise.
53202         * lib/mbchar.c: Likewise.
53203         * lib/mbchar.h: Likewise.
53204         * lib/mbfile.h: Likewise.
53205         * lib/mbiter.h: Likewise.
53206         * lib/mbscasecmp.c: Likewise.
53207         * lib/mbscasestr.c: Likewise.
53208         * lib/mbschr.c: Likewise.
53209         * lib/mbscspn.c: Likewise.
53210         * lib/mbslen.c: Likewise.
53211         * lib/mbsncasecmp.c: Likewise.
53212         * lib/mbsnlen.c: Likewise.
53213         * lib/mbspbrk.c: Likewise.
53214         * lib/mbspcasecmp.c: Likewise.
53215         * lib/mbsrchr.c: Likewise.
53216         * lib/mbssep.c: Likewise.
53217         * lib/mbsspn.c: Likewise.
53218         * lib/mbsstr.c: Likewise.
53219         * lib/mbstok_r.c: Likewise.
53220         * lib/mbswidth.c: Likewise.
53221         * lib/mbswidth.h: Likewise.
53222         * lib/mbuiter.h: Likewise.
53223         * lib/memcasecmp.c: Likewise.
53224         * lib/memcasecmp.h: Likewise.
53225         * lib/memchr.c: Likewise.
53226         * lib/memcmp.c: Likewise.
53227         * lib/memcoll.c: Likewise.
53228         * lib/memcoll.h: Likewise.
53229         * lib/memcpy.c: Likewise.
53230         * lib/memrchr.c: Likewise.
53231         * lib/mkancesdirs.c: Likewise.
53232         * lib/mkdir-p.c: Likewise.
53233         * lib/mkdir-p.h: Likewise.
53234         * lib/mkdir.c: Likewise.
53235         * lib/mkdirat.c: Likewise.
53236         * lib/mkdtemp.c: Likewise.
53237         * lib/mkstemp-safer.c: Likewise.
53238         * lib/mkstemp.c: Likewise.
53239         * lib/modechange.c: Likewise.
53240         * lib/modechange.h: Likewise.
53241         * lib/mountlist.c: Likewise.
53242         * lib/mountlist.h: Likewise.
53243         * lib/mpsort.c: Likewise.
53244         * lib/nanosleep.c: Likewise.
53245         * lib/obstack.c: Likewise.
53246         * lib/obstack.h: Likewise.
53247         * lib/open-safer.c: Likewise.
53248         * lib/open.c: Likewise.
53249         * lib/openat-die.c: Likewise.
53250         * lib/openat-priv.h: Likewise.
53251         * lib/openat-proc.c: Likewise.
53252         * lib/openat.c: Likewise.
53253         * lib/openat.h: Likewise.
53254         * lib/pagealign_alloc.c: Likewise.
53255         * lib/pagealign_alloc.h: Likewise.
53256         * lib/physmem.c: Likewise.
53257         * lib/physmem.h: Likewise.
53258         * lib/pipe-safer.c: Likewise.
53259         * lib/pipe.c: Likewise.
53260         * lib/pipe.h: Likewise.
53261         * lib/posixtm.c: Likewise.
53262         * lib/posixtm.h: Likewise.
53263         * lib/posixver.c: Likewise.
53264         * lib/printf-frexp.c: Likewise.
53265         * lib/printf-frexp.h: Likewise.
53266         * lib/printf-frexpl.c: Likewise.
53267         * lib/printf-frexpl.h: Likewise.
53268         * lib/printf.c: Likewise.
53269         * lib/progname.c: Likewise.
53270         * lib/progname.h: Likewise.
53271         * lib/progreloc.c: Likewise.
53272         * lib/putenv.c: Likewise.
53273         * lib/quote.c: Likewise.
53274         * lib/quote.h: Likewise.
53275         * lib/quotearg.c: Likewise.
53276         * lib/quotearg.h: Likewise.
53277         * lib/raise.c: Likewise.
53278         * lib/readline.c: Likewise.
53279         * lib/readline.h: Likewise.
53280         * lib/readlink.c: Likewise.
53281         * lib/readtokens.c: Likewise.
53282         * lib/readtokens.h: Likewise.
53283         * lib/readtokens0.c: Likewise.
53284         * lib/readtokens0.h: Likewise.
53285         * lib/readutmp.c: Likewise.
53286         * lib/readutmp.h: Likewise.
53287         * lib/realloc.c: Likewise.
53288         * lib/relocwrapper.c: Likewise.
53289         * lib/rename-dest-slash.c: Likewise.
53290         * lib/rename.c: Likewise.
53291         * lib/rmdir.c: Likewise.
53292         * lib/rpmatch.c: Likewise.
53293         * lib/safe-read.c: Likewise.
53294         * lib/safe-read.h: Likewise.
53295         * lib/safe-write.c: Likewise.
53296         * lib/safe-write.h: Likewise.
53297         * lib/same-inode.h: Likewise.
53298         * lib/same.c: Likewise.
53299         * lib/same.h: Likewise.
53300         * lib/save-cwd.c: Likewise.
53301         * lib/save-cwd.h: Likewise.
53302         * lib/savedir.c: Likewise.
53303         * lib/savedir.h: Likewise.
53304         * lib/savewd.c: Likewise.
53305         * lib/savewd.h: Likewise.
53306         * lib/search.in.h: Likewise.
53307         * lib/setenv.c: Likewise.
53308         * lib/setenv.h: Likewise.
53309         * lib/settime.c: Likewise.
53310         * lib/sh-quote.c: Likewise.
53311         * lib/sh-quote.h: Likewise.
53312         * lib/sig2str.c: Likewise.
53313         * lib/sig2str.h: Likewise.
53314         * lib/signal.in.h: Likewise.
53315         * lib/signbitd.c: Likewise.
53316         * lib/signbitf.c: Likewise.
53317         * lib/signbitl.c: Likewise.
53318         * lib/sigprocmask.c: Likewise.
53319         * lib/sincosl.c: Likewise.
53320         * lib/sleep.c: Likewise.
53321         * lib/sprintf.c: Likewise.
53322         * lib/sqrtl.c: Likewise.
53323         * lib/stat-time.h: Likewise.
53324         * lib/stdio--.h: Likewise.
53325         * lib/stdio-safer.h: Likewise.
53326         * lib/stdlib--.h: Likewise.
53327         * lib/stdlib-safer.h: Likewise.
53328         * lib/stdlib.in.h: Likewise.
53329         * lib/stpcpy.c: Likewise.
53330         * lib/stpncpy.c: Likewise.
53331         * lib/strchrnul.c: Likewise.
53332         * lib/strcspn.c: Likewise.
53333         * lib/strerror.c: Likewise.
53334         * lib/strftime.c: Likewise.
53335         * lib/strftime.h: Likewise.
53336         * lib/striconveh.c: Likewise.
53337         * lib/striconveh.h: Likewise.
53338         * lib/striconveha.c: Likewise.
53339         * lib/striconveha.h: Likewise.
53340         * lib/stripslash.c: Likewise.
53341         * lib/strnlen1.c: Likewise.
53342         * lib/strnlen1.h: Likewise.
53343         * lib/strtod.c: Likewise.
53344         * lib/strtoimax.c: Likewise.
53345         * lib/strtok_r.c: Likewise.
53346         * lib/strtol.c: Likewise.
53347         * lib/strtoll.c: Likewise.
53348         * lib/strtoul.c: Likewise.
53349         * lib/strtoull.c: Likewise.
53350         * lib/sysexits.in.h: Likewise.
53351         * lib/tempname.c: Likewise.
53352         * lib/tempname.h: Likewise.
53353         * lib/timespec.h: Likewise.
53354         * lib/tls.c: Likewise.
53355         * lib/tls.h: Likewise.
53356         * lib/tmpdir.c: Likewise.
53357         * lib/tmpdir.h: Likewise.
53358         * lib/tmpfile-safer.c: Likewise.
53359         * lib/tmpfile.c: Likewise.
53360         * lib/trigl.c: Likewise.
53361         * lib/trigl.h: Likewise.
53362         * lib/trim.c: Likewise.
53363         * lib/trim.h: Likewise.
53364         * lib/trunc.c: Likewise.
53365         * lib/truncf.c: Likewise.
53366         * lib/truncl.c: Likewise.
53367         * lib/tsearch.c: Likewise.
53368         * lib/unicodeio.c: Likewise.
53369         * lib/unicodeio.h: Likewise.
53370         * lib/unistd--.h: Likewise.
53371         * lib/unistd-safer.h: Likewise.
53372         * lib/unistdio/ulc-fprintf.c: Likewise.
53373         * lib/unistdio/ulc-vfprintf.c: Likewise.
53374         * lib/unlinkdir.c: Likewise.
53375         * lib/unlinkdir.h: Likewise.
53376         * lib/unlocked-io.h: Likewise.
53377         * lib/unsetenv.c: Likewise.
53378         * lib/userspec.c: Likewise.
53379         * lib/utime.c: Likewise.
53380         * lib/utimecmp.c: Likewise.
53381         * lib/utimecmp.h: Likewise.
53382         * lib/utimens.c: Likewise.
53383         * lib/verify.h: Likewise.
53384         * lib/verror.c: Likewise.
53385         * lib/verror.h: Likewise.
53386         * lib/version-etc-fsf.c: Likewise.
53387         * lib/version-etc.c: Likewise.
53388         * lib/version-etc.h: Likewise.
53389         * lib/vfprintf.c: Likewise.
53390         * lib/vprintf.c: Likewise.
53391         * lib/vsprintf.c: Likewise.
53392         * lib/w32spawn.h: Likewise.
53393         * lib/wait-process.c: Likewise.
53394         * lib/wait-process.h: Likewise.
53395         * lib/wcwidth.c: Likewise.
53396         * lib/write-any-file.c: Likewise.
53397         * lib/xalloc-die.c: Likewise.
53398         * lib/xalloc.h: Likewise.
53399         * lib/xasprintf.c: Likewise.
53400         * lib/xgetcwd.c: Likewise.
53401         * lib/xgetcwd.h: Likewise.
53402         * lib/xgetdomainname.c: Likewise.
53403         * lib/xgetdomainname.h: Likewise.
53404         * lib/xgethostname.c: Likewise.
53405         * lib/xmalloc.c: Likewise.
53406         * lib/xmalloca.c: Likewise.
53407         * lib/xmalloca.h: Likewise.
53408         * lib/xmemcoll.c: Likewise.
53409         * lib/xnanosleep.c: Likewise.
53410         * lib/xreadlink.c: Likewise.
53411         * lib/xreadlink.h: Likewise.
53412         * lib/xsetenv.c: Likewise.
53413         * lib/xsetenv.h: Likewise.
53414         * lib/xstriconv.c: Likewise.
53415         * lib/xstriconv.h: Likewise.
53416         * lib/xstrndup.c: Likewise.
53417         * lib/xstrndup.h: Likewise.
53418         * lib/xstrtod.c: Likewise.
53419         * lib/xstrtod.h: Likewise.
53420         * lib/xstrtol-error.c: Likewise.
53421         * lib/xstrtol.c: Likewise.
53422         * lib/xstrtol.h: Likewise.
53423         * lib/xtime.h: Likewise.
53424         * lib/xvasprintf.c: Likewise.
53425         * lib/xvasprintf.h: Likewise.
53426         * lib/yesno.c: Likewise.
53427         * lib/yesno.h: Likewise.
53428         * posix-modules: Likewise.
53429         * tests/test-alloca-opt.c: Likewise.
53430         * tests/test-arcfour.c: Likewise.
53431         * tests/test-arctwo.c: Likewise.
53432         * tests/test-argmatch.c: Likewise.
53433         * tests/test-argp-2.sh: Likewise.
53434         * tests/test-argp.c: Likewise.
53435         * tests/test-arpa_inet.c: Likewise.
53436         * tests/test-array_list.c: Likewise.
53437         * tests/test-array_oset.c: Likewise.
53438         * tests/test-atexit.c: Likewise.
53439         * tests/test-avltree_list.c: Likewise.
53440         * tests/test-avltree_oset.c: Likewise.
53441         * tests/test-avltreehash_list.c: Likewise.
53442         * tests/test-base64.c: Likewise.
53443         * tests/test-binary-io.c: Likewise.
53444         * tests/test-byteswap.c: Likewise.
53445         * tests/test-c-ctype.c: Likewise.
53446         * tests/test-c-strcasecmp.c: Likewise.
53447         * tests/test-c-strcasestr.c: Likewise.
53448         * tests/test-c-strncasecmp.c: Likewise.
53449         * tests/test-c-strstr.c: Likewise.
53450         * tests/test-canonicalize-lgpl.c: Likewise.
53451         * tests/test-canonicalize.c: Likewise.
53452         * tests/test-carray_list.c: Likewise.
53453         * tests/test-ceilf.c: Likewise.
53454         * tests/test-ceill.c: Likewise.
53455         * tests/test-count-one-bits.c: Likewise.
53456         * tests/test-crc.c: Likewise.
53457         * tests/test-dirname.c: Likewise.
53458         * tests/test-fbufmode.c: Likewise.
53459         * tests/test-fcntl.c: Likewise.
53460         * tests/test-fflush.c: Likewise.
53461         * tests/test-floorf.c: Likewise.
53462         * tests/test-floorl.c: Likewise.
53463         * tests/test-fopen.c: Likewise.
53464         * tests/test-fprintf-posix.c: Likewise.
53465         * tests/test-fprintf-posix.h: Likewise.
53466         * tests/test-fpurge.c: Likewise.
53467         * tests/test-freadable.c: Likewise.
53468         * tests/test-freadahead.c: Likewise.
53469         * tests/test-freading.c: Likewise.
53470         * tests/test-freopen.c: Likewise.
53471         * tests/test-frexp.c: Likewise.
53472         * tests/test-frexpl.c: Likewise.
53473         * tests/test-fseek.c: Likewise.
53474         * tests/test-fseeko.c: Likewise.
53475         * tests/test-fseterr.c: Likewise.
53476         * tests/test-fstrcmp.c: Likewise.
53477         * tests/test-ftell.c: Likewise.
53478         * tests/test-ftello.c: Likewise.
53479         * tests/test-fwritable.c: Likewise.
53480         * tests/test-fwriting.c: Likewise.
53481         * tests/test-getaddrinfo.c: Likewise.
53482         * tests/test-getpass.c: Likewise.
53483         * tests/test-gettimeofday.c: Likewise.
53484         * tests/test-hmac-md5.c: Likewise.
53485         * tests/test-hmac-sha1.c: Likewise.
53486         * tests/test-iconv.c: Likewise.
53487         * tests/test-iconvme.c: Likewise.
53488         * tests/test-inttypes.c: Likewise.
53489         * tests/test-isnan.c: Likewise.
53490         * tests/test-isnanf.c: Likewise.
53491         * tests/test-isnanl-nolibm.c: Likewise.
53492         * tests/test-isnanl.c: Likewise.
53493         * tests/test-isnanl.h: Likewise.
53494         * tests/test-ldexpl.c: Likewise.
53495         * tests/test-linked_list.c: Likewise.
53496         * tests/test-linkedhash_list.c: Likewise.
53497         * tests/test-locale.c: Likewise.
53498         * tests/test-localename.c: Likewise.
53499         * tests/test-lock.c: Likewise.
53500         * tests/test-lseek.c: Likewise.
53501         * tests/test-malloca.c: Likewise.
53502         * tests/test-math.c: Likewise.
53503         * tests/test-mbscasecmp.c: Likewise.
53504         * tests/test-mbscasestr1.c: Likewise.
53505         * tests/test-mbscasestr2.c: Likewise.
53506         * tests/test-mbscasestr3.c: Likewise.
53507         * tests/test-mbscasestr4.c: Likewise.
53508         * tests/test-mbschr.c: Likewise.
53509         * tests/test-mbscspn.c: Likewise.
53510         * tests/test-mbsncasecmp.c: Likewise.
53511         * tests/test-mbspbrk.c: Likewise.
53512         * tests/test-mbspcasecmp.c: Likewise.
53513         * tests/test-mbsrchr.c: Likewise.
53514         * tests/test-mbsspn.c: Likewise.
53515         * tests/test-mbsstr1.c: Likewise.
53516         * tests/test-mbsstr2.c: Likewise.
53517         * tests/test-mbsstr3.c: Likewise.
53518         * tests/test-md5.c: Likewise.
53519         * tests/test-memmem.c: Likewise.
53520         * tests/test-netinet_in.c: Likewise.
53521         * tests/test-open.c: Likewise.
53522         * tests/test-printf-frexp.c: Likewise.
53523         * tests/test-printf-frexpl.c: Likewise.
53524         * tests/test-printf-posix.c: Likewise.
53525         * tests/test-printf-posix.h: Likewise.
53526         * tests/test-rbtree_list.c: Likewise.
53527         * tests/test-rbtree_oset.c: Likewise.
53528         * tests/test-rbtreehash_list.c: Likewise.
53529         * tests/test-read-file.c: Likewise.
53530         * tests/test-rijndael.c: Likewise.
53531         * tests/test-search.c: Likewise.
53532         * tests/test-signbit.c: Likewise.
53533         * tests/test-sleep.c: Likewise.
53534         * tests/test-snprintf-posix.c: Likewise.
53535         * tests/test-snprintf-posix.h: Likewise.
53536         * tests/test-snprintf.c: Likewise.
53537         * tests/test-sprintf-posix.c: Likewise.
53538         * tests/test-sprintf-posix.h: Likewise.
53539         * tests/test-stat-time.c: Likewise.
53540         * tests/test-stdbool.c: Likewise.
53541         * tests/test-stdint.c: Likewise.
53542         * tests/test-stdio.c: Likewise.
53543         * tests/test-stdlib.c: Likewise.
53544         * tests/test-stpncpy.c: Likewise.
53545         * tests/test-strcasestr.c: Likewise.
53546         * tests/test-striconv.c: Likewise.
53547         * tests/test-striconveh.c: Likewise.
53548         * tests/test-striconveha.c: Likewise.
53549         * tests/test-string.c: Likewise.
53550         * tests/test-sys_select.c: Likewise.
53551         * tests/test-sys_socket.c: Likewise.
53552         * tests/test-sys_stat.c: Likewise.
53553         * tests/test-sys_time.c: Likewise.
53554         * tests/test-sysexits.c: Likewise.
53555         * tests/test-time.c: Likewise.
53556         * tests/test-tls.c: Likewise.
53557         * tests/test-trunc.c: Likewise.
53558         * tests/test-truncf.c: Likewise.
53559         * tests/test-truncl.c: Likewise.
53560         * tests/test-unistd.c: Likewise.
53561         * tests/test-vasnprintf-posix.c: Likewise.
53562         * tests/test-vasnprintf-posix2.c: Likewise.
53563         * tests/test-vasnprintf.c: Likewise.
53564         * tests/test-vasprintf-posix.c: Likewise.
53565         * tests/test-vasprintf.c: Likewise.
53566         * tests/test-verify.c: Likewise.
53567         * tests/test-vfprintf-posix.c: Likewise.
53568         * tests/test-vprintf-posix.c: Likewise.
53569         * tests/test-vsnprintf-posix.c: Likewise.
53570         * tests/test-vsnprintf.c: Likewise.
53571         * tests/test-vsprintf-posix.c: Likewise.
53572         * tests/test-wchar.c: Likewise.
53573         * tests/test-wctype.c: Likewise.
53574         * tests/test-wcwidth.c: Likewise.
53575         * tests/test-xstrtol.c: Likewise.
53576         * tests/test-xvasprintf.c: Likewise.
53577         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53578         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53579         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53580         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53581         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53582         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53583         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53584         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53585         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53586         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53587         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53588         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53589         * tests/uniname/test-uninames.c: Likewise.
53590         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53591         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
53592         * tests/unistdio/test-u16-printf1.h: Likewise.
53593         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53594         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53595         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53596         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53597         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53598         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53599         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53600         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
53601         * tests/unistdio/test-u32-printf1.h: Likewise.
53602         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53603         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53604         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53605         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53606         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53607         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53608         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53609         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
53610         * tests/unistdio/test-u8-printf1.h: Likewise.
53611         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53612         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53613         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53614         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53615         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53616         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53617         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53618         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
53619         * tests/unistdio/test-ulc-printf1.h: Likewise.
53620         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53621         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53622         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53623         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53624         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53625         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53626         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53627         * tests/uniwidth/test-u16-width.c: Likewise.
53628         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53629         * tests/uniwidth/test-u32-width.c: Likewise.
53630         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53631         * tests/uniwidth/test-u8-width.c: Likewise.
53632         * tests/uniwidth/test-uc_width.c: Likewise.
53633         * config/srclist-update: Likewise.
53634         (fixlicense): Update to GPLv3+.
53635
53636         Change copyright notice from LGPLv2.1+ to LGPLv3+.
53637         * tests/test-tsearch.c: Change copyright notice.
53638
53639         Change copyright notice from LGPLv2.0+ to LGPLv3+.
53640         * lib/c-strcaseeq.h: Change copyright notice.
53641         * lib/streq.h: Likewise.
53642         * lib/uniconv.h: Likewise.
53643         * lib/uniconv/u-conv-from-enc.h: Likewise.
53644         * lib/uniconv/u-conv-to-enc.h: Likewise.
53645         * lib/uniconv/u-strconv-from-enc.h: Likewise.
53646         * lib/uniconv/u-strconv-to-enc.h: Likewise.
53647         * lib/uniconv/u16-conv-from-enc.c: Likewise.
53648         * lib/uniconv/u16-conv-to-enc.c: Likewise.
53649         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
53650         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
53651         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
53652         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
53653         * lib/uniconv/u32-conv-from-enc.c: Likewise.
53654         * lib/uniconv/u32-conv-to-enc.c: Likewise.
53655         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
53656         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
53657         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
53658         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
53659         * lib/uniconv/u8-conv-from-enc.c: Likewise.
53660         * lib/uniconv/u8-conv-to-enc.c: Likewise.
53661         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
53662         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
53663         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
53664         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53665         * lib/uniname.h: Likewise.
53666         * lib/uniname/uniname.c: Likewise.
53667         * lib/unistdio.h: Likewise.
53668         * lib/unistdio/u-asnprintf.h: Likewise.
53669         * lib/unistdio/u-asprintf.h: Likewise.
53670         * lib/unistdio/u-printf-args.c: Likewise.
53671         * lib/unistdio/u-printf-args.h: Likewise.
53672         * lib/unistdio/u-printf-parse.h: Likewise.
53673         * lib/unistdio/u-snprintf.h: Likewise.
53674         * lib/unistdio/u-sprintf.h: Likewise.
53675         * lib/unistdio/u-vasprintf.h: Likewise.
53676         * lib/unistdio/u-vsnprintf.h: Likewise.
53677         * lib/unistdio/u-vsprintf.h: Likewise.
53678         * lib/unistdio/u16-asnprintf.c: Likewise.
53679         * lib/unistdio/u16-asprintf.c: Likewise.
53680         * lib/unistdio/u16-printf-parse.c: Likewise.
53681         * lib/unistdio/u16-snprintf.c: Likewise.
53682         * lib/unistdio/u16-sprintf.c: Likewise.
53683         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53684         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53685         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53686         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53687         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53688         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53689         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53690         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53691         * lib/unistdio/u16-vasnprintf.c: Likewise.
53692         * lib/unistdio/u16-vasprintf.c: Likewise.
53693         * lib/unistdio/u16-vsnprintf.c: Likewise.
53694         * lib/unistdio/u16-vsprintf.c: Likewise.
53695         * lib/unistdio/u32-asnprintf.c: Likewise.
53696         * lib/unistdio/u32-asprintf.c: Likewise.
53697         * lib/unistdio/u32-printf-parse.c: Likewise.
53698         * lib/unistdio/u32-snprintf.c: Likewise.
53699         * lib/unistdio/u32-sprintf.c: Likewise.
53700         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53701         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53702         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53703         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53704         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53705         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53706         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53707         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53708         * lib/unistdio/u32-vasnprintf.c: Likewise.
53709         * lib/unistdio/u32-vasprintf.c: Likewise.
53710         * lib/unistdio/u32-vsnprintf.c: Likewise.
53711         * lib/unistdio/u32-vsprintf.c: Likewise.
53712         * lib/unistdio/u8-asnprintf.c: Likewise.
53713         * lib/unistdio/u8-asprintf.c: Likewise.
53714         * lib/unistdio/u8-printf-parse.c: Likewise.
53715         * lib/unistdio/u8-snprintf.c: Likewise.
53716         * lib/unistdio/u8-sprintf.c: Likewise.
53717         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53718         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53719         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53720         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53721         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53722         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53723         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53724         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53725         * lib/unistdio/u8-vasnprintf.c: Likewise.
53726         * lib/unistdio/u8-vasprintf.c: Likewise.
53727         * lib/unistdio/u8-vsnprintf.c: Likewise.
53728         * lib/unistdio/u8-vsprintf.c: Likewise.
53729         * lib/unistdio/ulc-asnprintf.c: Likewise.
53730         * lib/unistdio/ulc-asprintf.c: Likewise.
53731         * lib/unistdio/ulc-printf-parse.c: Likewise.
53732         * lib/unistdio/ulc-snprintf.c: Likewise.
53733         * lib/unistdio/ulc-sprintf.c: Likewise.
53734         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53735         * lib/unistdio/ulc-vasprintf.c: Likewise.
53736         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53737         * lib/unistdio/ulc-vsprintf.c: Likewise.
53738         * lib/unistr.h: Likewise.
53739         * lib/unistr/u-cpy-alloc.h: Likewise.
53740         * lib/unistr/u-cpy.h: Likewise.
53741         * lib/unistr/u-endswith.h: Likewise.
53742         * lib/unistr/u-move.h: Likewise.
53743         * lib/unistr/u-set.h: Likewise.
53744         * lib/unistr/u-startswith.h: Likewise.
53745         * lib/unistr/u-stpcpy.h: Likewise.
53746         * lib/unistr/u-stpncpy.h: Likewise.
53747         * lib/unistr/u-strcat.h: Likewise.
53748         * lib/unistr/u-strcpy.h: Likewise.
53749         * lib/unistr/u-strcspn.h: Likewise.
53750         * lib/unistr/u-strdup.h: Likewise.
53751         * lib/unistr/u-strlen.h: Likewise.
53752         * lib/unistr/u-strncat.h: Likewise.
53753         * lib/unistr/u-strncpy.h: Likewise.
53754         * lib/unistr/u-strnlen.h: Likewise.
53755         * lib/unistr/u-strpbrk.h: Likewise.
53756         * lib/unistr/u-strspn.h: Likewise.
53757         * lib/unistr/u-strstr.h: Likewise.
53758         * lib/unistr/u-strtok.h: Likewise.
53759         * lib/unistr/u16-check.c: Likewise.
53760         * lib/unistr/u16-chr.c: Likewise.
53761         * lib/unistr/u16-cmp.c: Likewise.
53762         * lib/unistr/u16-cpy-alloc.c: Likewise.
53763         * lib/unistr/u16-cpy.c: Likewise.
53764         * lib/unistr/u16-endswith.c: Likewise.
53765         * lib/unistr/u16-mblen.c: Likewise.
53766         * lib/unistr/u16-mbsnlen.c: Likewise.
53767         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53768         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53769         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53770         * lib/unistr/u16-mbtouc.c: Likewise.
53771         * lib/unistr/u16-mbtoucr.c: Likewise.
53772         * lib/unistr/u16-move.c: Likewise.
53773         * lib/unistr/u16-next.c: Likewise.
53774         * lib/unistr/u16-prev.c: Likewise.
53775         * lib/unistr/u16-set.c: Likewise.
53776         * lib/unistr/u16-startswith.c: Likewise.
53777         * lib/unistr/u16-stpcpy.c: Likewise.
53778         * lib/unistr/u16-stpncpy.c: Likewise.
53779         * lib/unistr/u16-strcat.c: Likewise.
53780         * lib/unistr/u16-strchr.c: Likewise.
53781         * lib/unistr/u16-strcmp.c: Likewise.
53782         * lib/unistr/u16-strcpy.c: Likewise.
53783         * lib/unistr/u16-strcspn.c: Likewise.
53784         * lib/unistr/u16-strdup.c: Likewise.
53785         * lib/unistr/u16-strlen.c: Likewise.
53786         * lib/unistr/u16-strmblen.c: Likewise.
53787         * lib/unistr/u16-strmbtouc.c: Likewise.
53788         * lib/unistr/u16-strncat.c: Likewise.
53789         * lib/unistr/u16-strncmp.c: Likewise.
53790         * lib/unistr/u16-strncpy.c: Likewise.
53791         * lib/unistr/u16-strnlen.c: Likewise.
53792         * lib/unistr/u16-strpbrk.c: Likewise.
53793         * lib/unistr/u16-strrchr.c: Likewise.
53794         * lib/unistr/u16-strspn.c: Likewise.
53795         * lib/unistr/u16-strstr.c: Likewise.
53796         * lib/unistr/u16-strtok.c: Likewise.
53797         * lib/unistr/u16-to-u32.c: Likewise.
53798         * lib/unistr/u16-to-u8.c: Likewise.
53799         * lib/unistr/u16-uctomb-aux.c: Likewise.
53800         * lib/unistr/u16-uctomb.c: Likewise.
53801         * lib/unistr/u32-check.c: Likewise.
53802         * lib/unistr/u32-chr.c: Likewise.
53803         * lib/unistr/u32-cmp.c: Likewise.
53804         * lib/unistr/u32-cpy-alloc.c: Likewise.
53805         * lib/unistr/u32-cpy.c: Likewise.
53806         * lib/unistr/u32-endswith.c: Likewise.
53807         * lib/unistr/u32-mblen.c: Likewise.
53808         * lib/unistr/u32-mbsnlen.c: Likewise.
53809         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53810         * lib/unistr/u32-mbtouc.c: Likewise.
53811         * lib/unistr/u32-mbtoucr.c: Likewise.
53812         * lib/unistr/u32-move.c: Likewise.
53813         * lib/unistr/u32-next.c: Likewise.
53814         * lib/unistr/u32-prev.c: Likewise.
53815         * lib/unistr/u32-set.c: Likewise.
53816         * lib/unistr/u32-startswith.c: Likewise.
53817         * lib/unistr/u32-stpcpy.c: Likewise.
53818         * lib/unistr/u32-stpncpy.c: Likewise.
53819         * lib/unistr/u32-strcat.c: Likewise.
53820         * lib/unistr/u32-strchr.c: Likewise.
53821         * lib/unistr/u32-strcmp.c: Likewise.
53822         * lib/unistr/u32-strcpy.c: Likewise.
53823         * lib/unistr/u32-strcspn.c: Likewise.
53824         * lib/unistr/u32-strdup.c: Likewise.
53825         * lib/unistr/u32-strlen.c: Likewise.
53826         * lib/unistr/u32-strmblen.c: Likewise.
53827         * lib/unistr/u32-strmbtouc.c: Likewise.
53828         * lib/unistr/u32-strncat.c: Likewise.
53829         * lib/unistr/u32-strncmp.c: Likewise.
53830         * lib/unistr/u32-strncpy.c: Likewise.
53831         * lib/unistr/u32-strnlen.c: Likewise.
53832         * lib/unistr/u32-strpbrk.c: Likewise.
53833         * lib/unistr/u32-strrchr.c: Likewise.
53834         * lib/unistr/u32-strspn.c: Likewise.
53835         * lib/unistr/u32-strstr.c: Likewise.
53836         * lib/unistr/u32-strtok.c: Likewise.
53837         * lib/unistr/u32-to-u16.c: Likewise.
53838         * lib/unistr/u32-to-u8.c: Likewise.
53839         * lib/unistr/u32-uctomb.c: Likewise.
53840         * lib/unistr/u8-check.c: Likewise.
53841         * lib/unistr/u8-chr.c: Likewise.
53842         * lib/unistr/u8-cmp.c: Likewise.
53843         * lib/unistr/u8-cpy-alloc.c: Likewise.
53844         * lib/unistr/u8-cpy.c: Likewise.
53845         * lib/unistr/u8-endswith.c: Likewise.
53846         * lib/unistr/u8-mblen.c: Likewise.
53847         * lib/unistr/u8-mbsnlen.c: Likewise.
53848         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53849         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53850         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53851         * lib/unistr/u8-mbtouc.c: Likewise.
53852         * lib/unistr/u8-mbtoucr.c: Likewise.
53853         * lib/unistr/u8-move.c: Likewise.
53854         * lib/unistr/u8-next.c: Likewise.
53855         * lib/unistr/u8-prev.c: Likewise.
53856         * lib/unistr/u8-set.c: Likewise.
53857         * lib/unistr/u8-startswith.c: Likewise.
53858         * lib/unistr/u8-stpcpy.c: Likewise.
53859         * lib/unistr/u8-stpncpy.c: Likewise.
53860         * lib/unistr/u8-strcat.c: Likewise.
53861         * lib/unistr/u8-strchr.c: Likewise.
53862         * lib/unistr/u8-strcmp.c: Likewise.
53863         * lib/unistr/u8-strcpy.c: Likewise.
53864         * lib/unistr/u8-strcspn.c: Likewise.
53865         * lib/unistr/u8-strdup.c: Likewise.
53866         * lib/unistr/u8-strlen.c: Likewise.
53867         * lib/unistr/u8-strmblen.c: Likewise.
53868         * lib/unistr/u8-strmbtouc.c: Likewise.
53869         * lib/unistr/u8-strncat.c: Likewise.
53870         * lib/unistr/u8-strncmp.c: Likewise.
53871         * lib/unistr/u8-strncpy.c: Likewise.
53872         * lib/unistr/u8-strnlen.c: Likewise.
53873         * lib/unistr/u8-strpbrk.c: Likewise.
53874         * lib/unistr/u8-strrchr.c: Likewise.
53875         * lib/unistr/u8-strspn.c: Likewise.
53876         * lib/unistr/u8-strstr.c: Likewise.
53877         * lib/unistr/u8-strtok.c: Likewise.
53878         * lib/unistr/u8-to-u16.c: Likewise.
53879         * lib/unistr/u8-to-u32.c: Likewise.
53880         * lib/unistr/u8-uctomb-aux.c: Likewise.
53881         * lib/unistr/u8-uctomb.c: Likewise.
53882         * lib/unitypes.h: Likewise.
53883         * lib/uniwidth.h: Likewise.
53884         * lib/uniwidth/cjk.h: Likewise.
53885         * lib/uniwidth/u16-strwidth.c: Likewise.
53886         * lib/uniwidth/u16-width.c: Likewise.
53887         * lib/uniwidth/u32-strwidth.c: Likewise.
53888         * lib/uniwidth/u32-width.c: Likewise.
53889         * lib/uniwidth/u8-strwidth.c: Likewise.
53890         * lib/uniwidth/u8-width.c: Likewise.
53891         * lib/uniwidth/width.c: Likewise.
53892
53893 2007-10-07  Bruno Haible  <bruno@clisp.org>
53894
53895         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53896         The file is still under LGPL (see modules/inttypes).
53897
53898 2007-10-06  Bruno Haible  <bruno@clisp.org>
53899
53900         * modules/trunc (Dependencies): Add 'extensions'.
53901         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53902         Reported by Ben Pfaff <blp@gnu.org>.
53903
53904 2007-10-06  Bruno Haible  <bruno@clisp.org>
53905
53906         * modules/freopen-tests: New file.
53907         * tests/test-freopen.c: New file.
53908
53909         * modules/fopen-tests: New file.
53910         * tests/test-fopen.c: New file.
53911
53912         * modules/fopen: New file.
53913         * lib/fopen.c: New file.
53914         * m4/fopen.m4: New file.
53915         * modules/freopen: New file.
53916         * lib/freopen.c: New file.
53917         * m4/freopen.m4: New file.
53918         * lib/stdio.in.h (fopen, freopen): New declarations.
53919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53920         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53921         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53922         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53923         * doc/functions/fopen.texi: Mention the 'fopen' module.
53924         * doc/functions/freopen.texi: Mention the 'freopen' module.
53925
53926 2007-10-06  Bruno Haible  <bruno@clisp.org>
53927
53928         * modules/open-tests: New file.
53929         * tests/test-open.c: New file.
53930
53931         * modules/open: New file.
53932         * lib/open.c: New file.
53933         * m4/open.m4: New file.
53934         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53935         lib/open.c does.
53936         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53937         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53938         macros.
53939         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53940         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53941         REPLACE_OPEN.
53942         * doc/functions/open.texi: Mention the 'open' module.
53943
53944 2007-10-04  Bruno Haible  <bruno@clisp.org>
53945
53946         * modules/ceill-tests: New file.
53947         * tests/test-ceill.c: New file.
53948
53949         * modules/ceill: New file.
53950         * lib/ceill.c: Replace entire file.
53951         * m4/ceill.m4: New file.
53952         * lib/math.in.h (ceill): Replace declaration.
53953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53954         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53955         * doc/functions/ceill.texi: Mention the 'ceill' module.
53956         * modules/mathl (Files): Remove lib/ceill.c.
53957         (Depends-on): Add ceill.
53958
53959 2007-10-04  Bruno Haible  <bruno@clisp.org>
53960
53961         * modules/ceilf-tests: New file.
53962         * tests/test-ceilf.c: New file.
53963
53964         * modules/ceilf: New file.
53965         * lib/ceil.c: New file.
53966         * lib/ceilf.c: New file.
53967         * m4/ceilf.m4: New file.
53968         * lib/math.in.h (ceilf): New declaration.
53969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53970         HAVE_DECL_CEILF.
53971         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53972         HAVE_DECL_CEILF.
53973         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53974
53975 2007-10-04  Bruno Haible  <bruno@clisp.org>
53976
53977         * modules/floorl-tests: New file.
53978         * tests/test-floorl.c: New file.
53979
53980         * modules/floorl: New file.
53981         * lib/floorl.c: Replace entire file.
53982         * m4/floorl.m4: New file.
53983         * lib/math.in.h (floorl): Replace declaration.
53984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53985         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53986         * doc/functions/floorl.texi: Mention the 'floorl' module.
53987         * modules/mathl (Files): Remove lib/floorl.c.
53988         (Depends-on): Add floorl.
53989
53990 2007-10-04  Bruno Haible  <bruno@clisp.org>
53991
53992         * modules/floorf-tests: New file.
53993         * tests/test-floorf.c: New file.
53994
53995         * modules/floorf: New file.
53996         * lib/floor.c: New file.
53997         * lib/floorf.c: New file.
53998         * m4/floorf.m4: New file.
53999         * lib/math.in.h (floorf): New declaration.
54000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
54001         HAVE_DECL_FLOORF.
54002         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
54003         HAVE_DECL_FLOORF.
54004         * doc/functions/floorf.texi: Mention the 'floorf' module.
54005
54006 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
54007             Bruno Haible  <bruno@clisp.org>
54008
54009         Advertise for the Git server instead of the CVS server.
54010         * doc/gnulib-intro.texi (Steady Development): Mention the Git
54011         repository instead of the CVS one.
54012         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
54013         about all VCS systems generically.
54014         * doc/gnulib.texi (Introduction): Capitalize `Git'.
54015
54016 2007-10-04  Bruno Haible  <bruno@clisp.org>
54017
54018         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
54019         means.
54020         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
54021
54022 2007-10-04  Bruno Haible  <bruno@clisp.org>
54023
54024         * modules/truncl-tests: New file.
54025         * tests/test-truncl.c: New file.
54026
54027         * modules/truncl: New file.
54028         * lib/truncl.c: New file.
54029         * m4/truncl.m4: New file.
54030         * lib/math.in.h (truncl): New declaration.
54031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
54032         HAVE_DECL_TRUNCL.
54033         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
54034         HAVE_DECL_TRUNCL.
54035         * doc/functions/truncl.texi: Mention the 'truncl' module.
54036
54037 2007-10-04  Bruno Haible  <bruno@clisp.org>
54038
54039         * modules/truncf-tests: New file.
54040         * tests/test-truncf.c: New file.
54041
54042         * modules/truncf: New file.
54043         * lib/trunc.c: Make paramerizable through USE_* macros.
54044         * lib/truncf.c: New file.
54045         * m4/truncf.m4: New file.
54046         * lib/math.in.h (truncf): New declaration.
54047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
54048         HAVE_DECL_TRUNCF.
54049         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
54050         HAVE_DECL_TRUNCF.
54051         * doc/functions/truncf.texi: Mention the 'truncf' module.
54052
54053 2007-10-03  Bruno Haible  <bruno@clisp.org>
54054
54055         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54056         augmentation also for tests modules.
54057         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
54058         * modules/atexit-tests (Makefile.am): Likewise.
54059         * modules/binary-io-tests (Makefile.am): Likewise.
54060         * modules/c-strcase-tests (Makefile.am): Likewise.
54061         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
54062         * modules/canonicalize-tests (Makefile.am): Likewise.
54063         * modules/closein-tests (Makefile.am): Likewise.
54064         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54065         * modules/freadahead-tests (Makefile.am): Likewise.
54066         * modules/fseek-tests (Makefile.am): Likewise.
54067         * modules/fseeko-tests (Makefile.am): Likewise.
54068         * modules/ftell-tests (Makefile.am): Likewise.
54069         * modules/ftello-tests (Makefile.am): Likewise.
54070         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
54071         * modules/isnanl-tests (Makefile.am): Likewise.
54072         * modules/lseek-tests (Makefile.am): Likewise.
54073         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54074         * modules/mbscasestr-tests (Makefile.am): Likewise.
54075         * modules/mbschr-tests (Makefile.am): Likewise.
54076         * modules/mbscspn-tests (Makefile.am): Likewise.
54077         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54078         * modules/mbspbrk-tests (Makefile.am): Likewise.
54079         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54080         * modules/mbsrchr-tests (Makefile.am): Likewise.
54081         * modules/mbsspn-tests (Makefile.am): Likewise.
54082         * modules/mbsstr-tests (Makefile.am): Likewise.
54083         * modules/printf-posix-tests (Makefile.am): Likewise.
54084         * modules/snprintf-posix-tests (Makefile.am): Likewise.
54085         * modules/sprintf-posix-tests (Makefile.am): Likewise.
54086         * modules/tsearch-tests (Makefile.am): Likewise.
54087         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54088         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54089         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54090         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54091         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54092         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54093         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54094         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54095         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
54096         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
54097         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54098         * modules/xstrtol-tests (Makefile.am): Likewise.
54099         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54100         * modules/yesno-tests (Makefile.am): Likewise.
54101
54102 2007-10-03  Bruno Haible  <bruno@clisp.org>
54103
54104         * modules/trunc-tests: New file.
54105         * tests/test-trunc.c: New file.
54106
54107         * modules/trunc: New file.
54108         * lib/trunc.c: New file.
54109         * m4/trunc.m4: New file.
54110         * lib/math.in.h (trunc): New declaration.
54111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
54112         HAVE_DECL_TRUNC.
54113         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
54114         HAVE_DECL_TRUNC.
54115         * doc/functions/trunc.texi: Mention the 'trunc' module.
54116
54117 2007-10-03  Bruno Haible  <bruno@clisp.org>
54118
54119         * tests/test-fpending.c: New file, mostly copied
54120         from coreutils/lib/t-fpending.c.
54121         * modules/fpending-tests: New file.
54122
54123 2007-10-03  Bruno Haible  <bruno@clisp.org>
54124
54125         Port the stdio extensions to QNX (untested).
54126         * lib/fseterr.c (fseterr): Add support for QNX.
54127         * lib/fbufmode.c (fbufmode): Likewise.
54128         * lib/freadable.c (freadable): Likewise.
54129         * lib/fwritable.c (fwritable): Likewise.
54130         * lib/freading.c (freading): Likewise.
54131         * lib/fwriting.c (fwriting): Likewise.
54132         * lib/freadahead.c (freadahed): Likewise.
54133         * lib/fpurge.c (fpurge): Likewise.
54134         * lib/fseeko.c (rpl_fseeko): Likewise.
54135
54136 2007-10-03  Bruno Haible  <bruno@clisp.org>
54137             Jim Meyering  <jim@meyering.net>
54138             Eric Blake  <ebb9@byu.net>
54139
54140         * doc/relocatable.texi: Use @command instead of @program.
54141
54142 2007-10-02  Jim Meyering  <jim@meyering.net>
54143
54144         Perform one more "_.h" -> ".in.h" substitution.
54145         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
54146         instead of unistd_.h here, too.
54147
54148 2007-10-01  Bruno Haible  <bruno@clisp.org>
54149
54150         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
54151         Needed for the alloca-opt module.
54152
54153 2007-09-30  Bruno Haible  <bruno@clisp.org>
54154
54155         * lib/alloca.in.h: Renamed from lib/alloca_.h.
54156         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
54157         alloca_.h.
54158         * lib/argz.in.h: Renamed from lib/argz_.h.
54159         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
54160         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
54161         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
54162         byteswap_.h.
54163         * lib/dirent.in.h: Renamed from lib/dirent_.h.
54164         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
54165         dirent_.h.
54166         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
54167         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
54168         fcntl_.h.
54169         * lib/float.in.h: Renamed from lib/float_.h.
54170         * modules/float (Files, Makefile.am): Use float.in.h instead of
54171         float_.h.
54172         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
54173         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
54174         fnmatch_.h.
54175         * lib/getopt.in.h: Renamed from lib/getopt_.h.
54176         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
54177         getopt_.h.
54178         * lib/glob.in.h: Renamed from lib/glob_.h.
54179         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
54180         * lib/iconv.in.h: Renamed from lib/iconv_.h.
54181         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
54182         iconv_.h.
54183         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
54184         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
54185         inttypes_.h.
54186         * lib/locale.in.h: Renamed from lib/locale_.h.
54187         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
54188         locale_.h.
54189         * lib/math.in.h: Renamed from lib/math_.h.
54190         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
54191         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
54192         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
54193         of netinet_in_.h. Add dependency.
54194         * lib/poll.in.h: Renamed from lib/poll_.h.
54195         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
54196         * lib/search.in.h: Renamed from lib/search_.h.
54197         * modules/search (Files, Makefile.am): Use search.in.h instead of
54198         search_.h.
54199         * lib/signal.in.h: Renamed from lib/signal_.h.
54200         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
54201         _signal.h.
54202         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
54203         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
54204         stdbool_.h.
54205         * lib/stdint.in.h: Renamed from lib/stdint_.h.
54206         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
54207         stdint_.h.
54208         * lib/stdio.in.h: Renamed from lib/stdio_.h.
54209         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
54210         stdio_.h.
54211         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
54212         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
54213         stdlib_.h.
54214         * lib/string.in.h: Renamed from lib/string_.h.
54215         * modules/string (Files, Makefile.am): Use string.in.h instead of
54216         string_.h.
54217         * doc/gnulib-tool.texi (Initial import): Update.
54218         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
54219         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
54220         of sys_select_.h. Add dependency.
54221         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
54222         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
54223         of sys_socket_.h.
54224         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
54225         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
54226         sys_stat_.h.
54227         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
54228         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
54229         sys_time_.h.
54230         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
54231         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
54232         sysexits_.h.
54233         * lib/time.in.h: Renamed from lib/time_.h.
54234         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
54235         * lib/unistd.in.h: Renamed from lib/unistd_.h.
54236         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
54237         unistd_.h.
54238         * lib/wchar.in.h: Renamed from lib/wchar_.h.
54239         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
54240         wchar_.h.
54241         * lib/wctype.in.h: Renamed from lib/wctype_.h.
54242         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
54243         wctype_.h.
54244         * build-aux/bootstrap (slurp): Update.
54245         * lib/.cppi-disable: Update.
54246
54247 2007-09-30  Bruno Haible  <bruno@clisp.org>
54248
54249         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
54250         Needed on BeOS.
54251
54252 2007-09-30  Bruno Haible  <bruno@clisp.org>
54253
54254         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
54255
54256 2007-09-29  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
54259
54260 2007-09-29  Bruno Haible  <bruno@clisp.org>
54261
54262         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
54263         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
54264         * build-aux/install-reloc: Compile also areadlink.c.
54265         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
54266
54267 2007-09-29  Bruno Haible  <bruno@clisp.org>
54268
54269         * gnulib-tool (func_emit_initmacro_done): Indentation.
54270
54271 2007-09-29  Bruno Haible  <bruno@clisp.org>
54272
54273         * README: Add CVS checkout update instructions.
54274         Info from Bob Proulx <bob@proulx.com>.
54275
54276 2007-09-28  Eric Blake  <ebb9@byu.net>
54277
54278         Provide move-if-change.
54279         * build-aux/move-if-change: New file, based on best practice
54280         rather than any canonical upstream location.
54281
54282 2007-09-28  Jim Meyering  <jim@meyering.net>
54283
54284         Fix canonicalize loop-detection corner case.
54285         Do not attempt to stat the symlink values stored via seen_triple.
54286         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
54287         on linux-2.6.18, (but not 2.6.22).
54288         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
54289         triple_compare.  The former compares dev,ino,filename, while the latter
54290         would actually stat dirname(filename) when dev and ino were equal.
54291         * lib/hash-triple.c: Install <string.h>.
54292         (STREQ): Define.
54293         (triple_compare_ino_str): New function.
54294         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
54295
54296 2007-09-28  Eric Blake  <ebb9@byu.net>
54297
54298         Enforce that AC_REPLACE_FUNCS files exist.
54299         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54300         override check for typos.
54301
54302         Fix test-closein on Solaris 10.
54303         * tests/test-closein.c (main): Don't assume stdin can be inherited
54304         closed on all systems.
54305         * tests/test-closein.sh: Likewise.
54306         Reported by Piotr Tarnowski.
54307
54308 2007-09-28  Jim Meyering  <jim@meyering.net>
54309
54310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
54311
54312 2007-09-27  Jim Meyering  <jim@meyering.net>
54313
54314         canonicalize: Avoid a false-positive cycle failure.
54315         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
54316         Sort.  Remove cycle-check.
54317         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
54318         not cycle-check.h.
54319         (seen_triple): New function.
54320         (canonicalize_filename_mode): Use it instead of cycle-check.
54321         * tests/test-canonicalize.c: Add a test for this bug.
54322         * tests/test-canonicalize.sh: Set up and run the test.
54323
54324         New module, file-set, from coreutils.
54325         * modules/file-set: Define it.
54326         * lib/file-set.c, lib/file-set.h: Implement.
54327
54328         New module, hash-triple, from coreutils.
54329         * modules/hash-triple: Define it.
54330         * lib/hash-triple.c, lib/hash-triple.h: Implement.
54331
54332 2007-09-25  Eric Blake  <ebb9@byu.net>
54333
54334         Fix strerror on Interix.
54335         * lib/string_.h (strerror): Declare replacement.
54336         * doc/functions/strerror.texi (strerror): Document the Interix
54337         shortcoming.
54338         * modules/string (Makefile.am): Support new hooks.
54339         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
54340         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
54341         gl_FUNC_STRERROR_SEPARATE.
54342         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
54343         * lib/strerror.c (rpl_strerror): Provide replacement.
54344         * modules/strerror (Depends-on): Add string.
54345         (configure.ac): Detect use of module.
54346         * tests/test-strerror.c: New file.
54347         * modules/strerror-tests: New test module.
54348         * modules/argp (Depends-on): Add strerror.
54349         * modules/error (Depends-on): Likewise.
54350         Reported by Martin Koeppe.
54351
54352 2007-09-24  Bruno Haible  <bruno@clisp.org>
54353
54354         * README: Update git instructions.
54355
54356 2007-09-24  Eric Blake  <ebb9@byu.net>
54357
54358         Revert fpending breakage from 2007-09-08.
54359         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
54360         __fpending.c.
54361
54362 2007-09-24  Jim Meyering  <jim@meyering.net>
54363
54364         filenamecat.c: Add a test.
54365         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
54366         showing how the function works when DIR is the empty string.
54367
54368 2007-09-21  Simon Josefsson  <simon@josefsson.org>
54369
54370         * tests/test-canonicalize.sh: Turn on executable bit.
54371
54372 2007-09-19  Eric Blake  <ebb9@byu.net>
54373
54374         * README: Update CVS instructions.
54375
54376 2007-09-18  Bruno Haible  <bruno@clisp.org>
54377
54378         * modules/areadlink: New file.
54379         * lib/areadlink.h (areadlink): New declaration.
54380         * lib/areadlink.c: New file, based on lib/xreadlink.c.
54381
54382 2007-09-17  Jim Meyering  <jim@meyering.net>
54383
54384         * lib/savewd.c (ESTALE) [!defined]: Define.
54385         Reported to be required on Interix by Martin Koeppe.
54386
54387 2007-09-17  Bruno Haible  <bruno@clisp.org>
54388
54389         * gnulib-tool (func_version): Use $version.
54390
54391 2007-09-16  Bruno Haible  <bruno@clisp.org>
54392
54393         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
54394         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
54395         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
54396         Reported by Greg Schafer <gschafer@zip.com.au>.
54397
54398 2007-09-15  Bruno Haible  <bruno@clisp.org>
54399
54400         * gnulib-tool (sed): Try a little harder to make bash understand the
54401         alias.
54402         Reported by Bruce Korb <bruce.korb@gmail.com>.
54403
54404 2007-09-13  Eric Blake  <ebb9@byu.net>
54405
54406         * ChangeLog: Remove conflict markers.
54407
54408 2007-09-13  Simon Josefsson  <simon@josefsson.org>
54409
54410         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54411         Reported by Bruno Haible <bruno@clisp.org>.
54412
54413 2007-09-12  Bruno Haible  <bruno@clisp.org>
54414
54415         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
54416         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
54417         is not defined.
54418
54419 2007-09-12  Eric Blake  <ebb9@byu.net>
54420
54421         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
54422         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
54423         Autoconf definition.
54424         * modules/euidaccess (Depends-on): Add extensions, for
54425         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
54426         * modules/fnmatch (Depends-on): Likewise.
54427         * modules/getaddrinfo (Depends-on): Likewise.
54428         * modules/getdelim (Depends-on): Likewise.
54429         * modules/getline (Depends-on): Likewise.
54430         * modules/getsubopt (Depends-on): Likewise.
54431         * modules/gettext (Depends-on): Likewise.
54432         * modules/group-member (Depends-on): Likewise.
54433         * modules/mbchar (Depends-on): Likewise.
54434         * modules/memmem (Depends-on): Likewise.
54435         * modules/mempcpy (Depends-on): Likewise.
54436         * modules/memrchr (Depends-on): Likewise.
54437         * modules/pagealign_alloc (Depends-on): Likewise.
54438         * modules/readutmp (Depends-on): Likewise.
54439         * modules/stpcpy (Depends-on): Likewise.
54440         * modules/stpncpy (Depends-on): Likewise.
54441         * modules/strchrnul (Depends-on): Likewise.
54442         * modules/strndup (Depends-on): Likewise.
54443         * modules/strsep (Depends-on): Likewise.
54444         * modules/strverscmp (Depends-on): Likewise.
54445         * modules/vasprintf (Depends-on): Likewise.
54446         * modules/wcwidth (Depends-on): Likewise.
54447         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
54448         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
54449         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
54450         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
54451         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54452         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54453         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
54454         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54455         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
54456         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54457         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54458         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54459         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54460         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54461         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
54462         * m4/readutmp.m4 (gl_READUTMP): Likewise.
54463         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54464         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54465         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54466         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54467         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54468         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54469         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54470         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
54471         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
54472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54473         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
54474         so that lock.m4 can be used in gettext without extensions module.
54475
54476 2007-09-11  Bruno Haible  <bruno@clisp.org>
54477
54478         * m4/isc-posix.m4: Remove file.
54479         Suggested by Eric Blake.
54480
54481 2007-09-11  Eric Blake  <ebb9@byu.net>
54482
54483         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
54484
54485 2007-09-10  Bruno Haible  <bruno@clisp.org>
54486
54487         * posix-modules: Fix typo in error message.
54488         Reported by Matt <mkraai@beckman.com>.
54489
54490 2007-09-09  Bruno Haible  <bruno@clisp.org>
54491
54492         * doc/functions/getdelim.texi: Update list of platforms lacking the
54493         function.
54494         * doc/functions/getline.texi: Likewise.
54495
54496 2007-09-09  Jim Meyering  <jim@meyering.net>
54497
54498         * lib/hash.c (hash_initialize): Detect calloc failure.
54499         Reported by Bruno Haible.
54500
54501 2007-09-09  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
54504         malloc or realloc fails.
54505
54506 2007-09-09  Bruno Haible  <bruno@clisp.org>
54507
54508         * modules/getcwd (Depends-on): Add malloc-posix.
54509         * modules/glob (Depends-on): Likewise.
54510         * modules/putenv (Depends-on): Likewise.
54511         * modules/strdup (Depends-on): Likewise.
54512         * modules/getdelim (Depends-on): Add realloc-posix.
54513         * modules/read-file (Depends-on): Likewise.
54514
54515 2007-09-09  Bruno Haible  <bruno@clisp.org>
54516
54517         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
54518         (gl_FUNC_MALLOC_POSIX): Require it.
54519         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
54520         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
54521         * modules/realloc (Files): Add m4/malloc.m4.
54522         * modules/calloc (Files): Likewise.
54523
54524 2007-09-09  Bruno Haible  <bruno@clisp.org>
54525
54526         * modules/malloc-posix: New file.
54527         * modules/malloc (Depends-on): Add malloc-posix.
54528         * lib/malloc.c: Include errno.h.
54529         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
54530         and a POSIX-compatible malloc into a single function. Set ENOMEM
54531         when returning NULL.
54532         * m4/malloc.m4: New file.
54533         * doc/functions/malloc.texi: Mention the malloc-posix module.
54534         * lib/stdlib_.h (malloc): New declaration.
54535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54536         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
54537         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
54538         and HAVE_MALLOC_POSIX.
54539
54540 2007-09-09  Bruno Haible  <bruno@clisp.org>
54541
54542         * modules/realloc-posix: New file.
54543         * modules/realloc (Depends-on): Add realloc-posix.
54544         * lib/realloc.c: Include errno.h.
54545         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
54546         and a POSIX-compatible realloc into a single function. Set ENOMEM
54547         when returning NULL.
54548         * m4/realloc.m4: New file.
54549         * doc/functions/realloc.texi: Mention the realloc-posix module.
54550         * lib/stdlib_.h (realloc): New declaration.
54551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54552         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
54553         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
54554         and HAVE_REALLOC_POSIX.
54555
54556 2007-09-09  Bruno Haible  <bruno@clisp.org>
54557
54558         * modules/calloc-posix: New file.
54559         * modules/calloc (Depends-on): Add calloc-posix.
54560         * lib/calloc.c: Include errno.h.
54561         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
54562         and a POSIX-compatible calloc into a single function. Set ENOMEM
54563         when returning NULL.
54564         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
54565         * doc/functions/calloc.texi: Mention the calloc-posix module.
54566         * lib/stdlib_.h (calloc): New declaration.
54567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54568         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
54569         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
54570         and HAVE_CALLOC_POSIX.
54571
54572 2007-09-09  Bruno Haible  <bruno@clisp.org>
54573
54574         Allow for modules to show an arbitrary notice.
54575         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
54576         * gnulib-tool: New option --extract-notice.
54577         (func_usage): Document it.
54578         (sed_extract_prog): Update.
54579         (func_get_notice): New function.
54580         (func_modules_notice): New function.
54581         (func_import, func_create_testdir): Invoke it.
54582         Suggested by Jim Meyering.
54583
54584 2007-09-09  Bruno Haible  <bruno@clisp.org>
54585
54586         * gnulib-tool: New options --verbose, --quiet.
54587         (func_usage): Document them.
54588         (verbose): New variable.
54589         (func_execute_command): New function.
54590         (func_import): Don't show the module list and the file list if
54591         $verbose < 0.
54592         (func_create_testdir): Likewise. Use func_execute_command.
54593         (func_create_megatestdir): Use func_execute_command.
54594
54595 2007-09-08  Bruno Haible  <bruno@clisp.org>
54596
54597         * gnulib-tool (func_import): Prefer rsync over wget when available,
54598         for fetching the PO files.
54599
54600 2007-09-08  Bruno Haible  <bruno@clisp.org>
54601
54602         * posix-modules: New file. Portions copied from gnulib-tool.
54603         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
54604
54605 2007-09-08  Jim Meyering  <jim@meyering.net>
54606
54607         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
54608         * lib/fpending.h: Rename from __fpending.h.
54609         * lib/fpending.c: Rename from __fpending.c.
54610         Include "fpending.h", not "__fpending.h".
54611         * lib/__fpending.h, lib/__fpending.c: Remove files.
54612         * modules/fpending (Files): Reflect new file names.
54613         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
54614
54615 2007-09-08  Bruno Haible  <bruno@clisp.org>
54616
54617         * m4/inttypes-h.m4: Remove stub file.
54618
54619 2007-09-07  Simon Josefsson  <simon@josefsson.org>
54620
54621         * doc/headers/stdint.texi: Discuss #include_next issue.
54622
54623 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54624
54625         * build-aux/bootstrap: Remove obsolete comment about wget --help.
54626
54627 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54628
54629         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
54630         in variable name.
54631
54632 2007-09-03  Jim Meyering  <jim@meyering.net>
54633
54634         New module: git-version-gen.
54635         * modules/git-version-gen: New file.
54636
54637         Import changes from coreutils for bootstrap script.
54638
54639         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
54640
54641         bootstrap: uses rsync to download the .po files
54642         * build-aux/bootstrap (po_download_command_format): New global.
54643         (download_po_files): Use rsync.
54644         (update_po_files): Don't remove .po files after download,
54645         so future rsync runs can take advantage of the copies.
54646
54647         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
54648
54649         Solve the unnecessary-.po-file-regeneration problem once and for all.
54650         * build-aux/bootstrap (download_po_files): New function, renamed from
54651         get_translations.  Now, downloads, but doesn't update LINGUAS.
54652         (update_po_files): New function.
54653
54654         bootstrap: Ignore more.
54655         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
54656         uniwidth to e.g., lib/.gitignore.
54657         (slurp): Handle the sys_stat_.h -> sys mapping, too.
54658
54659         * build-aux/bootstrap: New setting: vc_ignore.
54660         (insert_sorted_if_absent): Create $file if absent.
54661         Adapt to new, possibly empty, list: $vc_ignore.
54662
54663         bootstrap: generate more ignorable names
54664         * build-aux/bootstrap (slurp): When generating ignorable names,
54665         also map .sin to .sed, .gperf to .c, and .y to .c.
54666
54667 2007-09-03  Jim Meyering  <jim@meyering.net>
54668
54669         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54670         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54671
54672 2007-09-02  Bruno Haible  <bruno@clisp.org>
54673
54674         Fix mis-recognition of 'mcs' on QNX 6.
54675         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54676         output contains the string "Mono".
54677         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54678         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54679
54680 2007-09-01  Bruno Haible  <bruno@clisp.org>
54681
54682         Fix collision between uniwidth/* and linebreak modules.
54683         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54684         u32_width): Remove declarations.
54685         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54686         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54687         streq3, streq2, streq1, streq0): Remove functions.
54688         (STREQ): Remove macro.
54689         (is_cjk_encoding): Remove function.
54690         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54691         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54692         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54693         * NEWS: Document the change.
54694
54695 2007-09-01  Bruno Haible  <bruno@clisp.org>
54696
54697         * lib/streq.h: Add double-inclusion guard.
54698
54699 2007-09-01  Karl Berry  <karl@gnu.org>
54700
54701         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54702
54703 2007-08-28  Jim Meyering  <jim@meyering.net>
54704
54705         Rename mreadlink_with_size to areadlink_with_size.
54706         * NEWS: Document the change.
54707         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54708         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54709         * lib/mreadlink.h: Rename this to...
54710         * lib/areadlink.h: ...this.
54711         * modules/mreadlink-with-size: Rename this to...
54712         * modules/areadlink-with-size: ...this.
54713         * lib/canonicalize.c: Reflect the renaming.
54714         * modules/canonicalize: Likewise.
54715
54716 2007-08-26  Bruno Haible  <bruno@clisp.org>
54717
54718         * gnulib-tool (func_import): When deciding which files to remove,
54719         consider also dangling symbolic links.
54720         Reported by Eric Blake.
54721
54722 2007-08-26  Bruno Haible  <bruno@clisp.org>
54723
54724         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54725
54726 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54727
54728         * lib/readline.c: Don't include getline.h, the prototype is now
54729         found in stdio.h.
54730
54731 2007-08-23  Jim Meyering  <jim@meyering.net>
54732
54733         Getdelim touchup.
54734         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54735         around the funlockfile call, since funlockfile never sets errno.
54736         Don't set errno upon failed realloc.
54737
54738 2007-08-22  Eric Blake  <ebb9@byu.net>
54739
54740         Getline touchups.
54741         * lib/getdelim.c (getdelim): Revert regression that required *n to
54742         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54743         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54744         getdelim, rather than whether implementation is missing.
54745         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54746         * lib/stdio_.h (getline): Also declare if replacement is
54747         required.
54748         * doc/functions/getdelim.texi: New file.
54749         * doc/functions/getline.texi: Likewise.
54750         * doc/gnulib.texi (Function Substitutes): Add new files.
54751         Reported by Bruno Haible.
54752
54753 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54754
54755         * users.txt: Add Guile.
54756
54757 2007-08-22  Eric Blake  <ebb9@byu.net>
54758
54759         * tests/test-getdelim.c (main): Use remove, not unlink.
54760         * tests/test-getline.c (main): Likewise.
54761
54762         Move getline and getdelim into stdio.h, per POSIX 200x.
54763         * modules/getline (Files): Remove getline.h.
54764         (Depends-on): Add stdio.
54765         (configure.ac): Add module indicator.
54766         * modules/getdelim (Files): Remove getdelim.h.
54767         (Depends-on): Add stdio.
54768         (configure.ac): Add module indicator.
54769         * modules/stdio (Makefile.am): Work with new indicators.
54770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54771         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54772         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54773         * lib/getdelim.h: Delete.
54774         * lib/getline.h: Delete.
54775         * lib/stdio_.h (getdelim, getline): Declare.
54776         * modules/getdelim-tests: New module.
54777         * modules/getline-tests: Likewise.
54778         * tests/test-getdelim.c: New file.
54779         * tests/test-getline.c: Likewise.
54780         * NEWS: Document the change.
54781         * lib/getline.c: Update choice of header.
54782         * lib/csharpcomp.c: Likewise.
54783         * lib/getpass.c: Likewise.
54784         * lib/javacomp.c: Likewise.
54785         * lib/javaversion.c: Likewise.
54786         * lib/yesno.c: Likewise.
54787         * lib/getdelim.c: Likewise.
54788         (getdelim): Set errno on failure, and avoid memory leak.
54789
54790 2007-08-19  Bruno Haible  <bruno@clisp.org>
54791
54792         * modules/closein (Depends-on): Add freadahead.
54793         * lib/closein.c: Include freadahead.h.
54794         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54795         is zero.
54796
54797 2007-08-19  Bruno Haible  <bruno@clisp.org>
54798
54799         * modules/freadahead-tests: New file.
54800         * tests/test-freadahead.sh: New file.
54801         * tests/test-freadahead.c: New file.
54802
54803         * modules/freadahead: New file.
54804         * lib/freadahead.h: New file.
54805         * lib/freadahead.c: New file.
54806         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54807         fbufmode, fpurge, freadable, fwritable.
54808
54809 2007-08-19  Eric Blake  <ebb9@byu.net>
54810
54811         Test yesno in combination with closein.
54812         * lib/yesno.c (yesno): Document use of stdin.
54813         * modules/yesno-tests (Files): New module.
54814         * tests/test-yesno.c (main): New file.
54815         * tests/test-yesno.sh: Likewise.
54816
54817 2007-08-19  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54820         * lib/fseeko.c (rpl_fseeko): Likewise.
54821         * lib/fseterr.c (fseterr): Likewise.
54822
54823 2007-08-19  Bruno Haible  <bruno@clisp.org>
54824
54825         * tests/test-lseek.c (main): Disable a test for BeOS.
54826         * doc/functions/lseek.texi: Document the BeOS bug.
54827
54828 2007-08-19  Bruno Haible  <bruno@clisp.org>
54829             Eric Blake  <ebb9@byu.net>
54830
54831         * lib/lseek.c: Include <sys/stat.h>.
54832         (rpl_lseek): Add workaround code also for Unix platforms.
54833         Needed for BeOS.
54834         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54835         * doc/functions/lseek.texi: Document BeOS definiency.
54836
54837 2007-08-18  Bruno Haible  <bruno@clisp.org>
54838
54839         * modules/fstrcmp-tests: New file.
54840         * tests/test-fstrcmp.c: New file.
54841
54842 2007-08-18  Bruno Haible  <bruno@clisp.org>
54843
54844         * modules/fstrcmp: New file, from GNU gettext with modifications.
54845         * lib/fstrcmp.h: New file, from GNU gettext.
54846         * lib/fstrcmp.c: New file, from GNU gettext.
54847         * MODULES.html.sh (String handling): Add fstrcmp.
54848
54849 2007-08-18  Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54852         'bool'.
54853         (diag, compareseq): Remove const from the ctxt argument.
54854         (USE_HEURISTIC): Undefine at the end.
54855
54856 2007-08-18  Jim Meyering  <jim@meyering.net>
54857
54858         New file: lib/idcache.h
54859         * NEWS: Mention the addition.
54860         * modules/idcache (Files): Add lib/idcache.h
54861         * lib/idcache.c: Include "idcache.h".
54862         Don't include <sys/types.h>.
54863         Add a FIXME comment.
54864         Move file-scoped "static" declarations to the top.
54865         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54866
54867 2007-08-17  Bruno Haible  <bruno@clisp.org>
54868         and Paul Eggert  <eggert@cs.ucla.edu>
54869
54870         * MODULES.html.sh: Add diffseq.
54871         * modules/diffseq: New file.
54872         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54873         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54874
54875 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54876
54877         Import changes from coreutils for bootstrap script.
54878
54879         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54880
54881         * build-aux/bootstrap (slurp): Work even in environments where
54882         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54883         current code does not slurp files whose names start with ".", and
54884         this looks like it might be a troublesome area.
54885
54886         2007-07-11  Jim Meyering  <jim@meyering.net>
54887
54888         If there's a GPL vN copyright comment, require that N == 3.
54889
54890         2007-07-08  Jim Meyering  <jim@meyering.net>
54891
54892         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54893         * build-aux/bootstrap (mam_template): Move definition out of loop.
54894
54895         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54896
54897         * build-aux/bootstrap (symlink_to_dir): Rename function from
54898         symlink_to_gnulib.  Add a directory parameter.  Update all
54899         callers.
54900         (cp_mark_as_generated): Also check for -- and link to -- files in
54901         gl/.
54902
54903         2007-07-08  Jim Meyering  <jim@meyering.net>
54904
54905         Adapt to deeper hierarchy in gnulib.
54906         * build-aux/bootstrap (symlink_to_dir): If the destination
54907         directory doesn't exist, create it. This is required at least for
54908         "lib/uniwidth/cjk.h".
54909
54910         2007-05-15  Jim Meyering  <jim@meyering.net>
54911
54912         * build-aux/bootstrap: Now that generated Makefile.am files
54913         are no longer under version control, they must be created at
54914         bootstrap time.
54915
54916 2007-08-14  Ben Pfaff  <blp@gnu.org>
54917
54918         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54919
54920 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54921
54922         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54923         given the changes below.
54924         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54925         even on hosts that have padding bits beyond the supported 64.
54926
54927 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54928
54929         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54930         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54931         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54932         depends on it.
54933         (xstrtol_error): Remove.
54934         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54935         but with a different signature.
54936         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54937         * lib/xstrtol-error.c: Include exitfail.h.
54938         (xstrtol_fatal): New function, with a different signature from the
54939         old xstrtol_error, so that the caller need not worry about passing
54940         in an exit status, or about storage management of the option argument.
54941         (xstrtol_error): Now a static function.  Redo signature to
54942         implement xstrtol_fatal.  Output the correct number of hyphens in
54943         front of the option so that the caller need not worry about
54944         storage management.
54945         (N_): New macro.
54946         (_): Remove; not used now.
54947         * modules/xstrtol: Depend on getopt.
54948         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54949         of old STRTOL_FATAL_ERROR macro.
54950         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54951         of test program.
54952         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54953         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54954
54955 2007-08-08  Eric Blake  <ebb9@byu.net>
54956
54957         * lib/xstrtol-error.c: Add missing include.
54958
54959         Move xstrtol messages into gnulib domain, when --pobase is used.
54960         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54961         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54962         * modules/xstrtol (Files): Distribute new file.
54963         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54964         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54965         * tests/test-xstrtol.c: ...into new file.
54966         * tests/test-xstrtoul.c: Also test xstrtoul.
54967         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54968         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54969         * tests/test-xstrtol.sh: Drive the tests.
54970         * tests/test-xstrtoimax.sh: Likewise.
54971         * tests/test-xstrtoumax.sh: Likewise.
54972         * modules/xstrtol-tests: New module.
54973         * modules/xstrtoimax-tests: Likewise.
54974         * modules/xstrtoumax-tests: Likewise.
54975
54976 2007-08-08  Jim Meyering  <jim@meyering.net>
54977
54978         New function: mfile_name_concat.
54979         * lib/filenamecat.c (mfile_name_concat): New function, just like
54980         file_name_concat, but return NULL upon failure rather than exiting
54981         with a diagnostic.
54982         * lib/filenamecat.h: Declare it.
54983
54984 2007-08-07  Bruno Haible  <bruno@clisp.org>
54985
54986         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54987         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54988         warning from gcc.
54989         Reported by Eric Blake.
54990
54991 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54992
54993         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54994         * modules/crypto/arcfour (License): Likewise.
54995         * modules/crypto/des-tests (License): Likewise.
54996         * modules/crypto/gc-arctwo-tests (License): Likewise.
54997         * modules/crypto/gc-des-tests (License): Likewise.
54998         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54999         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
55000         * modules/crypto/gc-md2-tests (License): Likewise.
55001         * modules/crypto/gc-md4-tests (License): Likewise.
55002         * modules/crypto/gc-md5-tests (License): Likewise.
55003         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
55004         * modules/crypto/gc-rijndael-tests (License): Likewise.
55005         * modules/crypto/gc-sha1-tests (License): Likewise.
55006         * modules/crypto/gc-tests (License): Likewise.
55007         * modules/crypto/hmac-md5 (License): Likewise.
55008         * modules/crypto/hmac-sha1 (License): Likewise.
55009         * modules/crypto/md2-tests (License): Likewise.
55010         * modules/crypto/md4-tests (License): Likewise.
55011         * modules/crypto/md5 (License): Likewise.
55012         * modules/crypto/rijndael (License): Likewise.
55013         * modules/crypto/sha1 (License): Likewise.
55014         * modules/memxor (License): Likewise.
55015
55016 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55017         and Bruno Haible  <bruno@clisp.org>
55018
55019         * NEWS: Describe interface changes to human, xstrtol.
55020         * lib/human.h: Include <xstrtol.h>.
55021         (human_options): Return enum strtol_error, not int.  Remove
55022         bool arg; take int * instead.
55023         * lib/human.c: Don't include "gettext.h".
55024         (_): Remove; no longer used.
55025         Don't include <xstrtol.h>, since human.h does it.
55026         (human_options): Adjust to abovementioned interface changes.
55027         Do not report error to stderr; that's now the caller's
55028         responsibility.
55029         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
55030         interface change.
55031         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
55032         Str, Argument_type_string.  All uses changed.  Put " argument"
55033         in diagnostics to make them clearer.  Change wording of suffix
55034         message for clarity.
55035         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
55036         Argument_type_string.
55037         (STRTOL_FATAL_WARN): Remove; no longer used.
55038         * modules/human (Depends-on): Remove gettext-h.
55039
55040 2007-08-06  Simon Josefsson  <simon@josefsson.org>
55041
55042         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
55043
55044 2007-07-31  Bruno Haible  <bruno@clisp.org>
55045
55046         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
55047         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
55048         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
55049
55050 2007-07-31  Bruno Haible  <bruno@clisp.org>
55051
55052         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
55053         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
55054
55055 2007-07-30  Bruno Haible  <bruno@clisp.org>
55056
55057         * modules/base64 (License): Use the synonymous term "LGPLv2+".
55058         * modules/c-ctype (License): Likewise.
55059         * modules/c-strcase (License): Likewise.
55060         * modules/check-version (License): Likewise.
55061         * modules/iconv (License): Likewise.
55062         * modules/iconv_open (License): Likewise.
55063         * modules/read-file (License): Likewise.
55064         * modules/striconv (License): Likewise.
55065         * modules/strverscmp (License): Likewise.
55066         * modules/vasprintf (License): Likewise.
55067         * modules/crypto/des (License): Likewise.
55068         * modules/crypto/gc (License): Likewise.
55069         * modules/crypto/gc-arcfour (License): Likewise.
55070         * modules/crypto/gc-arctwo (License): Likewise.
55071         * modules/crypto/gc-des (License): Likewise.
55072         * modules/crypto/gc-hmac-md5 (License): Likewise.
55073         * modules/crypto/gc-hmac-sha1 (License): Likewise.
55074         * modules/crypto/gc-md2 (License): Likewise.
55075         * modules/crypto/gc-md4 (License): Likewise.
55076         * modules/crypto/gc-md5 (License): Likewise.
55077         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
55078         * modules/crypto/gc-random (License): Likewise.
55079         * modules/crypto/gc-rijndael (License): Likewise.
55080         * modules/crypto/gc-sha1 (License): Likewise.
55081         * modules/crypto/md2 (License): Likewise.
55082         * modules/crypto/md4 (License): Likewise.
55083
55084 2007-07-30  Jim Meyering  <jim@meyering.net>
55085
55086         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
55087         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
55088         it has valid stat data.  This bug would cause du not to count the
55089         sizes of inaccessible directories.
55090         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
55091         in <http://bugzilla.redhat.com/250077>.
55092
55093 2007-07-25  Peter O'Gorman  <peter@pogma.com>
55094             Bruno Haible  <bruno@clisp.org>
55095
55096         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
55097         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
55098         #include_next, gives a diagnostic about it, but reports no error in
55099         the exit code.
55100         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55101
55102 2007-07-24  Ben Pfaff  <blp@gnu.org>
55103
55104         Improve name: "count-one-bits" is better than "popcount".
55105         * MODULES.html.sh: Update name.
55106         * lib/popcount.h: Renamed lib/count-one-bits.h.
55107         (popcount): Renamed count_one_bits.
55108         (popcountl): Renamed count_one_bits_l.
55109         (popcountll): Renamed count_one_bits_ll.
55110         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
55111         * modules/popcount: Renamed module/count-one-bits.
55112         * modules/popcount-tests: Renamed module/count-one-bits-tests.
55113         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
55114
55115 2007-07-23  Ben Pfaff  <blp@gnu.org>
55116
55117         * lib/popcount.h (popcount32): Reduce size of constants, to allow
55118         better code generation, and add U to large constants to avoid
55119         warnings, in non-GCC case.
55120         Suggested by Bruno Haible.
55121
55122 2007-07-23  Ben Pfaff  <blp@gnu.org>
55123
55124         * lib/popcount.h: Use verify_true instead of if...abort.
55125         * modules/popcount: Depend on verify module.
55126         Suggested by Jim Meyering.
55127
55128 2007-07-23  Bruno Haible  <bruno@clisp.org>
55129
55130         * gnulib-tool (func_import): Create a .cvsignore file also when the
55131         directory is not yet in CVS but the toplevel directory is. When
55132         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
55133         Reported by Karl Berry.
55134
55135 2007-07-22  Ben Pfaff  <blp@gnu.org>
55136
55137         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
55138         case.
55139         Suggested by Eric Blake.
55140
55141 2007-07-22  Ben Pfaff  <blp@gnu.org>
55142
55143         New module: popcount.
55144         * MODULES.html.sh: Add popcount.
55145         * modules/popcount: New file.
55146         * modules/popcount-tests: New file.
55147         * tests/test-popcount.c: New file.
55148         * lib/popcount.h: New file.
55149         * m4/popcount.m4: New file.
55150
55151 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55152
55153         * build-aux/announce-gen: Update to GPLv3.
55154
55155         * build-aux/config.guess: Update from config.
55156
55157 2007-07-21  Bruno Haible  <bruno@clisp.org>
55158
55159         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
55160         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
55161
55162 2007-07-20  Jim Meyering  <jim@meyering.net>
55163
55164         * check-module: Diagnose a self-dependency.
55165
55166 2007-07-19  Bruno Haible  <bruno@clisp.org>
55167
55168         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
55169         empty.
55170         Reported by Eric Blake.
55171
55172 2007-07-18  Bruno Haible  <bruno@clisp.org>
55173
55174         * gnulib-tool: New options --po-base, --po-domain.
55175         (func_usage): Document them.
55176         (pobase, po_domain): New variables.
55177         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
55178         DEFAULT_TEXT_DOMAIN.
55179         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
55180         (func_import): Consider pobase and po_domain. Create a po/ directory.
55181         (func_create_testdir): Set pobase and po_domain to empty.
55182         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
55183         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
55184
55185 2007-07-18  Bruno Haible  <bruno@clisp.org>
55186
55187         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55188         EXTRA_DIST augmentation for files in build-aux/.
55189
55190 2007-07-16  Bruno Haible  <bruno@clisp.org>
55191
55192         * modules/lseek (License): Use the synonymous term "LGPLv2+".
55193         * modules/getdelim (License): Likewise.
55194
55195 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55196
55197         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
55198         * modules/d-type (License): Likewise.
55199         * modules/extensions (License): Likewise.
55200         * modules/fnmatch (License): Likewise.
55201         * modules/fseeko (License): Likewise.
55202         * modules/getaddrinfo (License): Likewise.
55203         * modules/getline (License): Likewise.
55204         * modules/getlogin_r (License): Likewise.
55205         * modules/getpass (License): Likewise.
55206         * modules/gettimeofday (License): Likewise.
55207         * modules/glob (License): Likewise.
55208         * modules/inet_ntop (License): Likewise.
55209         * modules/malloc (License): Likewise.
55210         * modules/malloca (License): Likewise.
55211         * modules/memmem (License): Likewise.
55212         * modules/mempcpy (License): Likewise.
55213         * modules/memset (License): Likewise.
55214         * modules/minmax (License): Likewise.
55215         * modules/mktime (License): Likewise.
55216         * modules/netinet_in (License): Likewise.
55217         * modules/pathmax (License): Likewise.
55218         * modules/poll (License): Likewise.
55219         * modules/regex (License): Likewise.
55220         * modules/snprintf (License): Likewise.
55221         * modules/stdbool (License): Likewise.
55222         * modules/stdint (License): Likewise.
55223         * modules/stdio (License): Likewise.
55224         * modules/strcase (License): Likewise.
55225         * modules/strcasestr (License): Likewise.
55226         * modules/strdup (License): Likewise.
55227         * modules/string (License): Likewise.
55228         * modules/strndup (License): Likewise.
55229         * modules/strnlen (License): Likewise.
55230         * modules/strpbrk (License): Likewise.
55231         * modules/strptime (License): Likewise.
55232         * modules/strsep (License): Likewise.
55233         * modules/sys_select (License): Likewise.
55234         * modules/sys_socket (License): Likewise.
55235         * modules/sys_stat (License): Likewise.
55236         * modules/sys_time (License): Likewise.
55237         * modules/time (License): Likewise.
55238         * modules/time_r (License): Likewise.
55239         * modules/timegm (License): Likewise.
55240         * modules/unistd (License): Likewise.
55241         * modules/vsnprintf (License): Likewise.
55242         * modules/wctype (License): Likewise.
55243
55244 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55245
55246         * modules/argz (License): LGPLv2+.
55247
55248 2007-07-15  Karl Berry  <karl@gnu.org>
55249
55250         * doc/gnulib.texi: revise node structure per new fdl.texi.
55251
55252 2007-07-14  Bruno Haible  <bruno@clisp.org>
55253
55254         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
55255         the output file.
55256         * lib/uniname/uninames.h: Regenerated.
55257
55258 2007-07-14  Karl Berry  <karl@gnu.org>
55259
55260         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
55261         omitting sectioning and index commands.
55262
55263 2007-07-13  Bruno Haible  <bruno@clisp.org>
55264
55265         New gnulib-tool option --more-symlinks.
55266         * gnulib-tool (func_usage): Document --more-symlinks.
55267         (do_copyrights): New variable.
55268         Recognize option --more-symlinks.
55269         (func_import): Don't add a copyright notice transform to
55270         sed_transform_lib_file if do_copyrights is empty.
55271
55272 2007-07-13  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/vasnprintf.c (decimal_point_char): Define also if
55275         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
55276         && !NEED_PRINTF_DIRECTIVE_A.
55277         Reported by Clemens Koller <clemens.koller@anagramm.de> via
55278         Gary V. Vaughan <gary@gnu.org>.
55279
55280 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
55281
55282         * lib/inttypes_.h: Undo previous change, since it was fixed
55283         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
55284
55285 2007-07-13  Bruno Haible  <bruno@clisp.org>
55286
55287         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
55288         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
55289
55290 2007-07-13  Jim Meyering  <jim@meyering.net>
55291
55292         df: Don't fail for Tru64's "file-on-file mount".
55293         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
55294         so we fall through and use statfs instead.  Details here:
55295         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
55296         Reported by Albert Chin.
55297
55298 2007-07-13  Bruno Haible  <bruno@clisp.org>
55299
55300         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
55301         * modules/configmake (License): Likewise.
55302         * modules/gettext (License): Likewise.
55303         * modules/gettext-h (License): Likewise.
55304         * modules/include_next (License): Likewise.
55305         * modules/link-warning (License): Likewise.
55306         * modules/localcharset (License): Likewise.
55307         * modules/localename (License): Likewise.
55308         * modules/lock (License): Likewise.
55309         * modules/relocatable-lib-lgpl (License): Likewise.
55310         * modules/size_max (License): Likewise.
55311         * modules/vasnprintf (License): Likewise.
55312         * modules/wchar (License): Likewise.
55313         * modules/xsize (License): Likewise.
55314
55315 2007-07-13  Bruno Haible  <bruno@clisp.org>
55316
55317         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
55318         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
55319
55320 2007-07-12  Bruno Haible  <bruno@clisp.org>
55321
55322         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
55323         in the modules files.
55324
55325 2007-07-11  Karl Berry  <karl@gnu.org>
55326
55327         * MODULES.html.sh (func_module): use
55328          sed -e '\|^'"${includefile}"'$|d'
55329          instead of /.../d, to avoid errors on $includefile's containing /.
55330
55331 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55332
55333         * gnulib-tool (func_import): Avoid duplication of --avoid
55334         statements
55335         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
55336         names to `_' in variable names.
55337
55338 2007-07-10  Eric Blake  <ebb9@byu.net>
55339
55340         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
55341         * NEWS: Document this change.
55342
55343 2007-07-08  Bruno Haible  <bruno@clisp.org>
55344
55345         Update to Unicode 5.0.
55346         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
55347         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
55348         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
55349         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
55350         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
55351         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
55352         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
55353         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
55354         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
55355         U+10A3F, U+1D242..U+1D244.
55356         (nonspacing_table_ind): Update.
55357         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
55358         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
55359
55360 2007-07-08  Bruno Haible  <bruno@clisp.org>
55361
55362         Update to Unicode 5.0.
55363         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
55364         code transform. Extend the name index field of unicode_name_to_code and
55365         unicode_code_to_name from 16 to 24 bits.
55366         * lib/uniname/uniname.c (unicode_character_name,
55367         unicode_name_character): Add the range 0x12xxx to the code transform.
55368         * lib/uniname/uninames.h: Regenerated.
55369         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
55370
55371 2007-07-07  Bruno Haible  <bruno@clisp.org>
55372
55373         * modules/wcwidth-tests: New file.
55374         * tests/test-wcwidth.c: New file.
55375
55376         Work around MacOS X wcwidth() bug.
55377         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
55378         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
55379         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
55380         original wcwidth in non-UTF-8 locales.
55381         * modules/wcwidth (Depends-on): Add localcharset, streq,
55382         uniwidth/width.
55383         * doc/functions/wcwidth.texi: Update.
55384
55385 2007-07-07  Bruno Haible  <bruno@clisp.org>
55386
55387         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
55388         (wcwidth): New declaration.
55389         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
55390         macros.
55391         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
55392         here. Prepare for creating <wchar.h> unconditionally.
55393         * modules/wchar (Depends-on): Add link-warning.
55394         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
55395         REPLACE_WCWIDTH, and GL_LINK_WARNING.
55396         * lib/wcwidth.h: Remove file.
55397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
55398         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
55399         * modules/wcwidth (Files): Remove lib/wcwidth.h.
55400         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
55401         (Include): Replace wcwidth.h with <wchar.h>.
55402         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
55403         * lib/mbchar.h: Don't include wcwidth.h.
55404         * lib/mbswidth.c: Likewise.
55405         * NEWS: Mention the change.
55406
55407 2007-07-07  Bruno Haible  <bruno@clisp.org>
55408
55409         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55410         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55411         definition with an external declaration.
55412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
55413         defined as a function. Remove AC_C_INLINE requirement.
55414         * modules/wcwidth (Files): Add lib/wcwidth.c.
55415         (Makefile.am): Remove redundant statement.
55416
55417 2007-07-07  Bruno Haible  <bruno@clisp.org>
55418
55419         * MODULES.html.sh (Unicode string functions): Add the new modules.
55420
55421         * tests/uniwidth/test-u32-strwidth.c: New file.
55422         * modules/uniwidth/u32-strwidth-tests: New file.
55423
55424         * lib/uniwidth/u32-strwidth.c: New file.
55425         * modules/uniwidth/u32-strwidth: New file.
55426
55427         * tests/uniwidth/test-u16-strwidth.c: New file.
55428         * modules/uniwidth/u16-strwidth-tests: New file.
55429
55430         * lib/uniwidth/u16-strwidth.c: New file.
55431         * modules/uniwidth/u16-strwidth: New file.
55432
55433         * tests/uniwidth/test-u8-strwidth.c: New file.
55434         * modules/uniwidth/u8-strwidth-tests: New file.
55435
55436         * lib/uniwidth/u8-strwidth.c: New file.
55437         * modules/uniwidth/u8-strwidth: New file.
55438
55439         * tests/uniwidth/test-u32-width.c: New file.
55440         * modules/uniwidth/u32-width-tests: New file.
55441
55442         * lib/uniwidth/u32-width.c: New file.
55443         * modules/uniwidth/u32-width: New file.
55444
55445         * tests/uniwidth/test-u16-width.c: New file.
55446         * modules/uniwidth/u16-width-tests: New file.
55447
55448         * lib/uniwidth/u16-width.c: New file.
55449         * modules/uniwidth/u16-width: New file.
55450
55451         * tests/uniwidth/test-u8-width.c: New file.
55452         * modules/uniwidth/u8-width-tests: New file.
55453
55454         * lib/uniwidth/u8-width.c: New file.
55455         * modules/uniwidth/u8-width: New file.
55456
55457         * tests/uniwidth/test-uc_width.c: New file.
55458         * modules/uniwidth/width-tests: New file.
55459
55460         * lib/uniwidth/width.c: New file, from GNU libiconv.
55461         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
55462         * modules/uniwidth/width: New file.
55463
55464         * lib/uniwidth.h: New file, from GNU libiconv.
55465         * modules/uniwidth/base: New file.
55466
55467 2007-07-07  Bruno Haible  <bruno@clisp.org>
55468
55469         * lib/uniname.h: New file, from GNU gettext.
55470         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
55471         * lib/uniname/uninames.h: New file, from GNU gettext.
55472         * lib/uniname/uniname.c: New file, from GNU gettext.
55473         * tests/uniname/test-uninames.sh: New file.
55474         * tests/uniname/test-uninames.c: New file, from GNU gettext.
55475         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
55476         * modules/uniname/base: New file.
55477         * modules/uniname/uniname: New file.
55478         * modules/uniname/uniname-tests: New file.
55479         * MODULES.html.sh (Unicode string functions): Add the new modules.
55480
55481 2007-07-06  Bruno Haible  <bruno@clisp.org>
55482
55483         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
55484
55485 2007-07-06  Bruno Haible  <bruno@clisp.org>
55486
55487         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
55488         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
55489         includes <cygwin/sys_time.h> which includes <sys/select.h> which
55490         include <sys/time.h>.
55491         Reported by Eric Blake.
55492
55493 2007-07-06  Eric Blake  <ebb9@byu.net>
55494
55495         Fix testing canonicalize on cygwin.
55496         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55497         Revert patch from 2007-06-19.
55498         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
55499         canonicalize module is also in use.
55500         * tests/test-canonicalize.c: New file.
55501         * tests/test-canonicalize.sh: Likewise.
55502         * modules/canonicalize-tests: Likewise.
55503
55504 2007-07-06  Jim Meyering  <jim@meyering.net>
55505
55506         * lib/getugroups.c (getugroups): Detect getgrent failure.
55507         Adjust comment to reflect reality: this function may return -1.
55508
55509 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55510
55511         * build-aux/bootstrap (TP_URL,get_translations): Update to use
55512         the new TP address.
55513         (usage): Fix typo
55514         (gnulib_mk): New variable.
55515
55516 2007-07-05  Jim Meyering  <jim@meyering.net>
55517
55518         Don't let endgrent clobber errno, no matter how improbable.
55519         * lib/getugroups.c (getugroups): Save and restore errno around
55520         endgrent call.
55521
55522         Close the group DB even when failing with 2^31 or more members.
55523         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
55524
55525 2007-07-04  Jim Meyering  <jim@meyering.net>
55526
55527         * lib/getugroups.h: New file.
55528         * lib/getugroups.c: Include "getugroups.h".
55529         Remove uses of "register" keyword.
55530         Move local variable, "cp", down into scope where used.
55531         Give "username" parameter the "const" attribute.
55532         * modules/getugroups (Files): Add lib/getugroups.h
55533
55534 2007-07-04  Karl Berry  <karl@gnu.org>
55535
55536         * MODULES.html.sh (func_all_modules): Complete rename of
55537         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
55538
55539 2007-07-02  Bruno Haible  <bruno@clisp.org>
55540
55541         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
55542         mode, when inttypes.h comes from gnulib.
55543         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55544
55545 2007-07-02  Simon Josefsson  <simon@josefsson.org>
55546
55547         * NEWS: Mention lgpl module name change.
55548
55549         * modules/lgpl-2.1: Renamed from lgpl.
55550
55551         * NEWS: Mention gpl module name change.
55552
55553         * modules/gpl-3.0: New file, based on gpl-2.0.
55554
55555         * modules/gpl-2.0: Renamed from gpl.
55556
55557         * modules/gpl: Fix filename, doc/gpl.texi is now found at
55558         doc/gpl-2.0.texi.
55559
55560 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55561
55562         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
55563         #define __STDC_LIMIT_MACROS temporarily while including
55564         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
55565         Problem reported by Joel E. Denny in
55566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
55567
55568 2007-07-01  Bruno Haible  <bruno@clisp.org>
55569
55570         * lib/unistdio.h: New file.
55571         * lib/unistdio/u-asnprintf.h: New file.
55572         * lib/unistdio/u-asprintf.h: New file.
55573         * lib/unistdio/u-printf-args.c: New file.
55574         * lib/unistdio/u-printf-args.h: New file.
55575         * lib/unistdio/u-printf-parse.h: New file.
55576         * lib/unistdio/u-snprintf.h: New file.
55577         * lib/unistdio/u-sprintf.h: New file.
55578         * lib/unistdio/u-vasprintf.h: New file.
55579         * lib/unistdio/u-vsnprintf.h: New file.
55580         * lib/unistdio/u-vsprintf.h: New file.
55581         * lib/unistdio/ulc-asnprintf.c: New file.
55582         * lib/unistdio/ulc-asprintf.c: New file.
55583         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
55584         * lib/unistdio/ulc-printf-parse.c: New file.
55585         * lib/unistdio/ulc-snprintf.c: New file.
55586         * lib/unistdio/ulc-sprintf.c: New file.
55587         * lib/unistdio/ulc-vasnprintf.c: New file.
55588         * lib/unistdio/ulc-vasprintf.c: New file.
55589         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
55590         * lib/unistdio/ulc-vsnprintf.c: New file.
55591         * lib/unistdio/ulc-vsprintf.c: New file.
55592         * lib/unistdio/u8-asnprintf.c: New file.
55593         * lib/unistdio/u8-asprintf.c: New file.
55594         * lib/unistdio/u8-printf-parse.c: New file.
55595         * lib/unistdio/u8-snprintf.c: New file.
55596         * lib/unistdio/u8-sprintf.c: New file.
55597         * lib/unistdio/u8-vasnprintf.c: New file.
55598         * lib/unistdio/u8-vasprintf.c: New file.
55599         * lib/unistdio/u8-vsnprintf.c: New file.
55600         * lib/unistdio/u8-vsprintf.c: New file.
55601         * lib/unistdio/u8-u8-asnprintf.c: New file.
55602         * lib/unistdio/u8-u8-asprintf.c: New file.
55603         * lib/unistdio/u8-u8-snprintf.c: New file.
55604         * lib/unistdio/u8-u8-sprintf.c: New file.
55605         * lib/unistdio/u8-u8-vasnprintf.c: New file.
55606         * lib/unistdio/u8-u8-vasprintf.c: New file.
55607         * lib/unistdio/u8-u8-vsnprintf.c: New file.
55608         * lib/unistdio/u8-u8-vsprintf.c: New file.
55609         * lib/unistdio/u16-asnprintf.c: New file.
55610         * lib/unistdio/u16-asprintf.c: New file.
55611         * lib/unistdio/u16-printf-parse.c: New file.
55612         * lib/unistdio/u16-snprintf.c: New file.
55613         * lib/unistdio/u16-sprintf.c: New file.
55614         * lib/unistdio/u16-vasnprintf.c: New file.
55615         * lib/unistdio/u16-vasprintf.c: New file.
55616         * lib/unistdio/u16-vsnprintf.c: New file.
55617         * lib/unistdio/u16-vsprintf.c: New file.
55618         * lib/unistdio/u16-u16-asnprintf.c: New file.
55619         * lib/unistdio/u16-u16-asprintf.c: New file.
55620         * lib/unistdio/u16-u16-snprintf.c: New file.
55621         * lib/unistdio/u16-u16-sprintf.c: New file.
55622         * lib/unistdio/u16-u16-vasnprintf.c: New file.
55623         * lib/unistdio/u16-u16-vasprintf.c: New file.
55624         * lib/unistdio/u16-u16-vsnprintf.c: New file.
55625         * lib/unistdio/u16-u16-vsprintf.c: New file.
55626         * lib/unistdio/u32-asnprintf.c: New file.
55627         * lib/unistdio/u32-asprintf.c: New file.
55628         * lib/unistdio/u32-printf-parse.c: New file.
55629         * lib/unistdio/u32-snprintf.c: New file.
55630         * lib/unistdio/u32-sprintf.c: New file.
55631         * lib/unistdio/u32-vasnprintf.c: New file.
55632         * lib/unistdio/u32-vasprintf.c: New file.
55633         * lib/unistdio/u32-vsnprintf.c: New file.
55634         * lib/unistdio/u32-vsprintf.c: New file.
55635         * lib/unistdio/u32-u32-asnprintf.c: New file.
55636         * lib/unistdio/u32-u32-asprintf.c: New file.
55637         * lib/unistdio/u32-u32-snprintf.c: New file.
55638         * lib/unistdio/u32-u32-sprintf.c: New file.
55639         * lib/unistdio/u32-u32-vasnprintf.c: New file.
55640         * lib/unistdio/u32-u32-vasprintf.c: New file.
55641         * lib/unistdio/u32-u32-vsnprintf.c: New file.
55642         * lib/unistdio/u32-u32-vsprintf.c: New file.
55643         * tests/unistdio/test-ulc-asnprintf1.c: New file.
55644         * tests/unistdio/test-ulc-asnprintf1.h: New file.
55645         * tests/unistdio/test-ulc-printf1.h: New file.
55646         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
55647         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
55648         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
55649         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
55650         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
55651         * tests/unistdio/test-ulc-vasprintf1.c: New file.
55652         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
55653         * tests/unistdio/test-ulc-vsprintf1.c: New file.
55654         * tests/unistdio/test-u8-asnprintf1.c: New file.
55655         * tests/unistdio/test-u8-asnprintf1.h: New file.
55656         * tests/unistdio/test-u8-printf1.h: New file.
55657         * tests/unistdio/test-u8-vasnprintf1.c: New file.
55658         * tests/unistdio/test-u8-vasnprintf2.c: New file.
55659         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
55660         * tests/unistdio/test-u8-vasnprintf3.c: New file.
55661         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
55662         * tests/unistdio/test-u8-vasprintf1.c: New file.
55663         * tests/unistdio/test-u8-vsnprintf1.c: New file.
55664         * tests/unistdio/test-u8-vsprintf1.c: New file.
55665         * tests/unistdio/test-u16-asnprintf1.c: New file.
55666         * tests/unistdio/test-u16-asnprintf1.h: New file.
55667         * tests/unistdio/test-u16-printf1.h: New file.
55668         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55669         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55670         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55671         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55672         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55673         * tests/unistdio/test-u16-vasprintf1.c: New file.
55674         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55675         * tests/unistdio/test-u16-vsprintf1.c: New file.
55676         * tests/unistdio/test-u32-asnprintf1.c: New file.
55677         * tests/unistdio/test-u32-asnprintf1.h: New file.
55678         * tests/unistdio/test-u32-printf1.h: New file.
55679         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55680         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55681         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55682         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55683         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55684         * tests/unistdio/test-u32-vasprintf1.c: New file.
55685         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55686         * tests/unistdio/test-u32-vsprintf1.c: New file.
55687         * modules/unistdio/base: New file.
55688         * modules/unistdio/u-printf-args: New file.
55689         * modules/unistdio/ulc-asnprintf: New file.
55690         * modules/unistdio/ulc-asprintf: New file.
55691         * modules/unistdio/ulc-fprintf: New file.
55692         * modules/unistdio/ulc-printf-parse: New file.
55693         * modules/unistdio/ulc-snprintf: New file.
55694         * modules/unistdio/ulc-sprintf: New file.
55695         * modules/unistdio/ulc-vasnprintf: New file.
55696         * modules/unistdio/ulc-vasprintf: New file.
55697         * modules/unistdio/ulc-vfprintf: New file.
55698         * modules/unistdio/ulc-vsnprintf: New file.
55699         * modules/unistdio/ulc-vsprintf: New file.
55700         * modules/unistdio/u8-asnprintf: New file.
55701         * modules/unistdio/u8-asprintf: New file.
55702         * modules/unistdio/u8-printf-parse: New file.
55703         * modules/unistdio/u8-snprintf: New file.
55704         * modules/unistdio/u8-sprintf: New file.
55705         * modules/unistdio/u8-vasnprintf: New file.
55706         * modules/unistdio/u8-vasprintf: New file.
55707         * modules/unistdio/u8-vsnprintf: New file.
55708         * modules/unistdio/u8-vsprintf: New file.
55709         * modules/unistdio/u8-u8-asnprintf: New file.
55710         * modules/unistdio/u8-u8-asprintf: New file.
55711         * modules/unistdio/u8-u8-snprintf: New file.
55712         * modules/unistdio/u8-u8-sprintf: New file.
55713         * modules/unistdio/u8-u8-vasnprintf: New file.
55714         * modules/unistdio/u8-u8-vasprintf: New file.
55715         * modules/unistdio/u8-u8-vsnprintf: New file.
55716         * modules/unistdio/u8-u8-vsprintf: New file.
55717         * modules/unistdio/u16-asnprintf: New file.
55718         * modules/unistdio/u16-asprintf: New file.
55719         * modules/unistdio/u16-printf-parse: New file.
55720         * modules/unistdio/u16-snprintf: New file.
55721         * modules/unistdio/u16-sprintf: New file.
55722         * modules/unistdio/u16-vasnprintf: New file.
55723         * modules/unistdio/u16-vasprintf: New file.
55724         * modules/unistdio/u16-vsnprintf: New file.
55725         * modules/unistdio/u16-vsprintf: New file.
55726         * modules/unistdio/u16-u16-asnprintf: New file.
55727         * modules/unistdio/u16-u16-asprintf: New file.
55728         * modules/unistdio/u16-u16-snprintf: New file.
55729         * modules/unistdio/u16-u16-sprintf: New file.
55730         * modules/unistdio/u16-u16-vasnprintf: New file.
55731         * modules/unistdio/u16-u16-vasprintf: New file.
55732         * modules/unistdio/u16-u16-vsnprintf: New file.
55733         * modules/unistdio/u16-u16-vsprintf: New file.
55734         * modules/unistdio/u32-asnprintf: New file.
55735         * modules/unistdio/u32-asprintf: New file.
55736         * modules/unistdio/u32-printf-parse: New file.
55737         * modules/unistdio/u32-snprintf: New file.
55738         * modules/unistdio/u32-sprintf: New file.
55739         * modules/unistdio/u32-vasnprintf: New file.
55740         * modules/unistdio/u32-vasprintf: New file.
55741         * modules/unistdio/u32-vsnprintf: New file.
55742         * modules/unistdio/u32-vsprintf: New file.
55743         * modules/unistdio/u32-u32-asnprintf: New file.
55744         * modules/unistdio/u32-u32-asprintf: New file.
55745         * modules/unistdio/u32-u32-snprintf: New file.
55746         * modules/unistdio/u32-u32-sprintf: New file.
55747         * modules/unistdio/u32-u32-vasnprintf: New file.
55748         * modules/unistdio/u32-u32-vasprintf: New file.
55749         * modules/unistdio/u32-u32-vsnprintf: New file.
55750         * modules/unistdio/u32-u32-vsprintf: New file.
55751         * modules/unistdio/ulc-asnprintf-tests: New file.
55752         * modules/unistdio/ulc-vasnprintf-tests: New file.
55753         * modules/unistdio/ulc-vasprintf-tests: New file.
55754         * modules/unistdio/ulc-vsnprintf-tests: New file.
55755         * modules/unistdio/ulc-vsprintf-tests: New file.
55756         * modules/unistdio/u8-asnprintf-tests: New file.
55757         * modules/unistdio/u8-vasnprintf-tests: New file.
55758         * modules/unistdio/u8-vasprintf-tests: New file.
55759         * modules/unistdio/u8-vsnprintf-tests: New file.
55760         * modules/unistdio/u8-vsprintf-tests: New file.
55761         * modules/unistdio/u16-asnprintf-tests: New file.
55762         * modules/unistdio/u16-vasnprintf-tests: New file.
55763         * modules/unistdio/u16-vasprintf-tests: New file.
55764         * modules/unistdio/u16-vsnprintf-tests: New file.
55765         * modules/unistdio/u16-vsprintf-tests: New file.
55766         * modules/unistdio/u32-asnprintf-tests: New file.
55767         * modules/unistdio/u32-vasnprintf-tests: New file.
55768         * modules/unistdio/u32-vasprintf-tests: New file.
55769         * modules/unistdio/u32-vsnprintf-tests: New file.
55770         * modules/unistdio/u32-vsprintf-tests: New file.
55771         * MODULES.html.sh (Unicode string functions): Add the new modules.
55772
55773 2007-07-01  Bruno Haible  <bruno@clisp.org>
55774
55775         * lib/sprintf.c (sprintf): Limit the available length estimation,
55776         to avoid address wraparound.
55777         * lib/vsprintf.c (vsprintf): Likewise.
55778         * modules/sprintf-posix (Dependencies): Add stdint.
55779         * modules/vsprintf-posix (Dependencies): Likewise.
55780
55781 2007-07-01  Bruno Haible  <bruno@clisp.org>
55782
55783         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55784         Windows PATH as well. Conservative double-quoting. Comments.
55785
55786 2007-07-01  Bruno Haible  <bruno@clisp.org>
55787             Eric Blake  <ebb9@byu.net>
55788             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55789
55790         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55791         empty components in $PATH, denoting '.'.
55792
55793 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55794
55795         * gnulib-tool: Fix indentation.
55796         (func_create_megatestdir): Likewise.
55797         Report by Bruno Haible.
55798
55799 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55800
55801         Sync from Automake.
55802         * build-aux/gnupload: Fix shell portability issues with for loops.
55803         Report by Karl Berry.
55804
55805 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55806
55807         * build-aux/maint.mk (POURL): Use translationproject.org.
55808
55809 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55810             Bruno Haible  <bruno@clisp.org>
55811
55812         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55813         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55814         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55815         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55816         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55817
55818 2007-06-27  Bruno Haible  <bruno@clisp.org>
55819
55820         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55821         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55822
55823 2007-06-26  Karl Berry  <karl@gnu.org>
55824
55825         * MODULES.html.sh: remove xreadlink-with-size.
55826
55827 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55828
55829         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55830         method that I hope also handles the double-include problem noted
55831         by Bruno Haible in
55832         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55833
55834 2007-06-23  Bruno Haible  <bruno@clisp.org>
55835
55836         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55837         Don't let the 'mostlyclean' target fail if the last subdirectory could
55838         not be removed.
55839         Reported by Karl Berry.
55840
55841 2007-06-23  Bruno Haible  <bruno@clisp.org>
55842
55843         * gnulib-tool (echo): Add a speedier workaround for ksh.
55844         * tests/test-echo.sh: Likewise.
55845
55846 2007-06-23  Bruno Haible  <bruno@clisp.org>
55847
55848         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55849         * tests/test-echo.sh: Likewise.
55850
55851 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55852
55853         * gnulib-tool (IFS): Initialize early, so we don't set it to
55854         empty later.
55855         (self_abspathname): Rewrite algorithm to set it, reindent.
55856         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55857         (func_create_megatestdir): Merge some sed scripts.
55858
55859 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55860
55861         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55862         exposed by Sun Studio 11 cc on Solaris 8.
55863
55864 2007-06-22  Bruno Haible  <bruno@clisp.org>
55865
55866         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55867         backslashes.
55868         * tests/test-echo.sh: New file.
55869
55870 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55871
55872         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55873         simplify `sed_replace_build_aux' scripts, they are portable but
55874         echoing them with `echo' is not.
55875         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55876
55877 2007-06-21  Karl Berry  <karl@gnu.org>
55878
55879         * config/srclist.txt: guess we can't handle the licenses via
55880         srclist at the moment.
55881
55882 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55883
55884         * MODULES.html.sh: Add include_next.
55885         * modules/include_next: New file.
55886
55887 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55888
55889         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55890         INCLUDE_NEXT.
55891         (gl_CHECK_NEXT_HEADERS): New macro.
55892         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55893         the obsolescent gl_ABSOLUTE_HEADER.
55894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55895         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55896         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55897         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55898         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55899         * m4/math_h.m4 (gl_MATH_H): Likewise.
55900         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55901         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55902         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55903         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55904         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55905         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55906         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55907         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55908         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55909         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55910         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55911         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55912         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55913         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55914         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55915         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55916         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55917         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55918         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55919         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55920         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55921         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55922         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55923         * lib/float_.h: Likewise.
55924         * lib/inttypes_.h: Likewise.
55925         * lib/math_.h: Likewise.
55926         * lib/search_.h: Likewise.
55927         * lib/signal_.h: Likewise.
55928         * lib/stdint_.h: Likewise.
55929         * lib/stdio_.h: Likewise.
55930         * lib/stdlib_.h: Likewise.
55931         * lib/string_.h: Likewise.
55932         * lib/sys_stat_.h: Likewise.
55933         * lib/sys_time_.h: Likewise.
55934         * lib/time_.h: Likewise.
55935         * lib/unistd_.h: Likewise.
55936         * lib/wchar_.h: Likewise.
55937         * lib/wctype_.h: Likewise.
55938         * lib/dirent_.h: Likewise.
55939         * lib/iconv_.h: Likewise.
55940         * lib/locale_.h: Likewise.
55941         * lib/netinet_in_.h: Likewise.
55942         * lib/sys_select_.h: Likewise.
55943         * lib/sys_socket_.h: Likewise.
55944         * lib/sysexits_.h: Likewise.
55945         * modules/fcntl (Depends-on): Depend on include_next, not
55946         absolute_header.
55947         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55948         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55949         * modules/fchdir: Likewise.
55950         * modules/float: Likewise.
55951         * modules/iconv_open: Likewise.
55952         * modules/inttypes: Likewise.
55953         * modules/locale: Likewise.
55954         * modules/math: Likewise.
55955         * modules/netinet_in: Likewise.
55956         * modules/search: Likewise.
55957         * modules/signal: Likewise.
55958         * modules/stdint: Likewise.
55959         * modules/stdio: Likewise.
55960         * modules/stdlib: Likewise.
55961         * modules/string: Likewise.
55962         * modules/sys_select: Likewise.
55963         * modules/sys_socket: Likewise.
55964         * modules/sys_stat: Likewise.
55965         * modules/sys_time: Likewise.
55966         * modules/sysexits: Likewise.
55967         * modules/time: Likewise.
55968         * modules/unistd: Likewise.
55969         * modules/wchar: Likewise.
55970         * modules/wctype: Likewise.
55971         * modules/sys_stat: Change maintainer to "all".
55972         * modules/unistd: Likewise.
55973
55974 2007-06-20  Karl Berry  <karl@gnu.org>
55975
55976         * config/srclist.txt: track www changes in license files.
55977
55978 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55979
55980         * build-aux/bootstrap: Remove stray dot.
55981         Make sure build_aux settings are honored when linking
55982         gnulib_extra_files.
55983
55984 2007-06-19  Eric Blake  <ebb9@byu.net>
55985
55986         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55987         Allow compilation on cygwin.
55988
55989 2007-06-19  Jim Meyering  <jim@meyering.net>
55990
55991         xreadlink-with-size: Remove module.  No longer used.
55992         Ex-callers now use xreadlink or mreadlink-with-size.
55993         * modules/xreadlink-with-size: Remove module.
55994         * lib/xreadlink-with-size.c: Remove file.
55995         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55996         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55997         just before the function definition *is* accurate.
55998
55999         Eliminate one way canonicalize_filename_mode could exit.
56000         * lib/canonicalize.c (canonicalize_filename_mode):
56001         Use mreadlink_with_size, not xreadlink_with_size.
56002
56003 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
56004
56005         Detect porting problems to FreeBSD/arm, which has time_t wider than
56006         long int.  Original problem reported for GNU diff by Xin Li in
56007         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
56008         * modules/getdate (Depends-on): Add intprops, verify.
56009         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
56010         is an integer type no wider than long int.
56011
56012 2007-06-18  Jim Meyering  <jim@meyering.net>
56013
56014         New module: mreadlink-with-size.
56015         * MODULES.html.sh: Add mreadlink-with-size.
56016         * modules/mreadlink-with-size: New module
56017         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
56018         not xreadlink-with-size.
56019         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
56020
56021 2007-06-16  Bruno Haible  <bruno@clisp.org>
56022
56023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
56024         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
56025         Reported by Gary V. Vaughan <gary@gnu.org>.
56026
56027 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
56028
56029         Revamp lchown so that it lives in unistd.h where it belongs.
56030         * lib/lchown.h: Remove.
56031         * lib/dirchownmod.c: Don't include lib/lchown.h.
56032         * lib/fchownat.c: Likewise.
56033         * lib/openat.c: Likewise.
56034         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
56035         does not follow symlinks.
56036         (EOPNOTSUPP): Define if not defined.
56037         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
56038         is defined to 0.
56039         (lchown): New decl.
56040         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
56041         Do not check for lchown decl.
56042         Set REPLACE_LCHOWN.
56043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
56044         REPLACE_LCHOWN.
56045         * modules/chown: Make it clear it follows symlinks.
56046         * modules/lchown: Make it clear it doesn't follow symlinks.
56047         (Files): Remove lib/lchown.h
56048         (Depends-on): Add unistd.
56049         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
56050         (Include): Include <unistd.h>, not "lchown.h".
56051         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
56052         REPLACE_LCHOWN.
56053
56054 2007-06-15  Jim Meyering  <jim@meyering.net>
56055
56056         Change license (GPL to LGPL) of fsusage and dependents.
56057         * modules/fsusage (License): Change to LGPL.
56058         * modules/full-read (License): Likewise.
56059         * modules/full-write (License): Likewise.
56060         * modules/safe-read (License): Likewise.
56061         * modules/safe-write (License): Likewise.
56062
56063 2007-06-14  Ben Pfaff  <blp@gnu.org>
56064
56065         Missing part of allocsa -> malloca transition.
56066         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
56067         gl_MALLOCA.
56068
56069 2007-06-12  Bruno Haible  <bruno@clisp.org>
56070
56071         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
56072         to ia64, x86_64, i386.
56073         Reported by Eric Blake.
56074
56075 2007-06-12  Bruno Haible  <bruno@clisp.org>
56076
56077         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
56078         cross-compiling to x86_64.
56079
56080 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
56081
56082         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
56083         glitch reported by Ralf Wildenhues in
56084         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
56085
56086         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
56087         Vin Shelton.
56088
56089 2007-06-11  Bruno Haible  <bruno@clisp.org>
56090
56091         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
56092         replacement string.
56093         Reported by Eric Blake.
56094
56095 2007-06-10  Bruno Haible  <bruno@clisp.org>
56096
56097         Prepare vasnprintf code for use with Unicode strings.
56098         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
56099         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
56100         TYPE_U32_STRING.
56101         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
56102         a_u32_string variants.
56103         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56104         * lib/printf-args.c: Don't include config.h and the specification
56105         header if PRINTF_FETCHARGS is already defined.
56106         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56107         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
56108         TYPE_U16_STRING, TYPE_U32_STRING.
56109         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
56110         u16_directive, u16_directives, u32_directive, u32_directives): New
56111         types.
56112         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
56113         New declarations.
56114         * lib/printf-parse.c: Don't include config.h and the specification
56115         header if PRINTF_PARSE is already defined. Eliminate the set of
56116         parameters for WIDE_CHAR_VERSION; the user of this file must provide
56117         them now. Include c-ctype.h.
56118         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
56119         directive and CHAR_T_ONLY_ASCII.
56120         * lib/vasnprintf.c: Don't include config.h and the specification header
56121         if VASNPRINTF is already defined.
56122         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
56123         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
56124         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
56125         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
56126         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
56127         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
56128         code accordingly.
56129         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
56130         pad_ourselves also in this case, with the 'c' and 's' directives, and
56131         with a different notion of "width".
56132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
56133
56134 2007-06-10  Bruno Haible  <bruno@clisp.org>
56135
56136         * modules/unistr/u32-mbsnlen: New file.
56137         * lib/unistr/u32-mbsnlen.c: New file.
56138
56139         * modules/unistr/u16-mbsnlen: New file.
56140         * lib/unistr/u16-mbsnlen.c: New file.
56141
56142         * modules/unistr/u8-mbsnlen: New file.
56143         * lib/unistr/u8-mbsnlen.c: New file.
56144
56145         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
56146         declarations.
56147
56148 2007-06-10  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/string_.h (mbsnlen): New declaration.
56151         * lib/mbsnlen.c: New file.
56152         * m4/mbsnlen.m4: New file.
56153         * modules/mbsnlen: New file.
56154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
56155         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
56156         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
56157
56158 2007-06-10  Bruno Haible  <bruno@clisp.org>
56159
56160         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
56161
56162 2007-06-10  Bruno Haible  <bruno@clisp.org>
56163
56164         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
56165         * lib/mbuiter.h: Likewise.
56166
56167 2007-06-10  Bruno Haible  <bruno@clisp.org>
56168
56169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
56170         declaration.
56171
56172 2007-06-10  Karl Berry  <karl@gnu.org>
56173
56174         * config/srclist.txt: remove gettext entries, Bruno prefers
56175         to update individually.
56176
56177 2007-06-10  Bruno Haible  <bruno@clisp.org>
56178
56179         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
56180         'maxlen'. Ensure only length + width bytes are allocated, not
56181         length + 1 + width.
56182
56183 2007-06-09  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
56186         (CHAR_T): Remove macro.
56187         (VASNPRINTF): Update.
56188
56189 2007-06-09  Bruno Haible  <bruno@clisp.org>
56190
56191         * MODULES.html.sh (Unicode string functions): Add the new modules.
56192
56193         * modules/uniconv/u32-conv-to-enc: New file.
56194         * lib/uniconv/u32-conv-to-enc.c: New file.
56195         * modules/uniconv/u32-conv-to-enc-tests: New file.
56196         * tests/uniconv/test-u32-conv-to-enc.c: New file.
56197
56198         * modules/uniconv/u16-conv-to-enc: New file.
56199         * lib/uniconv/u16-conv-to-enc.c: New file.
56200         * lib/uniconv/u-conv-to-enc.h: New file.
56201         * modules/uniconv/u16-conv-to-enc-tests: New file.
56202         * tests/uniconv/test-u16-conv-to-enc.c: New file.
56203
56204         * modules/uniconv/u8-conv-to-enc: New file.
56205         * lib/uniconv/u8-conv-to-enc.c: New file.
56206         * modules/uniconv/u8-conv-to-enc-tests: New file.
56207         * tests/uniconv/test-u8-conv-to-enc.c: New file.
56208
56209         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
56210         u32_conv_to_encoding): New declarations.
56211
56212 2007-06-09  Bruno Haible  <bruno@clisp.org>
56213
56214         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
56215
56216 2007-06-09  Bruno Haible  <bruno@clisp.org>
56217
56218         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
56219         * modules/malloca: Renamed from modules/allocsa, updated.
56220         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
56221         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
56222         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
56223         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
56224         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
56225         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
56226         * modules/xmalloca: Renamed from modules/xallocsa, updated.
56227         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
56228         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
56229         * modules/c-strcasestr (Depends-on): Update.
56230         * lib/c-strcasestr.c: Update.
56231         * modules/c-strstr (Depends-on): Update.
56232         * lib/c-strstr.c: Update.
56233         * modules/canonicalize-lgpl (Depends-on): Update.
56234         * lib/canonicalize-lgpl.c: Update.
56235         * modules/clean-temp (Depends-on): Update.
56236         * lib/clean-temp.c: Update.
56237         * modules/csharpcomp (Depends-on): Update.
56238         * lib/csharpcomp.c: Update.
56239         * modules/csharpexec (Depends-on): Update.
56240         * lib/csharpexec.c: Update.
56241         * modules/javacomp (Depends-on): Update.
56242         * lib/javacomp.c: Update.
56243         * modules/javaexec (Depends-on): Update.
56244         * lib/javaexec.c: Update.
56245         * modules/mbscasestr (Depends-on): Update.
56246         * lib/mbscasestr.c: Update.
56247         * modules/mbsstr (Depends-on): Update.
56248         * lib/mbsstr.c: Update.
56249         * modules/setenv (Depends-on): Update.
56250         * lib/setenv.c: Update.
56251         * modules/strcasestr (Depends-on): Update.
56252         * lib/strcasestr.c: Update.
56253         * modules/striconveha (Depends-on): Update.
56254         * lib/striconveha.c: Update.
56255         * modules/relocatable-prog-wrapper (Files): Update.
56256         * lib/relocwrapper.c: Update.
56257         * build-aux/install-reloc: Update.
56258         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
56259
56260 2007-06-08  Bruno Haible  <bruno@clisp.org>
56261
56262         Port to uClibc.
56263         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
56264         * lib/fpurge.c (fpurge): Likewise.
56265         * lib/freading.c (freading): Likewise.
56266         * lib/fseeko.c (rpl_fseeko): Likewise.
56267         * lib/fseterr.c (fseterr): Likewise.
56268         * lib/fwriting.c (fwriting): Likewise.
56269         * tests/test-fflush.c (main): Avoid a failure on uClibc.
56270
56271 2007-06-08  Bruno Haible  <bruno@clisp.org>
56272
56273         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
56274         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
56275         * modules/gettext (Files): Add m4/intlmacosx.m4.
56276
56277 2007-06-07  Bruno Haible  <bruno@clisp.org>
56278
56279         * modules/localename-tests: New file.
56280         * tests/test-localename.c: New file.
56281
56282         New module 'localename'.
56283         * lib/localename.h: New file.
56284         * lib/localename.c: New file, from GNU gettext.
56285         * m4/localename.m4: New file.
56286         * modules/localename: New file.
56287
56288 2007-06-07  Bruno Haible  <bruno@clisp.org>
56289
56290         Work around the lack of <wchar.h> on some builds of uClibc.
56291         * doc/headers/wchar.texi: Update.
56292         * lib/wchar_.h: Include <wchar.h> only if it exists.
56293         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
56294         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
56295         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
56296         doesn't exist.
56297         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
56298         * modules/mbfile (Depends-on): Add wchar.
56299         * modules/mbiter (Depends-on): Likewise.
56300         * modules/mbuiter (Depends-on): Likewise.
56301         Reported by Simon Josefsson.
56302
56303 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56304
56305         Work around problem reported by Steven M. Schweda in
56306         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
56307         Tru64 5.1B with the Compaq compiler environment installed declares
56308         an 'isblank' function but does not define it in the C library.
56309         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
56310         * lib/regex_internal.h (isblank): Likewise.
56311         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
56312         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56313
56314 2007-06-05  Bruno Haible  <bruno@clisp.org>
56315
56316         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
56317         ia64.
56318         * modules/printf-safe: New file.
56319         * modules/fprintf-posix (Depends-on): Add printf-safe.
56320         * modules/printf-posix (Depends-on): Likewise.
56321         * modules/snprintf-posix (Depends-on): Likewise.
56322         * modules/sprintf-posix (Depends-on): Likewise.
56323         * modules/vasnprintf-posix (Depends-on): Likewise.
56324         * modules/vasprintf-posix (Depends-on): Likewise.
56325         * modules/vfprintf-posix (Depends-on): Likewise.
56326         * modules/vprintf-posix (Depends-on): Likewise.
56327         * modules/vsnprintf-posix (Depends-on): Likewise.
56328         * modules/vsprintf-posix (Depends-on): Likewise.
56329         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
56330         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
56331         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
56332         "no" on i386, x86_64, ia64.
56333         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
56334         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56335         on i386, x86_64, ia64.
56336         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
56337         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56338         on i386, x86_64, ia64.
56339         * tests/test-vasnprintf-posix.c: Include float.h.
56340         (LDBL80_WORDS): New macro.
56341         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56342         on i386, x86_64, ia64.
56343         * tests/test-vasprintf-posix.c: Include float.h.
56344         (LDBL80_WORDS): New macro.
56345         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56346         on i386, x86_64, ia64.
56347         * tests/test-snprintf-posix.c: Include float.h.
56348         * tests/test-sprintf-posix.c: Likewise.
56349         * tests/test-vsnprintf-posix.c: Likewise.
56350         * tests/test-vsprintf-posix.c: Likewise.
56351
56352 2007-06-05  Bruno Haible  <bruno@clisp.org>
56353
56354         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
56355         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
56356         non-IEEE numbers on i386, x86_64, ia64.
56357         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
56358         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
56359         * tests/test-isnanl.h: Include float.h.
56360         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
56361
56362 2007-06-05  Bruno Haible  <bruno@clisp.org>
56363
56364         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
56365         also the %a / %A. Handle the %a / %A code before this extra handling.
56366
56367 2007-06-05  Bruno Haible  <bruno@clisp.org>
56368
56369         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
56370         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
56371
56372 2007-06-05  Bruno Haible  <bruno@clisp.org>
56373
56374         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
56375         typo in variable name.
56376
56377 2007-06-05  Eric Blake  <ebb9@byu.net>
56378
56379         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
56380         Reported by Simon Josefsson.
56381
56382 2007-06-04  Bruno Haible  <bruno@clisp.org>
56383
56384         Avoid test failures on some PowerPC platforms.
56385         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
56386         Define differently for PowerPC.
56387         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
56388         Reported by Gary V. Vaughan <gary@gnu.org>.
56389
56390 2007-06-02  Bruno Haible  <bruno@clisp.org>
56391
56392         Fix test-stdint failure on FreeBSD/ia64.
56393         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
56394         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
56395         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
56396         * doc/headers/stdint.texi: Update.
56397
56398 2007-06-01  Bruno Haible  <bruno@clisp.org>
56399
56400         * tests/test-binary-io.c (main): Pass a third argument to open().
56401         Reported by Gary V. Vaughan <gary@gnu.org>.
56402
56403 2007-06-01  Bruno Haible  <bruno@clisp.org>
56404
56405         * doc/functions/frexpl.texi: Update for mingw.
56406
56407 2007-06-01  Bruno Haible  <bruno@clisp.org>
56408
56409         * tests/test-lseek.c (main): Disable test of errno for invalid third
56410         argument.
56411         * doc/functions/lseek.texi: Update.
56412         Reported by Gary V. Vaughan <gary@gnu.org>.
56413
56414 2007-05-28  Bruno Haible  <bruno@clisp.org>
56415
56416         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
56417
56418 2007-05-31  Eric Blake  <ebb9@byu.net>
56419
56420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
56421         cross compiling.
56422
56423 2007-05-30  Eric Blake  <ebb9@byu.net>
56424         and Bruno Haible  <bruno@clisp.org>
56425
56426         Work around mingw test failures exposed by m4-1.4.9b.
56427         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
56428         * tests/test-unistd.c: Disable uid_t and git_t tests for the
56429         moment.
56430
56431 2007-05-30  Bruno Haible  <bruno@clisp.org>
56432
56433         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
56434         assuming that they are closed. Needed on HP-UX 11.
56435
56436 2007-05-29  Bruno Haible  <bruno@clisp.org>
56437
56438         Fix a problem with #include_next.
56439         * lib/dirent_.h: Split the double-inclusion guard.
56440         * lib/fcntl_.h: Likewise.
56441         * lib/float_.h: Likewise.
56442         * lib/iconv_.h: Likewise.
56443         * lib/inttypes_.h: Likewise.
56444         * lib/locale_.h: Likewise.
56445         * lib/math_.h: Likewise.
56446         * lib/netinet_in_.h: Likewise.
56447         * lib/search_.h: Likewise.
56448         * lib/signal_.h: Likewise.
56449         * lib/stdint_.h: Likewise.
56450         * lib/stdio_.h: Likewise.
56451         * lib/stdlib_.h: Likewise.
56452         * lib/string_.h: Likewise.
56453         * lib/sys_select_.h: Likewise.
56454         * lib/sys_socket_.h: Likewise.
56455         * lib/sys_stat_.h: Likewise.
56456         * lib/sys_time_.h: Likewise.
56457         * lib/sysexits_.h: Likewise.
56458         * lib/time_.h: Likewise.
56459         * lib/unistd_.h: Likewise.
56460         * lib/wchar_.h: Likewise.
56461         * lib/wctype_.h: Likewise.
56462
56463 2007-05-29  Bruno Haible  <bruno@clisp.org>
56464
56465         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
56466         for the moment.
56467
56468 2007-05-29  Bruno Haible  <bruno@clisp.org>
56469
56470         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
56471         invocation.
56472         Reported by Eric Blake.
56473
56474 2007-05-29  Bruno Haible  <bruno@clisp.org>
56475
56476         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
56477         compiling case.
56478
56479 2007-05-29  Eric Blake  <ebb9@byu.net>
56480             Bruno Haible  <bruno@clisp.org>
56481
56482         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
56483         cross compiles.
56484
56485 2007-05-28  Eric Blake  <ebb9@byu.net>
56486
56487         * modules/closein-tests (test_closein_LDADD): Support test on
56488         cygwin with libtool.
56489
56490 2007-05-28  Bruno Haible  <bruno@clisp.org>
56491
56492         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
56493         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56494         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56495         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56496         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56497         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56498         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56499         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56500         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56501
56502 2007-05-28  Eric Blake  <ebb9@byu.net>
56503
56504         Unconditionally include <config.h> in unit tests.
56505         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
56506         * tests/test-allocsa.c, tests/test-arcfour.c,
56507         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
56508         tests/test-array_list.c, tests/test-array_oset.c,
56509         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
56510         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
56511         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
56512         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
56513         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
56514         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
56515         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
56516         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
56517         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
56518         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
56519         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
56520         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
56521         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
56522         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
56523         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
56524         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
56525         test-md5.c, test-memmem.c, test-printf-posix.c,
56526         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
56527         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
56528         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
56529         test-strcasestr.c, test-striconv.c, test-striconveh.c,
56530         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
56531         test-vasnprintf-posix2.c, test-vasnprintf.c,
56532         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
56533         test-vfprintf-posix.c, test-vprintf-posix.c,
56534         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
56535         test-xvasprintf.c: Likewise.
56536
56537 2007-05-28  Bruno Haible  <bruno@clisp.org>
56538
56539         * gnulib-tool (func_import): Remember the --with-tests command-line
56540         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
56541         Reported by Eric Blake.
56542
56543 2007-05-28  Bruno Haible  <bruno@clisp.org>
56544
56545         * modules/ftell-tests: New file.
56546         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
56547         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
56548
56549         * lib/ftell.c: New file.
56550         * modules/ftell: New file.
56551         * m4/ftell.m4: New file.
56552         * doc/functions/ftell.texi: Update.
56553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
56554         REPLACE_FTELL.
56555         * lib/stdio_.h (rpl_ftell): New declaration.
56556         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
56557         REPLACE_FTELL.
56558
56559 2007-05-28  Eric Blake  <ebb9@byu.net>
56560
56561         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
56562
56563 2007-05-28  Bruno Haible  <bruno@clisp.org>
56564
56565         * modules/fseek-tests: New file.
56566         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
56567         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
56568
56569         * lib/fseek.c: New file.
56570         * modules/fseek: New file.
56571         * m4/fseek.m4: New file.
56572         * doc/functions/fseek.texi: Update.
56573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
56574         REPLACE_FSEEK.
56575         * lib/stdio_.h (rpl_fseek): New declaration.
56576         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
56577         REPLACE_FSEEK.
56578
56579 2007-05-28  Bruno Haible  <bruno@clisp.org>
56580
56581         * lib/stdio_.h (fflush): More comments.
56582
56583 2007-05-28  Bruno Haible  <bruno@clisp.org>
56584
56585         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
56586         runtime test.
56587
56588 2007-05-28  Eric Blake  <ebb9@byu.net>
56589
56590         Improve lseek module.
56591         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
56592         * lib/unistd_.h (lseek): Scale back link warning message.
56593         * tests/test-lseek.c: Beef up test.
56594         * tests/test-lseek.sh: Exercise more facets of lseek.
56595         Reported by Bruno Haible.
56596
56597 2007-05-28  Bruno Haible  <bruno@clisp.org>
56598
56599         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
56600         to define.
56601
56602 2007-05-27  Bruno Haible  <bruno@clisp.org>
56603
56604         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
56605
56606 2007-05-27  Bruno Haible  <bruno@clisp.org>
56607
56608         * modules/openmp: New file.
56609         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
56610         Noah Misch.
56611
56612 2007-05-26  Bruno Haible  <bruno@clisp.org>
56613
56614         * modules/chdir-long (Depends-on): Add fchdir.
56615         * modules/chdir-safer (Depends-on): Likewise.
56616         * modules/fts (Depends-on): Likewise.
56617         * modules/fts-lgpl (Depends-on): Likewise.
56618         * modules/openat (Depends-on): Likewise.
56619         * modules/savewd (Depends-on): Likewise.
56620
56621 2007-05-24  Eric Blake  <ebb9@byu.net>
56622
56623         Fix lseek on mingw.
56624         * modules/lseek: New module.
56625         * m4/lseek.m4: New file.
56626         * lib/lseek.c: New file.
56627         * modules/lseek-tests: New file.
56628         * tests/test-lseek.c: New file.
56629         * tests/test-lseek.sh: New file.
56630         * MODULES.html.sh: Document lseek module.
56631         * modules/fflush (Depends-on): Add lseek, fseeko.
56632         * modules/fseeko (Depends-on): Likewise.
56633         * modules/ftello (Depends-on): Likewise.
56634         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
56635         broken.
56636         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
56637         broken.
56638         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
56639         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
56640         * lib/ftello.c (rpl_ftello): Likewise.
56641         * tests/test-fseeko.c (main): Test this.
56642         * tests/test-fseeko.sh: Likewise.
56643         * tests/test-ftello.c (main): Likewise.
56644         * tests/test-ftello.sh: Likewise.
56645         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
56646         implies replacing fseek.
56647         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
56648         HAVE_FTELLO.
56649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
56650         * modules/unistd (Makefile.am): Likewise.
56651         * lib/unistd_.h (lseek): Declare a replacement.
56652         * doc/functions/lseek.texi (lseek): Document this fix.
56653         * doc/functions/fseek.texi (fseek): Likewise.
56654         * doc/functions/ftell.texi (ftell): Likewise.
56655
56656 2007-05-24  Bruno Haible  <bruno@clisp.org>
56657
56658         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
56659         in the printed representation of a NaN.
56660         * tests/test-vasprintf-posix.c (test_function): Likewise.
56661         * tests/test-snprintf-posix.h (test_function): Likewise.
56662         * tests/test-sprintf-posix.h (test_function): Likewise.
56663         Reported by Eric Blake.
56664
56665 2007-05-23  Eric Blake  <ebb9@byu.net>
56666
56667         Fix fseeko/ftello on cygwin 1.5.24.
56668         * doc/functions/fseeko.texi (fseeko): Document the fix.
56669         * doc/functions/ftello.texi (ftello): Document the fix.
56670         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56671         * doc/functions/stdout.text (stdout): New file.
56672         * doc/functions/stderr.text (stderr): New file.
56673         * doc/gnulib.texi (Function Substitutes): Use new files.
56674         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56675         prior to 1.7.0.
56676         * tests/test-ftello.c (main): Likewise for ftello.
56677         * tests/test-fseeko.sh: New file.
56678         * tests/test-ftello.sh: New file.
56679         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56680         with seekable stdin.
56681         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56683         (gl_REPLACE_FSEEKO): New macro.
56684         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56685         * modules/fseeko (Files): Distribute fseeko.c.
56686         * modules/ftello (Files): Distribute ftello.c.
56687         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56688         mode.
56689         * lib/ftello.c (rpl_ftello): New file.
56690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56691         fseeko, ftello.
56692         (gl_STDIN_LARGE_OFFSET): New macro.
56693         * modules/stdio (Makefile.am): Perform the replacement.
56694         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56695
56696 2007-05-23  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56699         GNULIB_POSIXCHECK is defined.
56700
56701 2007-05-21  Bruno Haible  <bruno@clisp.org>
56702
56703         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56704         Check also the output for NaN arguments. When cross-compiling, guess
56705         no on IRIX.
56706         * lib/vasnprintf.c: Update comments.
56707         * tests/test-vasnprintf-posix.c (strisnan): New function.
56708         (test_function): Use it.
56709         * tests/test-vasprintf-posix.c (strisnan): New function.
56710         (test_function): Use it.
56711         * tests/test-snprintf-posix.h (strisnan): New function.
56712         (test_function): Use it.
56713         * tests/test-sprintf-posix.h (strisnan): New function.
56714         (test_function): Use it.
56715         Reported by Eric Blake.
56716
56717 2007-05-20  Bruno Haible  <bruno@clisp.org>
56718
56719         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56720         numbers that fails on BeOS.
56721         * doc/functions/frexpl.texi: Update.
56722
56723 2007-05-20  Jim Meyering  <jim@meyering.net>
56724
56725         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56726         forced upon us by glibc-2.6.
56727
56728 2007-05-20  Bruno Haible  <bruno@clisp.org>
56729
56730         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56731         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56732         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56733         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56734         NEED_PRINTF_INFINITE.
56735         (is_infinitel): New function.
56736         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56738         gl_PREREQ_VASNPRINTF_INFINITE.
56739         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56740         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56741         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56742         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56743         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56744         gl_PREREQ_VASNPRINTF_INFINITE.
56745         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56749         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56751         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56752         * doc/functions/fprintf.texi: Update.
56753         * doc/functions/printf.texi: Update.
56754         * doc/functions/snprintf.texi: Update.
56755         * doc/functions/sprintf.texi: Update.
56756         * doc/functions/vfprintf.texi: Update.
56757         * doc/functions/vprintf.texi: Update.
56758         * doc/functions/vsnprintf.texi: Update.
56759         * doc/functions/vsprintf.texi: Update.
56760
56761 2007-05-20  Bruno Haible  <bruno@clisp.org>
56762
56763         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56764         was not found in libc.
56765         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56766
56767 2007-05-20  Bruno Haible  <bruno@clisp.org>
56768
56769         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56770         printed as "-nan" instead of "nan".
56771         * tests/test-vasprintf-posix.c (test_function): Likewise.
56772         * tests/test-snprintf-posix.h (test_function): Likewise.
56773         * tests/test-sprintf-posix.h (test_function): Likewise.
56774         Needed for HP-UX 11.
56775
56776 2007-05-20  Jim Meyering  <jim@meyering.net>
56777
56778         Fix buggy test for the fchownat-deref bug.
56779         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56780         symlink required for the run-test.  Without it, this test would
56781         always declare that fchownat doesn't work, and client code would
56782         unnecessarily use the replacement function with fixed libc.
56783         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56784         Reported by Greg Schafer.
56785
56786 2007-05-19  Bruno Haible  <bruno@clisp.org>
56787
56788         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56789         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56790         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56791         Needed for IRIX 6.5 and Solaris 2.5.1.
56792
56793 2007-05-19  Bruno Haible  <bruno@clisp.org>
56794
56795         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56796         (test_function): Skip tests involving -0.0 on platforms where
56797         -0.0 = 0.0.
56798         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56799         (test_function): Skip tests involving -0.0 on platforms where
56800         -0.0 = 0.0.
56801         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56802         (test_function): Skip tests involving -0.0 on platforms where
56803         -0.0 = 0.0.
56804         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56805         (test_function): Skip tests involving -0.0 on platforms where
56806         -0.0 = 0.0.
56807         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56808         tests.
56809         * tests/test-printf-posix.h (test_function): Likewise.
56810         * tests/test-printf-posix.output: Remove all -0.0 related results.
56811         Needed for IRIX 6.5.
56812
56813 2007-05-19  Bruno Haible  <bruno@clisp.org>
56814
56815         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56816         printed as "nan0x7fffffff" instead of "nan".
56817         * tests/test-vasprintf-posix.c (test_function): Likewise.
56818         * tests/test-snprintf-posix.h (test_function): Likewise.
56819         * tests/test-sprintf-posix.h (test_function): Likewise.
56820         * tests/test-fprintf-posix.h (NaN): Remove macro.
56821         (test_function): Remove all NaN related tests.
56822         * tests/test-printf-posix.h (NaN): Remove macro.
56823         (test_function): Remove all NaN related tests.
56824         * tests/test-printf-posix.output: Remove all NaN related results.
56825         Needed for IRIX 6.5.
56826
56827 2007-05-19  Bruno Haible  <bruno@clisp.org>
56828
56829         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56830         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56831
56832 2007-05-19  Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/float_.h: New file.
56835         * m4/float_h.m4: New file.
56836         * modules/float: New file.
56837         * modules/isnanl (Dependencies): Add float.
56838         * modules/isnanl-nolibm (Dependencies): Likewise.
56839         * modules/mathl (Dependencies): Likewise.
56840         * modules/printf-frexpl (Dependencies): Likewise.
56841         * modules/signbit (Dependencies): Likewise.
56842         * modules/vasnprintf (Dependencies): Likewise.
56843         * doc/headers/float.texi: Update.
56844
56845 2007-05-19  Jim Meyering  <jim@meyering.net>
56846
56847         * lib/utimens.c (gl_futimens): Rename from futimens,
56848         now that glibc-2.6 declares futimens.
56849         * lib/utimens.h: Likewise.
56850
56851 2007-05-19  Bruno Haible  <bruno@clisp.org>
56852
56853         Avoid test failures on mingw.
56854         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56855         * tests/test-printf-posix.sh: Likewise.
56856         * tests/test-vfprintf-posix.sh: Likewise.
56857         * tests/test-vprintf-posix.sh: Likewise.
56858
56859 2007-05-19  Bruno Haible  <bruno@clisp.org>
56860
56861         Fix *printf result for NaN, Inf, -0.0 on mingw.
56862         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56863         * lib/vasnprintf.c: Include math.h and isnan.h.
56864         (is_infinite_or_zero): New function.
56865         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56866         values in the %f, %F, %e, %E, %g, %G directives.
56867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56869         gl_PRINTF_INFINITE and test its result. Invoke
56870         gl_PREREQ_VASNPRINTF_INFINITE.
56871         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56872         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56873         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56874         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56876         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56877         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56878         * doc/functions/fprintf.texi: Update.
56879         * doc/functions/printf.texi: Update.
56880         * doc/functions/snprintf.texi: Update.
56881         * doc/functions/sprintf.texi: Update.
56882         * doc/functions/vfprintf.texi: Update.
56883         * doc/functions/vprintf.texi: Update.
56884         * doc/functions/vsnprintf.texi: Update.
56885         * doc/functions/vsprintf.texi: Update.
56886
56887 2007-05-19  Bruno Haible  <bruno@clisp.org>
56888
56889         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56890         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56891         Instead of multiplying with 10^k, set extra_zeroes to k.
56892         (scale10_round_long_double): Remove function.
56893
56894 2007-05-18  Bruno Haible  <bruno@clisp.org>
56895
56896         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56897         introduced on 2007-05-06.
56898
56899 2007-05-18  Bruno Haible  <bruno@clisp.org>
56900
56901         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56902         %g directives.
56903         * tests/test-vasprintf-posix.c (test_function): Likewise.
56904         * tests/test-snprintf-posix.h (test_function): Likewise.
56905         * tests/test-sprintf-posix.h (test_function): Likewise.
56906
56907 2007-05-18  Bruno Haible  <bruno@clisp.org>
56908
56909         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56910         (strmatch): New function.
56911         (test_function): Test the %f directive on numbers of various exponents.
56912         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56913         (strmatch): New function.
56914         (test_function): Test the %f directive on numbers of various exponents.
56915         * tests/test-snprintf-posix.h (strmatch): New function.
56916         (test_function): Test the %f directive on numbers of various exponents.
56917         * tests/test-sprintf-posix.h (strmatch): New function.
56918         (test_function): Test the %f directive on numbers of various exponents.
56919         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56920         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56921         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56922         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56923
56924 2007-05-18  Bruno Haible  <bruno@clisp.org>
56925
56926         Add support for 'long double' number output.
56927         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56928         * lib/vasnprintf.c: Include math.h and float+.h.
56929         (mp_limb_t): New type.
56930         (GMP_LIMB_BITS): New macro.
56931         (mp_twolimb_t): New type.
56932         (GMP_TWOLIMB_BITS): New macro.
56933         (mpn_t): New type.
56934         (multiply, divide, convert_to_decimal, decode_long_double,
56935         scale10_round_long_double, scale10_round_decimal_long_double,
56936         floorlog10l): New functions.
56937         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56938         for the %f, %F, %e, %E, %g, %G directives.
56939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56940         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56941         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56942         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56943         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56944         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56945         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56947         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56948         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56949         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56950         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56951         * modules/snprintf-posix (Depends-on): Likewise.
56952         * modules/sprintf-posix (Depends-on): Likewise.
56953         * modules/vasnprintf-posix (Depends-on): Likewise.
56954         * modules/vasprintf-posix (Depends-on): Likewise.
56955         * modules/vfprintf-posix (Depends-on): Likewise.
56956         * modules/vsnprintf-posix (Depends-on): Likewise.
56957         * modules/vsprintf-posix (Depends-on): Likewise.
56958         * modules/vasnprintf (Files): Add lib/float+.h.
56959         * doc/functions/fprintf.texi: Update.
56960         * doc/functions/printf.texi: Update.
56961         * doc/functions/snprintf.texi: Update.
56962         * doc/functions/sprintf.texi: Update.
56963         * doc/functions/vfprintf.texi: Update.
56964         * doc/functions/vprintf.texi: Update.
56965         * doc/functions/vsnprintf.texi: Update.
56966         * doc/functions/vsprintf.texi: Update.
56967
56968 2007-05-18  Bruno Haible  <bruno@clisp.org>
56969
56970         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56971
56972 2007-05-18  Bruno Haible  <bruno@clisp.org>
56973
56974         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56975         for printing 64-bit integers. Needed for mingw.
56976
56977 2007-05-18  Bruno Haible  <bruno@clisp.org>
56978
56979         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56980         gl_FUNC_FREXPL_WORKS.
56981         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56982
56983 2007-05-18  Bruno Haible  <bruno@clisp.org>
56984
56985         * modules/frexpl-nolibm-tests: New file.
56986
56987         * modules/frexpl-nolibm: New file.
56988         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56989
56990 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56991
56992         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56993         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56994         GCC 4.2, which otherwise issues a lot of warnings.
56995         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56996         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56997         Likewise.
56998         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56999         * modules/iconv_open (iconv.h): Likewise.
57000         * modules/locale (locale.h): Likewise.
57001         * modules/netinet_in (netinet/in.h): Likewise.
57002         * modules/sys_select (sys_select.h): Likewise.
57003         * modules/sys_socket (sys/socket.h): Likewise.
57004         * modules/sys_stat (sys/stat.h): Likewise.
57005         * modules/sysexits (sysexits.h): Likewise.
57006         * modules/unistd (unistd.h): Likewise.
57007
57008 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57009
57010         * modules/closein-tests (Makefile.am): Distribute
57011         `test-closein.sh'.
57012
57013 2007-05-17  Bruno Haible  <bruno@clisp.org>
57014
57015         * tests/test-printf-posix.output: Renamed from
57016         tests/test-fprintf-posix.out.
57017         * modules/fprintf-posix-tests: Update.
57018         * modules/printf-posix-tests: Update.
57019         * modules/vfprintf-posix-tests: Update.
57020         * modules/vprintf-posix-tests: Update.
57021         * tests/test-fprintf-posix.sh: Update.
57022         * tests/test-printf-posix.sh: Update.
57023         * tests/test-vfprintf-posix.sh: Update.
57024         * tests/test-vprintf-posix.sh: Update.
57025         Reported by Ralf Wildenhues.
57026
57027 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57028
57029         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
57030         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57031         GCC 4.2, which otherwise issues a lot of warnings.
57032         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
57033         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
57034         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
57035         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
57036         it should no longer be needed.
57037         * lib/string_.h: Likewise.
57038         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
57039         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
57040         * modules/inttypes (inttypes.h): Likewise.
57041         * modules/math (math.h): Likewise.
57042         * modules/search (search.h): Likewise.
57043         * modules/signal (signal.h): Likewise.
57044         * modules/stdint (stdint.h): Likewise.
57045         * modules/stdio (stdio.h): Likewise.
57046         * modules/stdlib (stdlib.h): Likewise.
57047         * modules/string (string.h): Likewise.
57048         * modules/sys_time (sys/time.h): Likewise.
57049         * modules/time (time.h): Likewise.
57050         * modules/wchar (wchar.h): Likewise.
57051         * modules/wctype (wtype.h): Likewise.
57052
57053 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57054
57055         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
57056
57057 2007-05-13  Bruno Haible  <bruno@clisp.org>
57058
57059         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
57060         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57061         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
57062         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57063         (gl_PREREQ_STRTOK_R): Don't require it here.
57064
57065 2007-05-13  Bruno Haible  <bruno@clisp.org>
57066
57067         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
57068         when used in C++ mode.
57069
57070 2007-05-12  Bruno Haible  <bruno@clisp.org>
57071
57072         * lib/linebuffer.h: Tweak doc.
57073         * lib/linebuffer.c: Likewise.
57074
57075 2007-05-12  James Youngman  <jay@gnu.org>
57076
57077         * lib/linebuffer.c (readlinebuffer_delim): New function,
57078         like readlinebuffer, but use a caller-specified delimiter.
57079         (readlinebuffer): Just call readlinebuffer_delim with '\n'
57080         as the delimiter.
57081         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
57082
57083 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57084
57085         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
57086         * modules/openat (Files): Remove openat-die.c.
57087         (Depends-on): Add openat-die.
57088         * modules/openat-die: New module.
57089
57090 2007-05-06  Bruno Haible  <bruno@clisp.org>
57091
57092         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
57093         Update with info about Cygwin.
57094         * doc/functions/fprintf.texi: Update.
57095         * doc/functions/printf.texi: Update.
57096         * doc/functions/snprintf.texi: Update.
57097         * doc/functions/sprintf.texi: Update.
57098         * doc/functions/vfprintf.texi: Update.
57099         * doc/functions/vprintf.texi: Update.
57100         * doc/functions/vsnprintf.texi: Update.
57101         * doc/functions/vsprintf.texi: Update.
57102         Reported by Eric Blake.
57103
57104 2007-05-06  Bruno Haible  <bruno@clisp.org>
57105
57106         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
57107         padding ourselves for the floating-point directives.
57108         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
57109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
57110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57111         gl_PRINTF_FLAG_ZERO and test its result. Invoke
57112         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
57113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57115         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57116         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57117         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57118         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57119         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57120         * tests/test-snprintf-posix.h (test_function): Also check the width
57121         and some flags in the %f directive.
57122         * tests/test-sprintf-posix.h (test_function): Likewise.
57123         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57124         * tests/test-vasprintf-posix.c (test_function): Likewise.
57125         * doc/functions/fprintf.texi: Update.
57126         * doc/functions/printf.texi: Update.
57127         * doc/functions/snprintf.texi: Update.
57128         * doc/functions/sprintf.texi: Update.
57129         * doc/functions/vfprintf.texi: Update.
57130         * doc/functions/vprintf.texi: Update.
57131         * doc/functions/vsnprintf.texi: Update.
57132         * doc/functions/vsprintf.texi: Update.
57133
57134 2007-05-06  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
57137         pass the ' flag character to sprintf or snprintf.
57138         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
57139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
57140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57141         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
57142         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
57143         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57144         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57147         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57150         * tests/test-snprintf-posix.h (test_function): Also check the grouping
57151         flag.
57152         * tests/test-sprintf-posix.h (test_function): Likewise.
57153         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57154         * tests/test-vasprintf-posix.c (test_function): Likewise.
57155         * doc/functions/fprintf.texi: Update.
57156         * doc/functions/printf.texi: Update.
57157         * doc/functions/snprintf.texi: Update.
57158         * doc/functions/sprintf.texi: Update.
57159         * doc/functions/vfprintf.texi: Update.
57160         * doc/functions/vprintf.texi: Update.
57161         * doc/functions/vsnprintf.texi: Update.
57162         * doc/functions/vsprintf.texi: Update.
57163
57164 2007-05-01  Bruno Haible  <bruno@clisp.org>
57165
57166         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
57167
57168 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
57169
57170         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
57171         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
57172
57173 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57174
57175         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
57176         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
57177         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
57178
57179 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
57180
57181         * lib/argp-help.c (struct hol_entry): New member `ord'.
57182         (HOL_ENTRY_PTRCMP): Use ord for comparison
57183         (hol_sort): Initialize ord.
57184
57185 2007-05-01  Bruno Haible  <bruno@clisp.org>
57186
57187         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
57188         Reported by Eric Blake.
57189         * doc/gnulib.texi (Function Substitutes): Update.
57190
57191 2007-05-01  Bruno Haible  <bruno@clisp.org>
57192
57193         * doc/functions.texi: Remove file, now redundant through
57194         doc/functions/*.texi.
57195
57196 2007-05-01  Bruno Haible  <bruno@clisp.org>
57197
57198         * modules/argp (Depends-on): Add sleep.
57199
57200 2007-05-01  Bruno Haible  <bruno@clisp.org>
57201
57202         * modules/sleep-tests: New file.
57203         * tests/test-sleep.c: New file.
57204
57205         * modules/sleep: New file.
57206         * lib/sleep.c: New file.
57207         * m4/sleep.m4: New file.
57208         * lib/unistd_.h (sleep): New declaration.
57209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
57210         HAVE_SLEEP.
57211         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
57212         * doc/functions/sleep.texi: Document the sleep module.
57213
57214 2007-05-01  Bruno Haible  <bruno@clisp.org>
57215
57216         * lib/sigprocmask.h: Remove file.
57217         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
57218         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
57219         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
57220         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
57221         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
57222         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
57223         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
57224         HAVE_SIGSET_T as a shell variable.
57225         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
57226         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
57227         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
57228         (Depends-on): Add signal. Remove verify.
57229         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
57230         (Include): Mention <signal.h> instead of sigprocmask.h.
57231         * NEWS: Mention the change.
57232         * lib/fatal-signal.c: Don't include sigprocmask.h.
57233
57234 2007-05-01  Bruno Haible  <bruno@clisp.org>
57235
57236         * modules/signal: New file.
57237         * lib/signal_.h: New file.
57238         * m4/signal_h.m4: New file.
57239
57240 2007-05-01  Bruno Haible  <bruno@clisp.org>
57241
57242         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
57243         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
57244         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
57245         HAVE_WCTYPE_CTMP_BUG into wctype.h.
57246
57247 2007-05-01  Bruno Haible  <bruno@clisp.org>
57248
57249         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
57250         configure time.
57251         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
57252         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
57253         * modules/sys_stat (Makefile.am): Substitute their values into
57254         sys/stat.h.
57255
57256 2007-05-01  Bruno Haible  <bruno@clisp.org>
57257
57258         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
57259         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
57260         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
57261
57262 2007-05-01  Bruno Haible  <bruno@clisp.org>
57263
57264         * doc/header/assert.texi: Undo last change: don't mention the gnulib
57265         'assert' module here.
57266
57267 2007-05-01  Bruno Haible  <bruno@clisp.org>
57268
57269         * doc/functions/*.texi: New files.
57270         * doc/functions/google-ranking.txt: New file.
57271         * doc/gnulib.texi (Function Substitutes): New chapter.
57272         (ctime, inet_ntoa): Remove sections.
57273         * doc/ctime.texi: Remove file.
57274         * doc/inet_ntoa.texi: Remove file.
57275         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
57276         dependencies.
57277         (%.info): New rule, specifying a --reference-limit.
57278
57279 2007-05-01  Bruno Haible  <bruno@clisp.org>
57280
57281         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
57282
57283 2007-05-01  Bruno Haible  <bruno@clisp.org>
57284
57285         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
57286         the portability of 'mkdir' to mingw systems.
57287
57288 2007-05-01  Bruno Haible  <bruno@clisp.org>
57289
57290         * doc/headers/google-ranking.txt: New file.
57291
57292 2007-04-30  Eric Blake  <ebb9@byu.net>
57293
57294         Prefer fseeko to fseek.
57295         * modules/getpass (Depends-on): Add fseeko.
57296         * lib/getpass.c (getpass): Use fseeko, not fseek.
57297
57298 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
57299
57300         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
57301         assumes the sorting is stable, while most qsort implementations
57302         are not.  Use argument addresses to ensure they never compare as
57303         equal.
57304
57305         * tests/test-argp-2.sh (usage-indent test): Fix output
57306         (func_compare): Restore diff options
57307         * tests/test-argp.c: Restore #include "progname.h"
57308
57309 2007-04-29  Bruno Haible  <bruno@clisp.org>
57310
57311         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
57312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57313         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
57314         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57315         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
57316         (configure.ac): Define CHECK_SNPRINTF_POSIX.
57317         (TESTS, check_PROGRAMS): Add test-snprintf.
57318         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
57319         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
57320         (TESTS, check_PROGRAMS): Add test-vsnprintf.
57321         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
57322         assertions that fail on HP-UX, OSF/1, or IRIX.
57323         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
57324
57325 2007-04-29  Bruno Haible  <bruno@clisp.org>
57326
57327         * MODULES.html.sh (posix_functions): Remove 'contents'.
57328
57329 2007-04-29  Karl Berry  <karl@gnu.org>
57330
57331         * config/srclist.txt (gendocs_template_min): new entry.
57332
57333 2007-04-29  Bruno Haible  <bruno@clisp.org>
57334
57335         Work around fpurge bug on BSD systems.
57336         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
57337         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
57338         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
57339         fpurge to rpl_fpurge if the system already has this function.
57340         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
57341         the case where the system already has this function. Correct invariants
57342         on BSD systems.
57343         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
57344         BSD systems.
57345
57346 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57347
57348         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
57349         proposed by Sven Verdoolaege.
57350
57351         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
57352         options.
57353         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
57354         (usage and help tests): Update
57355
57356 2007-04-29  Bruno Haible  <bruno@clisp.org>
57357
57358         * tests/test-fflush.c (main): Use a file of size 17, not 10.
57359         Print more information in case of failure. Disable a test on BeOS.
57360
57361 2007-04-29  Bruno Haible  <bruno@clisp.org>
57362
57363         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
57364         This helps debugging on systems on which no gdb is available.
57365
57366 2007-04-29  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/freading.h: Improve comments.
57369         * lib/fwriting.h: Likewise.
57370         * tests/test-freading.c (main): Don't check freading immediately after
57371         repositioning. Needed for glibc.
57372
57373 2007-04-29  Bruno Haible  <bruno@clisp.org>
57374
57375         * lib/freading.c (freading): Trivial simplification.
57376
57377 2007-04-28  Bruno Haible  <bruno@clisp.org>
57378
57379         * tests/test-fwriting.c (main): Also test the interaction between
57380         fflush and fwriting.
57381         * modules/fwriting-tests (Depends-on): Add fflush.
57382
57383         * tests/test-freading.c (main): Also test the interaction between
57384         fflush and freading.
57385         * modules/freading-tests (Depends-on): Add fflush.
57386
57387 2007-04-28  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
57390         fseeko and ftello.
57391         Suggested by Eric Blake.
57392
57393 2007-04-28  Jim Meyering  <jim@meyering.net>
57394
57395         Avoid false-negative in gl_STDINT_H's C99 conformance test.
57396         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
57397         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
57398
57399 2007-04-27  Eric Blake  <ebb9@byu.net>
57400
57401         * doc/headers/assert.texi (assert.h): Document assert module use.
57402
57403 2007-04-27  Bruno Haible  <bruno@clisp.org>
57404
57405         * doc/headers/*.texi: New files.
57406         * doc/gnulib.texi (Header File Substitutes): New chapter.
57407         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
57408         dependencies.
57409         (standards.info ,standards.html, standards.dvi): Update dependencies.
57410         (mostlyclean, clean): New targets.
57411
57412 2007-04-27  Bruno Haible  <bruno@clisp.org>
57413
57414         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
57415         * modules/sysexits (Files, Makefile.am): Update.
57416
57417         * lib/sys_socket_.h: Renamed from lib/socket_.h.
57418         * modules/sys_socket (Files, Makefile.am): Update.
57419
57420         * lib/sys_stat_.h: Renamed from lib/stat_.h.
57421         * modules/sys_stat (Files, Makefile.am): Update.
57422
57423 2007-04-27  Eric Blake  <ebb9@byu.net>
57424
57425         * lib/freading.h: Improve comments.
57426         * lib/fwriting.h: Likewise.
57427         * lib/fflush.c: Likewise.
57428
57429         Fix closein for mingw.
57430         * modules/closein-tests: Add tests for closein.
57431         * tests/test-closein.c: New file.
57432         * tests/test-closein.sh: Likewise.
57433         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
57434         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
57435
57436 2007-04-27  Bruno Haible  <bruno@clisp.org>
57437
57438         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
57439         version is < 6.
57440         * lib/math_.h [__DECC]: Likewise.
57441         * lib/stdio_.h [__DECC]: Likewise.
57442         * lib/stdlib_.h [__DECC]: Likewise.
57443         * lib/string_.h [__DECC]: Likewise.
57444         * lib/time_.h [__DECC]: Likewise.
57445         * lib/wchar_.h [__DECC]: Likewise.
57446         * lib/wctype_.h [__DECC]: Likewise.
57447
57448 2007-04-27  Bruno Haible  <bruno@clisp.org>
57449
57450         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
57451
57452 2007-04-27  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/fflush.c: Add comments.
57455         * modules/fpurge-tests (Depends-on): Add fflush.
57456         * modules/freadable-tests (Depends-on): Likewise.
57457         * modules/fwritable-tests (Depends-on): Likewise.
57458
57459 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
57460
57461         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
57462         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
57463         Report by Bruno Haible <bruno@clisp.org>.
57464
57465 2007-04-26  Eric Blake  <ebb9@byu.net>
57466
57467         Fix fflush on mingw.
57468         * modules/fflush (Depends-on): Add freading.
57469         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
57470         but unread data.
57471
57472 2007-04-26  Eric Blake  <ebb9@byu.net>
57473         and Bruno Haible  <bruno@clisp.org>
57474
57475         Implement freading and fwriting.
57476         * lib/freading.c: New file.
57477         * lib/freading.h: Likewise.
57478         * m4/freading.m4: Likewise.
57479         * modules/freading: Likewise.
57480         * modules/freading-tests: Likewise.
57481         * tests/test-freading.c: Likewise.
57482         * lib/fwriting.c: New file.
57483         * lib/fwriting.h: Likewise.
57484         * m4/fwriting.m4: Likewise.
57485         * modules/fwriting: Likewise.
57486         * modules/fwriting-tests: Likewise.
57487         * tests/test-fwriting.c: Likewise.
57488         * MODULES.html.sh (File stream based Input/Output): Mention them.
57489
57490 2007-04-26  Bruno Haible  <bruno@clisp.org>
57491
57492         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
57493         'long' when we assume it.
57494         Suggested by Eric Blake.
57495
57496 2007-04-26  Bruno Haible  <bruno@clisp.org>
57497
57498         Ensure fseeko, ftello are declared on glibc systems.
57499         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
57500         * modules/fseeko (configure.ac-early): Likewise.
57501         * modules/ftello (configure.ac-early): Likewise.
57502         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
57503         AC_FUNC_FSEEKO for this.
57504         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
57505         (gl_CHECK_FSEEKO): Remove macro.
57506
57507 2007-04-26  Bruno Haible  <bruno@clisp.org>
57508
57509         * tests/test-fflush.c (main): Also check the ftell result after
57510         fflush and fseek/fseeko.
57511         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
57512         file descriptor position cache in the stream.
57513         * lib/fseeko.c (rpl_fseeko): Likewise.
57514
57515 2007-04-26  Bruno Haible  <bruno@clisp.org>
57516
57517         * modules/fflush-tests (Depends-on): Add fseeko.
57518
57519 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
57520             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57521
57522         * lib/argz_.h: ensure error_t definition is obtained in same
57523         mechanism system argz.h would have.
57524         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
57525         argz facilities are known bad.  Err on the side of caution if
57526         cross-compiling.
57527
57528 2007-04-25  Eric Blake  <ebb9@byu.net>
57529
57530         * lib/fpurge.c (includes): Use stdlib.h for free.
57531         * tests/test-fflush.c (main): Also test fflush-fseeko.
57532
57533 2007-04-25  Bruno Haible  <bruno@clisp.org>
57534
57535         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
57536         * lib/fseeko.c: New file.
57537         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
57538         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
57539         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
57540         gl_FUNC_FSEEKO.
57541         (gl_FUNC_FSEEKO): Invoke it.
57542         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
57543         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
57544         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
57545
57546 2007-04-25  Bruno Haible  <bruno@clisp.org>
57547
57548         * modules/fflush (Depends-on): Add ftello.
57549
57550 2007-04-25  Bruno Haible  <bruno@clisp.org>
57551
57552         * modules/ftello-tests: New file.
57553         * tests/test-ftello.c: New file.
57554
57555         * modules/ftello: New file.
57556         * m4/ftello.m4: New file.
57557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
57558         HAVE_FTELLO.
57559         * lib/stdio_.h (ftello): New declaration.
57560         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
57561         HAVE_FTELLO.
57562
57563 2007-04-25  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/fseeko-tests: New file.
57566         * tests/test-fseeko.c: New file.
57567
57568         * modules/fseeko: New file.
57569         * m4/fseeko.m4: New file.
57570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
57571         HAVE_FSEEKO.
57572         * lib/stdio_.h (fseeko): New declaration.
57573         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
57574         HAVE_FSEEKO.
57575
57576 2007-04-25  Bruno Haible  <bruno@clisp.org>
57577
57578         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
57579
57580 2007-04-25  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
57583         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
57584         * tests/test-unistd.c: Likewise.
57585         * tests/test-fcntl.c: Likewise.
57586
57587 2007-04-23  Eric Blake  <ebb9@byu.net>
57588
57589         * lib/fflush.c: Fix missing include.
57590         Reported by Bruno Haible.
57591
57592 2007-04-23  Bruno Haible  <bruno@clisp.org>
57593
57594         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
57595         Reported by Eric Blake.
57596
57597 2007-04-23  Bruno Haible  <bruno@clisp.org>
57598
57599         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
57600
57601 2007-04-23  Bruno Haible  <bruno@clisp.org>
57602
57603         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
57604
57605 2007-04-23  Bruno Haible  <bruno@clisp.org>
57606
57607         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
57608         Needed on HP-UX 11.
57609
57610 2007-04-16  Eric Blake  <ebb9@byu.net>
57611
57612         Make fflush rely on fpurge.
57613         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
57614         open coding all variants.
57615         * modules/fflush (Depends-on): Add fpurge and unistd.
57616         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
57617         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
57618
57619         Fix --with-tests compilation on cygwin.
57620         * modules/argmatch-tests (Makefile.am): List gnulib library first
57621         in LDADD.
57622         * modules/argp-tests (Makefile.am): Likewise.
57623         * modules/array-list-tests (Makefile.am): Likewise.
57624         * modules/array-oset-tests (Makefile.am): Likewise.
57625         * modules/avltree-list-tests (Makefile.am): Likewise.
57626         * modules/avltree-oset-tests (Makefile.am): Likewise.
57627         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57628         * modules/carray-list-tests (Makefile.am): Likewise.
57629         * modules/dirname-tests (Makefile.am): Likewise.
57630         * modules/frexp-tests (Makefile.am): Likewise.
57631         * modules/isnanl-tests (Makefile.am): Likewise.
57632         * modules/linked-list-tests (Makefile.am): Likewise.
57633         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57634         * modules/lock-tests (Makefile.am): Likewise.
57635         * modules/rbtree-list-tests (Makefile.am): Likewise.
57636         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57637         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57638         * modules/tls-tests (Makefile.am): Likewise.
57639         * modules/tsearch-tests (Makefile.am): Likewise.
57640         * modules/xvasprintf-tests (Makefile.am): Likewise.
57641
57642         Fix fpurge for cygwin.
57643         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
57644         value.
57645         * modules/fpurge-tests (Depends-on): Clean up trash.
57646
57647 2007-04-16  Simon Josefsson  <simon@josefsson.org>
57648
57649         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
57650
57651         * m4/autobuild.m4: Re-indent.
57652
57653 2007-04-13  Bruno Haible  <bruno@clisp.org>
57654
57655         * modules/fpurge-tests: New file.
57656         * tests/test-fpurge.c: New file.
57657
57658         * modules/fpurge: New file.
57659         * lib/fpurge.h: New file.
57660         * lib/fpurge.c: New file.
57661         * m4/fpurge.m4: New file.
57662
57663 2007-04-13  Bruno Haible  <bruno@clisp.org>
57664
57665         * modules/fbufmode-tests: New file.
57666         * tests/test-fbufmode.c: New file.
57667
57668         * modules/fbufmode: New file.
57669         * lib/fbufmode.h: New file.
57670         * lib/fbufmode.c: New file.
57671         * m4/fbufmode.m4: New file.
57672
57673 2007-04-13  Bruno Haible  <bruno@clisp.org>
57674
57675         * modules/fwritable-tests: New file.
57676         * tests/test-fwritable.c: New file.
57677
57678         * modules/fwritable: New file.
57679         * lib/fwritable.h: New file.
57680         * lib/fwritable.c: New file.
57681         * m4/fwritable.m4: New file.
57682
57683 2007-04-13  Bruno Haible  <bruno@clisp.org>
57684
57685         * modules/freadable-tests: New file.
57686         * tests/test-freadable.c: New file.
57687
57688         * modules/freadable: New file.
57689         * lib/freadable.h: New file.
57690         * lib/freadable.c: New file.
57691         * m4/freadable.m4: New file.
57692
57693 2007-04-13  Bruno Haible  <bruno@clisp.org>
57694
57695         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57696         MOSTLYCLEANFILES.
57697
57698 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57699
57700         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57701         gzip bootstrap.conf to avoid dragging in i18n machinery.
57702         (gnulib_tool_option): Use it.
57703
57704 2007-04-13  Bruno Haible  <bruno@clisp.org>
57705
57706         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57707         %F directives.
57708         * tests/test-vasprintf-posix.c (test_function): Likewise.
57709         * tests/test-snprintf-posix.h (test_function): Likewise.
57710         * tests/test-sprintf-posix.h (test_function): Likewise.
57711         * tests/test-fprintf-posix.h (test_function): Likewise.
57712         * tests/test-printf-posix.h (test_function): Likewise.
57713         * tests/test-fprintf-posix.out: Likewise.
57714
57715 2007-04-13  Bruno Haible  <bruno@clisp.org>
57716
57717         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57718         * modules/tls-tests (configure.ac): Likewise.
57719         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57720
57721 2007-04-13  Bruno Haible  <bruno@clisp.org>
57722
57723         * lib/tls.c (glthread_tls_get): Fix return type.
57724         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57725
57726 2007-04-12  Eric Blake  <ebb9@byu.net>
57727
57728         * modules/gettime (Depends-on): Remove gettime.
57729         Reported by Dmitry V. Levin.
57730
57731 2007-04-12  Bruno Haible  <bruno@clisp.org>
57732
57733         * modules/fflush (Include): Mention <stdio.h>.
57734         * modules/strtoimax (Include): Mention <inttypes.h>.
57735         * modules/strtoumax (Include): Likewise.
57736
57737 2007-04-12  Eric Blake  <ebb9@byu.net>
57738
57739         * .cvsignore: New file.
57740         * .gitignore: Likewise.
57741
57742 2007-04-12  Bruno Haible  <bruno@clisp.org>
57743
57744         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57745         not before, since $(LDADD) often contains libgnu.a.
57746         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57747         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57748         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57749         Needed on Cygwin.
57750
57751 2007-04-12  Eric Blake  <ebb9@byu.net>
57752
57753         Work around glibc's failure to flush stdin on fclose.
57754         * lib/closein.c (close_stdin): Flush stdin before closing.
57755
57756         Work around glibc's failure to reset seekable stdin on exit.
57757         * modules/closein: New module.
57758         * lib/closein.c: New file.
57759         * lib/closein.h: Likewise.
57760         * m4/closein.m4: Likewise.
57761         * MODULES.html.sh (File stream based Input/Output): Document it.
57762
57763 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57764
57765         * gnulib-tool: Rename generated 'autobuild' script to
57766         'do-autobuild' in --create-megatestdir output.
57767
57768         * doc/gnulib.texi (Build robot for gnulib): Fix.
57769
57770 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57771
57772         * modules/sysexits (Depends-on): Add absolute-header.
57773
57774 2007-04-12  Eric Blake  <ebb9@byu.net>
57775
57776         No need to preserve errno on success.
57777         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57778         Reported by Bruno Haible.
57779
57780 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57781
57782         * MODULES.html.sh (Support for maintaining and releasing
57783         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57784
57785 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57786
57787         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57788
57789 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57790
57791         * modules/autobuild: New module.
57792
57793         * m4/autobuild.m4: New file.
57794
57795 2007-04-11  Bruno Haible  <bruno@clisp.org>
57796
57797         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57798         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57799         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57802         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57803         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57804         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57805         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57806         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57807         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57808         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57809         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57810         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57811         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57812         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57814         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57815         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57816         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57817         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57818         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57820         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57821         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57822         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57823         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57824         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57825         Reported by Eric Blake.
57826
57827 2007-04-11  Bruno Haible  <bruno@clisp.org>
57828
57829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57830
57831 2007-04-10  Bruno Haible  <bruno@clisp.org>
57832
57833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57834         for NaN and Infinity. Needed on FreeBSD 6.1.
57835         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57836         regarding results for "%010a" of Infinity and NaN.
57837         * tests/test-vasprintf-posix.c (test_function): Likewise.
57838         * tests/test-snprintf-posix.h (test_function): Likewise.
57839         * tests/test-sprintf-posix.h (test_function): Likewise.
57840         * tests/test-fprintf-posix.h (test_function): Likewise.
57841         * tests/test-printf-posix.h (test_function): Likewise.
57842         * tests/test-fprintf-posix.out: Likewise.
57843
57844 2007-04-10  Bruno Haible  <bruno@clisp.org>
57845
57846         * modules/locale-tests: New file.
57847         * tests/test-locale.c: New file.
57848
57849         * modules/locale: New file.
57850         * lib/locale_.h: New file.
57851         * m4/locale_h.m4: New file.
57852
57853 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57854             Bruno Haible  <bruno@clisp.org>
57855
57856         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57857         be determined, test for availability of the copysignf, copysign,
57858         copysignl functions.
57859         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57860         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57861         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57862
57863 2007-04-09  Eric Blake  <ebb9@byu.net>
57864
57865         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57866         * modules/stdio (Makefile.am): Support fflush.
57867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57868         * modules/fflush: New file.
57869         * lib/fflush.c: Likewise.
57870         * m4/fflush.m4: Likewise.
57871         * modules/fflush-tests: New test.
57872         * tests/test-fflush.c: Likewise.
57873         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57874
57875 2007-04-06  Bruno Haible  <bruno@clisp.org>
57876
57877         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57878         (VASNPRINTF): Use signbit for faster determination whether to print a
57879         minus sign.
57880         * modules/vasnprintf (Files): Remove lib/float+.h.
57881         * modules/fprintf-posix (Depends-on): Add signbit.
57882         * modules/snprintf-posix (Depends-on): Likewise.
57883         * modules/sprintf-posix (Depends-on): Likewise.
57884         * modules/vasnprintf-posix (Depends-on): Likewise.
57885         * modules/vasprintf-posix (Depends-on): Likewise.
57886         * modules/vfprintf-posix (Depends-on): Likewise.
57887         * modules/vsnprintf-posix (Depends-on): Likewise.
57888         * modules/vsprintf-posix (Depends-on): Likewise.
57889
57890 2007-04-06  Bruno Haible  <bruno@clisp.org>
57891
57892         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57893         * tests/test-frexpl.c (main): Likewise.
57894         * tests/test-ldexpl.c (main): Likewise.
57895         * modules/frexp-tests (Depends-on): Add signbit.
57896         * modules/frexpl-tests (Depdends-on): Likewise.
57897         * modules/ldexpl-tests (Depdends-on): Likewise.
57898
57899 2007-04-06  Bruno Haible  <bruno@clisp.org>
57900
57901         * modules/signbit-tests: New file.
57902         * tests/test-signbit.c: New file.
57903
57904         * modules/signbit: New file.
57905         * lib/signbitf.c: New file.
57906         * lib/signbitd.c: New file.
57907         * lib/signbitl.c: New file.
57908         * m4/signbit.m4: New file.
57909         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57910         (signbit): New macro.
57911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57912         REPLACE_SIGNBIT.
57913         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57914         REPLACE_FREXPL into math.h.
57915
57916 2007-04-06  Bruno Haible  <bruno@clisp.org>
57917
57918         * modules/isnanf-nolibm-tests: New file.
57919         * tests/test-isnanf.c: New file.
57920
57921         * modules/isnanf-nolibm: New file.
57922         * lib/isnanf.h: New file.
57923         * lib/isnanf.c: New file.
57924         * lib/isnan.c: Consider the USE_FLOAT macro.
57925         * m4/isnanf.m4: New file.
57926
57927 2007-04-06  Bruno Haible  <bruno@clisp.org>
57928
57929         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57930         (Link): New section.
57931
57932         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57933
57934 2007-04-06  Bruno Haible  <bruno@clisp.org>
57935
57936         Assume the 'long double' type.
57937         * m4/longdouble.m4: Remove file.
57938         * config/srclist.txt: Don't mention longdouble.m4.
57939         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57940         * lib/float+.h: Likewise.
57941         * lib/frexp.c: Likewise.
57942         * lib/printf-args.h: Likewise.
57943         * lib/printf-args.c: Likewise.
57944         * lib/printf-frexp.c: Likewise.
57945         * lib/printf-parse.c: Likewise.
57946         * lib/vasnprintf.c: Likewise.
57947         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57948         * m4/intl.m4: Likewise.
57949         * m4/isnanl.m4: Likewise.
57950         * m4/printf.m4: Likewise.
57951         * m4/printf-frexpl.m4: Likewise.
57952         * m4/vasnprintf.m4: Likewise.
57953         * modules/allocsa (Files): Remove m4/longdouble.m4.
57954         * modules/gettext (Files): Likewise.
57955         * modules/relocatable-prog-wrapper (Files): Likewise.
57956         * modules/vasnprintf (Files): Likewise.
57957         * modules/isnanl (Files): Likewise.
57958         (Include): Simplify.
57959         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57960         (Include): Simplify.
57961         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57962         (Include): Simplify.
57963         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57964         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57965         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57966         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57967         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57968         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57969         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57970         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57971         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57972         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57973         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57974         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57975         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57976         * tests/test-isnanl.c: Likewise.
57977         * tests/test-snprintf-posix.h: Likewise.
57978         * tests/test-sprintf-posix.h: Likewise.
57979         * tests/test-vasnprintf-posix.c: Likewise.
57980         * tests/test-vasnprintf-posix2.c: Likewise.
57981         * tests/test-vasprintf-posix.c: Likewise.
57982
57983 2007-04-06  Bruno Haible  <bruno@clisp.org>
57984
57985         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57986         * lib/math_.h [__DECC]: Include the overridden include file through
57987         #include_next, outside the double-inclusion guard.
57988         * lib/stdio_.h [__DECC]: Likewise.
57989         * lib/stdlib_.h [__DECC]: Likewise.
57990         * lib/string_.h [__DECC]: Likewise.
57991         * lib/time_.h [__DECC]: Likewise.
57992         * lib/wchar_.h [__DECC]: Likewise.
57993         * lib/wctype_.h [__DECC]: Likewise.
57994         * lib/inttypes_.h [__DECC]: Likewise.
57995         Reported by Albert Chin <china@thewrittenword.com> in
57996         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57997
57998 2007-04-04  Eric Blake  <ebb9@byu.net>
57999
58000         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
58001         1.5.x.
58002
58003 2007-04-04  Bruno Haible  <bruno@clisp.org>
58004
58005         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
58006         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
58007
58008 2007-04-04  Bruno Haible  <bruno@clisp.org>
58009
58010         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
58011         results for "%010a" of Infinity and NaN.
58012         * tests/test-vasprintf-posix.c (test_function): Likewise.
58013         * tests/test-snprintf-posix.h (test_function): Likewise.
58014         * tests/test-sprintf-posix.h (test_function): Likewise.
58015         * tests/test-fprintf-posix.h (test_function): Remove these tests.
58016         * tests/test-printf-posix.h (test_function): Likewise.
58017         * tests/test-fprintf-posix.out: Update.
58018         Needed for FreeBSD 6.1.
58019
58020 2007-04-04  Bruno Haible  <bruno@clisp.org>
58021
58022         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
58023         directly used by the gnulib modules nor by gnulib-tool.
58024
58025 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58026
58027         * DEPENDENCIES: Give overall description of version dependency
58028         desirability.  Use more-typical names for apps.
58029         Add shell, coreutils, diffutils, grep, tar, gzip.
58030
58031 2007-04-04  Simon Josefsson  <simon@josefsson.org>
58032
58033         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
58034
58035 2007-04-04  Karl Berry  <karl@gnu.org>
58036
58037         * MODULES.html.sh (func_module): missing '.
58038
58039 2007-04-03  Bruno Haible  <bruno@clisp.org>
58040
58041         * modules/argmatch-tests (Makefile.am): New variable
58042         test_argmatch_LDADD.
58043         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
58044         * modules/array-list-tests (Makefile.am): New variable
58045         test_array_list_LDADD.
58046         * modules/array-oset-tests (Makefile.am): New variable
58047         test_array_oset_LDADD.
58048         * modules/avltree-list-tests (Makefile.am): New variable
58049         test_avltree_list_LDADD.
58050         * modules/avltree-oset-tests (Makefile.am): New variable
58051         test_avltree_oset_LDADD.
58052         * modules/avltreehash-list-tests (Makefile.am): New variable
58053         test_avltreehash_list_LDADD.
58054         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
58055         test_canonicalize_lgpl_LDADD.
58056         * modules/carray-list-tests (Makefile.am): New variable
58057         test_carray_list_LDADD.
58058         * modules/dirname-tests (Makefile.am): New variable
58059         test_dirname_LDADD.
58060         * modules/linked-list-tests (Makefile.am): New variable
58061         test_linked_list_LDADD.
58062         * modules/linkedhash-list-tests (Makefile.am): New variable
58063         test_linkedhash_list_LDADD.
58064         * modules/rbtree-list-tests (Makefile.am): New variable
58065         test_rbtree_list_LDADD.
58066         * modules/rbtree-oset-tests (Makefile.am): New variable
58067         test_rbtree_oset_LDADD.
58068         * modules/rbtreehash-list-tests (Makefile.am): New variable
58069         test_rbtreehash_list_LDADD.
58070         * modules/xvasprintf-tests (Makefile.am): New variable
58071         test_xvasprintf_LDADD.
58072         Reported by Eric Blake.
58073
58074 2007-04-03  Eric Blake  <ebb9@byu.net>
58075
58076         * DEPENDENCIES: Weaken m4 requirements.
58077
58078 2007-04-03  Bruno Haible  <bruno@clisp.org>
58079
58080         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
58081         * modules/isnanl-tests (configure.ac): Likewise.
58082
58083 2007-04-03  Ben Pfaff  <blp@gnu.org>
58084
58085         * modules/iconv_open: Add $(srcdir)/ to source directory
58086         references in Makefile fragments that call gperf, to fix VPATH
58087         builds.
58088
58089 2007-04-03  Bruno Haible  <bruno@clisp.org>
58090
58091         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
58092         * lib/ldexpl.c: Undo last change.
58093
58094 2007-04-03  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/printf-frexpl (Depends-on): Undo last change.
58097         (Files): Add m4/ldexpl.m4.
58098
58099 2007-04-03  Bruno Haible  <bruno@clisp.org>
58100
58101         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
58102         * modules/isnanl (Link): New section.
58103
58104         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
58105         * modules/frexp (Link): New section.
58106
58107         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
58108         * modules/frexpl (Link): New section.
58109
58110         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
58111         * modules/ldexpl (Link): New section.
58112
58113 2007-04-03  Bruno Haible  <bruno@clisp.org>
58114
58115         * modules/TEMPLATE-EXTENDED: New file.
58116         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
58117
58118 2007-04-03  Bruno Haible  <bruno@clisp.org>
58119
58120         * DEPENDENCIES: New file.
58121         Suggested by Simon Josefsson.
58122
58123 2007-04-03  Bruno Haible  <bruno@clisp.org>
58124
58125         * doc/gnulib.texi: Escape @.
58126
58127 2007-04-03  James Youngman  <jay@gnu.org>
58128         and Paul Eggert  <eggert@cs.ucla.edu>
58129
58130         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
58131         birthtime on all systems that have birthtime, not just those which
58132         use st_birthtimensec rather than st_birthtim.  Putting zero in
58133         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
58134         that the birth time is not available for files on an NFS mount.
58135
58136 2007-04-03  Simon Josefsson  <simon@josefsson.org>
58137
58138         * modules/memxor: Move back from crypto/, suggested by Bruno.
58139         * modules/crypto/hmac-sha1: Fix memxor dependency.
58140
58141         * modules/crypto/gc: Moved from ../.
58142
58143 2007-04-02  Eric Blake  <ebb9@byu.net>
58144
58145         * lib/ldexpl.c (includes): Avoid libm.
58146
58147         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
58148
58149 2007-04-02  Bruno Haible  <bruno@clisp.org>
58150
58151         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
58152         on IRIX.
58153
58154 2007-04-02  Bruno Haible  <bruno@clisp.org>
58155
58156         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
58157         x86 or x86_64 platforms running MacOS X.
58158         Reported by Ryan Schmidt <@ryandesign.com>.
58159
58160 2007-04-02  Bruno Haible  <bruno@clisp.org>
58161
58162         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
58163         i386.
58164
58165 2007-04-01  Simon Josefsson  <simon@josefsson.org>
58166
58167         * modules/crypto/arcfour: Moved from ../.
58168         * modules/crypto/arcfour-tests: Moved from ../.
58169         * modules/crypto/arctwo: Moved from ../.
58170         * modules/crypto/arctwo-tests: Moved from ../.
58171         * modules/crypto/des: Moved from ../.
58172         * modules/crypto/des-tests: Moved from ../.
58173         * modules/crypto/gc-arcfour: Moved from ../.
58174         * modules/crypto/gc-arcfour-tests: Moved from ../.
58175         * modules/crypto/gc-arctwo: Moved from ../.
58176         * modules/crypto/gc-arctwo-tests: Moved from ../.
58177         * modules/crypto/gc-des: Moved from ../.
58178         * modules/crypto/gc-des-tests: Moved from ../.
58179         * modules/crypto/gc-hmac-md5: Moved from ../.
58180         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
58181         * modules/crypto/gc-hmac-sha1: Moved from ../.
58182         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
58183         * modules/crypto/gc-md2: Moved from ../.
58184         * modules/crypto/gc-md2-tests: Moved from ../.
58185         * modules/crypto/gc-md4: Moved from ../.
58186         * modules/crypto/gc-md4-tests: Moved from ../.
58187         * modules/crypto/gc-md5: Moved from ../.
58188         * modules/crypto/gc-md5-tests: Moved from ../.
58189         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
58190         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
58191         * modules/crypto/gc-random: Moved from ../.
58192         * modules/crypto/gc-rijndael: Moved from ../.
58193         * modules/crypto/gc-rijndael-tests: Moved from ../.
58194         * modules/crypto/gc-sha1: Moved from ../.
58195         * modules/crypto/gc-sha1-tests: Moved from ../.
58196         * modules/crypto/gc-tests: Moved from ../.
58197         * modules/crypto/hmac-md5: Moved from ../.
58198         * modules/crypto/hmac-md5-tests: Moved from ../.
58199         * modules/crypto/hmac-sha1: Moved from ../.
58200         * modules/crypto/hmac-sha1-tests: Moved from ../.
58201         * modules/crypto/md2: Moved from ../.
58202         * modules/crypto/md2-tests: Moved from ../.
58203         * modules/crypto/md4: Moved from ../.
58204         * modules/crypto/md4-tests: Moved from ../.
58205         * modules/crypto/md5: Moved from ../.
58206         * modules/crypto/md5-tests: Moved from ../.
58207         * modules/crypto/memxor: Moved from ../.
58208         * modules/crypto/rijndael: Moved from ../.
58209         * modules/crypto/rijndael-tests: Moved from ../.
58210         * modules/crypto/sha1: Moved from ../.
58211
58212 2007-03-30  James Youngman  <jay@gnu.org>
58213
58214         * tests/test-stat-time.c (prepare_test): use chmod() rather than
58215         rename() to change the ctime of a file (because ctime is unaffected
58216         by rename on jfs2 on AIX 5.1).
58217         (main): Start by doing cleanup, in case a previous run failed leaving
58218         test files behind.
58219
58220 2007-03-31  Bruno Haible  <bruno@clisp.org>
58221
58222         Support old proprietary implementations of iconv.
58223         * modules/iconv_open: New file.
58224         * lib/iconv_.h: New file.
58225         * m4/iconv_h.m4: New file.
58226         * lib/iconv_open.c: New file.
58227         * lib/iconv_open-aix.gperf: New file.
58228         * lib/iconv_open-hpux.gperf: New file.
58229         * lib/iconv_open-irix.gperf: New file.
58230         * lib/iconv_open-osf.gperf: New file.
58231         * m4/iconv_open.m4: New file.
58232         * modules/linebreak (Depends-on): Add iconv_open.
58233         * modules/striconv (Depends-on): Likewise.
58234         * modules/striconveh (Depends-on): Likewise.
58235         * modules/unicodeio (Depends-on): Likewise.
58236         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
58237         (iconv_t)(-1).
58238         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
58239         conversion if cd is (iconv_t)(-1).
58240         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
58241         is not possible.
58242
58243 2007-03-31  Bruno Haible  <bruno@clisp.org>
58244
58245         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58246         work on Solaris either. Protect also second use of "autodetect_jp".
58247
58248 2007-03-31  Bruno Haible  <bruno@clisp.org>
58249
58250         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
58251         the function is not present.
58252
58253 2007-03-31  Bruno Haible  <bruno@clisp.org>
58254
58255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
58256         the function is not present.
58257
58258 2007-03-31  Bruno Haible  <bruno@clisp.org>
58259
58260         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
58261         a bug in HP-UX iconv_open().
58262
58263 2007-03-31  Bruno Haible  <bruno@clisp.org>
58264
58265         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
58266         (Mathematics <math.h>): New section, add fpieee.
58267         (Input/output <stdio.h>): Add fseterr.
58268         (Mathematics <math.h>): New section, add printf-frexp.
58269         (Container data structures): Add sublist.
58270         (Core language properties): Add fpucw, inline.
58271         (Functions for greatest-width integer types <inttypes.h>): Add
58272         imaxabs, imaxdiv, inttypes.
58273         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
58274         isnanl-nolibm, ldexp.
58275         (Mathematics <math.h>): New section, add printf-frexpl.
58276         (Support for systems lacking POSIX:2001): Add fprintf-posix,
58277         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
58278         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
58279         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
58280         (Unicode string functions): Add unistr/u*-mbtoucr.
58281         (Java): Add javacomp-script, javaexec-script.
58282         (C#): Add csharpcomp-script, csharpexec-script.
58283         (Support for building libraries and executables): Add havelib,
58284         relocatable-*.
58285         (Support for maintaining and releasing projects): Renamed from
58286         'Support for maintaining and release projects'. Add announce-gen.
58287
58288 2007-03-31  Bruno Haible  <bruno@clisp.org>
58289
58290         * README: Talk primarily about git.
58291         (git and CVS): Renamed from CVS.
58292         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
58293         gnulib is available through git.
58294         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
58295
58296 2007-03-30  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
58299         * lib/poll_.h: Likewise.
58300         * lib/stat_.h: Likewise.
58301         * lib/sys_time_.h: Likewise.
58302         * lib/sysexit_.h: Likewise.
58303         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
58304         * lib/stdbool_.h: Likewise.
58305         * lib/byteswap_.h: Add double-inclusion guard.
58306
58307 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
58308
58309         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
58310
58311 2007-03-30  Karl Berry  <karl@gnu.org>
58312
58313         * config/srclist-update: double space after USA in the license
58314         substitution, since that's how it's usually (?) written.
58315
58316 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58317
58318         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
58319         reported by Bruno Haible.
58320
58321 2007-03-29  Bruno Haible  <bruno@clisp.org>
58322
58323         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
58324         a bug in AIX iconv().
58325
58326 2007-03-29  Bruno Haible  <bruno@clisp.org>
58327
58328         * modules/ldexpl-tests: New file.
58329         * tests/test-ldexpl.c: New file.
58330
58331 2007-03-29  Bruno Haible  <bruno@clisp.org>
58332
58333         * lib/ldexpl.c: Include fpucw.h.
58334         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
58335         multiplication.
58336         * modules/ldexpl (Depends-on): Add fpucw.
58337
58338 2007-03-29  Bruno Haible  <bruno@clisp.org>
58339
58340         * modules/ldexpl: New file.
58341         * m4/ldexpl.m4: New file.
58342         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
58343         set.
58344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
58345         REPLACE_LDEXPL.
58346         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
58347         REPLACE_LDEXPL.
58348         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58349         gl_FUNC_LDEXPL_WORKS.
58350         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
58351         * modules/mathl (Files): Remove lib/ldexpl.c.
58352         (Depends-on): Add ldexpl.
58353
58354 2007-03-29  Bruno Haible  <bruno@clisp.org>
58355
58356         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
58357
58358 2007-03-29  Bruno Haible  <bruno@clisp.org>
58359
58360         * tests/test-striconveh.c (main): Don't assume that a direct conversion
58361         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
58362         and possibly also HP-UX.
58363         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58364         work on AIX, IRIX, HP-UX, OSF/1.
58365         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58366         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58367         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58368         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58369         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
58370         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58371
58372 2007-03-29  Bruno Haible  <bruno@clisp.org>
58373
58374         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
58375
58376 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58377
58378         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
58379         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
58380
58381 2007-03-29  Eric Blake  <ebb9@byu.net>
58382
58383         * lib/acl-internal.h: Remove redundant include.
58384         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
58385         Cygwin when a file is locked.
58386
58387 2007-03-29  Bruno Haible  <bruno@clisp.org>
58388
58389         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
58390         file.
58391         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
58392
58393 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58394
58395         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
58396         try to remove a parent directory if the child couldn't be removed
58397         (except for the first rmdir, which could fail because the child
58398         doesn't exist).  Problem reported by Jeff Blaine in
58399         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
58400
58401 2007-03-28  Bruno Haible  <bruno@clisp.org>
58402
58403         * lib/striconveh.c (utf8conv_carefully): New function.
58404         (mem_cd_iconveh_internal): Invoke it.
58405
58406 2007-03-28  Bruno Haible  <bruno@clisp.org>
58407
58408         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
58409         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58410         input.
58411         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58412         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
58413         unistr/u8-uctomb.
58414
58415 2007-03-28  Bruno Haible  <bruno@clisp.org>
58416
58417         * modules/unistr/u8-mbtoucr: New file.
58418         * lib/unistr/u8-mbtoucr.c: New file.
58419         * modules/unistr/u16-mbtoucr: New file.
58420         * lib/unistr/u16-mbtoucr.c: New file.
58421         * modules/unistr/u16-mbtoucr: New file.
58422         * lib/unistr/u16-mbtoucr.c: New file.
58423         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
58424
58425 2007-03-27  Simon Josefsson  <simon@josefsson.org>
58426             Bruno Haible  <bruno@clisp.org>
58427
58428         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
58429         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
58430         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
58431
58432         * m4/stdio_h.m4: Add stubs for vasprintf too.
58433
58434         * modules/stdio: Support vasprintf in sed command.
58435
58436         * modules/vasprintf: Depend on stdio for prototypes.  Remove
58437         vasprintf.h.  Add stdio module indicator.
58438
58439         * lib/stdio_.h: Declare asprintf and vasprintf, based on
58440         vasprintf.h.
58441
58442         * lib/vasprintf.h: File removed.
58443
58444         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
58445         * lib/vasprintf.c: Ditto.
58446         * lib/xvasprintf.c: Ditto.
58447         * tests/test-vasprintf-posix.c: Ditto.
58448         * tests/test-vasprintf.c: Ditto.
58449
58450 2007-03-27  Bruno Haible  <bruno@clisp.org>
58451
58452         Make vasnprintf multithread-safe.
58453         * lib/vasnprintf.c (decimal_point_char): New function.
58454         (VASNPRINTF): Use it.
58455         Suggested by Simon Josefsson.
58456
58457 2007-03-27  Eric Blake  <ebb9@byu.net>
58458
58459         Support sub-second birthtime on cygwin.
58460         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
58461         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
58462         (get_stat_birthtime): Also work with st_birthtim.
58463
58464 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
58465
58466         * lib/stat-time.h (USE_BIRTHTIME): Remove.
58467         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
58468         (get_stat_birthtime_ns): Do not try to use "spare" fields.
58469         (get_stat_birthtime_ns): Simplify compile-time tests.
58470         (get_stat_birthtime): Change the API to look like
58471         get_stat_mtime etc., except return a negative tv_nsec on error.
58472         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
58473         Don't check for "spare" fields.
58474         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
58475         or for struct stat.st_birthtime, as these tests aren't used.
58476         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
58477
58478 2007-03-27  Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/stat-time.h: Include <sys/stat.h>.
58481
58482 2007-03-27  James Youngman  <jay@gnu.org>
58483
58484         * lib/stat-time.h (get_stat_birthtime): New function for
58485           retrieving st_birthtime as provided by UFS2 (hence *BSD).
58486         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
58487           and its variants.
58488         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
58489         * modules/stat-time-test: New file.
58490         * tests/test-stat-time.c: New test, devised by Bruno Haible.
58491
58492 2007-03-26  Bruno Haible  <bruno@clisp.org>
58493
58494         Better support of signalling NaNs.
58495         * lib/atanl.c: Include isnanl.h.
58496         (atanl): Perform test for NaN at the beginning of the function and
58497         through a call to isnanl.
58498         * lib/cosl.c: Include isnanl.h.
58499         (cosl): Perform test for NaN at the beginning of the function and
58500         through a call to isnanl.
58501         * lib/ldexpl.c: Include isnanl.h.
58502         (ldexpl): Perform test for NaN through a call to isnanl.
58503         * lib/logl.c: Include isnanl.h.
58504         (logl): Perform test for NaN at the beginning of the function and
58505         through a call to isnanl.
58506         * lib/sinl.c: Include isnanl.h.
58507         (sinl): Perform test for NaN at the beginning of the function and
58508         through a call to isnanl.
58509         * lib/sqrtl.c: Include isnanl.h.
58510         (sqrtl): Perform test for NaN at the beginning of the function and
58511         through a call to isnanl.
58512         * lib/tanl.c: Include isnanl.h.
58513         (tanl): Perform test for NaN at the beginning of the function and
58514         through a call to isnanl.
58515         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
58516         * modules/mathl (Depends-on): Add isnanl.
58517
58518 2007-03-26  Eric Blake  <ebb9@byu.net>
58519
58520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
58521         regression in logic sense of previous patch.
58522
58523 2007-03-26  Bruno Haible  <bruno@clisp.org>
58524
58525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
58526         unportable shell command "if ! ...".
58527         Reported by Ralf Wildenhues.
58528
58529 2007-03-25  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
58532         <sysexits.h> file, and only add EX_CONFIG.
58533         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
58534         absolute file name and whether it is sufficient. Substitute also
58535         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
58536         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
58537         ABSOLUTE_SYSEXITS_H into sysexits.h.
58538
58539 2007-03-25  Bruno Haible  <bruno@clisp.org>
58540
58541         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
58542         hints is NULL.
58543
58544 2007-03-25  Bruno Haible  <bruno@clisp.org>
58545
58546         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
58547         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
58548
58549 2007-03-25  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/vasnprintf.c: Include langinfo.h.
58552         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
58553         multithread-safe.
58554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
58555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
58556         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58557         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58558         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58559         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58560         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58561         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
58562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58563         Reported by Simon Josefsson.
58564
58565 2007-03-25  Bruno Haible  <bruno@clisp.org>
58566
58567         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
58568         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
58569         * modules/vasnprintf (Depends-on): Add stdint.
58570
58571 2007-03-25  Bruno Haible  <bruno@clisp.org>
58572
58573         * modules/fpieee: New file.
58574         * m4/fpieee.m4: New file.
58575         * modules/isnan-nolibm (Depends-on): Add fpieee.
58576         * modules/isnanl-nolibm (Depends-on): Add fpieee.
58577         * modules/isnanl (Depends-on): Add fpieee.
58578
58579 2007-03-25  Bruno Haible  <bruno@clisp.org>
58580
58581         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
58582
58583 2007-03-25  Bruno Haible  <bruno@clisp.org>
58584
58585         Avoid test failures on IRIX 6.5.
58586         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
58587         (main): Use it.
58588         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
58589         macros.
58590         (main): Use them.
58591
58592 2007-03-25  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
58595         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
58596         exists but doesn't work.
58597         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
58598         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
58599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
58600         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
58601         math.h.
58602
58603 2007-03-25  Bruno Haible  <bruno@clisp.org>
58604
58605         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
58606         returns inf. Needed on IRIX 6.5.
58607
58608 2007-03-25  Bruno Haible  <bruno@clisp.org>
58609
58610         * tests/test-frexpl.c: Include isnanl-nolibm.h.
58611         (main): Use isnanl instead of x != x idiom.
58612         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
58613
58614         * tests/test-frexp.c: Include isnan.h.
58615         (main): Use isnan instead of x != x idiom.
58616         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
58617
58618 2007-03-25  Bruno Haible  <bruno@clisp.org>
58619
58620         * tests/test-frexp.c (NaN): New function/macro.
58621         (main): Use it instead of 0.0 / 0.0.
58622         * tests/test-isnan.c (NaN): New function/macro.
58623         (main): Use it instead of 0.0 / 0.0.
58624         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
58625         (test_function): Use it instead of 0.0 / 0.0.
58626         * tests/test-vasprintf-posix.c (NaN): New function/macro.
58627         (test_function): Use it instead of 0.0 / 0.0.
58628         * tests/test-snprintf-posix.h (NaN): New function/macro.
58629         (test_function): Use it instead of 0.0 / 0.0.
58630         * tests/test-sprintf-posix.h (NaN): New function/macro.
58631         (test_function): Use it instead of 0.0 / 0.0.
58632         * tests/test-fprintf-posix.h (NaN): New function/macro.
58633         (test_function): Use it instead of 0.0 / 0.0.
58634         * tests/test-printf-posix.h (NaN): New function/macro.
58635         (test_function): Use it instead of 0.0 / 0.0.
58636
58637         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
58638
58639 2007-03-25  Bruno Haible  <bruno@clisp.org>
58640
58641         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
58642
58643 2007-03-25  Bruno Haible  <bruno@clisp.org>
58644
58645         * lib/regexec.c (merge_state_with_log): Make static.
58646
58647 2007-03-25  Bruno Haible  <bruno@clisp.org>
58648
58649         * lib/trigl.c (kernel_rem_pio2): Make static.
58650
58651 2007-03-25  Bruno Haible  <bruno@clisp.org>
58652
58653         * lib/sincosl.c (sincosl_table): Make static.
58654
58655 2007-03-25  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
58658         if the compiler does not support C99.
58659
58660 2007-03-25  Bruno Haible  <bruno@clisp.org>
58661
58662         * modules/time (Makefile.am): Ensure all rule action lines start with a
58663         tab.
58664
58665 2007-03-24  Bruno Haible  <bruno@clisp.org>
58666
58667         * modules/tsearch-tests: New file.
58668         * tests/test-tsearch.sh: New file.
58669         * tests/test-tsearch.c: New file, mostly copied from glibc.
58670
58671         * modules/search-tests: New file.
58672         * tests/test-search.c: New file.
58673
58674         * modules/search: New file.
58675         * lib/search_.h: New file, incorporating lib/tsearch.h.
58676         * m4/search_h.m4: New file.
58677         * lib/tsearch.h: Remove file.
58678         * lib/tsearch.c: Include search.h instead of tsearch.h.
58679         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58680         HAVE_TSEARCH.
58681         * modules/tsearch (Files): Remove lib/tsearch.h.
58682         (Depends-on): Add search.
58683         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58684         (Include): Change tsearch.h into search.h.
58685
58686 2007-03-24  Bruno Haible  <bruno@clisp.org>
58687
58688         * modules/fpucw: New file.
58689         * lib/fpucw.h: New file.
58690         * lib/frexp.c: Include fpucw.h.
58691         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58692         (FUNC): Use them.
58693         * lib/printf-frexp.c: Include fpucw.h.
58694         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58695         (FUNC): Use them.
58696         * lib/vasnprintf.c: Include fpucw.h.
58697         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58698         'long double' calculations.
58699         * tests/test-frexpl.c: Include fpucw.h.
58700         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58701         * tests/test-printf-frexpl.c: Include fpucw.h.
58702         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58703         * modules/frexpl (Depends-on): Add fpucw.
58704         * modules/printf-frexpl (Depends-on): Likewise.
58705         * modules/fprintf-posix (Depends-on): Likewise.
58706         * modules/snprintf-posix (Depends-on): Likewise.
58707         * modules/sprintf-posix (Depends-on): Likewise.
58708         * modules/vasnprintf-posix (Depends-on): Likewise.
58709         * modules/vasprintf-posix (Depends-on): Likewise.
58710         * modules/vfprintf-posix (Depends-on): Likewise.
58711         * modules/vsnprintf-posix (Depends-on): Likewise.
58712         * modules/vsprintf-posix (Depends-on): Likewise.
58713         * modules/frexpl-tests (Depends-on): Likewise.
58714         * modules/printf-frexpl-tests (Depends-on): Likewise.
58715
58716 2007-03-24  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/float+.h: New file.
58719         * lib/isnan.c: Include float+.h.
58720         (SIZE): New macro.
58721         (FUNC): Compare only SIZE bytes of the value.
58722         * lib/vasnprintf.c: Include float+.h.
58723         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58724         SIZEOF_LDBL or SIZEOF_DBL bytes.
58725         * modules/isnan-nolibm (Files): Add lib/float+.h.
58726         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58727         * modules/isnanl (Files): Add lib/float+.h.
58728         * modules/vasnprintf (Files): Add lib/float+.h.
58729
58730 2007-03-24  Bruno Haible  <bruno@clisp.org>
58731
58732         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58733         include isnanl-nolibm.h.
58734
58735 2007-03-24  Bruno Haible  <bruno@clisp.org>
58736
58737         * tests/test-read-file.c (main): Don't produce spurious output for
58738         expected situations. Make the test fail if it encountered unexpected
58739         results.
58740
58741 2007-03-24  Bruno Haible  <bruno@clisp.org>
58742
58743         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58744         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58745
58746 2007-03-24  Bruno Haible  <bruno@clisp.org>
58747
58748         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58749
58750 2007-03-24  Bruno Haible  <bruno@clisp.org>
58751
58752         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58753         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58754
58755         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58756         * modules/utf8-ucs4: Turn into a symbolic link to module
58757         unistr/u8-mbtouc.
58758
58759         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58760         utf8-ucs4-unsafe.
58761         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58762         unistr/u8-mbtouc-unsafe.
58763
58764         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58765         * modules/utf16-ucs4: Turn into a symbolic link to module
58766         unistr/u16-mbtouc.
58767
58768         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58769         utf16-ucs4-unsafe.
58770         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58771         unistr/u16-mbtouc-unsafe.
58772
58773         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58774         * modules/ucs4-utf8: Turn into a symbolic link to module
58775         unistr/u8-ubtomb.
58776
58777         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58778         * modules/ucs4-utf16: Turn into a symbolic link to module
58779         unistr/u16-ubtomb.
58780
58781 2007-03-24  Bruno Haible  <bruno@clisp.org>
58782
58783         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58784         Enable the function only if HAVE_INLINE.
58785         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58786         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58787         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58788         Enable the function only if HAVE_INLINE.
58789         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58790         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58791         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58792         Enable the function only if HAVE_INLINE.
58793         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58794         Enable the function only if HAVE_INLINE.
58795         * modules/utf8-ucs4: Update.
58796         * modules/utf8-ucs4-unsafe: Update.
58797         * modules/utf16-ucs4: Update.
58798         * modules/utf16-ucs4-unsafe: Update.
58799         * modules/ucs4-utf8: Update.
58800         * modules/ucs4-utf16: Update.
58801
58802 2007-03-24  Bruno Haible  <bruno@clisp.org>
58803
58804         * lib/utf8-ucs4.h: Remove file.
58805         * lib/utf8-ucs4-unsafe.h: Remove file.
58806         * lib/utf16-ucs4.h: Remove file.
58807         * lib/utf16-ucs4-unsafe.h: Remove file.
58808         * lib/ucs4-utf8.h: Remove file.
58809         * lib/ucs4-utf16.h: Remove file.
58810         * lib/unistr.h: Include their previous contents.
58811         * m4/utf-ucs4.m4: Remove file.
58812         * m4/ucs4-utf.m4: Remove file.
58813         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58814         (Depends-on): Add unistr/base.
58815         (configure.ac): Remove gl_UTF_UCS4.
58816         (Makefile.am): Update.
58817         (Include): Change to unistr.h.
58818         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58819         (Depends-on): Add unistr/base.
58820         (configure.ac): Remove gl_UTF_UCS4.
58821         (Makefile.am): Update.
58822         (Include): Change to unistr.h.
58823         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58824         (Depends-on): Add unistr/base.
58825         (configure.ac): Remove gl_UTF_UCS4.
58826         (Makefile.am): Update.
58827         (Include): Change to unistr.h.
58828         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58829         (Depends-on): Add unistr/base.
58830         (configure.ac): Remove gl_UTF_UCS4.
58831         (Makefile.am): Update.
58832         (Include): Change to unistr.h.
58833         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58834         (Depends-on): Add unistr/base.
58835         (configure.ac): Remove gl_UCS4_UTF.
58836         (Makefile.am): Update.
58837         (Include): Change to unistr.h.
58838         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58839         (Depends-on): Add unistr/base.
58840         (configure.ac): Remove gl_UCS4_UTF.
58841         (Makefile.am): Update.
58842         (Include): Change to unistr.h.
58843         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58844         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58845         utf8-ucs4-unsafe.h.
58846         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58847         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58848         utf16-ucs4-unsafe.h.
58849         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58850         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58851         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58852         * lib/unistr/u8-strchr.c: Likewise.
58853         * lib/unistr/u8-strrchr.c: Likewise.
58854         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58855         * lib/unistr/u16-strchr.c: Likewise.
58856         * lib/unistr/u16-strrchr.c: Likewise.
58857         * lib/striconveh.c: Update.
58858         * lib/linebreak.c: Update.
58859
58860 2007-03-24  Bruno Haible  <bruno@clisp.org>
58861
58862         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58863         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58864
58865 2007-03-22  Bruno Haible  <bruno@clisp.org>
58866
58867         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58868
58869 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58870
58871         * MODULES.html.sh (File system functions): New module write-any-file.
58872         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58873         * m4/write-any-file.m4: New files.
58874
58875 2007-03-23  Eric Blake  <ebb9@byu.net>
58876
58877         * gnulib-tool: Rearrange space-tab sequences, since some editors
58878         like to eat them.
58879
58880 2007-03-23  Eric Blake  <ebb9@byu.net>
58881
58882         * lib/version-etc.c (version_etc_va): Update license wording to
58883         be more concise.  Recommended by Richard Stallman.
58884
58885 2007-03-22  Bruno Haible  <bruno@clisp.org>
58886
58887         * lib/poll.c (MSG_PEEK): New fallback definition.
58888
58889 2007-03-22  Bruno Haible  <bruno@clisp.org>
58890
58891         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58892         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58893         (main): Update.
58894         Fixes a compilation error on BeOS.
58895
58896 2007-03-22  Bruno Haible  <bruno@clisp.org>
58897
58898         * modules/frexpl-tests: New file.
58899         * tests/test-frexpl.c: New file.
58900
58901         * modules/frexpl: New file.
58902         * m4/frexpl.m4: New file.
58903         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58904         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58906         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58907         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58908         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58909
58910 2007-03-22  Bruno Haible  <bruno@clisp.org>
58911
58912         * lib/frexpl.c: Share code with lib/frexp.c.
58913         * modules/mathl (Files): Add lib/frexp.c.
58914         (Depends-on): Add isnanl-nolibm.
58915
58916 2007-03-22  Bruno Haible  <bruno@clisp.org>
58917
58918         * modules/printf-frexp (Files): Add m4/frexp.m4.
58919         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58920         only if the found frexp function actually works.
58921
58922 2007-03-22  Bruno Haible  <bruno@clisp.org>
58923
58924         * lib/frexp.c: Remove older implementation that uses divisions.
58925
58926 2007-03-21  Bruno Haible  <bruno@clisp.org>
58927
58928         * modules/frexp-tests: New file.
58929         * tests/test-frexp.c: New file.
58930
58931         * modules/frexp: New file.
58932         * lib/frexp.c: New file.
58933         * m4/frexp.m4: New file.
58934         * lib/math_.h (frexp): New declaration.
58935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58936         REPLACE_FREXP.
58937         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58938
58939 2007-03-21  Bruno Haible  <bruno@clisp.org>
58940
58941         * modules/isnanl-tests: New file.
58942         * tests/test-isnanl.c: New file.
58943
58944         * modules/isnanl: New file.
58945         * lib/isnanl.h: New file.
58946         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58947         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58948         gl_FUNC_ISNANL_WORKS.
58949         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58950         New macros.
58951
58952 2007-03-21  Bruno Haible  <bruno@clisp.org>
58953
58954         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58955         lib/isnanl.h.
58956         (Include): Update.
58957         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58958         * lib/vasnprintf.c: Update.
58959         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58960         tests/test-isnanl.h, remove tests/test-isnanl.c.
58961         (Makefile.am): Update.
58962         * tests/test-isnanl-nolibm.c: New file.
58963         * tests/test-isnanl.h: New file.
58964         * tests/test-isnanl.c: Remove file.
58965
58966 2007-03-21  Jim Meyering  <jim@meyering.net>
58967
58968         When trying to open ".", treat ESTALE like EACCES.
58969         * lib/savewd.c (savewd_save): Resort to forking not just upon
58970         failure with EACCES, but also when errno is ESTALE.
58971
58972 2007-03-20  Bruno Haible  <bruno@clisp.org>
58973
58974         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58975         Needed on AIX 5.1. Reported by Matthew Woehlke.
58976
58977 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58978
58979         Suggestions by Bruno Haible:
58980         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58981         our own.
58982         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58983         * modules/acl (Depends-on): Add gettext.
58984
58985 2007-03-19  Bruno Haible  <bruno@clisp.org>
58986
58987         * modules/iconvme: Remove file.
58988         * lib/iconvme.h: Remove file.
58989         * lib/iconvme.c: Remove file.
58990         * m4/iconvme.m4: Remove file.
58991
58992 2007-03-19  Bruno Haible  <bruno@clisp.org>
58993
58994         * doc/relocatable-maint.texi: Break long shell script line.
58995         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58996
58997 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58998
58999         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
59000         handle file_has_acl.
59001         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
59002         * lib/acl.c: Move header inclusions and related macro defns into
59003         lib/acl-internal.h.
59004         (S_ISLNK): Remove defn, since that's now done for us.
59005         (file_has_acl): Move to lib/file-has-acl.c.
59006         Call acl_trivial if available.  This is the crucial part of the fix.
59007         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
59008         shared within the library.  Rewrite a bit, partly to make it compatible
59009         with the GNU coding style.
59010         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
59011         Remove unnecessary double-quotes.
59012         Don't test for acl_to_text; the build will catch that.
59013         Replace acl_entries if it doesn't exist and it is needed.
59014         Check for -lsec and acl_trivial (as used on Solaris 10).
59015         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
59016         lib/file-has-acl.c.
59017         (Depends-on): Add sys_stat, for S_ISLNK.
59018
59019 2007-03-19  Ben Pfaff  <blp@gnu.org>
59020
59021         * doc/gnulib.texi: Fix typos.
59022         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59023
59024 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59025
59026         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
59027         If size is zero here, buf must be zero.
59028
59029 2007-03-19  Simon Josefsson  <simon@josefsson.org>
59030
59031         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
59032         <bruno@clisp.org>.
59033
59034 2007-03-18  Bruno Haible  <bruno@clisp.org>
59035
59036         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
59037         Suggested by Eric Blake.
59038
59039 2007-03-18  Ben Pfaff  <blp@gnu.org>
59040
59041         * doc/relocatable.texi: Recommend using as prefix a directory
59042         that does not exist and will never be created.  Based on
59043         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
59044         and others.
59045
59046 2007-03-17  Bruno Haible  <bruno@clisp.org>
59047
59048         * lib/fchownat.c: Include lchown.h.
59049
59050 2007-03-17  Bruno Haible  <bruno@clisp.org>
59051
59052         Fix endless loop when the given allocated size was > INT_MAX.
59053         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
59054         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
59055         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
59056         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
59057         * lib/sprintf.c (sprintf): Likewise.
59058
59059 2007-03-17  Bruno Haible  <bruno@clisp.org>
59060
59061         * tests/test-argp-2.sh (func_compare): Output a context diff.
59062
59063 2007-03-17  Bruno Haible  <bruno@clisp.org>
59064
59065         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
59066         locale's decimal-point character.
59067
59068 2007-03-17  Bruno Haible  <bruno@clisp.org>
59069
59070         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
59071         before comparing it. Needed because on some platforms (e.g. x86) a
59072         'long double' occupies less bytes than sizeof (long double).
59073
59074 2007-03-17  Bruno Haible  <bruno@clisp.org>
59075
59076         * tests/test-crc.c (main): Make printf statements 64-bit clean.
59077         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
59078         * tests/test-getaddrinfo.c (simple): Likewise.
59079         * tests/test-read-file.c (main): Likewise.
59080
59081 2007-03-17  Bruno Haible  <bruno@clisp.org>
59082
59083         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
59084
59085 2007-03-17  Bruno Haible  <bruno@clisp.org>
59086
59087         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
59088         unused variable.
59089
59090 2007-03-17  Bruno Haible  <bruno@clisp.org>
59091
59092         * tests/test-c-strcasecmp.c: Include c-strcase.h.
59093         * tests/test-c-strncasecmp.c: Likewise.
59094
59095 2007-03-17  Bruno Haible  <bruno@clisp.org>
59096
59097         * modules/stdlib (Depends-on): Add unistd.
59098         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
59099         Needed for MacOS X 10.3.
59100
59101 2007-03-17  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/unistr/u-strdup.h: Include <stdlib.h>.
59104
59105 2007-03-17  Bruno Haible  <bruno@clisp.org>
59106
59107         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
59108
59109 2007-03-17  Bruno Haible  <bruno@clisp.org>
59110
59111         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
59112         to reflect files copied from gnulib (with or without modifications).
59113         Suggested by Jim Meyering.
59114
59115 2007-03-17  Eric Blake  <ebb9@byu.net>
59116
59117         * NEWS: Document stdlib change from 2007-02-18.
59118
59119 2007-03-17  Jim Meyering  <jim@meyering.net>
59120
59121         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
59122         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
59123         someone uses a name containing shell meta-characters.
59124         Reported by Alfred M. Szmidt.
59125
59126         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
59127
59128 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59129
59130         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
59131         and copy gettext configuration files only if configure.ac contains
59132         a use of AM_GNU_GETTEXT_VERSION.
59133
59134 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59135
59136         * build-aux/bootstrap (gnulib_name): New variable.
59137         (gnulib_tool_options): Use it.
59138
59139 2007-03-13  Simon Josefsson  <simon@josefsson.org>
59140
59141         * tests/test-des.c: Use new namespace.
59142
59143 2007-03-15  Bruno Haible  <bruno@clisp.org>
59144
59145         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
59146         Reported by James Youngman <jay@gnu.org>.
59147
59148 2007-03-15  Bruno Haible  <bruno@clisp.org>
59149
59150         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
59151         declared prototype. Needed with cc on OSF/1 5.1.
59152
59153 2007-03-15  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
59156         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
59157         (struct gl_list_implementation): Add dispose_fn argument to the
59158         'create_empty', 'create' methods.
59159         (struct gl_list_impl_base): Add field 'dispose_fn'.
59160         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
59161         argument.
59162         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
59163         dispose_fn argument.
59164         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
59165         dispose_fn on the dropped values.
59166         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
59167         dispose_fn argument.
59168         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
59169         dropped values.
59170         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
59171         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59172         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
59173         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59174         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
59175         argument.
59176         (gl_tree_list_free): Call dispose_fn on the dropped values.
59177         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
59178         the dropped values.
59179         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59180         Add dispose_fn argument.
59181         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
59182         Call dispose_fn on the dropped values.
59183         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
59184         Add dispose_fn argument.
59185         (gl_sublist_create): Initialize the 'dispose_fn' field.
59186         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
59187         * tests/test-array_list.c (main): Update.
59188         * tests/test-carray_list.c (main): Update.
59189         * tests/test-avltree_list.c (main): Update.
59190         * tests/test-rbtree_list.c (main): Update.
59191         * tests/test-avltreehash_list.c (main): Update.
59192         * tests/test-rbtreehash_list.c (main): Update.
59193         * tests/test-linked_list.c (main): Update.
59194         * tests/test-linkedhash_list.c (main): Update.
59195         * tests/test-array_oset.c (main): Update.
59196
59197 2007-03-15  Bruno Haible  <bruno@clisp.org>
59198
59199         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
59200         (gl_oset_create_empty): Add dispose_fn argument.
59201         (struct gl_oset_implementation): Add dispose_fn argument to
59202         'create_empty' method.
59203         (struct gl_oset_impl_base): Add dispose_fn field.
59204         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
59205         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
59206         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
59207         values.
59208         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
59209         (gl_tree_oset_free): Call dispose_fn on the dropped values.
59210         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59211         dropped value.
59212         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59213         dropped value.
59214         * tests/test-array_oset.c (main): Update.
59215         * tests/test-avltree_oset.c (main): Update.
59216         * tests/test-rbtree_oset.c (main): Update.
59217         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
59218
59219 2007-03-13  Bruno Haible  <bruno@clisp.org>
59220
59221         * tests/test-stdbool.c (i): Update after last patch.
59222
59223 2007-03-12  Bruno Haible  <bruno@clisp.org>
59224
59225         * lib/quotearg.c: Include <wctype.h> early, before the definition of
59226         the iswprint macro. Needed on Solaris 2.5.1.
59227
59228 2007-03-12  Bruno Haible  <bruno@clisp.org>
59229
59230         * tests/test-printf-frexp.c (main): Declare x as volatile.
59231
59232 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59233
59234         * doc/gnulib.texi (Build robot for gnulib): New section.
59235
59236 2007-03-12  Jim Meyering  <jim@meyering.net>
59237
59238         * build-aux/bootstrap: New file.
59239         * build-aux/bootstrap.conf: New file, from coreutils.
59240
59241 2007-03-11  Bruno Haible  <bruno@clisp.org>
59242
59243         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
59244
59245 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59246
59247         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
59248         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
59249         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
59250
59251 2007-03-11  Bruno Haible  <bruno@clisp.org>
59252
59253         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
59254         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
59255
59256 2007-03-11  Bruno Haible  <bruno@clisp.org>
59257
59258         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
59259         formula. Needed for SunPRO C 5.0.
59260
59261 2007-03-11  Bruno Haible  <bruno@clisp.org>
59262
59263         * modules/long-options (Depends-on): Add getopt.
59264
59265 2007-03-11  Bruno Haible  <bruno@clisp.org>
59266
59267         * modules/modechange (Depends-on): Add stdbool.
59268
59269 2007-03-11  Bruno Haible  <bruno@clisp.org>
59270
59271         * modules/i-ring (Depends-on): Add stdbool.
59272
59273 2007-03-11  Bruno Haible  <bruno@clisp.org>
59274
59275         * modules/gc-des (Depends-on): Add stdbool.
59276
59277 2007-03-11  Bruno Haible  <bruno@clisp.org>
59278
59279         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
59280
59281 2007-03-11  Bruno Haible  <bruno@clisp.org>
59282
59283         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
59284
59285 2007-03-11  Bruno Haible  <bruno@clisp.org>
59286
59287         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
59288
59289 2007-03-11  Bruno Haible  <bruno@clisp.org>
59290
59291         * lib/vasnprintf.c (sprintf): Undefine.
59292
59293 2007-03-11  Bruno Haible  <bruno@clisp.org>
59294
59295         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
59296         initializers in SunPRO C and Compaq C compilers.
59297
59298 2007-03-11  Bruno Haible  <bruno@clisp.org>
59299
59300         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
59301         decrementing code ANSI C compliant.
59302
59303 2007-03-11  Bruno Haible  <bruno@clisp.org>
59304
59305         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
59306         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
59307
59308 2007-03-11  Bruno Haible  <bruno@clisp.org>
59309
59310         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
59311         <stdbool.h> substitute doesn't pass.
59312
59313 2007-03-11  Bruno Haible  <bruno@clisp.org>
59314
59315         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
59316
59317 2007-03-11  Bruno Haible  <bruno@clisp.org>
59318
59319         * gnulib-tool (func_create_megatestdir): Create also an autobuild
59320         script, for submission to autobuild.josefsson.org.
59321
59322 2007-03-10  Bruno Haible  <bruno@clisp.org>
59323
59324         * modules/canonicalize-lgpl-tests: New file.
59325         * tests/test-canonicalize-lgpl.sh: New file.
59326         * tests/test-canonicalize-lgpl.c: New file.
59327
59328         * modules/c-strcase-tests: New file.
59329         * tests/test-c-strcase.sh: New file.
59330         * tests/test-c-strcasecmp.c: New file.
59331         * tests/test-c-strncasecmp.c: New file.
59332
59333         * modules/atexit-tests: New file.
59334         * tests/test-atexit.sh: New file.
59335         * tests/test-atexit.c: New file.
59336
59337 2007-03-10  Bruno Haible  <bruno@clisp.org>
59338
59339         * tests/test-binary-io.sh: Use temporary filenames that are not so
59340         likely to clash with those of other tests (in a parallel make).
59341         * tests/test-binary-io.c: Likewise.
59342
59343 2007-03-10  Bruno Haible  <bruno@clisp.org>
59344
59345         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
59346         fallback; use #error instead.
59347         Suggested by Simon Josefsson.
59348
59349 2007-03-10  Bruno Haible  <bruno@clisp.org>
59350
59351         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
59352         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
59353         first and the last.
59354
59355 2007-03-10  Bruno Haible  <bruno@clisp.org>
59356
59357         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
59358
59359 2007-03-10  Bruno Haible  <bruno@clisp.org>
59360
59361         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
59362         "make distcheck".
59363         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
59364         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
59365         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
59366
59367 2007-03-10  Bruno Haible  <bruno@clisp.org>
59368
59369         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
59370         variable.
59371         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
59372         variable.
59373
59374 2007-03-09  Eric Blake  <ebb9@byu.net>
59375         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
59376
59377         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
59378         types are not being provided by gnulib.
59379         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
59380         types are supported.
59381
59382 2007-03-10  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/stdio_.h (__attribute__): New macro.
59385         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
59386         vsprintf): Specify __attribute__ __format__ for GCC.
59387         Suggested by Eric Blake.
59388
59389 2007-03-09  Bruno Haible  <bruno@clisp.org>
59390
59391         * modules/printf-posix-tests: New file.
59392         * tests/test-printf-posix.sh: New file.
59393         * tests/test-printf-posix.c: New file.
59394
59395         * modules/printf-posix: New file.
59396         * lib/printf.c: New file.
59397         * m4/printf-posix-rpl.m4: New file.
59398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
59399         REPLACE_PRINTF.
59400         * lib/stdio_.h (printf): New declaration.
59401         (format, __format__, ____printf____, ____scanf____, ____strftime____,
59402         ____strfmon____): New macros.
59403         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
59404         REPLACE_PRINTF.
59405
59406 2007-03-09  Bruno Haible  <bruno@clisp.org>
59407
59408         * tests/test-vasnprintf-posix2.sh: New file.
59409         * tests/test-vasnprintf-posix2.c: New file.
59410         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59411         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59412         (Makefile.am): Activate test-vasnprintf-posix2.sh.
59413
59414         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
59415         a locale dependent decimal point, rather than always '.'.
59416
59417 2007-03-09  Eric Blake  <ebb9@byu.net>
59418
59419         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
59420         spite of platforms like Tandem/NSK that define it to -1.
59421
59422 2007-03-08  Bruno Haible  <bruno@clisp.org>
59423
59424         * modules/vprintf-posix-tests: New file.
59425         * tests/test-vprintf-posix.sh: New file.
59426         * tests/test-vprintf-posix.c: New file.
59427         * tests/test-printf-posix.h: New file.
59428
59429         * modules/vprintf-posix: New file.
59430         * lib/vprintf.c: New file.
59431         * m4/vprintf-posix.m4: New file.
59432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
59433         REPLACE_VPRINTF.
59434         * lib/stdio_.h (vprintf): New declaration.
59435         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
59436         REPLACE_VPRINTF.
59437
59438 2007-03-08  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/fprintf-posix-tests: New file.
59441         * tests/test-fprintf-posix.sh: New file.
59442         * tests/test-fprintf-posix.c: New file.
59443
59444         * modules/fprintf-posix: New file.
59445         * lib/fprintf.c: New file.
59446         * m4/fprintf-posix.m4: New file.
59447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
59448         REPLACE_FPRINTF.
59449         * lib/stdio_.h (fprintf): New declaration.
59450         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
59451         REPLACE_FPRINTF.
59452
59453 2007-03-08  Bruno Haible  <bruno@clisp.org>
59454
59455         * modules/vfprintf-posix-tests: New file.
59456         * tests/test-vfprintf-posix.sh: New file.
59457         * tests/test-vfprintf-posix.c: New file.
59458         * tests/test-fprintf-posix.h: New file.
59459         * tests/test-fprintf-posix.out: New file.
59460
59461         * modules/vfprintf-posix: New file.
59462         * lib/vfprintf.c: New file.
59463         * m4/vfprintf-posix.m4: New file.
59464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
59465         REPLACE_VFPRINTF.
59466         * lib/stdio_.h (vfprintf): New declaration.
59467         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
59468         REPLACE_VFPRINTF.
59469
59470 2007-03-08  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
59473
59474 2007-03-08  Bruno Haible  <bruno@clisp.org>
59475
59476         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
59477         instead of 'expr' invocations.
59478         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59479         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59480         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59481         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59482         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59483         Suggested by Paul Eggert.
59484
59485 2007-03-08  Bruno Haible  <bruno@clisp.org>
59486
59487         * modules/fseterr-tests: New file.
59488         * tests/test-fseterr.c: New file.
59489
59490         * modules/fseterr: New file.
59491         * lib/fseterr.h: New file.
59492         * lib/fseterr.c: New file.
59493
59494 2007-03-08  Bruno Haible  <bruno@clisp.org>
59495
59496         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
59497         * lib/getopt_.h: Likewise.
59498         * lib/mbswidth.h: Likewise.
59499         * lib/setenv.h: Likewise.
59500         * lib/vasnprintf.h: Likewise.
59501         * lib/vasprintf.h: Likewise.
59502         * lib/verror.h: Likewise.
59503         * lib/xsetenv.h: Likewise.
59504         * lib/xvasprintf.h: Likewise.
59505
59506 2007-03-08  Jim Meyering  <jim@meyering.net>
59507
59508         * users.txt: Add parted.
59509
59510         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
59511
59512 2007-03-07  Bruno Haible  <bruno@clisp.org>
59513
59514         * m4/printf.m4: Make the shell script snippets copy&pastable.
59515
59516 2007-03-02  Bruno Haible  <bruno@clisp.org>
59517
59518         * lib/netinet_in_.h: New file.
59519         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
59520         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
59521         * modules/netinet_in (Files): Add lib/netinet_in_.h.
59522         (Depends-on): Add absolute-header.
59523         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
59524         into netinet/in.h.
59525
59526 2007-03-03  Bruno Haible  <bruno@clisp.org>
59527
59528         * lib/sys_select_.h: New file.
59529         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
59530         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
59531         * modules/sys_select (Files): Add lib/sys_select_.h.
59532         (Depends-on): Add absolute-header.
59533         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
59534         into sys/select.h.
59535
59536 2007-03-02  Bruno Haible  <bruno@clisp.org>
59537
59538         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
59539         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
59540         values.
59541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
59542         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
59543         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
59544         * modules/sys_socket (Depends-on): Add absolute-header.
59545         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
59546         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
59547         (Include): Remove requirement of inclusion of <sys/types.h>.
59548
59549 2007-03-02  Bruno Haible  <bruno@clisp.org>
59550
59551         * lib/byteswap_.h (bswap_32): Fix formula.
59552
59553 2007-03-06  Bruno Haible  <bruno@clisp.org>
59554
59555         * modules/sprintf-posix-tests: New file.
59556         * tests/test-sprintf-posix.c: New file.
59557
59558         * modules/sprintf-posix: New file.
59559         * lib/sprintf.c: New file.
59560         * m4/sprintf-posix.m4: New file.
59561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
59562         REPLACE_SPRINTF.
59563         * lib/stdio_.h (sprintf): New declaration.
59564         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
59565         REPLACE_SPRINTF.
59566
59567 2007-03-06  Bruno Haible  <bruno@clisp.org>
59568
59569         * modules/vsprintf-posix-tests: New file.
59570         * tests/test-vsprintf-posix.c: New file.
59571         * tests/test-sprintf-posix.h: New file.
59572
59573         * modules/vsprintf-posix: New file.
59574         * lib/vsprintf.c: New file.
59575         * m4/vsprintf-posix.m4: New file.
59576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
59577         REPLACE_VSPRINTF.
59578         * lib/stdio_.h (vsprintf): New declaration.
59579         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
59580         REPLACE_VSPRINTF.
59581
59582 2007-03-06  Bruno Haible  <bruno@clisp.org>
59583
59584         * modules/vsnprintf (Depend-on): Remove minmax.
59585
59586 2007-03-06  Bruno Haible  <bruno@clisp.org>
59587
59588         * modules/snprintf-posix-tests: New file.
59589         * tests/test-snprintf-posix.c: New file.
59590
59591         * modules/snprintf-posix: New file.
59592         * m4/snprintf-posix.m4: New file.
59593         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
59594         gl_FUNC_SNPRINTF.
59595         (gl_FUNC_SNPRINTF): Invoke it.
59596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
59597         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
59598         is set.
59599         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
59600
59601 2007-03-06  Bruno Haible  <bruno@clisp.org>
59602
59603         * modules/vsnprintf-posix-tests: New file.
59604         * tests/test-vsnprintf-posix.c: New file.
59605         * tests/test-snprintf-posix.h: New file.
59606
59607         * modules/vsnprintf-posix: New file.
59608         * m4/vsnprintf-posix.m4: New file.
59609         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
59610         gl_FUNC_VSNPRINTF.
59611         (gl_FUNC_VSNPRINTF): Invoke it.
59612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
59613         * lib/stdio_.h (vsnprintf): Define as a replacement if
59614         REPLACE_VSNPRINTF is set.
59615         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
59616
59617 2007-03-06  Bruno Haible  <bruno@clisp.org>
59618
59619         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
59620         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
59621
59622 2007-03-06  Bruno Haible  <bruno@clisp.org>
59623
59624         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
59625         (asinl): Declare also if HAVE_DECL_ASINL is set.
59626         (atanl): Declare also if HAVE_DECL_ATANL is set.
59627         (ceill): Declare also if HAVE_DECL_CEILL is set.
59628         (cosl): Declare also if HAVE_DECL_COSL is set.
59629         (expl): Declare also if HAVE_DECL_EXPL is set.
59630         (floorl): Declare also if HAVE_DECL_FLOORL is set.
59631         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
59632         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
59633         (logl): Declare also if HAVE_DECL_LOGL is set.
59634         (sinl): Declare also if HAVE_DECL_SINL is set.
59635         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
59636         (tanl): Declare also if HAVE_DECL_TANL is set.
59637         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
59638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
59639         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
59640         declaration of frexpl, ldexpl.
59641         * modules/printf-frexpl (Depends-on): Add math.
59642         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
59643
59644 2007-03-05  Bruno Haible  <bruno@clisp.org>
59645
59646         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
59647         frexpl and ldexpl are declared.
59648         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
59649
59650 2007-03-05  Bruno Haible  <bruno@clisp.org>
59651
59652         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
59653         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
59654
59655 2007-03-05  Bruno Haible  <bruno@clisp.org>
59656
59657         * lib/stdio_.h: Include <stddef.h>.
59658
59659 2007-03-05  Bruno Haible  <bruno@clisp.org>
59660
59661         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
59662
59663 2007-03-05  Bruno Haible  <bruno@clisp.org>
59664
59665         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59666         NetBSD 4, from Ralf Wildenhues.
59667
59668 2007-03-04  Bruno Haible  <bruno@clisp.org>
59669
59670         * lib/vasprintf.h: Update #if logic for the case when the functions
59671         exist but are overridden.
59672
59673 2007-03-04  Bruno Haible  <bruno@clisp.org>
59674
59675         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59676         implementations: glibc-2.4 and MacOS X 10.3.
59677         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59678         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59679         * tests/test-vasprintf-posix.c (test_function): Likewise.
59680
59681 2007-03-04  Bruno Haible  <bruno@clisp.org>
59682
59683         * modules/vasprintf-posix-tests: New file.
59684         * tests/test-vasprintf-posix.c: New file.
59685
59686         * modules/vasprintf-posix: New file.
59687         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59688         defined.
59689         * m4/vasprintf-posix.m4: New file.
59690         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59691         gl_FUNC_VASPRINTF.
59692         (gl_FUNC_VASPRINTF): Invoke it.
59693         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59694         here.
59695         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59696
59697 2007-03-04  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59700         REPLACE_GETTIMEOFDAY.
59701         * modules/sys_time (Makefile.am): Likewise.
59702         * m4/sys_time_h.m4: Likewise.
59703         * m4/gettimeofday.m4: Likewise.
59704
59705 2007-03-04  Bruno Haible  <bruno@clisp.org>
59706
59707         * modules/vasnprintf-posix-tests: New file.
59708         * tests/test-vasnprintf-posix.c: New file.
59709
59710         * modules/vasnprintf-posix: New file.
59711         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59712         printf-frexpl.h.
59713         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59714         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59715         REPLACE_VASNPRINTF is defined.
59716         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59717         gl_FUNC_VASNPRINTF.
59718         (gl_FUNC_VASNPRINTF): Invoke it.
59719         * m4/vasnprintf-posix.m4: New file.
59720         * m4/printf.m4: New file.
59721
59722 2007-03-04  Bruno Haible  <bruno@clisp.org>
59723
59724         Compile progreloc.c only if --enable-relocatable is specified.
59725         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59726         if --enable-relocatable was specified.
59727         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59728         lib_SOURCES.
59729
59730 2007-03-04  Jim Meyering  <jim@meyering.net>
59731
59732         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59733         Use it consistently, rather than enumerating errno constants.
59734
59735 2007-03-04  Bruno Haible  <bruno@clisp.org>
59736
59737         * modules/xvasprintf-tests: New file.
59738         * tests/test-xvasprintf.c: New file.
59739
59740         * modules/vasprintf-tests: New file.
59741         * tests/test-vasprintf.c: New file.
59742
59743         * modules/vasnprintf-tests: New file.
59744         * tests/test-vasnprintf.c: New file.
59745
59746         * modules/vsnprintf-tests: New file.
59747         * tests/test-vsnprintf.c: New file.
59748
59749         * modules/snprintf-tests: New file.
59750         * tests/test-snprintf.c: New file.
59751
59752 2007-03-04  Bruno Haible  <bruno@clisp.org>
59753
59754         Compile relocatable.c only if --enable-relocatable is specified.
59755         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59756         gl_RELOCATABLE_LIBRARY.
59757         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59758         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59759         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59760         gl_RELOCATABLE_LIBRARY.
59761         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59762         (Makefile.am): Remove lib_SOURCES.
59763         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59764         gl_RELOCATABLE_LIBRARY.
59765         (Makefile.am): Remove lib_SOURCES.
59766         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59767         always.
59768         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59769         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59770
59771 2007-03-04  Bruno Haible  <bruno@clisp.org>
59772
59773         * modules/argmatch-tests: New file.
59774         * tests/test-argmatch.c: New file.
59775
59776         * tests/test-allocsa.c (main): Halve the number of loop runs.
59777
59778         * modules/alloca-opt-tests: New file.
59779         * tests/test-alloca-opt.c: New file.
59780
59781 2007-03-04  Jim Meyering  <jim@meyering.net>
59782
59783         Work around difference between Linux ACLs and Solaris 10 ZFS.
59784         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59785         for EINVAL.
59786
59787 2007-03-03  Bruno Haible  <bruno@clisp.org>
59788
59789         * modules/relocatable-prog (Depends-on): Add back progreloc's
59790         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59791
59792 2007-03-03  Bruno Haible  <bruno@clisp.org>
59793
59794         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59795         * modules/relocatable-lib: New file.
59796
59797 2007-03-03  Bruno Haible  <bruno@clisp.org>
59798
59799         * modules/relocatable-prog: Renamed from modules/relocatable.
59800         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59801
59802 2007-03-03  Bruno Haible  <bruno@clisp.org>
59803
59804         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59805         m4/relocatable-lib.m4.
59806         (Depends-on): Remove 'relocatable'.
59807         (configure.ac): Add gl_RELOCATABLE_NOP.
59808
59809 2007-03-03  Bruno Haible  <bruno@clisp.org>
59810
59811         * modules/relocatable-prog-wrapper: New file.
59812         * modules/relocatable (Depends-on): Add it. Remove all other
59813         dependencies except progname.
59814         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59815
59816         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59817         (gl_FUNC_STRERROR): Nop.
59818         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59819
59820         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59821         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59822
59823         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59824         (gl_FUNC_READLINK): Update.
59825
59826         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59827
59828 2007-03-03  Bruno Haible  <bruno@clisp.org>
59829
59830         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59831         * modules/xreadlink (Depends-on): Add unistd.
59832         * modules/xreadlink-with-size (Depends-on): Likewise.
59833
59834 2007-03-03  Bruno Haible  <bruno@clisp.org>
59835
59836         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59837         extracted from gt_FUNC_SETENV.
59838         (gt_FUNC_SETENV): Remove macro.
59839         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59840         remove gt_FUNC_SETENV.
59841
59842 2007-03-03  Bruno Haible  <bruno@clisp.org>
59843
59844         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59845         ENABLE_RELOCATABLE here.
59846         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59847
59848 2007-03-03  Bruno Haible  <bruno@clisp.org>
59849
59850         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59851         * tests/test-rbtreehash_list.c: Include progname.h.
59852         (main): Call set_program_name.
59853
59854         * modules/rbtree-oset-tests (Depends-on): Add progname.
59855         * tests/test-rbtree_oset.c: Include progname.h.
59856         (main): Call set_program_name.
59857
59858         * modules/rbtree-list-tests (Depends-on): Add progname.
59859         * tests/test-rbtree_list.c: Include progname.h.
59860         (main): Call set_program_name.
59861
59862         * modules/linked-list-tests (Depends-on): Add progname.
59863         * tests/test-linked_list.c: Include progname.h.
59864         (main): Call set_program_name.
59865
59866 2007-03-03  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59869         All uses of __restrict changed to _Restrict_.
59870         * lib/glob_.h (__restrict): Remove macro.
59871
59872 2007-03-02  Bruno Haible  <bruno@clisp.org>
59873
59874         * modules/gettext (configure.ac): Require gettext infrastructure
59875         from version 0.16.1.
59876
59877 2007-03-02  Bruno Haible  <bruno@clisp.org>
59878
59879         * modules/linkedhash-list-tests (Depends-on): Add progname.
59880         * tests/test-linkedhash_list.c: Include progname.h.
59881         (main): Call set_program_name.
59882
59883         * modules/carray-list-tests (Depends-on): Add progname.
59884         * tests/test-carray_list.c: Include progname.h.
59885         (main): Call set_program_name.
59886
59887         * modules/avltreehash-list-tests (Depends-on): Add progname.
59888         * tests/test-avltreehash_list.c: Include progname.h.
59889         (main): Call set_program_name.
59890
59891         * modules/avltree-oset-tests (Depends-on): Add progname.
59892         * tests/test-avltree_oset.c: Include progname.h.
59893         (main): Call set_program_name.
59894
59895         * modules/avltree-list-tests (Depends-on): Add progname.
59896         * tests/test-avltree_list.c: Include progname.h.
59897         (main): Call set_program_name.
59898
59899         * modules/array-oset-tests (Depends-on): Add progname.
59900         * tests/test-array_oset.c: Include progname.h.
59901         (main): Call set_program_name.
59902
59903         * modules/array-list-tests (Depends-on): Add progname.
59904         * tests/test-array_list.c: Include progname.h.
59905         (main): Call set_program_name.
59906
59907         * modules/argp-tests (Depends-on): Add progname.
59908         * tests/test-argp.c: Include argp.h first. Include progname.h.
59909         (main): Call set_program_name.
59910
59911 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         * doc/gnulib-tool.texi (Initial import): Reword description of
59914         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59915         limited effect even if defined after the first system include.
59916
59917 2007-03-01  Bruno Haible  <bruno@clisp.org>
59918
59919         * build-aux/config.libpath: Update to libtool-1.5.22.
59920         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59921
59922 2007-03-01  Bruno Haible  <bruno@clisp.org>
59923
59924         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59925         foo_CFLAGS.
59926         Reported by Ralf Wildenhues.
59927
59928 2007-03-01  Bruno Haible  <bruno@clisp.org>
59929
59930         * build-aux/install-reloc: Remove object files left over by some
59931         compilers.
59932         Reported by Ralf Wildenhues.
59933
59934 2007-03-01  Bruno Haible  <bruno@clisp.org>
59935
59936         * build-aux/install-reloc: Break long lines.
59937
59938 2007-03-01  Bruno Haible  <bruno@clisp.org>
59939
59940         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59941         Reported by Ralf Wildenhues.
59942
59943 2007-03-01  Bruno Haible  <bruno@clisp.org>
59944
59945         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59946         include ordering constraints.
59947
59948 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59949
59950         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59951         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59952         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59953         as another example.
59954         * lib/time_.h: Fix misspelling.
59955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59956         Require gl_HEADER_TIME_H_DEFAULTS.
59957         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59958         * m4/time_r.m4 (gl_TIME_R): Likewise.
59959         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59960
59961 2007-03-01  Bruno Haible  <bruno@clisp.org>
59962
59963         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59964         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59965
59966 2007-03-01  Jim Meyering  <jim@meyering.net>
59967
59968         * modules/xreadlink (Maintainer): Add my name.
59969         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59970
59971 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59972             Bruno Haible  <bruno@clisp.org>
59973
59974         * build-aux/install-reloc: Compile also c-ctype.c.
59975         * build-aux/relocatable.sh.in: New file.
59976         * doc/relocatable.texi: New file.
59977         * doc/relocatable-maint.texi: New file.
59978         * doc/gnulib.texi: Include relocatable-maint.texi.
59979         * lib/progreloc.c: Include unistd.h unconditionally.
59980         * lib/relocwrapper.c: Include unistd.h unconditionally.
59981         Include c-ctype.h.
59982         (add_dotbin): Use c_tolower.
59983         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59984         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59985         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59986         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59987         to m4/relocatable-lib.m4.
59988         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59989         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59990         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59991         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59992         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59993         * modules/relocatable: New file.
59994         * modules/relocatable-lib: New file.
59995         * modules/relocatable-script: New file.
59996
59997 2007-02-28  Bruno Haible  <bruno@clisp.org>
59998
59999         Import --enable-relocatable infrastructure.
60000         * build-aux/config.libpath: New file, from GNU gettext.
60001         * build-aux/install-reloc: New file, from GNU gettext.
60002         * build-aux/reloc-ldflags: New file, from GNU gettext.
60003         * lib/relocatable.h: New file, from GNU gettext.
60004         * lib/relocatable.c: New file, from GNU gettext.
60005         * lib/relocwrapper.c: New file, from GNU gettext.
60006         * m4/relocatable.m4: New file, from GNU gettext.
60007
60008 2007-02-28  Bruno Haible  <bruno@clisp.org>
60009
60010         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
60011
60012         * modules/xreadlink: New file, from GNU gettext with modifications.
60013         * lib/xreadlink.c: New file, from GNU gettext.
60014         * lib/xreadlink.h: Add comments.
60015         (xreadlink): New declaration.
60016
60017         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
60018         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
60019         lib/xreadlink-with-size.c.
60020         (configure.ac): Remove gl_XREADLINK invocation.
60021         (Makefile.am): Augment lib_SOURCES.
60022         * m4/xreadlink.m4: Remove file.
60023         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
60024         (xreadlink_with_size): Renamed from xreadink.
60025         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
60026         * modules/canonicalize (Depends-on): Replace xreadlink with
60027         xreadlink-with-size.
60028         * lib/canonicalize.c (canonicalize_filename_mode): Update.
60029
60030 2007-02-25  Jim Meyering  <jim@meyering.net>
60031
60032         * build-aux/announce-gen: When complaining about excess arguments,
60033         list them.
60034
60035 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60036
60037         * README: Document signed integer overflow situation more
60038         accurately.
60039
60040 2007-02-25  Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
60043         'a' or 'A' conversion.
60044
60045 2007-02-25  Bruno Haible  <bruno@clisp.org>
60046
60047         * modules/filename: Renamed from modules/pathname.
60048         (Files): Replace lib/pathname.h with lib/filename.h. Replace
60049         lib/concatpath.c with lib/concat-filename.c.
60050         (Makefile.am): Update.
60051         (Include): Replace pathname.h with filename.h.
60052         * lib/filename.h: Renamed from lib/pathname.h.
60053         (concatenated_filename): Renamed from concatenated_pathname.
60054         * lib/concat-filename.c: Renamed from lib/concatpath.c.
60055         (concatenated_filename): Renamed from concatenated_pathname.
60056         * lib/findprog.c: Include filename.h instead of pathname.h.
60057         (find_in_path): Update.
60058         * lib/javacomp.c: Include filename.h instead of pathname.h.
60059         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
60060         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
60061         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
60062         is_oldgcj_14_13_usable, is_javac_usable): Update.
60063         * lib/javaexec.c: Include filename.h instead of pathname.h.
60064         (execute_java_class): Update.
60065         * modules/findprog: Update.
60066         * modules/javacomp: Update.
60067         * modules/javaexec: Update.
60068         * MODULES.html.sh (File system functions): Add 'filename', remove
60069         'pathname'.
60070
60071 2007-02-25  Bruno Haible  <bruno@clisp.org>
60072
60073         * modules/printf-frexpl-tests: New file.
60074         * tests/test-printf-frexpl.c: New file.
60075
60076         * modules/printf-frexpl: New file.
60077         * lib/printf-frexpl.h: New file.
60078         * lib/printf-frexpl.c: New file.
60079         * m4/printf-frexpl.m4: New file.
60080
60081 2007-02-25  Bruno Haible  <bruno@clisp.org>
60082
60083         * modules/printf-frexp-tests: New file.
60084         * tests/test-printf-frexp.c: New file.
60085
60086         * modules/printf-frexp: New file.
60087         * lib/printf-frexp.h: New file.
60088         * lib/printf-frexp.c: New file.
60089         * m4/printf-frexp.m4: New file.
60090
60091 2007-02-25  Bruno Haible  <bruno@clisp.org>
60092
60093         Assume automake >= 1.10 for the tests.
60094         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
60095         * modules/arctwo-tests: Likewise.
60096         * modules/argp-tests: Likewise.
60097         * modules/avltree-list-tests: Likewise.
60098         * modules/avltree-oset-tests: Likewise.
60099         * modules/avltreehash-list-tests: Likewise.
60100         * modules/carray-list-tests: Likewise.
60101         * modules/crc-tests: Likewise.
60102         * modules/des-tests: Likewise.
60103         * modules/gc-arcfour-tests: Likewise.
60104         * modules/gc-arctwo-tests: Likewise.
60105         * modules/gc-des-tests: Likewise.
60106         * modules/gc-hmac-md5-tests: Likewise.
60107         * modules/gc-hmac-sha1-tests: Likewise.
60108         * modules/gc-md2-tests: Likewise.
60109         * modules/gc-md4-tests: Likewise.
60110         * modules/gc-md5-tests: Likewise.
60111         * modules/gc-pbkdf2-sha1-tests: Likewise.
60112         * modules/gc-rijndael-tests: Likewise.
60113         * modules/gc-sha1-tests: Likewise.
60114         * modules/gc-tests: Likewise.
60115         * modules/getaddrinfo-tests: Likewise.
60116         * modules/hmac-md5-tests: Likewise.
60117         * modules/hmac-sha1-tests: Likewise.
60118         * modules/linked-list-tests: Likewise.
60119         * modules/linkedhash-list-tests: Likewise.
60120         * modules/lock-tests: Likewise.
60121         * modules/md2-tests: Likewise.
60122         * modules/md4-tests: Likewise.
60123         * modules/md5-tests: Likewise.
60124         * modules/rbtree-list-tests: Likewise.
60125         * modules/rbtree-oset-tests: Likewise.
60126         * modules/rbtreehash-list-tests: Likewise.
60127         * modules/read-file-tests: Likewise.
60128         * modules/rijndael-tests: Likewise.
60129         * modules/stdint-tests: Likewise.
60130         * modules/tls-tests: Likewise.
60131
60132 2007-02-24  Bruno Haible  <bruno@clisp.org>
60133
60134         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
60135         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
60136         function; instead check whether isnan with a double argument links.
60137         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
60138         function; instead check whether isnan with a 'long double' argument
60139         links.
60140         Reported by Eric Blake <ebb9@byu.net>.
60141
60142 2007-02-24  Bruno Haible  <bruno@clisp.org>
60143
60144         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
60145         defined.
60146         * lib/isnanl.c: Remove all code. Just include isnan.c.
60147         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
60148
60149 2007-02-25  Jim Meyering  <jim@meyering.net>
60150
60151         Avoid conflicting types for 'unsetenv' on FreeBSD.
60152         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
60153         conflicting with FreeBSD's (5.0 and 6.1) function declaration
60154         in stdlib.h.
60155
60156 2007-02-24  Bruno Haible  <bruno@clisp.org>
60157
60158         * modules/isnanl-nolibm-tests: New file.
60159         * tests/test-isnanl.c: New file.
60160
60161         * modules/isnanl-nolibm: New file.
60162         * lib/isnanl.h: New file.
60163         * lib/isnanl.c: New file.
60164         * m4/isnanl.m4: New file.
60165
60166 2007-02-24  Bruno Haible  <bruno@clisp.org>
60167
60168         * modules/isnan-nolibm-tests: New file.
60169         * tests/test-isnan.c: New file.
60170
60171         * modules/isnan-nolibm: New file.
60172         * lib/isnan.h: New file.
60173         * lib/isnan.c: New file.
60174         * m4/isnan.m4: New file.
60175
60176 2007-02-24  Bruno Haible  <bruno@clisp.org>
60177
60178         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
60179         assume that an exponent fits in 20 bits.
60180
60181 2007-02-24  Jim Meyering  <jim@meyering.net>
60182
60183         * m4/regex.m4: Update the description of the configure-time option,
60184         --without-included-regex, to state accurately what the defaults are,
60185         and perhaps to give people an idea why using this option is risky.
60186
60187 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
60190         loops on small arguments.  This attempts to avoid the problem
60191         Bruno Haible reported for AIX 4.3.2 in
60192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
60193
60194 2007-02-23  Bruno Haible  <bruno@clisp.org>
60195
60196         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
60197         Needed for help2man.
60198
60199 2007-02-23  Karl Berry  <karl@gnu.org>
60200
60201         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
60202         exists, foo.h should be cvs-ignored, not committed.
60203
60204 2007-02-23  Eric Blake  <ebb9@byu.net>
60205
60206         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
60207         * lib/stat-time.h (includes): Likewise.
60208         * lib/utimecmp.c (includes): Likewise.
60209         * lib/utimens.h (includes): Likewise.
60210         * lib/getdate.y (includes): Also include "timespec.h" for use
60211         internal to the module.
60212         * modules/utimens (Depends-on): Revert yesterday's patch.
60213         * modules/nanosleep (Depends-on): Add missing dependency.
60214
60215 2007-02-22  Bruno Haible  <bruno@clisp.org>
60216
60217         * lib/glob.c: Don't include getlogin_r.h.
60218
60219 2007-02-22  Jim Meyering  <jim@meyering.net>
60220
60221         * modules/utimens (Depends-on): Add timespec, required for
60222         utimens.h's inclusion of timespec.h.
60223
60224 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
60225
60226         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
60227         long unreadable paths in GNU/Linux.  Problem reported by Andreas
60228         Schwab in
60229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
60230         I'll try to think of a better way to fix the Solaris problem.
60231
60232         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
60233         like glibc; on Solaris 10, it fails with errno == EINVAL.
60234         POSIX says the behavior is unspecified if the first argument is NULL,
60235         so play it safe and never pass NULL to the system getcwd.
60236
60237 2007-02-21  Jim Meyering  <jim@meyering.net>
60238
60239         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
60240         of gettimeofday.  It would conflict with the one now always
60241         provided via sys_time_.h.  Reported by Matthew Woehlke, as
60242         an IRIX 6.5 build failure.
60243
60244 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60245
60246         Minor fixups to port to Solaris 10 with Sun C 5.8.
60247         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
60248         * modules/getcwd (Depends-on): Add dirfd.
60249         * lib/putenv.c (putenv): #undef it.
60250         (rpl_putenv): New decl.
60251         (malloc, free): Include <stdlib.h> rather than prototyping separately.
60252
60253 2007-02-20  Bruno Haible  <bruno@clisp.org>
60254
60255         * modules/stdio-tests: New file.
60256         * tests/test-stdio.c: New file.
60257
60258         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
60259         (Depends-on): Add stdio.
60260         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60261         (Include): Use <stdio.h> instead of vsnprintf.h.
60262         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60263         HAVE_DECL_VSNPRINTF.
60264         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
60265
60266         * modules/snprintf (Files): Remove lib/snprintf.h.
60267         (Depends-on): Add stdio.
60268         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60269         (Include): Use <stdio.h> instead of snprintf.h.
60270         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60271         HAVE_DECL_SNPRINTF.
60272         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
60273         * lib/getaddrinfo.c: Likewise.
60274
60275         * modules/stdio: New file.
60276         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
60277         * lib/snprintf.h: Remove file.
60278         * lib/vsnprintf.h: Remove file.
60279         * lib/.cppi-disable: Remove snprintf.h.
60280         * m4/stdio_h.m4: New file.
60281         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
60282
60283 2007-02-20  Jim Meyering  <jim@meyering.net>
60284
60285         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
60286         used by e.g., mingw.  From Bruno Haible.
60287
60288 2007-02-19  Bruno Haible  <bruno@clisp.org>
60289
60290         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
60291         warnings.
60292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60293
60294 2007-02-19  Bruno Haible  <bruno@clisp.org>
60295
60296         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
60297         from mingw users.
60298
60299 2007-02-19  Bruno Haible  <bruno@clisp.org>
60300
60301         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
60302         warnings.
60303         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
60304
60305 2007-02-19  Jim Meyering  <jim@meyering.net>
60306
60307         Don't use FD after a successful "fdopendir (fd)".
60308         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
60309         Reset it by calling dirfd on the just-obtained DIR*.
60310
60311         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
60312         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
60313
60314 2007-02-18  Bruno Haible  <bruno@clisp.org>
60315
60316         * lib/readlink.c: Include <unistd.h>.
60317         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
60318         HAVE_READLINK.
60319         * modules/readlink (Depends-on): Add unistd.
60320         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60321         (Include): Add <unistd.h>.
60322
60323         * lib/getlogin_r.h: Remove file.
60324         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
60325         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
60326         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
60327         HAVE_DECL_GETLOGIN_R.
60328         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
60329         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60330         (Include): Use <unistd.h> instead of getlogin_r.h.
60331
60332         * lib/getcwd.h: Remove file.
60333         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
60334         * lib/xgetcwd.c: Likewise.
60335         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
60336         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
60337         * modules/getcwd (Files): Remove lib/getcwd.h.
60338         (Depends-on): Add unistd.
60339         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60340         (Include): Use <unistd.h> instad of getcwd.h.
60341
60342         * lib/ftruncate.c: Include <unistd.h> first.
60343         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
60344         Set HAVE_FTRUNCATE.
60345         * modules/ftruncate (Depends-on): Add unistd.
60346         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60347
60348         * lib/fchdir.c: Include <unistd.h> first.
60349         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
60350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
60351         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
60352         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60353         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
60354
60355         * lib/dup2.c: Include <unistd.h> first.
60356         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
60357         HAVE_DUP2.
60358         * modules/dup2 (Depends-on): Add unistd.
60359         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60360
60361         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
60362         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
60363         REPLACE_CHOWN. Don't define chown as a macro here.
60364         * modules/chown (Depends-on): Add unistd.
60365         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60366
60367         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
60368         Add definition for GL_LINK_WARNING.
60369         (chown, dup2): New declarations.
60370         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
60371         link warning.
60372         (ftruncate): New declaration.
60373         (getcwd): New declaration, taken from old getcwd.h.
60374         (getlogin_r): New declaration, taken from old getlogin_r.h.
60375         (readlink): New declaration.
60376         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
60377         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
60378         (gl_PREREQ_UNISTD): Remove macro.
60379         (gl_UNISTD_MODULE_INDICATOR): New macro.
60380         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
60381         many new variables. Don't set UNISTD_H.
60382         * modules/unistd (Description): Change.
60383         (Depends-on): Add link-warning.
60384         (configure.ac): Update.
60385         (Makefile.am): Create unistd.h always. Substitute many new variables
60386         into it.
60387
60388 2007-02-18  Bruno Haible  <bruno@clisp.org>
60389
60390         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
60391         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
60392         HAVE_GETSUBOPT.
60393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
60394         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
60395         * lib/getsubopt.h: Remove file.
60396         * modules/getsubopt (Files): Remove lib/getsubopt.h.
60397         (Depends-on): Add stdlib.
60398         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60399         (Includes): Use <stdlib.h> instead of getsubopt.h.
60400         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
60401         Set HAVE_GETSUBOPT.
60402         * lib/getsubopt.c: Don't include getsubopt.h.
60403
60404 2007-02-18  Bruno Haible  <bruno@clisp.org>
60405
60406         * modules/fchdir (Depends-on): Add dup2.
60407
60408 2007-02-18  Bruno Haible  <bruno@clisp.org>
60409
60410         * lib/stdlib_.h: Handle glibc's special invocation convention
60411         specially.
60412
60413 2007-02-18  Bruno Haible  <bruno@clisp.org>
60414
60415         * modules/stdlib-tests: New file.
60416         * tests/test-stdlib.c: New file.
60417
60418         * modules/mkstemp (Files): Remove lib/mkstemp.h.
60419         (Depends-on): Add stdlib.
60420         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60421         (Includes): Use <stdlib.h> instead of mkstemp.h.
60422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60423         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
60424         * lib/mkstemp.c: Don't include mkstemp.h.
60425         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
60426         * lib/stdlib--.h: Don't include mkstemp.h.
60427
60428         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
60429         (Depends-on): Add stdlib.
60430         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60431         (Includes): Use <stdlib.h> instead of mkdtemp.h.
60432         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60433         HAVE_MKDTEMP.
60434         * lib/mkdtemp.c: Don't include mkdtemp.h.
60435         * lib/clean-temp.c: Don't include mkdtemp.h.
60436
60437         * modules/exit (Files): Remove lib/exit.h.
60438         (Depends-on): Add stdlib.
60439         (Makefile.am): Remove lib_SOURCES.
60440         (Include): Use <stdlib.h> instead of exit.h.
60441         * lib/argmatch.c: Don't include exit.h.
60442         * lib/execute.c: Likewise.
60443         * lib/pagealign_alloc.c: Likewise.
60444         * lib/pipe.c: Likewise.
60445         * lib/wait-process.c: Likewise.
60446         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
60447         * lib/exitfail.c: Likewise.
60448         * lib/savewd.c: Likewise.
60449         * lib/xsetenv.c: Likewise.
60450
60451         * modules/stdlib: New file.
60452         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
60453         and extra comments about mkstemp().
60454         * lib/exit.h: Remove file.
60455         * lib/mkdtemp.h: Remove file.
60456         * lib/mkstemp.h: Remove file.
60457         * m4/stdlib_h.m4: New file.
60458         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
60459
60460 2007-02-18  Bruno Haible  <bruno@clisp.org>
60461
60462         * modules/math-tests: New file.
60463         * tests/test-math.c: New file.
60464
60465         * modules/math: New file.
60466         * modules/mathl (Files): Remove lib/mathl.h.
60467         (Depends-on): Add math.
60468         (Makefile.am): Don't mention mathl.h.
60469         (Include): Use <math.h> instead of mathl.h.
60470         * lib/math_.h: New file.
60471         * lib/mathl.h: Remove file.
60472         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
60473         mathl.h.
60474         * lib/asinl.c: Likewise.
60475         * lib/atanl.c: Likewise.
60476         * lib/ceill.c: Likewise.
60477         * lib/cosl.c: Likewise.
60478         * lib/expl.c: Likewise.
60479         * lib/floorl.c: Likewise.
60480         * lib/frexpl.c: Likewise.
60481         * lib/ldexpl.c: Likewise.
60482         * lib/logl.c: Likewise.
60483         * lib/sincosl.c: Likewise.
60484         * lib/sinl.c: Likewise.
60485         * lib/sqrtl.c: Likewise.
60486         * lib/tanl.c: Likewise.
60487         * lib/trigl.c: Likewise.
60488         * m4/math_h.m4: New file.
60489         * MODULES.html.sh (Mathematics): Add math.
60490
60491 2007-02-17  Bruno Haible  <bruno@clisp.org>
60492
60493         * modules/wctype-tests: New file.
60494         * tests/test-wctype.c: New file.
60495
60496         * modules/wchar-tests: New file.
60497         * tests/test-wchar.c: New file.
60498
60499         * modules/unistd-tests: New file.
60500         * tests/test-unistd.c: New file.
60501
60502         * modules/time-tests: New file.
60503         * tests/test-time.c: New file.
60504
60505         * modules/sysexits-tests: New file.
60506         * tests/test-sysexits.c: New file.
60507
60508         * modules/sys_time-tests: New file.
60509         * tests/test-sys_time.c: New file.
60510
60511         * modules/sys_stat-tests: New file.
60512         * tests/test-sys_stat.c: New file.
60513
60514         * modules/sys_socket-tests: New file.
60515         * tests/test-sys_socket.c: New file.
60516
60517         * modules/sys_select-tests: New file.
60518         * tests/test-sys_select.c: New file.
60519
60520         * modules/string-tests: New file.
60521         * tests/test-string.c: New file.
60522
60523         * modules/stdbool-tests: New file.
60524         * tests/test-stdbool.c: New file.
60525
60526         * modules/netinet_in-tests: New file.
60527         * tests/test-netinet_in.c: New file.
60528
60529         * modules/inttypes-tests: New file.
60530         * tests/test-inttypes.c: New file.
60531
60532         * modules/fcntl-tests: New file.
60533         * tests/test-fcntl.c: New file.
60534
60535         * modules/byteswap-tests: New file.
60536         * tests/test-byteswap.c: New file.
60537
60538         * modules/arpa_inet-tests: New file.
60539         * tests/test-arpa_inet.c: New file.
60540
60541 2007-02-17  Bruno Haible  <bruno@clisp.org>
60542
60543         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
60544         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
60545         if the corresponding module is not enabled. Emit link warnings if
60546         the function is used nevertheless.
60547         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
60548         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
60549         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
60550         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
60551         * modules/inttypes (Depends-on): Add link-warning.
60552         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60553         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
60554         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
60555         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
60556         * modules/imaxdiv (configure.ac): Likewise.
60557         * modules/strtoimax (configure.ac): Likewise.
60558         * modules/strtoumax (configure.ac): Likewise.
60559
60560 2007-02-17  Bruno Haible  <bruno@clisp.org>
60561
60562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
60563         gl_STRING_MODULE_INDICATOR_DEFAULTS.
60564         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
60565         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
60566
60567 2007-02-17  Bruno Haible  <bruno@clisp.org>
60568
60569         * modules/link-warning: New file.
60570         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
60571         * lib/string_.h (GL_LINK_WARNING): Remove definition.
60572         * modules/string (Depends-on): Add link-warning.
60573         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60574         string.h.
60575         * MODULES.html.sh (Support for building libraries and executables): Add
60576         link-warning.
60577
60578 2007-02-17  Bruno Haible  <bruno@clisp.org>
60579
60580         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
60581         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
60582         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
60583         long lines.
60584
60585 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
60586             Bruno Haible  <bruno@clisp.org>
60587
60588         * modules/tmpfile: New file.
60589         * lib/tmpfile.c: New file.
60590         * m4/tmpfile.m4: New file.
60591         * MODULES.html.sh (func_all_modules): New section "Input/output".
60592
60593 2007-02-15  Bruno Haible  <bruno@clisp.org>
60594
60595         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
60596         (supports_delete_on_close): New function.
60597         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
60598
60599 2007-02-14  Bruno Haible  <bruno@clisp.org>
60600
60601         * modules/mbspcasecmp-tests: New file.
60602         * tests/test-mbspcasecmp.sh: New file.
60603         * tests/test-mbspcasecmp.c: New file.
60604
60605         New module mbspcasecmp.
60606         * modules/mbspcasecmp: New file.
60607         * lib/mbspcasecmp.c: New file.
60608         * lib/string_.h (strncasecmp): Change warning message.
60609         (mbspcasecmp): New declaration.
60610         * m4/mbspcasecmp.m4: New file.
60611         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60612         GNULIB_MBSPCASECMP.
60613         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
60614         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
60615
60616 2007-02-14  Bruno Haible  <bruno@clisp.org>
60617
60618         * modules/mbsncasecmp-tests: New file.
60619         * tests/test-mbsncasecmp.sh: New file.
60620         * tests/test-mbsncasecmp.c: New file.
60621
60622         New module mbsncasecmp.
60623         * modules/mbsncasecmp: New file.
60624         * lib/mbsncasecmp.c: New file.
60625         * lib/string_.h (mbsncasecmp): New declaration.
60626         * m4/mbsncasecmp.m4: New file.
60627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60628         GNULIB_MBSNCASECMP.
60629         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
60630         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
60631
60632 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60633
60634         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
60635         Verify that it doesn't overlap with our flags.
60636         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
60637         do not have the desired effect in multibyte locales; instead, use
60638         mbscasecmp.
60639         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
60640         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
60641         we don't require GNU fnmatch ourselves (if our users require it, they
60642         should do so explicitly).
60643
60644         Fix regex code so it doesn't rely on strcasecmp.
60645         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
60646         Otherwise, include gnulib's langinfo.h.
60647         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
60648         undesirable behavior in non-C locales.  Instead, rely on localecharset.
60649         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
60650         * modules/regex (FILES): Remove m4/codeset.m4.
60651         (Depends-on): Add localcharset.  Remove strcase.
60652
60653 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60654
60655         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
60656         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60657
60658 2007-02-13  Bruno Haible  <bruno@clisp.org>
60659
60660         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
60661         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60662
60663 2007-02-12  Bruno Haible  <bruno@clisp.org>
60664
60665         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60666         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60667         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60668         time warning rather than a link error.
60669
60670 2007-02-12  Bruno Haible  <bruno@clisp.org>
60671
60672         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60673         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60675
60676 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60677
60678         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60679         args, not 2.
60680
60681 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60682
60683         New module 'time', so that apps can include <time.h> as per
60684         POSIX and GNU instead of separate include files like time_r.h
60685         and timegm.h.  This implementation tries out a simpler approach
60686         for replacing decls in standard include files (as compared to
60687         the string module), somewhat as an experiment.
60688
60689         * config/srclist.txt: Comment out mktime.c for now.
60690         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60691         since it doesn't apply any more.  Use generic wording instead.
60692         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60693         'time'.
60694         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60695         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60696         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60697         Don't include <sys/types.h>; no longer needed since we assume C89.
60698         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60699         * lib/strftime.c: Likewise.
60700         * lib/time_r.c: Likewise.
60701         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60702         * lib/nanosleep.c: Include <time.h> first, to check interface.
60703         * lib/strptime.c: Likewise.
60704         * lib/time_r.c: Likewise.
60705         * lib/timegm.c: Likewise.
60706         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60707         needed.
60708         * lib/timegm.c: Don't include timegm.h; no longer needed.
60709         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60710         time.h now handles any problems in that area.
60711         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60712         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60713         that time.h defines struct timespec.
60714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60715         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60716         handles that.
60717         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60718         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60719         needed.  Set REPLACE_LOCALTIME.
60720         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60721         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60722         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60723         nanosleep; time_h.m4 now does that.  Don't require
60724         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60725         module handles this now.
60726         * modules/getdate (Depends-on): Remove timespec.  Add time.
60727         * modules/nanosleep (Depends-on): Likewise.
60728         * modules/stat-time (Depends-on): Likewise.
60729         * modules/nanosleep (Include): Include time.h, not timespec.h.
60730         * modules/strptime (Files): Remove lib/strptime.h.
60731         (Depends-on): Add extensions, time.
60732         (Include): Include time.h, not strptime.h.
60733         * modules/time_r (Files): Remove lib/time_r.h.
60734         (Depends-on): Add time.
60735         (Include): Include time.h, not time_r.h.
60736         * modules/timegm: Likewise.
60737         * modules/timespec (Description): Now does timespec-related decls
60738         of our own, instead of struct timespec itself.
60739         (Depends-on): Add time; remove extensions.
60740         (Maintainer): Add self.
60741         * modules/utimecmp (Depends-on): Add time; remove timespec.
60742         * modules/utimens (Depends-on): Likewise.
60743         * modules/xnanosleep (Depends-on): Likewise.
60744
60745 2007-02-11  Bruno Haible  <bruno@clisp.org>
60746
60747         * lib/c-strstr.c: Include allocsa.h.
60748         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60749         * lib/c-strcasestr.c: Include allocsa.h.
60750         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60751         * lib/strcasestr.c: Include allocsa.h.
60752         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60753         * lib/mbsstr.c: Include allocsa.h.
60754         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60755         allocsa/freesa instead of malloc/free.
60756         * lib/mbscasestr.c: Include allocsa.h.
60757         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60758         allocsa/freesa instead of malloc/free.
60759         * modules/c-strstr (Depends-on): Add allocsa.
60760         * modules/c-strcasestr (Depends-on): Likewise.
60761         * modules/strcasestr (Depends-on): Likewise.
60762         * modules/mbsstr (Depends-on): Likewise.
60763         * modules/mbscasestr (Depends-on): Likewise.
60764
60765 2007-02-11  Bruno Haible  <bruno@clisp.org>
60766
60767         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60768
60769         * modules/mbsspn-tests: New file.
60770         * tests/test-mbsspn.sh: New file.
60771         * tests/test-mbsspn.c: New file.
60772
60773 2007-02-11  Bruno Haible  <bruno@clisp.org>
60774
60775         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60776
60777         * modules/mbspbrk-tests: New file.
60778         * tests/test-mbspbrk.sh: New file.
60779         * tests/test-mbspbrk.c: New file.
60780
60781 2007-02-11  Bruno Haible  <bruno@clisp.org>
60782
60783         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60784         unneeded cast.
60785
60786         * modules/mbscspn-tests: New file.
60787         * tests/test-mbscspn.sh: New file.
60788         * tests/test-mbscspn.c: New file.
60789
60790 2007-02-11  Bruno Haible  <bruno@clisp.org>
60791
60792         * modules/mbscasecmp-tests: New file.
60793         * tests/test-mbscasecmp.sh: New file.
60794         * tests/test-mbscasecmp.c: New file.
60795
60796 2007-02-11  Bruno Haible  <bruno@clisp.org>
60797
60798         Ensure O(n) worst-case complexity of mbscasestr.
60799         * lib/mbscasestr.c: Include stdbool.h.
60800         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60801         functions.
60802         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60803         the bookkeeping indicates that it's worth it.
60804         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60805
60806         * modules/mbscasestr-tests: New file.
60807         * tests/test-mbscasestr1.c: New file.
60808         * tests/test-mbscasestr2.sh: New file.
60809         * tests/test-mbscasestr2.c: New file.
60810         * tests/test-mbscasestr3.sh: New file.
60811         * tests/test-mbscasestr3.c: New file.
60812         * tests/test-mbscasestr4.sh: New file.
60813         * tests/test-mbscasestr4.c: New file.
60814         * m4/locale-tr.m4: New file.
60815
60816 2007-02-11  Bruno Haible  <bruno@clisp.org>
60817
60818         Ensure O(n) worst-case complexity of mbsstr.
60819         * lib/mbsstr.c: Include stdbool.h.
60820         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60821         functions.
60822         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60823         bookkeeping indicates that it's worth it.
60824         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60825
60826         * modules/mbsstr-tests: New file.
60827         * tests/test-mbsstr1.c: New file.
60828         * tests/test-mbsstr2.sh: New file.
60829         * tests/test-mbsstr2.c: New file.
60830         * tests/test-mbsstr3.sh: New file.
60831         * tests/test-mbsstr3.c: New file.
60832         * m4/locale-fr.m4: New file.
60833
60834 2007-02-11  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/mbsrchr.c (mbsrchr): Fix bug.
60837
60838         * modules/mbsrchr-tests: New file.
60839         * tests/test-mbsrchr.sh: New file.
60840         * tests/test-mbsrchr.c: New file.
60841
60842 2007-02-11  Bruno Haible  <bruno@clisp.org>
60843
60844         * lib/mbschr.c (mbschr): Fix bug.
60845
60846         * modules/mbschr-tests: New file.
60847         * tests/test-mbschr.sh: New file.
60848         * tests/test-mbschr.c: New file.
60849         * m4/locale-zh.m4: New file.
60850
60851 2007-02-11  Bruno Haible  <bruno@clisp.org>
60852
60853         Support for copying multibyte string iterators.
60854         * lib/mbiter.h: Include <string.h>.
60855         (mbiter_multi_copy): New function.
60856         (mbi_copy): New macro.
60857         * lib/mbuiter.h: Include <string.h>.
60858         (mbuiter_multi_copy): New function.
60859         (mbui_copy): New macro.
60860
60861 2007-02-11  Bruno Haible  <bruno@clisp.org>
60862
60863         New module mbslen.
60864         * modules/mbslen: New file.
60865         * lib/mbslen.c: New file.
60866         * lib/string_.h (mbslen): New declaration.
60867         * m4/mbslen.m4: New file.
60868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60869         GNULIB_MBSLEN.
60870         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60871         * MODULES.html.sh (Internationalization functions): Add mbslen.
60872
60873 2007-02-11  Bruno Haible  <bruno@clisp.org>
60874
60875         Ensure O(n) worst-case complexity of strcasestr substitute.
60876         * lib/strcasestr.c: Include stdbool.h.
60877         (knuth_morris_pratt): New function.
60878         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60879         bookkeeping indicates that it's worth it.
60880         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60881
60882         * modules/strcasestr-tests: New file.
60883         * tests/test-strcasestr.c: New file.
60884
60885 2007-02-11  Bruno Haible  <bruno@clisp.org>
60886
60887         Ensure O(n) worst-case complexity of c_strcasestr.
60888         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60889         (knuth_morris_pratt): New function.
60890         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60891         the bookkeeping indicates that it's worth it.
60892         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60893
60894         * modules/c-strcasestr-tests: New file.
60895         * tests/test-c-strcasestr.c: New file.
60896
60897 2007-02-11  Bruno Haible  <bruno@clisp.org>
60898
60899         Ensure O(n) worst-case complexity of c_strstr.
60900         * lib/c-strstr.c: Include stdbool.h, string.h.
60901         (knuth_morris_pratt): New function.
60902         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60903         bookkeeping indicates that it's worth it.
60904         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60905
60906         * lib/c-strstr.c: Complete rewrite for maintainability.
60907
60908         * modules/c-strstr-tests: New file.
60909         * tests/test-c-strstr.c: New file.
60910
60911 2007-02-11  Bruno Haible  <bruno@clisp.org>
60912
60913         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60914         5.2.1 and earlier, whereby \055 was treated just like the range
60915         delimiter '-'.
60916         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60917
60918 2007-02-08  Bruno Haible  <bruno@clisp.org>
60919
60920         * modules/regex (Depends-on): Add stdbool.
60921         Reported by Dalibor Topic <robilad@kaffe.org>.
60922
60923 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60926         Prefer returning from main to exiting from it.
60927         Remove unnecessary parens after sizeof.
60928
60929 2007-02-05  Bruno Haible  <bruno@clisp.org>
60930
60931         New module mbssep.
60932         * modules/mbssep: New file.
60933         * lib/mbssep.c: New file.
60934         * lib/string_.h (strsep): Add a conditional link warning.
60935         (mbssep): New declaration.
60936         * m4/mbssep.m4: New file.
60937         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60938         GNULIB_MBSSEP.
60939         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60940         * MODULES.html.sh (Internationalization functions): Add mbssep.
60941
60942 2007-02-05  Bruno Haible  <bruno@clisp.org>
60943
60944         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60945         Optimize search in case of 1 delimiter.
60946
60947 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60948
60949         * lib/acl.h: Include sys/types.h before sys/acl.h.
60950
60951 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60952
60953         Merge upstream fix for glibc bugzilla #3957:
60954
60955         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60956
60957         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60958         bit for RE_HAT_LISTS_NOT_NEWLINE.
60959         (build_charclass_op): Remove bogus comment.
60960
60961 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60962
60963         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60964
60965 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60966
60967         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60968         * lib/memmem.c [!defined _LIBC]: Include config.h.
60969
60970 2007-02-04  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60973         warning message.
60974
60975 2007-02-04  Bruno Haible  <bruno@clisp.org>
60976
60977         New module mbstok_r.
60978         * modules/mbstok_r: New file.
60979         * lib/mbstok_r.c: New file.
60980         * lib/string_.h (strtok_r): Change argument names to match the
60981         comments. Add a conditional link warning.
60982         (mbstok_r): New declaration.
60983         * m4/mbstok_r.m4: New file.
60984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60985         GNULIB_MBSTOK_R.
60986         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60987         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60988
60989 2007-02-04  Bruno Haible  <bruno@clisp.org>
60990
60991         New module mbsspn.
60992         * modules/mbsspn: New file.
60993         * lib/mbsspn.c: New file.
60994         * lib/string_.h (strspn): Add a conditional link warning.
60995         (mbsspn): New declaration.
60996         * m4/mbsspn.m4: New file.
60997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60998         GNULIB_MBSSPN.
60999         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
61000         * MODULES.html.sh (Internationalization functions): Add mbsspn.
61001
61002 2007-02-04  Bruno Haible  <bruno@clisp.org>
61003
61004         New module mbspbrk.
61005         * modules/mbspbrk: New file.
61006         * lib/mbspbrk.c: New file.
61007         * lib/string_.h (strpbrk): Add a conditional link warning.
61008         (mbspbrk): New declaration.
61009         * m4/mbspbrk.m4: New file.
61010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61011         GNULIB_MBSPBRK.
61012         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
61013         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
61014
61015 2007-02-04  Bruno Haible  <bruno@clisp.org>
61016
61017         New module mbscspn.
61018         * modules/mbscspn: New file.
61019         * lib/mbscspn.c: New file.
61020         * lib/string_.h (strcspn): Add a conditional link warning.
61021         (mbscspn): New declaration.
61022         * m4/mbscspn.m4: New file.
61023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61024         GNULIB_MBSCSPN.
61025         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
61026         * MODULES.html.sh (Internationalization functions): Add mbscspn.
61027
61028 2007-02-04  Bruno Haible  <bruno@clisp.org>
61029
61030         New module mbscasestr, reduced goal of strcasestr.
61031         * modules/mbscasestr: New file.
61032         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
61033         (mbscasestr): Renamed from strcasestr.
61034         * lib/strcasestr.c: Don't include mbuiter.h.
61035         (strcasestr): Remove support for multibyte locales.
61036         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
61037         Change the conditional link warning.
61038         (mbscasestr): New declaration.
61039         * m4/mbscasestr.m4: New file.
61040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
61041         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
61042         REPLACE_STRCASESTR.
61043         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
61044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61045         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61046         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
61047         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
61048         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61049         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
61050         (Depends-on): Remove mbuiter.
61051         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
61052
61053 2007-02-04  Bruno Haible  <bruno@clisp.org>
61054
61055         Simplify handling of strncasecmp.
61056         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
61057         the conditional link warning.
61058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61059         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
61060         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
61061         * modules/strcase (configure.ac): Don't invoke
61062         gl_STRING_MODULE_INDICATOR.
61063         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
61064
61065 2007-02-04  Bruno Haible  <bruno@clisp.org>
61066
61067         New module mbscasecmp, reduced goal of strcasecmp.
61068         * modules/mbscasecmp: New file.
61069         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
61070         (mbscasecmp): Renamed from strcasecmp.
61071         * lib/strcasecmp.c: Don't include mbuiter.h.
61072         (strcasecmp): Remove support for multibyte locales.
61073         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
61074         Change the conditional link warning.
61075         (mbscasecmp): New declaration.
61076         * m4/mbscasecmp.m4: New file.
61077         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
61078         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
61079         REPLACE_STRCASECMP.
61080         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
61081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61082         GNULIB_MBSCASECMP.
61083         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
61084         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
61085         * modules/strcase (Files): Remove m4/mbrtowc.m4.
61086         (Depends-on): Remove mbuiter.
61087         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
61088
61089 2007-02-04  Bruno Haible  <bruno@clisp.org>
61090
61091         New module mbsstr. Remove module strstr.
61092         * modules/mbsstr: New file.
61093         * modules/strstr: Remove file.
61094         * lib/mbsstr.c: Renamed from lib/strstr.c.
61095         (mbsstr): Renamed from strstr.
61096         * lib/string_.h (strstr): Remove declaration. Change the conditional
61097         link warning.
61098         (mbsstr): New declaration.
61099         * m4/mbsstr.m4: New file.
61100         * m4/strstr.m4: Remove file.
61101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
61102         REPLACE_STRSTR.
61103         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
61104         Don't initialize GNULIB_STRSTR.
61105         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
61106         substitute GNULIB_STRSTR and REPLACE_STRSTR.
61107         * MODULES.html.sh (Internationalization functions): Add mbsstr.
61108         (Support for systems lacking ANSI C 89): Remove strstr.
61109
61110 2007-02-04  Bruno Haible  <bruno@clisp.org>
61111
61112         New module mbsrchr.
61113         * modules/mbsrchr: New file.
61114         * lib/mbsrchr.c: New file.
61115         * lib/string_.h (strrchr): Add a conditional link warning.
61116         (mbsrchr): New declaration.
61117         * m4/mbsrchr.m4: New file.
61118         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61119         GNULIB_MBSRCHR.
61120         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
61121         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
61122
61123 2007-02-04  Bruno Haible  <bruno@clisp.org>
61124
61125         New module mbschr.
61126         * modules/mbschr: New file.
61127         * lib/mbschr.c: New file.
61128         * lib/string_.h (strchr): Add a conditional link warning.
61129         (mbschr): New declaration.
61130         * m4/mbschr.m4: New file.
61131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61132         GNULIB_MBSCHR.
61133         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
61134         * MODULES.html.sh (Internationalization functions): Add mbschr.
61135
61136 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
61139
61140         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
61141
61142 2007-02-04  Bruno Haible  <bruno@clisp.org>
61143
61144         New module description section 'configure.ac-early'.
61145         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
61146         (func_get_autoconf_early_snippet): New function.
61147         (func_import, func_create_testdir): Use it. Remove special cases for
61148         modules 'extensions' and 'lock'.
61149         * modules/extensions (configure.ac-early): Require
61150         gl_USE_SYSTEM_EXTENSIONS.
61151         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
61152
61153 2007-02-04  Bruno Haible  <bruno@clisp.org>
61154
61155         Make use of gcj-4.3's -fsource and -ftarget option.
61156         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
61157         and if so try the options -fsource and -ftarget.
61158         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
61159         source_version, ftarget_option, target_version arguments.
61160         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
61161         (is_envjavac_oldgcj_14_14_usable): Renamed from
61162         is_envjavac_gcj_14_14_usable.
61163         (is_envjavac_oldgcj_14_13_usable): Renamed from
61164         is_envjavac_gcj_14_13_usable.
61165         (is_gcj_present): Update.
61166         (is_gcj_43, is_gcj43_usable): New functions.
61167         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
61168         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
61169         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
61170         try the options -fsource and -ftarget.
61171
61172 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61173
61174         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
61175         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
61176         larger value.
61177
61178 2007-02-03  Jim Meyering  <jim@meyering.net>
61179
61180         Give tools a better chance to allocate space for very large buffers.
61181         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
61182
61183         Make pwd and readlink work also when run with an unreadable parent dir
61184         on systems with openat support.
61185         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
61186         provided getcwd function, even when we have openat support.
61187         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
61188
61189 2007-02-02  Bruno Haible  <bruno@clisp.org>
61190
61191         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61192         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
61193         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
61194         portability problems if one of these functions is only used on specific
61195         platforms.
61196         Reported by Paul Eggert.
61197
61198 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
61199
61200         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
61201         is causing more trouble than it's curing.
61202         * lib/regex_internal.h (__mempcpy): Remove.
61203         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
61204         (and make the code a tad smaller to boot).
61205         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
61206
61207 2007-02-02  Jim Meyering  <jim@meyering.net>
61208
61209         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
61210         section, not in the Makefile.am: one.
61211
61212 2007-02-02  Eric Blake  <ebb9@byu.net>
61213
61214         * lib/strchrnul.c: Always include config.h first.
61215
61216         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
61217         gnulib strstr is not necessary here.
61218
61219 2007-02-02  Simon Josefsson  <simon@josefsson.org>
61220
61221         * m4/socklen.m4: Fix typo.
61222
61223 2007-02-02  Eric Blake  <ebb9@byu.net>
61224
61225         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
61226         * modules/netinet_in (Makefile.am): Likewise.
61227
61228 2007-02-01  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/string_.h (GL_LINK_WARNING): New macro.
61231         (strcasecmp, strstr, strcasestr): If provided by the system,
61232         conditionally define as a macro that leads to a warning instead of to
61233         an error.
61234         (strncasecmp): Conditionally define as a macro that leads to a warning.
61235
61236 2007-02-01  Karl Berry  <karl@gnu.org>
61237
61238         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
61239
61240 2007-02-01  Bruno Haible  <bruno@clisp.org>
61241
61242         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
61243         renamings.
61244
61245 2007-02-01  Eric Blake  <ebb9@byu.net>
61246
61247         * modules/regex (Depends-on): Revert dependence on mempcpy.
61248         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
61249         module's definition of mempcpy.
61250         Reported by Paul Eggert.
61251
61252 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61253
61254         * lib/string_.h: If the gnulib module XYZ is not present, undefine
61255         the symbol XYZ before redefining it.  This fixes a problem with
61256         programs that don't use XYZ, when compiled on systems that define
61257         XYZ to something else.
61258
61259 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
61260
61261         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
61262         occurs when "mkdir -m foo" creates a setgid directory that is (1)
61263         writeable to group or other and (2) is intended to have a special
61264         mode bit that is set or cleared.  In such a case, the directory
61265         should be neither group- nor other-writeable until the special
61266         mode bits are right.
61267
61268 2007-01-31  Eric Blake  <ebb9@byu.net>
61269
61270         * modules/mountlist (Depends-on): Add strstr.
61271
61272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
61273         bug.
61274         * modules/string (Makefile.am): Remove redundant replacement.
61275         * modules/regex (Depends-on): Add mempcpy.
61276
61277 2007-01-31  Bruno Haible  <bruno@clisp.org>
61278
61279         New module description field 'Link'.
61280         * gnulib-tool (func_usage): Document --extract-link-directive.
61281         (sed_extract_prog): Recognize 'Link' directive.
61282         (func_get_link_directive): New function.
61283         (func_import): Show summary of link directives.
61284         Handle --extract-link-directive option.
61285         * modules/acl (Link): New section.
61286         * modules/clock-time (Link): New section.
61287         * modules/euidaccess (Link): New section.
61288         * modules/gettext (Link): New section.
61289         * modules/iconv (Link): New section.
61290         * modules/lock (Link): New section.
61291         * modules/nanosleep (Link): New section.
61292         * modules/readline (Link): New section.
61293
61294 2007-01-27  Bruno Haible  <bruno@clisp.org>
61295
61296         Enforce the use of gnulib modules for unportable <string.h> functions.
61297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
61298         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
61299         (gl_HEADER_STRING_H_BODY): Require it.
61300         * lib/string_.h: If the gnulib module XYZ is not present, redefine
61301         the symbol XYZ to one that gives a link error.
61302         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
61303         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
61304         * modules/mempcpy (configure.ac): Likewise.
61305         * modules/memrchr (configure.ac): Likewise.
61306         * modules/stpcpy (configure.ac): Likewise.
61307         * modules/stpncpy (configure.ac): Likewise.
61308         * modules/strcase (configure.ac): Likewise.
61309         * modules/strcasestr (configure.ac): Likewise.
61310         * modules/strchrnul (configure.ac): Likewise.
61311         * modules/strdup (configure.ac): Likewise.
61312         * modules/strndup (configure.ac): Likewise.
61313         * modules/strnlen (configure.ac): Likewise.
61314         * modules/strpbrk (configure.ac): Likewise.
61315         * modules/strsep (configure.ac): Likewise.
61316         * modules/strstr (configure.ac): Likewise.
61317         * modules/strtok_r (configure.ac): Likewise.
61318
61319 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
61320
61321         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
61322
61323 2007-01-30  Jim Meyering  <jim@meyering.net>
61324
61325         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
61326
61327 2007-01-29  Bruno Haible  <bruno@clisp.org>
61328
61329         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
61330         * lib/execute.c: Likewise.
61331         * lib/pipe.c: Likewise.
61332         * lib/printf-args.h: Likewise.
61333         * lib/printf-args.c: Likewise.
61334         * lib/printf-parse.c: Likewise.
61335         * lib/vasnprintf.c: Likewise.
61336
61337 2007-01-29  Eric Blake  <ebb9@byu.net>
61338
61339         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
61340         declaration.
61341
61342 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
61343
61344         * lib/strptime.h (strptime): Use 'restrict' for args where
61345         POSIX requires this.
61346         * lib/strptime.c (strptime): Likewise.
61347         Change license notice from LGPL to GPL, since gnulib-tool will
61348         change this as needed.
61349         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
61350         defined.
61351         Include "strptime.h" first, to check interface.
61352         Do not #undef _LIBC and _NL_CURRENT.
61353         Do not include <stdlib.h>; no longer needed.
61354         Include "time_r.h" and declare ptime_locale_status
61355         only if _LIBC is not defined.
61356         (__P): Remove unused macro.
61357         (match_string): Bring back glibc version, but use it only if _LIBC
61358         is defined.
61359         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
61360         Remove unnecessary assertion and abort() call.
61361         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
61362         * m4/strptime.m4: Fix serial number comment.
61363         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
61364         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
61365         (Depends-on): Add time_r.
61366
61367 2007-01-29  Bruno Haible  <bruno@clisp.org>
61368
61369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61370         strptime.
61371         * modules/strptime (Depends-on): Add stdbool.
61372         * lib/strptime.h: Include <time.h> always. Add comments.
61373
61374 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61375
61376         * modules/strptime: New file.
61377         * lib/strptime.h: New file.
61378         * lib/strptime.c: New file.
61379         * m4/strptime.m4: New file.
61380
61381 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61382
61383         * MODULES.html.sh: New module mpsort.
61384         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
61385
61386         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
61387         a circularity problem with HP-UX ia64 reported by Bob Proulx in
61388         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
61389         All uses changed.
61390         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
61391         All uses changed.
61392         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
61393         to _Restrict_.
61394         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
61395         the parameter matches the prototype.
61396
61397 2007-01-28  Jim Meyering  <jim@meyering.net>
61398
61399         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
61400         sys/time.h here, reverting that part of the previous patch:
61401         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
61402
61403 2007-01-28  Bruno Haible  <bruno@clisp.org>
61404
61405         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
61406         value of $(SYS_TIME_H).
61407         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
61408         remove it conditionally, too. [added by Jim Meyering]
61409         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61411         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61412         GETTIMEOFDAY_REPLACEMENT to 1.
61413
61414 2007-01-28  Bruno Haible  <bruno@clisp.org>
61415
61416         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
61417         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
61418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
61419         Set UNISTD_H instead of UNISTD_H2.
61420         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
61421
61422 2007-01-28  Bruno Haible  <bruno@clisp.org>
61423
61424         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
61425         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
61426
61427 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61428
61429         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
61430         (func_create_testdir): Ensure C locale for `grep' and `tr'
61431         character ranges.
61432         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
61433         ACLOCAL_AMFLAGS parsing state machine.
61434
61435 2007-01-27  Bruno Haible  <bruno@clisp.org>
61436
61437         * modules/unistr/base: Update.
61438
61439 2007-01-27  Bruno Haible  <bruno@clisp.org>
61440
61441         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
61442         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
61443         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61444         modules/unistr/u32-mbtouc.
61445         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
61446         * lib/unistr.h: Update.
61447         * lib/linebreak.c: Update.
61448         * modules/unistr/u32-mbtouc: Renamed from
61449         modules/unistr/u32-mbtouc-safe.
61450         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
61451         * lib/unistr.h: Update.
61452         * lib/unistr/u32-to-u8.c: Update.
61453         * lib/unistr/u32-to-u16.c: Update.
61454
61455 2007-01-27  Bruno Haible  <bruno@clisp.org>
61456
61457         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
61458         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
61459         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
61460         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
61461         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
61462         * modules/unistr/u16-mbtouc-unsafe: Renamed from
61463         modules/unistr/u16-mbtouc.
61464         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
61465         * lib/unistr.h: Update.
61466         * lib/linebreak.c: Update.
61467         * modules/linebreak: Update.
61468         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
61469         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
61470         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
61471         * modules/unistr/u16-mbtouc: Renamed from
61472         modules/unistr/u16-mbtouc-safe.
61473         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
61474         * lib/unistr.h: Update.
61475         * lib/unistr/u16-to-u8.c: Update.
61476         * modules/unistr/u16-to-u8: Update.
61477         * lib/unistr/u16-to-u32.c: Update.
61478         * modules/unistr/u16-to-u32: Update.
61479
61480 2007-01-27  Bruno Haible  <bruno@clisp.org>
61481
61482         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
61483         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
61484         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
61485         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
61486         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
61487         * modules/unistr/u8-mbtouc-unsafe: Renamed from
61488         modules/unistr/u8-mbtouc.
61489         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
61490         * lib/unistr.h: Update.
61491         * lib/striconveh.c: Update.
61492         * modules/striconveh: Update.
61493         * lib/linebreak.c: Update.
61494         * modules/linebreak: Update.
61495         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
61496         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
61497         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
61498         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
61499         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
61500         * lib/unistr.h: Update.
61501         * lib/striconveh.c: Update.
61502         * modules/striconveh: Update.
61503         * lib/unistr/u8-to-u16.c: Update.
61504         * modules/unistr/u8-to-u16: Update.
61505         * lib/unistr/u8-to-u32.c: Update.
61506         * modules/unistr/u8-to-u32: Update.
61507
61508 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61509
61510         Sync from Libtool.
61511         * lib/argz.c: Do not include strings.h nor memory.h, include
61512         string.h unconditionally.  Patch by Simon Josefsson.
61513
61514 2007-01-27  Bruno Haible  <bruno@clisp.org>
61515
61516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
61517         from gl_HEADER_STRING_H_BODY.
61518         (gl_HEADER_STRING_H_BODY): Require it.
61519         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
61520         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61521         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61522         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61523         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61524         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
61525         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61526         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61527         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
61528         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61529         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61530         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
61531         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61532         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61534
61535 2007-01-27  Bruno Haible  <bruno@clisp.org>
61536
61537         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
61538         check_PROGRAMS into noinst_PROGRAMS.
61539         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
61540         check_PROGRAMS in this case.
61541         (func_import): Set for_test to false.
61542         (func_create_testdir): Set for_test to true.
61543
61544 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61545             Bruno Haible  <bruno@clisp.org>
61546
61547         * modules/strcasestr (Files): Remove lib/strcasestr.h.
61548         (Depends-on): Add string.
61549         (Includes): Use <string.h> instead of strcasestr.h.
61550         * modules/string (Makefile.am): Also substitute the value of
61551         REPLACE_STRCASESTR.
61552         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
61553         assume strcasestr is declared in <string.h> not <strings.h>. Also
61554         set REPLACE_STRCASESTR.
61555         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
61556         REPLACE_STRCASESTR.
61557         * lib/strcasestr.h: Remove file.
61558         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
61559         * lib/string_.h (strcasestr): New declaration.
61560
61561 2007-01-27  Bruno Haible  <bruno@clisp.org>
61562
61563         * lib/string_.h: Use 'extern'.
61564
61565 2007-01-27  Jim Meyering  <jim@meyering.net>
61566
61567         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
61568         of set-but-not-used local, "q".
61569
61570         * lib/mempcpy.c: Include <config.h> before <string.h>.
61571         This fixes a compilation error on HP-UX, due to the system's
61572         "restrict"-using mempcpy prototype.
61573
61574 2007-01-26  Bruno Haible  <bruno@clisp.org>
61575
61576         Small optimization.
61577         * lib/javacomp.c: Include c-strstr.h.
61578          (is_envjavac_gcj): Use c_strstr instead of strstr.
61579         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
61580
61581 2007-01-26  Bruno Haible  <bruno@clisp.org>
61582
61583         * MODULES.html.sh (Unicode string functions): Add the new modules.
61584
61585         * modules/uniconv/u32-strconv-to-locale: New file.
61586         * lib/uniconv/u32-strconv-to-locale.c: New file.
61587
61588         * modules/uniconv/u16-strconv-to-locale: New file.
61589         * lib/uniconv/u16-strconv-to-locale.c: New file.
61590
61591         * modules/uniconv/u8-strconv-to-locale: New file.
61592         * lib/uniconv/u8-strconv-to-locale.c: New file.
61593
61594         * modules/uniconv/u32-strconv-from-locale: New file.
61595         * lib/uniconv/u32-strconv-from-locale.c: New file.
61596
61597         * modules/uniconv/u16-strconv-from-locale: New file.
61598         * lib/uniconv/u16-strconv-from-locale.c: New file.
61599
61600         * modules/uniconv/u8-strconv-from-locale: New file.
61601         * lib/uniconv/u8-strconv-from-locale.c: New file.
61602
61603         * modules/uniconv/u32-strconv-to-enc: New file.
61604         * lib/uniconv/u32-strconv-to-enc.c: New file.
61605         * modules/uniconv/u32-strconv-to-enc-tests: New file.
61606         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
61607
61608         * modules/uniconv/u16-strconv-to-enc: New file.
61609         * lib/uniconv/u16-strconv-to-enc.c: New file.
61610         * lib/uniconv/u-strconv-to-enc.h: New file.
61611         * modules/uniconv/u16-strconv-to-enc-tests: New file.
61612         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
61613
61614         * modules/uniconv/u8-strconv-to-enc: New file.
61615         * lib/uniconv/u8-strconv-to-enc.c: New file.
61616         * modules/uniconv/u8-strconv-to-enc-tests: New file.
61617         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
61618
61619         * modules/uniconv/u32-strconv-from-enc: New file.
61620         * lib/uniconv/u32-strconv-from-enc.c: New file.
61621         * modules/uniconv/u32-strconv-from-enc-tests: New file.
61622         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
61623
61624         * modules/uniconv/u16-strconv-from-enc: New file.
61625         * lib/uniconv/u16-strconv-from-enc.c: New file.
61626         * modules/uniconv/u16-strconv-from-enc-tests: New file.
61627         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
61628
61629         * modules/uniconv/u8-strconv-from-enc: New file.
61630         * lib/uniconv/u8-strconv-from-enc.c: New file.
61631         * lib/uniconv/u-strconv-from-enc.h: New file.
61632         * modules/uniconv/u8-strconv-from-enc-tests: New file.
61633         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
61634
61635         * modules/uniconv/u32-conv-from-enc: New file.
61636         * lib/uniconv/u32-conv-from-enc.c: New file.
61637         * modules/uniconv/u32-conv-from-enc-tests: New file.
61638         * tests/uniconv/test-u32-conv-from-enc.c: New file.
61639
61640         * modules/uniconv/u16-conv-from-enc: New file.
61641         * lib/uniconv/u16-conv-from-enc.c: New file.
61642         * lib/uniconv/u-conv-from-enc.h: New file.
61643         * modules/uniconv/u16-conv-from-enc-tests: New file.
61644         * tests/uniconv/test-u16-conv-from-enc.c: New file.
61645
61646         * modules/uniconv/u8-conv-from-enc: New file.
61647         * lib/uniconv/u8-conv-from-enc.c: New file.
61648         * modules/uniconv/u8-conv-from-enc-tests: New file.
61649         * tests/uniconv/test-u8-conv-from-enc.c: New file.
61650
61651         * modules/uniconv/base: New file.
61652         * lib/uniconv.h: New file.
61653
61654 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * doc/gnulib-tool.texi (Initial import): Update to match current
61657         behavior with strdup module.
61658         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
61659         * lib/memmem.h: Remove; all uses removed.  This is now done
61660         by <string.h>.
61661         * lib/mempcpy.h: Likewise.
61662         * lib/memrchr.h: Likewise.
61663         * lib/stpcpy.h: Likewise.
61664         * lib/stpncpy.h: Likewise.
61665         * lib/strcase.h: Likewise.
61666         * lib/strchrnul.h: Likewise.
61667         * lib/strdup.h: Likewise.
61668         * lib/strndup.h: Likewise.
61669         * lib/strnlen.h: Likewise.
61670         * lib/strpbrk.h: Likewise.
61671         * lib/strsep.h: Likewise.
61672         * lib/strstr.h: Likewise.
61673         * lib/strtok_r.h: Likewise.
61674         * lib/string_.h: New file.
61675         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61676         Rely on <string.h> instead.
61677         * lib/canon-host.c: Likewise.
61678         * lib/chdir-long.c: Likewise.
61679         * lib/concatpath.c: Likewise.
61680         * lib/exclude.c: Likewise.
61681         * lib/fchdir.c: Likewise.
61682         * lib/getaddrinfo.c: Likewise.
61683         * lib/getcwd.c: Likewise.
61684         * lib/getsubopt.c: Likewise.
61685         * lib/glob.c: Likewise.
61686         * lib/hard-locale.c: Likewise.
61687         * lib/iconvme.c: Likewise.
61688         * lib/javacomp.c: Likewise.
61689         * lib/mempcpy.c: Likewise.
61690         * lib/memrchr.c: Likewise.
61691         * lib/regex_internal.h: Likewise.
61692         * lib/stpncpy.c: Likewise.
61693         * lib/strcasecmp.c: Likewise.
61694         * lib/strchrnul.c: Likewise.
61695         * lib/strdup.c: Likewise.
61696         * lib/striconv.c: Likewise.
61697         * lib/striconveh.c: Likewise.
61698         * lib/striconveha.c: Likewise.
61699         * lib/strncasecmp.c: Likewise.
61700         * lib/strndup.c: Likewise.
61701         * lib/strnlen.c: Likewise.
61702         * lib/strsep.c: Likewise.
61703         * lib/strstr.c: Likewise.
61704         * lib/strtok_r.c: Likewise.
61705         * lib/userspec.c: Likewise.
61706         * lib/w32spawn.h: Likewise.
61707         * lib/xstrndup.c: Likewise.
61708         * lib/mountlist.c (strstr): Remove decl.
61709         * m4/string_h.m4: New file.
61710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61711         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61712         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61713         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61714         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61715         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61716         Set REPLACE_STRCASECMP if necessary.
61717         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61718         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61719         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61721         HAVE_DECL_STRDUP if necessary.
61722         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61723         since gl_FUNC_STRNDUP does that now.
61724         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61725         Check for decl here...
61726         (gl_PREREQ_STRNLEN): ... not here.
61727         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61728         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61729         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61730         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61731         necessary.
61732         * modules/string: New file.
61733         * modules/memmem (Files): Remove special-purpose include file.
61734         (Depends-on): Add string.
61735         (Include): Include <string.h>, not the removed file.
61736         * modules/mempcpy: Likewise.
61737         * modules/memrchr: Likewise.
61738         * modules/stpcpy: Likewise.
61739         * modules/stpncpy: Likewise.
61740         * modules/strcase: Likewise.
61741         * modules/strchrnul: Likewise.
61742         * modules/strdup: Likewise.
61743         * modules/strndup: Likewise.
61744         * modules/strnlen: Likewise.
61745         * modules/strpbrk: Likewise.
61746         * modules/strsep: Likewise.
61747         * modules/strstr: Likewise.
61748         * modules/strtok_r: Likewise.
61749         * tests/test-dirname.c: Don't include "strdup.h", since
61750         <string.h> now suffices.
61751         * tests/test-memmem.c: Don't include "memmem.h", since
61752         <string.h> now suffices.
61753
61754 2007-01-25  Bruno Haible  <bruno@clisp.org>
61755
61756         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61757         *resultp is 0.
61758
61759         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61760         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61761         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61762         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61763
61764         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61765         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61766         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61767         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61768         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61769         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61770
61771 2007-01-24  Bruno Haible  <bruno@clisp.org>
61772
61773         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61774         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61775         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61776         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61777         gl_FUNC_FTS_CORE.
61778         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61779         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61780         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61781         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61782         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61783         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61784         gl_FUNC_FCHOWNAT.
61785         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61786         gl_FUNC_STRFTIME.
61787         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61788         Reported by Ralf Wildenhues.
61789
61790 2007-01-24  Bruno Haible  <bruno@clisp.org>
61791
61792         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61793         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61794         gl_GETADDRINFO.
61795         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61796         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61797         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61798
61799 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61800
61801         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61802         Don't use 'exit'; just return from 'main'.
61803         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61804
61805         * lib/fnmatch_.h: Readjust white space and comments to match
61806         glibc, to avoid spurious diffs.
61807
61808 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61811         2004-12-01 change by Jakub Jelinek, since this code won't compile
61812         if !LIBC.  Problem reported by Bob Proulx.
61813
61814 2007-01-23  Bruno Haible  <bruno@clisp.org>
61815
61816         * lib/striconveh.c: Include c-strcaseeq.h.
61817         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61818         * modules/striconveh (Depends-on): Add c-strcaseeq.
61819
61820 2007-01-23  Bruno Haible  <bruno@clisp.org>
61821
61822         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61823
61824         * modules/c-strcaseeq: New file.
61825         * lib/c-strcaseeq.h: New file.
61826
61827         * modules/streq: New file.
61828         * lib/streq.h: New file.
61829
61830 2007-01-23  Bruno Haible  <bruno@clisp.org>
61831
61832         * modules/striconveha-tests: New file.
61833         * tests/test-striconveha.c: New file.
61834
61835         * lib/striconveha.h: Include <stdbool.h>.
61836         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61837         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61838         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61839         (mem_iconveha): New function.
61840         (str_iconveha_notranslit): Renamed from str_iconveha.
61841         (str_iconveha): New function.
61842         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61843         c-strcase.
61844
61845 2007-01-23  Bruno Haible  <bruno@clisp.org>
61846
61847         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61848         encodings without forgiving before trying any encoding with handler.
61849         (str_iconveha): Try all encodings without forgiving before trying any
61850         encoding with handler.
61851
61852 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61853
61854         Import the following changes from libc.
61855
61856         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61857
61858         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61859
61860         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61861
61862         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61863         normal_bracket label.
61864
61865         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61866
61867         [BZ #361]
61868         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61869         to normal_bracket after fetching the next character.
61870
61871 2007-01-22  Bruno Haible  <bruno@clisp.org>
61872
61873         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61874         argument.
61875         * lib/striconveh.c (iconv_carefully_1): New function.
61876         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61877         argument.
61878         (str_cd_iconveh): Update.
61879         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61880         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61881         * tests/test-striconveh.c (MAGIC): New macro.
61882         (new_offsets): New function.
61883         (main): Test call with and without offsets.
61884
61885 2007-01-22  Bruno Haible  <bruno@clisp.org>
61886
61887         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61888         * modules/sys_select (Makefile.am): Likewise.
61889         * modules/sys_socket (Makefile.am): Likewise.
61890         * modules/sys_time (Makefile.am): Likewise.
61891
61892 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61893
61894         * modules/gettimeofday (License): Change from GPL to LGPL, since
61895         gettimeofday is a library function.
61896
61897 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61898
61899         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61900
61901 2007-01-21  Bruno Haible  <bruno@clisp.org>
61902
61903         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61904
61905 2007-01-21  Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/striconveha: New file.
61908         * lib/striconveha.h: New file.
61909         * lib/striconveha.c: New file.
61910         * MODULES.html.sh (Internationalization functions): Add striconveha.
61911         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61912         string.
61913         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61914
61915 2007-01-21  Bruno Haible  <bruno@clisp.org>
61916
61917         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61918         * lib/striconveh.c (str_iconveh): Likewise.
61919
61920 2007-01-21  Bruno Haible  <bruno@clisp.org>
61921
61922         * lib/striconveh.h (mem_iconveh): New declaration.
61923         * lib/striconveh.c (mem_iconveh): New function.
61924         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61925
61926 2007-01-21  Bruno Haible  <bruno@clisp.org>
61927
61928         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61929
61930         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61931         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61932         original result buffer.
61933         (str_cd_iconveh): Update.
61934         * tests/test-striconveh.c (main): Update.
61935
61936         * lib/striconv.h (mem_cd_iconv): Change specification.
61937         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61938         result buffer.
61939         (str_cd_iconv): Update.
61940         * tests/test-striconv.c (main): Update.
61941
61942 2007-01-21  Bruno Haible  <bruno@clisp.org>
61943
61944         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61945
61946 2007-01-20  Jim Meyering  <jim@meyering.net>
61947
61948         * lib/userspec.c (parse_with_separator): If a user or group string
61949         starts with "+", skip the corresponding name-to-ID look-up, since
61950         such a look-up must fail: user and group names may not include "+".
61951
61952 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61955         since we now assume the sys_time module.
61956         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61957         check for sys/time.h; no longer needed.
61958         * modules/poll (Depends-on): Depend on sys_time.
61959
61960 2007-01-18  Bruno Haible  <bruno@clisp.org>
61961
61962         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61963         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61964
61965         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61966         gettimeofday.
61967
61968         * tests/test-gettimeofday.c: Include <time.h>.
61969         (dummy): Remove variable.
61970
61971         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61972         gl_HEADER_SYS_TIME_H.
61973         (gl_HEADER_SYS_TIME_H): New macro.
61974
61975         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61976         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61977         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61978         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61979         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61980         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61981         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61982         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61983         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61984         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61985         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61986
61987         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61988         last change; it caused a compilation error when cross-compiling to
61989         Cygwin.
61990
61991 2007-01-18  Jim Meyering  <jim@meyering.net>
61992
61993         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61994         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61995         than the race-prone "test -d sys || mkdir sys".
61996         (configure.ac): Use AC_PROG_MKDIR_P.
61997         * modules/sys_select: Likewise.
61998         * modules/sys_socket: Likewise.
61999         * modules/sys_time: Likewise.
62000
62001 2007-01-18  Eric Blake  <ebb9@byu.net>
62002
62003         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
62004         replace gettimeofday.
62005         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
62006         name, to avoid infinite recursion.
62007
62008 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
62011         module sys_time.
62012         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
62013         assume timespec.h defines struct timeval.
62014         * lib/settime.c: Likewise.
62015         * lib/utimens.c: Likewise.
62016         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
62017         since we now assume the gettimeofday module.
62018         * lib/tempname.c (__gen_tempname): Likewise.
62019         * lib/gettimeofday.h: Remove.
62020         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
62021         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
62022         Include <time.h>, for 'time()'.
62023         (localtime_buffer_addr): Also use this workaround if
62024         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
62025         to simplify the uses.  All uses changed.
62026         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
62027         that #undef is inside {}, and 'const' follows type name consistently.
62028         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
62029         (gettimeofday): Do not use the maximum possible value for
62030         tv->tv_usec, since that might break usages other than ls.c.
62031         Instead, we'll leave ls.c alone.  This undoes today's patch
62032         by Bruno.  Add a compile-time warning for 1s-clock resolution;
62033         we've never observed the problem but might as well keep the
62034         canary.
62035         * lib/nanosleep.c: Include timespec.h first, for interface check.
62036         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
62037         now assume the sys_time module.
62038         * lib/tempname.c: Likewise.
62039         * lib/timespec.h: Likewise.
62040         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
62041         needed.
62042         * lib/strftime.c: Likewise.
62043         * lib/timespec.h: Likewise.
62044         * lib/posixtm.c: Include posixtm.h first, for interface check.
62045         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
62046         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
62047         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
62048         * lib/sys_time_.h: New file.
62049         * lib/timespec.h (struct timespec): Use long int, not long.
62050         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62051         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
62052         Remove obsolescent call to AC_HEADER_TIME.
62053         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62055         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62056         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
62057         Likewise.
62058         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
62059         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
62060         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
62061         into the sys_time module.  Check for gettimeofday just once.
62062         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
62063         for gettimeofday signature to just check the signature.  Merely
62064         compile it, since linking doesn't test signature.  Improve test for
62065         whether gettimeofday.o is actually needed.
62066         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
62067         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
62068         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
62069         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62070         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
62071         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
62072         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
62073         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
62074         than worrying about sys/time.h.
62075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62076         Don't bother worrying about TIME_WITH_SYS_TIME.
62077         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62078         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
62079         * m4/sys_time_h.m4: New file.
62080         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
62081         Don't include sys/time.h.  Return from main rather than exiting.
62082         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
62083         all uses changed.
62084         * modules/gethrxtime (Depends-on): Add sys_time.
62085         * modules/gettime (Depends-on): Likewise.
62086         * modules/gettimeofday (Depends-on): Likewise.
62087         * modules/nanosleep (Depends-on): Likewise.
62088         * modules/settime (Depends-on): Likewise.
62089         * modules/tempname (Depends-on): Likewise.
62090         * modules/utimens (Depends-on): Likewise.
62091         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
62092         (Include): Change back to <sys/time.h>.
62093         (Maintainer): Add self.
62094         * modules/sys_time: New file.
62095         * modules/tempname (Depends-on): Add gettimeofday.
62096         * tests/test-gettimeofday.c: Include <sys/time.h>
62097         rather than gettimeofday.h.
62098
62099 2007-01-17  Bruno Haible  <bruno@clisp.org>
62100
62101         * gnulib-tool (func_get_license): Revert last patch. Instead, let
62102         the license default to GPL.
62103         (func_create_testdir): Don't complain if a module is LGPL and its
62104         tests module depends on GPLed modules.
62105
62106 2007-01-17  Bruno Haible  <bruno@clisp.org>
62107
62108         * lib/gettimeofday.c (gettimeofday): Add code for the case
62109         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
62110         maximum possible value for tv->tv_usec, rather than the minimum one.
62111
62112 2005-10-08  Martin Lambers  <marlam@marlam.de>
62113 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62114 2007-01-16  Bruno Haible  <bruno@clisp.org>
62115
62116         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
62117         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
62118         gl_FUNC_GETTIMEOFDAY.
62119         (Include): Add gettimeofday.h.
62120         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
62121         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
62122         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
62123         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
62124         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
62125         * lib/gettimeofday.h: New file.
62126         * lib/gettimeofday.c: Include <sys/timeb.h>.
62127         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
62128         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62129         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
62130         fall back on time().
62131
62132         * tests/test-gettimeofday.c: New file.
62133         * modules/gettimeofday-tests: New file.
62134
62135 2007-01-16  Eric Blake  <ebb9@byu.net>
62136
62137         * modules/fnmatch (Depends-on): Depend on wchar.
62138         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
62139         * m4/fnmatch.m4: Likewise.
62140         * modules/mbchar (Makefile.am): Assume <wchar.h>.
62141         * m4/mbchar.m4: Likewise.
62142         * modules/mbswidth (Depends-on): Depend on wchar.
62143         * lib/mbswidth.c: Assume <wchar.h>.
62144         * m4/mbswidth.m4: Likewise.
62145         * modules/quotearg (Depends-on): Depend on wchar.
62146         * lib/quotearg.c: Assume <wchar.h>.
62147         * m4/quotearg.m4: Likewise.
62148         * modules/regex (Depends-on): Depend on wchar.
62149         * lib/regex_internal.h: Assume <wchar.h>.
62150         * m4/regex.m4: Likewise.
62151         * modules/stdint (Depends-on): Depend on wchar.
62152         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
62153         * m4/stdint.m4: Likewise.
62154         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
62155         * modules/strftime (Depends-on): Depend on wchar.
62156         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
62157         * modules/strtol (Depends-on): Depend on wchar.
62158         * lib/strtol.c: Assume <wchar.h>.
62159         * modules/wcwidth (Depends-on): Depend on wchar.
62160         * lib/wcwidth.h: Assume <wchar.h>.
62161         * m4/wcwidth.m4: Likewise.
62162
62163 2007-01-16  Bruno Haible  <bruno@clisp.org>
62164
62165         * modules/csharpexec-script: New, created from...
62166         * modules/csharpexec: ... this.
62167
62168 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62169
62170         * modules/javaexec-script: New, created from...
62171         * modules/javaexec: ... this.
62172
62173 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62174
62175         * modules/poll (Dependencies): Add sys_select.
62176
62177 2007-01-15  Jim Meyering  <jim@meyering.net>
62178
62179         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
62180         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
62181         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
62182         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
62183
62184 2007-01-15  Bruno Haible  <bruno@clisp.org>
62185
62186         * modules/striconveh: New file.
62187         * lib/striconveh.h: New file.
62188         * lib/striconveh.c: New file.
62189         * MODULES.html.sh (Internationalization functions): Add striconveh.
62190
62191         * modules/striconveh-tests: New file.
62192         * tests/test-striconveh.c: New file.
62193
62194 2007-01-15  Bruno Haible  <bruno@clisp.org>
62195
62196         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
62197         not from GNU libiconv or GNU libc.
62198
62199 2007-01-15  Bruno Haible  <bruno@clisp.org>
62200
62201         * doc/gnulib-intro.texi (Copyright): Explain the different license
62202         terms for module descriptions, autoconf macros, tests, documentation.
62203
62204 2007-01-14  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/striconv-tests: New file.
62207         * tests/test-striconv.c: New file.
62208
62209 2007-01-14  Bruno Haible  <bruno@clisp.org>
62210
62211         * modules/iconv-tests: New file.
62212         * tests/test-iconv.c: New file.
62213
62214 2007-01-14  Bruno Haible  <bruno@clisp.org>
62215
62216         * gnulib-tool (func_get_license): For test modules, use the license of
62217         the main module.
62218
62219 2007-01-14  Bruno Haible  <bruno@clisp.org>
62220
62221         * modules/iconv (Include): Clarify that <iconv.h> can only be included
62222         if iconv is found to exist.
62223
62224 2007-01-14  Bruno Haible  <bruno@clisp.org>
62225
62226         * modules/c-ctype-tests: New file.
62227         * tests/test-c-ctype.c: New file.
62228
62229 2007-01-14  Bruno Haible  <bruno@clisp.org>
62230
62231         * modules/binary-io-tests: New file.
62232         * tests/test-binary-io.sh: New file.
62233         * tests/test-binary-io.c: New file.
62234
62235 2007-01-14  Bruno Haible  <bruno@clisp.org>
62236
62237         * modules/array-oset-tests: New file.
62238         * tests/test-array_oset.c: New file.
62239
62240 2007-01-14  Bruno Haible  <bruno@clisp.org>
62241
62242         * modules/array-list-tests: New file.
62243         * tests/test-array_list.c: New file.
62244
62245 2007-01-14  Bruno Haible  <bruno@clisp.org>
62246
62247         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
62248         and make.
62249         Reported by Simon Josefsson in
62250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
62251
62252 2007-01-14  Bruno Haible  <bruno@clisp.org>
62253
62254         * modules/allocsa-tests: New file.
62255         * tests/test-allocsa.c: New file.
62256
62257 2007-01-14  Bruno Haible  <bruno@clisp.org>
62258
62259         * modules/fchdir (Depends-on): Add absolute-header.
62260         * modules/unistd (Depends-on): Likewise.
62261
62262 2006-12-30  Bruno Haible  <bruno@clisp.org>
62263
62264         * modules/fchdir: New file.
62265         * modules/unistd (Files): Add lib/unistd_.h.
62266         (Makefile.am): Generate unistd.h from unistd_.h.
62267         * lib/fchdir.c: New file.
62268         * lib/dirent_.h: New file.
62269         * lib/unistd_.h: New file.
62270         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
62271         * m4/fchdir.m4: New file.
62272         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
62273         (gl_HEADER_UNISTD): Invoke it.
62274         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
62275         function.
62276         * lib/backupfile.c (opendir, closedir): Undefine.
62277         * lib/chown.c (open, close): Undefine.
62278         * lib/clean-temp.c (open, close): Undefine.
62279         * lib/copy-file.c (open, close): Undefine.
62280         * lib/execute.c (open, close): Undefine.
62281         * lib/fsusage.c (open, close): Undefine.
62282         * lib/gc-gnulib.c (open, close): Undefine.
62283         * lib/getcwd.c (opendir, closedir): Undefine.
62284         * lib/glob.c (opendir, closedir): Undefine.
62285         * lib/javacomp.c (open, close): Undefine.
62286         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
62287         * lib/openat-proc.c (open, close): Undefine.
62288         * lib/pagealign_alloc.c (open, close): Undefine.
62289         * lib/pipe.c (open, close): Undefine.
62290         * lib/progreloc.c (open, close): Undefine.
62291         * lib/savedir.c (opendir, closedir): Undefine.
62292         * lib/utime.c (open, close): Undefine.
62293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
62294
62295 2007-01-10  Bruno Haible  <bruno@clisp.org>
62296
62297         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
62298
62299 2007-01-12  Eric Blake  <ebb9@byu.net>
62300
62301         Provide a robust <wchar.h>.  Further simplifications are now
62302         possible in other modules, but not included here.
62303         * modules/wchar: New module.
62304         * m4/wchar.m4: New file.
62305         * lib/wchar_.h: Likewise.
62306         * modules/mbchar (Depends-on): Depend on wchar, as the first use
62307         of the new module.
62308         * MODULES.html.sh (Extended multibyte and wide character utilities):
62309         New section.
62310
62311 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
62312
62313         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
62314         to a reasonable default for memory allocation.
62315         (xreadlink): Don't allocate a huge buffer, to work around a buggy
62316         file system that reports garbage st_size values for symlinks.
62317         Problem reported by Liyang Hu.
62318
62319 2007-01-11  Simon Josefsson  <simon@josefsson.org>
62320
62321         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
62322         Emacs .#* auto-save files).
62323
62324 2007-01-11  Bruno Haible  <bruno@clisp.org>
62325
62326         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
62327         directory.
62328
62329 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62330
62331         Use @...@ consistently in lib/wctype_.h.
62332         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
62333         on it being set to 1 or 0.
62334         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
62335         go back to AC_SUBSTing it.
62336         * modules/wctype (Makefile.am): Undo previous change.
62337
62338 2007-01-10  Eric Blake  <ebb9@byu.net>
62339
62340         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
62341         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
62342         * modules/wctype (Makefile.am): Likewise.
62343         Reported by Chris McGuire.
62344
62345 2007-01-10  Jim Meyering  <jim@meyering.net>
62346
62347         fts.c: a small readability/maintainability improvement
62348         * lib/fts.c (fts_read): Make this code slightly more readable and
62349         maintainable by hoisting the "sp->fts_cur = p" assignments to
62350         immediately follow the statements that set P.  Derived from
62351         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
62352
62353 2007-01-10  Eric Blake  <ebb9@byu.net>
62354
62355         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
62356         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
62357         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62358         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62359         Reported by Chris McGuire.
62360
62361 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62362
62363         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
62364         in sed script.
62365
62366 2007-01-09  Bruno Haible  <bruno@clisp.org>
62367
62368         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
62369         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
62370         variables.
62371         (func_module): Use them.
62372
62373 2007-01-09  Bruno Haible  <bruno@clisp.org>
62374
62375         * modules/unistr/base: New file.
62376         * lib/unistr.h: New file.
62377
62378         * modules/unistr/u8-to-u16: New file.
62379         * lib/unistr/u8-to-u16.c: New file.
62380
62381         * modules/unistr/u8-to-u32: New file.
62382         * lib/unistr/u8-to-u32.c: New file.
62383
62384         * modules/unistr/u16-to-u8: New file.
62385         * lib/unistr/u16-to-u8.c: New file.
62386
62387         * modules/unistr/u16-to-u32: New file.
62388         * lib/unistr/u16-to-u32.c: New file.
62389
62390         * modules/unistr/u32-to-u8: New file.
62391         * lib/unistr/u32-to-u8.c: New file.
62392
62393         * modules/unistr/u32-to-u16: New file.
62394         * lib/unistr/u32-to-u16.c: New file.
62395
62396         * modules/unistr/u8-check: New file.
62397         * modules/unistr/u16-check: New file.
62398         * modules/unistr/u32-check: New file.
62399         * lib/unistr/u8-check.c: New file.
62400         * lib/unistr/u16-check.c: New file.
62401         * lib/unistr/u32-check.c: New file.
62402
62403         * modules/unistr/u8-chr: New file.
62404         * modules/unistr/u16-chr: New file.
62405         * modules/unistr/u32-chr: New file.
62406         * lib/unistr/u8-chr.c: New file.
62407         * lib/unistr/u16-chr.c: New file.
62408         * lib/unistr/u32-chr.c: New file.
62409
62410         * modules/unistr/u8-cmp: New file.
62411         * modules/unistr/u16-cmp: New file.
62412         * modules/unistr/u32-cmp: New file.
62413         * lib/unistr/u8-cmp.c: New file.
62414         * lib/unistr/u16-cmp.c: New file.
62415         * lib/unistr/u32-cmp.c: New file.
62416
62417         * modules/unistr/u8-cpy: New file.
62418         * modules/unistr/u16-cpy: New file.
62419         * modules/unistr/u32-cpy: New file.
62420         * lib/unistr/u8-cpy.c: New file.
62421         * lib/unistr/u16-cpy.c: New file.
62422         * lib/unistr/u32-cpy.c: New file.
62423         * lib/unistr/u-cpy.h: New file.
62424
62425         * modules/unistr/u8-cpy-alloc: New file.
62426         * modules/unistr/u16-cpy-alloc: New file.
62427         * modules/unistr/u32-cpy-alloc: New file.
62428         * lib/unistr/u8-cpy-alloc.c: New file.
62429         * lib/unistr/u16-cpy-alloc.c: New file.
62430         * lib/unistr/u32-cpy-alloc.c: New file.
62431         * lib/unistr/u-cpy-alloc.h: New file.
62432
62433         * modules/unistr/u8-endswith: New file.
62434         * modules/unistr/u16-endswith: New file.
62435         * modules/unistr/u32-endswith: New file.
62436         * lib/unistr/u8-endswith.c: New file.
62437         * lib/unistr/u16-endswith.c: New file.
62438         * lib/unistr/u32-endswith.c: New file.
62439         * lib/unistr/u-endswith.h: New file.
62440
62441         * modules/unistr/u8-mblen: New file.
62442         * modules/unistr/u16-mblen: New file.
62443         * modules/unistr/u32-mblen: New file.
62444         * lib/unistr/u8-mblen.c: New file.
62445         * lib/unistr/u16-mblen.c: New file.
62446         * lib/unistr/u32-mblen.c: New file.
62447
62448         * modules/unistr/u8-mbtouc: New file.
62449         * modules/unistr/u16-mbtouc: New file.
62450         * modules/unistr/u32-mbtouc: New file.
62451         * lib/unistr/u8-mbtouc.c: New file.
62452         * lib/unistr/u16-mbtouc.c: New file.
62453         * lib/unistr/u32-mbtouc.c: New file.
62454
62455         * modules/unistr/u8-mbtouc-safe: New file.
62456         * modules/unistr/u16-mbtouc-safe: New file.
62457         * modules/unistr/u32-mbtouc-safe: New file.
62458         * lib/unistr/u8-mbtouc-safe.c: New file.
62459         * lib/unistr/u16-mbtouc-safe.c: New file.
62460         * lib/unistr/u32-mbtouc-safe.c: New file.
62461
62462         * modules/unistr/u8-move: New file.
62463         * modules/unistr/u16-move: New file.
62464         * modules/unistr/u32-move: New file.
62465         * lib/unistr/u8-move.c: New file.
62466         * lib/unistr/u16-move.c: New file.
62467         * lib/unistr/u32-move.c: New file.
62468         * lib/unistr/u-move.h: New file.
62469
62470         * modules/unistr/u8-next: New file.
62471         * modules/unistr/u16-next: New file.
62472         * modules/unistr/u32-next: New file.
62473         * lib/unistr/u8-next.c: New file.
62474         * lib/unistr/u16-next.c: New file.
62475         * lib/unistr/u32-next.c: New file.
62476
62477         * modules/unistr/u8-prev: New file.
62478         * modules/unistr/u16-prev: New file.
62479         * modules/unistr/u32-prev: New file.
62480         * lib/unistr/u8-prev.c: New file.
62481         * lib/unistr/u16-prev.c: New file.
62482         * lib/unistr/u32-prev.c: New file.
62483
62484         * modules/unistr/u8-set: New file.
62485         * modules/unistr/u16-set: New file.
62486         * modules/unistr/u32-set: New file.
62487         * lib/unistr/u8-set.c: New file.
62488         * lib/unistr/u16-set.c: New file.
62489         * lib/unistr/u32-set.c: New file.
62490         * lib/unistr/u-set.h: New file.
62491
62492         * modules/unistr/u8-startswith: New file.
62493         * modules/unistr/u16-startswith: New file.
62494         * modules/unistr/u32-startswith: New file.
62495         * lib/unistr/u8-startswith.c: New file.
62496         * lib/unistr/u16-startswith.c: New file.
62497         * lib/unistr/u32-startswith.c: New file.
62498         * lib/unistr/u-startswith.h: New file.
62499
62500         * modules/unistr/u8-stpcpy: New file.
62501         * modules/unistr/u16-stpcpy: New file.
62502         * modules/unistr/u32-stpcpy: New file.
62503         * lib/unistr/u8-stpcpy.c: New file.
62504         * lib/unistr/u16-stpcpy.c: New file.
62505         * lib/unistr/u32-stpcpy.c: New file.
62506         * lib/unistr/u-stpcpy.h: New file.
62507
62508         * modules/unistr/u8-stpncpy: New file.
62509         * modules/unistr/u16-stpncpy: New file.
62510         * modules/unistr/u32-stpncpy: New file.
62511         * lib/unistr/u8-stpncpy.c: New file.
62512         * lib/unistr/u16-stpncpy.c: New file.
62513         * lib/unistr/u32-stpncpy.c: New file.
62514         * lib/unistr/u-stpncpy.h: New file.
62515
62516         * modules/unistr/u8-strcat: New file.
62517         * modules/unistr/u16-strcat: New file.
62518         * modules/unistr/u32-strcat: New file.
62519         * lib/unistr/u8-strcat.c: New file.
62520         * lib/unistr/u16-strcat.c: New file.
62521         * lib/unistr/u32-strcat.c: New file.
62522         * lib/unistr/u-strcat.h: New file.
62523
62524         * modules/unistr/u8-strchr: New file.
62525         * modules/unistr/u16-strchr: New file.
62526         * modules/unistr/u32-strchr: New file.
62527         * lib/unistr/u8-strchr.c: New file.
62528         * lib/unistr/u16-strchr.c: New file.
62529         * lib/unistr/u32-strchr.c: New file.
62530
62531         * modules/unistr/u8-strcmp: New file.
62532         * modules/unistr/u16-strcmp: New file.
62533         * modules/unistr/u32-strcmp: New file.
62534         * lib/unistr/u8-strcmp.c: New file.
62535         * lib/unistr/u16-strcmp.c: New file.
62536         * lib/unistr/u32-strcmp.c: New file.
62537
62538         * modules/unistr/u8-strcpy: New file.
62539         * modules/unistr/u16-strcpy: New file.
62540         * modules/unistr/u32-strcpy: New file.
62541         * lib/unistr/u8-strcpy.c: New file.
62542         * lib/unistr/u16-strcpy.c: New file.
62543         * lib/unistr/u32-strcpy.c: New file.
62544         * lib/unistr/u-strcpy.h: New file.
62545
62546         * modules/unistr/u8-strcspn: New file.
62547         * modules/unistr/u16-strcspn: New file.
62548         * modules/unistr/u32-strcspn: New file.
62549         * lib/unistr/u8-strcspn.c: New file.
62550         * lib/unistr/u16-strcspn.c: New file.
62551         * lib/unistr/u32-strcspn.c: New file.
62552         * lib/unistr/u-strcspn.h: New file.
62553
62554         * modules/unistr/u8-strdup: New file.
62555         * modules/unistr/u16-strdup: New file.
62556         * modules/unistr/u32-strdup: New file.
62557         * lib/unistr/u8-strdup.c: New file.
62558         * lib/unistr/u16-strdup.c: New file.
62559         * lib/unistr/u32-strdup.c: New file.
62560         * lib/unistr/u-strdup.h: New file.
62561
62562         * modules/unistr/u8-strlen: New file.
62563         * modules/unistr/u16-strlen: New file.
62564         * modules/unistr/u32-strlen: New file.
62565         * lib/unistr/u8-strlen.c: New file.
62566         * lib/unistr/u16-strlen.c: New file.
62567         * lib/unistr/u32-strlen.c: New file.
62568         * lib/unistr/u-strlen.h: New file.
62569
62570         * modules/unistr/u8-strmblen: New file.
62571         * modules/unistr/u16-strmblen: New file.
62572         * modules/unistr/u32-strmblen: New file.
62573         * lib/unistr/u8-strmblen.c: New file.
62574         * lib/unistr/u16-strmblen.c: New file.
62575         * lib/unistr/u32-strmblen.c: New file.
62576
62577         * modules/unistr/u8-strmbtouc: New file.
62578         * modules/unistr/u16-strmbtouc: New file.
62579         * modules/unistr/u32-strmbtouc: New file.
62580         * lib/unistr/u8-strmbtouc.c: New file.
62581         * lib/unistr/u16-strmbtouc.c: New file.
62582         * lib/unistr/u32-strmbtouc.c: New file.
62583
62584         * modules/unistr/u8-strncat: New file.
62585         * modules/unistr/u16-strncat: New file.
62586         * modules/unistr/u32-strncat: New file.
62587         * lib/unistr/u8-strncat.c: New file.
62588         * lib/unistr/u16-strncat.c: New file.
62589         * lib/unistr/u32-strncat.c: New file.
62590         * lib/unistr/u-strncat.h: New file.
62591
62592         * modules/unistr/u8-strncmp: New file.
62593         * modules/unistr/u16-strncmp: New file.
62594         * modules/unistr/u32-strncmp: New file.
62595         * lib/unistr/u8-strncmp.c: New file.
62596         * lib/unistr/u16-strncmp.c: New file.
62597         * lib/unistr/u32-strncmp.c: New file.
62598
62599         * modules/unistr/u8-strncpy: New file.
62600         * modules/unistr/u16-strncpy: New file.
62601         * modules/unistr/u32-strncpy: New file.
62602         * lib/unistr/u8-strncpy.c: New file.
62603         * lib/unistr/u16-strncpy.c: New file.
62604         * lib/unistr/u32-strncpy.c: New file.
62605         * lib/unistr/u-strncpy.h: New file.
62606
62607         * modules/unistr/u8-strnlen: New file.
62608         * modules/unistr/u16-strnlen: New file.
62609         * modules/unistr/u32-strnlen: New file.
62610         * lib/unistr/u8-strnlen.c: New file.
62611         * lib/unistr/u16-strnlen.c: New file.
62612         * lib/unistr/u32-strnlen.c: New file.
62613         * lib/unistr/u-strnlen.h: New file.
62614
62615         * modules/unistr/u8-strpbrk: New file.
62616         * modules/unistr/u16-strpbrk: New file.
62617         * modules/unistr/u32-strpbrk: New file.
62618         * lib/unistr/u8-strpbrk.c: New file.
62619         * lib/unistr/u16-strpbrk.c: New file.
62620         * lib/unistr/u32-strpbrk.c: New file.
62621         * lib/unistr/u-strpbrk.h: New file.
62622
62623         * modules/unistr/u8-strrchr: New file.
62624         * modules/unistr/u16-strrchr: New file.
62625         * modules/unistr/u32-strrchr: New file.
62626         * lib/unistr/u8-strrchr.c: New file.
62627         * lib/unistr/u16-strrchr.c: New file.
62628         * lib/unistr/u32-strrchr.c: New file.
62629
62630         * modules/unistr/u8-strspn: New file.
62631         * modules/unistr/u16-strspn: New file.
62632         * modules/unistr/u32-strspn: New file.
62633         * lib/unistr/u8-strspn.c: New file.
62634         * lib/unistr/u16-strspn.c: New file.
62635         * lib/unistr/u32-strspn.c: New file.
62636         * lib/unistr/u-strspn.h: New file.
62637
62638         * modules/unistr/u8-strstr: New file.
62639         * modules/unistr/u16-strstr: New file.
62640         * modules/unistr/u32-strstr: New file.
62641         * lib/unistr/u8-strstr.c: New file.
62642         * lib/unistr/u16-strstr.c: New file.
62643         * lib/unistr/u32-strstr.c: New file.
62644         * lib/unistr/u-strstr.h: New file.
62645
62646         * modules/unistr/u8-strtok: New file.
62647         * modules/unistr/u16-strtok: New file.
62648         * modules/unistr/u32-strtok: New file.
62649         * lib/unistr/u8-strtok.c: New file.
62650         * lib/unistr/u16-strtok.c: New file.
62651         * lib/unistr/u32-strtok.c: New file.
62652         * lib/unistr/u-strtok.h: New file.
62653
62654         * modules/unistr/u8-uctomb: New file.
62655         * modules/unistr/u16-uctomb: New file.
62656         * modules/unistr/u32-uctomb: New file.
62657         * lib/unistr/u8-uctomb.c: New file.
62658         * lib/unistr/u16-uctomb.c: New file.
62659         * lib/unistr/u32-uctomb.c: New file.
62660
62661         * MODULES.html.sh (Unicode string functions): Add the new modules.
62662
62663 2007-01-08  Bruno Haible  <bruno@clisp.org>
62664
62665         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62666         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62667         subdirectories.
62668
62669 2007-01-08  Karl Berry  <karl@gnu.org>
62670
62671         * doc/error.texi: mention that main() fns must set program_name
62672         when progname is used.
62673
62674 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62675
62676         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62677         WCTYPE_H is empty, for the benefit of builds from non-distclean
62678         directories.  Problem reported by Eric Blake in
62679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62680
62681 2007-01-08  Bruno Haible  <bruno@clisp.org>
62682
62683         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62684         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62685         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62686         PROVIDE_CANONICALIZE_FILENAME_MODE.
62687         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62688
62689 2007-01-08  Bruno Haible  <bruno@clisp.org>
62690
62691         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62692         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62693         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62694         * lib/fts.c: Likewise.
62695         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62696
62697 2006-12-25  Bruno Haible  <bruno@clisp.org>
62698
62699         * modules/utf8-ucs4-safe: New file.
62700         * lib/utf8-ucs4-safe.h: New file.
62701         * lib/unistr/utf8-ucs4-safe.c: New file.
62702
62703         * modules/utf16-ucs4-safe: New file.
62704         * lib/utf16-ucs4-safe.h: New file.
62705         * lib/unistr/utf16-ucs4-safe.c: New file.
62706
62707         * MODULES.html.sh (Unicode string functions): Add the new modules.
62708
62709 2007-01-08  Bruno Haible  <bruno@clisp.org>
62710
62711         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62712         (Depends-on): Add unitypes.
62713         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62714         (u8_mbtouc_aux): Move out to separate file.
62715         (u8_mbtouc): Use ucs4_t, uint8_t types.
62716         * lib/unistr/utf8-ucs4.c: New file.
62717
62718         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62719         (Depends-on): Add unitypes.
62720         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62721         (u16_mbtouc_aux): Move out to separate file.
62722         (u16_mbtouc): Use ucs4_t, uint16_t types.
62723         * lib/unistr/utf16-ucs4.c: New file.
62724
62725         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62726         (Depends-on): Add unitypes.
62727         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62728         (u8_uctomb_aux): Move out to separate file.
62729         (u8_uctomb): Use ucs4_t, uint8_t types.
62730         * lib/unistr/ucs4-utf8.c: New file.
62731
62732         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62733         (Depends-on): Add unitypes.
62734         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62735         (u16_uctomb_aux): Move out to separate file.
62736         (u16_uctomb): Use ucs4_t, uint16_t types.
62737         * lib/unistr/ucs4-utf16.c: New file.
62738
62739 2006-12-25  Bruno Haible  <bruno@clisp.org>
62740
62741         * modules/unitypes: New file.
62742         * lib/unitypes.h: New file.
62743         * MODULES.html.sh (func_all_modules): New section "Unicode string
62744         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62745         this section. Add unitypes.
62746
62747 2007-01-08  Bruno Haible  <bruno@clisp.org>
62748
62749         Avoid variable names that conflict with those from libtool.
62750         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62751         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62752         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62753         library_names_spec to acl_library_names_spec, hardcode_* to
62754         acl_hardcode_*.
62755         Reported by Ralf Wildenhues.
62756
62757 2007-01-08  Bruno Haible  <bruno@clisp.org>
62758
62759         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62760         definition.
62761         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62762         definition.
62763         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62764         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62765         definition.
62766         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62767         definition.
62768         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62769         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62770         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62771         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62772         definition.
62773         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62774         definition.
62775         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62776         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62777         GC_USE_<algorithm>.
62778         * lib/gc-libgcrypt.c: Likewise.
62779         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62780         * modules/gc-arctwo (configure.ac): Likewise.
62781         * modules/gc-des (configure.ac): Likewise.
62782         * modules/gc-hmac-md5 (configure.ac): Likewise.
62783         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62784         * modules/gc-md2 (configure.ac): Likewise.
62785         * modules/gc-md4 (configure.ac): Likewise.
62786         * modules/gc-md5 (configure.ac): Likewise.
62787         * modules/gc-random (configure.ac): Likewise.
62788         * modules/gc-rijndael (configure.ac): Likewise.
62789         * modules/gc-sha1 (configure.ac): Likewise.
62790
62791 2007-01-08  Bruno Haible  <bruno@clisp.org>
62792
62793         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62794         macro definition.
62795         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62796         definition.
62797         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62798         definition.
62799         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62800         * modules/fcntl-safer (configure.ac): Likewise.
62801         * modules/fopen-safer (configure.ac): Likewise.
62802         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62803         GNULIB_FWRITEERROR macro definition.
62804
62805 2007-01-08  Bruno Haible  <bruno@clisp.org>
62806
62807         * m4/gnulib-common.m4: New file.
62808         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62809         (func_get_filelist): Add m4/gnulib-common.m4.
62810
62811 2007-01-08  Bruno Haible  <bruno@clisp.org>
62812
62813         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62814         command.
62815
62816 2007-01-08  Jim Meyering  <jim@meyering.net>
62817
62818         Use a more robust test for a "can't happen" condition.
62819         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62820         narrowed the st_size value.  Presuming the "can't happen" condition
62821         is true, that narrowing could conceivably convert an invalid st_size
62822         value into a valid one.  Instead, use a change based on Matthew
62823         Woehlke's original patch.
62824
62825         Slight readability improvement: use an assert-like macro
62826         in place of literal "abort ()" uses.
62827         * lib/fts.c (fts_assert): Define.
62828         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62829         Use this macro instead of a bare 'abort'.
62830
62831 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62832
62833         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62834         simply work around them.
62835         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62836         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62837         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62838         declaring.
62839         Don't bother to define as macros, since the standard doesn't require it.
62840         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62841         longer worry about IRIX 5.3.
62842         (HAVE_WCTYPE_CTMP_BUG): Remove.
62843
62844 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62845
62846         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62847         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62848         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62849         Problems reported by Georg Schwarz for IRIX 5.3.
62850
62851         * gnulib-tool (autoconf_minversion): Take the maximum version number
62852         found, not the minimum.  Problem reported by James Youngman.
62853
62854 2007-01-03  Karl Berry  <karl@gnu.org>
62855
62856         * doc/error.texi: new file, explaining interaction with progname.
62857         * doc/gnulib.texi: include it.  Update copyright.
62858
62859 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62860
62861         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62862         AC_CANONICAL_HOST, to improve autobuild outputs.
62863
62864 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62865             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62866
62867         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62868         sockets, server sockets, and other file descriptors.  Count errors
62869         to compute the return value.  Reorder the code a bit to be easier
62870         to follow.  Don't set event bits that were not requested (except
62871         POLLERR and POLLHUP).
62872
62873 2007-01-01  Bruno Haible  <bruno@clisp.org>
62874
62875         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62876
62877 2007-01-03  Jim Meyering  <jim@meyering.net>
62878
62879         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62880
62881 2007-01-02  Bruno Haible  <bruno@clisp.org>
62882
62883         * modules/settime (Include): Require timespec.h.
62884         * modules/nanosleep (Include): Likewise.
62885
62886 2007-01-01  Bruno Haible  <bruno@clisp.org>
62887
62888         * gnulib-tool (func_emit_copyright_notice): Bump year.
62889         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62890
62891 2007-01-01  Bruno Haible  <bruno@clisp.org>
62892
62893         Improve support for OpenBSD.
62894         * build-aux/config.rpath (libname_spec): Export.
62895         (library_names_spec): New variable. Export.
62896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62897         library_names_spec from the config.rpath output. Locate shared library
62898         through the name pattern in library_names_spec.
62899
62900 2007-01-01  Eric Blake  <ebb9@byu.net>
62901
62902         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62903
62904 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62905
62906         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62907         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62908         assume the C locale, and avoid an "eval" that could cause trouble.
62909         Problem with SORT reported by Bob Proulx.
62910
62911         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62912         Define.  Trivial patch from Henning Nielsen Lund, originally
62913         sent to bug-grep@gnu.org today.
62914
62915 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62916
62917         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62918         struct stat.  Problem reported by Henning Nielsen Lund.
62919         * lib/acl.c: Include acl.h first, to check interface.  Don't
62920         bother to include sys/types.h and sys/stat.h again.
62921
62922 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62923
62924         Import the following change from libc; problem reported by
62925         Sven Verdoolaege.
62926
62927         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62928
62929         [BZ #1373]
62930         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62931
62932 2006-12-28  Jim Meyering  <jim@meyering.net>
62933
62934         * build-aux/announce-gen: Do not assume that the package
62935         builds any of tar.gz, tar.bz2, and .xdelta files.
62936         Suggestion from Simon Josefsson.
62937
62938 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62939
62940         * modules/announce-gen: New file.
62941
62942 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62943
62944         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62945         handles its gotchas now.
62946         * lib/mbswidth.c: Likewise.
62947         * lib/wcwidth.h: Likewise.
62948         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62949         and iswcntrl; the wctype module does this stuff now.
62950         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62952         * modules/mbchar (Depends-on): Add wctype.
62953         * modules/mbswidth (Depends-on): Likewise.
62954         * modules/wcwidth (Depends-on): Likewise.
62955
62956 2006-12-27  Eric Blake  <ebb9@byu.net>
62957
62958         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62959         module uses more than what <wctype.h> is required to provide.
62960
62961 2006-12-26  Eric Blake  <ebb9@byu.net>
62962
62963         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62964
62965 2006-12-26  Eric Blake  <ebb9@byu.net>
62966
62967         * modules/absolute-header: New module.
62968         * modules/fcntl (Depends-on): Depend on it.
62969         * modules/inttypes (Depends-on): Likewise.
62970         * modules/stdint (Depends-on): Likewise.
62971         * modules/sys_stat (Depends-on): Likewise.
62972         * modules/wctype (Depends-on): Likewise.
62973         * MODULES.html.sh (Support for building libraries and
62974         executables): Document it.
62975
62976 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62977
62978         * gnulib-tool (SED): Remove, undoing previous change.
62979         The problem was that it broke coreutils on Solaris, because
62980         "sed --posix" leaked into a makefile.
62981         (sed): New alias, if 'alias' and GNU sed.
62982
62983 2006-12-24  Jim Meyering  <jim@meyering.net>
62984
62985         Work around an fchownat bug in glibc-2.4:
62986         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62987         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62988         in spite of the -P option.
62989         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62990         New macros.
62991         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62992         * modules/openat (Files): Add lib/fchownat.c.
62993         * lib/openat.c (fchownat): Don't define here.  Move to...
62994         * lib/fchownat.c: ...this new file.
62995
62996 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62997
62998         Fix bug reported by Bruno Haible in
62999         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
63000         where quotearg.c didn't compile on Mac OS X 10.2 because it
63001         lacks <wchar.h> and wint_t.
63002         * lib/wctype_.h (__wctype_wint_t): New type.
63003         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
63004         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
63005         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
63006         Arg is now of type __wctype_wint_t, not wint_t.
63007         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
63008         substitute HAVE_WINT_T.
63009         * modules/wctype (Files): Add m4/wint_t.m4.
63010         (wctype.h): Substitute HAVE_WINT_T.
63011
63012 2006-12-23  Bruno Haible  <bruno@clisp.org>
63013
63014         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
63015
63016 2006-12-23  Bruno Haible  <bruno@clisp.org>
63017
63018         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
63019         S_ISLNK.
63020         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
63021         mingw.
63022
63023 2006-12-22  Bruno Haible  <bruno@clisp.org>
63024
63025         * lib/copy-file.c: Include acl.h.
63026         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
63027         Close the file descriptors only after being done with copy_acl.
63028         * modules/copy-file (Depends-on): Add acl.
63029
63030 2006-12-22  Bruno Haible  <bruno@clisp.org>
63031
63032         * gnulib-tool (SED): New variable.
63033         Use $SED instead of sed everywhere.
63034
63035 2006-12-22  Bruno Haible  <bruno@clisp.org>
63036
63037         * modules/no-c++: New file.
63038         * m4/no-c++.m4: New file.
63039         * MODULES.html.sh (Support for building libraries and executables):
63040         Add no-c++.
63041
63042 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63043
63044         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63045         Include <limits.h>, and use its INT_MAX to rewrite the
63046         j loop so that it does not overflow 'int'.  Problem reported by
63047         Ralf Wildenhues in
63048         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
63049         Play it safe by shifting left by 1 rather than multiplying by 2,
63050         as GCC is less likely to optimize this away when the value
63051         is signed (when it assumes overflow leads to undefined behavior).
63052         Also, don't assume time_t uses two's complement.
63053
63054 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * MODULES.html.sh: New module wctype.
63057         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
63058         * lib/fnmatch.c: Don't bother to include <wchar.h> before
63059         <wctype.h>, since the new wctype module should fix this.
63060         * lib/quotearg.c: Include <wctype.h> unconditionally, since
63061         the wctype module should arrange for it.
63062         * lib/regex_internal.h: Likewise.
63063         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
63064         since the wctype module should handle this now.
63065         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
63066         * modules/fnmatch (Depends-on): Add wctype.
63067         * modules/quotearg (Depends-on): Likewise.
63068         * modules/regex (Depends-on): Likewise.
63069
63070 2006-12-19  Bruno Haible  <bruno@clisp.org>
63071
63072         * lib/strdup.h [C++]: Wrap definitions in extern "C".
63073         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
63074
63075 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63076
63077         * modules/savewd (Depends-on): Fix dependency on fcntl.
63078
63079 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63080
63081         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
63082         conforms to C99, rather than relying on the user's environment
63083         setting of STDINT_H.
63084
63085 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63086         and Eric Blake  <ebb9@byu.net>
63087
63088         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
63089         This is more consistent with the other defines here.
63090         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
63091         Port to z/OS.  Problem reported by Paul Gilmartin.
63092         Change local vars to use gl_ prefix rather than ac_.
63093         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
63094         with other defines.
63095         * modules/double-slash-root: New module.
63096         * modules/dirname (Files): Remove m4/double-slash-root.m4.
63097         (Depends-on): Add double-slash-root.
63098         * MODULES.html.sh (File system functions): Mention new module.
63099
63100 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
63101
63102         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
63103         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
63104         This is for the benefit of gzip, which doesn't do i18n.
63105
63106 2006-12-12  Jim Meyering  <jim@meyering.net>
63107
63108         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
63109         Reported by Andreas Schwab <schwab@suse.de>.
63110
63111 2006-12-12  Bruno Haible  <bruno@clisp.org>
63112
63113         Merge these changes.
63114         2006-09-05  Bruno Haible  <bruno@clisp.org>
63115         * lib/iconvme.c (iconv_string): No need to save and restore errno when
63116         iconv_alloc succeeded.
63117         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
63118         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
63119         test for " && dest " at the end - dest is always != NULL there. Call
63120         iconv with 4xNULL arguments initially, to reset the state. Call iconv
63121         with 2xNULL arguments, also to flush the state storage. Handle the
63122         IRIX iconv behaviour. Realloc the final result, to throw away unused
63123         memory.
63124
63125 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
63126
63127         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
63128         and fchmodat unconditionally, since glibc 2.4 has them.
63129         Problem reported by Arkadiusz Miskiewicz.
63130
63131 2006-12-10  Bruno Haible  <bruno@clisp.org>
63132
63133         * gnulib-tool (func_import): Show the include files only for those
63134         modules that are copied and specified.
63135         Reported by Karl Berry.
63136
63137 2006-12-08  Jim Meyering  <jim@meyering.net>
63138
63139         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
63140         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
63141
63142         * build-aux/announce-gen: Add two new options, both optional:
63143         --bootstrap-tools=TOOL_LIST
63144               a comma-separated list of tools, e.g.,
63145               autoconf,automake,bison,gnulib
63146         --gnulib-snapshot-date=DATE
63147               if gnulib is in the bootstrap tool list,
63148               then report this as the snapshot date.
63149               If not specified, use the current date/time.
63150               If you specify a date here, be sure it's UTC.
63151
63152 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63153
63154         * tests/test-argp-2.sh: Fix test to match actual output.
63155         (func_compare): Fix sed script to be portable.
63156
63157 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
63158
63159         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
63160         workaround for this case.  It is not autoconfigured now; offhand
63161         it's hard to see how to autoconfigure it.
63162
63163 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
63166         a directory that is about to be chowned.  Such a directory's
63167         initial file permissions should permit the owner only and this
63168         should not be changed until after the chown, since the group and
63169         other bits would be incorrect if they granted permission before
63170         the chown.
63171
63172         Fix porting problem for iswctype reported by Georg Schwarz in:
63173         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
63174         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
63175         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
63176         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
63177         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63178
63179 2006-12-03  Jim Meyering  <jim@meyering.net>
63180
63181         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
63182         p->fts_statp may not yet be defined.
63183         (fts_read): Instead, set it in the caller, once p->fts_statp is
63184         sure to be defined, and corresponds to a top-level directory.
63185         This bug made du -x fail.  Here's the coreutils test case:
63186         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
63187         Reported by Mike Frysinger.
63188
63189 2006-12-01  Jim Meyering  <jim@meyering.net>
63190
63191         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
63192         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
63193         Reported by Simon Josefsson.
63194
63195 2006-11-30  Jim Meyering  <jim@meyering.net>
63196
63197         * m4/warning.m4: Use the all-permissive copyright notice
63198         recommended by RMS (rather than LGPL).
63199         * m4/vararrays.m4: Likewise.
63200         * m4/flexmember.m4: Likewise.
63201
63202 2006-11-29  Bruno Haible  <bruno@clisp.org>
63203
63204         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63205         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
63206         using +=.
63207         Reported by Simon Josefsson <simon@josefsson.org>.
63208
63209 2006-11-28  James Youngman <jay@gnu.org>
63210
63211         * README: Advise users that they might find the bug-gnulib@gnu.org
63212         and autotools-announce@gnu.org mailing lists useful.
63213
63214 2006-11-28  Bruno Haible  <bruno@clisp.org>
63215
63216         * m4/ptrdiff_max.m4: Remove file.
63217
63218 2006-11-21  Bruno Haible  <bruno@clisp.org>
63219
63220         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
63221         _AC_COMPUTE_INT.
63222         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63223         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
63224         _AC_COMPUTE_INT.
63225         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63226         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
63227         _AC_COMPUTE_INT.
63228         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63229
63230 2006-11-28  Jim Meyering  <jim@meyering.net>
63231
63232         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
63233         warning from "gcc -Wshadow" about shadowing the builtin.
63234
63235 2006-11-27  Bruno Haible  <bruno@clisp.org>
63236
63237         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
63238         _AC_COMPUTE_INT.
63239         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63240
63241 2006-11-27  Bruno Haible  <bruno@clisp.org>
63242             Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
63245
63246 2006-11-26  Bruno Haible  <bruno@clisp.org>
63247
63248         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63249         noinst_LTLIBRARIES.
63250
63251 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63252             Bruno Haible  <bruno@clisp.org>
63253
63254         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
63255         if compiling with "gcc -ansi".
63256
63257 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         Fix some incompatibilities with gcc -ansi -pedantic.
63260         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
63261         if compiling pedantically with GCC, unless it's C99 or later.
63262         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
63263         it mishandles gcc -ansi -pedantic as well.
63264         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
63265         if gcc -pedantic.
63266         * lib/regexec.c (check_node_accept_bytes): Don't use auto
63267         initializers for struct if -pedantic, unless it's C99 or later.
63268
63269 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
63270
63271         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
63272         Don't close an fd more than once. Identical atimes indicate
63273         success, not failure.
63274
63275 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
63276
63277         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
63278
63279 2006-11-23  Jim Meyering  <jim@meyering.net>
63280
63281         * build-aux/announce-gen: New file.  From coreutils.
63282
63283 2006-11-22  Jim Meyering  <jim@meyering.net>
63284
63285         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
63286         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
63287         (fts_read): Use a temporary to narrow the overused st_size member
63288         before using it in a switch statement.  Reported by Matthew Woehlke.
63289
63290         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
63291         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63292
63293 2006-11-20  Bruno Haible  <bruno@clisp.org>
63294
63295         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
63296         changequote instead of pairs of brackets.
63297         Reported by Andreas Schwab <schwab@suse.de>.
63298
63299 2006-11-21  Jim Meyering  <jim@meyering.net>
63300
63301         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
63302         so as to remain compatible with older compilers.
63303         Patch from Michael Deutschmann.
63304
63305 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63306
63307         * MODULES.html.sh (File system functions): Add openat.
63308
63309         * lib/openat.h (rpl_fstatat): New macro, if
63310         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
63311         (fstatat): Define to rpl_fstatat under the same conditions,
63312         unless COMPILING_FSTATAT.
63313         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
63314         seems to have the bug.
63315         * lib/fstatat.c: New file.
63316         * modules/openat (Files): Add it.
63317
63318 2006-11-20  Bruno Haible  <bruno@clisp.org>
63319
63320         * Makefile: New file.
63321
63322 2006-11-20  Jim Meyering  <jim@meyering.net>
63323
63324         The beginnings of syntax-related checks for gnulib.
63325         * lib/Makefile: New file.
63326         * lib/t-idcache: New script.  Ensure that the two halves of
63327         idcache.c stay in sync.
63328
63329         * lib/idcache.c: Adjust comments in user- and group- portions to
63330         be more accurate, and to be consistent with one another.
63331
63332 2006-11-20  Jim Meyering  <jim@meyering.net>
63333
63334         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
63335         continue using the flexible array member (thus, this module performs
63336         half as many malloc calls), with the addition that...
63337         (getgroup, getuser): Consistently record a non-match via an empty
63338         "name" string, and map an empty string match to a NULL return value.
63339         * modules/idcache (Depends-on): Re-add flexmember.
63340
63341         * lib/idcache.c (getuser): Remove all uses of the register keyword.
63342         (getuidbyname, getgroup, getgidbyname): Likewise.
63343
63344         Use cleaner syntax: NULL rather than 0.
63345         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
63346
63347 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
63350         It mishandled the case where the group was missing.
63351         Problem reported by Greg Schafer.
63352         * modules/idcache: Likewise.
63353
63354 2006-11-18  Jim Meyering  <jim@meyering.net>
63355
63356         * check-module (%exempt_header): Add exception for some
63357         conditionally-included headers.
63358
63359         * modules/i-ring (Depends-on): Add verify.
63360         (License): Change to LGPL.
63361
63362 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63363
63364         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
63365         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
63366         and inttostr.h.  Use snprintf rather than uinttostr, so that
63367         LGPLed code doesn't depend on GPLed.
63368
63369 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         * modules/inline (License): Change from GPL to LGPL.
63372
63373 2006-11-17  Jim Meyering  <jim@meyering.net>
63374
63375         * modules/d-type (License): Switch to LGPL.
63376
63377 2006-11-15  Bruno Haible  <bruno@clisp.org>
63378
63379         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
63380
63381 2006-11-15  Eric Blake  <ebb9@byu.net>
63382
63383         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
63384         the module dependency.
63385
63386 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63387             Bruno Haible  <bruno@clisp.org>
63388
63389         * gnulib-tool (func_create_testdir): Add license consistency check.
63390
63391 2006-11-15  Eric Blake  <ebb9@byu.net>
63392
63393         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
63394         random "(cached)" in configure output.
63395
63396 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63397
63398         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
63399         test for conforming inttypes.h is both announced and cached.
63400
63401         * MODULES.html.sh (seen_modules, seen_files): New variables.
63402         (func_module): Rewrite to use a few less gnulib-tool and sed
63403         invocations.  Avoid a couple of quadratic algorithms for ...
63404         (missed_modules, missed_files): ... these, with ...
63405         (func_append, func_tmpdir): ... these new functions, from
63406         gnulib-tool.  Analogously, install traps for cleanup.
63407
63408         * tests/test-gc.c (main): Remove unused variables.
63409         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63410
63411 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63412
63413         * modules/inttostr (License): Change to LGPL.
63414
63415 2006-11-14  Eric Blake  <ebb9@byu.net>
63416
63417         * modules/tempname (License): Change to LGPL.
63418
63419 2006-11-14  Eric Blake  <ebb9@byu.net>
63420
63421         * doc/functions.texi (Function Portability): *printf functions on
63422         Cygwin now understand all POSIX size specifiers.
63423
63424 2006-11-14  Bruno Haible  <bruno@clisp.org>
63425
63426         * modules/c-ctype (License): Change to LGPL.
63427
63428 2006-11-12  Bruno Haible  <bruno@clisp.org>
63429
63430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63431         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
63432         for GNOME libraries, for which the include files are installed in
63433         subdirectories of $prefix/include.
63434
63435 2006-11-12  Bruno Haible  <bruno@clisp.org>
63436
63437         * m4/lib-link.m4: Require at least autoconf-2.54.
63438         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
63439         name to underscores for the --with option.
63440
63441 2006-11-13  Bruno Haible  <bruno@clisp.org>
63442
63443         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
63444         the tests directory.
63445         Reported by Ralf Wildenhues.
63446
63447 2006-11-13  Bruno Haible  <bruno@clisp.org>
63448
63449         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
63450         (func_emit_initmacro_end): Undo the override here.
63451         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
63452         Works around the famous automake error in coreutils.
63453
63454 2006-11-13  Eric Blake  <ebb9@byu.net>
63455
63456         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
63457         element, not its node.
63458
63459 2006-11-12  Bruno Haible  <bruno@clisp.org>
63460
63461         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
63462         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
63463
63464 2006-11-12  Bruno Haible  <bruno@clisp.org>
63465
63466         * gnulib-tool: New option --local-symlink.
63467         (func_usage): Document it.
63468         (lsymbolic): New variable.
63469         (func_import, func_create_testdir): If --symlink was not specified,
63470         test whether --local-symlink was specified and the file comes from
63471         the local_gnulib_dir.
63472
63473 2006-11-12  Bruno Haible  <bruno@clisp.org>
63474
63475         * gnulib-tool (func_ln): New function.
63476         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
63477
63478 2006-11-12  Bruno Haible  <bruno@clisp.org>
63479
63480         Finish support for source files in subdirectories.
63481         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
63482         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
63483         AUTOMAKE_OPTIONS.
63484         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
63485
63486 2006-11-12  Bruno Haible  <bruno@clisp.org>
63487
63488         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63489         EXTRA_lib_SOURCES augmentation.
63490         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
63491
63492 2006-11-12  Jim Meyering  <jim@meyering.net>
63493
63494         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
63495         file descriptors.  This also averts a failure on systems with
63496         native openat support when a traversed directory lacks "x" access.
63497         * lib/fts_.h: Include "i-ring.h"
63498         (struct FTS) [fts_fd_ring]: New member.
63499         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
63500         (FCHDIR): Add parentheses.
63501         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
63502         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
63503         When descending, rather than simply closing the previous
63504         fts_cwd_fd value, push that file descriptor onto the ring.
63505         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
63506         (fts_open): Initialize the new fd_ring member.
63507         (fts_close): Clear the ring.
63508         (fts_safe_changedir): When possible, use our new fd_ring to skip
63509         the diropen and fstat and dev/ino comparison that would normally
63510         accompany a virtual `chdir ("..")'.
63511
63512         * modules/fts (Depends-on): Add i-ring.
63513         * modules/i-ring: New module.
63514         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
63515         * m4/i-ring.m4: New file.
63516
63517 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63518
63519         * gnulib-tool (func_create_testdir): Fix replacement of
63520         `build-aux' in configure.ac.  Run autotools in gltests
63521         subdirectory.
63522         (func_create_testdir, func_create_megatestdir, test): There is
63523         no need for '--force' in most autotool invocations in a new
63524         tree.  Actually fail the whole test if any of the tools, or the
63525         configure or make stages fail.
63526
63527         Sync from Automake.
63528         * build-aux/gnupload: Revert last change.  Add pointer to upload
63529         instructions of the GNU Maintenance Instructions.
63530         Suggestion by Karl Berry.
63531
63532 2006-11-10  Jim Meyering  <jim@meyering.net>
63533
63534         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
63535
63536 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63537
63538         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
63539         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
63540         (bind_textdomain_codeset) [! ENABLE_NLS]:
63541         Evaluate all the arguments.  That way, callers get compatible behavior
63542         if the arguments have side effects.  Also, it avoids some GCC
63543         diagnostics in some cases; Joel E. Denny reported problems when Bison
63544         was configured with --enable-gcc-warnigs.
63545
63546 2006-11-10  Jim Meyering  <jim@meyering.net>
63547
63548         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
63549         relevant options in CFLAGS (like -O, -fno-inline) are taken into
63550         account.
63551
63552 2006-11-10  Jim Meyering  <jim@meyering.net>
63553
63554         * modules/inline: New file/module.
63555         * modules/xalloc (Files): Remove m4/inline.m4.
63556         (Depends-on): Add inline, instead.
63557         * modules/oset: Likewise.
63558         * modules/list: Likewise.
63559
63560 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63561
63562         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
63563         Problem reported by Matthew Woehlke.
63564
63565 2006-11-09  Bruno Haible  <bruno@clisp.org>
63566
63567         * lib/tempname.c (gen_tempname): Remove variant that invokes
63568         __gen_tempname.
63569         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
63570         __gen_tempname.
63571
63572 2006-11-08  Bruno Haible  <bruno@clisp.org>
63573
63574         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
63575         to 'yes' instead of 'cross-compiling'.
63576
63577 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63578
63579         * lib/quotearg.h (quotearg_free): New decl.
63580         * lib/quotearg.c (quotearg_free): New function.
63581         (slot0, nslots, slotvec0, slotvec):
63582         Now file-scope so that quotearg_free can get at them.
63583
63584 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63585
63586         Sync from Automake.
63587         * build-aux/gnupload: Add missing 'gnu' to example URL.
63588         Report by Karl Berry.
63589
63590 2006-11-08  Bruno Haible  <bruno@clisp.org>
63591
63592         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
63593         Suggested by Paul Eggert.
63594
63595 2006-11-08  Jim Meyering  <jim@meyering.net>
63596
63597         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
63598         It's already included if !_LIBC.
63599         (fts_safe_changedir): Add a comment.
63600
63601 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63602
63603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
63604         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
63605         Matthew Woehlke.
63606
63607         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
63608         definitions up, to avoid colliding with change below.
63609         (static_inline) [HAVE_INLINE]: New macro.
63610         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
63611         Provide extern decls when !HAVE_INLINE.  Do not define unless
63612         static_inline is defined, either by us or by xmalloc.c.  Use
63613         static_inline rather than static inline.
63614         (XCALLOC): Optimize sizeof(T) = 1 case.
63615         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
63616
63617 2006-11-07  Bruno Haible  <bruno@clisp.org>
63618
63619         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
63620         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
63621         AC_C_INLINE.
63622         * modules/xalloc (Files): Add m4/inline.m4.
63623
63624 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63625
63626         * README: Fix typo.
63627         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
63628         (Miscellanous Notes): ...from this.
63629
63630 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63631
63632         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
63633         Mention that offsetof should be used instead of sizeof.
63634         From Bruno Haible.
63635
63636 2006-11-07  Bruno Haible  <bruno@clisp.org>
63637
63638         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
63639
63640 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63641
63642         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63643         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
63644         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63645         (gl_tree_add_before, gl_tree_add_after):
63646         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
63647         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
63648         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63649         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
63650         (gl_linked_add_after, gl_linked_add_at): Likewise.
63651         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
63652         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63653         (gl_tree_add_before, gl_tree_add_after): Likewise.
63654         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
63655         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
63656         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
63657
63658 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63659
63660         * lib/gl_oset.h: Use C comment style, not C++ comment style.
63661
63662 2006-11-06  Bruno Haible  <bruno@clisp.org>
63663
63664         * m4/inline.m4: New file.
63665         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63666         * modules/list (Files): Add m4/inline.m4.
63667         * modules/oset (Files): Likewise.
63668
63669 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * lib/idcache.c: Include <stddef.h>, for offsetof.
63672         (struct userid.name): Change from char * to a flexible array member.
63673         All uses changed.
63674         * modules/idcache (Depends-on): Add flexmember.
63675
63676         * MODULES.html.sh (Core language properties): New module flexmember.
63677         * modules/flexmember, m4/flexmember.m4: New files.
63678
63679         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63680         inline functions that are identical with the old xnmalloc_inline,
63681         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63682         that we can avoid some unnecessary integer multiplications and
63683         divisions in the common case where the element size is known at
63684         compile time.
63685         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63686         needed.
63687         (xnboundedmalloc): Remove.
63688         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63689         arguments, for consistency with rest of this header.
63690         (xcharalloc): Rewrite using XNMALLOC.
63691         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63692         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63693         versions have been moved to lib/xalloc.h and renamed to be the
63694         non-*_inline versions.
63695         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63696         and xnrealloc functions, since those functions are now inline and
63697         now call us.
63698         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63699         renaming described above.
63700         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63701         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63702         captures the dependency in AC_C_INLINE.
63703
63704         New module canonicalize-lgpl, proposed by Charles Wilson in
63705         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63706         with a few small changes afterwards.
63707         * MODULES.html.sh (File system functions): New module
63708         canonicalize-lgpl.
63709         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63710         and canonicalize_file_name.
63711         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63712         * modules/canonicalize-lgpl: New files.
63713
63714 2006-11-05  Bruno Haible  <bruno@clisp.org>
63715
63716         * gnulib-tool (func_import, func_create_testdir): Create directories
63717         also for files in subdirectories of lib/.
63718
63719 2006-11-05  Bruno Haible  <bruno@clisp.org>
63720
63721         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63722         ANSI C compliant.
63723
63724 2006-11-03  Bruno Haible  <bruno@clisp.org>
63725
63726         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63727         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63728         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63729         (xnboundedmalloc): New inline function.
63730         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63731         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63732         xmalloc.
63733         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63734         xmalloc.
63735         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63736         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63737         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63738         xmalloc.
63739         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63740         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63741         xmalloc.
63742         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63743         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63744         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63745         xmalloc.
63746         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63747         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63748         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63749         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63750         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63751         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63752         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63753
63754 2006-11-03  Bruno Haible  <bruno@clisp.org>
63755
63756         * lib/c-ctype.h [C++]: Define functions without name mangling.
63757         * lib/fwriteerror.h [C++]: Likewise.
63758         * lib/gcd.h [C++]: Likewise.
63759         * lib/linebreak.h [C++]: Likewise.
63760
63761 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63762
63763         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63764         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63765         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63766         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63767         Check for functions and headers just once.
63768         Check for declaration of canonicalize_file_name.
63769         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63770
63771 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63772
63773         * gnulib-tool (func_import): Fix typo in actioncmd.
63774
63775 2006-11-02  Bruno Haible  <bruno@clisp.org>
63776
63777         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63778         newline sequence in the Makefile.am snippet as a space, like "make"
63779         does.
63780         Reported by Roger Persson <perrog@gmail.com>.
63781
63782 2006-11-01  Bruno Haible  <bruno@clisp.org>
63783
63784         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63785         already declared in <string.h>.
63786         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63787
63788 2006-11-01  Bruno Haible  <bruno@clisp.org>
63789
63790         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63791         * lib/strcase.h: Include <string.h>.
63792         (strcasecmp): Define to rpl_strcasecmp here.
63793
63794 2006-11-01  Bruno Haible  <bruno@clisp.org>
63795
63796         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63797
63798 2006-11-01  Eric Blake  <ebb9@byu.net>
63799
63800         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63801
63802         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63803
63804 2006-10-29  Bruno Haible  <bruno@clisp.org>
63805
63806         Make it compile in C++ mode.
63807         * lib/full-write.c (full_rw): Add a cast.
63808
63809 2006-11-01  Bruno Haible  <bruno@clisp.org>
63810
63811         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63812         be POSIX compliant.
63813         Reported by Roger Persson <perrog@gmail.com>.
63814
63815 2006-11-01  Eric Blake  <ebb9@byu.net>
63816
63817         * lib/getopt_.h: Fix comments.
63818
63819 2006-10-31  Eric Blake  <ebb9@byu.net>
63820
63821         * modules/tmpdir (Depends-on): Add sys_stat.
63822         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63823         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63824         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63825         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63826         tempname.
63827
63828 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63829
63830         Avoid some C++ diagnostics reported by Bruno Haible.
63831         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63832         xmalloc.
63833         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63834         (struct slotvec): Move to top level.
63835         (quotearg_n_options): Rewrite to avoid xmalloc.
63836         * lib/xalloc.h (xcharalloc): New function.
63837         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63838         [defined __cplusplus]: Add function template that provides result
63839         type propagation.  This part of the change is from Bruno Haible.
63840
63841 2006-10-29  Bruno Haible  <bruno@clisp.org>
63842
63843         Make it compile in C++ mode.
63844         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63845         * lib/strnlen1.c (strnlen1): Cast memchr result.
63846         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63847         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63848         (create_temp_dir): Rename local variable 'template'.
63849         (compile_csharp_using_sscli): Add cast.
63850         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63851         * lib/findprog.c (find_in_path): Likewise.
63852         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63853         * lib/wait-process.c (register_slave_subprocess): Likewise.
63854
63855 2006-10-22  Bruno Haible  <bruno@clisp.org>
63856
63857         * modules/tsearch: New file.
63858         * lib/tsearch.h: New file.
63859         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63860         * m4/tsearch.m4: New file.
63861         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63862
63863 2006-10-29  Eric Blake  <ebb9@byu.net>
63864
63865         * lib/arcfour.c: Assume config.h.
63866         * lib/arctwo.c: Likewise.
63867         * lib/base64.c: Likewise.
63868         * lib/check-version.c: Likewise.
63869         * lib/crc.c: Likewise.
63870         * lib/des.c: Likewise.
63871         * lib/gc-gnulib.c: Likewise.
63872         * lib/gc-libgcrypt.c: Likewise.
63873         * lib/gc-pbkdf2-sha1.c: Likewise.
63874         * lib/getaddrinfo.c: Likewise.
63875         * lib/getdelim.c: Likewise.
63876         * lib/getline.c: Likewise.
63877         * lib/hmac-md5.c: Likewise.
63878         * lib/hmac-sha1.c: Likewise.
63879         * lib/iconvme.c: Likewise.
63880         * lib/md2.c: Likewise.
63881         * lib/md4.c: Likewise.
63882         * lib/memxor.c: Likewise.
63883         * lib/read-file.c: Likewise.
63884         * lib/readline.c: Likewise.
63885         * lib/rijndael-alg-fst.c: Likewise.
63886         * lib/rijndael-api-fst.c: Likewise.
63887         * lib/xgetdomainname.c: Likewise.
63888
63889 2006-10-28  Eric Blake  <ebb9@byu.net>
63890
63891         * lib/xstrndup.c: Assume config.h.
63892
63893 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63894
63895         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63896         stat-macros.h is now for our own macros, whereas stat_h is for
63897         macros in the <sys/stat.h> name space.
63898         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63899         (STAT_MACROS_H): Remove.
63900         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63901         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63902         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63903         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63904         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63905         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63906         Move these macros to ...
63907         * lib/stat_.h: here.  Don't include stat-macros.h.
63908         * lib/canonicalize.c: Don't include stat-macros.h.
63909         * lib/chown.c: Likewise.
63910         * lib/euidaccess.c: Likewise.
63911         * lib/file-type.c: Likewise.
63912         * lib/filemode.c: Likewise.
63913         * lib/glob.c: Likewise.
63914         * lib/isapipe.c: Likewise.
63915         * lib/lchown.c: Likewise.
63916         * lib/lstat.c: Likewise.
63917         * lib/mkdir-p.c: Likewise.
63918         * lib/rmdir.c: Likewise.
63919         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63921         unless mkdir isn't declared, to speed up 'configure'.
63922         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63923         would define all the S_* symbols.
63924         * modules/canonicalize (Depends-on):
63925         Depend on sys_stat, not stat-macros.
63926         * modules/chown: Likewise.
63927         * modules/euidaccess: Likewise.
63928         * modules/filemode: Likewise.
63929         * modules/file-type: Likewise.
63930         * modules/glob: Likewise.
63931         * modules/isapipe: Likewise.
63932         * modules/lchown: Likewise.
63933         * modules/lstat: Likewise.
63934         * modules/mkancesdirs: Likewise.
63935         * modules/rmdir: Likewise.
63936         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63937         * modules/modechange: Likewise.
63938         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63939         (configure.ac): Remove gl_STAT_MACROS.
63940         * modules/sys_stat (Depends-on): Remove stat-macros.
63941
63942 2006-10-27  Bruno Haible  <bruno@clisp.org>
63943
63944         * m4/signed.m4: Remove file.
63945         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63946         invocation.
63947         * modules/vasnprintf (Files): Remove m4/signed.m4.
63948
63949 2006-10-27  Bruno Haible  <bruno@clisp.org>
63950
63951         Update to GNU gettext 0.16.
63952         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63953         m4/inttypes-h.m4, m4/signed.m4.
63954         * m4/gettext.m4: Update to GNU gettext 0.16.
63955         * m4/intl.m4: New file, from GNU gettext.
63956         * m4/intldir.m4: New file, from GNU gettext.
63957         * config/srclist.txt: Update
63958
63959 2006-10-27  Eric Blake  <ebb9@byu.net>
63960
63961         * MODULES.html.sh: Document tempname.
63962         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63963         dependencies.
63964         (Files): Move lib/tempname.c...
63965         * modules/tempname: ...to this new module.
63966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63967         (gl_PREREQ_TEMPNAME): Move...
63968         * m4/tempname.m4: ...to this new file.
63969         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63970         * modules/sys_stat (Depends-on): Add stat-macros.
63971         * lib/stat_.h (includes): Pick up stat macros.
63972         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63973         if stat macros are broken.
63974         * lib/tempname.c (includes): No need to include "stat-macros.h".
63975         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63976         (direxists, __path_search) [!_LIBC]: Don't compile these in
63977         gnulib; the tmpdir module covers that.
63978         * lib/tempname.h: New file.
63979
63980 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63981
63982         * COPYING: Explain how gnulib-tool converts licence headers.
63983         Almost all wording by Eric Blake.
63984
63985 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * lib/mbchar.h (is_basic_table): Make read-only.
63988         * lib/mbchar.c (is_basic_table): Likewise.
63989         Reported by John Darrington.
63990
63991 2006-10-25  Bruno Haible  <bruno@clisp.org>
63992
63993         * lib/progname.h (set_program_name): Undefine before defining.
63994
63995 2006-10-25  Bruno Haible  <bruno@clisp.org>
63996
63997         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63998         false for non-gcc C++ compilers.
63999         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64000
64001 2006-10-24  Bruno Haible  <bruno@clisp.org>
64002
64003         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
64004         iconv implementations like Irix iconv.
64005
64006 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64007
64008         * modules/vararrays: New file.
64009         * m4/vararrays.m4: New file, taken from diffutils.
64010         * MODULES.html.sh: New module vararrays.
64011
64012 2006-10-24  Karl Berry  <karl@gnu.org>
64013
64014         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
64015         Don't call GNU Unix.
64016
64017 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64018
64019         * users.txt: Add Libtool.
64020
64021         Sync from Libtool:
64022
64023         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64024
64025         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
64026         to gnulib's policy of including config.h unconditionally.
64027
64028 2006-10-24  Bruno Haible  <bruno@clisp.org>
64029
64030         * modules/wcwidth (Files): Add m4/wint_t.m4.
64031         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
64032         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
64033
64034 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
64037         to pacify GCC with some -W flags enabled.  Problem reported by
64038         Bruno Haible.
64039
64040 2006-10-24  Jim Meyering  <jim@meyering.net>
64041
64042         * MODULES.html.sh: Remove uinttostr.  It's not a module.
64043         Reported by Karl Berry.
64044
64045 2006-10-23  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
64048
64049 2006-10-24  Bruno Haible  <bruno@clisp.org>
64050
64051         * lib/gl_list.h: Use C comment style, not C++ comment style.
64052
64053 2006-10-23  Eric Blake  <ebb9@byu.net>
64054
64055         * lib/getaddrinfo.c (includes): Add missing include.
64056
64057 2006-10-23  Bruno Haible  <bruno@clisp.org>
64058             Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         Ability to rename obstack_free.
64061         * lib/obstack.h (__obstack_free): New macro. Declare instead of
64062         obstack_free.
64063         (obstack_free): Invoke the __obstack_free macro.
64064         * lib/obstack.c (obstack_free): Use __obstack_free macro.
64065
64066 2006-10-23  Bruno Haible  <bruno@clisp.org>
64067             Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
64070         __argc, __argv from the declaration. (They are defined as macros on
64071         mingw.)
64072
64073 2006-10-22  Bruno Haible  <bruno@clisp.org>
64074
64075         * doc/gnulib-intro.texi: New file.
64076         * doc/gnulib.texi: Include it.
64077
64078 2006-10-21  Bruno Haible  <bruno@clisp.org>
64079
64080         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
64081         "Introduction", "Miscellanous Notes", "Particular Modules".
64082
64083 2006-10-21  Bruno Haible  <bruno@clisp.org>
64084
64085         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64086         Change mostlyclean-local rule to avoid sh syntax error from bash
64087         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
64088
64089 2006-10-23  Jim Meyering  <jim@meyering.net>
64090
64091         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
64092         in place of snprintf.
64093
64094         * modules/inttostr (Files): Add lib/uinttostr.c.
64095         * lib/uinttostr.c (inttostr): New file/function.
64096         * lib/inttostr.h (uinttostr): Declare.
64097         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
64098         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64099         Add uinttostr.
64100         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
64101
64102 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64103
64104         * lib/canonicalize.c (ELOOP): Define if not already defined.
64105         Problem reported by Bruno Haible in
64106         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
64107
64108 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
64111         Problem reported by Perry Smith and Ville Laurikari.
64112
64113         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
64114         uses.
64115
64116 2006-10-19  Bruno Haible  <bruno@clisp.org>
64117
64118         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
64119         for mingw.
64120
64121 2006-10-19  Bruno Haible  <bruno@clisp.org>
64122
64123         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
64124         Needed for mingw.
64125
64126 2006-10-19  Bruno Haible  <bruno@clisp.org>
64127
64128         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
64129
64130 2006-10-19  Bruno Haible  <bruno@clisp.org>
64131
64132         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
64133         it.
64134
64135 2006-10-19  Bruno Haible  <bruno@clisp.org>
64136
64137         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
64138         invocation.
64139
64140 2006-10-19  Bruno Haible  <bruno@clisp.org>
64141
64142         * gnulib-tool (func_create_testdir): Don't include ftruncate and
64143         mountlist by default.
64144
64145 2006-10-16  Bruno Haible  <bruno@clisp.org>
64146
64147         * lib/c-strstr.c: Include c-strstr.h.
64148
64149 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64150
64151         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
64152         in a slash.
64153
64154 2006-10-18  Bruno Haible  <bruno@clisp.org>
64155
64156         * lib/lock.h [C++]: Wrap definitions in extern "C".
64157
64158 2006-10-18  Bruno Haible  <bruno@clisp.org>
64159
64160         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
64161         gl_LIBOBJS list.
64162
64163 2006-10-18  Bruno Haible  <bruno@clisp.org>
64164
64165         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
64166
64167 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         * lib/xstrtol.h: Include gettext.h.
64170         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
64171         Problem reported by Eric Blake.
64172         * modules/xstrtol (Depends-on): Add gettext-h.
64173
64174 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
64175
64176         * lib/strftime.c (advance): New macro.
64177         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
64178         incomplete type, so you can't add 0 to it.  Problem and patch
64179         reported by Eelco Dolstra for dietlibc.
64180
64181 2006-10-18  Jim Meyering  <jim@meyering.net>
64182
64183         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
64184         type for a local, and rename it: s/up/user_proc/.
64185
64186 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64187
64188         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
64189         READ_UTMP_USER_PROCESS.
64190         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
64191
64192 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64193
64194         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
64195         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
64196
64197 2006-10-17  Eric Blake  <ebb9@byu.net>
64198
64199         * lib/sigprocmask.c (sigprocmask): Fix typo.
64200
64201         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
64202
64203         * modules/clean-temp (Makefile.am): Don't add to make output...
64204         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
64205         config.h.
64206
64207 2006-10-17  Bruno Haible  <bruno@clisp.org>
64208
64209         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
64210         differently if DEFAULT_TEXT_DOMAIN is set.
64211
64212 2006-10-16  Bruno Haible  <bruno@clisp.org>
64213
64214         * lib/clean-temp.c: Include fwriteerror.h.
64215
64216 2006-10-16  Bruno Haible  <bruno@clisp.org>
64217
64218         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
64219
64220 2006-10-16  Bruno Haible  <bruno@clisp.org>
64221
64222         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
64223         * lib/sigprocmask.h: Include <sys/types.h>.
64224         (sigset_t): Use the system's definition if present.
64225
64226 2006-10-17  Eric Blake  <ebb9@byu.net>
64227
64228         * lib/xvasprintf.c (includes): Assume config.h.
64229         * lib/xasprintf.c (includes): Likewise.
64230
64231 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
64234         at least as wide as intmax_t.
64235
64236 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
64237
64238         (Imported from Automake.)
64239         * build-aux/gnupload: Update to version 1.1 of directive file.
64240
64241 2006-10-16  Eric Blake  <ebb9@byu.net>
64242
64243         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
64244         match Automake 1.10a.
64245
64246 2006-10-14  Bruno Haible  <bruno@clisp.org>
64247
64248         * modules/sigprocmask: New file.
64249         * lib/sigprocmask.h: New file.
64250         * lib/sigprocmask.c: New file.
64251         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
64252         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
64253         request sigprocmask.o.
64254         (gl_PREREQ_SIGPROCMASK): New macro.
64255         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
64256         (Depends-on): Add sigprocmask.
64257         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
64258         gt_SIGNALBLOCKING. Test for 'raise' only once.
64259         * lib/fatal-signal.c: Include sigprocmask.h.
64260         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
64261         unblock_fatal_signals): Define always.
64262         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64263         sigprocmask.
64264
64265 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64266
64267         Sync from Automake.
64268         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
64269         which incorrectly sets the mode of an existing destination
64270         directory.  In some cases the unpatched install-sh could do the
64271         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
64272         system.  We hope this is rare in practice, but it's clearly worth
64273         fixing.  Problem reported by Alex Unleashed in
64274         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
64275         Also, don't bother to check for -m bugs unless we're using -m;
64276         suggested by Stepan Kasal.
64277
64278 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64279
64280         Sync from Automake.
64281         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
64282         `-c' flag, so they appear at the same position as in %FASTDEP%
64283         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
64284         which ignores unknown options only after the first non-option.
64285         Bug report against M4 by Nelson H. F. Beebe.
64286
64287 2006-10-13  Jim Meyering  <jim@meyering.net>
64288
64289         Fix a bug in yesterday's change.
64290         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
64291         p->fts_statp->st_dev would be used uninitialized.
64292         Ensures that we always call fts_stat on the very first entry.
64293         Miklos Szeredi reported that find -xdev stopped working.
64294
64295 2006-10-12  Bruno Haible  <bruno@clisp.org>
64296
64297         * gnulib-tool (func_get_automake_snippet): Append an automatically
64298         computed EXTRA_DIST augmentation.
64299         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
64300         * modules/alloca-opt (Makefile.am): Likewise.
64301         * modules/allocsa (Makefile.am): Likewise.
64302         * modules/arcfour (Makefile.am): Likewise.
64303         * modules/arctwo (Makefile.am): Likewise.
64304         * modules/argmatch (Makefile.am): Likewise.
64305         * modules/argz (Makefile.am): Likewise.
64306         * modules/atexit (Makefile.am): Likewise.
64307         * modules/backupfile (Makefile.am): Likewise.
64308         * modules/byteswap (Makefile.am): Likewise.
64309         * modules/c-strtod (Makefile.am): Likewise.
64310         * modules/c-strtold (Makefile.am): Likewise.
64311         * modules/calloc (Makefile.am): Likewise.
64312         * modules/canon-host (Makefile.am): Likewise.
64313         * modules/canonicalize (Makefile.am): Likewise.
64314         * modules/chdir-long (Makefile.am): Likewise.
64315         * modules/chdir-safer (Makefile.am): Likewise.
64316         * modules/check-version (Makefile.am): Likewise.
64317         * modules/chown (Makefile.am): Likewise.
64318         * modules/cloexec (Makefile.am): Likewise.
64319         * modules/close-stream (Makefile.am): Likewise.
64320         * modules/closeout (Makefile.am): Likewise.
64321         * modules/crc (Makefile.am): Likewise.
64322         * modules/csharpexec (Makefile.am): Likewise.
64323         * modules/cycle-check (Makefile.am): Likewise.
64324         * modules/des (Makefile.am): Likewise.
64325         * modules/dev-ino (Makefile.am): Likewise.
64326         * modules/dirfd (Makefile.am): Likewise.
64327         * modules/dirname (Makefile.am): Likewise.
64328         * modules/dup2 (Makefile.am): Likewise.
64329         * modules/eealloc (Makefile.am): Likewise.
64330         * modules/error (Makefile.am): Likewise.
64331         * modules/euidaccess (Makefile.am): Likewise.
64332         * modules/exclude (Makefile.am): Likewise.
64333         * modules/exitfail (Makefile.am): Likewise.
64334         * modules/fcntl-safer (Makefile.am): Likewise.
64335         * modules/fcntl (Makefile.am): Likewise.
64336         * modules/file-type (Makefile.am): Likewise.
64337         * modules/fileblocks (Makefile.am): Likewise.
64338         * modules/filemode (Makefile.am): Likewise.
64339         * modules/filenamecat (Makefile.am): Likewise.
64340         * modules/fnmatch (Makefile.am): Likewise.
64341         * modules/fopen-safer (Makefile.am): Likewise.
64342         * modules/fpending (Makefile.am): Likewise.
64343         * modules/fprintftime (Makefile.am): Likewise.
64344         * modules/free (Makefile.am): Likewise.
64345         * modules/fsusage (Makefile.am): Likewise.
64346         * modules/ftruncate (Makefile.am): Likewise.
64347         * modules/fts (Makefile.am): Likewise.
64348         * modules/gc-arcfour (Makefile.am): Likewise.
64349         * modules/gc-des (Makefile.am): Likewise.
64350         * modules/gc-hmac-md5 (Makefile.am): Likewise.
64351         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
64352         * modules/gc-md4 (Makefile.am): Likewise.
64353         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64354         * modules/gc-sha1 (Makefile.am): Likewise.
64355         * modules/gc (Makefile.am): Likewise.
64356         * modules/getaddrinfo (Makefile.am): Likewise.
64357         * modules/getcwd (Makefile.am): Likewise.
64358         * modules/getdelim (Makefile.am): Likewise.
64359         * modules/getdomainname (Makefile.am): Likewise.
64360         * modules/getgroups (Makefile.am): Likewise.
64361         * modules/gethostname (Makefile.am): Likewise.
64362         * modules/gethrxtime (Makefile.am): Likewise.
64363         * modules/getline (Makefile.am): Likewise.
64364         * modules/getloadavg (Makefile.am): Likewise.
64365         * modules/getlogin_r (Makefile.am): Likewise.
64366         * modules/getndelim2 (Makefile.am): Likewise.
64367         * modules/getopt (Makefile.am): Likewise.
64368         * modules/getpagesize (Makefile.am): Likewise.
64369         * modules/getpass-gnu (Makefile.am): Likewise.
64370         * modules/getpass (Makefile.am): Likewise.
64371         * modules/getsubopt (Makefile.am): Likewise.
64372         * modules/gettime (Makefile.am): Likewise.
64373         * modules/gettimeofday (Makefile.am): Likewise.
64374         * modules/getugroups (Makefile.am): Likewise.
64375         * modules/getusershell (Makefile.am): Likewise.
64376         * modules/glob (Makefile.am): Likewise.
64377         * modules/group-member (Makefile.am): Likewise.
64378         * modules/hard-locale (Makefile.am): Likewise.
64379         * modules/hash (Makefile.am): Likewise.
64380         * modules/hmac-md5 (Makefile.am): Likewise.
64381         * modules/hmac-sha1 (Makefile.am): Likewise.
64382         * modules/human (Makefile.am): Likewise.
64383         * modules/idcache (Makefile.am): Likewise.
64384         * modules/imaxabs (Makefile.am): Likewise.
64385         * modules/imaxdiv (Makefile.am): Likewise.
64386         * modules/inet_ntop (Makefile.am): Likewise.
64387         * modules/inet_pton (Makefile.am): Likewise.
64388         * modules/intprops (Makefile.am): Likewise.
64389         * modules/inttostr (Makefile.am): Likewise.
64390         * modules/inttypes (Makefile.am): Likewise.
64391         * modules/isapipe (Makefile.am): Likewise.
64392         * modules/javaversion (Makefile.am): Likewise.
64393         * modules/lchmod (Makefile.am): Likewise.
64394         * modules/lchown (Makefile.am): Likewise.
64395         * modules/localcharset (Makefile.am): Likewise.
64396         * modules/long-options (Makefile.am): Likewise.
64397         * modules/lstat (Makefile.am): Likewise.
64398         * modules/malloc (Makefile.am): Likewise.
64399         * modules/mathl (Makefile.am): Likewise.
64400         * modules/mbchar (Makefile.am): Likewise.
64401         * modules/md2 (Makefile.am): Likewise.
64402         * modules/md4 (Makefile.am): Likewise.
64403         * modules/md5 (Makefile.am): Likewise.
64404         * modules/memcasecmp (Makefile.am): Likewise.
64405         * modules/memchr (Makefile.am): Likewise.
64406         * modules/memcmp (Makefile.am): Likewise.
64407         * modules/memcoll (Makefile.am): Likewise.
64408         * modules/memcpy (Makefile.am): Likewise.
64409         * modules/memmem (Makefile.am): Likewise.
64410         * modules/memmove (Makefile.am): Likewise.
64411         * modules/mempcpy (Makefile.am): Likewise.
64412         * modules/memrchr (Makefile.am): Likewise.
64413         * modules/memset (Makefile.am): Likewise.
64414         * modules/memxor (Makefile.am): Likewise.
64415         * modules/mkancesdirs (Makefile.am): Likewise.
64416         * modules/mkdir-p (Makefile.am): Likewise.
64417         * modules/mkdir (Makefile.am): Likewise.
64418         * modules/mkdtemp (Makefile.am): Likewise.
64419         * modules/mkstemp (Makefile.am): Likewise.
64420         * modules/mktime (Makefile.am): Likewise.
64421         * modules/modechange (Makefile.am): Likewise.
64422         * modules/mountlist (Makefile.am): Likewise.
64423         * modules/nanosleep (Makefile.am): Likewise.
64424         * modules/obstack (Makefile.am): Likewise.
64425         * modules/openat (Makefile.am): Likewise.
64426         * modules/pagealign_alloc (Makefile.am): Likewise.
64427         * modules/pathmax (Makefile.am): Likewise.
64428         * modules/physmem (Makefile.am): Likewise.
64429         * modules/poll (Makefile.am): Likewise.
64430         * modules/posixtm (Makefile.am): Likewise.
64431         * modules/posixver (Makefile.am): Likewise.
64432         * modules/putenv (Makefile.am): Likewise.
64433         * modules/quote (Makefile.am): Likewise.
64434         * modules/quotearg (Makefile.am): Likewise.
64435         * modules/raise (Makefile.am): Likewise.
64436         * modules/read-file (Makefile.am): Likewise.
64437         * modules/readline (Makefile.am): Likewise.
64438         * modules/readlink (Makefile.am): Likewise.
64439         * modules/readtokens (Makefile.am): Likewise.
64440         * modules/readutmp (Makefile.am): Likewise.
64441         * modules/realloc (Makefile.am): Likewise.
64442         * modules/regex (Makefile.am): Likewise.
64443         * modules/rename-dest-slash (Makefile.am): Likewise.
64444         * modules/rename (Makefile.am): Likewise.
64445         * modules/rijndael (Makefile.am): Likewise.
64446         * modules/rmdir (Makefile.am): Likewise.
64447         * modules/rpmatch (Makefile.am): Likewise.
64448         * modules/safe-read (Makefile.am): Likewise.
64449         * modules/safe-write (Makefile.am): Likewise.
64450         * modules/same-inode (Makefile.am): Likewise.
64451         * modules/same (Makefile.am): Likewise.
64452         * modules/save-cwd (Makefile.am): Likewise.
64453         * modules/savedir (Makefile.am): Likewise.
64454         * modules/setenv (Makefile.am): Likewise.
64455         * modules/settime (Makefile.am): Likewise.
64456         * modules/sha1 (Makefile.am): Likewise.
64457         * modules/sig2str (Makefile.am): Likewise.
64458         * modules/snprintf (Makefile.am): Likewise.
64459         * modules/stat-macros (Makefile.am): Likewise.
64460         * modules/stat-time (Makefile.am): Likewise.
64461         * modules/stdbool (Makefile.am): Likewise.
64462         * modules/stdint (Makefile.am): Likewise.
64463         * modules/stdlib-safer (Makefile.am): Likewise.
64464         * modules/stpcpy (Makefile.am): Likewise.
64465         * modules/stpncpy (Makefile.am): Likewise.
64466         * modules/strcase (Makefile.am): Likewise.
64467         * modules/strcasestr (Makefile.am): Likewise.
64468         * modules/strchrnul (Makefile.am): Likewise.
64469         * modules/strcspn (Makefile.am): Likewise.
64470         * modules/strdup (Makefile.am): Likewise.
64471         * modules/strerror (Makefile.am): Likewise.
64472         * modules/strftime (Makefile.am): Likewise.
64473         * modules/strndup (Makefile.am): Likewise.
64474         * modules/strnlen (Makefile.am): Likewise.
64475         * modules/strpbrk (Makefile.am): Likewise.
64476         * modules/strsep (Makefile.am): Likewise.
64477         * modules/strstr (Makefile.am): Likewise.
64478         * modules/strtod (Makefile.am): Likewise.
64479         * modules/strtoimax (Makefile.am): Likewise.
64480         * modules/strtok_r (Makefile.am): Likewise.
64481         * modules/strtol (Makefile.am): Likewise.
64482         * modules/strtoll (Makefile.am): Likewise.
64483         * modules/strtoul (Makefile.am): Likewise.
64484         * modules/strtoull (Makefile.am): Likewise.
64485         * modules/strtoumax (Makefile.am): Likewise.
64486         * modules/strverscmp (Makefile.am): Likewise.
64487         * modules/sys_socket (Makefile.am): Likewise.
64488         * modules/sys_stat (Makefile.am): Likewise.
64489         * modules/sysexits (Makefile.am): Likewise.
64490         * modules/time_r (Makefile.am): Likewise.
64491         * modules/timegm (Makefile.am): Likewise.
64492         * modules/timespec (Makefile.am): Likewise.
64493         * modules/tmpfile-safer (Makefile.am): Likewise.
64494         * modules/trim (Makefile.am): Likewise.
64495         * modules/unistd-safer (Makefile.am): Likewise.
64496         * modules/unlinkdir (Makefile.am): Likewise.
64497         * modules/unlocked-io (Makefile.am): Likewise.
64498         * modules/userspec (Makefile.am): Likewise.
64499         * modules/utime (Makefile.am): Likewise.
64500         * modules/utimecmp (Makefile.am): Likewise.
64501         * modules/utimens (Makefile.am): Likewise.
64502         * modules/vasnprintf (Makefile.am): Likewise.
64503         * modules/vasprintf (Makefile.am): Likewise.
64504         * modules/vsnprintf (Makefile.am): Likewise.
64505         * modules/xalloc (Makefile.am): Likewise.
64506         * modules/xgetcwd (Makefile.am): Likewise.
64507         * modules/xnanosleep (Makefile.am): Likewise.
64508         * modules/xreadlink (Makefile.am): Likewise.
64509         * modules/xstrtod (Makefile.am): Likewise.
64510         * modules/xstrtol (Makefile.am): Likewise.
64511         * modules/xstrtold (Makefile.am): Likewise.
64512         * modules/yesno (Makefile.am): Likewise.
64513         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
64514
64515 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64516
64517         * modules/error (Makefile.am): Distribute files through
64518         EXTRA_DIST, not lib_SOURCES.
64519
64520 2006-10-12  Eric Blake  <ebb9@byu.net>
64521
64522         * modules/error (Makefile.am): Distribute files in /lib.
64523         * modules/obstack (Makefile.am): Likewise.
64524
64525 2006-10-12  Bruno Haible  <bruno@clisp.org>
64526
64527         * modules/acl (Makefile.am): Distribute all files in lib/ through
64528         EXTRA_DIST.
64529         * modules/arcfour (Makefile.am): Likewise.
64530         * modules/arctwo (Makefile.am): Likewise.
64531         * modules/argmatch (Makefile.am): Likewise.
64532         * modules/argz (Makefile.am): Likewise.
64533         * modules/atexit (Makefile.am): Likewise.
64534         * modules/backupfile (Makefile.am): Likewise.
64535         * modules/c-strtod (Makefile.am): Likewise.
64536         * modules/c-strtold (Makefile.am): Likewise.
64537         * modules/calloc (Makefile.am): Likewise.
64538         * modules/canon-host (Makefile.am): Likewise.
64539         * modules/canonicalize (Makefile.am): Likewise.
64540         * modules/chdir-long (Makefile.am): Likewise.
64541         * modules/chdir-safer (Makefile.am): Likewise.
64542         * modules/check-version (Makefile.am): Likewise.
64543         * modules/chown (Makefile.am): Likewise.
64544         * modules/cloexec (Makefile.am): Likewise.
64545         * modules/close-stream (Makefile.am): Likewise.
64546         * modules/closeout (Makefile.am): Likewise.
64547         * modules/crc (Makefile.am): Likewise.
64548         * modules/cycle-check (Makefile.am): Likewise.
64549         * modules/des (Makefile.am): Likewise.
64550         * modules/dirfd (Makefile.am): Likewise.
64551         * modules/dirname (Makefile.am): Likewise.
64552         * modules/dup2 (Makefile.am): Likewise.
64553         * modules/euidaccess (Makefile.am): Likewise.
64554         * modules/exclude (Makefile.am): Likewise.
64555         * modules/exitfail (Makefile.am): Likewise.
64556         * modules/fcntl-safer (Makefile.am): Likewise.
64557         * modules/file-type (Makefile.am): Likewise.
64558         * modules/fileblocks (Makefile.am): Likewise.
64559         * modules/filemode (Makefile.am): Likewise.
64560         * modules/filenamecat (Makefile.am): Likewise.
64561         * modules/fnmatch (Makefile.am): Likewise.
64562         * modules/fopen-safer (Makefile.am): Likewise.
64563         * modules/fpending (Makefile.am): Likewise.
64564         * modules/fprintftime (Makefile.am): Likewise.
64565         * modules/free (Makefile.am): Likewise.
64566         * modules/fsusage (Makefile.am): Likewise.
64567         * modules/ftruncate (Makefile.am): Likewise.
64568         * modules/fts (Makefile.am): Likewise.
64569         * modules/gc (Makefile.am): Likewise.
64570         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64571         * modules/getaddrinfo (Makefile.am): Likewise.
64572         * modules/getcwd (Makefile.am): Likewise.
64573         * modules/getdelim (Makefile.am): Likewise.
64574         * modules/getdomainname (Makefile.am): Likewise.
64575         * modules/getgroups (Makefile.am): Likewise.
64576         * modules/gethostname (Makefile.am): Likewise.
64577         * modules/gethrxtime (Makefile.am): Likewise.
64578         * modules/getline (Makefile.am): Likewise.
64579         * modules/getloadavg (Makefile.am): Likewise.
64580         * modules/getlogin_r (Makefile.am): Likewise.
64581         * modules/getopt (Makefile.am): Likewise.
64582         * modules/getpass (Makefile.am): Likewise.
64583         * modules/getpass-gnu (Makefile.am): Likewise.
64584         * modules/getsubopt (Makefile.am): Likewise.
64585         * modules/gettime (Makefile.am): Likewise.
64586         * modules/gettimeofday (Makefile.am): Likewise.
64587         * modules/getugroups (Makefile.am): Likewise.
64588         * modules/getusershell (Makefile.am): Likewise.
64589         * modules/glob (Makefile.am): Likewise.
64590         * modules/group-member (Makefile.am): Likewise.
64591         * modules/hard-locale (Makefile.am): Likewise.
64592         * modules/hash (Makefile.am): Likewise.
64593         * modules/hmac-md5 (Makefile.am): Likewise.
64594         * modules/hmac-sha1 (Makefile.am): Likewise.
64595         * modules/human (Makefile.am): Likewise.
64596         * modules/idcache (Makefile.am): Likewise.
64597         * modules/imaxabs (Makefile.am): Likewise.
64598         * modules/imaxdiv (Makefile.am): Likewise.
64599         * modules/inet_ntop (Makefile.am): Likewise.
64600         * modules/inet_pton (Makefile.am): Likewise.
64601         * modules/inttostr (Makefile.am): Likewise.
64602         * modules/isapipe (Makefile.am): Likewise.
64603         * modules/lchown (Makefile.am): Likewise.
64604         * modules/long-options (Makefile.am): Likewise.
64605         * modules/lstat (Makefile.am): Likewise.
64606         * modules/malloc (Makefile.am): Likewise.
64607         * modules/mathl (Makefile.am): Likewise.
64608         * modules/mbchar (Makefile.am): Likewise.
64609         * modules/md2 (Makefile.am): Likewise.
64610         * modules/md4 (Makefile.am): Likewise.
64611         * modules/md5 (Makefile.am): Likewise.
64612         * modules/memcasecmp (Makefile.am): Likewise.
64613         * modules/memchr (Makefile.am): Likewise.
64614         * modules/memcmp (Makefile.am): Likewise.
64615         * modules/memcoll (Makefile.am): Likewise.
64616         * modules/memcpy (Makefile.am): Likewise.
64617         * modules/memmem (Makefile.am): Likewise.
64618         * modules/memmove (Makefile.am): Likewise.
64619         * modules/mempcpy (Makefile.am): Likewise.
64620         * modules/memrchr (Makefile.am): Likewise.
64621         * modules/memset (Makefile.am): Likewise.
64622         * modules/memxor (Makefile.am): Likewise.
64623         * modules/mkancesdirs (Makefile.am): Likewise.
64624         * modules/mkdir (Makefile.am): Likewise.
64625         * modules/mkdir-p (Makefile.am): Likewise.
64626         * modules/mkdtemp (Makefile.am): Likewise.
64627         * modules/mkstemp (Makefile.am): Likewise.
64628         * modules/mktime (Makefile.am): Likewise.
64629         * modules/modechange (Makefile.am): Likewise.
64630         * modules/mountlist (Makefile.am): Likewise.
64631         * modules/nanosleep (Makefile.am): Likewise.
64632         * modules/openat (Makefile.am): Likewise.
64633         * modules/pagealign_alloc (Makefile.am): Likewise.
64634         * modules/physmem (Makefile.am): Likewise.
64635         * modules/poll (Makefile.am): Likewise.
64636         * modules/posixtm (Makefile.am): Likewise.
64637         * modules/posixver (Makefile.am): Likewise.
64638         * modules/putenv (Makefile.am): Likewise.
64639         * modules/quote (Makefile.am): Likewise.
64640         * modules/quotearg (Makefile.am): Likewise.
64641         * modules/raise (Makefile.am): Likewise.
64642         * modules/read-file (Makefile.am): Likewise.
64643         * modules/readline (Makefile.am): Likewise.
64644         * modules/readlink (Makefile.am): Likewise.
64645         * modules/readtokens (Makefile.am): Likewise.
64646         * modules/readutmp (Makefile.am): Likewise.
64647         * modules/realloc (Makefile.am): Likewise.
64648         * modules/regex (Makefile.am): Likewise.
64649         * modules/rename (Makefile.am): Likewise.
64650         * modules/rename-dest-slash (Makefile.am): Likewise.
64651         * modules/rijndael (Makefile.am): Likewise.
64652         * modules/rmdir (Makefile.am): Likewise.
64653         * modules/rpmatch (Makefile.am): Likewise.
64654         * modules/safe-read (Makefile.am): Likewise.
64655         * modules/safe-write (Makefile.am): Likewise.
64656         * modules/same (Makefile.am): Likewise.
64657         * modules/save-cwd (Makefile.am): Likewise.
64658         * modules/savedir (Makefile.am): Likewise.
64659         * modules/setenv (Makefile.am): Likewise.
64660         * modules/settime (Makefile.am): Likewise.
64661         * modules/sha1 (Makefile.am): Likewise.
64662         * modules/sig2str (Makefile.am): Likewise.
64663         * modules/snprintf (Makefile.am): Likewise.
64664         * modules/stdlib-safer (Makefile.am): Likewise.
64665         * modules/stpcpy (Makefile.am): Likewise.
64666         * modules/stpncpy (Makefile.am): Likewise.
64667         * modules/strcase (Makefile.am): Likewise.
64668         * modules/strcasestr (Makefile.am): Likewise.
64669         * modules/strchrnul (Makefile.am): Likewise.
64670         * modules/strcspn (Makefile.am): Likewise.
64671         * modules/strdup (Makefile.am): Likewise.
64672         * modules/strerror (Makefile.am): Likewise.
64673         * modules/strftime (Makefile.am): Likewise.
64674         * modules/strndup (Makefile.am): Likewise.
64675         * modules/strnlen (Makefile.am): Likewise.
64676         * modules/strpbrk (Makefile.am): Likewise.
64677         * modules/strsep (Makefile.am): Likewise.
64678         * modules/strstr (Makefile.am): Likewise.
64679         * modules/strtod (Makefile.am): Likewise.
64680         * modules/strtoimax (Makefile.am): Likewise.
64681         * modules/strtok_r (Makefile.am): Likewise.
64682         * modules/strtol (Makefile.am): Likewise.
64683         * modules/strtoll (Makefile.am): Likewise.
64684         * modules/strtoul (Makefile.am): Likewise.
64685         * modules/strtoull (Makefile.am): Likewise.
64686         * modules/strtoumax (Makefile.am): Likewise.
64687         * modules/strverscmp (Makefile.am): Likewise.
64688         * modules/time_r (Makefile.am): Likewise.
64689         * modules/timegm (Makefile.am): Likewise.
64690         * modules/tmpfile-safer (Makefile.am): Likewise.
64691         * modules/unistd-safer (Makefile.am): Likewise.
64692         * modules/unlinkdir (Makefile.am): Likewise.
64693         * modules/userspec (Makefile.am): Likewise.
64694         * modules/utime (Makefile.am): Likewise.
64695         * modules/utimecmp (Makefile.am): Likewise.
64696         * modules/utimens (Makefile.am): Likewise.
64697         * modules/vasnprintf (Makefile.am): Likewise.
64698         * modules/vasprintf (Makefile.am): Likewise.
64699         * modules/vsnprintf (Makefile.am): Likewise.
64700         * modules/xalloc (Makefile.am): Likewise.
64701         * modules/xgetcwd (Makefile.am): Likewise.
64702         * modules/xnanosleep (Makefile.am): Likewise.
64703         * modules/xreadlink (Makefile.am): Likewise.
64704         * modules/xstrtod (Makefile.am): Likewise.
64705         * modules/xstrtol (Makefile.am): Likewise.
64706         * modules/xstrtold (Makefile.am): Likewise.
64707         * modules/yesno (Makefile.am): Likewise.
64708
64709 2006-10-12  Jim Meyering  <jim@meyering.net>
64710
64711         * m4/getloadavg.m4: Revert the change below.
64712
64713         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64714         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64715         fail with a symlink, which is what coreutils' ./bootstrap now
64716         creates by default.
64717
64718 2006-10-12  Bruno Haible  <bruno@clisp.org>
64719
64720         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64721         mingw.
64722         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64723         MSVC and mingw explicitly.
64724
64725 2006-10-11  Simon Josefsson  <jas@extundo.com>
64726             Bruno Haible  <bruno@clisp.org>
64727
64728         Add support for multiple gnulib-tool invocations in the scope of a
64729         single configure.ac file.
64730         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64731         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64732         with the same contents as the _LIBADD variable.
64733         (func_emit_initmacro_start, func_emit_initmacro_end,
64734         func_emit_initmacro_done): New functions.
64735         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64736         gl_LIBOBJS and gl_LTLIBOBJS.
64737
64738 2006-10-11  Bruno Haible  <bruno@clisp.org>
64739
64740         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64741         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64742         autoreconf. Instead, invoke autopoint explicitly but move back the
64743         *.m4 files from gnulib.
64744
64745 2006-10-11  Bruno Haible  <bruno@clisp.org>
64746
64747         * gnulib-tool (func_usage): Make module names after --create-testdir
64748         optional.
64749         (func_create_testdir): If no module was specified, use nearly all
64750         modules.
64751
64752 2006-10-12  Jim Meyering  <jim@meyering.net>
64753
64754         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64755         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64756         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64757         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64758         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64759         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64760         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64761         (fts_set_stat_required): New function.
64762         (fts_open): Defer the calls to fts_stat, if possible or requested.
64763         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64764         into fts_stat itself.
64765         (fts_read): Perform any required (deferred) fts_stat call.
64766         (fts_build): Likewise, for the directory we're about to open and read.
64767         In the readdir loop, carefully decide whether each entry will require
64768         an eventual call to fts_stat, using dirent.d_type info if available.
64769         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64770         a command line argument into this function.  Update all callers.
64771         Map a return value of FTS_DOT to FTS_D for a command line argument.
64772         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64773         Thanks to Miklos Szeredi for his tenacity and for the initial
64774         bug report about "find" failing on a FUSE-based file system.
64775
64776         * lib/fts.c (fts_open): Use consistent indentation.
64777
64778 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64779
64780         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64781         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64782         reported by Jim Meyering.  All uses of cache variables renamed
64783         to match Autoconf's.
64784         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64785         the other one.
64786
64787         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64788         Fix misspelling in diagnostic.
64789
64790 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64791
64792         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64793         defined.  Problem reported by Matthew Woehlke.
64794
64795         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64796         Add support for Tandem NonStop R series.
64797         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64798         Use new macro.
64799
64800         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64801         (has_trailing_slash): Omit size arg; all callers changed.
64802         Omit 'inline', since it doesn't help performance and we'd
64803         need to configure it.
64804         Don't count //, ///, etc. as having a trailing slash.
64805         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64806         (rpl_rename_dest_slash): On failure, use rename's errno rather
64807         than (in some cases) an incorrect or junk errno.
64808         Simplify code by removing need to compute length; this does
64809         cause it to make two passes instead of one over the file name,
64810         but it's worth it.
64811
64812         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64813         change, since Autoconf's version may no longer be appropriate now
64814         that we are using CVS Autoconf's version.  Add support for Tandem.
64815
64816 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64817             Bruno Haible  <bruno@clisp.org>
64818
64819         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64820         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64821         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64822         gl_AC_TYPE_LONG_LONG.
64823
64824         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64825         instead of HAVE_LONG_LONG.
64826         * lib/printf-args.c (printf_fetchargs): Likewise.
64827         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64828         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64829         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64830         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64831         gl_AC_TYPE_LONG_LONG.
64832
64833 2006-10-11  Bruno Haible  <bruno@clisp.org>
64834
64835         * m4/longlong.m4: Add comments.
64836         * m4/ulonglong.m4: Likewise.
64837
64838 2006-10-10  Bruno Haible  <bruno@clisp.org>
64839
64840         Make it possible to #define stpcpy, strdup to aliases.
64841         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64842         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64843
64844 2006-10-10  Bruno Haible  <bruno@clisp.org>
64845
64846         Make it possible to #define gcd to an alias.
64847         * lib/gcd.c: Include config.h.
64848
64849 2006-10-10  Bruno Haible  <bruno@clisp.org>
64850
64851         Make it possible to #define c_isascii to an alias.
64852         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64853         defined. Undefine the macros before defining them, to avoid gcc
64854         warnings.
64855         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64856         define NO_C_CTYPE_MACROS early.
64857
64858 2006-10-10  Bruno Haible  <bruno@clisp.org>
64859
64860         Make it possible to #define set_program_name to an alias.
64861         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64862         ENABLE_RELOCATABLE early.
64863
64864 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64865
64866         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64867         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64868         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64869         More generally, don't assume that 64-bit signed int is available
64870         if unsigned int is, and vice versa.
64871         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64872         unsigned symbols, not on their signed counterparts.
64873         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64874         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64875         (UINT64_C, UINTMAX_C):
64876         Likewise.
64877         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64878         unsigned counterparts.
64879         (Have_long_long, Unsigned): New macros.
64880         (Int): Renamed from INT.
64881         (strtoimax): Use the new macros.
64882         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64883         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64884         * modules/inttypes (inttypes.h): Substitute
64885         HAVE_UNSIGNED_LONG_LONG_INT.
64886         * modules/stdint (stdint.h): Likewise.
64887         (Files): Add m4/ulonglong.m4.
64888
64889 2006-10-10  Bruno Haible  <bruno@clisp.org>
64890
64891         Fix a gcc -Wshadow warning.
64892         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64893         to 'bucket'.
64894         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64895         gl_linked_indexof_from_to): Likewise.
64896         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64897         Likewise.
64898         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64899         Likewise.
64900         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64901         Reported by Eric Blake.
64902
64903 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64906         for NetBSD.  Problem reported by Bruno Haible.
64907
64908 2006-10-09  Jim Meyering  <jim@meyering.net>
64909
64910         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64911         Patch from Bruno Haible.
64912
64913 2006-10-09  Jim Meyering  <jim@meyering.net>
64914
64915         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64916         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64917         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64918
64919 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         Don't include <config.h> twice; this doesn't work in some cases,
64922         e.g., when config.h has "#define intmax_t long long int" and
64923         we include <config.h>, <inttypes.h>, <config.h> in that order.
64924         Problem reported by Matthew Woehlke in:
64925         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64926         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64927         * lib/fts-cycle.c: Don't include config.h.
64928         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64929         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64930         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64931         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64932         inttypes.h.
64933         * lib/xstrtoumax.c: Likewise.
64934         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64935         __strtol and the like, so that this module is more like its siblings.
64936         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64937         Remove; no longer needed now that we assume gnulib inttypes.h.
64938
64939 2006-10-08  Bruno Haible  <bruno@clisp.org>
64940
64941         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64942         option.
64943
64944 2006-10-07  Jim Meyering  <jim@meyering.net>
64945
64946         * modules/inttypes (inttypes.h): Revert what seems to have been
64947         an inadvertent part of today's change: use "|", not "/" in the
64948         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64949
64950 2006-10-07  Bruno Haible  <bruno@clisp.org>
64951
64952         * modules/sublist: New file.
64953
64954 2006-10-07  Bruno Haible  <bruno@clisp.org>
64955
64956         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64957         * modules/argz (argz.h): Likewise.
64958         * modules/arpa_inet (arpa/inet.h): Likewise.
64959         * modules/byteswap (byteswap.h): Likewise.
64960         * modules/configmake (configmake.h): Likewise.
64961         * modules/fcntl (fcntl.h): Likewise.
64962         * modules/fnmatch (fnmatch.h): Likewise.
64963         * modules/getopt (getopt.h): Likewise.
64964         * modules/glob (glob.h): Likewise.
64965         * modules/inttypes (inttypes.h): Likewise.
64966         * modules/netinet_in (netinet/in.h): Likewise.
64967         * modules/poll (poll.h): Likewise.
64968         * modules/stdbool (stdbool.h): Likewise.
64969         * modules/stdint (stdint.h): Likewise.
64970         * modules/sys_select (sys/select.h): Likewise.
64971         * modules/sys_socket (sys/socket.h): Likewise.
64972         * modules/sys_stat (sys/stat.h): Likewise.
64973         * modules/sysexits (sysexits.h): Likewise.
64974         * modules/unistd (unistd.h): Likewise.
64975         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64976         Add a "DO NOT EDIT" comment to the generated file.
64977         (func_import): Likewise for gnulib-comp.m4.
64978
64979 2006-10-07  Bruno Haible  <bruno@clisp.org>
64980
64981         * lib/gl_sublist.h: New file.
64982         * lib/gl_sublist.c: New file.
64983
64984 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64985
64986         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64987         name (relative to the original working directory) and the file
64988         name component (relative to the temporary working directory).  All
64989         callers changed.
64990         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64991         * lib/mkdir-p.c (make_dir_parents): Likewise.
64992         * lib/mkdir-p.h (make_dir_parents): Likewise.
64993
64994 2006-10-06  Eric Blake  <ebb9@byu.net>
64995
64996         Define several macros for use by the clean-temp module.
64997         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64998         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64999         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
65000
65001         * lib/clean-temp.h (close_stream_temp): New declaration.
65002         * lib/clean-temp.c (includes): Pull in headers according to what
65003         other modules are in use.
65004         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
65005
65006 2006-10-06  Bruno Haible  <bruno@clisp.org>
65007
65008         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
65009         instead of fopen, fwriteerror.
65010
65011 2006-10-06  Bruno Haible  <bruno@clisp.org>
65012
65013         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
65014         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
65015         int.
65016         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
65017         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
65018         Return an error indicator.
65019         Suggested by Eric Blake.
65020
65021 2006-10-06  Bruno Haible  <bruno@clisp.org>
65022
65023         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
65024         Reported by Eric Blake.
65025
65026 2006-10-06  Bruno Haible  <bruno@clisp.org>
65027
65028         * modules/closeout (Description): Mention stderr too.
65029
65030 2006-10-06  Bruno Haible  <bruno@clisp.org>
65031         and Paul Eggert  <eggert@cs.ucla.edu>
65032
65033         * lib/closeout.c (close_stdout): Also close stderr.
65034         * lib/closeout.h: Update comment.
65035
65036 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65037
65038         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
65039         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
65040         * lib/dirchownmod.c: Include lchown.h.
65041         * lib/lchown.c: Don't include files that lchown.h now includes.
65042         Don't declare chown, since lchown.h now does that.
65043         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
65044         (lchown): Define to rpl_chown if lchown is declared but
65045         does not exist.  Declare using a prototype if lchown is not
65046         declared.  Add a copyright notice.
65047         * lib/mkstemp.h: Include <unistd.h>.
65048         * lib/openat.c: Include lchown.h.
65049
65050         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
65051         we now test for that separately.
65052         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
65053         rather than O_NOFOLLOW, when testing whether it's possible to
65054         avoid a race condition reliably.
65055         * lib/savewd.c (savewd_chdir): Likewise.
65056
65057         Remove macros that are no longer needed now that stdint.h is
65058         reliable.
65059         * lib/fsusage.c (UINTMAX_MAX): Remove.
65060         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
65061         * lib/utimecmp.c (SIZE_MAX): Remove.
65062
65063         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
65064
65065         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
65066         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
65067         O_NOATIME works.
65068
65069 2006-10-05  Bruno Haible  <bruno@clisp.org>
65070
65071         * lib/gl_list.h (gl_sortedlist_search_from_to,
65072         gl_sortedlist_indexof_from_to): New declarations.
65073         (gl_list_implementation): New fields sortedlist_search_from_to,
65074         sortedlist_indexof_from_to.
65075         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
65076         inline functions.
65077         * lib/gl_list.c (gl_sortedlist_search_from_to,
65078         gl_sortedlist_indexof_from_to): New functions.
65079         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
65080         function.
65081         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
65082         (gl_array_sortedlist_search_from_to): New function.
65083         (gl_array_list_implementation): Update.
65084         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
65085         function.
65086         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
65087         (gl_carray_sortedlist_search_from_to): New function.
65088         (gl_carray_list_implementation): Update.
65089         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
65090         gl_linked_sortedlist_indexof_from_to): New functions.
65091         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65092         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65093         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
65094         gl_tree_sortedlist_indexof_from_to): New functions.
65095         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65096         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65097         Update.
65098         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65099         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
65100         Update.
65101
65102 2006-10-05  Bruno Haible  <bruno@clisp.org>
65103
65104         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
65105         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
65106         (struct gl_list_implementation): Add fields search_from_to,
65107         indexof_from_to. Remove fields search, indexof.
65108         (gl_list_search): Use the search_from_to method.
65109         (gl_list_search_from, gl_list_search_from_to): New functions.
65110         (gl_list_indexof): Use the indexof_from_to method.
65111         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65112         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
65113         (gl_list_search_from, gl_list_search_from_to): New functions.
65114         (gl_list_indexof): Use the indexof_from_to method.
65115         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65116         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
65117         gl_array_indexof. Add start_index, end_index arguments.
65118         (gl_array_search_from_to): Renamed from gl_array_search. Add
65119         start_index, end_index arguments.
65120         (gl_array_remove, gl_array_list_implementation): Update.
65121         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
65122         gl_carray_indexof. Add start_index, end_index arguments.
65123         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
65124         start_index, end_index arguments.
65125         (gl_carray_remove, gl_carray_list_implementation): Update.
65126         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
65127         gl_linked_search. Add start_index, end_index arguments.
65128         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
65129         start_index, end_index arguments.
65130         (gl_linked_remove): Update.
65131         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65132         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65133         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
65134         field to 'size_t'.
65135         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
65136         gl_tree_search. Add start_index, end_index arguments.
65137         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65138         start_index, end_index arguments.
65139         (gl_tree_remove): Update.
65140         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65141         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65142         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
65143         function.
65144         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
65145         gl_tree_search. Add start_index, end_index arguments.
65146         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65147         start_index, end_index arguments.
65148         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65149         Update.
65150         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
65151
65152 2006-10-05  Bruno Haible  <bruno@clisp.org>
65153
65154         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
65155
65156         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
65157         fwriteerror_temp): New declarations.
65158         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
65159         (descriptors): New variable.
65160         (cleanup): First, close the descriptors.
65161         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
65162         fclose_temp, fwriteerror_temp): New functions.
65163
65164 2006-10-04  Jim Meyering  <jim@meyering.net>
65165
65166         * lib/fts.c (fts_open): Tiny comment change.
65167
65168 2006-10-04  Bruno Haible  <bruno@clisp.org>
65169
65170         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
65171         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
65172         gl_LOCK_BODY.
65173         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
65174         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
65175         gl_LOCK_EARLY_BODY.
65176         (gl_LOCK): Require gl_LOCK_BODY.
65177
65178 2006-10-04  Bruno Haible  <bruno@clisp.org>
65179
65180         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
65181         (gl_oset_search_atleast): New declaration.
65182         (struct gl_oset_implementation): Add field 'search_atleast'.
65183         (gl_oset_search_atleast): New inline function.
65184         * lib/gl_oset.c (gl_oset_search_atleast): New function.
65185         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
65186         (gl_array_oset_implementation): Update.
65187         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
65188         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
65189         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
65190
65191 2006-10-04  Bruno Haible  <bruno@clisp.org>
65192
65193         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
65194
65195 2006-10-03  Bruno Haible  <bruno@clisp.org>
65196
65197         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
65198         from gl_avltreehash_list_implementation.
65199
65200 2006-10-03  Bruno Haible  <bruno@clisp.org>
65201
65202         * lib/gl_oset.c (gl_oset_add): Fix return type.
65203
65204 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
65205
65206         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
65207
65208 2006-10-02  Eric Blake  <ebb9@byu.net>
65209
65210         * modules/strnlen (Depends-on): Add extensions.
65211
65212 2006-10-02  Eric Blake  <ebb9@byu.net>
65213
65214         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
65215         definition in 2.60+.
65216
65217 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
65218
65219         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
65220         checks.
65221
65222 2006-10-02  Bruno Haible  <bruno@clisp.org>
65223
65224         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
65225         to the AUTOMAKE_OPTIONS.
65226         Reported by Jim Meyering.
65227
65228 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65229
65230         Work around bug in Solaris 10 /proc file system:
65231         /proc/self/fd/NNN/.. isn't the parent directory of
65232         the directory whose file descriptor is NNN.  This needs to
65233         be worked around at run time, not compile time, since a
65234         program might be built on Solaris 8, where things work, and
65235         run on Solaris 10.
65236         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
65237         to use the following interface instead:
65238         (OPENAT_BUFFER_SIZE): New macro.
65239         (openat_proc_name): New function.
65240         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
65241         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
65242         Likewise.
65243         * lib/openat-proc.c: New file.
65244         * modules/openat (Files): Add lib/openat-proc.c.
65245         (Depends-on): Add same-inode, stdbool.
65246         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
65247
65248 2006-09-29  Bruno Haible  <bruno@clisp.org>
65249
65250         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
65251         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
65252         argument. Set stdout_closed before testing for ferror, not after.
65253         (fwriteerror, fwriteerror_no_ebadf): New functions.
65254
65255 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65256
65257         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
65258
65259 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
65260
65261         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
65262         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
65263
65264 2006-09-28  Jim Meyering  <jim@meyering.net>
65265
65266         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
65267         Include <unistd.h>.
65268
65269 2006-09-28  Bruno Haible  <bruno@clisp.org>
65270
65271         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
65272         * modules/linkedhash-list (Depends-on): Likewise.
65273         * modules/rbtreehash-list (Depends-on): Likewise.
65274
65275 2006-09-28  Bruno Haible  <bruno@clisp.org>
65276
65277         * lib/strndup.h: Simplify the redefinition of strndup.
65278         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
65279         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
65280
65281 2006-09-28  Bruno Haible  <bruno@clisp.org>
65282
65283         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
65284         * lib/gl_linkedhash_list.c: Likewise.
65285         * lib/gl_rbtreehash_list.c: Likewise.
65286
65287 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65288
65289         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
65290         getaddrinfo.
65291
65292         * lib/__fpending.h: Don't include <stdio_ext.h> unless
65293         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
65294         it causes <stdio_ext.h> to cause a compile-time error.
65295         Problem reported by Nelson H. F. Beebe.
65296         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
65297         of HAVE_DECL___PENDING.
65298
65299         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
65300         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
65301         declaration.
65302
65303 2006-09-27  Jim Meyering  <jim@meyering.net>
65304
65305         This file could end up with a definition for a function
65306         named __strndup, rather than rpl_strndup on a system with
65307         incomplete weak_alias support.
65308         * lib/strndup.c (strndup): Rename from __strndup.
65309         Remove #defines that used to map __strndup to strndup.
65310         Don't use K&R prototypes.
65311         Remove LIBC-related code, since this file is not sync'd with glibc.
65312         * lib/strndup.h: Revamp, accordingly.
65313         * m4/strndup.m4: Modernize.
65314
65315 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65316
65317         * modules/savewd (Depends-on): Add 'raise'.
65318         * lib/savewd.c: Include <signal.h>, for 'raise'.
65319
65320 2006-09-26  Jim Meyering  <jim@meyering.net>
65321
65322         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
65323         when we detect Darwin 8.7.0's acl_get_file bug.
65324         Rearrange to perform the new (below) run-test while $LIBS
65325         contains any acl-related library.  Set USE_ACL at the end.
65326         (gl_ACL_GET_FILE): New function.
65327
65328 2006-09-26  Eric Blake  <ebb9@byu.net>
65329
65330         * lib/verror.c: Include <config.h> unconditionally.
65331
65332 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
65333
65334         * modules/clock-time (Maintainer): Add self.
65335         * modules/getlogin_r (Depends-on): Add extensions.
65336
65337 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65338
65339         * modules/clock-time: New module.
65340         * modules/nanosleep (Depends-on): Add clock-time.
65341         * modules/gethrxtime (Depends-on): Likewise.
65342         * modules/gettime (Depends-on): Likewise.
65343         * modules/settime (Depends-on): Likewise.
65344
65345         * modules/fts-lgpl: Depend on openat.
65346         * modules/mkancesdirs: Depend on savewd.
65347         * modules/mkdir-p: Likewise.
65348
65349 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65350
65351         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
65352
65353         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
65354         `gl_have_arbitrary_file_name_length_limit' to
65355         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
65356         actually works between configure runs.
65357
65358 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65359             Bruno Haible  <bruno@clisp.org>
65360
65361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
65362
65363 2006-09-25  Jim Meyering  <jim@meyering.net>
65364
65365         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
65366         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
65367
65368 2006-09-25  Eric Blake  <ebb9@byu.net>
65369
65370         * gnulib-tool (func_import, func_create_testdir): Fix typos in
65371         exec's in 2006-09-18 patch when shuffling fds.
65372
65373 2006-09-25  Bruno Haible  <bruno@clisp.org>
65374
65375         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
65376         Reported by Jim Meyering.
65377
65378 2006-09-24  Jim Meyering  <jim@meyering.net>
65379
65380         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
65381         compare a pointer against a literal "0".  That caused failures with
65382         at least HP-UX's hpcc.
65383
65384 2006-09-22  Simon Josefsson  <jas@extundo.com>
65385
65386         * modules/gc-sha1:
65387         * modules/gc-md4:
65388         * modules/gc-hmac-sha1:
65389         * modules/gc-hmac-md5:
65390         * modules/gc-des:
65391         * modules/gc-arcfour: Distribute more files.
65392
65393 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65394
65395         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
65396         (gl_linked_iterator_from_to): Initialize struct completely.
65397         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
65398         (gl_tree_iterator_from_to): Likewise
65399         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
65400         * lib/gl_array_list.c [lint] (gl_array_iterator)
65401         (gl_array_iterator_from_to): Likewise.
65402         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
65403         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
65404         (gl_carray_iterator_from_to): Likewise.
65405
65406         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
65407         * lib/md4.c (md4_process_block): Remove unused variable.
65408         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
65409         parentheses for clarity.
65410
65411 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65412
65413         * modules/bison-i18n (Depends-on): Add gettext.
65414
65415 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65416
65417         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
65418         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
65419         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
65420         also add missing comma that caused broken test.
65421         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
65422         stdlib.h, for `abort'.
65423         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
65424         variables.
65425         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
65426         include unistd.h if present, for `rmdir'.
65427         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
65428         variables.
65429         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
65430         in the process include standard headers for prototypes.
65431         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
65432         gets declared on GNU/Linux.
65433         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
65434         unistd.h, for `rmdir'.
65435         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
65436
65437         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
65438         always true.
65439         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
65440
65441         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
65442
65443 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65444
65445         * gnulib-tool (func_version): Create output all at once.  This
65446         may help avoid triggering unnecessary SIGPIPEs, and at any
65447         rate it doesn't hurt.
65448
65449 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65450             Bruno Haible  <bruno@clisp.org>
65451
65452         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
65453         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65454         * m4/signed.m4 (bh_C_SIGNED): Likewise.
65455
65456         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
65457         (gl_FUNC_VASPRINTF): Invoke it.
65458
65459 2006-09-22  Bruno Haible  <bruno@clisp.org>
65460
65461         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
65462         getloadavg.c as first argument.
65463
65464 2006-09-22  Bruno Haible  <bruno@clisp.org>
65465
65466         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
65467         at the beginning of the gl_INIT macro.
65468         * modules/getloadavg (configure.ac): Pass $gl_source_base to
65469         gl_GETLOADAVG.
65470
65471 2006-09-22  Bruno Haible  <bruno@clisp.org>
65472
65473         * gnulib-tool (func_create_megatestdir): Don't include the config-h
65474         module.
65475         Suggested by Ralf Wildenhues.
65476
65477 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65478
65479         Import this patch from libc:
65480
65481         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
65482
65483         * lib/regex_internal.c (re_string_reconstruct): Handle
65484         offset < pstr->valid_raw_len && pstr->offsets_needed case.
65485         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
65486         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
65487         re_string_context_at.
65488
65489         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
65490         now requires it.
65491         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
65492         gl_REGEX now does it for us.
65493         (gl_REGEX): Add test taken from
65494         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
65495
65496         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
65497         Check that large offsets work.  Modernize Autoconf usages.
65498         Prefer "yes" to mean a good thing rather than a bad.
65499         Don't put "#define mkstemp" in config.h, as this might interfere
65500         with standard system headers that "#define mkstemp mkstemp64".
65501
65502         * modules/mkstemp (Depends-on): Add extensions, so that
65503         mkstemp is visible on some platforms.
65504         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
65505         (Include): Change to "mkstemp.h" from <stdlib.h>.
65506         (Files): Add mkstemp.h.
65507
65508         * lib/mkstemp.h: New file, since some standard headers
65509         #define mkstemp.
65510         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
65511         Include "mkstemp.h".
65512         Make the _LIBC code resemble glibc original more,
65513         e.g., use K&R style.
65514         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
65515         (mkstemp): Remove, since mkstemp.h does this for us.
65516         * lib/stdlib--.h: Include mkstemp.h.
65517
65518         Import this patch from libc:
65519
65520         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65521
65522         * lib/tempname.c (__gen_tempname): Change attempts_min
65523         into a macro.  Use preprocessor to decide how to initialize
65524         attempts [Coverity CID 67].
65525
65526 2006-09-20  Bruno Haible  <bruno@clisp.org>
65527
65528         * lib/mkdtemp.c: Import from libc.
65529         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65530                 * sysdeps/posix/tempname.c (__gen_tempname): Change
65531                 attempts_min into a macro.  Use preprocessor to decide how to
65532                 initialize attempts [Coverity CID 67].
65533         2001-11-27  Paul Eggert  <eggert@twinsun.com>
65534                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
65535                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
65536
65537 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65538
65539         * gnulib-tool (func_exit): New function, to allow to pass the
65540         exit status portably through the trap.  Use everywhere.
65541         (--help, --version): Signal a write error.
65542         (trap): catch SIGPIPE, for write errors.
65543         Exit at the end of the trap, with the correct exit status.
65544
65545 2006-09-19  Karl Berry  <karl@gnu.org>
65546
65547         * doc/gnulib.texi: note about the license texinfo files.
65548
65549 2006-09-19  Eric Blake  <ebb9@byu.net>
65550
65551         * gnulib-tool: Avoid space-tab.
65552
65553 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65554
65555         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
65556         that prevented coreutils 6.1 from building.  Problem reported
65557         by Petter Reinholdtsen.
65558
65559 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * gnulib-tool (avoidlist): Fix typo that broke options like
65562         --avoid=lock that are used by coreutils bootstrap.
65563
65564 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
65565
65566         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
65567         more systematically.
65568
65569 2006-09-18  Jim Meyering  <jim@meyering.net>
65570
65571         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
65572
65573 2006-09-18  Bruno Haible  <bruno@clisp.org>
65574
65575         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
65576
65577 2006-09-18  Bruno Haible  <bruno@clisp.org>
65578
65579         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
65580         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
65581         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
65582         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
65583         * m4/gettext.m4: Require autoconf >= 2.52.
65584         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
65585         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
65586         of gl_cv_header_inttypes_h.
65587
65588 2006-09-18  Bruno Haible  <bruno@clisp.org>
65589
65590         * lib/javaversion.c: Include configmake.h.
65591
65592 2006-09-18  Bruno Haible  <bruno@clisp.org>
65593
65594         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
65595         avoid that the while loops be executed in a subshell.
65596
65597 2006-09-18  Bruno Haible  <bruno@clisp.org>
65598
65599         * MODULES.html.sh (func_module): Break long lines.
65600         Suggested by Bruce Korb <bkorb@gnu.org>.
65601
65602 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65603
65604         Speed up by a factor of 1.12.
65605         * gnulib-tool (nl): New variable.
65606         (func_import): Rewrite include directive extraction to only read each
65607         directive once.
65608
65609 2006-09-17  Bruno Haible  <bruno@clisp.org>
65610
65611         * modules/javaversion (Makefile.am): Remove DEFS setting.
65612         (Depends-on): Add configmake, for PKGDATADIR definition.
65613
65614 2006-09-17  Bruno Haible  <bruno@clisp.org>
65615
65616         * gnulib-tool (func_create_testdir): Rewrite all files at once.
65617
65618 2006-09-17  Bruno Haible  <bruno@clisp.org>
65619
65620         * gnulib-tool (func_append): New function, stolen from libtool.m4.
65621         (func_modules_transitive_closure, func_modules_add_dummy,
65622         func_modules_to_filelist, func_import, func_create_testdir,
65623         func_create_megatestdir, ...): Use it wherever possible.
65624         Suggested by Ralf Wildenhues.
65625
65626 2006-09-16  Karl Berry  <karl@gnu.org>
65627
65628         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
65629         to avoid sectioning errors.
65630         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
65631         [ifinfo]: blank line after @center-ed titles.
65632         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
65633         Spell FSF address consistently with others.
65634         (These changes approved by rms.)
65635
65636 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65637
65638         Speed up by a factor of 1.61.
65639         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
65640         already checked module names again.
65641
65642 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65643
65644         Speed up by a factor of 1.13.
65645         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
65646         for new_files, and the input to func_add_or_update.
65647
65648 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65649
65650         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
65651         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
65652
65653 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65654
65655         * modules/mkancesdirs (Depends-on): Add fcntl.
65656         * modules/savewd: New file.
65657         * MODULES.html.sh (File system functions): Add savewd.
65658
65659         * modules/configmake (Makefile.am): Add support for the
65660         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
65661
65662 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65663
65664         * m4/savewd.m4: New file.
65665
65666 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65669         (dirchownmod): New arg FD.  All callers changed.
65670         Use FD rather than opening the directory ourself, as opening is
65671         now the caller's responsibility.
65672         * lib/dirchownmod.h: Likewise.
65673         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65674         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65675         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65676         (test_dir): Remove.
65677         (mkancesdirs): Return length of prefix of FILE that has already
65678         been made, or -2 if there is a child doing the work.  Redo
65679         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65680         ".", and treat ".." specially since it might stray back into
65681         already-created areas.  Use a subprocess if necessary.  New arg
65682         WD; all users changed.  MAKE_DIR function should now return 1
65683         if it creates a directory that is not readable.  Return -2 if
65684         a child process is spun off.
65685         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65686         Adjust signature to match code.
65687         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65688         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65689         all users changed.
65690         * lib/savewd.c, lib/savewd.h: New files.
65691
65692 2006-09-15  Jim Meyering  <jim@meyering.net>
65693
65694         * modules/rename-dest-slash: New module.
65695         * MODULES.html.sh (posix_compat): Add it here.
65696
65697         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65698
65699 2006-09-15  Jim Meyering  <jim@meyering.net>
65700
65701         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65702         file.
65703
65704         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65705
65706 2006-09-15  Jim Meyering  <jim@meyering.net>
65707
65708         * lib/rename-dest-slash.c (has_trailing_slash): Use
65709         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65710         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65711         test before testing whether SRC is a directory.
65712         Suggestions from Bruno Haible.
65713
65714         Avoid a warning about an unused variable.
65715         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65716         into the #ifdef block where it's used.
65717
65718         * lib/rename-dest-slash.c: New file.
65719
65720 2006-09-14  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/allocsa.c: Include <config.h> unconditionally.
65723         * lib/asnprintf.c: Likewise.
65724         * lib/asprintf.c: Likewise.
65725         * lib/c-strcasecmp.c: Likewise.
65726         * lib/c-strcasestr.c: Likewise.
65727         * lib/c-strncasecmp.c: Likewise.
65728         * lib/c-strstr.c: Likewise.
65729         * lib/classpath.c: Likewise.
65730         * lib/clean-temp.c: Likewise.
65731         * lib/concatpath.c: Likewise.
65732         * lib/copy-file.c: Likewise.
65733         * lib/csharpcomp.c: Likewise.
65734         * lib/csharpexec.c: Likewise.
65735         * lib/execute.c: Likewise.
65736         * lib/fatal-signal.c: Likewise.
65737         * lib/findprog.c: Likewise.
65738         * lib/fwriteerror.c: Likewise.
65739         * lib/gl_array_list.c: Likewise.
65740         * lib/gl_array_oset.c: Likewise.
65741         * lib/gl_avltree_list.c: Likewise.
65742         * lib/gl_avltree_oset.c: Likewise.
65743         * lib/gl_avltreehash_list.c: Likewise.
65744         * lib/gl_carray_list.c: Likewise.
65745         * lib/gl_linked_list.c: Likewise.
65746         * lib/gl_linkedhash_list.c: Likewise.
65747         * lib/gl_list.c: Likewise.
65748         * lib/gl_oset.c: Likewise.
65749         * lib/gl_rbtree_list.c: Likewise.
65750         * lib/gl_rbtree_oset.c: Likewise.
65751         * lib/gl_rbtreehash_list.c: Likewise.
65752         * lib/imaxabs.c: Likewise.
65753         * lib/imaxdiv.c: Likewise.
65754         * lib/javacomp.c: Likewise.
65755         * lib/javaexec.c: Likewise.
65756         * lib/javaversion.c: Likewise.
65757         * lib/linebreak.c: Likewise.
65758         * lib/localcharset.c: Likewise.
65759         * lib/lock.c: Likewise.
65760         * lib/mbchar.c: Likewise.
65761         * lib/mbswidth.c: Likewise.
65762         * lib/mkdtemp.c: Likewise.
65763         * lib/pipe.c: Likewise.
65764         * lib/printf-args.c: Likewise.
65765         * lib/printf-parse.c: Likewise.
65766         * lib/progname.c: Likewise.
65767         * lib/progreloc.c: Likewise.
65768         * lib/readlink.c: Likewise.
65769         * lib/sh-quote.c: Likewise.
65770         * lib/stpcpy.c: Likewise.
65771         * lib/stpncpy.c: Likewise.
65772         * lib/strcasecmp.c: Likewise.
65773         * lib/strcasestr.c: Likewise.
65774         * lib/strcspn.c: Likewise.
65775         * lib/striconv.c: Likewise.
65776         * lib/strncasecmp.c: Likewise.
65777         * lib/strnlen1.c: Likewise.
65778         * lib/strstr.c: Likewise.
65779         * lib/strtok_r.c: Likewise.
65780         * lib/tls.c: Likewise.
65781         * lib/tmpdir.c: Likewise.
65782         * lib/unicodeio.c: Likewise.
65783         * lib/unsetenv.c: Likewise.
65784         * lib/vasnprintf.c: Likewise.
65785         * lib/vasprintf.c: Likewise.
65786         * lib/wait-process.c: Likewise.
65787         * lib/xallocsa.c: Likewise.
65788         * lib/xsetenv.c: Likewise.
65789         * lib/xstriconv.c: Likewise.
65790
65791 2006-09-13  Simon Josefsson  <jas@extundo.com>
65792
65793         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65794         that internally, suggested by Ralf Wildenhues
65795         <Ralf.Wildenhues@gmx.de>.
65796
65797 2006-09-13  Simon Josefsson  <jas@extundo.com>
65798
65799         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65800         @LIBOBJS@.
65801         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65802
65803 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65804
65805         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65806         longer worry about uses that don't define HAVE_CONFIG_H.
65807         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65808         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65809         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65810         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65811         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65812         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65813         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65814         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65815         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65816         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65817         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65818         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65819         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65820         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65821         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65822         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65823         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65824         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65825         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65826         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65827         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65828         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65829         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65830         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65831         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65832         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65833         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65834         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65835         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65836         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65837         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65838         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65839         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65840         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65841         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65842         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65843         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65844         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65845         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65846         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65847         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65848         Likewise.
65849
65850 2006-09-13  Eric Blake  <ebb9@byu.net>
65851
65852         * lib/getopt.c: Fix typo in last commit.
65853
65854 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65855
65856         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65857         dgettext.
65858
65859 2006-09-12  Jim Meyering  <jim@meyering.net>
65860
65861         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65862         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65863         Reported by Nelson H. F. Beebe.
65864
65865 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65866
65867         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65868         program_invocation_name and program_invocation_short_name are
65869         initialized.
65870         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65871         and program_invocation_short_name to argp.h, so they are visible
65872         to user programs.
65873         * lib/argp.h: Likewise
65874
65875 2006-09-10  Bruno Haible  <bruno@clisp.org>
65876
65877         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65878         m4/inttypes_h.m4, m4/uintmax_t.m4.
65879
65880 2006-09-10  Bruno Haible  <bruno@clisp.org>
65881
65882         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65883         gl_AC_TYPE_UINTMAX_T.
65884
65885 2006-09-10  Bruno Haible  <bruno@clisp.org>
65886
65887         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65888
65889 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65890
65891         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65892         convention.  Text proposed by Bruno Haible.
65893         (struct argp_option): Document the use of N_() wrappers.
65894
65895         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65896         '\v', and translate the two parts separately, instead of feeding
65897         the whole string to gettext.  This allows to exclude
65898         '\v' from the strings visible to the translator by writing doc
65899         strings as N_("..") "\v" N_("..").
65900
65901 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65902
65903         * config/srclist.txt: Undo latest change; the bug was fixed.
65904
65905 2006-09-09  Bruno Haible  <bruno@clisp.org>
65906
65907         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65908         assignments if building a library without libtool.
65909         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65910         in func_emit_lib_Makefile_am.
65911         (func_import): When building a static library libfoo.a, arrange to
65912         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65913         (func_create_testdir): Likewise.
65914         * modules/gc (configure.ac, Makefile.am): If building statically,
65915         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65916         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65917         * modules/striconv (configure.ac, Makefile.am): Likewise.
65918         Based on a suggestion by Ralf Wildenhues.
65919
65920 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65921
65922         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65923         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65924         Also:
65925
65926         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65927         Add year_2050_test to catch glibc bug 2821
65928         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65929
65930         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65931         Prefer #ifdef to #if.
65932
65933         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65934         Return from 'main' instead of calling 'exit'.
65935
65936 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65937
65938         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65939         returned the maximum time_t value rather than (time_t) -1.
65940         Problem originally reported by William Bardwell
65941         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65942
65943         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65944         Moved to here ...
65945         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65946         ... from here.
65947
65948 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65949
65950         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65951         2821 is fixed.
65952
65953 2006-09-08  Jim Meyering  <jim@meyering.net>
65954
65955         Don't make generated files read-only.  That would bother too many
65956         people.  However, do retain the ability to work when targets are
65957         read-only: remove the destination and temporary files before writing
65958         them (when generated via sed or echo), or by using the -f option for
65959         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65960         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65961         * modules/byteswap, modules/configmake, modules/fcntl:
65962         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65963         * modules/localcharset, modules/netinet_in, modules/poll:
65964         * modules/stdbool, modules/stdint, modules/sys_select:
65965         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65966
65967 2006-09-08  Jim Meyering  <jim@meyering.net>
65968
65969         Avoid new build failure on FreeBSD 6.0.
65970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65971         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65972         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65973
65974 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65975
65976         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65977
65978 2006-09-07  Jim Meyering  <jim@meyering.net>
65979
65980         Fix global typo in last change: use chmod u-w, not chmod u-x.
65981         Spotted by Paul Eggert and Bruce Korb.
65982         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65983         * modules/byteswap, modules/configmake, modules/fcntl:
65984         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65985         * modules/localcharset, modules/netinet_in, modules/poll:
65986         * modules/stdbool, modules/stdint, modules/sys_select:
65987         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65988
65989 2006-09-06  Jim Meyering  <jim@meyering.net>
65990
65991         Make generated files be read-only.
65992         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65993         Ensure that each generated file is now read-only.
65994         * modules/argz: Likewise.
65995         * modules/arpa_inet: Likewise.
65996         * modules/byteswap: Likewise.
65997         * modules/configmake: Likewise.
65998         * modules/fcntl: Likewise.
65999         * modules/fnmatch: Likewise.
66000         * modules/getopt: Likewise.
66001         * modules/glob: Likewise.
66002         * modules/inttypes: Likewise.
66003         * modules/netinet_in: Likewise.
66004         * modules/poll: Likewise.
66005         * modules/stdbool: Likewise.
66006         * modules/stdint: Likewise.
66007         * modules/sys_select: Likewise.
66008         * modules/sys_socket: Likewise.
66009         * modules/sys_stat: Likewise.
66010         * modules/sysexits: Likewise.
66011         * modules/localcharset: Same as above, but continue using temporary
66012         file named "t-$@" (why different?) rather than the "$@-t" used
66013         everywhere else.
66014
66015         * modules/sysexits (Makefile.am): Replace literal occurrences
66016         of "sysexit.h" more readable, and more consistent, "$@".
66017
66018 2006-09-06  Bruno Haible  <bruno@clisp.org>
66019
66020         * modules/striconv: New file.
66021         * modules/xstriconv: New file.
66022         * MODULES.html.sh (Internationalization functions): Add striconv,
66023         xstriconv.
66024
66025 2006-09-06  Bruno Haible  <bruno@clisp.org>
66026
66027         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
66028         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
66029         not using libtool correctly.
66030
66031 2006-09-06  Bruno Haible  <bruno@clisp.org>
66032
66033         * lib/striconv.h: New file.
66034         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
66035         iconvstring.c.
66036         * lib/xstriconv.h: New file.
66037         * lib/xstriconv.c: New file.
66038
66039 2006-09-06  Bruno Haible  <bruno@clisp.org>
66040
66041         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66042         lib_..._LDFLAGS.
66043
66044 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66045
66046         * lib/argz_.h: Sync from Libtool.
66047
66048         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
66049                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66050
66051         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
66052
66053 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66054
66055         * modules/trim: New file.
66056
66057 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66058
66059         * lib/trim.h: New file.
66060         * lib/trim.c: New file.
66061
66062 2006-09-05  Bruno Haible  <bruno@clisp.org>
66063
66064         * MODULES.html.sh (String handling): Add trim.
66065
66066 2006-09-04  Karl Berry  <karl@gnu.org>
66067
66068         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
66069         until next release.
66070
66071 2006-09-03  Bruno Haible  <bruno@clisp.org>
66072
66073         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
66074         correctly.
66075
66076 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
66079         not gl_GETLOADAVG.  Omit unneeded semicolons.
66080         Problems reported by Ralf Wildenhues in
66081         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66082         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
66083         at the end, which is the usual gnulib style.
66084
66085         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
66086         of doing all the work ourselves.
66087         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
66088         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
66089
66090 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66091
66092         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
66093         Problem reported by Ralf Wildenhues in
66094         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66095
66096         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
66097         HAVE_STRUCT_STATFS_F_FSTYPENAME.
66098
66099 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66100
66101         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
66102         yesterday's patch by changing test -n to test -z.
66103
66104 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66105
66106         * modules/getloadavg (Files): Add m4/getloadavg.m4.
66107         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
66108         the former is now obsolescent.
66109
66110         * modules/chdir-long (Depends-on): Add fcntl.
66111
66112 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66113
66114         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
66115         obsolescent, and programs should use gnulib instead.
66116         * m4/getloadavg.m4: New file, with contents taken from Autoconf
66117         but with prefixes changed.
66118
66119 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66120
66121         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
66122         or stdbool.h, because they might not exist while configuring.
66123
66124         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
66125         Don't include unistd.h or limits.h; not needed, since chdir-long.h
66126         does that for us.
66127         (O_DIRECTORY): Remove.
66128
66129 2006-08-31  Eric Blake  <ebb9@byu.net>
66130
66131         * gnulib-tool: Don't let emacs change spaces to TAB.
66132
66133 2006-08-31  Bruno Haible  <bruno@clisp.org>
66134
66135         * gnulib-tool: When calling func_import more than once, do it in a
66136         subshell.
66137         Reported by Eric Blake <ebb9@byu.net>.
66138
66139 2006-08-31  Bruno Haible  <bruno@clisp.org>
66140
66141         * gnulib-tool (nl): Remove variable.
66142         (sed_transform_lib_file): Use more robust test for config-h module.
66143         (func_import): Fix typo in 2006-08-25 patch.
66144
66145 2006-08-31  Bruno Haible  <bruno@clisp.org>
66146
66147         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
66148         specified, augment Makefile.am variables instead of assigning them.
66149
66150 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66151
66152         Work around a bug in both the Linux and SunOS 64-bit kernels:
66153         nanosleep mishandles sleeps for longer than 2**31 seconds.
66154         Problem reported by Frank v Waveren in
66155         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
66157         Check for nanosleep bug.
66158         (LIB_NANOSLEEP): Append clock_gettime library if needed.
66159
66160 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66161
66162         Work around a bug in both the Linux and SunOS 64-bit kernels:
66163         nanosleep mishandles sleeps for longer than 2**31 seconds.
66164         Problem reported by Frank v Waveren in
66165         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66166         * lib/nanosleep.c (BILLION): New constant.
66167         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
66168         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
66169         implementation.
66170
66171 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         * modules/nanosleep (Depends-on): Add gettime.
66174
66175 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66176         and Simon Josefsson  <jas@extundo.com>
66177         and Oskar Liljeblad  <oskar@osk.mine.nu>
66178
66179         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
66180         * gnulib-tool (func_import): New license type 'unmodifiable license
66181         text'.
66182         * modules/fdl: Use it.  Longer description.
66183         * module/gpl, module/lgpl: New files.
66184
66185 2006-08-30  Jim Meyering  <jim@meyering.net>
66186
66187         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
66188         shadowing the parameter.
66189
66190 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66191
66192         Sync from Libtool:
66193
66194         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66195
66196         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
66197         sharing with gnulib.  Report by Eric Blake.
66198
66199 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66200
66201         * modules/isapipe: New file.
66202         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
66203
66204 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66205
66206         * modules/configmake (Makefile.am): Add a comment, and omit
66207         the CONFIGMAKE_ prefix from generated macro names.  Suggested
66208         by Bruno Haible.
66209
66210 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66211
66212         * m4/isapipe.m4: New file.
66213
66214 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66215
66216         * lib/isapipe.c, lib/isapipe.h: New files.
66217
66218 2006-08-29  Jim Meyering  <jim@meyering.net>
66219
66220         * modules/configmake (Makefile.am): Make configmake.h depend on
66221         Makefile.  Otherwise, a stale configmake.h could hang around.
66222
66223 2006-08-29  Eric Blake  <ebb9@byu.net>
66224
66225         * lib/error.c (error_at_line, print_errno_message): Match libc, after
66226         resolution of upstream bug 3044.
66227
66228 2006-08-29  Bruno Haible  <bruno@clisp.org>
66229
66230         * modules/localcharset (Depends-on): Add configmake.
66231         (Makefile.am): Remove setting of LIBDIR through DEFS.
66232
66233 2006-08-29  Bruno Haible  <bruno@clisp.org>
66234
66235         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
66236         defined.
66237
66238 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * modules/fcntl: New file.
66241         * modules/chdir-safer (Depends-on): Add fcntl.
66242         * modules/fts: Likewise.
66243         * modules/mkdir-p: Likewise.
66244
66245         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
66246         This undoes the most recent change, since we're now addressing the
66247         problem in a different way.
66248
66249         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
66250         into output, since the output might be called Makefile.am even
66251         if $makefile_name is something different.
66252         (func_import): Use $makefile_am rather than
66253         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
66254         empty.
66255
66256         * modules/inttypes (Files): Add m4/inttypes-h.m4.
66257
66258 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66259
66260         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
66261         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
66262         recent change to stdint.m4, since we're now addressing the problem in a
66263         different way.
66264
66265 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66266
66267         * m4/fcntl_h.m4: New file.
66268
66269 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * lib/fcntl_.h: New file.
66272         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
66273         the fcntl module.
66274         * lib/dirchownmod.c: Likewise.
66275         * lib/fts.c: Likewise.
66276
66277         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
66278         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
66279         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
66280         just before including <inttypes.h>, to avoid circular inclusion.
66281
66282 2006-08-28  Jim Meyering  <jim@meyering.net>
66283
66284         * doc/visibility.texi: Actually read and correct the grammar of the
66285         sentence affected by yesterday's change.
66286
66287 2006-08-28  Eric Blake  <ebb9@byu.net>
66288
66289         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
66290         needs wrapper.
66291
66292 2006-08-28  Eric Blake  <ebb9@byu.net>
66293
66294         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
66295
66296 2006-08-28  Eric Blake  <ebb9@byu.net>
66297
66298         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
66299
66300 2006-08-28  Bruno Haible  <bruno@clisp.org>
66301
66302         * modules/c-strstr: New file, from GNU gettext.
66303         * MODULES.html.sh (String handling): Add c-strstr.
66304
66305 2006-08-28  Bruno Haible  <bruno@clisp.org>
66306
66307         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
66308         macros.
66309         Reported by Eric Blake.
66310
66311 2006-08-28  Bruno Haible  <bruno@clisp.org>
66312
66313         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
66314         (VASNPRINTF): Return a string of length > INT_MAX without failing.
66315         * lib/vasprintf.c: Include errno.h, limits.h.
66316         (EOVERFLOW): New fallback definition.
66317         (vasprintf): Test here whether the string length is > INT_MAX.
66318         * lib/vsnprintf.c: Include errno.h, limits.h.
66319         (EOVERFLOW): New fallback definition.
66320         (vsnprintf): Fix bug when generated string was too long for the buffer.
66321         Test here whether the string length is > INT_MAX.
66322
66323 2006-08-28  Bruno Haible  <bruno@clisp.org>
66324
66325         * lib/inttypes_.h (SCNX*): Remove definitions.
66326         Reported by Eric Blake.
66327
66328 2006-08-28  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/c-strstr.h: New file, from GNU gettext.
66331         * lib/c-strstr.c: New file, from GNU gettext.
66332
66333 2006-08-28  Bruno Haible  <bruno@clisp.org>
66334
66335         * gnulib-tool: Reorder some statements.
66336
66337 2006-08-28  Bruno Haible  <bruno@clisp.org>
66338
66339         * gnulib-tool: New option --makefile-name.
66340         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
66341         $makefile_name.
66342         (func_import): Write $makefile_name to the cache file, and read it from
66343         there unless explicitly specified. Use $makefile_name as file name
66344         instead of Makefile.am. Adjust the recommendations accordingly.
66345
66346 2006-08-28  Bruno Haible  <bruno@clisp.org>
66347
66348         * gnulib-tool (func_verify_module): Check against misapplying patch.
66349
66350 2006-08-28  Bruno Haible  <bruno@clisp.org>
66351
66352         * gnulib-tool (func_relativize, func_relconcat): New functions.
66353         Give an error if --local-dir is given with --update.
66354         Remove trailing slashes from $local_gnulib_dir.
66355         (func_import): Store the relativized $local_gnulib_dir in
66356         gnulib-cache.m4, and read it from there if not specified explicitly.
66357
66358 2006-08-28  Bruno Haible  <bruno@clisp.org>
66359
66360         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
66361         is the current directory. Respect also $local_gnulib_dir.
66362
66363 2006-08-28  Bruno Haible  <bruno@clisp.org>
66364             Simon Josefsson  <jas@extundo.com>
66365
66366         BeOS portability.
66367         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
66368
66369 2006-08-27  Jim Meyering  <jim@meyering.net>
66370
66371         * doc/visibility.texi: Remove duplicate word: "pointer".
66372
66373 2006-08-26  Bruno Haible  <bruno@clisp.org>
66374
66375         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
66376         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
66377         (Makefile.am): Create inttypes.h from inttypes_.h.
66378         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
66379
66380         * modules/imaxabs: New file.
66381
66382         * modules/imaxdiv: New file.
66383
66384 2006-08-26  Bruno Haible  <bruno@clisp.org>
66385
66386         * m4/inttypes.m4: New file.
66387         * m4/_inttypes_h.m4: Remove file.
66388         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
66389         PRI_MACROS_BROKEN.
66390         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
66391
66392         * m4/imaxabs.m4: New file.
66393
66394         * m4/imaxdiv.m4: New file.
66395
66396 2006-08-26  Bruno Haible  <bruno@clisp.org>
66397
66398         * lib/inttypes_.h: New file.
66399         * lib/inttypes.h: Remove file.
66400         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
66401
66402         * lib/imaxabs.c: New file.
66403
66404         * lib/imaxdiv.c: New file.
66405
66406 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66407
66408         New config-h module, so that "make" output needn't be cluttered
66409         by -DHAVE_CONFIG_H.
66410         * MODULES.html.sh (Support for building libraries and executables):
66411         Add config-h.
66412         * modules/config-h: New file.
66413         * gnulib-tool (nl, sed_transform_lib_file): New vars.
66414         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
66415         the config-h module is used.
66416
66417         New configmake module, so that "make" output needn't be cluttered
66418         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
66419         * MODULES.html.sh (Support for building libraries and executables):
66420         Add configmake.
66421         * modules/configmake: New file.
66422
66423 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66424
66425         * m4/config-h.m4: New file.
66426
66427 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66428
66429         * config/srclist.txt: Add elisp-comp.
66430
66431 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66432
66433         * MODULES.html.sh (Support for building libraries and executables):
66434         Add elisp-comp.
66435         * build-aux/elisp-comp: New file.
66436         * modules/elisp-comp: New file.
66437
66438 2006-08-24  Bruno Haible  <bruno@clisp.org>
66439
66440         * gnulib-tool (func_create_testdir): Use non-default values of
66441         sourcebase and m4base.
66442
66443 2006-08-24  Bruno Haible  <bruno@clisp.org>
66444
66445         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
66446         HTML structure.
66447
66448 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66449
66450         * modules/openat (Depends-on): Add lchown.
66451
66452 2006-08-23  Bruno Haible  <bruno@clisp.org>
66453
66454         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
66455         of gl_LOCK_EARLY instead of gl_LOCK.
66456
66457 2006-08-23  Bruno Haible  <bruno@clisp.org>
66458
66459         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
66460         on OSF/1 to no.
66461         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
66462
66463 2006-08-23  Bruno Haible  <bruno@clisp.org>
66464
66465         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
66466         as unusable.
66467
66468         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
66469         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
66470         (gl_LOCK): New macro.
66471
66472 2006-08-22  Simon Josefsson  <jas@extundo.com>
66473
66474         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
66475         to md5 module.
66476
66477 2006-08-22  Simon Josefsson  <jas@extundo.com>
66478
66479         * MODULES.html.sh: Add "Support for maintaining and release
66480         projects".
66481
66482         * build-aux/gnupload: New file, from coreutils.
66483
66484 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         Avoid the need for AC_LIBSOURCES in m4 macros.
66487         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
66488         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
66489         * modules/check-version (EXTRA_DIST): Add check-version.h.
66490         * modules/crc (EXTRA_DIST): Add crc.h.
66491         * modules/des (EXTRA_DIST): Add des.h.
66492         * modules/gc (EXTRA_DIST): Add gc.h.
66493         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
66494         * modules/getline (EXTRA_DIST): Add getline.h.
66495         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
66496         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
66497         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
66498         * modules/md2 (EXTRA_DIST): Add md2.h.
66499         * modules/md4 (EXTRA_DIST): Add md4.h.
66500         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
66501         * modules/read-file (EXTRA_DIST): Add read-file.h.
66502         * modules/readline (EXTRA_DIST): Add readline.h.
66503         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
66504         rijndael-api-fst.h.
66505
66506 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66507
66508         * m4/rijndael.m4 (gl_ARCFOUR):
66509         * m4/arctwo.m4 (gl_ARCTWO):
66510         * m4/check-version.m4 (gl_CHECK_VERSION):
66511         * m4/crc.m4 (gl_CRC):
66512         * m4/des.m4 (gl_DES):
66513         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
66514         * m4/gc.m4 (gl_GC):
66515         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
66516         * m4/getline.m4 (gl_FUNC_GETLINE):
66517         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
66518         * m4/hmac-md5.m4 (gl_HMAC_MD5):
66519         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
66520         * m4/md2.m4 (gl_MD2):
66521         * m4/md4.m4 (gl_MD4):
66522         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
66523         * m4/read-file.m4 (gl_FUNC_READ_FILE):
66524         * m4/readline.m4 (gl_FUNC_READLINE):
66525         * m4/rijndael.m4 (gl_RIJNDAEL):
66526         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66527         to get the necessary .h files and whatnot.
66528
66529 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
66532         gnulib rather than the other way around.
66533         * config/srclistvars.sh (COREUTILS): Remove.
66534
66535 2006-08-22  Jim Meyering  <jim@meyering.net>
66536
66537         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
66538
66539         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
66540
66541 2006-08-22  Eric Blake  <ebb9@byu.net>
66542
66543         * modules/regexprops-generic: New file.
66544         * MODULES.html.sh (Support for building documentation): List it.
66545
66546 2006-08-22  Eric Blake  <ebb9@byu.net>
66547
66548         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
66549         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66550         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
66551         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66552
66553 2006-08-22  Bruno Haible  <bruno@clisp.org>
66554
66555         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
66556         and lib_LTLIBRARIES like the other lib_* variables.
66557
66558 2006-08-22  Bruno Haible  <bruno@clisp.org>
66559
66560         * build-aux/x-to-1.in: New file, from GNU gettext.
66561
66562 2006-08-22  Bruno Haible  <bruno@clisp.org>
66563
66564         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
66565         <utmpx.h> exists.
66566
66567 2006-08-22  Bruno Haible  <bruno@clisp.org>
66568
66569         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
66570         <utmpx.h> exists.
66571
66572 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         BeOS portability.
66575         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
66576         exist.
66577         Problem reported by Bruno Haible.
66578
66579 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66580
66581         Avoid the need for AC_LIBSOURCES in m4 macros.
66582         * modules/acl (EXTRA_DIST): Add acl.h.
66583         * modules/argmatch (Files): Add m4/argmatch.m4.
66584         (configure.ac): Add gl_ARGMATCH.
66585         (EXTRA_DIST): Renamed from lib_SOURCES, for
66586         consistency with the other modules.  Remove argmatch.c.
66587         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
66588         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
66589         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
66590         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
66591         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
66592         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
66593         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
66594         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
66595         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
66596         * modules/closeout (EXTRA_DIST): Add closeout.h.
66597         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
66598         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
66599         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
66600         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
66601         dirname.h; remove basename.c and stripslash.c.
66602         * modules/exclude (EXTRA_DIST): Add exclude.h.
66603         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
66604         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
66605         * modules/file-type (EXTRA_DIST): Add file-type.h.
66606         * modules/filemode (EXTRA_DIST): Add filemode.h.
66607         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
66608         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66609         * modules/fpending (EXTRA_DIST): Add __fpending.h.
66610         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
66611         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
66612         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
66613         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
66614         * modules/getdate (EXTRA_DIST): Add getdate.c.
66615         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
66616         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
66617         * modules/getpass (EXTRA_DIST): Add getpass.h.
66618         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
66619         * modules/group-member (EXTRA_DIST): Add group-member.h.
66620         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
66621         * modules/hash (EXTRA_DIST): Add hash.h.
66622         * modules/human (EXTRA_DIST): Add human.h.
66623         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
66624         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
66625         * modules/lchown (EXTRA_DIST): Add lchown.h.
66626         * modules/long-options (EXTRA_DIST): Add long-options.h.
66627         * modules/lstat (EXTRA_DIST): Add lstat.h.
66628         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
66629         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
66630         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
66631         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
66632         * modules/memxor (EXTRA_DIST): Add memxor.h.
66633         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
66634         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
66635         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
66636         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
66637         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
66638         * modules/physmem (EXTRA_DIST): Add physmem.h.
66639         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
66640         * modules/posixver (EXTRA_DIST): Add posixver.h.
66641         * modules/quote (EXTRA_DIST): Add quote.h.
66642         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
66643         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
66644         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
66645         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
66646         regex_internal.h regexec.c.
66647         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
66648         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
66649         * modules/same (EXTRA_DIST): Add same.h.
66650         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
66651         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
66652         * modules/savedir (EXTRA_DIST): Add savedir.h.
66653         * modules/sha1 (EXTRA_DIST): Add sha1.h.
66654         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
66655         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
66656         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
66657         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
66658         * modules/strdup (EXTRA_DIST): Add strdup.h.
66659         * modules/strftime (EXTRA_DIST): Add strftime.h.
66660         * modules/strndup (EXTRA_DIST): Add strndup.h.
66661         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
66662         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
66663         * modules/time_r (EXTRA_DIST): Add time_r.h.
66664         * modules/timespec (EXTRA_DIST): Add timespec.h.
66665         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66666         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66667         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66668         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66669         * modules/userspec (EXTRA_DIST): Add userspec.h.
66670         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66671         * modules/utimens (EXTRA_DIST): Add utimens.h.
66672         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66673         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66674         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66675         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66676         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66677         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66678         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66679         * modules/yesno (EXTRA_DIST): Add yesno.h.
66680
66681 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66682
66683         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66684
66685         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66686         * m4/dev-ino.m4, same-inode.m4: Remove.
66687
66688         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66689         * m4/acl.m4 (AC_FUNC_ACL):
66690         * m4/backupfile.m4 (gl_BACKUPFILE):
66691         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66692         * m4/canon-host.m4 (gl_CANON_HOST):
66693         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66694         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66695         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66696         * m4/cloexec.m4 (gl_CLOEXEC):
66697         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66698         * m4/closeout.m4 (gl_CLOSEOUT):
66699         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66700         * m4/dirname.m4 (gl_DIRNAME):
66701         * m4/exclude.m4 (gl_EXCLUDE):
66702         * m4/exitfail.m4 (gl_EXITFAIL):
66703         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66704         * m4/file-type.m4 (gl_FILE_TYPE):
66705         * m4/filemode.m4 (gl_FILEMODE):
66706         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66707         * m4/fpending.m4 (gl_FUNC_FPENDING):
66708         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66709         * m4/fts.m4 (gl_FUNC_FTS):
66710         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66711         * m4/getdate.m4 (gl_GETDATE):
66712         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66713         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66714         * m4/getpass.m4 (gl_FUNC_GETPASS):
66715         * m4/gettime.m4 (gl_GETTIME):
66716         * m4/getugroups.m4 (gl_GETUGROUPS):
66717         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66718         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66719         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66720         * m4/hash.m4 (gl_HASH):
66721         * m4/idcache.m4 (gl_IDCACHE):
66722         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66723         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66724         * m4/long-options.m4 (gl_LONG_OPTIONS):
66725         * m4/lstat.m4 (gl_FUNC_LSTAT):
66726         * m4/md5.m4 (gl_MD5):
66727         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66728         * m4/memcoll.m4 (gl_MEMCOLL):
66729         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66730         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66731         * m4/memxor.m4 (gl_MEMXOR):
66732         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66733         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66734         * m4/modechange.m4 (gl_MODECHANGE):
66735         * m4/mountlist.m4 (gl_MOUNTLIST):
66736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66737         * m4/openat.m4 (gl_FUNC_OPENAT):
66738         * m4/pathmax.m4 (gl_PATHMAX):
66739         * m4/physmem.m4 (gl_PHYSMEM):
66740         * m4/posixtm.m4 (gl_POSIXTM):
66741         * m4/posixver.m4 (gl_POSIXVER):
66742         * m4/quote.m4 (gl_QUOTE):
66743         * m4/quotearg.m4 (gl_QUOTEARG):
66744         * m4/readtokens.m4 (gl_READTOKENS):
66745         * m4/readutmp.m4 (gl_READUTMP):
66746         * m4/regex.m4 (gl_REGEX):
66747         * m4/safe-read.m4 (gl_SAFE_READ):
66748         * m4/safe-write.m4 (gl_SAFE_WRITE):
66749         * m4/same.m4 (gl_SAME):
66750         * m4/save-cwd.m4 (gl_SAVE_CWD):
66751         * m4/savedir.m4 (gl_SAVEDIR):
66752         * m4/settime.m4 (gl_SETTIME):
66753         * m4/sha1.m4 (gl_SHA1):
66754         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66755         * m4/stat-macros.m4 (gl_STAT_MACROS):
66756         * m4/stat-time.m4 (gl_STAT_TIME):
66757         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66758         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66759         * m4/strdup.m4 (gl_FUNC_STRDUP):
66760         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66761         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66762         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66763         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66764         * m4/time_r.m4 (gl_TIME_R):
66765         * m4/timespec.m4 (gl_TIMESPEC):
66766         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66767         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66768         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66769         * m4/userspec.m4 (gl_USERSPEC):
66770         * m4/utimecmp.m4 (gl_UTIMECMP):
66771         * m4/utimens.m4 (gl_UTIMENS):
66772         * m4/xalloc.m4 (gl_XALLOC):
66773         * m4/xgetcwd.m4 (gl_XGETCWD):
66774         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66775         * m4/xreadlink.m4 (gl_XREADLINK):
66776         * m4/xstrtod.m4 (gl_XSTRTOD):
66777         * m4/yesno.m4 (gl_YESNO):
66778         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66779         to get the necessary .h files and whatnot.
66780
66781 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66782             Bruno Haible  <bruno@clisp.org>
66783
66784         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66785         /bin/sh understanding of '!' conditional negation.
66786
66787 2006-08-21  Jim Meyering  <jim@meyering.net>
66788
66789         * modules/openat (Depends-on): Really alphabetize.
66790
66791         * modules/acl (Depends-on): Add error and quote.
66792
66793         * check-module (find_included_lib_files): Add at-func.c to the
66794         ok-to-include-more-than-once white list.
66795
66796         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66797
66798 2006-08-21  Bruno Haible  <bruno@clisp.org>
66799
66800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66801         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66802         Reported by Martin Lambers <marlam@marlam.de>.
66803
66804 2006-08-21  Bruno Haible  <bruno@clisp.org>
66805
66806         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66807         specify an installation location, don't emit a noinst_LIBRARIES or
66808         noinst_LTLIBRARIES assignment.
66809
66810 2006-08-21  Bruno Haible  <bruno@clisp.org>
66811
66812         BeOS portability.
66813         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66814         BeOS has mbrtowc() but no <wctype.h>.
66815
66816 2006-08-21  Bruno Haible  <bruno@clisp.org>
66817
66818         BeOS portability.
66819         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66820         exist.
66821
66822 2006-08-21  Bruno Haible  <bruno@clisp.org>
66823
66824         BeOS portability.
66825         * lib/mbchar.h: Include <wctype.h> only if it exists.
66826
66827 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66828
66829         Remove files that are no longer needed by their respective modules.
66830         * m4/obstack.m4: Remove.
66831         * m4/strerror_r.m4: Remove.
66832         * m4/uint32_t.m4: Remove.
66833         * m4/uintptr_t.m4: Remove.
66834         * m4/ullong_max.m4: Remove.
66835         * m4/xstrtoimax.m4: Remove.
66836         * m4/xstrtoumax.m4: Remove.
66837
66838         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66839         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66840         dependencies now capture this.
66841
66842         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66843         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66844         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66845         * m4/human.m4 (gl_HUMAN): Likewise.
66846         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66847         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66848
66849         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66850
66851         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66852         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66853         stdint.
66854         * m4/human.m4 (gl_HUMAN): Likewise.
66855         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66856         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66857         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66858         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66859         * m4/xstrtol (gl_XSTRTOL): Likewise.
66860
66861         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66862         AC_TYPE_LONG_LONG_INT.
66863         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66864         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66865         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66866         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66867
66868         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66869         on stdbool.
66870
66871         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66872         (gl_PREREQ_XSTRTOUL): Remove.
66873
66874         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66875
66876         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66877         mode.
66878
66879 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66880
66881         Add and change modules to make it easier for coreutils to use
66882         gnulib-tool.
66883         * modules/backupfile (Files): Remove m4/d-ino.m4.
66884         (Depends-on): Add d-ino.
66885         * modules/cycle-check (Depends-on): Add stdint.
66886         (lib_SOURCES): Add cycle-check.h.
66887         * modules/d-ino: New module.
66888         * modules/d-type: New module.
66889         * modules/error (Files): Remove m4/strerror_r.m4.
66890         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66891         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66892         m4/inttypes_h.m4, m4/uintmax_t.m4.
66893         (Depends-on): Add stdint.
66894         (lib_SOURCES): Add fsusage.h.
66895         * modules/getcwd (Files): Remove d-ino.m4.
66896         (Depends-on): Add d-ino.
66897         * modules/getndelim2 (Depends-on): Add stdint.
66898         * modules/glob (Files): Remove m4/d-type.m4.
66899         (Depends-on): Add d-type.
66900         * modules/host-os: New module.
66901         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66902         m4/inttypes_h.m4, m4/uintmax_t.m4.
66903         * Depends-on: Add stdint.
66904         (lib_SOURCES): Add human.h.
66905         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66906         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66907         m4/uintmax_t.m4, m4/ulonglong.m4.
66908         (Depends-on): Add stdint.
66909         (EXTRA_DIST): Add inttostr.h.
66910         * modules/lchmod: New module.
66911         * modules/link-follow: New module.
66912         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66913         (Depends-on): Add lchmod.
66914         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66915         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66916         (Depends-on): Add stdint.
66917         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66918         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66919         (Depends-on): Add stdint.
66920         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66921         * modules/perl: New module.
66922         * modules/regex (Depends-on): Add stdint.
66923         * modules/rmdir-errno: New module.
66924         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66925         m4/intmax_t.m4.
66926         (Depends-on): Add stdint.
66927         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66928         m4/uintmax_t.m4.
66929         (Depends-on): Add stdint.
66930         * modules/unlink-busy: New module.
66931         * modules/utimecmp (Depends-on): Add stdint.
66932         * modules/uptime: New module.
66933         * modules/winsz-ioctl: New module.
66934         * modules/winsz-termios: New module.
66935         * modules/xnanosleep (Depends-on): Add nanosleep.
66936         * modules/ullong_max: Remove.
66937         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66938         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66939         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66940         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66941         (Depends-on): Add inttypes.
66942         (lib_SOURCES): Add xstrtol.h.
66943         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66944         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66945         * MODULES.html.sh: Move 'assert' into the assert section.
66946         Move 'dummy' into the linking section.
66947         Remove ullong_max.
66948         Add section for compatibility checks for POSIX:2001 functions,
66949         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66950         winsz-ioctl, and winsz-termios into it.
66951         Add lchmod.
66952         Add top-level Misc section and put host-os, perl, and uptime
66953         into it.
66954
66955 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66956
66957         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66958         now assume the stdint module.  Do not include inttypes.h.
66959         * lib/fsusage.h: Likewise.
66960         * lib/getndelim2.c: Likewise.
66961         * lib/human.h: Likewise.
66962         * lib/inttostr.h: Likewise.
66963         * lib/obstack.c: Likewise.
66964         * lib/regex_internal.h: Likewise.
66965         * lib/tempname.c: Likewise.
66966         * lib/utimecmp.c: Likewise.
66967         * lib/xstrtol.h: Likewise.
66968
66969         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66970
66971         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66972         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66973         * lib/xtime.h: Likewise.
66974
66975 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66976
66977         * modules/openat (Files): Add lib/fchmodat.c.
66978         Fixes problem reported by Jay Youngman.
66979
66980 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66981
66982         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66983         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66984
66985 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66986             Bruno Haible  <bruno@clisp.org>
66987
66988         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66989         and is a script that invokes bison. Tighten the code. Add comments.
66990
66991 2006-08-18  Jim Meyering  <jim@meyering.net>
66992
66993         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66994         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66995         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66996         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66997
66998 2006-08-18  Bruno Haible  <bruno@clisp.org>
66999
67000         * modules/bison-i18n: New file.
67001         * MODULES.html.sh (Internationalization functions): Add it.
67002
67003 2006-08-18  Bruno Haible  <bruno@clisp.org>
67004
67005         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
67006         sys/statvfs.h. When getmntinfo was found, check its declaration and
67007         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
67008
67009 2006-08-18  Bruno Haible  <bruno@clisp.org>
67010
67011         * m4/bison-i18n.m4: New file, from bison.
67012
67013 2006-08-18  Bruno Haible  <bruno@clisp.org>
67014
67015         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
67016         (ME_DUMMY): Treat "kernfs" as a dummy.
67017         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
67018
67019 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         Update from coreutils.
67022
67023         2006-08-15  Jim Meyering  <jim@meyering.net>
67024
67025         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
67026
67027         2006-01-17  Jim Meyering  <jim@meyering.net>
67028
67029         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
67030
67031         2006-01-11  Jim Meyering  <jim@meyering.net>
67032
67033         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
67034         Check for the lchmod function.
67035
67036 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67037
67038         Update from coreutils.
67039
67040         * lib/__fpending.h: Add copyright notice.
67041         * lib/fprintftime.h: Likewise.
67042         * lib/savedir.c: Use (C) in copyright notice.
67043         * lib/savedir.h: Likewise.
67044
67045         2006-08-15  Jim Meyering  <jim@meyering.net>
67046
67047         * lib/at-func.c: New file, with the logic of all emulated at-functions.
67048         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
67049         in support of the EXPECTED_ERRNO macro.
67050         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
67051         definitions.  Instead, define the appropriate symbols and include
67052         "at-func.c".
67053         * lib/mkdirat.c (mkdirat): Likewise.
67054         * lib/fchmodat.c (fchmodat): Likewise.
67055         (ENOSYS): Remove definition.
67056         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
67057         it.  Don't include "unistd--.h" -- it wasn't ever used.
67058
67059         2006-01-17  Jim Meyering  <jim@meyering.net>
67060
67061         Rewrite fts.c not to change the current working directory,
67062         by using openat, fstatat, fdopendir, etc..
67063
67064         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
67065         (HAVE_OPENAT_SUPPORT): Define.
67066         [_LIBC] (fchdir): Don't undef or define; no longer used.
67067         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
67068         Now, this `function' always succeeds, and consumes its file descriptor
67069         parameter -- so callers must not close such FDs.  Update callers.
67070         (diropen_fd, opendirat, cwd_advance_fd): New functions.
67071         (diropen): Add parameter, SP.  Adjust all callers.
67072         Implement using diropen_fd, rather than open.
67073         (fts_open): Initialize new member, fts_cwd_fd.
67074         Remove fts_rft-setting code.
67075         (fts_close): Close fts_cwd_fd, if necessary.
67076         (__opendir2): Define in terms of opendir or opendirat,
67077         depending on whether the FST_NOCHDIR flag is set.
67078         (fts_build): Since fts_safe_changedir consumes its FD, and since
67079         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
67080         and close the dup'd file descriptor upon failure.
67081         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
67082         (fts_safe_changedir): Tweak semantics to reflect that this function
67083         now calls cwd_advance_fd and hence consumes its FD argument.
67084         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
67085         [struct FTS] (fts_rft): Remove now-unused member.
67086         [struct FTS] (fts_cycle.state): Improve comment.
67087
67088         * lib/openat.c (openat_needs_fchdir): New function.
67089         * lib/openat.h (openat_needs_fchdir): Declare it.
67090
67091 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67092
67093         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
67094         Problem and fix reported by Pádraig Brady in
67095         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
67096
67097 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67098
67099         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
67100
67101 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         * lib/memcoll.c (memcoll): Optimize for the common case where the
67104         arguments are bytewise equal.
67105
67106 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67107
67108         * doc/regexprops-generic.texi: Add a copyright notice.
67109
67110 2006-08-15  Bruno Haible  <bruno@clisp.org>
67111
67112         * modules/tmpdir (License): Change to LGPL.
67113
67114 2006-08-15  Bruno Haible  <bruno@clisp.org>
67115
67116         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
67117         module.
67118
67119 2006-08-14  Simon Josefsson  <jas@extundo.com>
67120
67121         * config/srclist.txt: Add gnupload.
67122
67123 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67124
67125         Change copyright notice from LGPL 2 to GPL 2, since that's the
67126         standard form used in the gnulib repository.
67127         * tests/test-lock.c: Likewise.
67128         * tests/test-stdint.c: Likewise.
67129         * tests/test-tls.c: Likewise.
67130
67131         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
67132         prelude-manager.  User shorter URLs for GNU projects, without '?'.
67133         Add copyright notice.
67134
67135         * check-module: Add copyright notice.  Output a copyright
67136         notice if "--version" is specified.
67137         * modules/COPYING: New file.
67138         * tests/test-getaddrinfo.c: Add copyright notice.
67139         * tests/test-verify.c: Likewise.
67140
67141 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67142
67143         Change copyright notice from LGPL 2 to GPL 2, since that's the
67144         standard form used in the gnulib repository.
67145         * lib/lock.c: LGPL -> GPL.
67146         * lib/lock.h: Likewise.
67147         * lib/strnlen1.c: Likewise.
67148         * lib/strnlen1.h: Likewise.
67149         * lib/tls.c: Likewise.
67150         * lib/tls.h: Likewise.
67151         * lib/tmpdir.c: Likewise.
67152
67153         * lib/TODO: Remove; this belongs only in coreutils.
67154
67155 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         Add copyright notices to long-enough files that lack them, since
67158         otherwise the files aren't clearly free.  Use the same notice that
67159         getdate.texi already uses.
67160         * doc/alloca-opt.texi: Add copyright notice.
67161         * doc/alloca.texi: Likewise.
67162         * doc/ctime.texi: Likewise.
67163         * doc/functions.texi: Likewise.
67164         * doc/gcd.texi: Likewise.
67165         * doc/gnulib-tool.texi: Likewise.
67166         * doc/inet_ntoa.texi: Likewise.
67167         * doc/visibility.texi: Likewise.
67168
67169         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
67170         * doc/quote.texi: Add copyright notice.
67171
67172         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
67173         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
67174         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
67175         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
67176         is now obsolete, and give a pointer to the Sun list.
67177         Add copyright notice.
67178
67179 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67180
67181         * config/srclistvars.sh: Add copyright notice.
67182
67183 2006-08-14  Eric Blake  <ebb9@byu.net>
67184
67185         Import the following change from libc:
67186
67187         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
67188
67189         Upstream bug 2997.
67190         * lib/misc/error.c: Add space between program name and message if file
67191         name is missing.
67192
67193 2006-08-12  Karl Berry  <karl@gnu.org>
67194
67195         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
67196         remove, these originate in gnulib now.
67197
67198 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67199
67200         * doc/Makefile (standards.info standards.html standards.dvi):
67201         Also depend on make-stds.texi.
67202
67203 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67204
67205         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
67206         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
67207
67208         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
67209         in wchar_t.  Problem reported by Eric Blake.
67210
67211         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
67212         LEN is smaller than SIZE.  Suggested by Bruno Haible.
67213         Also, help the compiler to keep LEN in a register.
67214
67215 2006-08-11  Eric Blake  <ebb9@byu.net>
67216
67217         * users.txt: Sort.  Add tar.
67218
67219 2006-08-11  Bruno Haible  <bruno@clisp.org>
67220
67221         * users.txt: New file.
67222
67223 2006-08-11  Bruno Haible  <bruno@clisp.org>
67224
67225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
67226         before <wchar.h>. Needed for OSF/1 and BSD/OS.
67227
67228 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67229
67230         * modules/snprintf (Depends-on): Remove minmax.
67231         (Maintainer): Add self and Bruno.
67232
67233 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67234
67235         * lib/.cppi-disable: Add snprintf.h, socket_.h.
67236         * lib/snprintf.c: Include <errno.h> and <limits.h>.
67237         (EOVERFLOW): Define if the system does not.
67238         Do not include "minmax.h"; it wasn't used.
67239         (snprintf): Don't assume size_t promotes to an unsigned type.
67240         Fix bug when generated string was too long for the buffer: the
67241         buffer's contents are supposed to be the initial prefix of the
67242         output.  Don't assume vasnprintf returns EOVERFLOW if the size
67243         exceeds INT_MAX; do the check ourselves.
67244
67245         Import the following changes from libc:
67246
67247         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
67248
67249         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
67250         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
67251         set wc to the byte which couldn't be converted.
67252         (re_string_reconstruct): Don't clear valid_raw_len before calling
67253         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
67254         tip_context using re_string_context_at.
67255
67256         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
67257
67258         * lib/posix/regex.h: g++ still cannot handled [restrict].
67259
67260         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
67261
67262         * lib/posix/regex.h: Remove special handling for VMS.
67263
67264 2006-08-10  Jim Meyering  <jim@meyering.net>
67265
67266         * modules/same-inode: New module.
67267         * modules/dev-ino: New module.
67268         * modules/cycle-check: Depend on these modules, rather than simply
67269         including their .h files.
67270         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
67271         required via m4/cycle-check.m4.
67272         * modules/same: Depend on new same-inode module, rather than
67273         including same-inode.h.
67274         * modules/chdir-safer: New file.
67275
67276         * modules/chown (Depends-on): Add stat-macros.
67277
67278 2006-08-10  Jim Meyering  <jim@meyering.net>
67279
67280         * m4/cycle-check.m4: New file.
67281         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
67282         * m4/dev-ino.m4, m4/same-inode.m4: New files.
67283
67284 2006-08-10  Eric Blake  <ebb9@byu.net>
67285
67286         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
67287         in from original proposal.
67288
67289 2006-08-10  Eric Blake  <ebb9@byu.net>
67290         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67291
67292         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
67293         namespace.
67294
67295 2006-08-10  Bruno Haible  <bruno@clisp.org>
67296
67297         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
67298         as well.
67299
67300 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67301
67302         Sync from coreutils.
67303
67304         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
67305
67306         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
67307         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
67308
67309 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67310
67311         * modules/restrict: Remove; no longer needed now that we assume
67312         Autoconf 2.59 or later.
67313         * MODULES.html.sh: Remove 'restrict'.
67314         * modules/argp (Depends-on): Remove 'restrict'.
67315         * modules/base64 (Depends-on): Likewise.
67316         * modules/gc (Depends-on): Likewise.
67317         * modules/getaddrinfo (Depends-on): Likewise.
67318         * modules/glob (Depends-on): Likewise.
67319         * modules/inet_ntop (Depends-on): Likewise.
67320         * modules/inet_pton (Depends-on): Likewise.
67321         * modules/memxor (Depends-on): Likewise.
67322         * modules/regex (Depends-on): Likewise.
67323         * modules/strtok_r (Depends-on): Likewise.
67324         * modules/time_r (Depends-on): Likewise.
67325
67326 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67327
67328         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
67329         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
67330         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67331         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
67332         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
67333         * m4/memxor.m4 (gl_MEMXOR): Likewise.
67334         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
67335         gl_C_RESTRICT replaced by AC_C_RESTRICT.
67336
67337         Merge from coreutils.
67338         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
67339         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
67340         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67341         * m4/time_r.m4 (gl_TIME_R): Likewise.
67342
67343 2006-08-09  Karl Berry  <karl@gnu.org>
67344
67345         * config/srclist.txt: no more gettext-tools, per Bruno.
67346
67347 2006-08-08  Eric Blake  <ebb9@byu.net>
67348
67349         * modules/verror: New module.
67350         * MODULES.html.sh: Document it.
67351
67352 2006-08-08  Eric Blake  <ebb9@byu.net>
67353
67354         * lib/verror.h, lib/verror.c: New files.
67355
67356 2006-08-08  Eric Blake  <ebb9@byu.net>
67357
67358         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
67359         verror_at_line output complies with GNU Coding Standards even when
67360         file is NULL.
67361
67362 2006-08-07  Bruno Haible  <bruno@clisp.org>
67363
67364         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
67365         versions of AIX.
67366         Reported by Ralf Wildenhues.
67367
67368 2006-08-07  Bruno Haible  <bruno@clisp.org>
67369
67370         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
67371         in an AC_DEFUN. Needed so that the autoconf snippets can use
67372         AC_REQUIRE.
67373
67374 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67375
67376         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67377         Initialize pkgdata_DATA.
67378         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
67379         overriding it.
67380
67381 2006-08-06  Eric Blake  <ebb9@byu.net>
67382
67383         * lib/error.h: Fold in some upstream changes from glibc.
67384         * lib/error.c: Likewise.
67385
67386 2006-08-04  Bruno Haible  <bruno@clisp.org>
67387
67388         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67389         Make the mostlyclean-local rule depend on mostlyclean-generic.
67390         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
67391
67392 2006-07-31  Bruno Haible  <bruno@clisp.org>
67393
67394         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
67395         <stdlib.h>, <string.h>.
67396
67397 2006-07-30  Bruno Haible  <bruno@clisp.org>
67398
67399         * modules/readlink (License): Change to LGPL.
67400
67401 2006-07-30  Bruno Haible  <bruno@clisp.org>
67402
67403         * modules/javaversion (Makefile.am): Distribute javaversion.java and
67404         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
67405         set PKGDATADIR to point to it.
67406
67407 2006-07-30  Bruno Haible  <bruno@clisp.org>
67408
67409         * modules/csharpexec (configure.ac): Comment out macro invocation.
67410         * modules/javaexec (configure.ac): Likewise.
67411         * modules/javacomp-script (configure.ac): Likewise.
67412
67413         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
67414
67415 2006-07-30  Bruno Haible  <bruno@clisp.org>
67416
67417         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
67418         linked-list.
67419
67420 2006-07-30  Bruno Haible  <bruno@clisp.org>
67421
67422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
67423
67424 2006-07-30  Bruno Haible  <bruno@clisp.org>
67425
67426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67427         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
67428         get removed.
67429
67430 2006-07-29  Bruno Haible  <bruno@clisp.org>
67431
67432         Make it possible for gnulib-tool to work with locally modified or
67433         augmented gnulib repositories.
67434         * gnulib-tool (func_usage): Document --local-dir option.
67435         (local_gnulib_dir): New variable.
67436         Handle --local-dir option.
67437         (func_lookup_file): New function.
67438         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
67439         (func_get_description, func_get_filelist, func_get_description,
67440         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
67441         func_get_automake_snippet, func_get_include_directive,
67442         func_get_license, func_get_maintainer): Use func_lookup_file.
67443         (func_import, func_create_testdir): Use func_lookup_file.
67444
67445 2006-07-29  Bruno Haible  <bruno@clisp.org>
67446
67447         * modules/setenv (Depends-on): Add unistd.
67448
67449 2006-07-29  Bruno Haible  <bruno@clisp.org>
67450
67451         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
67452
67453 2006-07-29  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
67456
67457 2006-07-29  Bruno Haible  <bruno@clisp.org>
67458
67459         * gnulib-tool (import, update): If there is no Makefile.am, look at
67460         aclocal.m4, instead of bailing out.
67461
67462 2006-07-29  Bruno Haible  <bruno@clisp.org>
67463
67464         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
67465         Categorize the options by when they are useful.
67466
67467 2006-07-29  Bruno Haible  <bruno@clisp.org>
67468
67469         * gnulib-tool (func_usage): Document option --no-libtool.
67470         Handle option --no-libtool.
67471         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
67472         for changed semantics of $libtool variable.
67473         (func_import): Likewise. If libtool is not used, show this through
67474         an option --no-libtool.
67475         (func_create_testdir): Update.
67476
67477 2006-07-29  Bruno Haible  <bruno@clisp.org>
67478
67479         * gnulib-tool (func_import): Extend error message about missing
67480         --doc-base.
67481
67482 2006-07-29  Bruno Haible  <bruno@clisp.org>
67483
67484         * gnulib-tool (func_import): Don't create the $docbase directory if
67485         there is no file to store there.
67486
67487 2006-07-29  Bruno Haible  <bruno@clisp.org>
67488
67489         * gnulib-tool (autoconf_minversion): If a --dir option is given and
67490         relevant, look for configure.ac there, not in the current directory.
67491         Also use a simple search for AC_PREREQ, not "autoconf --trace".
67492
67493 2006-07-29  Bruno Haible  <bruno@clisp.org>
67494
67495         * gnulib-tool (SORT): New variable.
67496         (func_usage): Undocument --assume-autoconf option.
67497         Remove --assume-autoconf option handling.
67498         (autoconf_minversion): Determine from the contents of configure.ac.
67499         (func_import): Remove autoconf_minversion handling.
67500         Suggested by Eric Blake.
67501
67502 2006-07-29  Bruno Haible  <bruno@clisp.org>
67503
67504         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
67505
67506 2006-07-29  Bruno Haible  <bruno@clisp.org>
67507
67508         * config/srclist.txt (*setenv.[ch]): Remove rules.
67509
67510 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67511
67512         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
67513
67514 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67515
67516         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
67517         arpa/inet.h.
67518
67519 2006-07-28  Simon Josefsson  <jas@extundo.com>
67520
67521         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
67522         * modules/inet_pton (Depends-on): Likewise.
67523
67524 2006-07-28  Simon Josefsson  <jas@extundo.com>
67525
67526         * m4/netinet_in_h.m4: New file.
67527
67528 2006-07-28  Simon Josefsson  <jas@extundo.com>
67529
67530         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
67531         #include's.
67532
67533 2006-07-28  Simon Josefsson  <jas@extundo.com>
67534
67535         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
67536         #include's.
67537
67538 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
67539
67540         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
67541         setgid on directories only if they set these bits.
67542         * lib/modechange.h: Remove obsolete comment about masks.
67543
67544 2006-07-28  Eric Blake  <ebb9@byu.net>
67545
67546         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
67547         macro expansion.
67548
67549 2006-07-28  Bruno Haible  <bruno@clisp.org>
67550
67551         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
67552
67553 2006-07-28  Bruno Haible  <bruno@clisp.org>
67554
67555         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
67556
67557 2006-07-28  Bruno Haible  <bruno@clisp.org>
67558
67559         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
67560         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
67561         Define fallbacks.
67562         Avoids link error on FreeBSD 4.x.
67563         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67564
67565         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
67566         encoding.
67567         * lib/mbswidth.c (iswcntrl): Likewise.
67568
67569 2006-07-27  Bruno Haible  <bruno@clisp.org>
67570
67571         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
67572         test.
67573
67574 2006-07-27  Bruno Haible  <bruno@clisp.org>
67575
67576         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
67577         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
67578         defined.
67579
67580 2006-07-26  Eric Blake  <ebb9@byu.net>
67581
67582         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
67583
67584 2006-07-26  Eric Blake  <ebb9@byu.net>
67585
67586         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
67587         like mingw that lack mkstemp.
67588         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
67589         avoid compilation warning on mingw.
67590
67591 2006-07-26  Bruno Haible  <bruno@clisp.org>
67592
67593         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
67594         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
67595         INT_FAST*_MIN, INTPTR_MIN.
67596
67597 2006-07-25  Bruno Haible  <bruno@clisp.org>
67598
67599         * modules/version-etc (Depends-on): Add stdarg.
67600
67601 2006-07-25  Bruno Haible  <bruno@clisp.org>
67602
67603         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
67604         complex commands.
67605
67606 2006-07-25  Bruno Haible  <bruno@clisp.org>
67607
67608         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
67609         defined in <stdarg.h> or config.h.
67610
67611 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
67614         (gl_STDIO_SAFER): Remove.
67615
67616 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67617
67618         * MODULES.html.sh (File stream based Input/Output):
67619         Add fopen-safer, tmpfile-safer; remove stdio-safer.
67620         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
67621         * modules/fopen-safer, modules/tmpfile-safer: New files.
67622         * modules/stdio-safer: Remove.
67623
67624 2006-07-24  Bruno Haible  <bruno@clisp.org>
67625
67626         * modules/tmpdir: New file.
67627         * MODULES.html.sh (File system functions): Add it.
67628
67629 2006-07-24  Bruno Haible  <bruno@clisp.org>
67630
67631         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
67632         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
67633
67634 2006-07-24  Bruno Haible  <bruno@clisp.org>
67635
67636         * modules/clean-temp: New file.
67637
67638 2006-07-24  Bruno Haible  <bruno@clisp.org>
67639
67640         * m4/tmpdir.m4: New file, from GNU gettext.
67641
67642 2006-07-24  Bruno Haible  <bruno@clisp.org>
67643
67644         * lib/tmpdir.h: New file, from GNU gettext.
67645         * lib/tmpdir.c: New file, from GNU gettext.
67646
67647 2006-07-24  Bruno Haible  <bruno@clisp.org>
67648
67649         * lib/clean-temp.h: New file, from GNU gettext.
67650         * lib/clean-temp.c: New file, from GNU gettext.
67651
67652 2006-07-23  Eric Blake  <ebb9@byu.net>
67653
67654         * modules/stdio-safer (Files): Add tmpfile-safer.c.
67655         (Depends-on): Add binary-io.
67656
67657 2006-07-23  Eric Blake  <ebb9@byu.net>
67658
67659         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
67660
67661 2006-07-23  Eric Blake  <ebb9@byu.net>
67662
67663         * lib/tmpfile-safer.c: New file.
67664         * lib/stdio-safer.h (fopen_safer): Add prototype.
67665         * lib/stdio--.h (tmpfile): Make safer.
67666
67667 2006-07-23  Bruno Haible  <bruno@clisp.org>
67668
67669         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67670         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67671         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67672         gl_linked_remove_at): Use it.
67673
67674 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67675         and Simon Josefsson <jas@extundo.com>
67676
67677         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67678
67679         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67680
67681 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         * modules/close-stream: New file.
67684         * modules/closeout (Description): Make it clear that it exits
67685         with a diagnostic on error.
67686         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67687         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67688
67689 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         * m4/close-stream.m4: New file.
67692
67693 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67694
67695         * lib/close-stream.c, lib/close-stream.h: New files.
67696
67697 2006-07-22  Bruno Haible  <bruno@clisp.org>
67698
67699         Merge from GNU gettext 0.15.
67700
67701         2006-05-01  Bruno Haible  <bruno@clisp.org>
67702
67703                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67704
67705         2006-07-22  Bruno Haible  <bruno@clisp.org>
67706
67707                 * modules/javaversion: New file.
67708                 * MODULES.html.sh (Java): Add javaversion.
67709
67710         2006-03-12  Bruno Haible  <bruno@clisp.org>
67711
67712                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67713
67714         2005-12-04  Bruno Haible  <bruno@clisp.org>
67715
67716                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67717                 (untested).
67718
67719         2006-06-21  Bruno Haible  <bruno@clisp.org>
67720
67721                 Avoid warnings from recent versions of mcs.
67722                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67723                 -o, -L, -r any more. Use options documented since mcs-1.0
67724                 instead. Similarly for -g.
67725
67726         2005-12-04  Bruno Haible  <bruno@clisp.org>
67727
67728                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67729                 .resources, not .resource.
67730
67731         2005-07-09  Bruno Haible  <bruno@clisp.org>
67732
67733                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67734                 add a .dll suffix.
67735                 Reported by Mark Junker <mjscod@gmx.de>.
67736
67737         2006-07-22  Bruno Haible  <bruno@clisp.org>
67738
67739                 * modules/gettext: Upgrade to gettext-0.15.
67740                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67741                 m4/visibility.m4.
67742                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67743
67744 2006-07-22  Bruno Haible  <bruno@clisp.org>
67745
67746         Merge from GNU gettext 0.15.
67747
67748         2006-03-25  Bruno Haible  <bruno@clisp.org>
67749
67750                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67751
67752         2006-07-21  Bruno Haible  <bruno@clisp.org>
67753
67754                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67755                 "1.1".
67756
67757         2006-05-09  Bruno Haible  <bruno@clisp.org>
67758
67759                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67760                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67761                 for the conftestver execution.
67762
67763         2006-05-01  Bruno Haible  <bruno@clisp.org>
67764
67765                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67766                 optional target-version argument. Verify that the compiler
67767                 groks source of the specified source-version, or add -source
67768                 option as necessary. Verify that the compiler produces
67769                 bytecode in the specified target-version, or add -target and
67770                 -source options as necessary. Make the result of the test
67771                 available as variable CONF_JAVAC. Also log error output in
67772                 config.log.
67773
67774         2006-03-11  Bruno Haible  <bruno@clisp.org>
67775
67776                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67777
67778         2006-05-09  Bruno Haible  <bruno@clisp.org>
67779
67780                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67781                 CLASSPATH_SEPARATOR to a semicolon.
67782
67783         2006-03-12  Bruno Haible  <bruno@clisp.org>
67784
67785                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67786                 available as variable CONF_JAVA, for subsequent autoconf
67787                 tests. Also log error output in config.log.
67788
67789         2006-07-19  Bruno Haible  <bruno@clisp.org>
67790
67791                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67792                 that getline works on glibc2 systems. Needed to avoid trouble
67793                 in relocatable.c.
67794                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67795
67796         2005-12-04  Bruno Haible  <bruno@clisp.org>
67797
67798                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67799                 launcher (untested).
67800
67801         2005-12-04  Bruno Haible  <bruno@clisp.org>
67802
67803                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67804
67805         2006-07-22  Bruno Haible  <bruno@clisp.org>
67806
67807                 * gettext.m4: Update from GNU gettext-0.15.
67808                 * nls.m4: Likewise.
67809                 * po.m4: Likewise.
67810                 * inttypes-pri.m4: Likewise.
67811                 * inttypes-h.m4: Renamed from inttypes.m4.
67812                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67813
67814 2006-07-22  Bruno Haible  <bruno@clisp.org>
67815
67816         Merge from GNU gettext 0.15.
67817
67818         2005-07-05  Bruno Haible  <bruno@clisp.org>
67819
67820                 * printf-args.c (printf_fetchargs): Work around broken
67821                 definition of wint_t on mingw.
67822
67823         2005-02-12  Bruno Haible  <bruno@clisp.org>
67824
67825                 * xallocsa.h: Add extern "C" for C++.
67826
67827         2006-05-17  Bruno Haible  <bruno@clisp.org>
67828
67829                 Cygwin portability.
67830                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67831
67832         2006-04-30  Bruno Haible  <bruno@clisp.org>
67833
67834                 * progreloc.c: Include <mach-o/dyld.h> if available.
67835                 (find_executable): Use _NSGetExecutablePath when possible.
67836
67837         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67838
67839                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67840                 function.
67841
67842         2005-12-29  Bruno Haible  <bruno@clisp.org>
67843
67844                 * progreloc.c (set_program_name_and_installdir): Fix
67845                 compilation error.
67846
67847         2005-12-04  Bruno Haible  <bruno@clisp.org>
67848
67849                 Cygwin portability.
67850                 * progreloc.c: Include <windows.h> also on Cygwin.
67851                 (find_executable): Add support for Cygwin.
67852                 (set_program_name_and_installdir): Handle also platforms with
67853                 nonempty EXEEXT.
67854
67855         2006-07-11  Bruno Haible  <bruno@clisp.org>
67856
67857                 * javacomp.c: Fix a comment.
67858                 Reported by Jim Meyering.
67859
67860         2006-04-30  Bruno Haible  <bruno@clisp.org>
67861
67862                 * javacomp.h (compile_java_class): Add source_version,
67863                 target_version arguments.
67864                 * javacomp.c: Rewritten to choose only a compiler that
67865                 respects the specified source_version and target_version.
67866
67867         2006-06-27  Bruno Haible  <bruno@clisp.org>
67868
67869                 Assume correct S_ISDIR macro.
67870                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67871
67872         2006-07-22  Bruno Haible  <bruno@clisp.org>
67873
67874                 * javaversion.h: New file, from GNU gettext.
67875                 * javaversion.c: New file, from GNU gettext.
67876                 * javaversion.java: New file, from GNU gettext.
67877                 * javaversion.class: New file, from GNU gettext.
67878
67879         2006-05-17  Bruno Haible  <bruno@clisp.org>
67880
67881                 Cygwin portability.
67882                 * javaexec.c (execute_java_class): Test for jview program
67883                 also on Cygwin.
67884
67885         2006-04-09  Bruno Haible  <bruno@clisp.org>
67886
67887                 * fatal-signal.c: Don't include string.h.
67888                 (at_fatal_signal): Use a copying loop instead of memcpy.
67889
67890         2005-12-04  Bruno Haible  <bruno@clisp.org>
67891
67892                 * csharpexec.c: Add support for 'clix' launcher (untested).
67893                 (execute_csharp_using_sscli): New function.
67894                 (execute_csharp_program): Call it.
67895
67896         2006-06-21  Bruno Haible  <bruno@clisp.org>
67897
67898                 Avoid warnings from recent versions of mcs.
67899                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67900                 -o, -L, -r any more. Use options documented since mcs-1.0
67901                 instead. Similarly for -g.
67902
67903         2005-07-09  Bruno Haible  <bruno@clisp.org>
67904
67905                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67906                 add a .dll suffix.
67907                 Reported by Mark Junker <mjscod@gmx.de>.
67908
67909         2006-06-17  Bruno Haible  <bruno@clisp.org>
67910
67911                 * config.charset: Update for NetBSD 3.0.
67912
67913         2006-05-17  Bruno Haible  <bruno@clisp.org>
67914
67915                 Cygwin portability.
67916                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67917
67918         2006-05-16  Bruno Haible  <bruno@clisp.org>
67919
67920                 * localcharset.c [CYGWIN]: Include <windows.h>.
67921                 (get_charset_aliases): For Cygwin, return the same CPxxx
67922                 aliases list as under WIN32.
67923                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67924                 the environment variables. Fall back to GetACP().
67925
67926         2006-04-05  Bruno Haible  <bruno@clisp.org>
67927
67928                 * config.charset: Update Juan Manuel Guerrero's address.
67929
67930         2005-02-12  Bruno Haible  <bruno@clisp.org>
67931
67932                 * allocsa.h: Add extern "C" for C++.
67933
67934         2005-02-10  Bruno Haible  <bruno@clisp.org>
67935
67936                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67937                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67938
67939         2006-07-22  Bruno Haible  <bruno@clisp.org>
67940
67941                 * gettext.h: Update to GNU gettext-0.15.
67942
67943 2006-07-22  Bruno Haible  <bruno@clisp.org>
67944
67945         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67946         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67947         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67948
67949 2006-07-21  Eric Blake  <ebb9@byu.net>
67950
67951         * modules/stdlib-safer: New file.
67952         * MODULES.html.sh (File stream based Input/Output): Add
67953         stdlib-safer.
67954
67955 2006-07-21  Eric Blake  <ebb9@byu.net>
67956
67957         * lib/stdlib-safer.h: New file from coreutils, required by
67958         stdlib--.h.
67959
67960 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67961
67962         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67963
67964 2006-07-20  Bruno Haible  <bruno@clisp.org>
67965
67966         * gnulib-tool: Recognize new option --assume-autoconf.
67967         (autoconf_minversion): New variable.
67968         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67969
67970 2006-07-20  Bruno Haible  <bruno@clisp.org>
67971
67972         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67973
67974 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67975
67976         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67977         Reindent and repaginate.
67978
67979 2006-07-19  Derek Price  <derek@ximbiot.com>
67980
67981         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67982         Correct grammar.
67983
67984 2006-07-17  Bruno Haible  <bruno@clisp.org>
67985
67986         * modules/list: New file.
67987         * modules/array-list: New file.
67988         * modules/carray-list, modules/carray-list-tests: New files.
67989         * modules/linked-list, modules/linked-list-tests: New files.
67990         * modules/avltree-list, modules/avltree-list-tests: New files.
67991         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67992         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67993         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67994         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67995         * modules/oset: New file.
67996         * modules/array-oset: New file.
67997         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67998         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67999         * tests/test-carray_list.c: New file.
68000         * tests/test-linked_list.c: New file.
68001         * tests/test-avltree_list.c: New file.
68002         * tests/test-rbtree_list.c: New file.
68003         * tests/test-linkedhash_list.c: New file.
68004         * tests/test-avltreehash_list.c: New file.
68005         * tests/test-rbtreehash_list.c: New file.
68006         * tests/test-avltree_oset.c: New file.
68007         * tests/test-rbtree_oset.c: New file.
68008         * MODULES.html.sh (Container data structures): New section.
68009
68010 2006-07-17  Bruno Haible  <bruno@clisp.org>
68011
68012         * m4/gl_list.m4: New file.
68013
68014 2006-07-17  Bruno Haible  <bruno@clisp.org>
68015
68016         * lib/gl_list.h: New file.
68017         * lib/gl_list.c: New file.
68018         * lib/gl_array_list.h: New file.
68019         * lib/gl_array_list.c: New file.
68020         * lib/gl_carray_list.h: New file.
68021         * lib/gl_carray_list.c: New file.
68022         * lib/gl_linked_list.h: New file.
68023         * lib/gl_linked_list.c: New file.
68024         * lib/gl_anylinked_list1.h: New file.
68025         * lib/gl_anylinked_list2.h: New file.
68026         * lib/gl_avltree_list.h: New file.
68027         * lib/gl_avltree_list.c: New file.
68028         * lib/gl_anyavltree_list1.h: New file.
68029         * lib/gl_anyavltree_list2.h: New file.
68030         * lib/gl_rbtree_list.h: New file.
68031         * lib/gl_rbtree_list.c: New file.
68032         * lib/gl_anyrbtree_list1.h: New file.
68033         * lib/gl_anyrbtree_list2.h: New file.
68034         * lib/gl_anytree_list1.h: New file.
68035         * lib/gl_anytree_list2.h: New file.
68036         * lib/gl_linkedhash_list.h: New file.
68037         * lib/gl_linkedhash_list.c: New file.
68038         * lib/gl_anyhash_list1.h: New file.
68039         * lib/gl_anyhash_list2.h: New file.
68040         * lib/gl_avltreehash_list.h: New file.
68041         * lib/gl_avltreehash_list.c: New file.
68042         * lib/gl_rbtreehash_list.h: New file.
68043         * lib/gl_rbtreehash_list.c: New file.
68044         * lib/gl_anytreehash_list1.h: New file.
68045         * lib/gl_anytreehash_list2.h: New file.
68046
68047         * lib/gl_oset.h: New file.
68048         * lib/gl_oset.c: New file.
68049         * lib/gl_array_oset.h: New file.
68050         * lib/gl_array_oset.c: New file.
68051         * lib/gl_avltree_oset.h: New file.
68052         * lib/gl_avltree_oset.c: New file.
68053         * lib/gl_rbtree_oset.h: New file.
68054         * lib/gl_rbtree_oset.c: New file.
68055         * lib/gl_anytree_oset.h: New file.
68056
68057 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68058
68059         * m4/mkancesdirs.m4: New file.
68060         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
68061         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
68062         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
68063         it.
68064
68065 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68066
68067         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
68068         * lib/mkancesdirs.h: New files.
68069         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
68070         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
68071         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
68072         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
68073         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
68074         callers changed.  Revamp internals significantly, by not
68075         attempting to create directories that are temporarily more
68076         permissive than the final results.  Do not attempt to use
68077         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
68078         This removes some race conditions, fixes some bugs, and simplifies
68079         things.  Use new dirchownmod function to do owner and mode changes.
68080         * lib/mkdir-p.h: Likewise.
68081         * lib/modechange.c (octal_to_mode): New function.
68082         (struct mode_change): New member mentioned.
68083         (make_node_op_equals): New arg mentioned.  All callers changed.
68084         (mode_compile): Keep track of which mode bits the user has explicitly
68085         mentioned.
68086         (mode_adjust): New arg DIR, so that we implement the X op correctly.
68087         New arg PMODE_BITS, to keep track of which mode bits the user
68088         mentioned; it treats S_ISUID and S_ISGID speciall.
68089         All callers changed.
68090         * lib/modechange.h: Likewise.
68091
68092 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68093
68094         * MODULES.html.sh: Add mkancestors.
68095         * modules/mkancesdirs: New module.
68096         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
68097         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
68098         The chdir-safer and afs files are now orphans; I'll remove them
68099         unless someone speaks up.
68100         Add lib/dirchownmod.c, lib/dirchownmod.h.
68101         (Depends-on): Remove alloca, chown, save-cwd, dirname.
68102         Add lchown, mkancesdirs.
68103         (Maintainer): Add self.
68104
68105 2006-07-15  Karl Berry  <karl@gnu.org>
68106
68107         * gnulib-tool: help message wording/arrangement.
68108
68109 2006-07-14  Simon Josefsson  <jas@extundo.com>
68110
68111         * doc/gnulib.texi (Libtool and Windows): New section.
68112
68113 2006-07-12  Simon Josefsson  <jas@extundo.com>
68114
68115         * modules/gendocs (License): Fix license, approved by Karl.
68116
68117 2006-07-12  Eric Blake  <ebb9@byu.net>
68118
68119         * MODULES.html.sh: Add gendocs.
68120
68121 2006-07-11  Eric Blake  <ebb9@byu.net>
68122
68123         * modules/fdl: New module, to install doc/fdl.texi.
68124         * MODULES.html.sh: Add new section for documentation modules.
68125         * gnulib-tool: Avoid space-tab.
68126         (--doc-base): New option, to manage files from doc.
68127
68128 2006-07-11  Eric Blake  <ebb9@byu.net>
68129
68130         * m4/absolute-header.m4: Fix comments to match recent change.
68131
68132 2006-07-11  Eric Blake  <ebb9@byu.net>
68133
68134         * gnulib-tool: List --doc-base before --tests-base.
68135
68136 2006-07-11  Derek R. Price  <derek@ximbiot.com>
68137
68138         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
68139
68140 2006-07-11  Bruno Haible  <bruno@clisp.org>
68141
68142         * README: Mention where to put documentation.
68143
68144 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68145
68146         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
68147
68148 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68149
68150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
68151         to stdint.m4.
68152
68153 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68154
68155         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
68156         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
68157         "no/such/file/stdint.h" when there is no such file, so that
68158         the resulting C code can be parsed by dodgy compilers.
68159         Problems reported by Bob Proulx.
68160
68161 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68162
68163         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
68164         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68165         macros into the GNU _D_EXACT_NAMLEN.
68166         * lib/savedir.c:  Likewise.
68167         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
68168
68169 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68170         and Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
68173         * m4/savedir.m4:
68174         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68175         macros into the GNU _D_EXACT_NAMLEN.
68176
68177 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68178
68179         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
68180         around the absolute name, to work around a problem with the HP-UX
68181         11.23 native C compiler, reported by Bob Proulx.
68182
68183 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         * doc/maintain.texi, make-stds.texi: Sync from
68186         <http://savannah.gnu.org/projects/gnustandards>.
68187
68188 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68189
68190         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
68191
68192 2006-07-09  Jim Meyering  <jim@meyering.net>
68193
68194         * m4/glob.m4: Remove a doubled word in a comment.
68195
68196 2006-07-09  Jim Meyering  <jim@meyering.net>
68197
68198         * lib/argp-pv.c: Remove a doubled word in a comment.
68199         * lib/check-version.c (check_version): Likewise.
68200         * lib/javacomp.c (compile_java_class): Likewise.
68201
68202 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68203
68204         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
68205         for the benefit of people using Autoconf 2.60.  If you want to
68206         support older Autoconf versions you can copy m4/onceonly_2_57.m4
68207         (or m4/onceonly.m4, if pre-2.57) manually.
68208
68209 2006-07-08  Jim Meyering  <jim@meyering.net>
68210
68211         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
68212         comment.
68213         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
68214         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
68215         comment.
68216
68217 2006-07-08  Jim Meyering  <jim@meyering.net>
68218
68219         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
68220
68221 2006-07-07  Simon Josefsson  <jas@extundo.com>
68222
68223         * tests/test-crc.c: Change expected crc value, the test vector
68224         were probably computed using the old broken crc.c?
68225
68226 2006-07-06  Simon Josefsson  <jas@extundo.com>
68227
68228         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
68229         now the canonical place for the M4 file).
68230
68231         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
68232         from the sys_socket dependency now.
68233
68234         * modules/inet_pton (Files): Ditto.
68235
68236         * modules/inet_ntop (Files): Ditto.
68237
68238 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68239
68240         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
68241         not gl_PREREQ_GETUSERSHELL.
68242
68243 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68244
68245         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
68246         with only one argument, for Autoconf 2.60.
68247         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
68248         expand to nothing, so add a shell command to avoid syntax error.
68249         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68250
68251 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68252
68253         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
68254
68255 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68256
68257         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
68258         no longer needed.  Check for isblank decl.
68259         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
68260         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
68261         of existence.
68262
68263 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * lib/getloadavg.c: Use __VMS, not VMS.
68266         * lib/getopt.c: Likewise.
68267         * lib/getpagesize.h: Likewise.
68268         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
68269         and probably does not work.
68270
68271 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68272
68273         * lib/.cppi-disable: Add wcwidth.
68274         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
68275         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
68276         (ISGRAPH): Remove.  All uses changed to isgraph.
68277         (FOLD) [!defined _LIBC]: Remove special case.
68278         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
68279         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
68280         HAVE_ISBLANK.
68281         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
68282         case.
68283
68284 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68285
68286         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
68287         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
68288         brackets.  Other minor changes to suppress some compiler
68289         warnings.
68290
68291 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68292         and Paul Eggert  <eggert@cs.ucla.edu>
68293
68294         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
68295         of invoking obsolescent AC_HEADER_DIRENT macro.
68296         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
68297         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
68298         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
68299         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68300         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
68301         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68302         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
68303         * m4/readdir.m4: Remove; no longer needed.
68304
68305 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68306         and Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
68309         Don't worry about this obsolete case any more.
68310         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
68311         directories.
68312         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
68313         worry about this obsolete case any more.
68314         * lib/fts.c: Likewise.
68315         * lib/getcwd.c: Likewise.
68316         * lib/glob.h: Likewise.
68317         * lib/savedir.c: Likewise.
68318
68319 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68320
68321         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
68322         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
68323         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
68324         needed.
68325         All uses removed.
68326         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68327         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68328         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
68329         needed.
68330         * m4/getdate.m4 (gl_GETDATE): Likewise.
68331         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68332         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68333         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68334         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68335         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68336         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68337         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
68338         needed.
68339
68340 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68341
68342         * lib/memcasecmp.c: Include <limits.h>.
68343         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
68344         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
68345         Don't assume isdigit succeeds only on '0' through '9'.
68346
68347 2006-07-05  Eric Blake  <ebb9@byu.net>
68348
68349         * modules/getaddrinfo (Depends-on): Add snprintf.
68350
68351 2006-07-05  Eric Blake  <ebb9@byu.net>
68352
68353         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
68354         to avoid 'header present but could not be compiled' on cygwin.
68355
68356 2006-07-05  Eric Blake  <ebb9@byu.net>
68357
68358         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
68359         missing from netdb.h.
68360         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
68361
68362 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68363
68364         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
68365         no longer needed.
68366         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
68367         * m4/getdate.m4 (gl_GETDATE): Likewise.
68368         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68369         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68370         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68371         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68372         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68373
68374 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68375
68376         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
68377         All uses of is_space replaced by isspace.
68378         * lib/exit.h: Don't talk about STDC_HEADERS.
68379         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
68380         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
68381         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
68382         replaced by isprint etc.
68383         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
68384         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68385         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
68386         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
68387         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
68388         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68389
68390 2006-07-05  Bruno Haible  <bruno@clisp.org>
68391
68392         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
68393         the function exists, before testing against AIX.
68394         Reported by Martin Lambers <marlam@marlam.de>.
68395
68396 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
68399         From Mark D. Baushke.
68400
68401 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
68404         to the absolute name, not just one, to bypass Sun C 5.8's
68405         "warning: #include of /usr/include/... may be non-portable".
68406
68407 2006-07-04  Eric Blake  <ebb9@byu.net>
68408
68409         * modules/dirname-tests: New test module.
68410         * tests/test-dirname.c: New file, replacing dirname.c
68411         TEST_DIRNAME section that was recently deleted.
68412
68413 2006-07-04  Bruno Haible  <bruno@clisp.org>
68414
68415         Assume ANSI C header files and <ctype.h> functions.
68416         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
68417         (mbsnwidth): Use isprint, iscntrl instead.
68418
68419 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         Merge from coreutils.
68422         * MODULES.html.sh: Add xstrtold.
68423         * modules/xstrtold: New file.
68424         * modules/cycle-check (Files): Add lib/same-inode.h.
68425         * modules/dirname (Files): Add m4/double-slash-root.m4.
68426         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
68427         * modules/mkdir-p (Files): Add lib/same-inode.h.
68428         * modules/same (Files): Add lib/same-inode.h.
68429
68430 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68431
68432         * m4/absolute-header.m4: Renamed from full-header-path.m4.
68433         This is to keep the terminology clean; POSIX talks about
68434         "absolute pathnames", not "full pathnames", but the GNU
68435         Coding Standards say to use "path" for something else;
68436         so use "absolute" to keep both sides happy.
68437         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
68438         Set gl_absolute_header, not gl_full_header_path.
68439         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
68440         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
68441         All uses changed.
68442
68443         Merge from coreutils.
68444
68445         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68446
68447         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
68448         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
68449         want to require the building of c-strtod.o.
68450         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
68451         needs -lm directly.
68452         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
68453
68454         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68455
68456         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
68457         --as-needed option if available.  Problem reported by Albert Chin in
68458         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
68459         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
68460         cc merely issues a bunch of annoying warnings for --as-needed
68461         (this problem was reported by Bob Proulx).  Also, try linking with
68462         -lm to detect a bug in binutils 2.16 (this problem was reported
68463         by Ralf Wildenhues).
68464
68465         2006-06-18  Jim Meyering  <jim@meyering.net>
68466
68467         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
68468         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
68469         macro.
68470         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
68471         also check for glibc-2.4's abort-inducing bug.
68472
68473         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
68474         Low-probability clean-up should be to use rmdir to get rid of
68475         the just-created directory, not unlink.
68476
68477         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
68478         configure fail, and request a bug report to inform us about it.
68479         Add a comment that, barring reports to the contrary, in 2007 we'll
68480         assume ftruncate is universally available.
68481
68482         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68483
68484         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
68485
68486         2006-03-12  Jim Meyering  <jim@meyering.net>
68487
68488         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
68489         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
68490         * m4/same.m4 (gl_SAME): Likewise.
68491         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
68492
68493         2006-03-11  Eric Blake  <ebb9@byu.net>
68494
68495         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
68496         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
68497         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
68498         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
68499
68500 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
68503         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
68504         reported by Mark D. Baushke, one in
68505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
68506
68507         Merge from coreutils.
68508
68509         * lib/.cppi-disable: Add stdint_.h.
68510         * lib/.cvsignore: Add stdint.h.
68511
68512         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
68515         both double and long double versions.
68516         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
68517         * lib/xstrtold.c: New file.
68518         * lib/xstrtod.h (xstrtold): New decl.
68519
68520         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * lib/filemode.c (setst): Remove.
68523         (strmode): Rewrite to avoid setst.  This makes the code shorter,
68524         (arguably) clearer, and the generated code is a bit smaller on my
68525         Debian GNU/Linux stable x86 host.
68526
68527         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68528
68529         * lib/filemode.c: Include "filemode.h" first, to test the interface.
68530         Assume that filemode.h includes sys/types.h and sys/stat.h.
68531         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
68532         (ftypelet): Reorder to put common cases first, for efficiency.
68533         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
68534         to do 'M'.
68535         (strmode): Renamed from mode_string, and now stores 12 bytes instead
68536         of 10, for compatibility with FreeBSD.  All callers changed.
68537         (filemodestring): Now stores 12 bytes instead of 10, and sets file
68538         types that can't be deduced solely from st_mode.  First arg is now a
68539         const pointer.
68540         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
68541         (strmode): Renamed from mode_string.
68542         (filemodestring): New decl.
68543         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
68544         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
68545         needed.
68546         (S_ISPORT, S_ISWHT): New macros, if not already defined.
68547
68548         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68549
68550         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
68551         fsusage.h now does that.  Include fsusage.h first, to test interface.
68552         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
68553         at most one method (the old code could have generated decls that
68554         didn't conform to C89, not that this was ever exercised).
68555         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
68556
68557         2006-03-19  Jim Meyering  <jim@meyering.net>
68558
68559         Work even in a chroot where d_ino values for entries in "/"
68560         don't match the stat.st_ino values for the same names.
68561         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
68562         number, iterate through all entries again, using lstat instead.
68563         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
68564         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
68565
68566         * lib/getcwd.c (__getcwd): Clarify a comment.
68567         Use memcpy in place of a call to strcpy.
68568
68569         2006-03-12  Jim Meyering  <jim@meyering.net>
68570
68571         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
68572         matches that of the current directory (which we're about to chdir ".."
68573         out of), then save the dev-ino of the parent, instead.
68574
68575         * lib/same-inode.h (SAME_INODE): New file/macro.
68576         * lib/chdir-safer.c (SAME_INODE): Remove definition.
68577         Include "same-inode.h", instead.
68578         * lib/same.c: Likewise.
68579         * lib/cycle-check.h: Include "same-inode.h".
68580         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
68581         * lib/cycle-check.c (SAME_INODE): Remove definition.
68582         * lib/root-dev-ino.h: Include "same-inode.h".
68583
68584         2006-03-11  Eric Blake  <ebb9@byu.net>
68585
68586         * lib/same.c (same_name): s/base_name/last_component/
68587         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
68588         * lib/filenamecat.c (file_name_concat): Likewise.
68589
68590         2006-03-11  Eric Blake  <ebb9@byu.net>,
68591                     Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
68594         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
68595         drive prefix.
68596         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
68597         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
68598         (last_component): New method.
68599         * lib/dirname.c (dir_len): Determine when drive letters need a
68600         subsequent slash.  Preserve // when it is special.
68601         (dir_name): Don't append dot when drive letter is absolute.
68602         [TEST_DIRNAME]: Move into a full-blown gnulib test.
68603         * lib/basename.c (base_name): New semantics - malloc the result.
68604         Preserve // when it is special.  Preserve relative files that look
68605         like drive letters.
68606         (base_len): Preserve // when it is special.
68607         (last_component): New method, similar to old base_name semantics.
68608         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
68609         base_name.  Strip redundant slashes from ///.
68610
68611 2006-07-03  Jim Meyering  <jim@meyering.net>
68612
68613         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
68614         macro is used before the first cycle_check call.
68615
68616 2006-07-03  Eric Blake  <ebb9@byu.net>
68617
68618         * modules/dirname (Depends-on): Add xstrndup.
68619
68620 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
68623         test cases, so that config.log is a bit easier to follow.
68624
68625 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68626
68627         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
68628         both are 64 bits, since this seems to be the tradition, and this
68629         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
68630         we ever run into a host that prefers long long to long in this
68631         case, we'll need another configure-time test.  Problem reported by
68632         Jim Meyering.
68633
68634 2006-07-02  Eric Blake  <ebb9@byu.net>
68635
68636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
68637
68638 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         * modules/inttypes (Depends-on): No longer depends on stdint.
68641         * modules/stdint (Description): Say more about assumptions.
68642         Say that the fast types might differ.  Say macros are used.
68643         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
68644         (Makefile.am): Revise list of substituted symbols to match
68645         new stdint.m4.
68646         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
68647         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
68648         * tests/test-stdint.c (verify_same_types)
68649         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
68650         the code conforms to C99/C89.
68651         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
68652         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
68653
68654 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68655
68656         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
68657         but fix a bug, by requiring at least 64 bits.
68658         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
68659         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
68660         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
68661         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68662
68663         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
68664         changes.  Make 2.59 a prerequisite.  Check and substitute for
68665         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68666         inttypes.h.  Do not use special include files; just use the
68667         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68668         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68669         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68670         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68671         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68672         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68673         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68674         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68675         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68676         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68677         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68678         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68679         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68680         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68681         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68682         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68683         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68684         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68685         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68686         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68687         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68688         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68689         not check for things that C99 does not require, e.g., int8_t.  If
68690         a test isn't needed unless <stdint.h> isn't working, and is
68691         unlikely to be needed for any other reason, then don't do it
68692         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68693         size_t, since we assume C89 freestanding at least.  Do not check
68694         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68695         the right thing even if the types are not defined.  Instead use:
68696         (gl_STDINT_TYPE_PROPERTIES): New macro.
68697         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68698         testing whether <sys/types.h> clashes, as Autoconf does this for
68699         us now.  All uses removed.
68700         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68701         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68702         (gl_CHECK_TYPE_SAME):
68703         Remove; no longer needed.
68704         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68705         exists, since we'll return 0 anyway in that case.
68706         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68707
68708 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68709
68710         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68711         possible collision with system files.
68712         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68713         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68714         WCHAR_MIN and WCHAR_MAX in this case.
68715         (<stddef.h>): Do not include; no longer needed.
68716         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68717         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68718         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68719         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68720         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68721         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68722         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68723         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68724         !defined(__c99))]: Include in this case too, since it's harmless
68725         now.
68726         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68727         dangerous to do so.
68728         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68729         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68730         (_STDINT_MIN, _STDINT_MAX): New macros.
68731         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68732         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68733         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68734         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68735         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68736         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68737         macros, not typedefs; this simplifies things quite a bit.
68738         Use long int for all types narrower than int64_t.
68739         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68740         Define in terms of long long int or int64_t or long int,
68741         not int64_t or int32_t.  This saves some compile-time testing.
68742         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68743         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68744         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68745         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68746         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68747         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68748         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68749         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68750         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68751         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68752         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68753         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68754         undef any previous version and define our own version, for
68755         simplicity and consistency with the new macros for types.
68756         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68757         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68758         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68759         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68760         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68761         @WINT_T_SUFFIX@ to keep things simple here.
68762         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68763         Simplify by assuming typical 8/16/32/64 host, since we're
68764         already doing that elsewhere anyway.
68765         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68766         and assume long long int is 64 bits if available.  This
68767         speeds up 'configure'.
68768
68769 2006-07-01  Eric Blake  <ebb9@byu.net>
68770
68771         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68772         Reported by Andreas Buening.
68773
68774 2006-07-01  Eric Blake  <ebb9@byu.net>
68775
68776         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68777
68778 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68779
68780         * lib/getaddrinfo.c: fixed typo
68781
68782 2006-06-29  Jim Meyering  <jim@meyering.net>
68783
68784         * modules/strftime (Maintainer): Add my name, since with the
68785         FPRINTFTIME changes strftime.c has forked from glibc.
68786
68787 2006-06-29  Eric Blake  <ebb9@byu.net>
68788
68789         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68790
68791 2006-06-29  Eric Blake  <ebb9@byu.net>
68792
68793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68794
68795 2006-06-29  Eric Blake  <ebb9@byu.net>
68796
68797         * lib/stat_.h: New file.
68798
68799 2006-06-29  Eric Blake  <ebb9@byu.net>
68800
68801         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68802         unused static function.
68803
68804 2006-06-29  Eric Blake  <ebb9@byu.net>
68805
68806         * doc/functions.texi (Function Portability): Document missing lstat
68807         on mingw.
68808
68809 2006-06-29  Eric Blake  <ebb9@byu.net>
68810
68811         * MODULES.html.sh: Add sys_stat.
68812         * modules/sys_stat: New module.
68813         * modules/mkstemp (Depends-on): Add sys_stat.
68814
68815 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68816
68817         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68818
68819 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68820
68821         * m4/c-bs-a.m4: Removed.
68822
68823 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68824
68825         * lib/strftime.c: Assume strftime() exists.
68826
68827 2006-06-29  Derek Price  <derek@ximbiot.com>
68828
68829         * modules/c-bs-a: Removed - \a is C89.
68830         * MODULES.html.sh: Remove c-bs-a.
68831
68832 2006-06-29  Bruno Haible  <bruno@clisp.org>
68833
68834         * modules/wcwidth (License): Change to LGPL.
68835
68836 2006-06-28  Simon Josefsson  <jas@extundo.com>
68837
68838         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68839         on _WIN32.
68840
68841         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68842         getnameinfo.
68843
68844 2006-06-28  Simon Josefsson  <jas@extundo.com>
68845
68846         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68847
68848 2006-06-28  Simon Josefsson  <jas@extundo.com>
68849
68850         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68851         functions there.  It will succeed on Windows XP, but on Windows
68852         2000 and (presumably) earlier, it will fail, and use the internal
68853         re-implementation.
68854         (use_win32_p): New function.
68855         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68856         Support AI_NUMERICSERV to disable getservbyname.
68857         (getnameinfo): New function, only supports
68858         NI_NUMERICHOST|NI_NUMERICSERV for now.
68859
68860         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68861         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68862         getnameinfo.
68863
68864 2006-06-28  Eric Blake  <ebb9@byu.net>
68865
68866         * modules/wcwidth: New file.
68867         * modules/mbchar (Depends-on): Add wcwidth.
68868         * modules/mbswidth (Depends-on): Add wcwidth.
68869         * MODULES.html.sh: Add wcwidth.
68870
68871 2006-06-28  Eric Blake  <ebb9@byu.net>
68872
68873         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68875
68876 2006-06-28  Eric Blake  <ebb9@byu.net>
68877
68878         * lib/xvasprintf.h: Fix comments.
68879
68880 2006-06-28  Eric Blake  <ebb9@byu.net>
68881
68882         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68883         * lib/mbswidth.c (wcwidth): Move from here...
68884         * lib/wcwidth.h: ...to this new file.
68885
68886 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68887
68888         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68889
68890         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68891         it's obsolete.
68892         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68893
68894 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68895
68896         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68897         Autoconf 2.60 says this stuff was obsolete.
68898
68899 2006-06-28  Bruno Haible  <bruno@clisp.org>
68900
68901         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68902
68903 2006-06-28  Bruno Haible  <bruno@clisp.org>
68904
68905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68906         gt_TYPE_WCHAR_T.
68907
68908 2006-06-28  Bruno Haible  <bruno@clisp.org>
68909
68910         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68911         declaration for wcwidth.
68912         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68913
68914 2006-06-28  Bruno Haible  <bruno@clisp.org>
68915
68916         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68917         (mkdir): Define using _mkdir.
68918
68919 2006-06-28  Bruno Haible  <bruno@clisp.org>
68920
68921         * lib/getaddrinfo.h: Fix POSIX URL.
68922         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68923         _WIN32.
68924         (use_win32_p): Make static.
68925         (getaddrinfo): Reject service name if it is empty or does not consist
68926         solely of decimal digits, or if its value is > 65535.
68927         (getnameinfo): Remove useless casts.
68928
68929 2006-06-27  Simon Josefsson  <jas@extundo.com>
68930
68931         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68932         Eggert and Martin Lambers.
68933
68934 2006-06-27  Simon Josefsson  <jas@extundo.com>
68935
68936         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68937         Eggert and Martin Lambers.
68938
68939 2006-06-27  Bruno Haible  <bruno@clisp.org>
68940
68941         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68942         result to 0, not to empty.
68943         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68944
68945 2006-06-27  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68948
68949 2006-06-26  Simon Josefsson  <jas@extundo.com>
68950
68951         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68952         present.
68953
68954 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68955
68956         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68957         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68958         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68959
68960 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68961
68962         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68963
68964 2006-06-26  Bruno Haible  <bruno@clisp.org>
68965
68966         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68967
68968 2006-06-26  Bruno Haible  <bruno@clisp.org>
68969
68970         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68971
68972 2006-06-26  Bruno Haible  <bruno@clisp.org>
68973
68974         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68975         SGI C compiler in pre-C99 mode.
68976         Suggested by Mark D. Baushke and Larry Jones.
68977
68978 2006-06-26  Bruno Haible  <bruno@clisp.org>
68979
68980         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68981         WCHAR_MAX.
68982         Reported by Mark D. Baushke and Larry Jones.
68983
68984 2006-06-26  Bruno Haible  <bruno@clisp.org>
68985
68986         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68987         in pre-C99 mode.
68988         Suggested by Mark D. Baushke and Larry Jones.
68989
68990 2006-06-23  Simon Josefsson  <jas@extundo.com>
68991             Bruno Haible  <bruno@clisp.org>
68992
68993         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68994         Emit mostlyclean-local rule.
68995         (func_emit_tests_Makefile_am): Likewise.
68996         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68997
68998 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68999
69000         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
69001
69002 2006-06-23  Bruno Haible  <bruno@clisp.org>
69003
69004         * tests/test-stdint.c: Update to match ISO C 99 Technical
69005         Corrigendum 1.
69006
69007 2006-06-23  Bruno Haible  <bruno@clisp.org>
69008
69009         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
69010
69011 2006-06-23  Bruno Haible  <bruno@clisp.org>
69012
69013         * lib/stdint_.h: Treat IRIX like OpenBSD.
69014
69015 2006-06-23  Bruno Haible  <bruno@clisp.org>
69016
69017         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
69018         ISO C 99 Technical Corrigendum 1.
69019
69020 2006-06-22  Simon Josefsson  <jas@extundo.com>
69021
69022         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
69023         MinGW.
69024
69025 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
69028         needed.  Some compiler complained about some of them.  Problem reported
69029         by Larry Jones in
69030         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
69031
69032 2006-06-21  Simon Josefsson  <jas@extundo.com>
69033
69034         * tests/test-getaddrinfo.c: New file.
69035
69036         * modules/getaddrinfo-tests: New file.
69037
69038         * MODULES.html.sh: Add inet_pton.
69039
69040         * modules/inet_pton: New file.
69041
69042 2006-06-21  Simon Josefsson  <jas@extundo.com>
69043
69044         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
69045         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
69046         of using the (limited) gnulib implementation on Windows XP.
69047
69048         * m4/inet_pton.m4: New file.
69049
69050 2006-06-21  Simon Josefsson  <jas@extundo.com>
69051
69052         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
69053         variable.
69054
69055         * lib/socket_.h: Don't define WINVER.
69056
69057         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
69058         slightly modified to work in gnulib.
69059
69060 2006-06-21  Simon Josefsson  <jas@extundo.com>
69061
69062         * doc/gnulib.texi (Windows sockets): Add.
69063
69064 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69065
69066         * lib/read-file.c (fread_file): Start with buffer allocation of
69067         0 bytes rather than 1 byte; this simplifies the code.
69068         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
69069         code to free buffer and save/restore errno.
69070         (internal_read_file): Remove unused local.
69071
69072 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69073
69074         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
69075         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
69076         Problem reported by Denis Excoffier in
69077         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
69078
69079 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69080
69081         * modules/sys_socket, modules/socklen: Include sys/types since
69082         FreeBSD 4.x's sys/socket.h needs it.
69083
69084 2006-06-19  Simon Josefsson  <jas@extundo.com>
69085
69086         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
69087
69088 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69089
69090         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
69091
69092 2006-06-19  Bruno Haible  <bruno@clisp.org>
69093
69094         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
69095         and FULL_PATH_INTTYPES_H in angle brackets.
69096         Reported by Mark D. Baushke <mdb@gnu.org>.
69097
69098 2006-06-17  Eric Blake  <ebb9@byu.net>
69099
69100         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
69101         errno.
69102
69103 2006-06-17  Bruno Haible  <bruno@clisp.org>
69104
69105         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
69106         <sys/inttypes.h>.
69107
69108 2006-06-17  Bruno Haible  <bruno@clisp.org>
69109
69110         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
69111         whether errno is declared. Assume <errno.h> declares errno.
69112
69113 2006-06-17  Bruno Haible  <bruno@clisp.org>
69114
69115         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
69116
69117 2006-06-17  Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
69120         problem on Solaris 2.5.1.
69121
69122 2006-06-16  Eric Blake  <ebb9@byu.net>
69123
69124         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
69125         * lib/unicodeio.c [!defined errno]: Likewise.
69126         * lib/strtol.c [!defined errno]: Likewise.
69127         * lib/strtod.c [!defined errno]: Likewise.
69128
69129 2006-06-15  Eric Blake  <ebb9@byu.net>
69130
69131         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
69132
69133 2006-06-15  Eric Blake  <ebb9@byu.net>
69134
69135         * config/srclist.txt (ssize_t.m4): Lose sync.
69136
69137 2006-06-15  Bruno Haible  <bruno@clisp.org>
69138
69139         * modules/stdint (Files): Include m4/full-header-path.m4,
69140         m4/size_max.m4, m4/wchar_t.m4.
69141         (Makefile.am): Many more substitutions.
69142         * modules/stdint-tests: New file.
69143         * tests/test-stdint.c: New file.
69144
69145 2006-06-15  Bruno Haible  <bruno@clisp.org>
69146
69147         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
69148         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
69149         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
69150         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
69151         gl_CHECK_TYPE_SAME): New macros.
69152
69153 2006-06-15  Bruno Haible  <bruno@clisp.org>
69154
69155         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
69156
69157 2006-06-15  Bruno Haible  <bruno@clisp.org>
69158
69159         * lib/stdint_.h: Rewritten to be fully auto-configured.
69160         Fixes bug on HP-UX/IA64.
69161
69162 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
69163
69164         * lib/getdate.y (__attribute__): Don't define if already defined.
69165         Problem reported by Larry Jones.
69166         * lib/utimens.c (__attribute__): Likewise.
69167
69168 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
69171         reported by Andreas Schwab.
69172
69173 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69174             Bruno Haible  <bruno@clisp.org>
69175
69176         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
69177         check for the declaration of strnlen and a run test that exposes the
69178         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
69179         rpl_strndup.
69180
69181 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69182             Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
69185
69186 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69187
69188         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
69189         compile test, for Tru64 4.0D.
69190
69191 2006-05-28  Karl Berry  <karl@gnu.org>
69192
69193         * config/srclist.txt (printf-args.c): lose sync.
69194
69195 2006-05-26  Martin Lambers  <marlam@marlam.de>
69196
69197         * lib/getpass.c: Updates the test for the native W32 API, and adds
69198         missing includes, thus fixing compilation warnings.
69199
69200 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69201
69202         * lib/exclude.c (exclude_fnmatch): New function.
69203         (excluded_file_name): Call exclude_fnmatch.
69204         * lib/exclude.h (excluded_file_name): New prototype
69205
69206 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
69207
69208         * lib/tempname.c (small_open, large_open): New macros.
69209         (__open, __open64) [!_LIBC]: Remove.
69210         (__gen_tempname): Use small_open and large_open instead of __open
69211         and __open64.  This fixes a portability bug on HP-UX 11.11i
69212         reported by Simon Wing-Tang in
69213         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
69214
69215 2006-05-24  Bruno Haible  <bruno@clisp.org>
69216
69217         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
69218         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
69219         Reported by Thorsten Maerz <torte@netztorte.de> via
69220         Aaron Stone <aaron@serendipity.cx>.
69221
69222 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
69225         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
69226         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
69227         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
69228         not really conditional on the cache.
69229         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
69230
69231 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69232
69233         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
69234         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
69235         (my_usleep): Don't mishandle maximum value.
69236
69237 2006-05-19  Jim Meyering  <jim@meyering.net>
69238
69239         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
69240
69241 2006-05-17  Bruno Haible  <bruno@clisp.org>
69242
69243         Cygwin portability.
69244         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
69245
69246 2006-05-17  Bruno Haible  <bruno@clisp.org>
69247
69248         * lib/stdint_.h: Fix recognition of Cygwin.
69249
69250 2006-05-15  Bruno Haible  <bruno@clisp.org>
69251
69252         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
69253         on libtool patch by Ralf Wildenhues.
69254
69255 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
69258         test for C99 conformance; (bool) 0.5 is an integer constant
69259         expression, but (bool) -0.5 is not.  Problem reported by Fedor
69260         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
69261
69262 2006-05-11  Simon Josefsson  <jas@extundo.com>
69263
69264         * m4/xvasprintf.m4: Fix obvious typo.
69265
69266 2006-05-11  Jim Meyering  <jim@meyering.net>
69267
69268         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
69269         James Lemley.
69270
69271 2006-05-10  Simon Josefsson  <jas@extundo.com>
69272
69273         * lib/md4.c: Typo fix, update copyright years.
69274         (K1, K2): Don't use L because it turn computations into 64-bit on
69275         64-bit platforms.
69276
69277 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69278
69279         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
69280         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
69281         unwanted sign propagation, e.g., on hosts with 64-bit int.
69282         There still are some problems with reeelly weird theoretical hosts
69283         (e.g., 33-bit int) but it's not worth worrying about now.
69284         * lib/sha1.c (rol): Likewise.
69285         (K1, K2, K3, K4): Remove unnecessary L suffix.
69286
69287 2006-05-10  Bruno Haible  <bruno@clisp.org>
69288
69289         * lib/des.c: Cast to avoid warnings.
69290
69291 2006-05-09  Bruno Haible  <bruno@clisp.org>
69292
69293         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
69294         (Depends-on): Depend also on xsize, stdarg.
69295         (configure.ac): Add gl_XVASPRINTF.
69296
69297 2006-05-09  Bruno Haible  <bruno@clisp.org>
69298
69299         * m4/xvasprintf.m4: New file.
69300
69301 2006-05-09  Bruno Haible  <bruno@clisp.org>
69302
69303         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
69304         (EOVERFLOW): Define fallback value.
69305         (xstrcat): New function.
69306         (xvasprintf): Recognize the special case of a string concatenation.
69307
69308 2006-05-08  Eric Blake  <ebb9@byu.net>
69309
69310         * gnulib-tool (func_version): Base copyright year on CVS date.
69311         (func_emit_copyright_notice): New function.
69312         (func_emit_lib_Makefile_am): Use it.
69313         (func_emit_tests_Makefile_am): Likewise.
69314         (func_import): Likewise.
69315
69316 2006-05-08  Bruno Haible  <bruno@clisp.org>
69317
69318         * modules/stdarg: New file.
69319         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
69320
69321 2006-05-08  Bruno Haible  <bruno@clisp.org>
69322
69323         * m4/stdarg.m4: New file, from GNU gettext.
69324
69325 2006-05-08  Bruno Haible  <bruno@clisp.org>
69326
69327         * config/srclist.txt (build-aux/config.rpath): different from latest
69328         release.
69329
69330 2006-05-08  Bruno Haible  <bruno@clisp.org>
69331
69332         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
69333
69334 2006-05-05  Jim Meyering  <jim@meyering.net>
69335
69336         * m4/warning.m4: New file, derived from bison's file by the same name.
69337
69338 2006-05-03  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/stdint_.h: Shorter URL.
69341         * lib/inttypes.h: Likewise.
69342
69343 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69344
69345         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
69346
69347 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69348
69349         * lib/verify.h: Document the internals better.  Most of this change
69350         was written by Bruno Haible.
69351
69352 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         * doc/verify.texi: New file, partly based on a proposal by
69355         Bruno Haible.
69356
69357 2006-05-02  Bruno Haible  <bruno@clisp.org>
69358
69359         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
69360         test from here...
69361         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
69362
69363 2006-04-29  Bruno Haible  <bruno@clisp.org>
69364
69365         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
69366         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
69367
69368 2006-04-29  Bruno Haible  <bruno@clisp.org>
69369
69370         * gnulib-tool: Make --update option actually work.
69371
69372 2006-04-29  Bruno Haible  <bruno@clisp.org>
69373
69374         * doc/gcd.texi: New file.
69375         * doc/gnulib.texi: Include it.
69376
69377 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
69378
69379         * lib/getdate.y (get_date): When adding relative date, start with the
69380         initial time, not with the result of the first mktime call.
69381
69382 2006-04-25  Bruno Haible  <bruno@clisp.org>
69383
69384         * gnulib-tool (func_import): Output the include directives in three
69385         blocks, sorted separately.
69386         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69387
69388 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
69391         to define main with arguments, for C++.  Reported by Eric Blake.
69392         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
69393         Prefer 'int main ()' to 'int main (void)', for C++.
69394         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
69395         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
69396         for 'main', for C99 and C++.
69397
69398 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69399
69400         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
69401         Don't assume that exit status -1 is valid.
69402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69403         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69404         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
69405         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
69406         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
69407         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
69408         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
69409         functions can be used without declaring them, or that you can
69410         exit with status -1.
69411         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69412
69413 2006-04-24  Karl Berry  <karl@gnu.org>
69414
69415         * config/srclist.txt (longdouble.m4): sync lost.
69416
69417 2006-04-24  Eric Blake  <ebb9@byu.net>
69418
69419         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
69420
69421 2006-04-24  Bruno Haible  <bruno@clisp.org>
69422
69423         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
69424         poll() implementation in AIX.
69425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69426
69427 2006-04-24  Bruno Haible  <bruno@clisp.org>
69428
69429         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
69430         assigned exactly once.
69431
69432 2006-04-23  Claudio Fontana  <claudio@gnu.org>
69433             Bruno Haible  <bruno@clisp.org>
69434
69435         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
69436         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
69437         for AM_CPPFLAGS.
69438
69439 2006-04-23  Bruno Haible  <bruno@clisp.org>
69440
69441         * modules/copy-file: Depend on unistd.
69442         * modules/execute: Likewise.
69443         * modules/fatal-signal: Likewise.
69444         * modules/findprog: Likewise.
69445         * modules/mkdtemp : Likewise.
69446         * modules/pipe: Likewise.
69447         * modules/wait-process: Likewise.
69448
69449 2006-04-23  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
69452         condition was already detected.
69453         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69454
69455 2006-04-23  Bruno Haible  <bruno@clisp.org>
69456
69457         * lib/copy-file.c: Include <unistd.h> unconditionally.
69458         * lib/execute.c: Likewise.
69459         * lib/fatal-signal.c: Likewise.
69460         * lib/findprog.c: Likewise.
69461         * lib/mkdtemp.c: Likewise.
69462         * lib/pipe.h: Likewise.
69463         * lib/pipe.c: Likewise.
69464         * lib/wait-process.h: Likewise.
69465
69466 2006-04-23  Bruno Haible  <bruno@clisp.org>
69467
69468         * gnulib-tool (func_usage): Fix --import description. Document
69469         --update.
69470         (func_import): Create temporary file in a temporary directory, if
69471         --dry-run is specified. Silence errors from 'grep' when there are no
69472         m4 files in $m4dir.
69473         (func_create_testdir): Silence errors from 'grep' when there are no
69474         m4 files in $m4dir.
69475         Reported by Karl Berry <karl@freefriends.org>.
69476
69477 2006-04-20  Bruno Haible  <bruno@clisp.org>
69478
69479         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
69480         one argument, so that the code will be portable to Autoconf 2.60.
69481         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
69482         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69483         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
69484
69485 2006-04-19  Derek Price  <derek@ximbiot.com>
69486             Eric Blake  <ebb9@byu.net>
69487
69488         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
69489         rather than "/full/path.h".  Update comment to match.  Shorten &
69490         generalize m4_translit call via AS_TR_CPP.
69491
69492 2006-04-19  Derek Price  <derek@ximbiot.com>
69493             Eric Blake  <ebb9@byu.net>
69494
69495         * lib/inttypes.h: Correct grammar in comment.
69496
69497 2006-04-18  Derek Price  <derek@ximbiot.com>
69498             Paul Eggert  <eggert@cs.ucla.edu>
69499
69500         * modules/inttypes: New file.
69501         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
69502
69503 2006-04-18  Derek Price  <derek@ximbiot.com>
69504             Paul Eggert  <eggert@cs.ucla.edu>
69505
69506         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
69507         New files.
69508
69509 2006-04-18  Derek Price  <derek@ximbiot.com>
69510             Paul Eggert  <eggert@cs.ucla.edu>
69511
69512         * lib/inttypes.h: New file.
69513         * lib/strtoimax.c: Assume <inttypes.h>.
69514
69515 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
69516
69517         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
69518         isn't mounted.  Problem reported by Kir Kolyshkin.
69519
69520 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
69523         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
69524         Derek R. Price.
69525         * lib/regex.h (RE_DUP_MAX): Update comment to match current
69526         implementation.
69527
69528 2006-04-12  Eric Blake  <ebb9@byu.net>
69529
69530         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
69531         is now done automatically by the corresponding Autoconf macro.
69532
69533 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
69536         time_r.h.
69537
69538 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         Merge regex changes from libc, removing some of our
69541         POSIX-conformance changes that were rejected and redoing them in a
69542         less-intrusive way.
69543
69544         * lib/regcomp.c (re_compile_internal, init_dfa):
69545         Length arg is now size_t, not Idx.  All uses changed.
69546         (peek_token): Forward decl now says internal_function.
69547         (__re_error_msgid, __re_error_msgid_idx):
69548         Now static rather than extern with attribute_hidden.
69549         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
69550         For some reason libc prefers K&R style defns for external functions.
69551         (regerror) [!defined _LIBC]: Likewise.
69552         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
69553         (seek_collating_symbol_entry, lookup_collation_sequence_value):
69554         (build_range_exp, build_collating_symbol):
69555         Use K&R-style defn.
69556         (re_compile_fastmap): Use '\0' to memset, not 0.
69557         (utf8_sb_map): Make the calculations more obvious.
69558         (init_dfa, parse_bracket_exp, build_charclass_op):
69559         Call calloc and cast result, as glibc does.
69560         (init_word_char, fetch_token, peek_token, peek_token_bracket):
69561         (build_range_exp, build_collating_symbol):
69562         Now internal functions.
69563
69564         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
69565
69566         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
69567         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
69568         Don't depend on VMS; depend on __VMS instead, for POSIX
69569         namespace cleanness.
69570         (regoff_t): Define to ssize_t, not long int.
69571
69572         Remove the REG_ macros named below.  Instead, make the old names
69573         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
69574         __USE_GNU_REGEX.
69575         (REG_BACKSLASH_ESCAPE_IN_LISTS):
69576         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
69577         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
69578         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
69579         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
69580         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
69581         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
69582         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
69583         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
69584         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
69585         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
69586         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
69587         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
69588         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
69589         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
69590         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
69591         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
69592         (REG_NREGS):
69593         Remove.  All uses replaced by the old RE_* names.
69594         (RE_BACKSLASH_ESCAPE_IN_LISTS):
69595         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
69596         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
69597         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
69598         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
69599         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
69600         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
69601         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
69602         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
69603         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
69604         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
69605         Don't bother having these macros be independent of each others'
69606         values, since they no longer exist in the POSIX name space.
69607
69608         Rename the following member names back to their old names,
69609         unless !__USE_GNU_REGEX.  All uses changed back.
69610         (buffer): Renamed from re_buffer.
69611         (allocated): Renamed from re_allocated.
69612         (used): Renamed from re_used.
69613         (syntax): Renamed from re_syntax.
69614         (fastmap): Renamed from re_fastmap.
69615         (translate): Renamed from re_translate.
69616         (can_be_null): Renamed from re_can_be_null.
69617         (regs_allocated): Renamed from re_regs_allocated.
69618         (fastmap_accurate): Renamed from re_fastmap_accurate.
69619         (no_sub): Renamed from re_no_sub.
69620         (not_bol): Renamed from re_not_bol.
69621         (not_eol): Renamed from re_not_eol.
69622         (newline_anchor): Renamed from re_newline_anchor.
69623         (num_regs): Renamed from rm_num_regs.
69624         (start): Renamed from rm_start.
69625         (end): Renamed from rm_end.
69626
69627         (free_state): Move up a bit.
69628
69629         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
69630         #define to be empty.
69631         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
69632         when that is what is intended.
69633         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
69634         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
69635         (MAX): New macro.
69636         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
69637         All uses changed back to re_malloc, etc.  It's now the caller's
69638         responsibility to check for overflow; all callers changed.
69639         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
69640         (re_x2nrealloc): Remove.
69641         (free_state): Remove decl.
69642
69643         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
69644         (re_set_registers, re_exec):
69645         Use K&R-style defn.
69646
69647         2006-01-31  Roland McGrath  <roland@redhat.com>
69648
69649         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
69650         Reported by Mike Frysinger <vapier@gentoo.org>.
69651
69652         2006-01-15  Andreas Jaeger  <aj@suse.de>
69653
69654         [BZ #1950]
69655         * lib/regex_internal.c (re_string_reconstruct): Adjust for
69656         build_wcs_upper_buffer change.
69657         (build_wcs_upper_buffer): Change return type.
69658
69659         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
69660
69661         * lib/regex_internal.h: Include <stdint.h> if available.
69662
69663         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
69664
69665         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69666
69667         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69668
69669         * lib/regcomp.c: Adjust for changed secondary hash function.
69670
69671         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69672
69673         * lib/regex.h: Pretty printing.
69674         Clean up namespace a bit.
69675
69676         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69677
69678         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69679         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69680
69681         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69682                     Ulrich Drepper  <drepper@redhat.com>
69683
69684         [BZ #1302]
69685         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69686         changed.
69687         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69688
69689         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69690
69691         [BZ #281]
69692         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69693         * lib/regcomp.c: Remove unnecessary uses of
69694         unsigned RE_TRANSLATE_TYPE.
69695         * lib/regex_internal.h: Likewise.
69696         * lib/regex_internal.c: Likewise.
69697         * lib/regexec.c: Likewise.
69698         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69699
69700         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69701
69702         * lib/regexec.c (find_recover_state): Remove unnecessary
69703         initialization.
69704         (transit_state_bkref): Make DFA a const pointer.
69705         (get_subexp): Likewise.
69706         (check_arrival): Likewise.
69707         (update_cur_sifted_state): Likewise.
69708         (re_search_internal): Likewise.
69709         (prune_impossible_nodes): Likewise.
69710         (acquire_init_state_context): Likewise.
69711         (proceed_next_node): Likewise.
69712         (set_regs): Likewise.
69713         (free_fail_stack_return): Likewise.
69714         (check_arrival_expand_ecl): Mark DFA parameter as const.
69715         (check_arrival_expand_ecl_sub): Likewise.
69716         (check_subexp_limits): Likewise.
69717         (sub_epsilon_src_nodes):  Likewise.
69718         (add_epsilon_src_nodes):  Likewise.
69719         (merge_state_array): Likewise.
69720         (update_regs): Likewise.
69721         (build_trtable): Likewise.
69722         (sift_states_backward): Mark MCTX parameter as const.
69723         (build_sifted_states): Likewise.
69724         (update_cur_sifted_state): Likewise.
69725         (sift_states_mkref): Likewise.
69726         (check_arrival_expand_ecl): Mark eclosure as const.
69727         (check_dst_limits_calc_pos_1): Likewise.
69728         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69729         pointer.
69730
69731         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69732
69733         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69734         (transit_state_sb): Likewise.
69735         (transit_state_mb): Likewise.
69736         (sift_states_iter_mb): Likewise.
69737         (check_arrival_add_next_nodes): Likewise.
69738         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69739         [_LIBC] (re_search_2_stub): Use mempcpy.
69740
69741         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69742         mbrtowc for very simple UTF-8 case.
69743
69744         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69745         a pointer-to-const.
69746         (re_acquire_state_context): Likewise.
69747         * lib/regex_internal.h: Adjust prototypes.
69748
69749         * lib/regex.c: Prevent using C++ compilers.
69750
69751         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69752         (re_acquire_state_context): Likewise.
69753
69754 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         * modules/regex (Depends-on): Add ssize_t.
69757
69758 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69761         translation table.
69762
69763 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69766
69767 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69768             Bruno Haible  <bruno@clisp.org>
69769
69770         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69771         <sys/types.h> and <inttypes.h>.
69772
69773 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69774
69775         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69776         `__error_t_defined', so argp.h will not typedef the former.
69777
69778 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69781         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69782         glibc names.  Even if glibc is changed to conform to POSIX, the
69783         traditional names will be available anyway, since regex depends on
69784         the extensions module.  Also, fix a longstanding typo in the
69785         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69786         reported by Emanuele Giaquinta.  Also, change sense of cached
69787         variable, so that the message makes sense.
69788
69789 2006-03-24  Simon Josefsson  <jas@extundo.com>
69790
69791         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69792         including some doc fixes.
69793         (base64_encode_alloc): Fix +1 bug on allocation failures.
69794
69795 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69796
69797         * lib/base64.c (base64_encode): Do not read past end of array with
69798         unsanitized input on systems with CHAR_BIT > 8.
69799
69800 2006-03-24  Eric Blake  <ebb9@byu.net>
69801
69802         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69803
69804 2006-03-22  Karl Berry  <karl@gnu.org>
69805
69806         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69807         * config/srclistvars.sh (COREUTILS): new var.
69808
69809 2006-03-17  Jim Meyering  <jim@meyering.net>
69810
69811         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69812         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69813
69814 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69815
69816         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69817         no longer needs it.  Instead, check that regoff_t is as least
69818         as wide as ptrdiff_t.
69819
69820         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69821         so that our regex.h stays compatible with the installed regex.
69822         This is helpful for installers who configure --without-included-regex.
69823         Problem reported by Emanuele Giaquinta.
69824
69825 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69826
69827         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69828         Typedef to long int, not to off_, as POSIX will likely change
69829         in that direction.
69830
69831 2006-03-15  Eric Blake  <ebb9@byu.net>
69832
69833         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69834
69835 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69836
69837         * lib/argp-help.c (validate_uparams): Fix typo
69838         * lib/argp-parse.c (argp_default_options): Consistently begin help
69839         messages with a lowercase letter.
69840
69841 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69842
69843         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69844         overrun buffers and shouldn't be used (much as gets shouldn't be
69845         used).
69846         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69847
69848 2006-03-08  Simon Josefsson  <jas@extundo.com>
69849
69850         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69851         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69852
69853 2006-03-08  Simon Josefsson  <jas@extundo.com>
69854
69855         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69856         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69857
69858 2006-03-08  Simon Josefsson  <jas@extundo.com>
69859
69860         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69861         signal that configure disabled the device.
69862
69863 2006-03-08  Simon Josefsson  <jas@extundo.com>
69864
69865         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69866         languages.
69867
69868 2006-03-07  Simon Josefsson  <jas@extundo.com>
69869
69870         * modules/getopt (Depends-on): Add unistd.
69871
69872         * modules/unistd: New file.
69873
69874 2006-03-07  Simon Josefsson  <jas@extundo.com>
69875
69876         * modules/gc-random: New file.
69877
69878 2006-03-07  Simon Josefsson  <jas@extundo.com>
69879
69880         * m4/unistd_h.m4: New file.
69881
69882 2006-03-07  Simon Josefsson  <jas@extundo.com>
69883
69884         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69885         test to be side-effect free by storing the result in the cache
69886         variable gl_cv_lib_readline, and moving the assignment of
69887         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69888         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69889
69890 2006-03-07  Simon Josefsson  <jas@extundo.com>
69891
69892         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69893         error on missing devices (the functions will return an error).
69894
69895         * m4/gc.m4: Move random stuff to gc-random.m4
69896
69897 2006-03-07  Simon Josefsson  <jas@extundo.com>
69898
69899         * lib/unistd_.h: New file.
69900
69901 2006-03-07  Simon Josefsson  <jas@extundo.com>
69902
69903         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69904
69905 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69908         Problem reported by Juan Manuel Guerrero.
69909
69910 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69911
69912         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69913         the unistd module.
69914         * lib/getlogin_r.c: Likewise.
69915         * lib/getlogin_r.h: Likewise.
69916         * lib/glob.c: Likewise.
69917         * lib/pagealign_alloc.c: Likewise.
69918         * lib/unistd_.h: Remove; no longer needed.
69919
69920 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69921
69922         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69923         Add unistd.
69924         * modules/c-stack (Depends-on): Add unistd.
69925         * modules/getlogin_r: Likewise.
69926         * modules/glob: Likewise.
69927         * modules/pagealign_alloc: Likewise.
69928         * modules/unistd (Files): Remove lib/unistd_.h.
69929         (EXTRA_DIST): Remove.
69930         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69931         need unistd_.h.
69932         (MOSTLYCLEANFILES): Remove unistd.h-t.
69933
69934 2006-03-03  Simon Josefsson  <jas@extundo.com>
69935
69936         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69937
69938 2006-03-03  Simon Josefsson  <jas@extundo.com>
69939
69940         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69941         libidn and bison.
69942
69943 2006-03-03  Simon Josefsson  <jas@extundo.com>
69944
69945         * build-aux/maint.mk: Add indent target.
69946
69947 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69948
69949         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69950         our replacement poll.h in any case, to avoid a differing
69951         declaration from a system header.  Seen on AIX.
69952
69953 2006-03-01  Simon Josefsson  <jas@extundo.com>
69954
69955         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69956         <kasal@ucw.cz>.
69957
69958 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69959
69960         * modules/gettime (Depends-on): Add extensions module.
69961         * modules/nanosleep (Depends-on): Likewise.
69962         * modules/settime (Depends-on): Likewise.
69963
69964 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69965
69966         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69967         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69968         pedantically.
69969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69970         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69971
69972         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69973         not "==".  Reported by Ralf Wildenhues.
69974
69975 2006-03-01  Karl Berry  <karl@gnu.org>
69976
69977         * doc/Copyright/request-*: new files, synced from gnuorg.
69978
69979 2006-03-01  Karl Berry  <karl@gnu.org>
69980
69981         * config/srclist.txt (Copyright/*): new entries.
69982
69983 2006-02-28  Simon Josefsson  <jas@extundo.com>
69984
69985         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69986
69987 2006-02-27  Simon Josefsson  <jas@extundo.com>
69988
69989         * lib/base64.h: Indent #define's.  From Jim Meyering
69990         <jim@meyering.net>.
69991
69992 2006-02-27  Jim Meyering  <jim@meyering.net>
69993
69994         Revert the change of 2006-02-24, so these files can continue
69995         to be sync'd from gettext.
69996         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69997         of `config.h'.
69998
69999 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70000
70001         * modules/intprops: New file.
70002         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70003         Add intprops.
70004         * modules/getloadavg (Files): Remove lib/intprops.h.
70005         (Depends-on): Add intprops.
70006         * modules/human: Likewise.
70007         * modules/inttostr: Likewise.
70008         * modules/openat: Likewise.
70009         * modules/sig2str: Likewise.
70010         * modules/userspec: Likewise.
70011         * modules/utimecmp: Likewise.
70012         * modules/xnanosleep: Likewise.
70013         * modules/xstrtol: Likewise.
70014
70015 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
70016
70017         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
70018         * modules/lock-tests (TESTS): Use $(EXEEXT).
70019         * modules/tls-tests: Likewise.
70020         * modules/argp-tests: Likewise.
70021         (check_PROGRAMS): New var, replacing...
70022         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
70023
70024 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70025
70026         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
70027         `config.h'.
70028
70029 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
70032
70033 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70034
70035         Sync from coreutils.
70036         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
70037         gl_CHDIR_SAFER.
70038
70039 2006-02-22  Jim Meyering  <jim@meyering.net>
70040
70041         Sync from coreutils.
70042         * m4/chdir-safer.m4: New file.
70043
70044 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70045
70046         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
70047         AT_FDCWD exceeds INT_MAX.
70048         * lib/openat.h (AT_FDCWD): Likewise.
70049
70050 2006-02-17  Eric Blake  <address@hidden>
70051
70052         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
70053
70054 2006-02-16  Simon Josefsson  <jas@extundo.com>
70055
70056         * modules/getaddrinfo (Depends-on): Add sys_socket.
70057
70058 2006-02-15  Simon Josefsson  <jas@extundo.com>
70059
70060         * build-aux/maint.mk: Add dsyntax-check rule.
70061
70062 2006-02-15  Eric Blake  <ebb9@byu.net>
70063
70064         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
70065         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
70066         'present but cannot compile' warnings on cygwin.
70067         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
70068         use ws2tcpip.h if sys/socket.h works.
70069         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
70070         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
70071
70072 2006-02-14  Simon Josefsson  <jas@extundo.com>
70073
70074         * modules/maintainer-makefile (Files): Rename.
70075
70076         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
70077         and (the local) Makefile.cfg to maint-cfg.mk.
70078
70079         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
70080         to the latter.
70081
70082         * modules/maintainer-makefile: New module.
70083
70084         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
70085         severaly stripped to make it possible to build it up from scratch
70086         with reliable tests.
70087
70088         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
70089         fixes to permit overriding the default actions when configure and
70090         makefile are not available.
70091
70092 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70093
70094         Sync from coreutils.
70095         * modules/lstat (Depends-on): Don't depend on xalloc.
70096         (License): Change from GPL to LGPL, since this is now simply a
70097         replacement for a libc function.
70098
70099 2006-02-14  Jim Meyering  <jim@meyering.net>
70100
70101         Sync from coreutils.
70102
70103         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
70104         failure on deficient systems, and simplify gnulib lgpl dependencies.
70105         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
70106         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
70107
70108         * lib/xalloc-die.c: Remove unused definition of N_.
70109
70110 2006-02-14  Jim Meyering  <jim@meyering.net>
70111
70112         Sync from coreutils.
70113         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
70114         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
70115         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
70116         double-quote uses of that variable, to accommodate the rare case in
70117         which getmntent is available in none of the libraries checked.  This
70118         happens at least on FreeBSD 5.0.
70119
70120 2006-02-13  Simon Josefsson  <jas@extundo.com>
70121
70122         * gnulib-tool (Usage): Fix --import, from
70123         karl@freefriends.org (Karl Berry).
70124
70125 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70126
70127         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
70128
70129 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
70130
70131         * lib/argp-namefrob.h: Restore changes accidentally lost during the
70132         "autoupdate" on 2005-12-12.
70133
70134 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70135
70136         * modules/closeout (Depends-on): Remove atexit.
70137
70138 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
70141         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
70142
70143 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70144
70145         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
70146         __EXTENSIONS__ if this causes compilation to fail.  Problem
70147         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
70148         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
70149
70150 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
70151
70152         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
70153         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
70154         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
70155         All uses changed.
70156
70157 2006-01-26  Simon Josefsson  <jas@extundo.com>
70158
70159         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
70160         prototype is visible on mingw32.
70161
70162         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
70163         for mingw32.
70164
70165         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
70166         mingw32).
70167
70168 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70169
70170         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
70171         attempt to open for write; this always fails, at least on POSIX
70172         hosts.  This reinstates the 2006-01-09 change, which was
70173         inadvertently removed.
70174
70175 2006-01-26  Bruno Haible  <bruno@clisp.org>
70176
70177         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
70178         Reported by Paul Eggert.
70179
70180 2006-01-26  Bruno Haible  <bruno@clisp.org>
70181             Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * lib/stdbool_.h (_Bool)
70184         [(! (defined __cplusplus || defined __BEOS__)
70185           && !defined __GNUC__
70186           && !(defined __HP_cc || defined __xlc__
70187                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
70188                || defined __sgi))]:
70189         #define to signed char in these cases too; this simplifies
70190         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
70191         etc., separately) and makes it more conservative.
70192
70193 2006-01-25  Simon Josefsson  <jas@extundo.com>
70194
70195         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
70196         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
70197         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
70198
70199 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70200
70201         * lib/argp-namefrob.h: Bugfix. Remove stray #
70202
70203 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
70204
70205         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
70206         so that we test the test.
70207         Check for yet another HP-UX cc bug involving *bool |= bool.
70208
70209 2006-01-25  Karl Berry  <karl@gnu.org>
70210
70211         * config/srclist.txt (vasnprintf.c): sync lost.
70212
70213 2006-01-25  Jim Meyering  <jim@meyering.net>
70214
70215         Sync from the stable (b5) branch of coreutils:
70216
70217         * lib/fts.c (fts_children): Don't let close() clobber errno from
70218         failed fchdir().
70219
70220         * lib/fts.c (fts_stat): When following a symlink-to-directory,
70221         don't necessarily interpret stat-fails+lstat-succeeds as indicating
70222         a dangling symlink.  That can also happen at least for ELOOP.
70223         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
70224         FYI, this bug predates the inclusion of fts.c in coreutils.
70225
70226         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
70227         in their own block, so pre-c99 compilers don't object.
70228
70229         Avoid the double-free (first in fts_read, second in fts_close) that
70230         would occur when an `active' directory is made inaccessible (e.g.,
70231         via chmod a-x) during a traversal.
70232         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70233         before returning.  Reproduce this failure by
70234         mkdir -p a/b; cd a; chmod a-x . b
70235         Reported by Stavros Passas.
70236
70237 2006-01-25  Jim Meyering  <jim@meyering.net>
70238
70239         * lib/fileblocks.c: Remove more useless parentheses.
70240         * lib/readutmp.h: Likewise.
70241
70242 2006-01-25  Bruno Haible  <bruno@clisp.org>
70243
70244         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
70245         warnings.
70246         Reported by Paul Eggert.
70247
70248 2006-01-25  Bruno Haible  <bruno@clisp.org>
70249
70250         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
70251         rid of a trap command. For Solaris sh.
70252         Reported by Mark D. Baushke <mdb@gnu.org>.
70253
70254 2006-01-24  Simon Josefsson  <jas@extundo.com>
70255
70256         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
70257         Bruno.
70258
70259 2006-01-24  Karl Berry  <karl@gnu.org>
70260
70261         * config/srclist.txt (argp-namefrob.h): sync lost.
70262
70263 2006-01-24  Jim Meyering  <jim@meyering.net>
70264
70265         * modules/openat (Files): Add lib/intprops.h.
70266         From Mark D. Baushke.
70267
70268 2006-01-24  Jim Meyering  <jim@meyering.net>
70269
70270         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
70271         Reported by Mark D. Baushke.
70272
70273 2006-01-24  Jim Meyering  <jim@meyering.net>
70274
70275         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
70276
70277 2006-01-24  Bruno Haible  <bruno@clisp.org>
70278
70279         * modules/strnlen (Maintainer): Change from glibc to all.
70280
70281 2006-01-24  Bruno Haible  <bruno@clisp.org>
70282
70283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
70284         Patch by Paul Eggert.
70285
70286 2006-01-24  Bruno Haible  <bruno@clisp.org>
70287
70288         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
70289         already has it.
70290         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
70291         2005-11-26.
70292
70293         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
70294         'signed char' to avoid problems with the built-in _Bool type.
70295         Reported by Paul Eggert on 2005-11-26.
70296
70297 2006-01-24  Bruno Haible  <bruno@clisp.org>
70298
70299         * gnulib-tool (func_import): Avoid constructing complicated sed
70300         expressions inside backquote.
70301         Report and solution by Mark D. Baushke <mdb@gnu.org>.
70302
70303 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
70304
70305         These changes imported from libc.
70306         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
70307         test and two separate function calls.
70308         * lib/strndup.c (__strndup): Add libc_hidden_def.
70309
70310 2006-01-23  Simon Josefsson  <jas@extundo.com>
70311
70312         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
70313         Remove the test_*_SOURCES variable: automake infers it by default.
70314         * modules/tls-tests: Likewise.
70315
70316 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70317
70318         Work around porting bugs reported by Dieter in
70319         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
70320         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
70321         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
70322         Include "getopt.h" first, to check interface.
70323         (getenv): Declare only if defined HAVE_DECL_GETENV &&
70324         !HAVE_DECL_GETENV.
70325         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
70326         (__strndup): Revert to K&R-style function dfns, the glibc style.
70327         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
70328         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
70329         Include strnlen.h first, to get prototype properly.
70330         (strnlen): Renamed from __strnlen.
70331         Remove weak alias.
70332
70333 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
70336
70337 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70338
70339         * config/srclist.txt: Adjust to reflect glibc reorganization.
70340         This affects only comments.
70341
70342 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70343
70344          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
70345          Reported by Bruce Korb <bkorb@gnu.org>.
70346
70347 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
70350         to pacify gcc -Wswitch-default.
70351
70352 2006-01-22  Bruno Haible  <bruno@clisp.org>
70353
70354         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
70355         temporary buffer for sprintf, take into account the precision also
70356         for 'd', 'i', 'u', 'o', 'x', 'X'.
70357
70358 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70359
70360         * modules/argp-tests: New module
70361         * tests/test-argp.c: New file
70362         * tests/test-argp-2.sh: New file
70363
70364 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70365
70366         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
70367         (__argp_base_name): Removed
70368         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
70369         typo.
70370         (__argp_base_name): Provide macro definition or extern declaration
70371         depending on the configuration
70372
70373 2006-01-20  Simon Josefsson  <jas@extundo.com>
70374
70375         * modules/inet_ntop (Depends-on): Depend on sys_socket.
70376
70377 2006-01-20  Simon Josefsson  <jas@extundo.com>
70378
70379         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
70380
70381 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70382
70383         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
70384         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
70385         Suggested by Bruno Haible.
70386
70387 2006-01-20  Karl Berry  <karl@gnu.org>
70388
70389         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
70390         until changes propagate, I guess.
70391
70392 2006-01-19  Simon Josefsson  <jas@extundo.com>
70393
70394         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
70395
70396 2006-01-19  Simon Josefsson  <jas@extundo.com>
70397
70398         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
70399
70400 2006-01-19  Simon Josefsson  <jas@extundo.com>
70401
70402         * gnulib-tool: Set check_PROGRAMS.
70403
70404         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70405         modules/des-tests, modules/gc-arcfour-tests,
70406         modules/gc-arctwo-tests, modules/gc-des-tests,
70407         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70408         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70409         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70410         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70411         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70412         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
70413         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
70414         test_*_SOURCES.
70415
70416 2006-01-18  Simon Josefsson  <jas@extundo.com>
70417
70418         * modules/socklen (Depends-on): Depend on sys_socket.
70419
70420 2006-01-18  Simon Josefsson  <jas@extundo.com>
70421
70422         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70423         modules/des-tests, modules/gc-arcfour-tests,
70424         modules/gc-arctwo-tests, modules/gc-des-tests,
70425         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70426         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70427         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70428         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70429         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70430         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
70431         $(EXEEXT) to automake TESTS variable, for mingw32.
70432
70433 2006-01-17  Simon Josefsson  <jas@extundo.com>
70434
70435         * modules/socklen (Include): Need sys/socket.h.
70436
70437 2006-01-17  Bruno Haible  <bruno@clisp.org>
70438
70439         * modules/ssize_t (Include): Add <sys/types.h>.
70440
70441 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
70442
70443         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
70444         it's not portable and it doesn't work with cross-compiles.
70445         Problem reported by Bruno Haible.  Fix missing-$ typo in
70446         'test "gl_cv_ignore_unused_libraries" ...' that prevented
70447         -zignore from being used with Sun's C compiler.
70448
70449 2006-01-12  Simon Josefsson  <jas@extundo.com>
70450
70451         * lib/base64.c: Fix warning, reported by Bruno Haible
70452         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
70453
70454 2006-01-12  Bruno Haible  <bruno@clisp.org>
70455
70456         * modules/ldd: New file.
70457         * build-aux/ldd.sh.in: New file.
70458         * MODULES.html.sh (Support for building libraries and executables): Add
70459         ldd.
70460
70461 2006-01-12  Bruno Haible  <bruno@clisp.org>
70462
70463         * m4/ldd.m4: New file.
70464
70465 2006-01-12  Bruno Haible  <bruno@clisp.org>
70466
70467         * gnulib-tool (func_import, func_create_testdir): Don't go into an
70468         endless loop while replacing $auxdir with build-aux.
70469
70470 2006-01-11  Simon Josefsson  <jas@extundo.com>
70471
70472         * lib/stdint_.h (SIZE_MAX): Add missing (.
70473
70474 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
70475
70476         Sync from coreutils.
70477         * lib/md5.c: Fix commentary typos.
70478         (alignof, UNALIGNED_P): No need for a GCC-specific version.
70479         * lib/md5.h (__attribute__): Remove; unused.
70480         * lib/sha1.c: Fix commentary to match md5 better.
70481         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
70482         so that we don't need to worry about alignment.  All uses changed.
70483         This merges the 2005-10-28 md5 change into sha1.
70484
70485 2006-01-11  Jim Meyering  <jim@meyering.net>
70486
70487         Sync from coreutils.
70488         * lib/md5.c (OP): Fix spacing.
70489
70490 2006-01-11  Bruno Haible  <bruno@clisp.org>
70491
70492         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70493         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
70494         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
70495
70496 2006-01-11  Bruno Haible  <bruno@clisp.org>
70497
70498         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70499         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
70500         the "early" section as well.
70501
70502 2006-01-11  Bruno Haible  <bruno@clisp.org>
70503
70504         Avoid "ar: no archive members specified" error on MacOS X.
70505         * gnulib-tool (func_modules_add_dummy): New function.
70506         (func_import, func_create_testdir): Invoke it.
70507
70508 2006-01-11  Bruno Haible  <bruno@clisp.org>
70509
70510         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
70511         with $auxdir in AC_CONFIG_FILES statements.
70512
70513 2006-01-11  Bruno Haible  <bruno@clisp.org>
70514
70515         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70516         Initialize also noinst_HEADERS to empty.
70517
70518 2006-01-11  Bruno Haible  <bruno@clisp.org>
70519
70520         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
70521         variables.
70522         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
70523         autoreconf.
70524
70525 2006-01-11  Bruno Haible  <bruno@clisp.org>
70526
70527         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
70528         overridable by the user.
70529         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70530
70531 2006-01-10  Simon Josefsson  <jas@extundo.com>
70532
70533         * modules/sys_socket: New file.
70534
70535 2006-01-10  Simon Josefsson  <jas@extundo.com>
70536
70537         * m4/sys_socket_h.m4: New file.
70538
70539 2006-01-10  Simon Josefsson  <jas@extundo.com>
70540
70541         * lib/socket_.h: New file.
70542
70543 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70544
70545         * modules/readutmp (Maintainer): Add myself.
70546
70547 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70548
70549         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
70550         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
70551         People who are still concerned with buggy memcmp implementations
70552         can invoke gl_FUNC_MEMCMP themselves.
70553
70554 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70555
70556         * lib/regex_internal.h (BITSET_WORD_BITS):
70557         Work around a bug in 64-bit PGC (before version 6.1-2), where the
70558         preprocessor mishandles large unsigned values as if they were signed.
70559         Problem reported by Claudio Fontana in
70560         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
70561
70562 2006-01-10  Jim Meyering  <jim@meyering.net>
70563
70564         Avoid the double-free (first in fts_read, second in fts_close) that
70565         would occur when an `active' directory is made inaccessible (e.g.,
70566         via chmod a-x) during a traversal.
70567         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70568         before returning.  Reproduce this failure by
70569         mkdir -p a/b; cd a; chmod a-x . b
70570         Reported by Stavros Passas.
70571
70572         Sync from coreutils.
70573         * lib/sha1.c: Tweak grammar in a comment.
70574
70575 2006-01-10  Jim Meyering  <jim@meyering.net>
70576
70577         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
70578         Patch by Joerg Sonnenberger.
70579
70580 2006-01-10  Bruno Haible  <bruno@clisp.org>
70581
70582         * modules/readutmp: Depend on module free.
70583         * modules/strtok_r: Depend on module restrict.
70584
70585 2006-01-10  Bruno Haible  <bruno@clisp.org>
70586
70587         * modules/gettext (configure.ac): Add an invocation of
70588         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
70589
70590 2006-01-10  Bruno Haible  <bruno@clisp.org>
70591
70592         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
70593         Reported by Werner Lemberg <wl@gnu.org>.
70594
70595 2006-01-10  Bruno Haible  <bruno@clisp.org>
70596
70597         * lib/localcharset.c: Update from GNU gettext.
70598
70599 2006-01-10  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/argp.h (__const): Remove macro. Use const instead.
70602         * lib/argp-fmtstream.h (__const): Likewise.
70603         * lib/glob_.h (__const): Remove macro.
70604         * lib/glob-libc.h: Use const instead of __const.
70605
70606 2006-01-10  Bruno Haible  <bruno@clisp.org>
70607
70608         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
70609         variable.
70610         Needed to avoid an automake error regarding the 'gettext' module.
70611
70612 2006-01-09  Simon Josefsson  <jas@extundo.com>
70613
70614         * modules/inet_ntop (Depends-on): Add restrict.
70615
70616 2006-01-09  Simon Josefsson  <jas@extundo.com>
70617
70618         * modules/gc-rijndael-tests (License): Put under LGPL.
70619
70620         * modules/gc-des-tests (License): Likewise.
70621
70622         * modules/gc-arcfour-tests (License): Likewise.
70623
70624         * modules/gc-arctwo-tests (License): Likewise.
70625
70626         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
70627
70628         * modules/gc-hmac-sha1-tests (Files): Likewise.
70629
70630         * modules/gc-hmac-md5-tests (License): Likewise.
70631
70632         * modules/gc-sha1-tests (License): Likewise.
70633
70634         * modules/gc-md5-tests (License): Likewise.
70635
70636         * modules/gc-md4-tests (License): Likewise.
70637
70638         * modules/gc-md2-tests (License): Likewise.
70639
70640         * modules/gc-tests (License): Likewise.
70641
70642         * modules/des-tests (License): Likewise.
70643
70644         * modules/md4-tests (License): Likewise.
70645
70646         * modules/md2-tests (License): Likewise.
70647
70648 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         Sync from coreutils:
70651
70652         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
70653         * modules/lib-ignore: New file.
70654         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
70655         chdir-safer.m4, lchmod.m4.
70656         * modules/openat: Add mkdirat.c, openat-priv.h.
70657
70658 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70659
70660         Sync from coreutils.
70661         * m4/lib-ignore.m4: New file.
70662         * m4/lchmod.m4: New file.
70663
70664 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70665
70666         Sync from coreutils.
70667         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70668         for write access: POSIX says that must fail.
70669         * lib/fts.c (diropen): Likewise.
70670         * lib/save-cwd.c (save_cwd): Likewise.
70671         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70672         well, for minor improvements on hosts that lack O_DIRECTORY.
70673         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70674         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70675         Fall back on chown if open failed with EACCES.
70676
70677         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70678         Report an error at compile-time if only a 1-second nominal clock
70679         resolution is found.
70680
70681         * lib/lchmod.h: New file.
70682         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70683         (make_dir_parents): Use lchown rather than chown, and
70684         lchmod rather than chmod.
70685
70686         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70687         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70688         "proc" reported by n0dalus.
70689
70690         * lib/mountlist.c: Include <limits.h>.
70691         (dev_from_mount_options)
70692         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70693         New function.  It no longer assumes "dev=" has the System V meaning
70694         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70695         (read_file_system_list)
70696         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70697         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70698         dev= in that case.
70699
70700         * lib/posixtm.h (PDS_PRE_2000): New macro.
70701         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70702         allow_century.  All usages changed.  Reject dates outside the range
70703         1969-1999 if PDS_PRE_2000 is used.
70704
70705 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70706
70707         Sync from coreutils.
70708         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70709         (Time of day items): Mention the possibility of leap seconds.
70710         Problem reported by Dr. David Alan Gilbert.
70711
70712 2006-01-09  Jim Meyering  <jim@meyering.net>
70713
70714         Sync from coreutils.
70715
70716         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70717
70718         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70719
70720         * lib/modechange.c (mode_compile): Reject an invalid mode string
70721         that starts with an octal digit.  From Andreas Gruenbacher.
70722
70723         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70724         and dup to open_safer and dup_safer, respectively.
70725         (openat_permissive): Fix typo in comment.
70726
70727         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70728         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70729         (_): Remove; no longer needed.
70730         (openat): Renamed from rpl_openat; no need for rpl_openat
70731         since openat.h renames openat for us.
70732         Replace most of the body with a call to openat_permissive,
70733         to avoid duplicate code.
70734         Port to (probably hypothetical) environments were mode_t is
70735         wider than int.
70736         (openat_permissive): Require mode arg, so that we can check
70737         types better.  Put it just after flags.  Change cwd failure
70738         indicator from pointer-to-bool to pointer-to-errno-value.
70739         All callers changed.
70740         Invoke openat_save_fail and/or openat_restore_fail if
70741         cwd_errno is null, so that openat can call us.
70742         (openat_permissive, fdopendir, fstatat, unlinkat):
70743         Simplify errno handling to avoid some duplicate code,
70744         as it's OK to set errno on success.
70745         * lib/openat.h: Revamp code so that function macros depend on
70746         __OPENAT_PREFIX only, not also on AT_FDCWD.
70747         (openat_ro): Remove.  Caller changed to use openat_permissive.
70748         (openat_permissive): Now a macro, if not a function.
70749         (openat_restore_fail, openat_save_fail): Now always functions,
70750         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70751
70752         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70753         and openat.c.
70754         * lib/mkdirat.c: Include openat-priv.h.
70755         Remove definitions of macros defined therein.
70756         * lib/openat.c: Likewise.
70757
70758         * lib/mkdirat.c (mkdirat): New file and function.
70759         * lib/openat.h (mkdirat): Declare.
70760
70761         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70762
70763         * lib/openat.h (openat_permissive): Declare.
70764         (openat_ro): Define.
70765
70766         * lib/openat.c (EXPECTED_ERRNO): New macro.
70767         (openat_permissive): New function -- used in remove.c rewrite.
70768         (all functions): Set errno just before returning, only if there
70769         was an actual failure.
70770         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70771
70772         Emulate openat-family functions using Linux's procfs, if possible.
70773         Idea and some code based on Ulrich Drepper's glibc changes.
70774
70775         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70776         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70777         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70778         before falling back on save_cwd and restore_cwd.
70779         (fdopendir, fstatat, unlinkat): Likewise.
70780
70781         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70782         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70783
70784         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70785         as second argument to va_arg.  Otherwise, some versions of gcc
70786         warn that `if this code is reached, the program will abort'.
70787
70788 2006-01-09  Jim Meyering  <jim@meyering.net>
70789
70790         Sync from coreutils.
70791         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70792         Require openat-priv.h.
70793
70794 2006-01-09  Bruno Haible  <bruno@clisp.org>
70795
70796         * modules/strnlen (Include): Use strnlen.h.
70797
70798 2006-01-09  Bruno Haible  <bruno@clisp.org>
70799
70800         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70801
70802 2006-01-09  Bruno Haible  <bruno@clisp.org>
70803
70804         * lib/sysexit_.h (EX_OK): New macro.
70805         Suggested by Martin Lambers <marlam@marlam.de>.
70806
70807 2006-01-09  Bruno Haible  <bruno@clisp.org>
70808
70809         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70810         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70811
70812 2006-01-09  Bruno Haible  <bruno@clisp.org>
70813
70814         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70815         numbers.
70816
70817 2006-01-09  Bruno Haible  <bruno@clisp.org>
70818
70819         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70820         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70821         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70822         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70823
70824 2006-01-09  Bruno Haible  <bruno@clisp.org>
70825
70826         * build-aux/javacomp.sh.in: New file, moved from lib/.
70827         * modules/javacomp-script (Files): Update.
70828         (configure.ac): Add AC_CONFIG_FILES invocation.
70829         (EXTRA_DIST): Remove variable.
70830
70831         * build-aux/javaexec.sh.in: New file, moved from lib/.
70832         * modules/javaexec (Files): Update.
70833         (configure.ac): Add AC_CONFIG_FILES invocation.
70834         (EXTRA_DIST): Remove javaexec.sh.in.
70835
70836         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70837         * modules/csharpcomp-script (Files): Update.
70838         (configure.ac): Add AC_CONFIG_FILES invocation.
70839         (EXTRA_DIST): Remove variable.
70840
70841         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70842         * modules/csharpexec (Files): Update.
70843         (configure.ac): Add AC_CONFIG_FILES invocation.
70844         (EXTRA_DIST): Remove csharpexec.sh.in.
70845
70846 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70847
70848         Sync from coreutils.
70849
70850         Add POSIX ACL support
70851         * lib/acl.h (copy_acl, set_acl): Add declarations.
70852         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70853         systems other than Linux.
70854         (chmod_or_fchmod): New function: use fchmod when possible,
70855         and chmod otherwise.
70856         (file_has_acl): Add a POSIX ACL implementation, with a
70857         Linux-specific subcase.
70858         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70859         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70860         acls are unsupported.
70861         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70862         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70863         are unsupported.
70864
70865 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70866
70867         Sync from coreutils.
70868         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70869
70870 2006-01-07  Bruno Haible  <bruno@clisp.org>
70871
70872         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70873         gl_EARLY.
70874
70875 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70876
70877         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70878         Problem reported for Mingw by Mark Junker.
70879
70880 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         * README: Gnulib normally doesn't generate a tarball.
70883
70884 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70887         long int, not int, for nanosecond counts, so that people who are
70888         used to POSIX struct timespec won't be surprised.  Reported by Jim
70889         Meyering.
70890
70891 2005-12-28  Bruno Haible  <bruno@clisp.org>
70892
70893         * build-aux/config.rpath: Update from GNU gettext.
70894
70895 2005-12-16  Jim Meyering  <jim@meyering.net>
70896
70897         * modules/fprintftime: New module.
70898         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70899
70900 2005-12-16  Jim Meyering  <jim@meyering.net>
70901
70902         * m4/fprintftime.m4: New file.
70903
70904 2005-12-16  Jim Meyering  <jim@meyering.net>
70905
70906         * lib/fprintftime.c, lib/fprintftime.h: New files.
70907
70908 2005-12-15  Simon Josefsson  <jas@extundo.com>
70909
70910         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70911         new m4/socklen.m4.
70912
70913 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70914
70915         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70916         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70917
70918 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70919
70920         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70921         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70922         struct uparams is valid. Fall back to the default values if it is
70923         not.
70924
70925 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70926
70927         * modules/argp (Files): Add argp-pin.c
70928         (Depends-on): dirname
70929         (lib_SOURCES): Add argp-pin.c
70930
70931 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70932
70933         * m4/argp.m4:  Check if program_invocation_name and
70934         program_invocation_short_name are declared and define appropriate
70935         macros if they are not.
70936
70937 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70938
70939         * lib/argp-help.c (__argp_base_name): New function
70940         (__argp_short_program_name): Rewrite using __argp_base_name
70941         * lib/argp-namefrob.h: Define program_invocation_name and
70942         program_invocation_short_name if requested
70943         (__argp_base_name): Add prototype
70944         * lib/argp-parse.c (argp_def): Use gettext wrappers
70945         (argp_default_parser): Use __argp_base_name
70946         * lib/argp-pin.c: New file. Defines program_invocation_name and
70947         program_invocation_short_name on systems that lack them.
70948
70949 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70950
70951         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70952         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70953         porting problem reported by Georg Schwarz in
70954         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70955
70956 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70959         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70960         porting problem reported by Georg Schwarz in
70961         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70962
70963 2005-12-05  Bruno Haible  <bruno@clisp.org>
70964
70965         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70966         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70967         Reported by Mark Junker <mjscod@gmx.de>.
70968
70969 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70972         Use implementation from Albert Chin, with some
70973         comments/corrections by Stepan Kasal and myself.
70974
70975 2005-12-02  Bruno Haible  <bruno@clisp.org>
70976
70977         * gnulib-tool (func_import): Accept GPLed build tool modules when
70978         --lgpl is given.
70979         * modules/csharpcomp-script: New file.
70980         * modules/csharpcomp: Depend on it.
70981         * modules/javacomp-script: New file.
70982         * modules/javacomp: Depend on it.
70983         Suggested by Simon Josefsson.
70984
70985 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70986
70987         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70988         statement, to work around an HP-UX 10.20 compiler bug reported by
70989         Peter O'Gorman.
70990
70991 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70992
70993         * modules/savedir (Depends-on): Add openat.
70994
70995 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70998         (uintmax_t) [defined uintmax_t]: Do not declare.
70999         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
71000         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
71001         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
71002         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
71003         sake of portability to weird hosts that C allows (though we don't
71004         know of any practical examples).
71005
71006         * lib/savedir.h (fdsavedir): New decl.
71007         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
71008         contains most of the former guts of savedir.
71009         (savedir): Use savedirstream.
71010         Include "openat.h".
71011
71012 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71013
71014         * modules/obstack (Files): Add m4/ulonglong.m4.
71015         Problem reported by Davide Angelocola.
71016
71017 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
71018
71019         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
71020         coreutils no longer futzes with rounding modes.
71021
71022 2005-11-14  Jim Meyering  <jim@meyering.net>
71023
71024         * lib/mkstemp-safer.c: Include <config.h>, required for possible
71025         replacement of mkstemp.
71026
71027 2005-11-10  Simon Josefsson  <jas@extundo.com>
71028
71029         * lib/readline.c: Remove EOL.
71030
71031 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         * modules/gethrxtime (Depends-on): Add gettime.
71034
71035 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71036
71037         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
71038         or gettimeofday; no longer needed.
71039
71040 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71041
71042         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
71043         time business.
71044         (gethrxtime) [! (HAVE_NANOUPTIME
71045         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
71046         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
71047         our own approximation.
71048
71049 2005-11-08  Eric Blake  <ebb9@byu.net>
71050
71051         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71052
71053 2005-11-08  Eric Blake  <ebb9@byu.net>
71054
71055         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71056
71057 2005-11-04  Bruno Haible  <bruno@clisp.org>
71058
71059         * gnulib-tool: Implement --update mode.
71060
71061 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         Fix porting problem reported by Theodoros V. Kalamatianos.
71064         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
71065         Don't assume that futimes failing means we must fail.
71066
71067 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71068
71069         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
71070         variables to suggest the intended function of the PATH_MAX check.
71071
71072 2005-10-30  Kean Johnston  <jkj@sco.com>
71073
71074         Trivial changes to support SCO systems.
71075         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
71076         as PATH_MAX.
71077         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
71078         where __ptr is null when no I/O is pending.
71079
71080 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
71083         leave errno alone.  Problem reported by Dmitry V. Levin.
71084
71085 2005-10-28  Simon Josefsson  <jas@extundo.com>
71086
71087         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
71088         Test more.
71089
71090         * tests/test-gc-md2.c, tests/test-md2.c: New files.
71091
71092         * modules/md2, modules/md2-tests: New files.
71093
71094 2005-10-28  Simon Josefsson  <jas@extundo.com>
71095
71096         * m4/inet_ntop.m4: More tests.
71097
71098         * m4/gc-md2.m4, md2.m4: New file.
71099
71100 2005-10-28  Simon Josefsson  <jas@extundo.com>
71101
71102         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
71103         "restrict" keywords, as per POSIX.  Protect the function
71104         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
71105         Don't use K&R prototypes.  Check the sprintf return values.
71106         Re-define EAFNOSUPPORT if not present.  Indent.
71107
71108         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
71109         suggested by Bruno Haible <bruno@clisp.org>.
71110
71111         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
71112
71113         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
71114
71115         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
71116         libgcrypt).
71117
71118         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
71119
71120         * lib/md2.h, lib/md2.c: New files.
71121
71122 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
71123
71124         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
71125         errno alone.  Problem reported by Frederic Jolliton.
71126
71127 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71128
71129         * modules/verify (License): Change from GPL to LGPL.  This is a
71130         tiny module and there are apparently near-equivalents that are
71131         under the BSD license.
71132
71133 2005-10-24  Simon Josefsson  <jas@extundo.com>
71134
71135         * modules/sha1: Relicense to LGPL.
71136
71137 2005-10-24  Simon Josefsson  <jas@extundo.com>
71138
71139         * lib/md4.h: Shrink buffer size, now that we changed the type.
71140
71141 2005-10-23  Simon Josefsson  <jas@extundo.com>
71142
71143         * gnulib-tool (func_import): Fix --tests-base.
71144
71145 2005-10-22  Simon Josefsson  <jas@extundo.com>
71146
71147         * modules/arcfour (Depends-on): Need stdint.
71148
71149 2005-10-22  Simon Josefsson  <jas@extundo.com>
71150
71151         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
71152         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
71153
71154 2005-10-22  Simon Josefsson  <jas@extundo.com>
71155
71156         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
71157         suggested by Bruno Haible <bruno@clisp.org>.
71158
71159 2005-10-22  Simon Josefsson  <jas@extundo.com>
71160
71161         * lib/crc.h: Include stddef.h, for size_t.
71162
71163 2005-10-22  Simon Josefsson  <jas@extundo.com>
71164
71165         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
71166         arcfour_context struct (simplify test vector testing in GNU
71167         Shishi).
71168
71169 2005-10-21  Simon Josefsson  <jas@extundo.com>
71170
71171         * modules/des, modules/des-tests: New files.
71172
71173         * modules/gc-des, modules/gc-des-tests: New files.
71174
71175         * tests/test-des.c, tests/test-gc-des.c: New file.
71176
71177 2005-10-21  Simon Josefsson  <jas@extundo.com>
71178
71179         * modules/arctwo, modules/arctwo-tests: New files.
71180
71181         * tests/test-arctwo.c: New file.
71182
71183         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
71184
71185         * tests/test-gc-arctwo.c: New file.
71186
71187 2005-10-21  Simon Josefsson  <jas@extundo.com>
71188
71189         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
71190         Bruno Haible <bruno@clisp.org>.
71191
71192         * m4/gc-des.m4: New file.
71193
71194 2005-10-21  Simon Josefsson  <jas@extundo.com>
71195
71196         * m4/arctwo.m4: New file.
71197
71198         * m4/gc-arctwo.m4: New file.
71199
71200 2005-10-21  Simon Josefsson  <jas@extundo.com>
71201
71202         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
71203         block.
71204
71205 2005-10-21  Simon Josefsson  <jas@extundo.com>
71206
71207         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
71208         <bruno@clisp.org>.
71209
71210         * lib/hmac-sha1.c (hmac_sha1): Likewise.
71211
71212         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
71213         Bruno Haible <bruno@clisp.org>.
71214
71215         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
71216         <bruno@clisp.org>.
71217
71218 2005-10-21  Simon Josefsson  <jas@extundo.com>
71219
71220         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
71221
71222 2005-10-21  Simon Josefsson  <jas@extundo.com>
71223
71224         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
71225
71226 2005-10-21  Simon Josefsson  <jas@extundo.com>
71227
71228         * lib/des.h, lib/des.c: New files.
71229
71230         * lib/gc-gnulib.c: Support DES.c
71231
71232 2005-10-21  Simon Josefsson  <jas@extundo.com>
71233
71234         * lib/arctwo.h, lib/arctwo.c: New files.
71235
71236         * lib/gc-gnulib.c: Support ARCTWO.
71237
71238 2005-10-21  Simon Josefsson  <jas@extundo.com>
71239
71240         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
71241         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71242
71243 2005-10-21  Simon Josefsson  <jas@extundo.com>
71244
71245         * gnulib-tool (func_import, func_create_testdir): Define automake
71246         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
71247         Makefile.am snippet),
71248         suggested by Bruno Haible <bruno@clisp.org>.
71249
71250         * modules/gc (Makefile.am): Use it.
71251
71252 2005-10-21  Bruno Haible  <bruno@clisp.org>
71253
71254         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
71255         patch.
71256
71257 2005-10-19  Simon Josefsson  <jas@extundo.com>
71258
71259         * tests/test-gc-rijndael.c: New file.
71260
71261         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
71262
71263 2005-10-19  Simon Josefsson  <jas@extundo.com>
71264
71265         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
71266         interface too.
71267
71268 2005-10-19  Simon Josefsson  <jas@extundo.com>
71269
71270         * tests/test-gc-arcfour.c: New file.
71271
71272         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
71273
71274 2005-10-19  Simon Josefsson  <jas@extundo.com>
71275
71276         * modules/gc-md4, modules/gc-md4-tests: New file.
71277
71278         * tests/test-gc-md4.c: New file.
71279
71280 2005-10-19  Simon Josefsson  <jas@extundo.com>
71281
71282         * m4/gc-md4.m4: New file.
71283
71284 2005-10-19  Simon Josefsson  <jas@extundo.com>
71285
71286         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
71287         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
71288         <kasal@ucw.cz>.
71289
71290 2005-10-19  Simon Josefsson  <jas@extundo.com>
71291
71292         * m4/gc-arcfour.m4: New file.
71293
71294         * m4/gc-rijndael.m4: New file.
71295
71296 2005-10-19  Simon Josefsson  <jas@extundo.com>
71297
71298         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
71299
71300 2005-10-19  Simon Josefsson  <jas@extundo.com>
71301
71302         * lib/gc-gnulib.c: Support ARCFOUR.
71303
71304 2005-10-19  Simon Josefsson  <jas@extundo.com>
71305
71306         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
71307         support.
71308
71309         * lib/gc.h: Add ECB enum type.
71310
71311         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
71312
71313 2005-10-18  Simon Josefsson  <jas@extundo.com>
71314
71315         * tests/test-md5.c: New file.
71316
71317         * modules/md5-tests: New file.
71318
71319 2005-10-18  Simon Josefsson  <jas@extundo.com>
71320
71321         * tests/test-md4.c: New file.
71322
71323         * modules/md4, modules/md4-tests: New files.
71324
71325 2005-10-18  Simon Josefsson  <jas@extundo.com>
71326
71327         * m4/md4.m4: New file.
71328
71329 2005-10-18  Simon Josefsson  <jas@extundo.com>
71330
71331         * lib/md4.h, lib/md4.c: New files, based on md5.?.
71332
71333 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
71334
71335         * gnulib-tool (func_create_testdir): Omit the second check whether
71336         BUILT_SOURCES in nonempty.
71337
71338 2005-10-17  Simon Josefsson  <jas@extundo.com>
71339
71340         * tests/test-rijndael.c: New file.
71341
71342 2005-10-17  Simon Josefsson  <jas@extundo.com>
71343
71344         * modules/sha1: Depend on stdint instead of md5.
71345
71346         * modules/md5: Depend on stdint, remove uint32_t.
71347
71348 2005-10-17  Simon Josefsson  <jas@extundo.com>
71349
71350         * modules/gc-sha1-tests: New file.
71351
71352         * tests/test-gc-sha1.c: New file.
71353
71354 2005-10-17  Simon Josefsson  <jas@extundo.com>
71355
71356         * m4/md5.m4: Remove call to uint32_t.m4.
71357
71358 2005-10-17  Simon Josefsson  <jas@extundo.com>
71359
71360         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
71361
71362         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
71363         md5.h.
71364
71365         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
71366
71367         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
71368
71369 2005-10-17  Simon Josefsson  <jas@extundo.com>
71370
71371         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
71372
71373 2005-10-17  Simon Josefsson  <jas@extundo.com>
71374
71375         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
71376
71377 2005-10-17  Simon Josefsson  <jas@extundo.com>
71378
71379         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
71380
71381         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
71382
71383 2005-10-17  Bruno Haible  <bruno@clisp.org>
71384
71385         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
71386         that it can also be used in a test.
71387
71388 2005-10-16  Bruno Haible  <bruno@clisp.org>
71389
71390         * gnulib-tool (func_emit_tests_Makefile_am): Also define
71391         TESTS_ENVIRONMENT, so that individual tests can augment it.
71392
71393         * gnulib-tool (func_create_testdir): Use an intermediate target for
71394         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
71395         macros, like $(ALLOCA_H), which cannot be passed through the command
71396         line.
71397
71398 2005-10-15  Simon Josefsson  <jas@extundo.com>
71399
71400         * modules/rijndael-tests: New file.
71401
71402         * modules/rijndael: New file.
71403
71404 2005-10-15  Simon Josefsson  <jas@extundo.com>
71405
71406         * m4/rijndael.m4: New file.
71407
71408 2005-10-15  Simon Josefsson  <jas@extundo.com>
71409
71410         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71411
71412         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
71413
71414 2005-10-14  Simon Josefsson  <jas@extundo.com>
71415
71416         * tests/test-arcfour.c: New file.
71417
71418         * modules/arcfour, modules/arcfour-tests: New files.
71419
71420 2005-10-14  Simon Josefsson  <jas@extundo.com>
71421
71422         * m4/arcfour.m4: New file.
71423
71424 2005-10-14  Simon Josefsson  <jas@extundo.com>
71425
71426         * lib/arcfour.h, lib/arcfour.c: New files.
71427
71428 2005-10-14  Roland McGrath  <roland@redhat.com>
71429
71430         Import from libc.  [BZ #1331]
71431         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
71432         macro argument.
71433         Reported by Matej Vela <vela@debian.org>.
71434
71435 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
71438         include <wchar.h>; no longer needed.
71439
71440 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71441
71442         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
71443
71444 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
71445         and  Ulrich Drepper  <drepper@redhat.com>
71446
71447         Import from libc.
71448         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
71449         instead of inline stream orientation test and two separate
71450         function calls.  Pay no attention to USE_IN_LIBIO.
71451
71452 2005-10-13  Simon Josefsson  <jas@extundo.com>
71453
71454         * modules/gc-hmac-md5-tests: New file.
71455
71456         * tests/test-gc-hmac-sha1.c: New file.
71457
71458         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
71459
71460         * modules/gc-hmac-md5-tests: New file.
71461
71462         * tests/test-gc-md5.c: New file.
71463
71464         * modules/gc-md5-tests: New file.
71465
71466 2005-10-13  Simon Josefsson  <jas@extundo.com>
71467
71468         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
71469         Move memory allocation outside of loop.
71470
71471 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
71474         intermediate directory is in a read-only file system.  Problem
71475         reported by Eric Blake.
71476
71477 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
71478
71479         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
71480
71481 2005-10-12  Simon Josefsson  <jas@extundo.com>
71482
71483         * tests/test-hmac-sha1.c: New file.
71484
71485         * modules/hmac-sha1-tests: New file.
71486
71487         * modules/hmac-sha1: New file.
71488
71489 2005-10-12  Simon Josefsson  <jas@extundo.com>
71490
71491         * modules/gc-sha1: New file.
71492
71493 2005-10-12  Simon Josefsson  <jas@extundo.com>
71494
71495         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
71496
71497         * tests/test-gc-pbkdf2-sha1.c: New file.
71498
71499 2005-10-12  Simon Josefsson  <jas@extundo.com>
71500
71501         * modules/gc-md5, modules/gc-hmac-md5: New files.
71502
71503         * modules/gc (Files): Remove md5, memxor and hmac files.
71504
71505 2005-10-12  Simon Josefsson  <jas@extundo.com>
71506
71507         * m4/gc-pbkdf2-sha1.m4: New file.
71508
71509         * m4/gc-hmac-sha1.m4: New file.
71510
71511         * m4/gc-sha1: New file.
71512
71513         * m4/hmac-sha1.m4: New file.
71514
71515 2005-10-12  Simon Josefsson  <jas@extundo.com>
71516
71517         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
71518
71519         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
71520
71521 2005-10-12  Simon Josefsson  <jas@extundo.com>
71522
71523         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
71524         suggested by Bruno Haible <bruno@clisp.org>.
71525
71526 2005-10-12  Simon Josefsson  <jas@extundo.com>
71527
71528         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
71529
71530 2005-10-12  Simon Josefsson  <jas@extundo.com>
71531
71532         * lib/gc-pbkdf2-sha1.c: New file.
71533
71534         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
71535
71536 2005-10-12  Simon Josefsson  <jas@extundo.com>
71537
71538         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
71539
71540         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
71541
71542 2005-10-12  Simon Josefsson  <jas@extundo.com>
71543
71544         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
71545         GC_USE_HMAC_MD5, respectively.
71546
71547         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
71548         (gc_md5): Fix typo.
71549
71550         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
71551
71552         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
71553
71554         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
71555
71556 2005-10-12  Bruno Haible  <bruno@clisp.org>
71557
71558         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
71559         Reported by Stepan Kasal <kasal@ucw.cz>.
71560
71561 2005-10-11  Simon Josefsson  <jas@extundo.com>
71562
71563         * tests/test-crc.c: New file.
71564
71565         * modules/crc, modules/crc-tests: New files.
71566
71567 2005-10-11  Simon Josefsson  <jas@extundo.com>
71568
71569         * m4/crc.m4: New file.
71570
71571 2005-10-11  Simon Josefsson  <jas@extundo.com>
71572
71573         * lib/gc.h: Add gc_hash and gc_hash_buffer.
71574
71575         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
71576
71577         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
71578
71579 2005-10-11  Simon Josefsson  <jas@extundo.com>
71580
71581         * lib/crc.h, lib/crc.c: New files.
71582
71583         * lib/gc.h (gc_hash_buffer): Add doc.
71584
71585 2005-10-11  Bruno Haible  <bruno@clisp.org>
71586
71587         * modules/c-strcasestr: New file.
71588         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
71589
71590 2005-10-11  Bruno Haible  <bruno@clisp.org>
71591
71592         * modules/c-strcase: New file.
71593         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
71594
71595 2005-10-11  Bruno Haible  <bruno@clisp.org>
71596
71597         * lib/strcasecmp.c: Include limits.h.
71598         (strcasecmp): Avoid integer overflow on exotic platforms.
71599         * lib/strncasecmp.c: Include limits.h.
71600         (strncasecmp): Avoid integer overflow on exotic platforms.
71601         Reported by Paul Eggert.
71602
71603 2005-10-11  Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/c-strcasestr.h: New file, from GNU gettext.
71606         * lib/c-strcasestr.c: New file, from GNU gettext.
71607
71608 2005-10-11  Bruno Haible  <bruno@clisp.org>
71609
71610         * lib/c-strcase.h: New file, from GNU gettext.
71611         * lib/c-strcasecmp.c: New file, from GNU gettext.
71612         * lib/c-strncasecmp.c: New file, from GNU gettext.
71613
71614 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71615
71616         * modules/mempcpy (License): GPL -> LGPL.
71617         * modules/strchrnul (License): Likewise.
71618         * modules/sysexits (License): Likewise.
71619
71620 2005-10-08  Simon Josefsson  <jas@extundo.com>
71621
71622         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
71623
71624 2005-10-07  Simon Josefsson  <jas@extundo.com>
71625
71626         * m4/memxor.m4: Remove gl_C_RESTRICT call.
71627
71628 2005-10-06  Simon Josefsson  <jas@extundo.com>
71629
71630         * tests/test-hmac-md5.c: New file.
71631
71632         * modules/hmac-md5-tests: New file.
71633
71634         * modules/hmac-md5: New file.
71635
71636 2005-10-06  Simon Josefsson  <jas@extundo.com>
71637
71638         * m4/hmac-md5.m4: New file.
71639
71640         * m4/memxor.m4: Require gl_C_RESTRICT.
71641
71642 2005-10-06  Simon Josefsson  <jas@extundo.com>
71643
71644         * lib/memxor.c (memxor): Avoid casts and warnings.
71645
71646 2005-10-06  Simon Josefsson  <jas@extundo.com>
71647
71648         * lib/hmac-md5.c: New file.
71649
71650         * lib/hmac.h: New file.
71651
71652 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71653
71654         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
71655         promotes to int, not unsigned int, to catch the AIX 5.3
71656         compiler bug.
71657
71658 2005-10-05  Simon Josefsson  <jas@extundo.com>
71659
71660         * modules/memxor: New file.
71661
71662         * modules/iconv (Files): Move config.rpath to havelib, it is used
71663         there.
71664
71665         * modules/havelib (Files): Add config.rpath.
71666
71667 2005-10-05  Simon Josefsson  <jas@extundo.com>
71668
71669         * m4/memxor.m4: New file.
71670
71671 2005-10-05  Simon Josefsson  <jas@extundo.com>
71672
71673         * lib/memxor.c (memxor): Fix compiler error.
71674
71675         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71676         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71677
71678         * lib/memxor.h, lib/memxor.c: New files.
71679
71680         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71681         we assume all systems have it, suggested by Jim Meyering
71682         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71683         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71684         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71685         same reasons.
71686
71687 2005-10-05  Simon Josefsson  <jas@extundo.com>
71688
71689         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71690
71691 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71692
71693         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71694         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71695         needed, since the source code now assumes these .h files.
71696
71697 2005-10-05  Derek Price  <derek@ximbiot.com>
71698
71699         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71700
71701 2005-10-05  Bruno Haible  <bruno@clisp.org>
71702
71703         * modules/stdint (License): Change to LGPL.
71704
71705 2005-10-04  Simon Josefsson  <jas@extundo.com>
71706
71707         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71708         D. Baushke" <mdb@gnu.org>.
71709
71710 2005-10-04  Bruno Haible  <bruno@clisp.org>
71711
71712         * lib/verify.h (verify_true): Provide alternative definition for C++.
71713
71714 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71717         (SSIZE_MAX): New macro, if not already defined.
71718         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71719         than 2 GiB.
71720
71721 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         Sync from coreutils.
71724         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71725         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71726         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71727         ULLONG_MAX doesn't work with 2.7.2.1.
71728
71729 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71732         From Ben Pfaff.
71733
71734         * modules/exclude (Depends-on): Depend on verify.
71735         * modules/strtoimax (Depends-on): Likewise.
71736         * modules/utimecmp (Depends-on): Likewise.
71737
71738 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * lib/exclude.c: Include verify.h.
71741         (verify): Remove.  All callers changed to use verify.h's version.
71742         * lib/strtoimax.c: Likewise.
71743         * lib/utimecmp.c: Likewis.e
71744
71745         Sync from coreutils.
71746         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71747         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71748         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71749         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71750         bother returning ENOSYS if settimeofday or stime fails; just let
71751         them return whatever errno they want to return.
71752         * lib/utimens.c: Include unistd.h, for dup2.
71753         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71754         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71755
71756 2005-10-02  Jim Meyering  <jim@meyering.net>
71757
71758         Sync from coreutils.
71759         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71760         from glibc-2.2.5 that fails for read-only files.
71761
71762 2005-10-02  Jim Meyering  <jim@meyering.net>
71763
71764         Sync from coreutils.
71765         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71766         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71767         `#if HAVE_CONFIG_H'.
71768         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71769         Remove AT_FDCWD test.
71770         Do not consume the fd unless successful.
71771         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71772         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71773         block, so that we don't even try to compile it if settimeofday is
71774         available.  This works around a compilation failure on OSF1 V5.1,
71775         due to stime requiring a `long int*' while tv_sec is `int'.
71776
71777 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71778
71779         Sync from coreutils.
71780         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71781         against `yes', rather than just testing for nonempty.
71782
71783 2005-10-01  Simon Josefsson  <jas@extundo.com>
71784
71785         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71786         and Darwin.
71787
71788         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71789         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71790         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71791         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71792         Check if struct addrinfo is declared.
71793
71794 2005-10-01  Simon Josefsson  <jas@extundo.com>
71795
71796         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71797         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71798         AI_* and EAI_* definitions.  Protect function declarations.
71799
71800 2005-10-01  Jim Meyering  <jim@meyering.net>
71801
71802         Sync from coreutils.
71803
71804         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71805         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71806         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71807         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71808         in the inet and nsl libraries.  Required on Solaris 5.7.
71809
71810 2005-10-01  Jim Meyering  <jim@meyering.net>
71811
71812         Sync from coreutils.
71813         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71814         in the inet and nsl libraries.  Required on Solaris 5.7.
71815
71816 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71817
71818         * lib/getdelim.c (getdelim): Remove unused variables.
71819
71820 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71821
71822         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71823         so that the code works even with ancient cpp.  Portability problem
71824         with GCC 2.7.2.1 reported by Thomas M.Ott.
71825
71826 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71827
71828         * modules/regex (Depends-on): Add strcase.
71829
71830         * modules/gethostname (Licence): Change from GPL to LGPL, since
71831         gethostname.c is a trivial implementation of a standard library
71832         function.
71833         * modules/poll (License): Change from GPL to LGPL, since it's
71834         derived from LGPL code.
71835
71836 2005-09-27  Jim Meyering  <jim@meyering.net>
71837
71838         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71839         HAVE_CONFIG_H.
71840
71841         * lib/intprops.h (signed_type_or_expr__): Define.
71842         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71843         for unsigned types.
71844
71845 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71846
71847         * lib/verify.h (verify_expr): Remove, replacing with:
71848         (verify_true): New macro that returns true instead of void.
71849         (verify_type__): Remove.
71850         (verify): Use verify_true rather than verify_type__.
71851
71852 2005-09-26  Bruno Haible  <bruno@clisp.org>
71853
71854         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71855         is necessary.
71856         (lib_SOURCES): Remove mbchar.c.
71857         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71858         (Files): Add m4/mbrtowc.m4.
71859         * modules/mbiter: Likewise.
71860         * modules/mbuiter: Likewise.
71861
71862 2005-09-26  Bruno Haible  <bruno@clisp.org>
71863
71864         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71865         compile mbchar.c if they are not both present.
71866         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71867         * m4/mbiter.m4 (gl_MBITER): Likewise.
71868         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71869         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71870         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71871
71872 2005-09-25  Jim Meyering  <jim@meyering.net>
71873
71874         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71875         also uses socklen_t.
71876
71877 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * lib/utimens.c (ENOSYS): Define if not already defined.
71880         (futimens): Support having a null PATH if the file descriptor
71881         is nonnegative.
71882
71883         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71884         Remove.
71885         (__attribute): Define to empty unless GCC 3.1 or later.
71886         This works around a core dump on OpenBSD 3.4, which has GCC
71887         2.95.3, which dumps core when given __attribute__(()).  It also
71888         simplifies other tests, since we really don't want to bother with
71889         worrying about which ancient version of GCC supported what.
71890         Original problem reported by Yoann Vandoorselaere, with part of
71891         the fix suggested by Derek Price.
71892
71893 2005-09-24  Jim Meyering  <jim@meyering.net>
71894
71895         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71896         so we can once again use a positive bitfield width of 1 -- now we
71897         don't have to explain why we were using a bitfield width of 2.
71898
71899 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71900
71901         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71902         and similarly for the other external symbols.  Problem reported
71903         by James Gallager.
71904
71905         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71906         bug reported by Jim Meyering.
71907
71908         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71909         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71910         not needed, since socklen is a prerequisite module.
71911
71912 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71915         Problem reported by Eric Blake.
71916         (getaddrinfo): Initialize se so that it's not garbage.
71917         Redo internal storage allocation so that it doesn't make unportable
71918         assumptions about alignment.
71919         Fix a memory leak.
71920
71921         * lib/utimens.c (futimens): Use futimesat if available.
71922         Prefer it to futimes since it doesn't have the futimes bug.
71923
71924         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71925         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71926         Instead, declare a function that returns a pointer to an array,
71927         and use verify_type__ to declare the size of the array.
71928         Problem and germ of a solution reported by Bruno Haible.
71929         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71930         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71931
71932 2005-09-23  Jim Meyering  <jim@meyering.net>
71933
71934         Sync from coreutils.
71935         Correct build failure (socklen_t not defined) on at least
71936         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71937         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71938
71939 2005-09-23  Jim Meyering  <jim@meyering.net>
71940
71941         * modules/getaddrinfo (Depends-on): Add socklen.
71942
71943 2005-09-23  Bruno Haible  <bruno@clisp.org>
71944
71945         * tests/test-verify.c: New file.
71946
71947 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         Sync from coreutils.
71950
71951         * modules/argmatch (Depends-on): Add verify.
71952         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71953         unistd-safer.
71954         * modules/save-cwd (Depends-on): Likewise.
71955
71956         * modules/openat (Files): Add lib/openat-die.c.
71957         (Depends-on): Remove error, exitfail.
71958         Add dirname.
71959
71960         * modules/verify: New file.
71961         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71962         with "verify" module.
71963
71964 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         Sync from coreutils.
71967
71968         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71969         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71970         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71971         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71972         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71973         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71974         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71975         Don't bother checking for string.h, stdlib.h, unistd.h.
71976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71977         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71978         module's job.
71979         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71980         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71981
71982         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71983         (gl_GETDATE): Use it.
71984
71985         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71986
71987 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         Sync from coreutils.
71990
71991         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71992         stat-time.h.
71993         * lib/argmatch.h: Include verify.h
71994         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71995         (ARGMATCH_ASSERT): Remove; unused.
71996         * lib/canonicalize.c: Assume STDC_HEADERS.
71997         * lib/exclude.c: Include "strcase.h".
71998         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71999         * lib/getusershell.c: Include stdio--.h rather than stdio.h
72000         and stdio-safer.h.
72001         (getusershell): Call fopen, not fopen_safer.
72002         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
72003         Do not include unistd-safer.h.
72004         (save_cwd): Don't call fd_safer; no longer needed
72005         now that we include fcntl--.h.
72006
72007         * lib/getdate.y (relative_time): New type.
72008         (RELATIVE_TIME_0): New constant.
72009         (parser_control): Use relative_time instead of doing it ourselves.
72010         (%union): Add new relative_time rel member.
72011         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
72012         Now typeless.
72013         (relunit, relunit_snumber): Now of type rel.
72014         (zone, rel, relunit, get_date): Adjust to above changes.
72015
72016         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
72017         Do not include unistd-safer.h.
72018         (getloadavg): Don't call fd_safer; no longer needed
72019         now that we include fcntl--.h.
72020
72021         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
72022         (make_dir_parents): Treat ENOSYS like EEXIST.
72023
72024         Improve quality of diagnostics on restore_cwd failure.
72025         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
72026         (make_dir_parents): Last arg is now int * (for errno), not bool *.
72027         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
72028         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
72029         each time through the loop.  Do not diagnose restore_cwd failure;
72030         that is the caller's job (and perhaps the caller does not care).
72031
72032         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
72033         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
72034         If the file already exists but is not a directory, don't bother
72035         to try to make its parents.
72036         Close potential file descriptor leak if we can't chdir("/") (!).
72037         Don't always return true if chdir($PWD) fails; return true only
72038         if the requested action was done successfully (except for the
72039         chdir($PWD)).
72040         Don't log final directory unless we actually made it.
72041         Refactor to avoid duplicate code to fix up permissions.
72042         Don't attempt to fix up parent permissions if chdir($PWD) fails.
72043
72044         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
72045         to make it a bit faster and (I hope) clearer.
72046         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
72047         Fix bug in formats like %2N.
72048
72049         * lib/verify.h: New file.
72050
72051 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72052
72053         Sync from coreutils.
72054         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
72055
72056 2005-09-22  Jim Meyering  <jim@meyering.net>
72057
72058         Sync from coreutils.
72059
72060         * m4/lstat.m4 (gl_FUNC_LSTAT):
72061         Use AC_LIBSOURCES to require lstat.c and lstat.h.
72062         Remove obsolete comment.
72063         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
72064         * m4/xstrtod.m4: Likewise.
72065
72066         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
72067
72068 2005-09-22  Jim Meyering  <jim@meyering.net>
72069
72070         Sync from coreutils.
72071
72072         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
72073
72074         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
72075         the .tm_year member, since otherwise gcc-4.0 would now warn about
72076         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
72077
72078         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
72079         order to avoid an unsuppressible warning from gcc on 64-bit systems.
72080
72081         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
72082         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
72083         when run in a time zone for which daylight savings time is in effect
72084         for the starting date.
72085
72086         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
72087         stop us from restricting permissions of just-created absolute-named
72088         directories.
72089         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
72090         to restore initial working directory.
72091         * lib/mkdir-p.c (make_dir_parents): New parameter:
72092         different_working_dir, to tell caller if/when we change the working
72093         directory and are unable to return to the initial one.
72094         * lib/mkdir-p.h (make_dir_parents): Update prototype.
72095         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
72096         `return false'.  This fixes a bug introduced on 2004-07-30.
72097
72098         * lib/openat.c (fdopendir): Be sure to close the supplied
72099         file descriptor before returning.  This makes our replacement
72100         implementation a little closer to Solaris's, where fdopendir
72101         ties the file descriptor to the returned DIR* pointer.
72102         * lib/openat.c (unlinkat): New function.
72103         * lib/openat.h (unlinkat): Add prototype.
72104         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
72105         (openat_restore_fail): Rename from openat_restore_die.
72106         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
72107
72108         Provide an alternative to exiting immediately upon save_cwd or
72109         restore_cwd failure.  Now, an application can arrange e.g.,
72110         to perform a longjump in that case.
72111         * lib/openat.c: Include dirname.h.
72112         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
72113         (rpl_openat, fdopendir, fstatat): Call openat_save_die
72114         and openat_restore_die rather than calling error directly.
72115         Don't include "error.h" or "exitfail.h"; they're no longer needed.
72116
72117         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
72118         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
72119         define.
72120
72121         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
72122         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
72123                             int utc, int nanoseconds);
72124         Background:
72125         date should not have to allocate a megabyte of virtual memory to
72126         handle a format argument like +%1048575T.  When implemented with
72127         strftime, it must allocate such a buffer, use strftime to fill it
72128         in, print it, then free it.
72129         With fprintftime, it simply prints everything and exits.
72130         With no need for memory allocation, that's one fewer way to fail.
72131         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
72132         optional field width, not before, so we accept %9:z, not %:9z.
72133         (my_strftime): Be sure to use L_('x') for literals.
72134
72135         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
72136         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
72137         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
72138         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
72139         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
72140         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
72141         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
72142         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
72143         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
72144         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
72145         * lib/xgethostname.c, lib/xreadlink.c:
72146         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
72147
72148         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
72149         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
72150         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
72151         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72152         and don't include <sys/file.h>).
72153
72154 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
72155
72156         Sync from coreutils.
72157
72158         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
72159         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
72160         [!LDAV_DONE]: Avoid unused variable warning.
72161
72162 2005-09-21  Bruno Haible  <bruno@clisp.org>
72163
72164         * lib/unicodeio.h (unicode_to_mb): New declaration.
72165
72166 2005-09-20  Derek Price  <derek@ximbiot.com>
72167
72168         * lib/getaddrinfo.c: Don't include <netdb.h> included from
72169         getaddrinfo.h.
72170
72171 2005-09-20  Bruno Haible  <bruno@clisp.org>
72172
72173         * gnulib-tool: Remove trailing slashes from the values specified for
72174         --source-base, --m4-base, --tests-base, --aux-dir.
72175         Suggested by Simon Josefsson <jas@extundo.com>.
72176
72177 2005-09-20  Bruno Haible  <bruno@clisp.org>
72178
72179         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
72180         func_modules_to_filelist, func_import, func_create_testdir): Make all
72181         sorting results locale-independent, so that gnulib-cache.m4 doesn't
72182         change when gnulib-tool is invoked in a different locale.
72183
72184 2005-09-19  Simon Josefsson  <jas@extundo.com>
72185
72186         * m4/socklen.m4: Fix typo.
72187
72188 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72189
72190         Use a consistent style for including <config.h>.
72191         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
72192         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
72193         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
72194         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
72195         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
72196         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
72197         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
72198         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
72199         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
72200         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
72201         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
72202         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
72203         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
72204         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
72205         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
72206         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
72207         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
72208         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
72209         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
72210         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
72211         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
72212         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
72213         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
72214         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
72215         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
72216         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
72217         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
72218         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
72219         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
72220         lib/xstrtoumax.c, lib/yesno.c:
72221         Standardize inclusion of config.h.
72222         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
72223         lib/inttostr.h:  Removed inclusion of config.h from header files.
72224         * lib/inttostr.c:  Adjusted in-tree users.
72225         * lib/timespec.h: Remove superfluous warning to include config.h.
72226         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
72227         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
72228         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
72229         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
72230         config.h with HAVE_CONFIG_H.
72231
72232 2005-09-19  Jim Meyering  <jim@meyering.net>
72233
72234         * modules/pathmax (License): Change to LGPL.
72235
72236 2005-09-19  Derek Price  <derek@ximbiot.com>
72237
72238         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
72239
72240 2005-09-19  Bruno Haible  <bruno@clisp.org>
72241
72242         * gnulib-tool (import): Provide default for --tests-base.
72243
72244 2005-09-19  Bruno Haible  <bruno@clisp.org>
72245
72246         * doc/quote.texi: New file, extracted from gnulib.texi.
72247         * doc/ctime.texi: New file, extracted from gnulib.texi.
72248         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
72249         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
72250         * doc/gnulib.texi: Include them.
72251
72252 2005-09-18  Bruno Haible  <bruno@clisp.org>
72253
72254         Portability fix.
72255         * gnulib-tool (func_readlink): New function.
72256         (func_ln_if_changed): Use it.
72257
72258 2005-09-18  Bruno Haible  <bruno@clisp.org>
72259
72260         * gnulib-tool: Support --with-tests also with --import.
72261         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
72262         (func_import): Use variables $testsbase and $inctests. Emit a
72263         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
72264         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
72265         SUBDIRS += $testsdir.
72266         (func_create_testdir): Update.
72267
72268 2005-09-18  Bruno Haible  <bruno@clisp.org>
72269
72270         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
72271         instead of $dry_run.
72272         (func_cp_if_changed, func_mv_if_changed): Remove functions.
72273         (func_ln_if_changed): Don't handle dry-run here.
72274         (func_import): In dry-run mode, detect more precisely which actions
72275         would be performed, and don't use "...ing" verbs.
72276
72277 2005-09-18  Bruno Haible  <bruno@clisp.org>
72278
72279         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
72280         (func_import): Use join on two temporary files instead of three nested
72281         loops, in order to determine which files are new or old.
72282
72283 2005-09-18  Bruno Haible  <bruno@clisp.org>
72284
72285         * gnulib-tool (func_import): Comment out code that spits out the
72286         new files with --dry-run.
72287
72288 2005-09-18  Bruno Haible  <bruno@clisp.org>
72289
72290         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
72291
72292 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         * lib/stat-time.h: New file.
72295         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
72296         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
72297         in a different way.
72298         (timespec_cmp): New function.
72299         * lib/utimecmp.c: Include stat-time.h.
72300         (SYSCALL_RESOLUTION): Depend on whether various struct stat
72301         members exist, not on the obsolescent ST_MTIM_NSEC.
72302         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
72303
72304 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72305
72306         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
72307
72308 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72309
72310         * MODULES.html.sh (File system functions): Add stat-time.
72311         * modules/stat-time: New file.
72312         * modules/timespec (Files): Remove m4/st_mtim.m4; this
72313         is now done in a different way, by the stat-time module.
72314         * modules/utimecmp (Depends-on): Add stat-time.
72315
72316 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72317
72318         * m4/st_mtim.m4: Remove.  Superseded by...
72319         * m4/stat-time.m4: New file.
72320         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
72321         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
72322
72323 2005-09-15  Derek Price  <derek@ximbiot.com>
72324
72325         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
72326
72327 2005-09-15  Derek Price  <derek@ximbiot.com>
72328
72329         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
72330         * lib/regex_internal.c: Ditto, using this...
72331         (__GNUC_PREREQ): ...new macro.
72332         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
72333         using...
72334         (__GNUC_PREREQ): ...this new macro.
72335
72336         * lib/strstr.h: Include string.h. Define strstr as a macro here.
72337
72338 2005-09-15  Derek Price  <derek@ximbiot.com>
72339             Paul Eggert  <eggert@cs.ucla.edu>
72340
72341         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
72342         changes, consolidating in...
72343         * lib/regex_internal.h: ...this file.
72344
72345 2005-09-13  Jim Meyering  <jim@meyering.net>
72346
72347         * lib/canon-host.c: Filter through gnu indent and reword comments
72348         slightly.
72349         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
72350
72351 2005-09-13  Derek Price  <derek@ximbiot.com>
72352
72353         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
72354         failure.
72355         Reported by Jim Meyering  <jim@meyering.net>.
72356
72357 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72358
72359         * lib/base64.c: Typo.
72360         (base64_encode): Put b64str in initialized data section.
72361
72362 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         Merge glibc and coreutils changes into gnulib, plus a few
72365         extra fixes.
72366         * lib/md5.c: Use #error rather than a string.
72367         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
72368         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
72369         (__attribute__): Define to empty for non recent-GCC.
72370         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
72371         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
72372         Renamed from their non-__ counterparts, with new macros replacing
72373         them if not _LIBC.  Add __THROW attribute.
72374         (rol): Remove.
72375         (struct md5_ctx): Align buffer if using GCC.
72376         * lib/sha1.h (struct sha1_ctx): Likewise.
72377         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
72378         The old name was backwards.
72379         (NOTSWAP): Remove; not used.
72380         (rol): New macro, moved here from md5.h.
72381         (sha1_process_block): Remove a FIXME that doesn't make sense.
72382
72383 2005-09-12  Derek Price  <derek@ximbiot.com>
72384
72385         Return usable errors from canon-host.
72386         * lib/canon-host.h: New file.
72387         * lib/canon-host.c (canon_host): Wrap...
72388         (canon_host_r): ...this new function, which now relies exclusively on
72389         getaddrinfo.
72390         (ch_strerror): New function.
72391         (last_cherror): New global.
72392         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
72393         interface.
72394         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
72395         void *.
72396         (freeaddrinfo): Free ai->ai_canonname when set.
72397
72398 2005-09-12  Derek Price  <derek@ximbiot.com>
72399
72400         Make canon-host require getaddrinfo.
72401         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
72402         AC_LIBSOURCE canon-host.h.  Call...
72403         (gl_PREREQ_CANON_HOST): ...this new function, which requires
72404         gl_GETADDRINFO.
72405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
72406
72407 2005-09-12  Derek Price  <derek@ximbiot.com>
72408
72409         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72410         LGPL.
72411         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72412
72413 2005-09-12  Derek Price  <derek@ximbiot.com>
72414
72415         * lib/gai_strerror.c: Include config.h when available.  Include
72416         getaddrinfo.h before other headers to test interface.
72417         Reported by Larry Jones <lawrence.jones@ugs.com>.
72418
72419 2005-09-12  Derek Price  <derek@ximbiot.com>
72420             Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         * modules/glob (Files): Add glob-libc.h.
72423
72424 2005-09-12  Derek Price  <derek@ximbiot.com>
72425             Paul Eggert  <eggert@cs.ucla.edu>
72426
72427         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
72428         glob_.h, glob-libc.h.
72429         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
72430
72431 2005-09-12  Derek Price  <derek@ximbiot.com>
72432             Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
72435         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
72436         protecting things that should be done only in gnulib contexts.
72437         * lib/glob_.h: New file, containing only the glob things needed for
72438         gnulib.
72439         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
72440         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
72441         (glob, globfree, glob_pattern_p): Now defined simply in terms of
72442         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
72443         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
72444         and to respect the namespace rules better.
72445
72446 2005-09-08  Simon Josefsson  <jas@extundo.com>
72447
72448         * modules/socklen: New file.
72449
72450 2005-09-08  Simon Josefsson  <jas@extundo.com>
72451
72452         * m4/socklen.m4: New file.
72453
72454 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         * modules/utimens (Files): Add m4/utimbuf.m4, since
72457         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
72458         Reported by Sergey Poznyakoff.
72459
72460 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
72463         definitions, since that's the preferred style in glibc.
72464         Fix a minor spacing issue, and update copyright notice to match
72465         glibc's.
72466
72467 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
72470
72471 2005-09-06  Simon Josefsson  <jas@extundo.com>
72472
72473         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
72474         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
72475
72476 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72477
72478         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
72479         warning.
72480
72481 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * config/srclist.txt: Add glibc bug 1302.
72484
72485 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
72486
72487         Change bitset word type from unsigned int to unsigned long int,
72488         as this has better performance on typical 64-bit hosts.
72489         Port bitset code to hosts with unusual word sizes.
72490         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
72491         (build_collating_symbol):
72492         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
72493         argument is a bitset.  This is merely a style issue, but it makes
72494         it clearer that an entire array is expected.
72495         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
72496         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
72497         Port to the case where bitset_word is not the same as unsigned int.
72498         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72499         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
72500         Likewise.
72501         * lib/regexec.c (check_dst_limits_calc_pos_1,
72502         check_subexp_matching_top):
72503         (build_trtable, group_nodes_into_DFAstates):
72504         Likewise.
72505         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
72506         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
72507         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
72508         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
72509         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
72510         * lib/regcomp.c (optimize_subexps, lower_subexp):
72511         Work even if bitset_word has holes in its bitwise representation.
72512         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
72513         * lib/regexec.c (check_dst_limits_calc_pos_1,
72514         check_subexp_matching_top):
72515         Likewise.
72516         * lib/regex_internal.c (re_string_reconstruct):
72517         Don't assume UCHAR_MAX == 255.
72518         * lib/regex_internal.h (bitset_set_all): Likewise.
72519         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
72520         All uses changed.
72521         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
72522         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
72523         All uses changed.
72524         (BITSET_WORD_MAX): New macro.
72525         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
72526         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
72527         (bitset_empty, bitset_copy):
72528         Prefer sizeof (bitset) to multiplying it out ourselves.
72529         (bitset_not_merge): Remove; unused.
72530         (bitset_contain): Return bool, not unsigned int with one bit on.
72531         All callers changed.
72532         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
72533         alignment than re_node_set; do this by defining a new internal
72534         type struct dests_alloc and using it to allocate memory.
72535
72536 2005-09-05  Bruno Haible  <bruno@clisp.org>
72537
72538         * gnulib-tool (func_import): Fix comparison in handling of symbolic
72539         links.
72540
72541 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
72542
72543         * modules/size_max (Makefile.am): Add size_max.h
72544
72545 2005-09-04  Derek Price  <derek@ximbiot.com>
72546
72547         * gnulib-tool (func_import): Fix reversed $symbolic logic.
72548
72549 2005-09-03  Simon Josefsson  <jas@extundo.com>
72550
72551         * gnulib-tool: Fix typo.
72552
72553 2005-09-03  Simon Josefsson  <jas@extundo.com>
72554
72555         * config/srclist.txt: Add glibc bug 1293.
72556
72557 2005-09-03  Derek Price  <derek@ximbiot.com>
72558
72559         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
72560         From Larry Jones <lawrence.jones@ugs.com>.
72561
72562 2005-09-02  Simon Josefsson  <jas@extundo.com>
72563
72564         * modules/socklen: New file.
72565
72566 2005-09-02  Simon Josefsson  <jas@extundo.com>
72567
72568         * modules/havelib: New module.
72569
72570         * modules/gettext, modules/iconv, modules/lock, modules/readline:
72571         Use havelib.
72572
72573 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         Check for arithmetic overflow when calculating sizes, to prevent
72576         some buffer-overflow issues.  These patches are conservative, in the
72577         sense that when I couldn't determine whether an overflow was possible,
72578         I inserted a run-time check.
72579         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
72580         macros.
72581         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
72582         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
72583         (re_xnrealloc, re_x2nrealloc): New inline functions.
72584         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
72585         parse_bracket_exp):
72586         (build_equiv_class, build_charclass): Check for arithmetic overflow
72587         in size expression calculations.
72588         * lib/regex_internal.c (re_string_realloc_buffers):
72589         (build_wcs_upper_buffer, re_node_set_add_intersect):
72590         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
72591         (re_dfa_add_node, register_state): Likewise.
72592         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
72593         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
72594         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
72595         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
72596
72597 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72598
72599         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72600         m4/ulonglong.m4.  Problem reported by Martin Lambers.
72601
72602 2005-09-02  Bruno Haible  <bruno@clisp.org>
72603
72604         Support for lib vs. lib64 distinction on biarch platforms.
72605         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
72606         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
72607         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
72608
72609 2005-09-02  Bruno Haible  <bruno@clisp.org>
72610
72611         * gnulib-tool (import): In the other first-use case, provide defaults
72612         as well.
72613
72614 2005-09-02  Bruno Haible  <bruno@clisp.org>
72615
72616         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
72617         patches not yet found in the latest gettext release.
72618
72619 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72620
72621         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
72622         to avoid a collision with bits/local_lim.h in glibc.
72623         All uses changed.  Problem reported by Dmitry V. Levin in
72624         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
72625
72626         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
72627         bugs in int versus size_t comparisons.
72628         (re_string_context_at): Fix bug where the code assumed that
72629         Idx is signed.
72630
72631         Use bool where appropriate.
72632         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
72633         All callers changed.
72634         (calc_eclosure_iter): Likewise, for ROOT arg.
72635         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
72636         (build_charclass_op): Likewise, for NON_MATCH arg.
72637         * lib/regex_internal.c (re_string_allocate, re_string_construct):
72638         (re_string_construct_common): Likewise, for ICASE arg.
72639         * lib/regexec.c (re_search_2_stub, re_search_stub):
72640         Likewise, for RET_LEN arg.
72641         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
72642         (set_regs): Likewise, for FL_BACKTRACK arg.
72643         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
72644         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
72645         (calc_eclosure_iter, parse_bracket_exp):
72646         Use bool for internal variables that are booleans.
72647         * lib/regexec.c (re_search_internal, check_matching,
72648         proceed_next_node):
72649         (set_regs, build_sifted_states, sift_states_bkref):
72650         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
72651         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72652         (find_collation_sequence_value):
72653         Likewise.
72654         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
72655         (re_node_set_compare):
72656         Return bool, not int. All callers changed.
72657         * lib/regexec.c (check_halt_node_context, check_dst_limits):
72658         (build_trtable, check_node_accept): Likewise.
72659         * lib/regex_internal.h: Include stdbool.h.
72660
72661         Fix bugs uncovered when converting to bool.
72662         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
72663         failure instead of charging ahead blindly.
72664         * lib/regex_internal.c (register_state): Likewise.
72665         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72666         for freeing internal storage.
72667         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72668         bitset pieces used as boolean, to avoid undefined behavior
72669         on hosts that do int overflow checking.
72670
72671 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * config/srclist.txt: Add glibc bugs 1285-1287.
72674
72675 2005-09-01  Jim Meyering  <jim@meyering.net>
72676
72677         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72678         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72679         Require gl_STAT_MACROS, too.
72680
72681 2005-09-01  Bruno Haible  <bruno@clisp.org>
72682
72683         * gnulib-tool (import): In the first-use case, provide defaults.
72684
72685 2005-09-01  Bruno Haible  <bruno@clisp.org>
72686
72687         * gnulib-tool (func_import): Remove the .tmp files.
72688
72689 2005-09-01  Bruno Haible  <bruno@clisp.org>
72690
72691         * gnulib-tool (func_import): Fix handling of symbolic links.
72692
72693 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72696         old glibc regex code mishandles strings longer than 2**31 bytes.
72697         This patch fixes this when the regex code is used in gnulib
72698         (i.e., outside glibc).
72699
72700         This patch should not affect the use of the regex code inside
72701         glibc.  No doubt this problem also needs to be handled for glibc
72702         as well, but the result will be an incompatible change to the
72703         glibc ABI, and the old ABI will have to be supported too.  That
72704         can be the the subject for another patch.
72705
72706         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72707         governing whether the rest of this patch is active.  By default,
72708         the macro is disabled and the patch has no effect.
72709         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72710         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72711         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72712         (re_match_2, re_set_registers): Use the new types.
72713         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72714         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72715         New macros.
72716         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72717         (re_string_context_at, bin_tree_t, re_dfastate_t):
72718         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72719         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72720         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72721         (re_string_char_size_at, re_string_wchar_at):
72722         (re_string_elem_size_at):
72723         Use the new types and macros to port to 64-bit hosts.
72724         Use unsigned types for internal values, so that the code
72725         mostly works even for arrays larger than SSIZE_MAX.
72726         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72727         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72728         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72729         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72730         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72731         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72732         (calc_inveclosure, parse_dup_op, build_range_exp):
72733         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72734         (fetch_number, create_token_tree, mark_opt_subexp):
72735         Likewise.
72736         * lib/regex_internal.c (re_string_construct_common,
72737         create_ci_newstate):
72738         (create_cd_newstate, re_string_allocate, re_string_construct):
72739         (re_string_realloc_buffers, build_wcs_upper_buffer):
72740         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72741         (re_string_reconstruct, re_string_peek_byte_case):
72742         (re_string_fetch_byte_case, re_string_context_at):
72743         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72744         (re_node_set_init_copy, re_node_set_add_intersect):
72745         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72746         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72747         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72748         (re_acquire_state, re_acquire_state_context, register_state):
72749         Likewise.
72750         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72751         search_cur_bkref_entry):
72752         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72753         (re_search_internal, re_search_2_stub, re_search_stub)
72754         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72755         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72756         (update_cur_sifted_state, check_dst_limits):
72757         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72758         (check_subexp_limits, sift_states_bkref, merge_state_array):
72759         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72760         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72761         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72762         (expand_bkref_cache, check_node_accept_bytes):
72763         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72764         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72765         (acquire_init_state_context, check_halt_node_context):
72766         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72767         (sift_states_backward, clean_state_log_if_needed):
72768         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72769         (find_recover_state, transit_state_sb, transit_state_mb):
72770         (transit_state_bkref, build_trtable, match_ctx_clean):
72771         Likewise.
72772         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72773         to work around an assumption that REG_MISSING is negative.
72774
72775         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72776         (seek_collating_symbol_entry) [defined _LIBC]:
72777         (lookup_collation_sequence_value) [defined _LIBC]:
72778         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72779         Use prototypes rather than old-style function definitions.
72780         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72781         (transit_state_sb) [0]:
72782         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72783
72784         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72785         rm_eo.
72786
72787         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72788         (optimize_subexps, lower_subexp):
72789         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72790         since the signed shift might overflow.  Use 1u<<31 instead.
72791         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72792         Likewise.
72793         * lib/regexec.c (check_dst_limits_calc_pos_1,
72794         check_subexp_matching_top): Likewise.
72795
72796         * lib/regcomp.c (optimize_subexps, lower_subexp):
72797         Use CHAR_BIT rather than 8, for clarity.
72798         * lib/regexec.c (check_dst_limits_calc_pos_1):
72799         (check_subexp_matching_top): Likewise.
72800         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72801         have to worry about portability issues when shifting it left.
72802         Remove no-longer-needed test for table_size > 0.
72803         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72804         in a word, as the resulting behavior is undefined.
72805         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72806         in one case, a <= should have been an <, and in another case the
72807         whole test was missing.
72808         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72809         the standard name CHAR_BIT.
72810         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72811         this is not true on one's complement and signed-magnitude hosts.
72812
72813         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72814         next_last_offset.
72815         (struct re_dfa_t): Remove unused member states_alloc.
72816         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72817
72818 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72819
72820         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72821         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72822         and large-file glibc and in 32-bit large-file Solaris.
72823
72824 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72827         lengths fit in regoff_t; this isn't true if regoff_t is the same
72828         width as size_t.
72829         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72830         (= START + RANGE) instead of RANGE.  This avoids overflow
72831         problems when regoff_t is the same width as size_t.
72832         All callers changed.
72833         (re_search_2_stub): Check for overflow when adding the
72834         sizes of the two strings.
72835         (re_search_stub): Check for overflow when adding START
72836         to RANGE; if it occurs, substitute the extreme value.
72837
72838 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72839
72840         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72841
72842 2005-08-31  Jim Meyering  <jim@meyering.net>
72843
72844         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72845         a pointer-to-const.
72846         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72847         (register_state): Likewise.
72848         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72849         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72850         (group_nodes_into_DFAstates): Likewise.
72851
72852 2005-08-31  Jim Meyering  <jim@meyering.net>
72853
72854         * check-module: Add a FIXME comment.
72855
72856 2005-08-31  Eric Blake  <ebb9@byu.net>
72857
72858         * modules/unistd-safer (Files): Add unistd--.h.
72859         * modules/stdio-safer (Files): Add stdio--.h.
72860
72861 2005-08-31  Derek Price  <derek@ximbiot.com>
72862
72863         * lib/getdelim.c (getdelim): Return EOF on EOF.
72864         Reported by Larry Jones <lawrence.jones@ugs.com>.
72865
72866 2005-08-31  Bruno Haible  <bruno@clisp.org>
72867
72868         Avoid unnecessary diffs in the generated lib/Makefile.am.
72869         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72870         the generated files.
72871         (func_import): Don't set cmd.
72872
72873 2005-08-31  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/strstr.c: Include <stddef.h>, for NULL.
72876         * lib/strcasestr.c: Likewise.
72877         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72878
72879 2005-08-31  Bruno Haible  <bruno@clisp.org>
72880
72881         * gnulib-tool: New option --macro-prefix.
72882         (func_import): Use macro_prefix.
72883         (import): Handle option --macro-prefix.
72884
72885 2005-08-31  Bruno Haible  <bruno@clisp.org>
72886
72887         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72888         Also use new variables cached_lgpl, cached_libtool.
72889
72890 2005-08-31  Bruno Haible  <bruno@clisp.org>
72891
72892         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72893         always instantiating them.
72894
72895 2005-08-31  Bruno Haible  <bruno@clisp.org>
72896
72897         * gnulib-tool (func_import): Read the previous cached settings
72898         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72899         earlier added by gnulib but are now dropped. Warn when a gnulib file
72900         overwrites a non-gnulib file.
72901
72902 2005-08-31  Bruno Haible  <bruno@clisp.org>
72903
72904         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72905         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72906         projects that don't keep autogenerated files in CVS. Put into
72907         actioncmd only the specified modules, not the transitive closure.
72908
72909 2005-08-31  Bruno Haible  <bruno@clisp.org>
72910
72911         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72912         Create directories that shall be filled.
72913         (import): Don't look for gl_* macros in configure.ac. Recurse across
72914         all directories containing a gnulib-cache.m4 files, if meaningful.
72915
72916 2005-08-31  Bruno Haible  <bruno@clisp.org>
72917
72918         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72919         (import): Set seen_libtool when we see gl_LIBTOOL.
72920
72921 2005-08-31  Bruno Haible  <bruno@clisp.org>
72922
72923         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72924         declaration macro definitions from generated gnulib.m4.
72925
72926 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72927
72928         * lib/iconvme.h: Add prototype for iconv_alloc.
72929
72930 2005-08-29  Simon Josefsson  <jas@extundo.com>
72931
72932         * lib/iconvme.c: Fix errno.
72933
72934 2005-08-29  Bruno Haible  <bruno@clisp.org>
72935
72936         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72937         that it works when the directory contains spaces.
72938
72939 2005-08-29  Bruno Haible  <bruno@clisp.org>
72940
72941         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72942
72943 2005-08-29  Bruno Haible  <bruno@clisp.org>
72944
72945         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72946         Emit more advice.
72947
72948 2005-08-29  Bruno Haible  <bruno@clisp.org>
72949         and Stepan Kasal  <kasal@ucw.cz>
72950
72951         * check-module: If more parameters are given, check each of them
72952         separately; add more exceptions, as noted by Jim Meyering.
72953         (check_module): New procedure.
72954         (%exempt_header): Now contains all exceptions.
72955
72956 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72957
72958         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72959
72960 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72961
72962         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72963
72964 2005-08-28  Bruno Haible  <bruno@clisp.org>
72965
72966         * m4/gnulib-tool.m4: New file.
72967
72968 2005-08-27  Jim Meyering  <jim@meyering.net>
72969
72970         * modules/unistd-safer (Files): Add pipe-safer.c.
72971         * modules/fcntl-safer (Files): Add creat-safer.c.
72972
72973 2005-08-27  Jim Meyering  <jim@meyering.net>
72974
72975         * m4/stdlib-safer.m4: New file.  From coreutils.
72976         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72977         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72978         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72979         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72980         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72981
72982 2005-08-27  Jim Meyering  <jim@meyering.net>
72983
72984         * lib/fopen-safer.c: Merge minor changes from coreutils.
72985         * lib/dup-safer.c: Likewise.
72986         * lib/fd-safer.c: Likewise.
72987
72988         Merge from coreutils.
72989         * lib/stdio--.h: New file.
72990         * lib/stdlib--.h: New file.
72991         * lib/mkstemp-safer.c: New file.
72992
72993         GNU tar needs these.
72994         * lib/pipe-safer.c: New file.
72995         * lib/creat-safer.c: New file.
72996         * lib/fcntl--.h (creat): Define to creat_safer.
72997         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72998         * lib/unistd--.h (pipe): Define to pipe_safer.
72999         * lib/unistd-safer.h: Declare pipe_safer.
73000
73001 2005-08-26  Simon Josefsson  <jas@extundo.com>
73002
73003         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
73004         Haible <bruno@clisp.org>.
73005
73006 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         * lib/regex_internal.h: Remove all references to
73009         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
73010         or better.
73011         (bitset_not, bitset_merge, bitset_not_merge):
73012         (bitset_mask, re_string_allocate, re_string_construct):
73013         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
73014         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
73015         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
73016         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
73017         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73018         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73019         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
73020         (re_acquire_state_context):
73021         Remove unnecessary forward decls.
73022         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
73023         Put __attribute at function definition,
73024         now that the function decl has been removed.
73025         * lib/regex_internal.c (re_string_peek_byte_case):
73026         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
73027         Likewise.
73028
73029 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
73030
73031         * m4/regex.m4: Add AC_PREREQ(2.50).
73032         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
73033
73034 2005-08-25  Simon Josefsson  <jas@extundo.com>
73035
73036         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
73037         __fsetlocking.
73038
73039 2005-08-25  Simon Josefsson  <jas@extundo.com>
73040
73041         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
73042         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
73043         GLIBC specific code.
73044
73045 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73046
73047         Make regex safe for g++.  This fixes one real bug (an "err"
73048         that should have been "*err").  g++ problem reported by
73049         Sam Steingold.
73050         * lib/regex_internal.h (re_calloc): New macro, consistent with
73051         re_malloc etc.  All callers of calloc changed to use re_calloc.
73052         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
73053         not int.  All callers changed.
73054         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
73055         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
73056         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
73057         (find_recover_state): Change "err" to "*err"; this fixes what
73058         appears to be a real bug.
73059         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
73060         versus int.
73061
73062 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73063
73064         * modules/regex (Depends-on): Add malloc, since the code
73065         assumes that !malloc(0) means failure.
73066
73067 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73068
73069         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
73070
73071         alloca modernization/simplification for regex.
73072         * lib/regex.c: Remove portability cruft for alloca.  This no longer
73073         needs to be at the start of the file, and can be moved into
73074         regex_internal.h and simplified.
73075         * lib/regex_internal.h: Include <alloca.h>.
73076         (__libc_use_alloca) [!defined _LIBC]: New macro.
73077         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
73078         now works outside glibc.
73079
73080 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73081
73082         * config/srclist.txt: Add glibc bugs 1241, 1245.
73083
73084 2005-08-25  Jim Meyering  <jim@meyering.net>
73085
73086         * lib/open-safer.c: Include <config.h>.
73087         Otherwise, we'd lose LARGEFILE support in any file using
73088         e.g. "fcntl--.h"
73089
73090 2005-08-25  Bruno Haible  <bruno@clisp.org>
73091
73092         * m4/minmax.m4: Require autoconf 2.52.
73093         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
73094         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
73095         alternatives of translit over the alphabet.
73096         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
73097
73098 2005-08-24  Simon Josefsson  <jas@extundo.com>
73099
73100         * tests/test-getpass.c: New file.
73101
73102 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73103
73104         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
73105         for GNU regex features.
73106
73107 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73108
73109         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
73110         * lib/regex.h (regerror): Likewise.
73111
73112         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
73113         requires this.  (The code never needed it.)
73114
73115         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
73116         All uses of recently-renamed identifiers changed to use the new,
73117         POSIX-compliant names.  The code will build and run just fine
73118         without these changes, but it's better to eat our own dog food
73119         and use the standard-conforming names.
73120
73121         * lib/regex.h: Fix a multitude of POSIX name space violations.
73122         These changes have an effect only for programs that define
73123         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
73124         do not change anything for programs compiled in the normal way.
73125         Also, there is no effect on the ABI.
73126
73127         (_REGEX_SOURCE): New macro.
73128         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
73129         defined and _GNU_SOURCE is not; this fixes a name space violation.
73130
73131         Rename the following macros to obey POSIX requirements.
73132         The old names are still visible as macros if _REGEX_SOURCE is defined.
73133         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
73134         RE_BACKSLASH_ESCAPE_IN_LISTS.
73135         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
73136         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
73137         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
73138         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
73139         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
73140         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
73141         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
73142         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
73143         (REG_INTERVALS): renamed from RE_INTERVALS.
73144         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
73145         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
73146         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
73147         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
73148         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
73149         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
73150         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
73151         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
73152         RE_UNMATCHED_RIGHT_PAREN_ORD.
73153         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
73154         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
73155         (REG_DEBUG): renamed from RE_DEBUG.
73156         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
73157         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
73158         unusual, since we can't clash with the POSIX REG_ICASE.
73159         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
73160         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
73161         (REG_NO_SUB): renamed from RE_NO_SUB.
73162         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
73163         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
73164         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
73165         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
73166         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
73167         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
73168         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
73169         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
73170         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
73171         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
73172         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
73173         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
73174         RE_SYNTAX_POSIX_MINIMAL_BASIC.
73175         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
73176         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
73177         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
73178         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
73179         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
73180         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
73181         (REG_FIXED): Renamed from REGS_FIXED.
73182         (REG_NREGS): Renamed from RE_NREGS.
73183
73184         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
73185         of other REG_* macros, since POSIX says the user is allowed to
73186         #undef these macros selectively.
73187
73188         (reg_errcode_t): Update comment stating what other tables need
73189         to be consistent.
73190
73191         Rename the following enum values to obey POSIX requirements.
73192         The old names are still visible as macros.
73193         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
73194         is not defined, since GNU is supposed to be a superset of POSIX as
73195         much as possible, and since we want reg_errcode_t to be a signed
73196         type for implementation consistency.
73197         (_REG_NOERROR): Renamed from REG_NOERROR.
73198         (_REG_NOMATCH): Renamed from REG_NOMATCH.
73199         (_REG_BADPAT): Renamed from REG_BADPAT.
73200         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
73201         (_REG_ECTYPE): Renamed from REG_ECTYPE.
73202         (_REG_EESCAPE): Renamed from REG_EESCAPE.
73203         (_REG_ESUBREG): Renamed from REG_ESUBREG.
73204         (_REG_EBRACK): Renamed from REG_EBRACK.
73205         (_REG_EPAREN): Renamed from REG_EPAREN.
73206         (_REG_EBRACE): Renamed from REG_EBRACE.
73207         (_REG_BADBR): Renamed from REG_BADBR.
73208         (_REG_ERANGE): Renamed from REG_ERANGE.
73209         (_REG_ESPACE): Renamed from REG_ESPACE.
73210         (_REG_BADRPT): Renamed from REG_BADRPT.
73211         (_REG_EEND): Renamed from REG_EEND.
73212         (_REG_ESIZE): Renamed from REG_ESIZE.
73213         (_REG_ERPAREN): Renamed from REG_ERPAREN.
73214         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
73215         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
73216         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
73217         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
73218
73219         (_REG_RE_NAME, _REG_RM_NAME): New macros.
73220         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
73221         changed.  But support the old name if the new one is not defined
73222         and if _REGEX_SOURCE.
73223
73224         Change the following member names in struct re_pattern_buffer.
73225         The old names are still supported if !_REGEX_SOURCE.
73226         The new names are always supported, regardless of _REGEX_SOURCE.
73227         (re_buffer): Renamed from buffer.
73228         (re_allocated): Renamed from allocated.
73229         (re_used): Renamed from used.
73230         (re_syntax): Renamed from syntax.
73231         (re_fastmap): Renamed from fastmap.
73232         (re_translate): Renamed from translate.
73233         (re_can_be_null): Renamed from can_be_null.
73234         (re_regs_allocated): Renamed from regs_allocated.
73235         (re_fastmap_accurate): Renamed from fastmap_accurate.
73236         (re_no_sub): Renamed from no_sub.
73237         (re_not_bol): Renamed from not_bol.
73238         (re_not_eol): Renamed from not_eol.
73239         (re_newline_anchor): Renamed from newline_anchor.
73240
73241         Change the following member names in struct re_registers.
73242         The old names are still supported if !_REGEX_SOURCE.
73243         The new names are always supported, regardless of _REGEX_SOURCE.
73244         (rm_num_regs): Renamed from num_regs.
73245         (rm_start): Renamed from start.
73246         (rm_end): Renamed from end.
73247
73248         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
73249         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
73250         Prepend __ to parameter names.
73251
73252         Undo yesterday's changes.
73253
73254 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
73257         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
73258         lib/regex.c.
73259
73260 2005-08-24  Jim Meyering  <jim@meyering.net>
73261
73262         Sync from coreutils.
73263         * m4/fcntl-safer.m4: New file.
73264
73265         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
73266         and object files for this module.
73267
73268 2005-08-24  Jim Meyering  <jim@meyering.net>
73269
73270         Sync from coreutils.
73271         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
73272
73273 2005-08-24  Jim Meyering  <jim@meyering.net>
73274
73275         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
73276         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
73277
73278 2005-08-24  Jim Meyering  <jim@meyering.net>
73279
73280         * modules/fcntl-safer: New module.
73281         * modules/fts (Depends-on): Add fcntl-safer.
73282         * MODULES.html.sh (File descriptor based Input/Output):
73283         Add fcntl-safer.
73284
73285 2005-08-24  Bruno Haible  <bruno@clisp.org>
73286
73287         Support for unit test modules.
73288         * modules/README: Mention tests modules.
73289         * modules/TEMPLATE-TESTS: New file.
73290         * gnulib-tool: New options --extract-tests-module, --with-tests and
73291         --tests-base (unused for the moment).
73292         (testsbase, inctests): New variables.
73293         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
73294         (func_verify_module): Exclude TEMPLATE-TESTS.
73295         (func_verify_nontests_module, func_verify_tests_module): New functions.
73296         (func_get_dependencies): Add implicit dependency for tests modules.
73297         (func_get_tests_module): New function.
73298         (func_modules_transitive_closure): When --with-tests was specified,
73299         include the unit tests as well, unless explicitly avoided.
73300         (func_emit_lib_Makefile_am): Ignore the tests modules here.
73301         (func_emit_tests_Makefile_am): New function.
73302         (func_create_testdir): When --with-tests was specified, emit a
73303         tests/ directory.
73304         * MODULES.html.sh (Future developments): Update.
73305
73306 2005-08-24  Bruno Haible  <bruno@clisp.org>
73307
73308         * modules/tls-tests: New file.
73309         * tests/test-tls.c: New file, from GNU gettext.
73310
73311 2005-08-24  Bruno Haible  <bruno@clisp.org>
73312
73313         * modules/lock-tests: New file.
73314         * tests/test-lock.c: New file, from GNU gettext.
73315
73316 2005-08-24  Bruno Haible  <bruno@clisp.org>
73317
73318         * lib/lock.h: Add multiple inclusion guard.
73319         * lib/tls.h: Add multiple inclusion guard.
73320
73321 2005-08-24  Bruno Haible  <bruno@clisp.org>
73322
73323         * gnulib-tool: Add support for the --aux-dir option to
73324         --create-testdir, --create-megatestdir, --test, --megatest.
73325         (func_create_testdir, func_create_megatestdir): Optionally emit a
73326         AC_CONFIG_AUX_DIR directive.
73327         (create-testdir, create-megatestdir, test, megatest): Provide a
73328         default value for $auxdir.
73329
73330 2005-08-24  Bruno Haible  <bruno@clisp.org>
73331
73332         * gnulib-tool (import): Use compound statement instead of subshell
73333         where possible.
73334
73335 2005-08-24  Bruno Haible  <bruno@clisp.org>
73336
73337         * gnulib-tool (import): Change --aux-dir default to "build-aux".
73338
73339 2005-08-24  Bruno Haible  <bruno@clisp.org>
73340
73341         * gnulib-tool (func_version): Update.
73342
73343 2005-08-24  Bruno Haible  <bruno@clisp.org>
73344
73345         * gnulib-tool (func_import, func_create_testdir,
73346         func_create_megatestdir): Quote all autoconf macro arguments.
73347
73348 2005-08-24  Bruno Haible  <bruno@clisp.org>
73349
73350         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
73351         option --force, because --force causes the aclocal.m4 of each
73352         subdirectory to be newer than the corresponding config.h.in.
73353
73354 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73355
73356         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
73357         All contents moved to gl_REGEX.
73358         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
73359         assume that it does.
73360
73361 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73362
73363         * lib/regex.h (REG_NOSYS)
73364         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
73365         Define, since POSIX requires it as of 2001.
73366         (_REG_ENOSYS)
73367         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
73368         New private symbol, used to keep the enum signed in all cases.
73369         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
73370         Youngman in
73371         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
73372
73373         * lib/regex_internal.c (re_string_skip_chars, register_state):
73374         (calc_state_hash):
73375         Remove forward decls; no longer needed now that we use prototypes.
73376         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
73377         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
73378         (clean_state_log_if_needed): Likewise.
73379
73380 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73381
73382         * config/srclist.txt: Add glibc bugs 1231-1233.
73383
73384 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73385
73386         Fix problems reported by Sam Steingold in
73387         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
73388         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
73389         assumed that reg_errcode_t is a signed type, which is not
73390         necessarily true if _XOPEN_SOURCE is not defined.
73391         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
73392         since some compilers warn about it otherwise.
73393
73394 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
73397         (init_word_char, create_initial_state, duplicate_node_closure):
73398         (fetch_token, peek_token_bracket, build_range_exp):
73399         (build_collating_symbol): Remove forward decls; no longer needed
73400         now that we use prototypes.
73401
73402         * lib/regcomp.c:
73403         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
73404         (re_compile_fastmap_iter, regcomp, regerror, regfree):
73405         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
73406         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
73407         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
73408         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
73409         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73410         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73411         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73412         (build_range_exp, build_collating_symbol, parse_bracket_exp):
73413         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
73414         (build_charclass, build_charclass_op, fetch_number, create_tree):
73415         (create_token_tree, mark_opt_subexp, duplicate_tree):
73416         Use prototypes rather than old-style definitions.
73417
73418         * lib/regex_internal.c:
73419         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
73420         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
73421         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73422         (re_string_reconstruct, re_string_peek_byte_case):
73423         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
73424         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73425         (re_node_set_init_copy, re_node_set_add_intersect):
73426         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73427         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73428         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73429         (re_acquire_state, re_acquire_state_context, register_state):
73430         (create_ci_newstate, create_cd_newstate, free_state):
73431         Likewise.
73432         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
73433         re_search_2):
73434         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
73435         (re_search_internal, prune_impossible_nodes):
73436         (acquire_init_state_context, check_matching, static):
73437         (check_halt_node_context, check_halt_state_context, proceed_next_node):
73438         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
73439         (update_regs, sift_states_backward, build_sifted_states):
73440         (clean_state_log_if_needed, merge_state_array):
73441         (update_cur_sifted_state, add_epsilon_src_nodes):
73442         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
73443         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
73444         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
73445         (find_recover_state, check_subexp_matching_top, transit_state_mb):
73446         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
73447         (check_arrival, check_arrival_add_next_nodes):
73448         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73449         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73450         (check_node_accept_bytes, check_node_accept, extend_buffers):
73451         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
73452         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
73453         (sift_ctx_init):
73454         Likewise.
73455
73456         * lib/regex_internal.h:
73457         (re_string_allocate, re_string_construct, re_string_reconstruct):
73458         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
73459         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
73460         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
73461         (re_string_context_at, re_string_peek_byte_case):
73462         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
73463         is defined, since we now use prototypes always.
73464
73465         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
73466         C89 or better.  All uses removed.
73467
73468 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73469
73470         * config/srclist.txt: Add glibc bugs 1220-1227.
73471
73472 2005-08-20  Jim Meyering  <jim@meyering.net>
73473
73474         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
73475         of unused local, dfa.
73476
73477 2005-08-20  Bruno Haible  <bruno@clisp.org>
73478
73479         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
73480
73481 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73482
73483         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
73484         (re_node_set_insert_last, re_dfa_add_node):
73485         Rename local variables to avoid GCC shadowing warnings.
73486
73487 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73488
73489         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
73490         [defined lint]: Suppress bogus uninitialized-variable warnings.
73491
73492         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
73493         and let the caller return REG_ESPACE if out of space.  This
73494         removes an uninitialied-variable warning with GCC 4.0.1, and also
73495         avoids taking the address of a local variable.  All callers
73496         changed.
73497
73498 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73499
73500         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
73501         $LIBCSRC/posix/regexec.c.
73502         Add glibc bug 1217 for regcomp.c.
73503
73504 2005-08-19  Jim Meyering  <jim@meyering.net>
73505
73506         * lib/regexec.c (proceed_next_node): Redo local variables to
73507         avoid GCC shadowing warnings.
73508
73509 2005-08-18  Bruno Haible  <bruno@clisp.org>
73510
73511         * lib/strstr.c (strstr): Fix return value in multibyte case.
73512         * lib/strcasestr.c (strcasestr): Likewise.
73513
73514 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73515
73516         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
73517
73518 2005-08-17  Jim Meyering  <jim@meyering.net>
73519
73520         Make the %s format (seconds since the epoch) work for a negative
73521         number and when used with a zero-padded field width, e.g. %015s.
73522
73523         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
73524         label so that it precedes the code to set `digits'.  Otherwise,
73525         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
73526         print `00-22'.  Now, it prints `-0022', as it should.
73527
73528 2005-08-17  Bruno Haible  <bruno@clisp.org>
73529
73530         * modules/strstr (Files): Add m4/mbrtowc.m4.
73531         (Depends-on): Add mbuiter.
73532
73533 2005-08-17  Bruno Haible  <bruno@clisp.org>
73534
73535         * modules/strcasestr: New file.
73536         * MODULES.html.sh (String handling, based on ANSI C 89): Add
73537         strcasestr.
73538
73539 2005-08-17  Bruno Haible  <bruno@clisp.org>
73540
73541         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
73542
73543 2005-08-17  Bruno Haible  <bruno@clisp.org>
73544
73545         * modules/mbuiter: New file.
73546         * MODULES.html.sh (Extended multibyte and wide character utilities):
73547         Add mbuiter.
73548
73549 2005-08-17  Bruno Haible  <bruno@clisp.org>
73550
73551         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
73552         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
73553
73554 2005-08-17  Bruno Haible  <bruno@clisp.org>
73555
73556         * m4/strcasestr.m4: New file.
73557
73558 2005-08-17  Bruno Haible  <bruno@clisp.org>
73559
73560         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
73561         * lib/strstr.c: Completely rewritten, with multibyte locale support.
73562
73563 2005-08-17  Bruno Haible  <bruno@clisp.org>
73564
73565         * lib/strcasestr.h: New file.
73566         * lib/strcasestr.c: New file.
73567
73568 2005-08-17  Bruno Haible  <bruno@clisp.org>
73569
73570         * lib/strcasecmp.c: Use mbuiter.h.
73571
73572 2005-08-17  Bruno Haible  <bruno@clisp.org>
73573
73574         * lib/mbuiter.h: New file.
73575
73576 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
73579         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
73580         and gl_GETOPT are both invoked via different paths (as happens
73581         with GNU tar CVS because it uses both argp and getopt), the former
73582         wins.
73583
73584 2005-08-16  Bruno Haible  <bruno@clisp.org>
73585
73586         * modules/tls: New file.
73587         * MODULES.html.sh (Multithreading): Add tls.
73588
73589 2005-08-16  Bruno Haible  <bruno@clisp.org>
73590
73591         * modules/strnlen1: New file.
73592         * MODULES.html.sh (String handling): Add strnlen1.
73593
73594 2005-08-16  Bruno Haible  <bruno@clisp.org>
73595
73596         * modules/strcase (Files): Add m4/mbrtowc.m4.
73597         (Depends-on): Add strnlen1, mbchar.
73598
73599 2005-08-16  Bruno Haible  <bruno@clisp.org>
73600
73601         * modules/mbiter: New file.
73602         * MODULES.html.sh (Extended multibyte and wide character utilities):
73603         Add mbiter.
73604
73605 2005-08-16  Bruno Haible  <bruno@clisp.org>
73606
73607         * modules/mbfile: New file.
73608         * MODULES.html.sh (Extended multibyte and wide character utilities):
73609         Add mbfile.
73610
73611 2005-08-16  Bruno Haible  <bruno@clisp.org>
73612
73613         * modules/mbchar: New file.
73614         * MODULES.html.sh (Extended multibyte and wide character utilities):
73615         New section.
73616
73617 2005-08-16  Bruno Haible  <bruno@clisp.org>
73618
73619         * m4/tls.m4: New file, from GNU gettext.
73620
73621 2005-08-16  Bruno Haible  <bruno@clisp.org>
73622
73623         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
73624         always.
73625         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
73626
73627 2005-08-16  Bruno Haible  <bruno@clisp.org>
73628
73629         * m4/mbiter.m4: New file.
73630
73631 2005-08-16  Bruno Haible  <bruno@clisp.org>
73632
73633         * m4/mbfile.m4: New file.
73634
73635 2005-08-16  Bruno Haible  <bruno@clisp.org>
73636
73637         * m4/mbchar.m4: New file.
73638
73639 2005-08-16  Bruno Haible  <bruno@clisp.org>
73640
73641         * lib/tls.h: New file, from GNU gettext.
73642         * lib/tls.c: New file, from GNU gettext.
73643
73644 2005-08-16  Bruno Haible  <bruno@clisp.org>
73645
73646         * lib/strnlen1.h: New file.
73647         * lib/strnlen1.c: New file.
73648
73649 2005-08-16  Bruno Haible  <bruno@clisp.org>
73650
73651         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
73652         (mbi_init): Update.
73653         (mbi_avail, mbi_advance): Let the iteration end before the terminating
73654         NUL byte, not after it.
73655
73656 2005-08-16  Bruno Haible  <bruno@clisp.org>
73657
73658         * lib/strcase.h (strcasecmp): Add note in comments.
73659         * lib/strncasecmp.c: Use code from strcasecmp.c.
73660         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
73661         (strcasecmp): Work correctly in multibyte locales.
73662
73663 2005-08-16  Bruno Haible  <bruno@clisp.org>
73664
73665         * lib/mbiter.h: New file.
73666
73667 2005-08-16  Bruno Haible  <bruno@clisp.org>
73668
73669         * lib/mbfile.h: New file.
73670
73671 2005-08-16  Bruno Haible  <bruno@clisp.org>
73672
73673         * lib/mbchar.h: New file.
73674         * lib/mbchar.c: New file.
73675
73676 2005-08-16  Bruno Haible  <bruno@clisp.org>
73677
73678         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73679         the valid ones. Makes the comparison operations transitive:
73680         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73681         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73682
73683 2005-08-15  Simon Josefsson  <jas@extundo.com>
73684
73685         * modules/ssize_t (License): Change to 'unlimited'.
73686
73687         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73688
73689 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73692         Add comments for each pending glibc patch.
73693
73694 2005-08-15  Bruno Haible  <bruno@clisp.org>
73695
73696         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73697         __cplusplus is defined.
73698
73699 2005-08-14  Jim Meyering  <jim@meyering.net>
73700
73701         Sync from coreutils.
73702
73703         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73704         Use the hash-table-based cycle-detection code not just when
73705         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73706         Reported by James Youngman in
73707         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73708         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73709         FTS_TIGHT_CYCLE_CHECK.
73710         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73711         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73712         once again.
73713         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73714         * lib/fts.c (fd_safer): Remove decl.
73715         Include fcntl--.h rather than unistd-safer.h
73716         (fts_safe_changedir): Don't call fd_safer; no longer needed
73717         now that we include fcntl--.h.
73718
73719 2005-08-12  Simon Josefsson  <jas@extundo.com>
73720
73721         * modules/getndelim2: Use ssize_t module.
73722         * modules/getnline: Likewise.
73723         * modules/safe-read: Likewise.
73724         * modules/xreadlink: Likewise.
73725
73726         * modules/ssize_t: New file.
73727
73728 2005-08-12  Simon Josefsson  <jas@extundo.com>
73729
73730         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73731
73732 2005-08-12  Simon Josefsson  <jas@extundo.com>
73733
73734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73735         ssize_t.
73736
73737 2005-08-12  Simon Josefsson  <jas@extundo.com>
73738
73739         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73740         readline, getdelim and check_version.
73741         (Support for systems lacking ISO C 99: Sizes of integer types):
73742         Add size_max.
73743
73744 2005-08-12  Bruno Haible  <bruno@clisp.org>
73745
73746         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73747
73748 2005-08-11  Simon Josefsson  <jas@extundo.com>
73749
73750         * modules/readline: New file.
73751
73752         * modules/strnlen (Files): Add strnlen.h.
73753
73754 2005-08-11  Simon Josefsson  <jas@extundo.com>
73755
73756         * m4/readline.m4: New file.
73757
73758 2005-08-11  Simon Josefsson  <jas@extundo.com>
73759
73760         * lib/readline.h, readline.c: New file.
73761
73762 2005-08-11  Simon Josefsson  <jas@extundo.com>
73763
73764         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73765         gl_AVOID.
73766
73767 2005-08-11  Bruno Haible  <bruno@clisp.org>
73768
73769         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73770
73771 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73772
73773         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73774
73775 2005-08-10  Simon Josefsson  <jas@extundo.com>
73776
73777         * tests/test-iconvme.c: New file.
73778
73779 2005-08-10  Simon Josefsson  <jas@extundo.com>
73780
73781         * m4/strnlen.m4: New file.
73782
73783         * m4/strndup.m4: Don't check for strnlen declaration, done in
73784         strnlen.m4.
73785
73786 2005-08-10  Simon Josefsson  <jas@extundo.com>
73787
73788         * lib/strndup.c: Use strnlen.h.
73789
73790         * lib/strnlen.h: New file.
73791
73792 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73793
73794         * README: Typos.
73795
73796 2005-08-02  Simon Josefsson  <jas@extundo.com>
73797
73798         * modules/readline: New file.
73799
73800 2005-08-02  Simon Josefsson  <jas@extundo.com>
73801
73802         * modules/getdelim: New file.
73803
73804         * modules/getline: Rewrite, don't use getndelim2.
73805
73806 2005-08-02  Simon Josefsson  <jas@extundo.com>
73807
73808         * m4/getline.m4: Separate out getdelim stuff into separate module.
73809
73810         * m4/getdelim.m4: New file.
73811
73812 2005-08-02  Simon Josefsson  <jas@extundo.com>
73813
73814         * lib/getline.h, getline.c: Rewrite.
73815
73816         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73817
73818 2005-07-31  Bruno Haible  <bruno@clisp.org>
73819
73820         * lib/lock.h (gl_lock_initializer): New macro.
73821         (gl_lock_define_initialized): Use it.
73822         (gl_rwlock_initializer): New macro.
73823         (gl_rwlock_define_initialized): Use it.
73824         (gl_recursive_lock_initializer): New macro.
73825         (gl_recursive_lock_define_initialized): Use it.
73826
73827 2005-07-30  Karl Berry  <karl@gnu.org>
73828
73829         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73830         Report from Ben Pfaff, regarding getopt.
73831
73832 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73835         normal way.
73836         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73837         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73838         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73839         (gl_GETOPT): Use the new macros.  Most of the implementation
73840         is moved to the new macros.  This is for programs like Emacs
73841         that don't want all the functionality of gl_GETOPT.
73842
73843 2005-07-26  Bruno Haible  <bruno@clisp.org>
73844
73845         * m4/lock.m4: Update from GNU gettext.
73846
73847 2005-07-26  Bruno Haible  <bruno@clisp.org>
73848
73849         * lib/lock.h: Update from GNU gettext.
73850         * lib/lock.c: Update from GNU gettext.
73851
73852 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73855         obsolescent AC_TRY_RUN.  Include the default includes files, for
73856         'exit'.
73857
73858 2005-07-24  Bruno Haible  <bruno@clisp.org>
73859
73860         * modules/visibility: New file.
73861         * MODULES.html.sh (Misc): Add visibility.
73862
73863 2005-07-24  Bruno Haible  <bruno@clisp.org>
73864
73865         * m4/visibility.m4: New file.
73866
73867 2005-07-24  Bruno Haible  <bruno@clisp.org>
73868
73869         * doc/visibility.texi: New file.
73870
73871 2005-07-22  Bruno Haible  <bruno@clisp.org>
73872
73873         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73874         $(ALLOCA_H), redundant through BUILT_SOURCES.
73875         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73876         redundant through BUILT_SOURCES.
73877         * modules/byteswap (Makefile.am): Remove explicit dependency on
73878         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73879         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73880         $(FNMATCH_H), redundant through BUILT_SOURCES.
73881         * modules/getopt (Makefile.am): Remove explicit dependency on
73882         $(GETOPT_H), redundant through BUILT_SOURCES.
73883         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73884         redundant through BUILT_SOURCES.
73885         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73886         redundant through BUILT_SOURCES.
73887         * modules/stdbool (Makefile.am): Remove explicit dependency on
73888         $(STDBOOL_H), redundant through BUILT_SOURCES.
73889         * modules/stdint (Makefile.am): Remove explicit dependency on
73890         $(STDINT_H), redundant through BUILT_SOURCES.
73891         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73892         Remove explicit dependency on $(SYSEXITS_H).
73893         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73894
73895 2005-07-18  Simon Josefsson  <jas@extundo.com>
73896
73897         * lib/check-version.c (check_version): Accept identical versions too.
73898
73899 2005-07-18  Bruno Haible  <bruno@clisp.org>
73900
73901         * modules/lock: New file.
73902         * MODULES.html.sh (Multithreading): New section.
73903
73904 2005-07-18  Bruno Haible  <bruno@clisp.org>
73905
73906         * m4/lock.m4: New file, from GNU gettext.
73907
73908 2005-07-18  Bruno Haible  <bruno@clisp.org>
73909
73910         * lib/lock.h: New file, from GNU gettext.
73911         * lib/lock.c: New file, from GNU gettext.
73912
73913 2005-07-18  Bruno Haible  <bruno@clisp.org>
73914
73915         * lib/lock.h (gl_once_t): New type.
73916         (gl_once_define, gl_once): New macros.
73917         * lib/lock.c (fresh_once): New variable.
73918         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73919         functions.
73920
73921 2005-07-16  Simon Josefsson  <jas@extundo.com>
73922
73923         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73924         workaround, suggested by Bruno.
73925
73926 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73927
73928         * modules/xalloc (Depends-on): Add xalloc-die.
73929         * modules/xvasprintf (Depends-on): Add xalloc-die.
73930
73931 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73932
73933         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73934         with a minor change.
73935
73936 2005-07-15  Bruno Haible  <bruno@clisp.org>
73937
73938         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73939         When using lib/poll.c, define poll as rpl_poll.
73940
73941 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         * modules/argp (Depends-on): Remove unlocked-io.
73944
73945 2005-07-14  Derek Price  <derek@ximbiot.com>
73946
73947         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73948         for glob symlink bug.
73949
73950 2005-07-14  Bruno Haible  <bruno@clisp.org>
73951
73952         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73953         Instead, test for *_unlocked function declarations directly.
73954
73955 2005-07-11  Simon Josefsson  <jas@extundo.com>
73956
73957         * modules/size_max: New file.
73958
73959         * modules/xsize: Depend on size_max module for size_max.m4.
73960
73961 2005-07-11  Simon Josefsson  <jas@extundo.com>
73962
73963         * lib/size_max.h: New file.
73964
73965 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73968         copyright symbol and the year.
73969         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73970         (version_etc_va): Use parameterized copyright notice.
73971         Reword to conform to the current GNU coding standards.
73972
73973 2005-07-11  Karl Berry  <karl@gnu.org>
73974
73975         * doc/gnulib.texi (Quoting): new node.
73976         (Initial import): more info, from Patrice.
73977
73978 2005-07-11  Bruno Haible  <bruno@clisp.org>
73979
73980         * gnulib-tool (func_usage): Document option --avoid.
73981         (Command line options): Handle --avoid.
73982         (func_acceptable): New function.
73983         (func_modules_transitive_closure): Use it.
73984
73985 2005-07-11  Bruno Haible  <bruno@clisp.org>
73986
73987         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73988         Reported by Jim Meyering.
73989
73990 2005-07-10  Bruno Haible  <bruno@clisp.org>
73991
73992         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73993         Needed when size_t is smaller than 'unsigned int'.
73994         Reported by Paul Eggert.
73995
73996 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73997
73998         * modules/argp (Depends-on): Add unlocked-io
73999
74000 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74001
74002         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
74003         block of defines.
74004
74005 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74006
74007         * config/srclist.txt: Comment out regcomp.c, since we have a porting
74008         fix now.
74009
74010 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
74011         and Paul Eggert  <eggert@cs.ucla.edu>
74012
74013         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
74014         in wint_t, not wchar_t.  Remove now-unnecessary cast.
74015
74016 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74017
74018         * modules/regex (Files): Add lib/regex_internal.c,
74019         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
74020         (Depends-on): Add extensions.
74021         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
74022
74023 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74024
74025         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
74026         pathconf.
74027         * m4/same.m4 (gl_SAME): Likewise.
74028         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
74029
74030         * m4/regex.m4: Adjust to new libc regex implementation.
74031         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
74032         all the .c and .h parts of (the new) regex.
74033         Quote the m4 stuff better.
74034         Check for RE_ICASE bug of old gnulib.
74035         Check for REG_STARTEND of recent libc.
74036         Rename local variables from jm_* to gl_*.
74037         Quote operand of "test -f".
74038         Say "recent enough" version of libc, not "version 2".
74039         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
74040         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
74041         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
74042         Remove check for btowc, isascii.
74043         Require AM_LANGINFO_CODESET.
74044
74045 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74046
74047         * lib/regex.c, regex.h: Sync from libc.
74048         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
74049         * lib/regexec.c:
74050         New files, synced from libc, except that regex_internal.h
74051         currently has a small porting fix.
74052
74053 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
74056         regex_internal.c, regexec.c.
74057         Add regex_internal.h too, but as a comment, since the libc version
74058         is currently broken in gnulib mode.
74059
74060 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         Support programs like Emacs that use gnulib but not gettext.
74063         * MODULES.html.sh (Internationalization functions): Add gettext-h.
74064         * modules/gettext-h: New file.
74065         * modules/gettext (Files): Remove lib/gettext.h.
74066         (Depends-on): Add gettext-h.
74067         (Makefile.am): Remove lib_SOURCES.
74068         * modules/argmatch, modules/c-stack, modules/closeout:
74069         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
74070         * modules/execute, modules/file-type, modules/getaddrinfo:
74071         * modules/getopt, modules/human, modules/javacomp:
74072         * modules/javaexec, modules/mkdir-p, modules/obstack:
74073         * modules/openat, modules/pagealign_alloc, modules/pipe:
74074         * modules/quotearg, modules/regex, modules/rpmatch:
74075         * modules/unicodeio, modules/userspec, modules/version-etc:
74076         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
74077         * modules/xsetenv:
74078         Depend on gettext-h, not gettext.
74079
74080 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * gnulib-tool (func_import): Add support for 'public domain' license.
74083         * modules/alloca, modules/atexit, modules/memmove:
74084         Now public domain, not GPL.
74085         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
74086         * modules/realloc, modules/strerror, modules/strtod:
74087         Now LGPL, not GPL.
74088
74089 2005-07-05  Bruno Haible  <bruno@clisp.org>
74090
74091         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
74092         autoconf CVS. Needed for mingw.
74093
74094 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74095
74096         Remove the dependency of the strftime module on the tzset module.
74097         * modules/strftime (Depends-on): Remove dependency on tzset.
74098
74099 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         Remove the dependency of the strftime module on the tzset module.
74102         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
74103         gl_FUNC_TZSET_CLOBBER.
74104
74105 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74106
74107         Remove the dependency of the strftime module on the tzset module.
74108         * lib/strftime.c (my_strftime)
74109         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
74110         Copy the input structure, to work around some of the bug with
74111         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
74112         Solaris releases, you should also use the tzset module, but we won't
74113         require it as a dependency any more since we don't want LGPLed code
74114         to depend on GPLed code.
74115
74116 2005-07-02  Jim Meyering  <jim@meyering.net>
74117
74118         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
74119         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
74120         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
74121         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
74122
74123 2005-07-02  Jim Meyering  <jim@meyering.net>
74124
74125         * lib/backupfile.c (backup_args): Change a `0' to NULL.
74126
74127 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74128
74129         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
74130         declares only 'struct timespec;' (!).
74131
74132 2005-07-01  Jim Meyering  <jim@meyering.net>
74133
74134         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
74135         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
74136         * lib/save-cwd.c, tempname.c:
74137         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74138         and don't include <sys/file.h>).
74139
74140 2005-06-29  Jim Meyering  <jim@meyering.net>
74141
74142         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
74143         type name.  Use the variable name instead.
74144         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
74145         Likewise.
74146
74147 2005-06-28  Simon Josefsson  <jas@extundo.com>
74148
74149         * modules/check-version (Files): Add check-version.m4.
74150
74151 2005-06-28  Simon Josefsson  <jas@extundo.com>
74152
74153         * m4/check-version.m4: New file, suggested by Jim Meyering
74154         <jim@meyering.net>.
74155
74156 2005-06-28  Simon Josefsson  <jas@extundo.com>
74157
74158         * lib/check-version.h, lib/check-version.c: New files.
74159
74160 2005-06-28  Simon Josefsson  <jas@extundo.com>
74161
74162         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
74163         collision with global variable.  Better indentation.  Don't
74164         increment buffer pointer beyond buffer end.  Based on comments
74165         from Paul Eggert <eggert@cs.ucla.edu>.
74166
74167         * lib/base64.h: Indent.
74168
74169 2005-06-28  Simon Josefsson  <jas@extundo.com>
74170
74171         * doc/gnulib.texi (Library version handling): New section.
74172
74173 2005-06-28  Jim Meyering  <jim@meyering.net>
74174
74175         * check-module (find_included_lib_files): Hard-code another
74176         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
74177         but modules/fts-lgpl (correctly) does not list those files.
74178
74179         * modules/canonicalize (Files): Add lib/pathmax.h.
74180
74181 2005-06-25  Simon Josefsson  <jas@extundo.com>
74182
74183         * modules/check-version: New file.
74184
74185 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
74186
74187         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
74188         initializer of struct addrinfo, as an indication that we don't
74189         care how many members the structure has.
74190
74191 2005-06-24  Derek Price  <derek@ximbiot.com>
74192         and Bruno Haible  <bruno@clisp.org>
74193
74194         Remove stat module & update lstat.
74195         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
74196         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74197         * m4/stat.m4: Remove this file.
74198
74199 2005-06-24  Derek Price  <derek@ximbiot.com>
74200         and Bruno Haible  <bruno@clisp.org>
74201
74202         Remove stat module & update lstat.
74203         * lib/stat.c: Remove this file...
74204         (slash_aware_lstat): ...moving this content and its support...
74205         * lib/lstat.c (rpl_lstat): ...into here.
74206         * lib/lstat.h: New file.
74207
74208 2005-06-24  Derek Price  <derek@ximbiot.com>
74209         and Bruno Haible  <bruno@clisp.org>
74210
74211         Remove stat module & update lstat.
74212         * config/srclist.txt (libc sources): Remove stat.
74213
74214 2005-06-24  Derek Price  <derek@ximbiot.com>
74215         and Bruno Haible  <bruno@clisp.org>
74216
74217         Remove stat module & update lstat.
74218         * MODULES.html.sh (stat): Remove.
74219         * MODULES.html: Regenerated.
74220         * modules/lstat (Description): Correct function name.
74221         (Files): Add "lstat.h".
74222         (Depends-on): Remove stat, add xalloc, stat-macros.
74223         * modules/stat: Remove this file.
74224         (Include): Add "lstat.h", remove <sys/stat.h>.
74225
74226 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
74227
74228         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
74229         (ranged_convert): Don't save conversion in a temporary struct.
74230         This causes a warning with GCC 4.0.0, and anyway in the typical
74231         case it's not worth the extra 100 bytes or so of code.
74232         (ranged_convert, __mktime_internal): When calling a function via a
74233         pointer P, use P () rather than (*P) (), as we now assume C89 or
74234         better.
74235
74236 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74237
74238         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
74239         "who -r" failed to give output.  Problem reported by Tim Waugh.
74240
74241         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
74242         (xcalloc): Use it to avoid needless tests.
74243         Problem reported by Jim Meyering.
74244
74245 2005-06-20  Derek Price  <derek@ximbiot.com>
74246
74247         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
74248         unnecessary for Autoconfs > 2.59c.
74249
74250 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74251
74252         * lib/argp.h (__option_is_short): Check upper limit of
74253         __key. Isprint() requires its argument to have the value
74254         of an unsigned char or EOF.
74255
74256 2005-06-16  Jim Meyering  <jim@meyering.net>
74257
74258         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
74259         when either N or S is zero.
74260
74261 2005-06-16  Derek Price  <derek@ximbiot.com>
74262
74263         * m4/bison.m4: Declare YACC & YFLAGS precious.
74264
74265 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
74268         multibyte string or pattern, fall back on unibyte matching.
74269         Problem reported by James Youngman.
74270
74271 2005-06-08  Bruno Haible  <bruno@clisp.org>
74272
74273         * modules/csharpcomp: New file.
74274         * MODULES.html.sh (C#): Add csharpcomp.
74275
74276 2005-06-08  Bruno Haible  <bruno@clisp.org>
74277
74278         * m4/csharpcomp.m4: New file, from GNU gettext.
74279
74280 2005-06-08  Bruno Haible  <bruno@clisp.org>
74281
74282         * lib/csharpcomp.h: New file, from GNU gettext.
74283         * lib/csharpcomp.c: New file, from GNU gettext.
74284         * lib/csharpcomp.sh.in: New file, from GNU gettext.
74285
74286 2005-06-08  Bruno Haible  <bruno@clisp.org>
74287
74288         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
74289         warning on mingw.
74290
74291 2005-06-07  Derek Price  <derek@ximbiot.com>
74292
74293         Sync from CVS.
74294         * lib/glob_.h: Indent nested #ifdef.
74295
74296 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74297
74298         Sync from coreutils.
74299         Use "file name" when talking about file names, instead of "filename"
74300         or "path", as per the GNU coding standards.
74301         * lib/mkdir-p.c: Renamed from makepath.c.
74302         (make_dir_parents): Renamed from make_path.  All callers changed.
74303         * lib/mkdir-p.h: Likewise.  All includers changed.
74304         * lib/filenamecat.c: Renamed from path-concat.c.
74305         (file_name_concat): Renamed from path_concat.  All callers changed.
74306         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
74307         * lib/filenamecat.h: Likewise.  All includers changed.
74308         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
74309         in comments or local variable names.
74310         * lib/basename.c: Likewise.
74311         * lib/canonicalize.c, canonicalize.h: Likewise.
74312         * lib/dirname.c, dirname.h: Likewise.
74313         * lib/euidaccess.c: Likewise.
74314         * lib/exclude.c: Likewise
74315         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
74316         * lib/fsusage.c, fsuage.h: Likewise.
74317         * lib/fts.c, fts_.h: Likewise.
74318         * lib/getcwd.c: Likewise.
74319         * lib/getloadavg.c: Likewise.
74320         * lib/mkstemp.c: Likewise.
74321         * lib/mountlist.c, mountlist.h: Likewise.
74322         * lib/openat.c, openat.h: Likewise.
74323         * lib/readlink-stub.c: Likewise.
74324         * lib/readutmp.c, readutmp.h: Likewise.
74325         * lib/rename.c: Likewise.
74326         * lib/rmdir.c: Likewise.
74327         * lib/same.c: Likewise.
74328         * lib/savedir.c: Likewise.
74329         * lib/stripslash.c: Likewise.
74330         * lib/tempname.c: Likewise.
74331         * lib/xreadlink.c: Likewise.
74332         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
74333         All uses changed.
74334         * lib/exclude.h: Likewise.
74335
74336         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
74337         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74338         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
74339         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74340         * lib/pathmax.h: Include <limits.h> unconditionally, since other
74341         files have been getting away with it for years (MORE/BSD 4.3
74342         is extinct now).
74343         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
74344         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74345
74346         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
74347         Define to 256, not 255, as per modern POSIX.
74348
74349 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74350
74351         Sync from coreutils.
74352         Use "file name" when talking about file names, instead of "filename"
74353         or "path", as per the GNU coding standards.
74354         * MODULES.html.sh: mkdir-p renamed from makepath.
74355         filenamecat renamed from path-concat.
74356         * modules/filenamecat: Renamed from modules/path-concat.
74357         (Files): filenamecat.h and filenamecat.c renamed from
74358         path-concat.h and path-concat.c.
74359         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
74360         (Include): filenamecat.h, not path-concat.h.
74361         * modules/mkdir-p: Renamed from modules/makepath.
74362         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
74363         makepath.c.
74364         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
74365         (Include): mkdir-p.h, not makepath.h.
74366
74367 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74368
74369         Sync from coreutils.
74370         * m4/mkdir-p.m4: Renamed from makepath.m4.
74371         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
74372         Rename files from makepath.c to mkdir-p.c, and from
74373         makepath.h to mkdir-p.h.
74374         * m4/filenamecat.m4: Renamed from path-concat.m4.
74375         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
74376         Rename files from path-concat.c to filenamecat.c,
74377         and from path-concat.h to filenamecat.h.
74378         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
74379         "file name" in local variables or comments.
74380         * m4/rename.m4: Likewise.
74381
74382 2005-06-01  Bruno Haible  <bruno@clisp.org>
74383
74384         * modules/csharpexec: New file.
74385         * MODULES.html.sh (C#): New section.
74386
74387 2005-06-01  Bruno Haible  <bruno@clisp.org>
74388
74389         * m4/csharp.m4: New file, from GNU gettext.
74390         * m4/csharpexec.m4: New file, from GNU gettext.
74391
74392 2005-06-01  Bruno Haible  <bruno@clisp.org>
74393
74394         * lib/csharpexec.h: New file, from GNU gettext.
74395         * lib/csharpexec.c: New file, from GNU gettext.
74396         * lib/csharpexec.sh.in: New file, from GNU gettext.
74397
74398 2005-05-31  Derek Price  <derek@ximbiot.com>
74399             Paul Eggert  <eggert@cs.ucla.edu>
74400
74401         Sync from cvs.
74402         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74403
74404 2005-05-31  Derek Price  <derek@ximbiot.com>
74405             Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         Sync from cvs.
74408         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74409
74410 2005-05-29  Derek Price  <derek@ximbiot.com>
74411
74412         * config/srclist.txt (glob_.h, glob.c): Add these files.
74413
74414 2005-05-29  Derek Price  <derek@ximbiot.com>
74415
74416         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
74417         * modules/glob: New file.
74418         * modules/getlogin_r: Add link to POSIX spec in description.
74419
74420 2005-05-29  Derek Price  <derek@ximbiot.com>
74421             Paul Eggert  <eggert@cs.ucla.edu>
74422
74423         * m4/glob.m4: New file.
74424
74425 2005-05-29  Derek Price  <derek@ximbiot.com>
74426             Paul Eggert  <eggert@cs.ucla.edu>
74427
74428         * lib/glob_.h, lib/glob.c: New files.
74429
74430 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74431
74432         * modules/fts (Files): Remove m4/inttypes-pri.m4.
74433         * modules/fts-lgpl (Depends-on): Remove gettext.
74434
74435 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
74438         and don't require gt_INTTYPES_PRI.
74439
74440 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
74443
74444         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
74445         the configuration hassle isn't worth it.
74446         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
74447         (LONGEST_MODIFIER, PRIuMAX): Remove.
74448
74449 2005-05-27  Bruno Haible  <bruno@clisp.org>
74450
74451         * lib/getlogin_r.h: Remove second include of <stddef.h>.
74452
74453 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
74456         _POSIX_PTHREAD_SEMANTICS for Solaris.
74457
74458 2005-05-25  Derek Price  <derek@ximbiot.com>
74459
74460         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
74461
74462 2005-05-25  Derek Price  <derek@ximbiot.com>
74463             Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * modules/getlogin_r, m4/getlogin_r.m4: New files.
74466         * lib/getlogin_r.c, getlogin_r.h: New files.
74467
74468 2005-05-25  Bruno Haible  <bruno@clisp.org>
74469             Derek Price  <derek@ximbiot.com>
74470
74471         * lib/getlogin_r.h: Simplify API documentation.
74472
74473 2005-05-23  Derek Price  <derek@ximbiot.com>
74474
74475         * modules/minmax (Files): Add m4/minmax.m4.
74476         (configure.ac): Add gl_MINMAX.
74477
74478 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74479
74480         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
74481         so that unistd-safer.h (GPL'ed code) need not be included.
74482
74483 2005-05-22  Bruno Haible  <bruno@clisp.org>
74484
74485         * m4/minmax.m4: New file.
74486         Based on a patch by Derek Price <derek@ximbiot.com>.
74487
74488 2005-05-22  Bruno Haible  <bruno@clisp.org>
74489
74490         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
74491         (INT64_MIN): Fix definition.
74492         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
74493
74494         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
74495         NEED_SIGNED_INT_TYPES.
74496
74497         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
74498         HAVE_SYSTEM_INTTYPES.
74499
74500 2005-05-22  Bruno Haible  <bruno@clisp.org>
74501
74502         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
74503         Also include <sys/param.h> if it defines MIN, MAX.
74504         Based on a patch by Derek Price <derek@ximbiot.com>.
74505
74506 2005-05-21  Jim Meyering  <jim@meyering.net>
74507
74508         * modules/fts (Files): Add m4/inttypes-pri.m4.
74509         (Depends-on): Add lstat and remove gettext.  Alphabetize.
74510
74511 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74512
74513         New fts module.
74514         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
74515         (setup_dir, free_dir): New functions.
74516         (enter_dir, leave_dir): Define trivial
74517         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
74518         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
74519         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
74520         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
74521         Move to fts-cycle.c.
74522         (fts_open): Use setup_dir.
74523         (fts_close): Use free_dir.
74524         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
74525         This adds a label and some gotos, but the alternatives were messier.
74526         Check for memory allocation failure when entering a dir.
74527         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
74528         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
74529         (FTS): New member fts_cycle, that is a union that contains the
74530         old active_dir_ht and cycle_state.  All uses changed to mention
74531         fts_cycle.ht and fts_cycle.state.
74532         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
74533         fts.c, with the following changes:
74534         (setup_dir, free_dir): New functions.
74535         (enter_dir): Now returns bool.  Return true if successful, false
74536         if memory exhausted.  All callers changed.
74537         Do not bother partly cleaning up on
74538         memory allocation failure; that is free_dir's job.
74539         However, free ad if hash_insert fails, to avoid memory leak.
74540         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
74541         fts->fts_options to see which union member to use.
74542
74543 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74544
74545         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
74546         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
74547
74548 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
74551
74552 2005-05-20  Jim Meyering  <jim@meyering.net>
74553
74554         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
74555         Now a macro, to pacify GCC.
74556
74557 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74558
74559         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
74560         of -1.
74561
74562 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74563
74564         * lib/chown.c (rpl_chown): Return -1 on failure.
74565
74566 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
74569         Don't check for stddef.h.
74570         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
74571         don't use its results.
74572         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
74573         since we include them unconditionally.  Don't require
74574         AM_STDBOOL_H, since stdbool is a prerequisite.
74575         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
74576         since we assume C89 or better.
74577         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
74578         as we don't use their results.
74579         Don't check for fchdir, memmove, memset, strrchr, as we use
74580         them unconditionally.
74581         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
74582         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
74583
74584 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74585
74586         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
74587         Include <stddef.h> unconditionally, since we assume C89 now.
74588         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
74589         * lib/fts.c: Include fts_.h first, to check interface.
74590         Do not include intprops.h; no longer needed.
74591         Include cycle-check.h and hash.h, since fts_.h no longer does.
74592         Remove unnecessary casts of closedir to void.
74593         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
74594         decide whether to decrement nlinks.
74595         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
74596         (FTS): Use struct hash_table * instead of Hash_table, so that
74597         we no longer need to include hash.h here.
74598
74599 2005-05-18  Jim Meyering  <jim@meyering.net>
74600
74601         * modules/dirfd (License): Change to LGPL.  Most of the code
74602         is already in the public domain.
74603
74604 2005-05-18  Jim Meyering  <jim@meyering.net>
74605
74606         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
74607         Reported by Yoann Vandoorselaere.
74608
74609 2005-05-17  Jim Meyering  <jim@meyering.net>
74610
74611         * m4/fts.m4: New file, from coreutils.
74612
74613 2005-05-17  Jim Meyering  <jim@meyering.net>
74614
74615         * lib/fts.c, lib/fts_.h: New files, from coreutils.
74616
74617 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         Sync from coreutils.
74620         * m4/unlinkdir.m4: New file.
74621
74622 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74623
74624         Sync from coreutils.
74625         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
74626         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
74627         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
74628         White space changes only.
74629         * lib/makepath.c (make_path): Port to hosts where leading "//" is
74630         special.
74631         * lib/yesno.c: Include getline.h, not ctype.h.
74632         (yesno): Don't remove leading white space; POSIX doesn't allow it.
74633         Use getline to remove arbitrary restriction on response length.
74634
74635 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         * config/srclist-update: Spell out "Street" in FSF postal
74638         mail address; this is the style the FSF seems to prefer.
74639
74640         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
74641         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
74642         this updates FSF postal mail address.
74643
74644         Sync from coreutils.
74645         * modules/unlinkdir: New file.
74646         * modules/yesno (Depends-on): Add getline.
74647         * MODULES.html.sh (File system functions): Add unlinkdir.
74648
74649 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74650
74651         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
74652         lib/strsep.h:
74653         Change the initial comment to refer to GPL, not LGPL.
74654         gnulib-tool will change it to LGPL as needed.
74655
74656         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
74657         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
74658         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
74659         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
74660         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
74661         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
74662         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
74663         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
74664         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74665         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74666         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74667         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74668         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74669         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74670         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74671         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74672         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74673         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74674         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74675         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74676         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74677         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74678         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74679         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74680         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74681         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74682         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74683         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74684         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74685         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74686         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74687         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74688         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74689         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74690         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74691         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74692         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74693         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74694         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74695         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74696         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74697         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74698         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74699         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74700         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74701         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74702         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74703         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74704         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74705         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74706         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74707         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74708         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74709         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74710         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74711         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74712         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74713         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74714         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74715         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74716         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74717         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74718         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74719         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74720         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74721         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74722         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74723         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74724         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74725         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74726         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74727         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74728         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74729         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74730         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74731         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74732         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74733         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74734         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74735         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74736         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74737         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74738         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74739         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74740         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74741         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74742         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74743         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74744         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74745         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74746         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74747         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74748         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74749         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74750         lib/yesno.c, lib/yesno.h:
74751         Update FSF postal mail address.
74752
74753 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74754
74755         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74756         tests/test-memmem.c, tests/test-stpncpy.c:
74757         Update FSF postal mail address.
74758
74759 2005-05-13  Bruno Haible  <bruno@clisp.org>
74760
74761         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74762         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74763         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74764         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74765         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74766         Add support for 64-bit integers in the MSVC compiler.
74767
74768 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74769
74770         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74771
74772 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74773
74774         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74775
74776 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * doc/getdate.texi (General date syntax): Don't say that date
74779         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74780         Problem reported by Nic Ferrier.
74781
74782 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74783
74784         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74785         specified in ai_socktype. Fix invalid ai_protocol
74786         check. ai_protocol is usually set to 0 or depending on
74787         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74788         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74789         ai_socktype / ai_protocol in the returned addrinfo structure.
74790
74791 2005-05-10  Simon Josefsson  <jas@extundo.com>
74792
74793         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74794         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74795
74796 2005-05-10  Karl Berry  <karl@gnu.org>
74797
74798         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74799         (from http://www.gnu.org/licenses).
74800         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74801         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74802         fdl.texi suffices.
74803
74804 2005-05-10  Karl Berry  <karl@gnu.org>
74805
74806         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74807         (COPYING.DOC): remove.
74808
74809         * config/srclist-update: new FSF address.
74810
74811 2005-05-10  Derek Price  <derek@ximbiot.com>
74812
74813         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74814         possible.
74815
74816 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74817             Bruno Haible  <bruno@clisp.org>
74818
74819         * modules/inet_ntop: New file.
74820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74821         inet_ntop.
74822
74823 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74824             Bruno Haible  <bruno@clisp.org>
74825
74826         * m4/inet_ntop.m4: New file.
74827
74828 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74829             Bruno Haible  <bruno@clisp.org>
74830
74831         * lib/inet_ntop.h: New file.
74832         * lib/inet_ntop.c: New file, from glibc with modifications.
74833
74834 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74835
74836         * modules/time_r (License): Change to LGPL.
74837         * modules/extensions (License): Change to LGPL.  Actually,
74838         the license is more permissive than that, but currently gnulib-tool
74839         doesn't know how to handle more-permissive licenses.
74840
74841         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74842         Problem reported by Dave Love.
74843
74844 2005-05-08  Jim Meyering  <jim@meyering.net>
74845
74846         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74847         blank.
74848
74849 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74850
74851         * modules/argmatch (Depends-on): Add stdbool.
74852         * modules/backupfile (Depends-on): Likewise.
74853         * modules/chdir-long (Depends-on): Likewise.
74854         * modules/closeout (Depends-on): Likewise.
74855         * modules/cycle-check (Depends-on): Likewise.
74856         * modules/dirname (Depends-on): Likewise.
74857         * modules/fnmatch (Depends-on): Likewise.
74858         * modules/fsusage (Depends-on): Likewise.
74859         * modules/fwriteerror (Depends-on): Likewise.
74860         * modules/getcwd (Depends-on): Likewise.
74861         * modules/getloadavg (Depends-on): Likewise.
74862         * modules/hard-locale (Depends-on): Likewise.
74863         * modules/makepath (Depends-on): Likewise.
74864         * modules/mountlist (Depends-on): Likewise.
74865         * modules/nanosleep (Depends-on): Likewise.
74866         * modules/posixtm (Depends-on): Likewise.
74867         * modules/quotearg (Depends-on): Likewise.
74868         * modules/readtokens (Depends-on): Likewise.
74869         * modules/readtokens0 (Depends-on): Likewise.
74870         * modules/readutmp (Depends-on): Likewise.
74871         * modules/save-cwd (Depends-on): Likewise.
74872         * modules/strftime (Depends-on): Likewise.
74873         * modules/userspec (Depends-on): Likewise.
74874         * modules/utimecmp (Depends-on): Likewise.
74875         * modules/xgetcwd (Depends-on): Likewise.
74876         * modules/xnanosleep (Depends-on): Likewise.
74877         * modules/xstrtod (Depends-on): Likewise.
74878         * modules/yesno (Depends-on): Likewise.
74879
74880 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74881
74882         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74883         needless checks.
74884
74885 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74886
74887         Merge from coreutils.  Among other things,
74888         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74889         * lib/fd-safer.c: New file.
74890         * lib/fcntl-safer.h, open-safer.c: Remove.
74891         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74892         * lib/dup-safer.c: Include unistd-safer.h first.
74893         Don't include errno.h.
74894         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74895         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74896         * lib/file-type.c: Rely on file-type.h change.
74897         * lib/getloadavg.c: Include unistd-safer.h.
74898         (getloadavg): Use safer open.
74899         * lib/getusershell.c: Include "stdio-safer.h".
74900         (getusershell): Use safer fopen.
74901         * lib/long-options.c (long_options): Use NULL rather than 0.
74902         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74903         'free'.
74904         * lib/modechange.c: Likewise.
74905         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74906         (MODE_DONE): New constant.
74907         (struct mode_change): Remove 'next' member.
74908         (make_node_op_equals): New function; like the old one of the
74909         same name, except it allocates an array.
74910         (mode_compile, mode_create_from_ref): Use it.
74911         (mode_compile): Allocate result as an array, not a linked list.
74912         Parse octal string ourself, so that we catch mistakes like "+0".
74913         (mode_adjust): Arg is an array, not a linked list.
74914         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74915         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74916         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74917         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74918         Remove.  This is now stat-macros.h's job.
74919         (talloc): Remove.  All callers replaced by xalloc, so that
74920         our invokers don't have to worry about reporting memory failures.
74921         (make_node_op_equals): Remove.
74922         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74923         New constants.
74924         (struct mode_change): Moved here from modechange.h.
74925         (mode_append_entry): Remove.
74926         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74927         apps to have incorrect behavior.  Use simpler algorithm for head
74928         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74929         Detect more invalid usages rather than having somewhat-random behavior.
74930         Don't insert an "a=" action, as that leads to incorrect behavior.
74931         (mode_compile, mode_create_from_ref): Return NULL on error instead
74932         of an enum, since now there's only one way to have an error.  All
74933         callers changed.
74934         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74935         at the correct time.  Simplify calculation of "+u" and its ilk.
74936         Don't mishandle "+X".
74937         (mode_free): Remove "register" and localize decls.
74938         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74939         (struct mode_change): Move to modechange.c; callers don't
74940         need to see this stuff.
74941         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74942         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74943         (mode_change, mode_adjust): Reflect the new signatures noted above.
74944         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74945         that might redefine system include files.
74946         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74947         (my_usleep): Use NULL rather than (void *) 0.
74948         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74949         Use siginterrupt to specify that system calls should be interrupted.
74950         (rpl_nanosleep): Move initialization of suspended closer to call of
74951         my_usleep.
74952         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74953         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74954         (desirable_utmp_entry): New function.
74955         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74956         using x2nrealloc, to simplify logic.
74957         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74958         size calculation.  Do not assume utmp file is a regular file.
74959         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74960         (READ_UTMP_CHECK_PIDS): New constant.
74961         * lib/save-cwd.c: Include unistd-safer.h.
74962         (save_cwd): Use fd_safer.
74963         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74964         [!_LIBC] Include "stat-macros.h" instead.
74965         * lib/unistd-safer.h (fd_safer): New decl.
74966
74967 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         * modules/getloadavg (Depends-on): Add unistd-safer.
74970         * modules/getusershell (Depends-on): Add stdio-safer.
74971         * modules/lstat (Depends-on): Remove xalloc.
74972         * modules/mkstemp (Depends-on): Add stat-macros.
74973         * modules/modechange (Depends-on): Remove xstrtol.
74974         Add stat-macros, xalloc.
74975         * modules/save-cwd (Depends-on): Add unistd-safer.
74976         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74977         * modules/unistd-safer (Files): Add lib/fd-safer.c
74978         (Makefile.am): Remove lib_SOURCES.
74979
74980         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74981         Remove fcntl-safer; unistd-safer supersedes it.
74982
74983 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74986         AC_HEADER_STAT.
74987         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74988         (gl_PREREQ_CHOWN): Remove.
74989         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74990         it.  Don't require AC_HEADER_STAT.
74991         (gl_PREREQ_LSTAT): Remove.
74992         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74993         Don't require AC_HEADER_STAT.
74994         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74995         (gl_PREREQ_RMDIR): Remove.
74996         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74997         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74998         the stat-macros module a prerequisite.
74999         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
75000         * m4/filemode.m4 (gl_FILEMODE): Likewise.
75001         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
75002         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
75003         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
75004         variable names.
75005         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
75006         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
75007         variable prefixes.
75008         * m4/fcntl-safer.m4: Remove.
75009         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
75010         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
75011         Invoke gl_PREREQ_FD_SAFER.
75012         (gl_PREREQ_FD_SAFER): New macro.
75013         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
75014         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
75015         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
75016         Remove duplicate call to AC_LIBOBJ(readutmp).
75017         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
75018
75019         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
75020         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
75021
75022 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75023
75024         * MODULES.html.sh (Misc): Add byteswap.
75025
75026 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75027
75028         * modules/getcwd (Depends-on): Add extensions.
75029         * modules/openat (Depends-on): Likewise.
75030
75031 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75032
75033         * modules/byteswap: New file.
75034
75035 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75036
75037         * m4/byteswap.m4: New file.
75038
75039 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75040
75041         * lib/byteswap_.h: New file.
75042
75043 2005-04-25  Karl Berry  <karl@gnu.org>
75044
75045         * m4/gettext.m4: Update from GNU gettext 0.14.4.
75046
75047 2005-04-25  Albert Chin  <china@thewrittenword.com>
75048
75049         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
75050         Toolkit C bug.
75051
75052 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
75053
75054         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
75055         (func_ln_if_changed): Remove forcibly for no error message
75056         in case file does not exist.
75057
75058 2005-04-19  Simon Josefsson  <jas@extundo.com>
75059
75060         * gnulib-tool (Options): Make --symlink mean --symbolic.
75061
75062 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
75063
75064         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
75065
75066 2005-04-16  Simon Josefsson  <jas@extundo.com>
75067
75068         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
75069
75070 2005-04-15  Simon Josefsson  <jas@extundo.com>
75071
75072         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
75073
75074 2005-04-15  Simon Josefsson  <jas@extundo.com>
75075
75076         * gnulib-tool: Rename --symlink to --symbolic.
75077
75078 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
75079
75080         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
75081         symbolic links to files instead of copying/moving.  Add --aux-dir,
75082         specifying directory relative --dir where auxiliary build tools
75083         are placed.
75084
75085 2005-04-14  Bruno Haible  <bruno@clisp.org>
75086
75087         * modules/allocsa (License): Change to LGPL.
75088         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
75089
75090 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75091
75092         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
75093         that "UTC +1 second" continues to work.  Problem reported
75094         by Dmitry V. Levin.
75095         (relunit_snumber): New rule.
75096         (relunit): Use it.
75097
75098 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         * lib/getdate.y (universal_time_zone_table): New constant.
75101         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
75102         universal_time_zone_table.
75103         (lookup_zone): Prefer universal_time_zone_table to
75104         local_time_zone_table, so that "GMT" time stamps are allowed in
75105         London during the summer.  Problem reported by Ian Abbott.
75106
75107 2005-04-12  Jim Meyering  <jim@meyering.net>
75108
75109         * lib/human.c (humblock): Set *options even when returning due to
75110         xstrtoumax conversion failure.  Thanks to a used-uninitialized
75111         warning from gcc-4.
75112
75113 2005-04-09  Jim Meyering  <jim@meyering.net>
75114
75115         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
75116         -Wuninitialized: initialize tm0.tm_year.
75117
75118 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
75119
75120         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
75121         count, since there's no maximum.  All uses changed.
75122         Add member dsts_seen.
75123         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
75124         not being INT_MAX.
75125         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
75126         Use pc_rels_seen to decide whther a date is absolute.
75127
75128         * lib/getdate.y (number): Don't overwrite year.
75129         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
75130         check.
75131
75132 2005-04-02  Simon Josefsson  <jas@extundo.com>
75133
75134         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
75135         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
75136
75137 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
75138
75139         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
75140         where no absolute path name can be longer than PATH_MAX.
75141
75142 2005-03-27  Jim Meyering  <jim@meyering.net>
75143
75144         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
75145
75146 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
75149         "one's complement" -> "ones' complement" in comment, as per Knuth.
75150         "value of type" -> "type or expression" in comment.
75151         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
75152
75153 2005-03-26  Jim Meyering  <jim@meyering.net>
75154
75155         Comment nits.
75156         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
75157         Correct typos: s/or/of/.
75158
75159 2005-03-26  Jim Meyering  <jim@meyering.net>
75160
75161         * modules/check-include-files: Move to ../ and rename to...
75162         * check-module: ...this.
75163
75164 2005-03-25  Jim Meyering  <jim@meyering.net>
75165
75166         * modules/xvasprintf (Files): Add xalloc.h.
75167
75168 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * modules/gettext (Files): config/config.rpath ->
75171         build-aux/config.rpath
75172         * modules/iconv (Files): Likewise.
75173         Problem reported by Oskar Liljeblad.
75174
75175 2005-03-23  Jim Meyering  <jim@meyering.net>
75176
75177         * modules/check-include-files: New script to check for
75178         missing dependencies, multiple includes, etc.
75179
75180         * modules/c-strtold (Depends-on): Add xalloc.
75181         * modules/c-strtod (Depends-on): Add xalloc.
75182         * modules/hash (Depends-on): Add xalloc.
75183         (Files): Remove lib/xalloc.h.
75184
75185         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
75186         * modules/userspec (Files): Add lib/inttostr.h.
75187
75188 2005-03-23  Jim Meyering  <jim@meyering.net>
75189
75190         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
75191
75192 2005-03-22  Jim Meyering  <jim@meyering.net>
75193
75194         * modules/stat-macros: New module.
75195         * modules/canonicalize, modules/euidaccess, modules/file-type,
75196         * modules/filemode, modules/lchown, modules/makepath,
75197         * modules/rmdir, modules/stat: Depend on new stat-macros module
75198         rather than listing lib/stat-macros.h manually.
75199         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
75200
75201 2005-03-22  Jim Meyering  <jim@meyering.net>
75202
75203         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
75204
75205 2005-03-22  Bruno Haible  <bruno@clisp.org>
75206
75207         * config/srclist.txt: Replace target directory 'config' with
75208         'build-aux'.
75209         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
75210         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
75211         ../build-aux/.
75212
75213 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
75214
75215         * modules/chdir-long (Depends-on): Add mempcpy.
75216
75217         * modules/acl, modules/backupfile, modules/c-strtod,
75218         modules/c-strtold, modules/canon-host, modules/canonicalize,
75219         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
75220         modules/exclude, modules/exitfail, modules/file-type,
75221         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
75222         modules/getdate, modules/getline, modules/getpagesize,
75223         modules/getpass, modules/getugroups, modules/group-member,
75224         modules/hard-locale, modules/hash, modules/human, modules/idcache,
75225         modules/inttostr, modules/long-options, modules/makepath,
75226         modules/md5, modules/memcasecmp, modules/memcoll,
75227         modules/modechange, modules/mountlist, modules/path-concat,
75228         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
75229         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
75230         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
75231         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
75232         modules/strftime, modules/strndup, modules/strverscmp,
75233         modules/timespec, modules/unlocked-io, modules/userspec,
75234         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
75235         modules/yesno:
75236         Remove lib_SOURCES line from Makefile.am section, as this is now
75237         done automatically by the corresponding Autoconf macro.
75238
75239 2005-03-21  Jim Meyering  <jim@meyering.net>
75240
75241         Changes imported from coreutils.
75242
75243         * lib/cycle-check.c: Don't include xalloc.h.
75244
75245         * lib/path-concat.c: Don't include assert.h.
75246         (path_concat): Remove assertion that would have triggered
75247         for ABASE starting with more than one slash.
75248         Reported by Andreas Schwab.
75249
75250         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
75251         properly when ABASE is an absolute file name.
75252         Correct the description of this function.
75253         Include <assert.h>.
75254         Add an assertion and a test driver.
75255         This fixes a bug introduced on 2004-07-02.
75256         Andreas Schwab reported the resulting failure of cp --parents:
75257         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
75258
75259 2005-03-21  Jim Meyering  <jim@meyering.net>
75260
75261         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
75262         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
75263
75264 2005-03-21  Jim Meyering  <jim@meyering.net>
75265         and  Paul Eggert  <eggert@cs.ucla.edu>
75266
75267         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
75268         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
75269         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
75270         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
75271         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
75272         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
75273         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
75274         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
75275         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
75276         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
75277         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
75278         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
75279         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
75280         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
75281         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
75282         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
75283         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
75284         for these modules.
75285
75286 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
75287
75288         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
75289         (which shouldn't happen), generate nothing instead of returning 0
75290         immediately, so that nstrftime (NULL, ...) doesn't return 0.
75291
75292 2005-03-16  Bruno Haible  <bruno@clisp.org>
75293
75294         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
75295         HAVE_LONGLONG_64BIT.
75296
75297 2005-03-16  Bruno Haible  <bruno@clisp.org>
75298
75299         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
75300         HAVE_LONGLONG_64BIT.
75301
75302 2005-03-16  Bruno Haible  <bruno@clisp.org>
75303
75304         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
75305         HAVE_LONGLONG_64BIT.
75306
75307 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         * lib/strftime.c (my_strftime): Prepend space to format so that we can
75310         reliably distinguish strftime failure from empty output on POSIX
75311         hosts.
75312
75313 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
75316         (iconv_string): Don't guess a size-zero buffer, as that might cause
75317         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
75318         result would be 'too large', where 'too large' is (heuristically)
75319         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
75320         overflow concerns.  This will prevent some unwanted malloc failures
75321         when the inputs are very large.
75322
75323 2005-03-15  Karl Berry  <karl@gnu.org>
75324
75325         * config/srclist.txt (config.rpath): from gettext.
75326         * config/config.rpath: update.
75327
75328 2005-03-15  Bruno Haible  <bruno@clisp.org>
75329
75330         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
75331         to 'negate'.
75332
75333         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
75334         variable.
75335
75336         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
75337         results.
75338
75339 2005-03-14  Simon Josefsson  <jas@extundo.com>
75340
75341         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
75342         <fx@gnu.org>.
75343
75344 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
75345
75346         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
75347         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
75348         intprops.h.
75349         * lib/strtol.c: Likewise.
75350
75351 2005-03-14  Jim Meyering  <jim@meyering.net>
75352
75353         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
75354         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
75355         to be nonzero so that we (and caller) can detect the difference
75356         between a valid zero-length expansion and an error return, even
75357         when the underlying strftime fails before writing anything into
75358         that location.
75359
75360 2005-03-14  Bruno Haible  <bruno@clisp.org>
75361
75362         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
75363         Update from GNU gettext 0.14.3.
75364
75365 2005-03-10  Jim Meyering  <jim@meyering.net>
75366
75367         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
75368
75369 2005-03-10  Jim Meyering  <jim@meyering.net>
75370
75371         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
75372         so that this module works on systems without fchdir.
75373
75374 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         Factor int-properties macros into a single file, except for
75377         glibc-related files.
75378         * lib/intprops.h: New file.
75379         * lib/getloadavg.c: Include it instead of limits.h.
75380         (INT_STRLEN_BOUND): Remove.
75381         * lib/human.c: Include intprops.h.
75382         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
75383         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
75384         302/1000.
75385         * lib/inttostr.h: Include intprops.h instead of limits.h.
75386         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
75387         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
75388         for consistency with intprops.h.
75389         (time_t_is_integer, twos_complement_arithmetic): Use them.
75390         * lib/sig2str.h: Include <signal.h>, intprops.h.
75391         (INT_STRLEN_BOUND): Remove.
75392         * lib/strftime.c (TYPE_SIGNED): Remove.
75393         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
75394         * lib/strtol.c: Adjust comments to match intprops.h.
75395         * lib/userspec.c: Include intprops.h.
75396         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
75397         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
75398         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
75399         instead of rolling our own expressions.
75400         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
75401
75402         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
75403         instead of int.
75404         (my_strftime): Do not mishandle years close to INT_MAX, by doing
75405         the right thing even if adding 1900 would overflow.  Similarly
75406         for tm_mon + 1 and tm_yday + 1.
75407         Make %Y always equivalent to %C%y, and similarly for %G and %g.
75408         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
75409         (DO_SIGNED_NUMBER): New macro.
75410         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75411
75412 2005-03-07  Bruno Haible  <bruno@clisp.org>
75413
75414         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
75415
75416 2005-03-07  Bruno Haible  <bruno@clisp.org>
75417
75418         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
75419
75420 2005-03-04  Derek R. Price  <derek@ximbiot.com>
75421
75422         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
75423         (func_import): Only replace files via --import when they have actually
75424         changed.
75425
75426 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75427
75428         * m4/mmap-anon.m4: New file.
75429         * m4/pagealign_alloc.m4: New file.
75430
75431 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75432             Bruno Haible  <bruno@clisp.org>
75433
75434         * modules/pagealign_alloc: New file.
75435         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
75436
75437 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75438             Bruno Haible  <bruno@clisp.org>
75439
75440         * lib/pagealign_alloc.h: New file.
75441         * lib/pagealign_alloc.c: New file.
75442
75443 2005-03-03  Bruno Haible  <bruno@clisp.org>
75444
75445         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
75446         Use an all-permissive copyright notice, recommended by RMS.
75447
75448 2005-03-02  Bruno Haible  <bruno@clisp.org>
75449
75450         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
75451         of AIX, the replacement has to be done only after <string.h> is
75452         included, therefore not in config.h. stpncpy.h does the replacement,
75453         and stpncpy.c uses it.
75454
75455 2005-03-02  Bruno Haible  <bruno@clisp.org>
75456
75457         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
75458         stpncpy.c uses it.
75459
75460 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75461
75462         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
75463         The workaround isn't strictly needed for POSIX conformance, and
75464         it's too much of a pain to configure and maintain.  We'll ask
75465         people to fix their kernels instead.
75466         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
75467         (NANOSLEEP_BUG_WORKAROUND): Remove.
75468         (xnanosleep): Remove the workaround.
75469
75470 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75471
75472         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
75473         Reported by Derek Price.
75474         (Include): Add "timespec.h".
75475
75476         * modules/xnanosleep (Depends-on): Remove gethrxtime.
75477
75478 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
75481         to detect nanosleep bug.
75482
75483 2005-03-01  Bruno Haible  <bruno@clisp.org>
75484
75485         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
75486
75487 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         * modules/gethrxtime: New file.
75490         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
75491         (Depends-on): Add gethrxtime.
75492         (configure.ac): Add gl_XNANOSLEEP.
75493         (Makefile.am): Remove lib_SOURCES line.
75494
75495 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
75498         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
75499
75500 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
75503         * lib/timespec.h (gettime): Return void, since it always
75504         succeeds now.  All uses changed.
75505         * lib/gettime.c (gettime): Likewise.
75506         [HAVE_NANOTIME]: Prefer nanotime.
75507         Assume gettimeofday succeeds, as POSIX requires.
75508         Assime time () succeeds, since other code already does.
75509         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
75510         (timespec_subtract): Remove.
75511         (NANOSLEEP_BUG_WORKAROUND): New constant.
75512         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
75513         things considerably.  Use it only on GNU/Linux hosts, since the
75514         workaround shouldn't be needed elsewhere.
75515
75516 2005-02-24  Bruno Haible  <bruno@clisp.org>
75517
75518         * modules/gettext (Files): Add m4/glibc2.m4.
75519
75520 2005-02-24  Bruno Haible  <bruno@clisp.org>
75521
75522         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
75523         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
75524         * m4/progtest.m4:
75525         Update from GNU gettext 0.14.2.
75526         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
75527
75528 2005-02-24  Bruno Haible  <bruno@clisp.org>
75529
75530         * lib/localcharset.c: Update from GNU gettext 0.14.2.
75531         * lib/config.charset: Update from GNU gettext 0.14.2.
75532
75533 2005-02-24  Bruno Haible  <bruno@clisp.org>
75534
75535         * lib/gettext.h: Update from GNU gettext 0.14.2.
75536
75537 2005-02-23  Simon Josefsson  <jas@extundo.com>
75538
75539         * m4/iconvme.m4: New file.
75540
75541 2005-02-23  Jim Meyering  <jim@meyering.net>
75542
75543         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
75544         change.
75545         Thanks to Bruno Haible for catching it.
75546
75547 2005-02-22  Simon Josefsson  <jas@extundo.com>
75548
75549         * modules/iconvme: New file.
75550
75551         * MODULES.html.sh: Add iconvme.
75552
75553 2005-02-22  Simon Josefsson  <jas@extundo.com>
75554
75555         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
75556
75557 2005-02-22  Simon Josefsson  <jas@extundo.com>
75558
75559         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
75560
75561 2005-02-22  Jim Meyering  <jim@meyering.net>
75562
75563         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
75564         s/ifndef/ifdef/.
75565
75566 2005-02-20  Neil Conway  <neilc@samurai.com>
75567
75568         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
75569         returned by OSX/Darwin if the specified buffer is not large
75570         enough for the hostname.
75571
75572 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75573
75574         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
75575         pass it to _help, otherwise the latter coredumps trying to
75576         dereference state.root_argp.
75577
75578 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * modules/chdir-long (Depends-on): Add memrchr.
75581         * modules/memrchr (Files): Add lib/memrchr.h.
75582         (Include): "memrchr.h".
75583
75584 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
75587
75588 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75589
75590         * lib/memrchr.h: New file.
75591         * lib/chdir-long.c: Include it.
75592         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
75593         Don't bother including stddef.h.
75594
75595 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
75598         inclusion.
75599         Include <sys/types.h>, for dev_t.
75600         (ME_DUMMY, ME_REMOTE): Move from here....
75601         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
75602         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
75603         Dmitry V. Levin.
75604         Include mountlist.h first, to test the interface.
75605
75606 2005-01-29  Bruno Haible  <bruno@clisp.org>
75607
75608         * lib/progname.c (program_name): Initialize.
75609         Needed when linking statically on MacOS X.
75610
75611 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75612
75613         Sync from coreutils.
75614         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
75615         (Depends-on): Add c-strtod.
75616         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
75617
75618 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75619
75620         Sync from coreutils.
75621         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
75622
75623         Remove files that are specific to coreutils.
75624         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
75625
75626 2005-01-28  Bruno Haible  <bruno@clisp.org>
75627
75628         * modules/javacomp: New file.
75629         * MODULES.html.sh (Java): Add javacomp.
75630
75631 2005-01-28  Bruno Haible  <bruno@clisp.org>
75632
75633         * m4/javacomp.m4: New file, from GNU gettext.
75634
75635 2005-01-28  Bruno Haible  <bruno@clisp.org>
75636
75637         * lib/javacomp.sh.in: New file, from GNU gettext.
75638         * lib/javacomp.h: New file, from GNU gettext.
75639         * lib/javacomp.c: New file, from GNU gettext.
75640
75641 2005-01-26  Simon Josefsson  <jas@extundo.com>
75642
75643         * lib/gai_strerror.c: Use GPL in header.
75644
75645 2005-01-26  Bruno Haible  <bruno@clisp.org>
75646
75647         * modules/javaexec: New file.
75648         * MODULES.html.sh (Java): Add javaexec.
75649
75650 2005-01-26  Bruno Haible  <bruno@clisp.org>
75651
75652         * m4/javaexec.m4: New file, from GNU gettext.
75653
75654 2005-01-26  Bruno Haible  <bruno@clisp.org>
75655
75656         * lib/javaexec.sh.in: New file, from GNU gettext.
75657         * lib/javaexec.h: New file, from GNU gettext.
75658         * lib/javaexec.c: New file, from GNU gettext.
75659
75660 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75661
75662         * modules/lchown (Depends-on): Remove lchown.h
75663
75664 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75665
75666         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75667         must be defined if the header file was not found, in order
75668         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75669
75670 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75671
75672         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75673         initializers for struct pentry_state.
75674         (__argp_error): Check return value of __asprintf
75675         (__argp_failure): Translate error message
75676
75677         * lib/argp-parse.c: Removed braces around the expansion of N_()
75678
75679 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75682         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75683         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75684         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75685         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75686         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75687         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75688         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75689         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75690         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75691         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75692         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75693         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75694         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75695         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75696         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75697         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75698         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75699         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75700         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75701         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75702         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75703         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75704         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75705         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75706         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75707         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75708         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75709         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75710         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75711         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75712         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75713         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75714         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75715         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75716         Use an all-permissive copyright notice, recommended by RMS.
75717
75718 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * modules/chdir-long (Depends-on): Remove mempcpy.
75721
75722 2005-01-21  Jim Meyering  <jim@meyering.net>
75723
75724         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75725         same value as for Solaris 9.
75726
75727         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75728         component length.  This included changing the parameter to be
75729         of type `char *' rather than `char const *'.
75730         * lib/chdir-long.h (chdir_long): Update prototype.
75731
75732         * lib/openat.c (fdopendir, fstatat): New functions.
75733         * lib/openat.h: Include headers required for use of DIR and struct
75734         stat.
75735         [AT_SYMLINK_NOFOLLOW]: Define.
75736         (fdopendir, fstatat): Add prototypes.
75737
75738 2005-01-21  Bruno Haible  <bruno@clisp.org>
75739
75740         * modules/classpath: New file.
75741         * MODULES.html.sh (Java): Add classpath.
75742
75743 2005-01-21  Bruno Haible  <bruno@clisp.org>
75744
75745         * lib/classpath.h: New file, from GNU gettext.
75746         * lib/classpath.c: New file, from GNU gettext.
75747
75748 2005-01-20  Simon Josefsson  <jas@extundo.com>
75749
75750         * modules/version-etc-fsf: New file.
75751
75752 2005-01-20  Simon Josefsson  <jas@extundo.com>
75753
75754         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75755         * lib/version-etc.c: Remove version_etc_copyright.
75756         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75757         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75758
75759 2005-01-20  Simon Josefsson  <jas@extundo.com>
75760
75761         * lib/base64.h (isbase64): Add.
75762
75763         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75764         using a unsigned prototype, don't inline.
75765         (base64_decode): Use it.
75766
75767 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75768
75769         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75770         it.
75771
75772 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         * lib/save-cwd.c (save_cwd): Remove code to support the case
75775         where fchdir is missing or flaky.
75776
75777 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75778
75779         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75780
75781 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75782
75783         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75784         AC_LIBSOURCES now does this.
75785         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75786         with new ullong_max module.
75787
75788 2005-01-19  Bruno Haible  <bruno@clisp.org>
75789
75790         * modules/sh-quote: New file.
75791         * MODULES.html.sh (Executing programs): Add sh-quote.
75792
75793 2005-01-19  Bruno Haible  <bruno@clisp.org>
75794
75795         * lib/sh-quote.h: New file, from GNU gettext.
75796         * lib/sh-quote.c: New file, from GNU gettext.
75797
75798 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75799
75800         Merge from coreutils.
75801         * m4/ullong_max.m4: New file.
75802         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75803         (gl_MACROS): Assume localeconv exists.
75804
75805 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75806
75807         Merge changes from coreutils, as described below in several
75808         changelogs dated today.
75809
75810         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75811         (O_DIRECTORY): Remove; not needed here, since "." must be
75812         a directory.  All uses removed.
75813         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75814         universal on Suns, and we also need to test for IRIX.
75815         Revamp code to use 'if' rather than '#if'.
75816         Avoid unnecessary comparison of cwd->desc to 0.
75817
75818         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75819         for known valid error numbers rather than observed invalid ones.
75820
75821 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * modules/ullong_max: New file.
75824
75825         * modules/chdir-long, modules/openat: New files.
75826         * modules/save-cwd (Depends-on): Depend on chdir-long.
75827         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75828
75829 2005-01-18  Jim Meyering  <jim@meyering.net>
75830
75831         Merge from coreutils.
75832         * m4/chdir-long.m4, m4/openat.m4: New files.
75833         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75834         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75835         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75836         is sane and DOES follow symlinks.  Besides, testing 20 different
75837         systems found no broken chown implementations.
75838         Prompted by a change in rsync's copy of this macro.
75839         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75840
75841         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75842
75843         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75844         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75845         NULL-means-set-to-current-time semantics.
75846         Remove temporary file immediately, rather than waiting
75847         for configure's at-exit trap code to do it.
75848
75849 2005-01-18  Jim Meyering  <jim@meyering.net>
75850
75851         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75852
75853         * lib/utimens.c (futimens): Account for the fact that futimes
75854         can also fail with errno == ENOSYS or errno == ENOENT.
75855         Patch from Dmitry V. Levin.
75856
75857         Change the name of the robust chdir function from chdir to chdir_long.
75858         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75859         (restore_cwd): Use chdir_long, not chdir.
75860         * lib/chdir-long.c: Renamed from chdir.c.
75861         * lib/chdir-long.h: Renamed from chdir.h.
75862         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75863         Hurd.
75864
75865 2005-01-18  Bruno Haible  <bruno@clisp.org>
75866
75867         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75868         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75869         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75870         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75871         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75872         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75873         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75874         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75875         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75876         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75877         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75878         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75879         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75880         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75881         Use an all-permissive copyright notice, recommended by RMS.
75882
75883 2005-01-18  Bob Proulx  <bob@proulx.com>
75884
75885         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75886         simplify offsetof() macro construct to avoid compile failure with
75887         native HP-UX 11.0 ANSI C compiler.
75888
75889 2005-01-17  Bruno Haible  <bruno@clisp.org>
75890
75891         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75892         redundant because stpncpy.m4 takes care of it.
75893
75894 2005-01-17  Bruno Haible  <bruno@clisp.org>
75895
75896         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75897
75898 2005-01-17  Bruno Haible  <bruno@clisp.org>
75899
75900         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75901         used.
75902
75903 2005-01-17  Bruno Haible  <bruno@clisp.org>
75904
75905         * lib/fwriteerror.h (fwriteerror): Change specification to include
75906         fclose.
75907         * lib/fwriteerror.c: Include <stdbool.h>.
75908         (fwriteerror): At the end, close the file stream. Record whether
75909         stdout was already closed.
75910
75911 2005-01-17  Bruno Haible  <bruno@clisp.org>
75912
75913         * lib/execute.c (environ): Declare if needed.
75914         * lib/pipe.c (environ): Likewise.
75915         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75916
75917 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75918
75919         * modules/argp: Depend on vsnprintf
75920
75921 2005-01-10  Jim Meyering  <jim@meyering.net>
75922
75923         * modules/closeout (Depends-on): Add atexit.
75924
75925 2005-01-06  Bruno Haible  <bruno@clisp.org>
75926
75927         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75928
75929 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75932         definitions to be after all include files, to avoid collisions.
75933         Problem reported by Bob Proulx.
75934
75935 2005-01-04  Jim Meyering  <jim@meyering.net>
75936
75937         Changes imported from coreutils.
75938         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75939         as the mkstemp template, use a temporary directory and an
75940         8.3-friendly template to avoid trouble on systems like DJGPP.
75941         Reported by Juan M. Guerrero via Stepan Kasal.
75942         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75943         close. Remove the temporary directory right away, rather than waiting
75944         for configure's at-exit trap code to do it.
75945         Suggestion from Stepan Kasal.
75946
75947 2005-01-01  Simon Josefsson  <jas@extundo.com>
75948
75949         * gnulib-tool: Print #include directives when --import'ing.
75950
75951 2004-12-28  Simon Josefsson  <jas@extundo.com>
75952
75953         * tests/test-base64.c: Include required header files.  Remove
75954         unused variables.
75955
75956 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75957
75958         * modules/error (Depends-on): Remove gettext.
75959
75960 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75963         not needed.  This removes a dependency on the gettext module.
75964         [defined _LIBC]: Do not include <libintl.h>; not needed.
75965
75966 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75969         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75970
75971 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75972
75973         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75974         HAVE_DECL_STRTOLD.
75975
75976 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75977
75978         * modules/getdate (Depends-on): Remove alloca-opt.
75979
75980 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75983
75984 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * lib/argp-parse.c: Include <stddef.h>.
75987         (alignof, alignto): New macros.
75988         (parser_init): Don't assume that void * is aligned sufficiently
75989         for struct option.
75990
75991         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75992         need to extend the stack.
75993         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75994         large.
75995
75996 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75997
75998         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75999
76000 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
76003         (2004-10-24) change.  Apparently this was a false alarm.
76004
76005         * modules/getdate: Depend on alloca-opt, not alloca.
76006
76007 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76008
76009         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
76010         Remove now-obsolete comment about AIX.
76011         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
76012         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
76013         (YYMAXDEPTH): New macro.
76014
76015 2004-12-18  Simon Josefsson  <jas@extundo.com>
76016
76017         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
76018
76019 2004-12-18  Bruno Haible  <bruno@clisp.org>
76020
76021         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
76022
76023 2004-12-18  Bruno Haible  <bruno@clisp.org>
76024
76025         * lib/fatal-signal.c (fatal_signals): Make non-const.
76026         (init_fatal_signals): New function.
76027         (uninstall_handlers, install_handlers): Ignore signals that were set to
76028         SIG_IGN.
76029         (at_fatal_signal): Call init_fatal_signals.
76030         (init_fatal_signal_set): Likewise. Ignore signals that were set to
76031         SIG_IGN.
76032         Reported by Paul Eggert.
76033
76034 2004-12-18  Bruno Haible  <bruno@clisp.org>
76035
76036         * doc/alloca.texi: New file.
76037         * doc/alloca-opt.texi: New file.
76038
76039 2004-12-17  Jim Meyering  <jim@meyering.net>
76040
76041         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
76042         Otherwise, install-sh could exit with improper exit status when
76043         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
76044
76045 2004-12-16  Simon Josefsson  <jas@extundo.com>
76046
76047         * tests/test-base64.c: Add license.
76048
76049 2004-12-15  Stepan Kasal  <address@hidden>
76050
76051         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
76052
76053 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         * modules/getcwd (Files): Add m4/d-ino.m4.
76056         Suggested by Mark D. Baushke.
76057
76058 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         * lib/getdate.y (textint): New member "negative".
76061         (time_zone_hhmm): New function.
76062         Expect 14 shift-reduce conflicts, not 13.
76063         (o_colon_minutes): New rule.
76064         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
76065         (yylex): Set the "negative" member of signed numbers.
76066
76067 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         * doc/getdate.texi (Time of day items, Time zone items):
76070         Describe new formats +00:00, UTC+00:00.
76071
76072 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76073
76074         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
76075         spurious "-l"s.  Problem reported by Stepan Kasal.
76076
76077 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
76078
76079         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
76080         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
76081
76082 2004-12-04  Simon Josefsson  <jas@extundo.com>
76083
76084         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
76085         Vandoorselaere <yoann@prelude-ids.org>.
76086
76087 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         Changes imported from coreutils.
76090         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
76091         exist.
76092         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
76093
76094 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76095
76096         Changes imported from coreutils.
76097         * lib/hard-locale.c: Assume <locale.h> exists.
76098         Include "strdup.h".
76099         (GLIBC_VERSION): New macro.
76100         (hard_locale): Assume setlocale exists.
76101         Rewrite to avoid #ifdef.
76102         Use strdup rather than malloc + strcpy.
76103         * lib/human.c: Assume <locale.h> exists.
76104         (human_readable): Assume localeconv exists.
76105
76106 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * modules/hard-locale (Depends-on): Add strdup.
76109
76110 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
76111
76112         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
76113         convert T2, not T.  (Imported from libc.)
76114
76115 2004-11-30  Simon Josefsson  <jas@extundo.com>
76116
76117         * modules/restrict (License): Change to LGPL.
76118
76119 2004-11-30  Simon Josefsson  <jas@extundo.com>
76120
76121         * m4/restrict.m4: Add copyright and copying conditions.
76122
76123 2004-11-30  Simon Josefsson  <jas@extundo.com>
76124
76125         * m4/base64.m4: New file.
76126
76127 2004-11-30  Simon Josefsson  <jas@extundo.com>
76128
76129         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
76130         base64.
76131
76132         * tests/test-base64.c: New file.
76133
76134         * modules/base64: New file.
76135
76136 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
76139         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
76140
76141         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
76142
76143 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76144
76145         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
76146         (__getcwd.c): Don't restore errno; glibc doesn't.
76147         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
76148         first, falling back to our code only if its results look suspicious.
76149         Ensure that the resulting buffer is only as large as necessary.
76150
76151         * lib/readutmp.c: Include readutmp.h first.
76152         Include <errno.h>, since readutmp.h no longer does that.
76153         * lib/readutmp.h: Don't include <errno.h>,
76154         <sys/param.h>, <time.h>; not needed to establish interface.
76155         (errno): Remove decl.
76156         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
76157         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
76158         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
76159
76160 2004-11-28  Simon Josefsson  <jas@extundo.com>
76161
76162         * lib/base64.h, base64.c: New file.
76163
76164 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76165
76166         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
76167
76168 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76169
76170         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
76171         (Depends-on): Remove pathmax, same.  Add mempcpy.
76172         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
76173         (Makefile.am): Append getcwd.h to lib_SOURCES.
76174         (Include): Add getcwd.h.
76175         (Maintainer): Change from Jim Meyering to "all, glibc",
76176         since getdate now uses intended-for-glibc code.
76177         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
76178         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
76179
76180 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76181
76182         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
76183         HP's ANSI C compiler.
76184         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
76185         Declaring int functions causes warnings on some modern systems and
76186         shouldn't be needed to compile on ancient ones.
76187         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
76188         defined.
76189
76190         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
76191         with the following changes.
76192         (__set_errno): Parenthesize properly.
76193         Include <stdbool.h>.
76194         (MIN, MAX, MATCHING_INO): New macros.
76195         (__getcwd): Define with prototype, not K&R form.
76196         Use heuristics to allocate default buffer on stack if possible.
76197         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
76198         behavior, and to avoid the PATH_MAX limit when computing
76199         ../../../../...
76200         Use MATCHING_INO to compare inode number to file.
76201         Check for arithmetic overflow in size calculations.
76202         Fix bug in reallocation of dot array that caused getcwd to fail
76203         on directories nested deeper than 75.
76204         Be more careful about saving errno on error.
76205         Do not use realloc; use only free+malloc, as this is a bit
76206         more flexible and avoids a needless copy operation.
76207         Do not inspect st_dev and st_ino for symbolic links; POSIX
76208         doesn't specify the latter.
76209         Check for closedir errors.
76210         Avoid needless casts.
76211         Use "#ifdef weak_alias" around weak_alias, to be like other
76212         glibc code.
76213         The following changes to getcwd.c have effect only when used in
76214         gnulib; they have no effect inside glibc proper.
76215         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
76216         as alloca isn't used.
76217         (alloca, __alloca): Likewise.
76218         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
76219         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76220         unconditionally, as gnulib assumes C89 or better.
76221         Do not include <sys/param.h>.
76222         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
76223         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
76224         better.
76225         (NULL) [!defined NULL]: Remove; we assume C89 or better.
76226         Include <dirent.h> in a way that is compatible with modern Autoconf.
76227         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
76228         New macros, if not already defined.
76229         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
76230         Use "_LIBC", not "defined _LIBC", for consistency.
76231         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
76232         a mempcpy module.
76233         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
76234         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
76235         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
76236         credit only to Jim Meyering and adjust the copyright dates.
76237         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
76238         <stdlib.h>, <unistd.h>, "pathmax.h".
76239         Instead, include "xgetcwd.h" (first) and "getcwd.h".
76240         (INITIAL_BUFFER_SIZE): Remove.
76241         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
76242
76243 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
76246         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
76247         Use the _ONCE methods, for efficiency.
76248         Check for fcntl.h.  In test program, include <errno.h>
76249         and <fcntl.h> if available.  Remove old K&R cruft from
76250         test program.  Check for common errors in GNU/Linux,
76251         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
76252         don't do AC_LIBOBJ, as that's getcwd.m4's job.
76253         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
76254         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
76255         name accordingly.
76256         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
76257         accommodate new getcwd.c.
76258         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
76259         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
76260         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
76261         that's all we need now.
76262
76263 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76264
76265         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
76266         argp-parse.c depends on getopt internals, that means we should
76267         always use our getopt, to be on the safe side.
76268         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
76269         order not to spoil the result of an eventual previous invocation
76270         of gl_GETOPT_SUBSTITUTE.
76271
76272 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76273
76274         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
76275         redefinition warnings. To avoid them, include the defines
76276         in `#if !defined __need_getopt ... #endif'. The only place
76277         where __getopt_argv_const is used is in definitions
76278         of getopt_long and getopt_long_only below, which are as well
76279         protected by `#ifndef __need_getopt'.
76280         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
76281         __need_getopt after including <stdio.h> and <unistd.h> These
76282         headers might have defined it.
76283
76284 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76285
76286         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
76287
76288 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76289
76290         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
76291         (futimens): New function, which uses futimes if available.
76292         (futimens, utimens): Support timespec==NULL, with same semantics
76293         as utime and utimens.
76294         * lib/utimens.h (futimens): New decl.
76295
76296 2004-11-23  Jim Meyering  <jim@meyering.net>
76297
76298         * lib/getopt_.h: Remove trailing blanks.
76299
76300 2004-11-23  Jim Meyering  <jim@meyering.net>
76301
76302         * lib/__fpending.c: Add comment.
76303
76304 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
76305
76306         * modules/canonicalize (Depends-on): Add xreadlink.
76307         Problem reported by James Youngman.
76308
76309 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76310
76311         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
76312         New macros.
76313         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
76314         optopt): Use them instead of invoking ## directly; otherwise, the
76315         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
76316
76317 2004-11-19  Bruno Haible  <bruno@clisp.org>
76318
76319         * lib/strtok_r.c: Move comments from here...
76320         * lib/strtok_r.h: ... to here.
76321
76322 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76323
76324         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
76325         implementations that mishandle size_t overflow.
76326
76327 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76328
76329         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
76330         might fail.  Problem reported by Yoann Vandoorselaere.
76331         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
76332         implementations that mishandle size_t overflow.
76333
76334 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * modules/canon-host (Depends-on): Add strdup.
76337
76338 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76339
76340         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
76341
76342 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76343
76344         * lib/canon-host.c: Include "strdup.h".
76345         (canon_host): Use getaddrinfo if available, so that IPv6 works.
76346         Use strdup instead of malloc/strcpy to duplicate strings.
76347
76348         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
76349         (human_space_before_unit): New constant.
76350         * lib/human.c (human_readable): Support it.
76351
76352         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
76353         (xgetcwd): Set errno correctly when failing.
76354         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
76355         the failure is actually due to a PATH_MAX problem.
76356
76357         Further getopt changes to make it more likely that glibc will
76358         buy the changes back.
76359         * lib/getopt.c (POSIXLY_CORRECT): New constant.
76360         (getopt): Use it, so to preserve glibc semantic
76361         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
76362         when compiling for libc.
76363         * lib/getopt_.h (__getopt_argv_const): Bring it back.
76364         (getopt_long, getopt_long_only): Use it.
76365
76366         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76367         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
76368         (getopt): Argv is now char * const *, as per standard.
76369         (_getopt_internal_r, _getopt_internal): Argv is now char **,
76370         not char *__getopt_argv_const *.
76371         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76372         _getopt_long_only_r): Likewise.
76373         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
76374         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76375         _getopt_long_r, _getopt_long_only_r): Likewise.
76376         * lib/getopt_.h (__getopt_argv_const): Remove.
76377         (getopt): Argv is now char * const *, as per standard.
76378
76379         * lib/getdate.y (tORDINAL): New token.
76380         (day, relunit): Allow it for relative times.
76381         (relative_time_table): Use tORDINAL for ordinals.
76382
76383 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
76386         Document that "second" isn't allowed as an ordinal number.
76387
76388 2004-11-16  Jim Meyering  <jim@meyering.net>
76389
76390         * modules/closeout (Depends-on): Add fpending.
76391
76392 2004-11-15  Jim Meyering  <jim@meyering.net>
76393
76394         * lib/closeout.c: Include "__fpending.h" once again.
76395         Include <stdbool.h>.
76396         (close_stdout): Don't fail just because stdout was closed initially,
76397         since some programs don't write to stdout in the normal course of
76398         operation (other than --version and --help), and we don't want this
76399         function to make e.g. `touch file >&-' fail.
76400         But do fail if it was closed and someone has tried to write to it.
76401         E.g., `printf foo >&-' must fail.
76402
76403 2004-11-13  Jim Meyering  <jim@meyering.net>
76404
76405         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
76406
76407 2004-11-12  Simon Josefsson  <jas@extundo.com>
76408
76409         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76410         small doc fix is still pending.
76411
76412 2004-11-11  Simon Josefsson  <jas@extundo.com>
76413
76414         * modules/strtok_r: New file.
76415
76416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76417         strtok_r.
76418
76419 2004-11-11  Simon Josefsson  <jas@extundo.com>
76420
76421         * m4/strtok_r.m4: New file.
76422
76423         * m4/getopt.m4: Replace opterr.
76424
76425 2004-11-11  Simon Josefsson  <jas@extundo.com>
76426
76427         * lib/strtok_r.h, strtok_r.c: New file.
76428
76429 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76430
76431         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
76432         of replacing opterr, getopt, etc.  This should handle the
76433         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
76434
76435 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
76438         we can stop lying to compilers about the constness of argv when we
76439         are compiled outside glibc.
76440         (getopt, getopt_long, getopt_long_only): Use it.
76441         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76442         _getopt_internal, getopt): Likewise.
76443         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76444         _getopt_long_only_r): Likewise.
76445         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76446         _getopt_long_r, _getopt_long_only_r): Likewise.
76447
76448         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
76449         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
76450         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
76451         the other external symbols.
76452         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
76453         declaration, since the above renaming now works around collisions.
76454
76455 2004-11-11  Jim Meyering  <jim@meyering.net>
76456
76457         * lib/linebreak.c: Remove trailing blanks.
76458         * lib/alloca_.h: Likewise.
76459         * lib/acosl.c: Likewise.
76460         * lib/euidaccess.c: Likewise.
76461         * lib/allocsa.h: Likewise.
76462
76463 2004-11-10  Simon Josefsson  <jas@extundo.com>
76464
76465         * m4/getaddrinfo.m4: New file.
76466
76467 2004-11-10  Simon Josefsson  <jas@extundo.com>
76468
76469         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
76470
76471 2004-11-10  Simon Josefsson  <jas@extundo.com>
76472
76473         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76474         getaddrinfo.
76475
76476         * modules/getaddrinfo: New file.
76477
76478 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76479
76480         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
76481
76482 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76483
76484         * lib/mktime.c (SHR): New macro, which is a portable
76485         substitute for >> that should work even on Crays.
76486         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
76487         Problem reported by Mark D. Baushke in
76488         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
76489         * lib/getdate.y (SHR): Likewise.
76490         (tm_diff): Use it.
76491         * lib/strftime.c (SHR): Likewise.
76492         (tm_diff): Use it.
76493         * lib/quotearg.c (struct quoting_options): Use unsigned int for
76494         quote_these_too, so that right shifts are well defined.  All uses
76495         changed.
76496
76497 2004-11-10  Jim Meyering  <jim@meyering.net>
76498
76499         Ensure that no close failure goes unreported.
76500         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
76501         return early when it seems there's nothing to flush.
76502         Don't include __fpending.h.
76503
76504 2004-11-10  Jim Meyering  <jim@meyering.net>
76505
76506         * modules/closeout (Depends-on): Remove fpending.
76507
76508 2004-11-10  Jim Meyering  <jim@meyering.net>
76509
76510         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
76511
76512 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76513
76514         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
76515         gl_FUNC_STRFTIME.
76516         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
76517         and AC_REQUIRE when possible, to avoid duplicate checks.
76518         Check for <wchar.h>.
76519
76520 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76521
76522         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
76523
76524 2004-11-09  Bruno Haible  <bruno@clisp.org>
76525
76526         * m4/sockpfaf.m4: New file.
76527
76528 2004-11-05  Bruno Haible  <bruno@clisp.org>
76529
76530         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
76531         Reported by Mark D. Baushke <mdb@cvshome.org>.
76532
76533 2004-11-04  Bruno Haible  <bruno@clisp.org>
76534
76535         2004-09-11  Bruno Haible  <bruno@clisp.org>
76536                 * allocsa.valgrind: New file.
76537         2004-02-06  Bruno Haible  <bruno@clisp.org>
76538                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
76539                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
76540                 Reported by Christopher Seip <chris.seip@hp.com>.
76541
76542 2004-11-04  Bruno Haible  <bruno@clisp.org>
76543
76544         * modules/allocsa (Files): Add lib/allocsa.valgrind.
76545         (Makefile.am): Distribute it.
76546
76547 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76548
76549         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
76550         with errno == ERANGE if the buffer is too small.
76551         Problem reported by Mark D. Baushke.
76552
76553 2004-11-03  Albert Chin  <china@thewrittenword.com>
76554             Paul Eggert  <eggert@cs.ucla.edu>
76555
76556         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
76557         equivalent, substitute $ac_type for equivalent type rather than
76558         blindly using uint32_t *always* which won't work if uint32_t is not
76559         available.  Define _UINT32_T to work around typedef of uint32_t if
76560         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
76561         2.5.1.
76562
76563 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * m4/jm-macros.m4: Sync from coreutils.
76566         (gl_MACROS): Check for mbrlen, for pathchk.
76567         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
76568
76569 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         * lib/xreadlink.c (MAXSIZE): New macro.
76572         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
76573         size does not exceed MAXSIZE.  Avoid cast.
76574         As suggested by Mark D. Baushke in
76575         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
76576         if readlink fails with buffer size just under MAXSIZE, try again
76577         with MAXSIZE.
76578
76579 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76580
76581         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
76582
76583 2004-11-02  Derek R. Price  <derek@ximbiot.com>
76584         and  Paul Eggert  <eggert@cs.ucla.edu>
76585
76586         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
76587         (get_date): Overparenthesize to avoid GCC warning.
76588
76589 2004-11-02  Bruno Haible  <bruno@clisp.org>
76590
76591         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
76592         returns void.
76593
76594 2004-11-02  Bruno Haible  <bruno@clisp.org>
76595
76596         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
76597         function returns void.
76598
76599 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76600
76601         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
76602         fflush_unlocked, flockfile, funlockfile, funlockfile,
76603         fputs_unlocked, putc_unlocked.
76604
76605 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76608         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
76609         already declared.
76610
76611 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76612
76613         * modules/getdate (Files): Add doc/getdate.texi.
76614         (Depends-on): Add setenv, xalloc.
76615
76616 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76617
76618         * lib/getdate.y: Add support for TZ="foo" within a date string.
76619         Fix some bugs near time_t boundaries.  Reject dates with
76620         out-of-range components, e.g., "Sept 31".
76621         Include <stdlib.h>, "setenv.h", "xalloc.h".
76622         (ISDIGIT_LOCALE): Remove; unused.
76623         Note that the TZ and time functions used here are not reentrant.
76624         (mktime_ok, get_tz): New functions.
76625         (TZBUFSIZE): New constant.
76626         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
76627         This requires that we sometimes generate our own TZ="XXX..." setting.
76628
76629 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * doc/getdate.texi: New file, from coreutils with modifications for
76632         the new TZ parsing.
76633
76634 2004-10-27  Derek R. Price  <derek@ximbiot.com>
76635
76636         * lib/mktime.c (not_equal_tm): Remove redundant check.
76637
76638 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76639
76640         * modules/regex (lib_SOURCES): Add regex.c.
76641         Reported by James Youngman in
76642         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
76643
76644 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76645
76646         * lib/getdate.y: Use Bison 1.875 features, and some minor
76647         code cleanups.  This change does not affect semantics.
76648         Don't include <stdlib.h>; no longer needed.
76649         Don't include unlocked-io.h; only the "#if TEST" code uses
76650         stdio, and performance isn't crucial there.
76651         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
76652         Bison 1.875 features as described below.
76653         All uses of "PC." replaced by "pc->".
76654         (YYSTYPE): Add a forward declaration.
76655         (yylex, yyerror): Use full prototypes in forward decls.
76656         Use "%pure-parser" rather than obsolescent "%pure_parser".
76657         Use %parse-param and %lex-param instead of obsolescent
76658         YYPARSE_PARAM and YYLEX_PARAM.
76659         (meridian_table, month_and_day_table, time_units_table,
76660         relative_time_table, time_zone_table, military_table,
76661         lookup_zone, lookup_word, get_date):
76662         Use NULL instead of 0 where appropriate.
76663         (to_hour): Avoid abort (), to avoid a dependency on
76664         stdlib.h.
76665         (yyerror, yylex): Now accepts parser_control * arg.
76666         (main) [TEST]: Use '\0' rather than 0 for char.
76667
76668 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76669
76670         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76671
76672 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76673
76674         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76675         It's now the caller's responsibility to handle the case where
76676         !HAVE_GETPAGESIZE && !defined getpagesize.
76677
76678         * lib/mktime.c (leapyear): Arg is long int, not int.
76679
76680 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76683
76684 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76687         missing.  Problem reported by James Youngman.
76688
76689 2004-10-16  Simon Josefsson  <jas@extundo.com>
76690
76691         * gnulib-tool: Fix comments.  Fix parse problem.
76692         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76693
76694 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76697         implementation of getopt_long.  Problem reported by Alexander Taler in:
76698         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76699
76700 2004-10-15  Bruno Haible  <bruno@clisp.org>
76701
76702         * gnulib-tool: Untabify. Initialize supplied_libname.
76703         (func_usage): More homogenous output.
76704         (func_modules_transitive_closure, func_modules_to_filelist,
76705         func_emit_lib_Makefile_am): New functions.
76706         (func_import): New function, extracted from big case statement. Use
76707         func_get_license, func_modules_transitive_closure,
76708         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76709         opt_lgpl. Don't use test -a, as it's not portable.
76710         (func_create_testdir): Use func_modules_transitive_closure,
76711         func_modules_to_filelist, func_emit_lib_Makefile_am.
76712
76713 2004-10-15  Bruno Haible  <bruno@clisp.org>
76714
76715         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76716
76717 2004-10-15  Bruno Haible  <bruno@clisp.org>
76718
76719         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76720         the portions belonging to each module.
76721         Suggested by Derek Robert Price <derek@ximbiot.com>.
76722
76723 2004-10-12  Simon Josefsson  <jas@extundo.com>
76724
76725         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76726         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76727         to real functions.
76728
76729 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76730
76731         * modules/vsnprintf: New file.
76732
76733 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76734
76735         * m4/vsnprintf.m4: New file.
76736
76737 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76738
76739         * lib/vsnprintf.h: New file.
76740         * lib/vsnprintf.c: New file.
76741
76742 2004-10-11  Bruno Haible  <bruno@clisp.org>
76743
76744         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76745         vsnprintf.
76746
76747 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76750
76751 2004-10-07  Bruno Haible  <bruno@clisp.org>
76752
76753         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76754         fits into the provided buffer.
76755
76756 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76757
76758         * lib/diacrit.c, diacrit.h: Add GPL notice.
76759
76760         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76761         notice.
76762         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76763         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76764         This avoids a potential constant-folding bug.
76765
76766 2004-10-05  Bruno Haible  <bruno@clisp.org>
76767
76768         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76769         for the declaration of strsep.
76770
76771 2004-10-05  Bruno Haible  <bruno@clisp.org>
76772
76773         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76774
76775 2004-10-04  Simon Josefsson  <jas@extundo.com>
76776
76777         * modules/memmem: New file.
76778         * tests/test-memmem.c: New file.
76779         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76780
76781 2004-10-04  Simon Josefsson  <jas@extundo.com>
76782
76783         * m4/memmem.m4: New file.
76784
76785 2004-10-04  Simon Josefsson  <jas@extundo.com>
76786
76787         * lib/memmem.h: New file.
76788         * lib/memmem.c: New file, taken from glibc.
76789
76790 2004-10-04  Simon Josefsson  <jas@extundo.com>
76791
76792         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76793         '#ifdef USE_UNLOCKED_IO'.
76794
76795 2004-10-04  Simon Josefsson  <jas@extundo.com>
76796
76797         * config/srclist.txt: Add memmem from glibc.
76798
76799 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76800
76801         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76802
76803         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76804         modules/exclude, modules/getdate, modules/getline,
76805         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76806         modules/getusershell, modules/linebuffer, modules/md5,
76807         modules/mountlist, modules/posixtm, modules/readtokens,
76808         modules/readutmp, modules/regex, modules/sha1,
76809         modules/version-etc, modules/yesno:
76810         Remove dependency on unlocked-io.
76811
76812 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76815
76816         * m4/unlocked-io.m4: Add copyright notice.
76817         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76818
76819 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76820
76821         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76822         * lib/xmalloc.c (xmemdup): Likewise.
76823         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76824         XFREE): Remove these long-obsolescent macros.
76825         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76826         * lib/xstrdup.c: Remove.
76827
76828         * lib/regex.c (re_comp): Cast gettext return value to char *,
76829         Problem reported by Martin Neitzel via Mark D. Baushke.
76830
76831 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76834         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76835         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76836         regex.c, sha1.c, version-etc.c, yesno.c:
76837         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76838         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76839         the includer's responsibility.
76840
76841         Sync from coreutils.
76842
76843         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76844         points to the start of a string, as the C Standard says the
76845         resulting behavior is undefined.
76846
76847         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76848         simple -> simple_backups, numbered_existing ->
76849         numbered_existing_backups, numbered -> numbered_backups
76850         to avoid shadowing problems.  All uses changed.
76851         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76852         * lib/backupfile.c (check_extension, numbered_backup):
76853         Rename locals to avoid shadowing 'basename'.
76854         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76855         once.
76856
76857         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76858         * lib/.cvsignore: Add getopt.h.
76859
76860 2004-10-04  Bruno Haible  <bruno@clisp.org>
76861
76862         * modules/README: New file.
76863         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76864         not a module.
76865
76866 2004-10-02  Jim Meyering  <jim@meyering.net>
76867
76868         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76869
76870 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76871
76872         * modules/strsep: New file.
76873
76874 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76875
76876         * m4/strsep.m4: New file.
76877
76878 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76879
76880         * lib/strsep.h: New file.
76881         * lib/strsep.c: New file.
76882
76883 2004-10-01  Simon Josefsson  <jas@extundo.com>
76884
76885         * lib/snprintf.c (snprintf): Handle size==0.
76886
76887 2004-10-01  Simon Josefsson  <jas@extundo.com>
76888             Bruno Haible  <bruno@clisp.org>
76889
76890         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76891         (snprintf): Declare 'args'.
76892
76893 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * lib/snprintf.c: Remove comments as to why each header is needed.
76896
76897 2004-10-01  Bruno Haible  <bruno@clisp.org>
76898
76899         * MODULES.html.sh: Add strsep.
76900
76901 2004-09-30  Simon Josefsson  <jas@extundo.com>
76902
76903         * modules/snprintf: New file.
76904
76905 2004-09-30  Simon Josefsson  <jas@extundo.com>
76906
76907         * m4/snprintf.m4: New file.
76908
76909 2004-09-30  Simon Josefsson  <jas@extundo.com>
76910
76911         * lib/snprintf.h, lib/snprintf.c: New files.
76912
76913 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76914
76915         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76916         (hol_entry_help): Never translate an empty string.
76917         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76918         * lib/argp.h (OPTION_NO_TRANS): New option.
76919
76920 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76921
76922         * modules/argp (Maintainer): Replace Simon Josefsson
76923         by Sergey Poznyakoff.
76924
76925 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76928         changes merged back into glibc.
76929
76930 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76933
76934 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76935
76936         * lib/xvasprintf.c: Include xalloc.h.
76937         (xvasprintf): Use xalloc_die, not xmalloc_die.
76938
76939 2004-09-29  Bruno Haible  <bruno@clisp.org>
76940
76941         * modules/alloca-opt: New file, derived from modules/alloca.
76942         * modules/allocsa: Depend on alloca-opt instead of alloca.
76943         * modules/setenv: Likewise.
76944         * modules/vasnprintf: Likewise.
76945         * MODULES.html.sh: Add alloca-opt.
76946
76947 2004-09-28  Simon Josefsson  <jas@extundo.com>
76948
76949         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76950         LGPL, and to replace license template from GPL to LGPL.
76951
76952 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76953
76954         * modules/dummy: Change license to LGPL.
76955
76956 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76957
76958         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76959
76960 2004-09-24  Simon Josefsson  <jas@extundo.com>
76961
76962         * modules/minmax (License): Change from GPL to LGPL.
76963
76964 2004-09-23  Simon Josefsson  <jas@extundo.com>
76965
76966         * gnulib-tool (--import): Typo.
76967
76968 2004-09-23  Simon Josefsson  <jas@extundo.com>
76969
76970         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76971
76972 2004-09-22  Bruno Haible  <bruno@clisp.org>
76973
76974         * modules/*: Add 'License' field.
76975         * gnulib-tool: Accept --extract-license option.
76976         (func_get_license): New function.
76977
76978 2004-09-21  Bruno Haible  <bruno@clisp.org>
76979
76980         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76981         Reported by Simon Josefsson.
76982
76983 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76984
76985         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76986         gl_AC_TYPE_LONG_LONG.
76987
76988 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76991
76992 2004-09-18  Simon Josefsson  <jas@extundo.com>
76993         and  Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76996         calls with autoreconf.  Define GL_LIB.
76997
76998 2004-09-14  Karl Berry  <karl@gnu.org>
76999
77000         * config/srclist.txt: unsync setenv.c, sigh.
77001
77002 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
77005         Problem reported by Bruno Haible in:
77006         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
77007
77008 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77009
77010         * config/srclist.txt: Comment out argp-pvh.c.
77011
77012 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
77013
77014         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
77015         in case some system header has #define'd it.  Problem reported by
77016         Soeren D. Schulze in
77017         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
77018
77019 2004-09-09  Karl Berry  <karl@gnu.org>
77020
77021         * regex.[ch]: delete from the root.  These were supposed to be
77022                 synced with emacs cvs, but this has not happened for about
77023                 a year, and anyway nothing else uses emacs regex.[ch].
77024                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
77025                 lib/regex[.ch] is untouched.
77026
77027 2004-09-09  Bruno Haible  <bruno@clisp.org>
77028
77029         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
77030
77031 2004-09-09  Bruno Haible  <bruno@clisp.org>
77032
77033         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
77034         modifications.
77035         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
77036
77037 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77038
77039         * modules/xvasprintf: New file.
77040         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
77041
77042 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77043
77044         * lib/xvasprintf.h: New file.
77045         * lib/xvasprintf.c: New file.
77046         * lib/xasprintf.c: New file.
77047
77048 2004-09-08  Bruno Haible  <bruno@clisp.org>
77049
77050         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
77051
77052 2004-09-08  Bruno Haible  <bruno@clisp.org>
77053
77054         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
77055         length is > INT_MAX.
77056         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
77057         more.
77058
77059 2004-09-08  Bruno Haible  <bruno@clisp.org>
77060
77061         * lib/stdint_.h: New file, taken from GNU clisp.
77062
77063 2004-09-08  Bruno Haible  <bruno@clisp.org>
77064             Oskar Liljeblad  <oskar@osk.mine.nu>
77065
77066         * modules/stdint: New file.
77067         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
77068
77069 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77070
77071         Import from coreutils.
77072         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
77073         strings on unbounded length.  alloca's performance benefits aren't
77074         that important here.
77075         (V_STRDUP): Remove.
77076         (parse_with_separator): New function, with most of the internals
77077         of the old parse_user_spec.  Allow user to omit both user and group,
77078         for compatibility with FreeBSD.
77079         Clone only the user name, not the entire spec.
77080         Do not set *uid, *gid unless entirely successful.
77081         Avoid memory leak in some failing cases.
77082         Fix regression for USER.GROUP reported by Dmitry V. Levin in
77083         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
77084         (parse_user_spec): Rewrite to use parse_with_separator.
77085
77086 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * modules/userspec: Don't depend on alloca.
77089
77090 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77091
77092         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
77093
77094 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
77097         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
77098         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
77099
77100 2004-08-16  Simon Josefsson  <jas@extundo.com>
77101
77102         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
77103         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
77104         Add --dry-run for --import.
77105         Let user provided command line parameters override configure.ac
77106         settings.
77107
77108 2004-08-12  Simon Josefsson  <jas@extundo.com>
77109
77110         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
77111         as discussed with Paul Eggert in threads rooted at
77112         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
77113         and
77114         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
77115         Before, the test was empty, and relied on ELIDE_CODE in source
77116         code.)
77117         (gl_PREREQ_GETOPT): New macro.
77118         (gl_GETOPT): Use them.
77119
77120 2004-08-12  Simon Josefsson  <jas@extundo.com>
77121
77122         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
77123         * lib/getopt_.h: Renamed from getopt.h.
77124
77125 2004-08-12  Simon Josefsson  <jas@extundo.com>
77126
77127         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
77128         Change default library name from libfoo to libgnu.
77129         Now, if you have a configure.ac that says:
77130                 gl_SOURCE_BASE(gl)
77131                 gl_M4_BASE(gl/m4)
77132                 gl_MODULES(error getopt etcetera)
77133                 gl_INIT
77134         you can import all you need by running:
77135                 ../gnulib/gnulib-tool --import
77136
77137         * modules/getopt (Files): Rename getopt.h to getopt_.h.
77138         (Makefile.am): Rewrite, use logic from argz.
77139         (Include): Use <getopt.h> instead of "getopt.h".
77140
77141 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77142
77143         * modules/argp (Files): Add m4/unlocked-io.m4.
77144         (Depends-on): Add extensions.
77145
77146 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77147
77148         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
77149         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
77150         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
77151         Check for program_invocation_name, program_invocation_short_name,
77152         flockfile, funlockfile, features.h, _getopt_long_only_r.
77153
77154 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77155
77156         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
77157         its complicated substitute.
77158         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
77159         and program_invocation_name.
77160         (__argp_basename) [!_LIBC]: Remove; the only use was
77161         replaced by its body.
77162         (__argp_short_program_name): Change condition from
77163         !defined __argp_short_program_name to
77164         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
77165         to match argp-namefrob.h.
77166         (__argp_failure): Don't assume strerror_r returns char *.
77167         * lib/argp-parse.c (N_): Define unconditionally.
77168         (argp_default_options): Fill out initializers with 0 to avoid
77169         gcc warnings.
77170
77171 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77172
77173         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
77174         getopt1.c.
77175
77176 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         Merge from coreutils.
77179
77180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
77181
77182         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
77183         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
77184
77185 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77186
77187         Merge from coreutils.
77188
77189         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
77190         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
77191         for Reliant Unix 5.43.
77192
77193         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
77194         (union fooround): Use uintmax_t, not long int.
77195         The rest is a merge from libc:
77196         [defined _LIBC]: Include <shlib-compat.h>.
77197         (_obstack) [defined _LIBC]: Remove after 2.3.4.
77198
77199         * lib/settime.c (settime): Recode to avoid warning with
77200         Sun Forte C 6U2.
77201
77202         * lib/strverscmp.c: Convert to UTF-8.
77203
77204 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77205
77206         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77207         m4/uintmax_t.m4.
77208
77209 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77210
77211         * modules/xalloc-die: New file.
77212         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
77213
77214         * modules/md5 (Files): Add m4/uint32_t.m4.
77215         * modules/sha1: Renamed from modules/sha.
77216         (Files):
77217         Rename lib/sha.h to lib/sha1.h.
77218         Rename lib/sha.c to lib/sha1.c.
77219         Rename m4/sha.m4 to m4/sha1.m4.
77220         (lib_SOURCES): Likewise.
77221         (configure.ac): Rename gl_SHA to gl_SHA1.
77222         (Include): sha.h -> sha1.h.
77223
77224 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
77227         * m4/sha1.m4: Renamed from sha.m4.
77228         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
77229
77230 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77231
77232         * lib/obstack.h (obstack_empty_p):
77233         Don't assume that chunk->contents is suitably aligned.
77234         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
77235         Likewise. Problem reported by Benno in
77236         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
77237
77238         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
77239         readable.  This could be improved further but it'd take some work.
77240
77241 2004-08-08  Simon Josefsson  <jas@extundo.com>
77242
77243         * modules/xgethostname (Depends-on): Remove exit and error (not
77244         used).
77245
77246         * modules/getpass-gnu: Add getpass.h.
77247         (Depends-on): Add stdbool.
77248         * modules/getpass: Add getpass.h.
77249
77250 2004-08-08  Simon Josefsson  <jas@extundo.com>
77251
77252         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
77253         Check getpass declaration.
77254
77255 2004-08-08  Simon Josefsson  <jas@extundo.com>
77256
77257         * lib/xgethostname.c: Don't include error.h (not used).
77258
77259         * lib/getpass.h: Add.
77260         * lib/getpass.c: Include getpass.h first.
77261
77262 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * lib/xalloc-die.c: New file.
77265         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
77266         All uses removed.
77267         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
77268         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
77269         xalloc-die.c.
77270         (_, N_, xalloc_die): Move to xalloc-die.c.
77271         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
77272         so that we needn't mess with xalloc_msg_memory_exhausted.
77273
77274         * lib/sha1.h: Renamed from sha.h.
77275         (SHA1_H): Renamed from _SHA_H.
77276         (sha1_ctx): Renamed from sha_ctx.
77277         (sha1_init_ctx): Renamed from sha_init_ctx.
77278         (sha1_process_block): Renamed from sha_process_block.
77279         (sha1_process_bytes): Renamed from sha_process_bytes.
77280         (sha1_finish_ctx): Renamed from sha_finish_ctx.
77281         (sha1_read_ctx): Renamed from sha_read_ctx.
77282         (sha1_stream): Renamed from sha_stream.
77283         (sha1_buffer): Renamed from sha_buffer.
77284         * lib/sha1.c: Likewise; renamed from sha.c.
77285         Do not include <sys/types.h>.
77286         Include <stddef.h> rather than <stdlib.h>.
77287
77288 2004-08-08  Bruno Haible  <bruno@clisp.org>
77289
77290         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
77291         FILESYSTEM_PREFIX_LEN.
77292         * lib/progreloc.c: Likewise.
77293         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
77294
77295 2004-08-06  Simon Josefsson  <jas@extundo.com>
77296
77297         * modules/progname (Depends-on): Don't depend on stdbool.
77298
77299 2004-08-06  Simon Josefsson  <jas@extundo.com>
77300
77301         * modules/getsubopt: New file.
77302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77303         getsubopt.
77304
77305 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         More merge from coreutils.
77308
77309         * m4/utimens.m4, m4/utimecmp.m4: New files.
77310         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
77311         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
77312         prereq.m4, sha.m4: Import changes from coreutils.
77313
77314 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         More merge from coreutils.
77317         * modules/raise, modules/readtokens0, modules/utimens:
77318         * modules/utimecmp, module/xnanosleep: New files.
77319         * modules/strftime: Add lib/strftime.h.
77320         Change include from <time.h> to "strftime.h".
77321         * modules/yesno: Add lib/yesno.h.
77322         * modules/backupfile: Remove lib/addext.c.
77323         * modules/euidaccess: Add stat-macros.h.
77324         * modules/canonicalize, modules/euidaccess,
77325         modules/filemode, modules/lchown, modules/makepath,
77326         modules/rmdir, modules/stat: Likewise.
77327
77328 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77329
77330         Merge from tar.
77331         * lib/argp-help.c (make_hol, hol_append): Don't assume that
77332         SIZE_MAX is a valid preprocessor constant.
77333         (__argp_basename): Change from "#ifndef _LIBC"
77334         to "#ifndef __argp_short_program_name", so that
77335         we don't compile these functions for tar.
77336
77337         More merges from coreutils.
77338         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
77339         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
77340         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
77341         * lib/addext.c: Remove; no longer needed.
77342         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
77343         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
77344         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
77345         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
77346         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
77347         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
77348         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
77349         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
77350         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
77351         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77352         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
77353         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
77354         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
77355         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
77356         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
77357         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
77358         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
77359         Import changes from coreutils.
77360
77361 2004-08-05  Simon Josefsson  <jas@extundo.com>
77362
77363         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
77364
77365 2004-08-05  Simon Josefsson  <jas@extundo.com>
77366
77367         * m4/getsubopt.m4: New file.
77368
77369 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77370
77371         Merge from coreutils.
77372
77373         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
77374         * m4/getcwd-path-max.m4: New files.
77375
77376         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
77377         FILESYSTEM_PREFIX_LEN ->
77378         FILE_SYSTEM_PREFIX_LEN.
77379         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
77380         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
77381         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
77382         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
77383
77384         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
77385         prerequisite modules now handle the DOS stuff.
77386         Don't check for unistd.h.
77387
77388 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77389
77390         Merge from coreutils.
77391
77392         * lib/.gdb-history: Remove; this doesn't belong here.
77393
77394         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
77395         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
77396         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
77397         * lib/getcwd.c: New files.
77398
77399         * lib/dirname.h: Include <stdbool.h>.
77400         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
77401         for consistency with POSIX terminology.  All uses changed.
77402         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
77403         (strip_trailing_slashes): Use bool for booleans.
77404         * lib/stripslash.c (strip_trailing_slashes): Likewise.
77405
77406         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
77407         sometimes returns a positive errno value even when it succeeds.
77408         (print_errno_message) [!LIBC]: Fall back on strerror if
77409         __strerror_r fails.
77410
77411         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77412         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
77413         (longest_relative_suffix): New function.
77414         (path_concat): Use it.  Assume first argument is not NULL.
77415         Port to DOS.  Omit redundant separators.
77416         Report an error instead of returning NULL.
77417         Use mempcpy instead of memcpy.
77418         (xpath_concat): Remove: not declared or used.
77419
77420         * lib/same.h: Include <stdbool.h>
77421         (same_name): Return bool, not int.
77422         * lib/same.c (same_name): Likewise.
77423         (errno): Don't declare; we assume C89 or better now.
77424
77425         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
77426         if not already defined.
77427
77428         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
77429         * lib/dup-safer.c (errno): Likewise.
77430
77431 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77432
77433         Merge from coreutils.
77434         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
77435         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
77436         * modules/path-concat: Don't depend on strdup.
77437
77438 2004-08-03  Simon Josefsson  <jas@extundo.com>
77439
77440         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
77441         * lib/progname.h: Don't include stdbool.h.
77442
77443 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77444
77445         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
77446         * MODULES.html.sh (func_all_modules): Remove fatal.
77447
77448 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
77451
77452 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77453
77454         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
77455         working.
77456
77457 2004-08-02  Simon Josefsson  <jas@extundo.com>
77458
77459         * lib/getsubopt.h: New file, with comments from Bruno Haible.
77460         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
77461         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
77462
77463 2004-08-01  Simon Josefsson  <jas@extundo.com>
77464
77465         * lib/xgetdomainname.c: Include stdlib.h, for free().
77466
77467 2004-07-19  Bruno Haible  <bruno@clisp.org>
77468
77469         * MODULES.html.sh (func_all_modules): Add dummy.
77470
77471 2004-07-16  Simon Josefsson  <jas@extundo.com>
77472
77473         * modules/dummy: New file.
77474
77475 2004-07-16  Simon Josefsson  <jas@extundo.com>
77476
77477         * lib/dummy.c: New file.
77478
77479 2004-07-16  Bruno Haible  <bruno@clisp.org>
77480
77481         * lib/backupfile.h: Add extern "C" for C++.
77482         * lib/closeout.h: Likewise.
77483         * lib/copy-file.h: Likewise.
77484         * lib/findprog.h: Likewise.
77485         * lib/full-write.h: Likewise.
77486         * lib/pathname.h: Likewise.
77487         * lib/progname.h: Likewise.
77488         * lib/stpcpy.h: Likewise.
77489         * lib/stpncpy.h: Likewise.
77490         * lib/strcase.h: Likewise.
77491         * lib/strstr.h: Likewise.
77492         * lib/xalloc.h: Likewise.
77493
77494         * lib/mbswidth.h: Add extern "C" for C++.
77495         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
77496
77497 2004-07-13  Robert Millan  <robertmh@gnu.org>
77498
77499         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
77500
77501 2004-07-09  Simon Josefsson  <jas@extundo.com>
77502
77503         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
77504         failed without this.)
77505
77506 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77507
77508         * modules/chown (Files): Add lib/fchown-stub.c, since
77509         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
77510
77511 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77512
77513         * lib/fchown-stub.c: New file.
77514
77515 2004-06-24  Jim Meyering  <jim@meyering.net>
77516
77517         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
77518
77519 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * modules/argz: Omit "#include".
77522
77523         * MODULES.html.sh (func_all_modules): Add calloc, to match
77524         2004-06-01 addition of calloc module.
77525
77526 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77527
77528         * m4/argz.m4: New file, which is autoupdated from libtool.
77529
77530 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
77533         libtool.
77534
77535 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * config/srclist-update: Don't insist on "USA." before the
77538         close-comment, as libtool omits the period and puts the */ on a
77539         separate line.
77540         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
77541         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
77542
77543 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
77544
77545         * modules/argz: New file.
77546         * MODULES.html.sh (func_all_modules): Add argz.
77547
77548 2004-06-12  Jim Meyering  <jim@meyering.net>
77549         and  Paul Eggert  <eggert@cs.ucla.edu>
77550
77551         * modules/hash (Files): Add lib/xalloc.h.
77552         * modules/pipe (Depends-on): Add wait-process.
77553         * modules/stat (Depends-on): Add xalloc.
77554         * modules/userspec (Files): Add lib/userspec.h.
77555         * modules/xstrto
77556
77557         Upgrade from gettext-0.13.
77558         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
77559         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
77560         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
77561
77562 2004-06-10  Jim Meyering  <jim@meyering.net>
77563
77564         * lib/calloc.c: New file.
77565
77566 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         * lib/getdate.y (yylex): Allow space between sign and number.
77569         Problem reported by Dan Jacobson.
77570
77571 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         Merge from coreutils CVS.
77574
77575         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
77576         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
77577         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
77578         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
77579         xstrtol.m4: Fix copyright date and/or serial number.
77580
77581         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
77582         See if we need an fchown replacement.
77583         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
77584         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
77585         and use the replacement function if we detect either defect.
77586
77587         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
77588         gl_UTIMECMP.
77589
77590 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77591         and  Jim Meyering  <jim@meyering.net>
77592
77593         Merge from coreutils CVS.
77594
77595         * lib/stat-macros.h: New file, with contents from file-type.h
77596         and coreutils' system.h.
77597         * lib/file-type.c: Include "stat-macros.h".
77598         * lib/file-type.h (file_type): Move all macro definitions to new file,
77599         stat-macros.h.
77600
77601         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
77602         Wrap old code with this conditional.
77603         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
77604         function that does not dereference symlinks.
77605         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
77606
77607         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
77608         dependency problems.
77609         (xreadlink): Accept new arg SIZE, for efficiency.
77610         All decls and uses changed.
77611         * lib/xreadlink.h: Include <stddef.h>, for size_t.
77612
77613         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
77614         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
77615
77616         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
77617         sysexits.h.
77618
77619 2004-06-01  Jim Meyering  <jim@meyering.net>
77620
77621         * m4/calloc.m4: New file.
77622
77623 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
77624
77625         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
77626         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
77627         Also, fix a typo in a diagnostic.
77628
77629 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77630
77631         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
77632         or AC_FUNC_REALLOC.
77633
77634 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77635
77636         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
77637         macros to be defined.
77638         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
77639         the allocator returns NULL because the requested size is zero.
77640
77641 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
77644         var.  Add comment explaining why libc still defines it.  This
77645         merges the following patch from glibc:
77646         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
77647
77648 2004-05-20  Andreas Schwab  <schwab@suse.de>
77649
77650         * m4/free.m4: Replace free if it not known to work, not the other
77651         way round.
77652
77653 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77654
77655         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
77656         present in glibc since revision 1.1 of this file.
77657         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
77658         obstack_alignment_mask, obstack_alloc, obstack_base,
77659         obstack_blank, obstack_blank_fast, obstack_chunk_size,
77660         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
77661         obstack_grow0, obstack_init, obstack_int_grow,
77662         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
77663         obstack_next_free, obstack_object_size, obstack_ptr_grow,
77664         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77665         nonexistent functions.
77666
77667 2004-05-18  Karl Berry  <karl@gnu.org>
77668
77669         * config/srclist.txt: break link for vasnprintf.c.
77670
77671 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77672
77673         Port obstack to the AS/400, where pointers are 16 bytes wide and
77674         you cannot cast an integer to a valid pointer.  This patch is
77675         currently waiting to be integrated into glibc; see
77676         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77677
77678         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77679         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77680         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77681         (struct obstack): temp member is now a union of a pointer and
77682         an integer, instead of an integer.  All integer uses changed.
77683         This does not affect the physical layout of struct obstack,
77684         except on hosts (like the AS/400) where the size or alignment of
77685         void * is greater than that of ptrdiff_t.
77686         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77687         __STDC__)]: Store temporary in pointer member of union, not
77688         integer member.
77689         * lib/obstack.c: Include <stddef.h>, for offsetof.
77690         (struct fooalign): Remove; it doesn't need a name.
77691         (union fooround): Change double to long double, and add void *.
77692         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77693         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77694         not a macro.  Hence the values are always int; so remove all
77695         casts-to-int in uses.
77696
77697 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77698
77699         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77700         we can get this patch merged into glibc.
77701
77702 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77703             Paul Eggert  <eggert@cs.ucla.edu>
77704
77705         * m4/argp: Depend on alloca.
77706
77707 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77708             Paul Eggert  <eggert@cs.ucla.edu>
77709
77710         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77711         freecoding.
77712
77713 2004-05-17  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77716         precision that consists of a '.' followed by an empty digit string.
77717         Patch by Tor Lillqvist <tml@iki.fi>.
77718
77719 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77720
77721         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77722         for backward compatibility with older code.  We need our own
77723         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77724         it under some other name, and our alloca.h will define it.
77725
77726 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77727             Derek Price  <derek@ximbiot.com>
77728
77729         * lib/alloca.c: Include <alloca.h>, to get our interface.
77730         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77731         include <alloca.h> first.  Use C89 prototype for alloca; this
77732         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77733         Use #elif for simplicity, since we can assume C89 now.
77734         Don't try to source the system alloca.h since it will not be found
77735         and to prevent recursively including its replacement.
77736         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77737         * lib/regex.c: Likewise.
77738
77739 2004-05-16  Derek Price  <derek@ximbiot.com>
77740             Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         getline cleanup.  This changes the getndelim2 API: both order of
77743         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77744         no delimiter).
77745
77746         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77747         interface does that.
77748         (getline): Always use getdelim, so that we don't have two
77749         copies of this code.
77750         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77751         if available.
77752         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77753         (GETNDELIM2_MAXIMUM): New macro.
77754         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77755         instead of the old practice of delim2==0.  All callers changed.
77756         Return -1 on overflow, instead of returning junk.
77757         Do not set *linesize unless allocation succeeds.
77758         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77759         that we include sys/types.h.
77760         * lib/getnline.h: Likewise.
77761         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77762         (getndelim2): Reorder arguments.
77763         * lib/getnline.c (getnline, getndelim):
77764         Don't discard the NMAX argument.
77765         (getnline): Invoke getndelim, to avoid code duplication.
77766         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77767         of (size_t) -1 by callers of the getnline family.
77768
77769 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77772         Check for gettimeofday.
77773         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77774         Check for settimeofday, stime.
77775
77776 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * lib/nanosleep.c (suspended): Change its type from int to
77779         sig_atomic_t volatile.
77780         (first_call): Make it private to rpl_nanosleep, and have it
77781         be zero initially as that's a bit faster.
77782         (my_usleep): Round up fractional times instead of truncating them,
77783         as this is the usual meaning for 'sleep'.
77784
77785         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77786         doesn't work.
77787         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77788         (ENOSYS): Define if not defined.
77789         (settime): Fall back on stime if it exists and settimeofday fails.
77790         But don't bother with fallbacks if a method fails with errno == EPERM.
77791
77792 2004-05-11  Jim Meyering  <jim@meyering.net>
77793
77794         Prior to this change, the save_cwd caller required read access to the
77795         current directory on most systems (ones with the fchdir function).
77796
77797         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77798         fails, try write-only, and finally, resort to using xgetcwd.
77799
77800 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * lib/obstack.c, obstack.h: Import changes from libc.
77803
77804 2004-04-28  Bruno Haible  <bruno@clisp.org>
77805
77806         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77807         also implicitly appends .exe to executables.
77808         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77809         accepts Windows pathnames.
77810         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77811         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77812         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77813         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77814         Reported by Derek Robert Price <derek@ximbiot.com>.
77815
77816 2004-04-21  Karl Berry  <karl@gnu.org>
77817
77818         * config/srclist.txt (localcharset.c): break sync.
77819
77820 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77821
77822         * m4/host-os.m4: Add a copyright notice.
77823
77824 2004-04-20  Jim Meyering  <jim@meyering.net>
77825
77826         Change UTILS_ to gl_ in AC_DEFINE'd names.
77827         Change utils_- and jm_-prefixed variables, too.
77828         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77829         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77830         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77831
77832         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77833         Don't emit trailing blanks.
77834         Also rename jm_-prefixed variables to have gl_ prefix.
77835
77836         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77837         Also rename jm_-prefixed variables to have gl_ prefix.
77838
77839         * m4/jm-macros.m4: Reflect the renamings.
77840         * m4/prereq.m4: Likewise.
77841
77842 2004-04-20  Jim Meyering  <jim@meyering.net>
77843
77844         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77845         memory.
77846
77847 2004-04-20  Jim Meyering  <jim@meyering.net>
77848             Bruno Haible  <bruno@clisp.org>
77849
77850         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77851         memory when realloc fails.
77852
77853 2004-04-19  Jim Meyering  <jim@meyering.net>
77854
77855         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77856         now that readutmp.c may call `free (0)'.
77857
77858 2004-04-19  Bruno Haible  <bruno@clisp.org>
77859
77860         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77861         * m4/inttypes_h.m4: Likewise.
77862         * m4/stdint_h.m4: Likewise.
77863         * m4/intmax_t.m4: Likewise.
77864         * m4/uintmax_t.m4: Likewise.
77865
77866 2004-04-18  Jim Meyering  <jim@meyering.net>
77867
77868         * m4/prereq.m4: Don't forbid jm_ prefix.
77869
77870         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77871         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77872         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77873         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77874         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77875         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77876         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77877         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77878         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77879         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77880         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77881         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77882         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77883         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77884         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77885         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77886         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77887         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77888         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77889
77890 2004-04-18  Jim Meyering  <jim@meyering.net>
77891
77892         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77893         failure, don't leak memory and do call END_UTMP_ENT.
77894
77895 2004-04-16  Jim Meyering  <jim@meyering.net>
77896
77897         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77898         coreutils' stat program.
77899         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77900
77901 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77902
77903         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77904         C89.
77905         (CHAR_BIT): Remove, since we assume C89.
77906         Include <stdint.h> if available, as per current Autoconf CVS advice.
77907
77908 2004-03-31  Jim Meyering  <jim@meyering.net>
77909
77910         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77911         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77912         * m4/xalloc.m4: Likewise.
77913
77914 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77915
77916         Merge from coreutils.
77917
77918         * m4/inttostr.m4: New file.
77919         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77920         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77921         Require gl_CLOCK_TIME.
77922         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77923
77924 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77925
77926         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77927         not bool, to be more consistent with Unix conventions.
77928         Suggested by Bruno Haible.
77929
77930         Merge from coreutils.
77931
77932         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77933         * lib/umaxtostr.c: New files.
77934
77935         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77936         the usual <time.h> dance.
77937         (get_date): Change signature to support fractional time stamps.
77938         All callers changed.
77939         * lib/getdate.y: Include "getdate.h" first, as we can now
77940         assume C89 and don't need to worry about 'const'.
77941         Similarly, include "unlocked-io.h" near start, not in middle.
77942         Include <limits.h>.
77943         (textint.value): Use long int rather than int.
77944         (textint.digits): Use size_t rather than int.
77945         (BILLION, LOG10_BILLION): New constants.
77946         (parser_control): New member rel_ns.  Members day_ordinal,
77947         time_zone, month, day, hour, minutes, rel_year, rel_month,
77948         rel_day, rel_hour, rel_minutes, rel_seconds
77949         are now long int, not int.  Member seconds is now struct timespec,
77950         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77951         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77952         not int.
77953         (%union.intval): Now long int, not int.
77954         New member timespec.
77955         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77956         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77957         (spec): Now is a timespec or an item list.
77958         (timespec, items): New nonterminals.
77959         (time, rel, relunit, number, get_date):
77960         Add support for fractional seconds.
77961         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77962         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77963         (to_hour): First arg is now long int, not int.
77964         (to_year): Returns long int, not int.
77965         Don't treat year -70 like 70.
77966         (tm_diff): Returns long int, not int.
77967         (lookup_word): Use bool instead of int when appropriate.
77968         (yylex): Use size_t for count, not int.
77969         Detect overflow when parsing large integer constants.
77970         Add support for fractions.
77971         (get_date): Make pointers 'const' if possible.
77972         Use more-portable code to detect integer overflow.
77973         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77974         Don't use ctime; it's not reliable if the year has >4 digits.
77975
77976         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77977         This is for compatibility with BSD.
77978
77979         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77980         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77981         From coreutils' system.h.
77982
77983         * lib/userspec.c: Don't include "posixver.h".
77984         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77985         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77986         compatible extension.  Simplify code by removing a boolean int
77987         that was always nonzero if a string was nonnull.
77988
77989 2004-03-30  Jim Meyering  <jim@meyering.net>
77990
77991         Merge from coreutils.
77992
77993         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77994         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77995         on some systems one must include <grp.h> before it.
77996         Reported by Christian Krackowizer.
77997
77998 2004-03-30  Jim Meyering  <jim@meyering.net>
77999
78000         Merge from coreutils.
78001
78002         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
78003
78004         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
78005         an empty input stream.
78006
78007         * lib/readtokens.c: Include <stdbool.h>.
78008         (readtoken): Use `size_t' rather than int/long.
78009         All callers adjusted.
78010         Use `bool' rather than `int' where appropriate.
78011         Use memset rather than an explicit loop.
78012         Use x2nrealloc rather than xrealloc.
78013         Allow the use of `\0' as a delimiter.
78014         (readtokens): Likewise.
78015         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
78016
78017 2004-03-30  Jim Meyering  <jim@meyering.net>
78018
78019         * m4/realloc.m4: Remove file, since now it does no more than
78020         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
78021         the `configure.ac' section of module/realloc.
78022         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
78023
78024 2004-03-30  Bruno Haible  <bruno@clisp.org>
78025
78026         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
78027         nonnull.
78028
78029 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78030
78031         Merge changes to getloadavg.c from coreutils and Emacs.
78032
78033         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
78034         Define to an expression, not to the empty string.
78035         Include cloexec.h and xalloc.h.
78036         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
78037         Use set_cloexec_flag rather than rolling our own.
78038         * lib/cloexec.c, lib/cloexec.h: New files.
78039
78040 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78041
78042         * m4/cloexec.m4: New file.
78043
78044 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78045
78046         * lib/getopt.h: Sync with libc CVS.
78047
78048 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78049             Bruno Haible  <bruno@clisp.org>
78050
78051         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
78052         mbswidth.
78053
78054 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78055             Bruno Haible  <bruno@clisp.org>
78056
78057         * lib/mbswidth.h: Include <wchar.h> only if
78058         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
78059         <wchar.h>.
78060         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
78061
78062 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78063
78064         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
78065         Sync with libc CVS.
78066         * lib/getopt_int.h: New file, also synced from libc.
78067
78068 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78069
78070         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
78071         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
78072         Bring back getopt.c, getopt.h, getopt1.c.
78073
78074 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78075
78076         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
78077         All uses changed.  Check for sa_sigaction member; this fixes
78078         a bug first reported by Jason Andrade in
78079         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78080
78081 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78082
78083         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
78084         '#if' expressions.  Unlike the code it replaces, it does not
78085         depend on (defined _SC_PAGESIZE).  However, it does depend on
78086         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
78087         first reported by Jason Andrade in
78088         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78089
78090 2004-02-25  Simon Josefsson  <jas@extundo.com>
78091
78092         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
78093
78094 2004-02-25  Simon Josefsson  <jas@extundo.com>
78095
78096         * lib/strdup.h: New file.
78097         * lib/strdup.c: Include it.
78098         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
78099         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
78100
78101 2004-02-23  Karl Berry  <karl@gnu.org>
78102
78103         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
78104         (from fencepost.gnu.org:/gd/gnuorg).
78105
78106 2004-02-23  Karl Berry  <karl@gnu.org>
78107
78108         * config/srclistvars.sh (GNUORG) [karl]: redefine.
78109         * config/srclist.txt: add maintain/standards documents.
78110
78111 2004-02-18  Bruno Haible  <bruno@clisp.org>
78112
78113         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
78114         Reported by Derek Robert Price <derek@ximbiot.com>.
78115
78116 2004-02-16  Karl Berry  <karl@gnu.org>
78117
78118         * config/mkinstalldirs, install-sh: update from automake.
78119
78120 2004-02-06  Karl Berry  <karl@gnu.org>
78121
78122         * m4/po.m4: update from gettext 0.14.1.
78123
78124 2004-02-06  Karl Berry  <karl@gnu.org>
78125
78126         * lib/config.charset: update from gettext 0.14.1.
78127
78128 2004-02-05  Paul Eggert  <eggert@twinsun.com>
78129
78130         Add comments and code, prompted by suggestions from Bruno Haible
78131         for sh-quote.
78132         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
78133         describing the enum quoting_style values.
78134         * lib/quotearg.c (quotearg_alloc): New function.
78135         (quotearg_buffer_restyled): Treat lone { and } as special.
78136         Treat = as special.  Work around bug with older shells
78137         that "see" a '\' that is really the 2nd byte of a multibyte char.
78138         Quote empty string with shell_quoting_style.
78139
78140 2004-02-03  Bruno Haible  <bruno@clisp.org>
78141
78142         * m4/pipe.m4: New file, from GNU gettext.
78143
78144 2004-02-03  Bruno Haible  <bruno@clisp.org>
78145
78146         * lib/pipe.h: New file, from GNU gettext.
78147         * lib/pipe.c: New file, from GNU gettext.
78148
78149 2004-01-27  Bruno Haible  <bruno@clisp.org>
78150
78151         * m4/execute.m4: New file, from GNU gettext.
78152
78153 2004-01-27  Bruno Haible  <bruno@clisp.org>
78154
78155         * lib/execute.h: New file, from GNU gettext.
78156         * lib/execute.c: New file, from GNU gettext.
78157         * lib/w32spawn.h: New file, from GNU gettext.
78158
78159 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78160
78161         Merge from diffutils.
78162
78163         * lib/file-type.c (file_type): Add typed memory objects.
78164         * lib/file-type.h (S_TYPEISTMO): New macro.
78165
78166         * lib/c-stack.h (c_stack_action): Remove argv argument.
78167         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
78168         (die): Don't calculate message unless segv_action returns.
78169         (get_stack_location, min_address_from_argv, max_address_from_argv,
78170         volatile stack_base, volatile_stack_size): Remove.
78171         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
78172         that every segmentation violation is a stack overflow.  (Ouch!)
78173         See Debian bug 136249 (still outstanding) for more info about why
78174         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
78175
78176 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78177
78178         Exit-status fix from coreutils.
78179
78180         Use exit_failure consistently in place of EXIT_FAILURE,
78181         so that program exit statuses are consistent on failure.
78182
78183         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
78184         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
78185         * lib/argmatch.h: Comment fix to match the above.
78186         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
78187         Now a macro referring to exit_failure, instead of a separate
78188         variable.  Include "exitfail.h" to get it.
78189         * lib/xstrtol.h: Include "exitfail.h".
78190         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
78191
78192         * lib/long-options.c (parse_long_options): Use prototype
78193         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
78194         for clarity.
78195
78196 2004-01-21  Jim Meyering  <jim@meyering.net>
78197
78198         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
78199         so as not to conflict with a different-sized __mktime_internal
78200         function in GNU libc.
78201         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
78202         Problem building statically-linked `ls' reported by Michael Brunnbauer.
78203
78204 2004-01-20  Karl Berry  <karl@gnu.org>
78205
78206         * config/config.guess: update from config.
78207
78208         * config/srclistvars.sh: GNUWWWLICENSES for karl.
78209
78210 2004-01-20  Bruno Haible  <bruno@clisp.org>
78211
78212         Safer stack allocation.
78213         * lib/setenv.c: Include allocsa.h.
78214         (alloca): Remove fallback definition.
78215         (freea): Remove macro.
78216         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
78217         instead of freea.
78218
78219 2004-01-20  Bruno Haible  <bruno@clisp.org>
78220
78221         * m4/eealloc.m4: New file, from GNU gettext.
78222
78223 2004-01-20  Bruno Haible  <bruno@clisp.org>
78224
78225         * m4/allocsa.m4: New file, from GNU gettext.
78226
78227 2004-01-20  Bruno Haible  <bruno@clisp.org>
78228
78229         * lib/xallocsa.h: New file, from GNU gettext.
78230         * lib/xallocsa.c: New file, from GNU gettext.
78231
78232 2004-01-20  Bruno Haible  <bruno@clisp.org>
78233
78234         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
78235
78236 2004-01-20  Bruno Haible  <bruno@clisp.org>
78237
78238         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
78239         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
78240         specially.
78241
78242 2004-01-20  Bruno Haible  <bruno@clisp.org>
78243
78244         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
78245         patch.
78246
78247 2004-01-20  Bruno Haible  <bruno@clisp.org>
78248
78249         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
78250
78251 2004-01-20  Bruno Haible  <bruno@clisp.org>
78252
78253         * lib/eealloc.h: New file.
78254
78255 2004-01-20  Bruno Haible  <bruno@clisp.org>
78256
78257         * lib/binary-io.h: Avoid warnings on Cygwin.
78258
78259 2004-01-20  Bruno Haible  <bruno@clisp.org>
78260
78261         * lib/allocsa.h: New file, from GNU gettext.
78262         * lib/allocsa.c: New file, from GNU gettext.
78263
78264 2004-01-18  Karl Berry  <karl@gnu.org>
78265
78266         * doc/gpl.texi, doc/lgpl.texi: new files.
78267
78268 2004-01-18  Karl Berry  <karl@gnu.org>
78269
78270         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
78271         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
78272
78273 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78274
78275         Merge from coreutils.
78276
78277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
78278         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
78279         (gl_DEFAULT_POSIX2_VERSION): Move
78280         the documentation from 'configure' into 'config.hin',
78281         so that 'configure --help' isn't burdened by it and
78282         we don't have to worry about its formatting there.
78283         Reword the documentation so that it's more succinct
78284         and can be run together into a single paragraph.
78285         * m4/same.m4 (gl_SAME): Check for pathconf.
78286
78287 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78288
78289         Merge from coreutils.
78290
78291         * lib/posixver.c: Include posixver.h.
78292
78293         * lib/same.c: Include <stdbool.h>, <limits.h>.
78294         (_POSIX_NAME_MAX): Define if not defined.
78295         (MIN): New macro.
78296         (same_name): If file names are silently truncated, report
78297         that the file names are the same if they are the same after
78298         the silent truncation.
78299
78300         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
78301         conversion function.
78302         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
78303         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
78304         longer needed.
78305
78306 2004-01-15  Jim Meyering  <jim@meyering.net>
78307
78308         Merge from coreutils.
78309
78310         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
78311         if no library is required.
78312         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
78313         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
78314         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
78315         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
78316         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
78317         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
78318         value, $ac_cv_search_crypt, if it's "none required".
78319         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
78320         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
78321         not gl_FUNC_GETLOADAVG.
78322         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
78323         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
78324
78325 2004-01-15  Jim Meyering  <jim@meyering.net>
78326
78327         Merge from coreutils.
78328
78329         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
78330         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
78331         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
78332
78333         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
78334         optional configure-time default.
78335
78336         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78337
78338         * lib/xreadlink.c (xreadlink): Correct outdated comment.
78339
78340 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
78341
78342         Merge from coreutils.
78343
78344         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
78345         value, $ac_cv_search_nanosleep, if it's "none required".
78346
78347 2004-01-14  Paul Eggert  <eggert@twinsun.com>
78348
78349         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
78350         with like-named macro in fnmatch.c.
78351         (EXT): Use an internal constant instead.
78352
78353         Merge fnmatch patches from glibc.
78354         * lib/fnmatch.c (mbsinit): Remove define.
78355         Add libc_hidden_ver (__fnmatch, fnmatch).
78356         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
78357         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
78358
78359 2004-01-14  Karl Berry  <karl@gnu.org>
78360
78361         * config/install-sh: update from automake.
78362
78363 2004-01-13  Karl Berry  <karl@gnu.org>
78364
78365         * config/install-sh: update from automake.
78366
78367 2004-01-09  Karl Berry  <karl@gnu.org>
78368
78369         * config/install-sh: update from automake.
78370
78371 2004-01-05  Karl Berry  <karl@gnu.org>
78372
78373         * config/config.{sub,guess}: update from config.
78374
78375 2003-12-31  Karl Berry  <karl@gnu.org>
78376
78377         * config/depcomp: update from automake.
78378
78379 2003-12-14  Karl Berry  <karl@gnu.org>
78380
78381         * lib/config.charset: update from gettext-runtime.
78382
78383 2003-12-03  Paul Eggert  <eggert@twinsun.com>
78384
78385         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
78386         Bug reported by Alfred M. Szmidt.
78387
78388 2003-12-03  Bruno Haible  <bruno@clisp.org>
78389
78390         * m4/gettext.m4: Upgrade from gettext-0.13.
78391         * m4/po.m4: Upgrade from gettext-0.13.
78392         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
78393         * m4/intmax.m4: New file, from gettext-0.13.
78394         * m4/printf-posix.m4: New file, from gettext-0.13.
78395
78396 2003-11-29  Karl Berry  <karl@gnu.org>
78397
78398         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
78399
78400 2003-11-25  Paul Eggert  <eggert@twinsun.com>
78401             Bruno Haible  <bruno@clisp.org>
78402
78403         * lib/printf-parse.h: Don't include sys/types.h.
78404         (ARG_NONE): New macro.
78405         (char_directive): Change type of *arg_index fields to size_t.
78406         * lib/printf-parse.c: Don't include sys/types.h.
78407         (SSIZE_MAX): Remove macro.
78408         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
78409         Remove unnecessary overflow check.
78410         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78411         fields.
78412
78413 2003-11-25  Bruno Haible  <bruno@clisp.org>
78414
78415         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
78416
78417 2003-11-25  Bruno Haible  <bruno@clisp.org>
78418
78419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
78420         gt_TYPE_SSIZE_T.
78421
78422 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78423
78424         * modules/alloca: Remove dependency on xalloc.
78425
78426 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78427
78428         * lib/alloca.c: Remove dependency on xalloc module.
78429         (xalloc_die): Remove.
78430         (memory_full) [!defined emacs]: New macro.
78431         [!defined emacs]: Don't include xalloc.h.
78432         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
78433         address arithmetic overflows.  Change datatypes a bit to avoid
78434         unnecessary casts.
78435
78436 2003-11-22  Jim Meyering  <jim@meyering.net>
78437
78438         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
78439         s/size/size_t/.
78440
78441 2003-11-21  Karl Berry  <karl@gnu.org>
78442
78443         * config/config.{sub,guess}: update from config.
78444
78445 2003-11-18  Karl Berry  <karl@gnu.org>
78446
78447         * config/config.{sub,guess}: update from config.
78448
78449         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
78450
78451 2003-11-17  Paul Eggert  <eggert@twinsun.com>
78452
78453         * README: Mention that S+T cannot overflow if S is the size of
78454         an existing object and T is sufficiently small.
78455
78456 2003-11-17  Jim Meyering  <jim@meyering.net>
78457
78458         On systems without utime and without a utimes function capable of
78459         dealing with a NULL struct utimbuf* argument, this utime replacement
78460         could -- in unusual circumstances -- leak a file descriptor.
78461         * lib/utime.c: Include <unistd.h> and <errno.h>.
78462         (utime_null): Be sure to close `fd' and to preserve errno.
78463         Reported by Geoff Collyer via Arnold Robbins.
78464
78465 2003-11-17  Bruno Haible  <bruno@clisp.org>
78466
78467         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
78468         (Depends-on): Add xsize.
78469
78470 2003-11-17  Bruno Haible  <bruno@clisp.org>
78471
78472         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
78473
78474 2003-11-17  Bruno Haible  <bruno@clisp.org>
78475
78476         * lib/vasnprintf.c (alloca): Remove fallback definition.
78477         (freea): Remove definition.
78478         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
78479         Reported by Paul Eggert.
78480
78481 2003-11-16  Paul Eggert  <eggert@twinsun.com>
78482             Bruno Haible  <bruno@clisp.org>
78483
78484         Protect against address arithmetic overflow.
78485         * lib/printf-args.h: Include stddef.h.
78486         (arguments): Change type of field 'count' to size_t.
78487         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
78488         'unsigned int' where appropriate.
78489         * lib/printf-parse.h: Include sys/types.h.
78490         (char_directive): Change type of *arg_index fields to ssize_t.
78491         (char_directives): Change type of fields 'count', max_*_length to
78492         size_t.
78493         * lib/printf-parse.c: Include sys/types.h and xsize.h.
78494         (SSIZE_MAX): Define fallback value.
78495         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
78496         instead of 'int' where appropriate. Check a_allocated, d_allocated
78497         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
78498         * lib/vasnprintf.c: Include xsize.h.
78499         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
78500         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
78501         overflow. Avoid wraparound when converting a width or precision from
78502         decimal to binary.
78503
78504 2003-11-16  Bruno Haible  <bruno@clisp.org>
78505
78506         Update from GNU gettext.
78507         * lib/printf-parse.c: Generalize to it can be compiled for wide
78508         strings.
78509         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
78510         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
78511         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
78512         SNPRINTF): New macros.
78513         Don't include <alloca.h> if the file is used inside libintl.
78514         (local_wcslen): New function, for Solaris 2.5.1.
78515         (VASNPRINTF): Use it instead of wcslen.
78516
78517 2003-11-16  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/xsize.h (xmax): New function.
78520         (xsum, xsum3, xsum4): Declare as "pure" functions.
78521
78522 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78523
78524         * modules/xalloc (Files): Undo latest change, since xalloc.h
78525         no longer needs SIZE_MAX or PTRDIFF_MAX.
78526
78527 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78528
78529         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
78530         gl_PTRDIFF_MAX.
78531
78532 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78533
78534         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
78535         "return", to pacify some unknown compiler.  Problem reported
78536         by Joerg Schilling.
78537
78538 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78539
78540         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
78541         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
78542         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
78543         heuristic is just as accurate as far as we know, and it removes a
78544         dependency on size_max.m4 and ptrdiff_max.m4.
78545
78546 2003-11-11  Bruno Haible  <bruno@clisp.org>
78547
78548         * modules/xsize (Files): Add m4/size_max.m4.
78549         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
78550
78551 2003-11-11  Bruno Haible  <bruno@clisp.org>
78552
78553         * m4/size_max.m4: New file.
78554         * m4/ptrdiff_max.m4: New file.
78555         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
78556         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
78557         (gl_XALLOC): Invoke it.
78558
78559 2003-11-11  Bruno Haible  <bruno@clisp.org>
78560
78561         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
78562         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
78563         defined.
78564
78565 2003-11-10  Paul Eggert  <eggert@twinsun.com>
78566
78567         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
78568         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
78569         rejected some allocations of exactly SIZE_MAX - 2 bytes.
78570         From Bruno Haible.
78571         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
78572         not (size_t) -1, since it's defined here.
78573
78574 2003-11-09  Karl Berry  <karl@gnu.org>
78575
78576         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
78577
78578 2003-11-06  Paul Eggert  <eggert@twinsun.com>
78579
78580         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
78581         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
78582         Reject sizes of exactly SIZE_MAX bytes.
78583         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
78584         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
78585
78586 2003-11-05  Bruno Haible  <bruno@clisp.org>
78587
78588         * lib/xsize.h: Include limits.h, to avoid a possible collision with
78589         SIZE_MAX defined in <limits.h> on Solaris.
78590
78591 2003-11-04  Jim Meyering  <jim@meyering.net>
78592
78593         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
78594         variable names, rather than @VAR@.
78595         * modules/poll: Likewise.
78596
78597 2003-11-04  Bruno Haible  <bruno@clisp.org>
78598
78599         * modules/xsize: New file.
78600         * modules/linebreak: Depend on xsize.
78601         * MODULES.html.sh (func_all_modules): Add xsize.
78602
78603 2003-11-04  Bruno Haible  <bruno@clisp.org>
78604
78605         * m4/xsize.m4: New file.
78606
78607 2003-11-04  Bruno Haible  <bruno@clisp.org>
78608
78609         * lib/xsize.h: New file.
78610         * lib/linebreak.c: Include xsize.h.
78611         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
78612         argument for overflow.
78613         Suggested by Paul Eggert.
78614
78615 2003-11-03  Karl Berry  <karl@gnu.org>
78616
78617         * config/config.{guess,sub}: update from config.
78618
78619 2003-11-03  Jim Meyering  <jim@meyering.net>
78620
78621         * modules/userspec (lib_SOURCES): Add userspec.h.
78622         (Include): Add "userspec.h".
78623         Improve description.
78624
78625 2003-11-03  Jim Meyering  <jim@meyering.net>
78626
78627         * lib/userspec.c: Include "userspec.h".
78628         * lib/userspec.h: New file.
78629
78630 2003-11-03  Bruno Haible  <bruno@clisp.org>
78631
78632         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
78633
78634 2003-11-03  Bruno Haible  <bruno@clisp.org>
78635
78636         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
78637         available, to avoid (extremely rare) race condition.
78638         Suggested by Paul Eggert.
78639
78640 2003-11-02  Karl Berry  <karl@gnu.org>
78641
78642         * config/srclist.txt (vasprintf.c): sync broken, sigh.
78643
78644 2003-10-31  Paul Eggert  <eggert@twinsun.com>
78645
78646         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
78647         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
78648         (read_filesystem_list): Set and use me_type_malloced.
78649         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
78650         whatever the type happens to be), for brevity and consistency.
78651         Check for size calculation overflow on Alphas running OSF/1.
78652
78653 2003-10-31  Jim Meyering  <jim@meyering.net>
78654
78655         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
78656
78657         * lib/linebuffer.c: Include <string.h> for declaration of memset.
78658
78659 2003-10-30  Paul Eggert  <eggert@twinsun.com>
78660             Bruno Haible  <bruno@clisp.org>
78661
78662         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
78663         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
78664
78665 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78668         netbsd*-gnu*.  Suggested by Robert Millan.
78669
78670 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78671
78672         * modules/group-member: Depend on stdbool.
78673
78674 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78675
78676         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78677
78678 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78679
78680         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78681         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78682         after the 'gnu' in these cases.  This fixes some bugs in the
78683         previous change, and is based on suggestions by Robert Millan.
78684
78685 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78686
78687         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78688         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78689         no longer needed.
78690         * lib/quotearg.c (quotearg_n_options): Use it.
78691         * lib/group-member.c: Include <stdbool.h>.
78692         (free_group_info): Arg is now const *; don't free arg.
78693         (get_group_info): Now returns bool and accepts struct group_info *,
78694         rather than returning a malloc'ed struct group_info *.
78695         All uses changed.  Check for overflow in internal size calculation.
78696
78697         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78698         rather than xmalloc/xrealloc.
78699         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78700         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78701         conformance bug: the old code used a pointer after freeing the
78702         storage that it addressed.
78703         * lib/hash.c (hash_initialize): Simplify the code by using
78704         xalloc_oversized rather than doing it by hand.
78705         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78706         the buffer preserved.  Use free and xmalloc instead.
78707         * lib/quotearg.c (quotearg_n_options): Likewise.
78708         Use a simpler test for size overflow.  Don't use xalloc_oversized
78709         because unsigned int might be wider than size_t (!); this suggests
78710         that we should switch from unsigned int to size_t for slot numbers.
78711
78712 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78713
78714         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78715         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78716         NetBSD kernels.  Requested by Richard Stallman.
78717
78718 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78719
78720         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78721         to allocate the returned structure.  Do not allocate a subarray,
78722         as x2nrealloc will do that.
78723         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78724         instead of xnrealloc.
78725         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78726
78727 2003-10-27  Bruno Haible  <bruno@clisp.org>
78728
78729         * lib/stdbool_.h: Better support for BeOS.
78730
78731 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78732
78733         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78734         now uses inline.
78735
78736 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78737
78738         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78739         callers that want to do their own size-overflow checking.  Include
78740         <stdbool.h>, since xalloc_oversized returns bool.
78741         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78742         to use xalloc_oversized.
78743
78744         Add two functions x2realloc, x2nrealloc, for programs that grow
78745         arrays dynamically by doubling their sizes.
78746         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78747         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78748         New functions.
78749
78750         Port to C99 semantics for 'inline' of external functions.
78751         Bug reported by Bruno Haible.
78752         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78753         with the old contents of xnmalloc.
78754         (xnmalloc, xmalloc): Use it.
78755         (xnrealloc_inline): New static inline function,
78756         with the old contents of xnrealloc.
78757         (xnrealloc, xrealloc): Use it.
78758
78759         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78760         that.
78761
78762 2003-10-26  Karl Berry  <karl@gnu.org>
78763
78764         * config/srclist.txt (COPYING.DOC): no longer available from
78765         /gd/gnuorg; don't know where the ultimate source is.
78766
78767 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78768
78769         Fix several address-calculation bugs in the hash modules,
78770         plus some minor code cleanup.
78771
78772         * lib/hash.h: Include <stdbool.h>, for bool.
78773         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78774         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78775         hash_get_n_entries, hash_get_max_bucket_length,
78776         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78777         hash_rehash): Use size_t rather than unsigned.
78778         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78779         hash_get_n_buckets_used, hash_get_n_entries,
78780         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78781         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78782         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78783         Likewise.
78784         (SIZE_MAX): Define if not defined.
78785         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78786         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78787         hash_print):
78788         Use const * when possible.
78789         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78790         (check_tuning): Fix bug: if tuning parameters were very close to
78791         0 or 1, rounding errors could have caused subscript violations.
78792         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78793         (hash_initialize): Add 'fail:' label
78794         to free table and return NULL, and use it to simplify code.
78795         Use calloc rather than clearing the storage ourself.
78796         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78797         buffer size calculations.
78798         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78799         Include <stddef.h>, for size_t.
78800         * lib/hash-pjw.c (hash_pjw): Likewise.
78801         Switch to method described by Bruno Haible.
78802         Include <limits.h>, for CHAR_BIT.
78803         (SIZE_BITS): New macro.
78804
78805 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78806
78807         * m4/getline.m4 (AM_FUNC_GETLINE):
78808         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78809         hosts.  Problem reported by Derek Robert Price in
78810         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78811         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78812         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78813
78814 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78815
78816         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78817         ceiling the allocation at NMAX bytes rather than silently
78818         discarding input bytes before NMAX is reached.  This makes
78819         a difference only if NMAX exceeds SIZE_MAX / 2.
78820
78821         * lib/obstack.c: Merge from glibc.
78822         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78823         Add libc_hidden_def (_obstack_newchunk).
78824         (_obstack_free) [! defined _LIBC]: Remove.
78825         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78826         a clone of the function body.
78827         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78828         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78829
78830         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78831         glibc.
78832         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78833         arg to memcpy.
78834
78835         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78836         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78837         Don't use lvalue casts, as GCC plans to remove support for them
78838         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78839         was also present in the non-GCC version, indicating that this
78840         code had always been buggy and had never been widely used.
78841         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78842         Use the fast variant of each macro, rather than copying the
78843         definiens of the fast variant; that way, we'll be more likely to
78844         catch future bugs in the fast variants.
78845
78846 2003-10-20  Bruno Haible  <bruno@clisp.org>
78847
78848         * modules/wait-process: New file.
78849         * MODULES.html.sh (func_all_modules): Add wait-process.
78850
78851 2003-10-20  Bruno Haible  <bruno@clisp.org>
78852
78853         * m4/wait-process.m4: New file.
78854
78855 2003-10-20  Bruno Haible  <bruno@clisp.org>
78856
78857         * lib/wait-process.h: New file, from GNU gettext.
78858         * lib/wait-process.c: New file, from GNU gettext.
78859
78860 2003-10-19  Jim Meyering  <jim@meyering.net>
78861
78862         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78863         HPUX 10.20.
78864
78865 2003-10-18  Karl Berry  <karl@gnu.org>
78866
78867         * config/config.guess: update from config.
78868
78869 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78870
78871         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78872         (getgroups): First arg is int, not size_t.
78873         Don't let 'free' mangle errno.
78874
78875 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78876
78877         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78878
78879 2003-10-16  Karl Berry  <karl@gnu.org>
78880
78881         * config/config.{guess,sub}: update from config.
78882
78883 2003-10-16  Jim Meyering  <jim@meyering.net>
78884
78885         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78886         memcpy.
78887
78888 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78889
78890         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78891         (SIZE_MAX): Remove.
78892         (new_exclude, add_exclude_file): Initial size no longer needs to
78893         be a power of 2.
78894         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78895         our own address arithmetic overflow checking.
78896
78897         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78898         (fnmatch): Do not alloca more than 2000 wide characters;
78899         instead, use malloc for large buffers.
78900         Check for address arithmetic overflow, and return -1
78901         with errno set to ENOMEM in that case.
78902         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78903         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78904         instead, return -1.  Check for address arithmetic overflow.
78905
78906 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78907
78908         Handle invalid suffixes and overflow independently, so that
78909         callers can treat them independently as needed.  Fix some bugs in
78910         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78911         suffix for a human-readable blocksize.  The major caller-visible
78912         change is the addition of a new
78913         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78914         that both overflow and suffix chars were found.
78915
78916         * lib/human.c (humblock): Don't check separately for invalid suffix
78917         char; that is xstrtoumax's job (now that its bug is fixed).
78918         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78919         INTMAX_MAX]: New macros.
78920         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78921         TYPE_MAXIMUM): New macros.
78922         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78923         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78924         if overflow occurs, as it's what __strtol does and it's more useful
78925         in practice.
78926         (__xstrtol): If __strtol reports some error other than ERANGE,
78927         reflect it to the caller as LONGINT_INVALID.  If it reports
78928         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78929         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78930         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78931         value.
78932         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78933         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78934         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78935         [defined UINTMAX_MAX]: New macros.
78936
78937 2003-10-14  Bruno Haible  <bruno@clisp.org>
78938
78939         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78940
78941 2003-10-14  Bruno Haible  <bruno@clisp.org>
78942
78943         * m4/sig_atomic_t: New file, from GNU gettext.
78944         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78945
78946 2003-10-14  Bruno Haible  <bruno@clisp.org>
78947
78948         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78949         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78950         Also use volatile where needed.
78951
78952 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78953
78954         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78955         Change maintainer from Bruno Haible to 'all'.
78956
78957 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78958
78959         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78960
78961 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78962
78963         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78964         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78965         and define in terms of the other primitives.
78966         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78967         (SIZE_MAX): Define if not already defined.
78968         (array_size_overflow): New function.
78969         (xalloc_die): Abort instead of exiting if 'error' returns.
78970         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78971         (xmalloc, xrealloc): Use them.
78972         (xcalloc): Check for address arithmetic overflow.
78973         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78974         a bit faster than strcpy.
78975
78976 2003-10-10  Simon Josefsson  <jas@extundo.com>
78977
78978         * modules/argp (Depends-on): Add restrict and strcase.
78979
78980 2003-10-10  Simon Josefsson  <jas@extundo.com>
78981
78982         * m4/argp.m4: Add AC_C_INLINE.
78983
78984 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78985
78986         Merge getpass from libc, plus a few fixes.
78987
78988         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78989         Include <stdbool.h>.
78990         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78991         __fsetlocking to empty.
78992         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78993         do include <bits/libc-lock.h>.
78994         Do not include <fcntl.h>; not needed.
78995         [_LIBC]: Include <wchar.h>.
78996         (NOTCANCEL_MODE): New macro.
78997         (flockfile, funlockfile) [_LIBC]: New macros.
78998         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78999         [!_LIBC]: New macros.
79000         (call_fclose): New function.
79001         (getpass): Use it.  Save tty stream separately; this simplifies the
79002         code and makes it more reliable if stdin happens to equal stdout.
79003         Invoke __fsetlocking on tty.
79004         Handle thread cancellation if needed.
79005         Namespace cleanup (use __tcgetattr, __getline).
79006         Use bool for Booleans.
79007         [USE_IN_LIBIO]: Handle wide streams.
79008         [!_LIBC]: Unconditionally do the fseek, since we don't know what
79009         stream might go where.
79010
79011         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
79012         doesn't have to include <stdio.h> before us.
79013         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
79014         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
79015         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
79016         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
79017         if not declared, so that we can use getpass.c code from libc without
79018         rewriting it.
79019         (flockfile, ftrylockfile, funlockfile): New macros.
79020
79021 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79022
79023         * modules/getpass: Depend on stdbool.
79024
79025 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79026
79027         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
79028
79029 2003-10-07  Karl Berry  <karl@gnu.org>
79030
79031         * config/config.{guess,sub}: update from config.
79032
79033 2003-10-06  Jim Meyering  <jim@meyering.net>
79034             Bruno Haible  <bruno@clisp.org>
79035
79036         This lets translators provide better translations for the
79037         "Written by ..." part of --version output.
79038         * lib/version-etc.h: Include stdarg.h.
79039         (version_etc_copyright): Declare as readonly.
79040         (version_etc): Make this function variadic with a NULL-terminated list
79041         of author name strings.
79042         (version_etc_va): New declaration.
79043         * lib/version-etc.c: Include stdarg.h, stdlib.h.
79044         (version_etc_copyright): Declare as readonly.
79045         (version_etc_va): New function. Provide a different translatable string
79046         for each possible number of authors < 10. Abbreviate when there are 10
79047         authors or more.
79048         (version_etc): Make this function variadic. Call version_etc_va.
79049         Suggestion from Gary V. Vaughan.
79050
79051         * lib/long-options.h (parse_long_options): Change prototype: the
79052         authors string is moved to the end and becomes variadic.
79053         * lib/long-options.c: Include stdarg.h.
79054         (parse_long_options): Make this function variadic, too.
79055         Call version_etc_va, not version_etc.
79056
79057 2003-10-06  Bruno Haible  <bruno@clisp.org>
79058
79059         * modules/version-etc-2: Remove file.
79060         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
79061
79062 2003-10-06  Bruno Haible  <bruno@clisp.org>
79063
79064         * modules/fatal-signal: New file.
79065         * MODULES.html.sh (func_all_modules): Add fatal-signal.
79066
79067 2003-10-06  Bruno Haible  <bruno@clisp.org>
79068
79069         * m4/fatal-signal.m4: New file.
79070         * m4/signalblocking.m4: New file, from GNU gettext.
79071
79072 2003-10-06  Bruno Haible  <bruno@clisp.org>
79073
79074         * lib/version-etc-2.h: Remove file.
79075         * lib/version-etc-2.c: Remove file.
79076
79077 2003-10-06  Bruno Haible  <bruno@clisp.org>
79078
79079         * lib/fatal-signal.h: New file, from GNU gettext.
79080         * lib/fatal-signal.c: New file, from GNU gettext.
79081
79082 2003-10-05  Paul Eggert  <eggert@twinsun.com>
79083
79084         * README: Rework advice for preventing empty .o files.
79085         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
79086         not <sys/types.h>.
79087
79088 2003-10-04  Karl Berry  <karl@gnu.org>
79089
79090         * lib/argp*: update from libc.
79091
79092 2003-10-04  Karl Berry  <karl@gnu.org>
79093
79094         * config/config.{guess,sub}: update from config.
79095
79096 2003-10-02  Bruno Haible  <bruno@clisp.org>
79097
79098         * modules/lchown (Include): Add lchown.h.
79099         * modules/time_r (Include): Use "..." syntax.
79100         * modules/xgetdomainname (Include): Add xgetdomainname.h.
79101
79102 2003-10-01  Simon Josefsson  <jas@extundo.com>
79103
79104         * MODULES.html.sh (func_all_modules): Move gethostname from section
79105         'based on' to section 'lacking' POSIX:2001.
79106
79107 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
79108
79109         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
79110         to output mode on the same stream.
79111
79112 2003-09-29  Paul Eggert  <eggert@twinsun.com>
79113
79114         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
79115         Fix arg typo in previous patch.
79116
79117 2003-09-28  Jim Meyering  <jim@meyering.net>
79118
79119         * lib/error.c: Correct cpp indentation.
79120
79121 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79122
79123         * modules/free: New file.
79124
79125 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79126
79127         * m4/free.m4: New file.
79128
79129 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79130
79131         * lib/minmax.h (MIN, MAX)
79132         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
79133         Omit the special code that used __typeof__, since we worry that
79134         it could be more trouble than it's worth.  See:
79135         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
79136         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
79137
79138         * lib/free.c: New file.
79139
79140 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
79141
79142         Trivial fixes to Makefile.am parts of module listings.
79143         * modules/strstr: Append strstr.h to lib_SOURCES.
79144         * modules/strcase: Likewise, for strcase.h.
79145
79146 2003-09-27  Karl Berry  <karl@gnu.org>
79147
79148         * config/mkinstalldirs: update from automake.
79149
79150 2003-09-26  Paul Eggert  <eggert@twinsun.com>
79151
79152         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
79153         (error_tail): Do not loop, reallocating temporary buffer, since
79154         the output cannot contain more wide characters than the input
79155         contains bytes, the size must be big enough already.  This avoids
79156         one potential size overflow calculation.  Check for size overflow
79157         when calculating temporary buffer size.  Free temporary buffer
79158         when done, if it was allocated with malloc; this plugs a memory
79159         leak.  Remove casts from void * to pointers, that are no longer
79160         needed now that we're assuming C89 or better.
79161
79162         Merge error changes from glibc.
79163
79164         * lib/error.c, error.h: Update copyright notice header to match glibc.
79165         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
79166         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
79167         Disable cancellation while printing error.
79168         * lib/error.h: Prepend __ to parameter names.
79169
79170 2003-09-26  Jim Meyering  <jim@meyering.net>
79171
79172         * lib/error.c (error_tail): Move some declarations
79173         into inner scope where the local variables are used.
79174
79175 2003-09-26  Bruno Haible  <bruno@clisp.org>
79176
79177         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
79178         stpncpy().
79179         Don't define stpncpy through config.h; it's now done through stpncpy.h.
79180
79181 2003-09-26  Bruno Haible  <bruno@clisp.org>
79182
79183         * lib/stpncpy.h (gnu_stpncpy): New declaration.
79184         (stpncpy): Define as alias for gnu_stpncpy.
79185         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
79186
79187 2003-09-25  Simon Josefsson  <jas@extundo.com>
79188
79189         * lib/xgetdomainname.h: New file.
79190         * lib/xgetdomainname.c: New file.
79191
79192 2003-09-25  Simon Josefsson  <jas@extundo.com>
79193             Bruno Haible  <bruno@clisp.org>
79194
79195         * modules/getdomainname: New file.
79196         * modules/xgetdomainname: New file.
79197         * MODULES.html.sh (func_all_modules): Add getdomainname,
79198         xgetdomainname.
79199
79200 2003-09-25  Simon Josefsson  <jas@extundo.com>
79201             Bruno Haible  <bruno@clisp.org>
79202
79203         * m4/getdomainname.m4: New file.
79204
79205 2003-09-25  Simon Josefsson  <jas@extundo.com>
79206             Bruno Haible  <bruno@clisp.org>
79207
79208         * lib/getdomainname.h: New file.
79209         * lib/getdomainname.c: New file.
79210
79211 2003-09-25  Karl Berry  <karl@gnu.org>
79212
79213         * lib/argp-fmtstream.c, argp-help.c: update from libc.
79214
79215 2003-09-25  Karl Berry  <karl@gnu.org>
79216
79217         * config/install-sh: update from automake.
79218
79219 2003-09-25  Bruno Haible  <bruno@clisp.org>
79220
79221         * modules/version-etc-2: New file, from modules/version-etc with
79222         modifications.
79223         * MODULES.html.sh (func_all_modules): Add version-etc-2.
79224
79225 2003-09-25  Bruno Haible  <bruno@clisp.org>
79226
79227         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
79228         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
79229
79230 2003-09-24  Simon Josefsson  <jas@extundo.com>
79231
79232         * modules/xgethostname: Add xgethostname.h.
79233
79234 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79235
79236         * lib/linebuffer.c (freebuffer): Don't free the argument, just
79237         the buffer associated with the argument.  Bug reported by
79238         Simon Josefsson.
79239
79240 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79241
79242         * README: Document assumptions that 'int' is at least 32 bits
79243         wide, that integer arithmetic is 2's complement without overflow,
79244         that there are no holes in integer values, that adding sizes of
79245         two nonoverlapping objects can't overflow, and that all-bits-zero
79246         yields scalar zero.  Fix spelling and capitalization typos.
79247
79248 2003-09-19  Karl Berry  <karl@gnu.org>
79249
79250         * lib/argp.h: update from libc.
79251
79252 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79253
79254         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
79255         to avoid spurious warnings like "AC_RUN_IFELSE was called before
79256         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
79257
79258 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79259
79260         * gnulib-tool: Use "test -h", not "test -L", for portability
79261         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
79262         (tags_regexp): Remove, since \| doesn't conform to POSIX.
79263         (sed_extract_prog): Issue s commands one-by-one, rather than
79264         using \| in one s command.
79265
79266 2003-09-16  Paul Eggert  <eggert@twinsun.com>
79267
79268         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
79269         input error, instead of returning NULL the next time we are called
79270         (and therefore losing track of errno).
79271
79272 2003-09-16  Bruno Haible  <bruno@clisp.org>
79273
79274         * gnulib-tool (func_create_testdir): Warn about duplicated
79275         dependencies.
79276
79277 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79278
79279         * modules/argmatch, modules/fatal, modules/obstack,
79280         modules/xalloc, modules/xgethostname: Sort dependencies by
79281         importance, not alphabetically.
79282
79283 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79284
79285         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
79286         fails, so that the caller gets the proper errno.
79287
79288         * lib/readutmp.c (read_utmp): Likewise.
79289         Check for fstat error.  Close stream and free storage
79290         when failing.
79291
79292 2003-09-14  Karl Berry  <karl@gnu.org>
79293
79294         * config/srclist.txt (strdup.c): disable for c89 changes.
79295
79296 2003-09-14  Jim Meyering  <jim@meyering.net>
79297
79298         * lib/getloadavg.c: Correct cpp indentation.
79299         * lib/strdup.c: Likewise.
79300         * lib/vasnprintf.c: Likewise.
79301
79302 2003-09-14  Bruno Haible  <bruno@clisp.org>
79303
79304         * modules/fwriteerror: New file.
79305         * MODULES.html.sh (func_all_modules): Add fwriteerror.
79306
79307 2003-09-14  Bruno Haible  <bruno@clisp.org>
79308
79309         * lib/fwriteerror.h: New file.
79310         * lib/fwriteerror.c: New file.
79311
79312 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79313
79314         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
79315         modules/xgethostname, modules/xalloc: Depend on exit.
79316
79317 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79318
79319         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
79320
79321         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
79322         and AC_MINIX, too, so that their extensions are available.
79323
79324         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
79325         This macro has been superseded by gl_BACKUPFILE.
79326
79327         More patches to assume C89 or better.
79328
79329         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
79330
79331         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
79332         unconditionally.
79333         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
79334         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
79335         Include <string.h>, <stdlib.h> unconditionally.
79336         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
79337         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
79338         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
79339         headers or for string.h.
79340         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
79341         or strtoul.
79342
79343         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
79344         headers.
79345         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
79346         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79347         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
79348         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
79349         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79350         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
79351         memcpy, memset.
79352         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
79353         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
79354         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
79355         strtol.
79356         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
79357         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
79358         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
79359         strtoul.
79360
79361 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79362
79363         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
79364         * lib/obstack.c [!defined _LIBC]: Likewise.
79365         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
79366         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
79367         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
79368
79369         More changes to assume C89 or better.
79370
79371         * lib/error.c (error_tail): Assume vprintf.
79372
79373         * lib/argmatch.c (getenv): Remove decl.
79374         * lib/progreloc.c (get_full_program_name): Define via prototype.
79375         * lib/setenv.c (clearenv): Likewise.
79376         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
79377         needed.
79378         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
79379         (malloc, memcpy): Remove decls.
79380         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
79381         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
79382         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79383         (memcpy): Remove macro.
79384         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
79385         (__P): Remove.  All uses removed.
79386         (PTR): Remove.  All uses changed to void *.
79387         (CHAR_BIT, NULL): Remove.
79388         (spaces, zeros, memset_space, memset_zero)
79389         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
79390         Remove.
79391         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
79392         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
79393         Define with prototype.
79394         Remove now-unnecessary prototype decl.
79395         (extra_args_spec): Assume ANSI C.  All uses changed.
79396         (extra_args_spec_iso): Remove.
79397         (my_strftime, emacs_strftimeu): Define via prototype.
79398         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
79399         unconditionally.
79400         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
79401         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
79402         (strtoul, strtol): Remove decls.
79403         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
79404         LONG_MAX): Remove.
79405         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79406         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
79407         (LOCALE_PARAM_PROTO): New macro.
79408         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
79409         (INTERNAL (strtol), strtol): Define with a prototype.
79410         (PARAMS): Remove.  All uses removed.
79411         * lib/tempname.c: Include <string.h> unconditionally.
79412         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
79413         * lib/xgethostname.c (main): Define with a prototype.
79414         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
79415         Include <stdlib.h> unconditionally.
79416         (calloc, malloc, realloc, free): Remove decls.
79417         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
79418         Include <stdlib.h> unconditionally.  Sort include file names.
79419         (strtod): Remove.
79420         (xstrtod): Define with a prototype.
79421         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
79422         (strtol, strtoul): Remove decls.
79423
79424 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79425
79426         More patches to assume C89 or better.
79427         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
79428         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
79429         string.h, memchr, STDC_HEADERS.
79430
79431 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79432
79433         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
79434         Include <stdlib.h>, <string.h> unconditionally.
79435         Remove now-unnecessary cast to char *.
79436         * lib/strnlen.c: Include <string.h> unconditionally.
79437         * lib/yesno.c (yesno): Define with a prototype.
79438
79439 2003-09-11  Bruno Haible  <bruno@clisp.org>
79440
79441         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
79442
79443 2003-09-10  Jim Meyering  <jim@meyering.net>
79444
79445         * lib/error.c: Correct indentation of cpp directives.
79446
79447 2003-09-10  Bruno Haible  <bruno@clisp.org>
79448
79449         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
79450         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
79451         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
79452         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
79453         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
79454         <stdlib.h> and <string.h> checks.
79455         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
79456         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
79457
79458 2003-09-10  Bruno Haible  <bruno@clisp.org>
79459
79460         * lib/strcspn.c: Include <string.h> unconditionally.
79461         * lib/strpbrk.c: Include <string.h> unconditionally.
79462         * lib/strstr.c: Include <string.h> unconditionally.
79463         * lib/unicodeio.c: Include <string.h> unconditionally.
79464         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
79465         * lib/unsetenv.c: Likewise.
79466         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
79467         * lib/yesno.c: Include <stdlib.h> unconditionally.
79468         (rpmatch): Add prototype.
79469
79470 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79471
79472         More patches to assume C89 or better.
79473         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
79474         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
79475         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
79476         or for string.h.
79477         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
79478         stdlib.h.
79479         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
79480         C headers.
79481         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
79482         string.h.
79483         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
79484         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
79485         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
79486         or for string.h.
79487         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
79488         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
79489         C headers.
79490         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
79491         memcpy.
79492         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
79493         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
79494         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
79495         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
79496         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
79497         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
79498         string.h, free.
79499         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
79500         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
79501         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
79502         C headers, or for string.h.
79503         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
79504         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
79505         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
79506         headers, memory.h, stdlib.h, string.h, strings.h.
79507         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
79508         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
79509         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
79510         strchr.
79511         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
79512         headers, memory.h, string.h.
79513         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
79514         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
79515         free.
79516         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
79517         headers.
79518         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
79519         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
79520         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
79521         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
79522         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
79523
79524 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79525
79526         More K&R removal.
79527
79528         * lib/acosl.c (main): Use a prototype.
79529         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
79530         tanl.c: Likewise.
79531
79532         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
79533
79534         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
79535         (getopt, etopt_long, getopt_long_only, _getopt_internal)
79536         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
79537         with a prototype.
79538         * lib/getopt.c (const): Remove macro.
79539         Include <string.h> unconditionally.
79540         (my_index): Remove; all uses changed to strchr.
79541         (strlen): Remove decl.
79542         (exchange): Remove forward decl; no longer needed.
79543         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
79544         Define with prototype.
79545         * lib/getopt1.c (const): Remove macro.
79546         (getopt_long, getopt_long_only, main): Define with prototype.
79547
79548         * lib/getugroups.c: Include <string.h> unconditionally.
79549
79550         * lib/getusershell.c: Include <stdlib.h> unconditionally.
79551         (getusershell, setusershell, endusershell, readname, main):
79552         Define with prototypes.
79553
79554         * lib/group-member.c: Include group-member.h first.
79555         Include <stdlib.h> unconditionally.
79556
79557         * lib/hard-locale.c: Include hard-locale.h first.
79558         Include <stdlib.h>, <string.h> unconditionally.
79559
79560         * lib/hash.c (free, malloc): Remove decls.
79561         Include <stdlib.h> unconditionally.
79562
79563         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
79564         (getenv): Do not declare.
79565
79566         * lib/idcache.c: Include <string.h> unconditionally.
79567
79568         * lib/long-options.c: Include long-options.h first, to test interface.
79569         Include <stdlib.h> unconditionally.
79570
79571         * lib/makepath.c: Include makepath.h first, to test interface.
79572         Include <stdlib.h> and <string.h> unconditionally.
79573
79574         * lib/linebuffer.c: Include <stdlib.h>.
79575         (free): Remove decl.
79576
79577         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
79578         stddef.h. rpl_malloc returns void *, not char *.
79579         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
79580         prototype.
79581
79582         * lib/md5.h: Include <limits.h> unconditionally.
79583         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
79584         (__P): Remove; all uses removed.
79585         * lib/md5.c: Include "md5.h" first.
79586         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
79587         md5_buffer, md5_process_bytes, md5_process_block):
79588         Define with prototypes.
79589         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
79590         * lib/sha.c: Include "sha.h" first.
79591         Include <stdlib.h>, <string.h> unconditionally.
79592
79593         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
79594         * lib/memcmp.c (__ptr_t): Likewise.
79595         * lib/memrchr.c (__ptr_t): Likewise.
79596         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
79597         Include <string.h> unconditionally.
79598         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
79599         * lib/memchr.c: Include <stdlib.h> unconditionally.
79600         * lib/memchr.c (LONG_MAX): Remove.
79601         * lib/memrchr.c (LONG_MAX): Likewise.
79602         * lib/memchr.c (__memchr): Define via a prototype.
79603         * lib/memrchr.c (__memrchr): Likewise.
79604         * lib/memcmp.c (__P): Remove, and remove all uses.
79605         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
79606         Remove forward decls; no longer needed.
79607         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
79608         Use types required by C89 in prototype.
79609
79610         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
79611         * lib/savedir.c: Likewise.
79612         * lib/mkdir.c (free): Remove decl.
79613         * lib/rmdir.c (rmdir): Define with a prototype.
79614         * lib/savedir.c: Include savedir.h first, to test interface.
79615
79616         * lib/mktime.c (STDC_HEADERS): Remove.
79617         Include <stdlib.h>, <string.h> unconditionally.
79618
79619         * lib/modechange.c: Include <stdlib.h> unconditionally.
79620         (malloc): Remove decl.
79621
79622         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
79623         (free): Remove decl.
79624
79625         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
79626         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
79627         (This type really should be intptr_t, but that's a C99ism.)
79628         (_obstack_memcpy): Remove: all uses changed to memcpy.
79629         Include <string.h> unconditionally.
79630         (struct obstack): Assume __STDC__ for types of members
79631         chunkfun, freefun, extra_arg.
79632         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
79633         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
79634         obstack_begin, obstack_specify_allocation,
79635         obstack_specify_allocation_with_arg, obstack_chunkfun,
79636         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
79637         Remove unprototyped decls and the macros that use them.
79638         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
79639         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
79640         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
79641         (defined __STDC__ && __STDC__)]:
79642         Remove nonprototyped code.
79643         Include <stdlib.h> unconditionally.
79644         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
79645         _obstack_allocated_p, _obstack_free, obstack_free,
79646         _obstack_memory_used, print_and_abort):
79647         Define using prototypes.
79648         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
79649         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
79650         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
79651         obstack_next_free, obstack_object_size, obstack_room) [0]:
79652         Remove unused, unprototyped code.
79653
79654         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
79655
79656         * lib/physmem.c (physmem_total, physmem_available, main): Define
79657         with prototypes.
79658
79659         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
79660         (main): Define with a prototype.
79661
79662         * lib/posixver.c (getenv): Remove decl.
79663
79664         * lib/putenv.c (malloc): Returns void *, not char *.
79665         Include <string.h> unconditionally.
79666         (strchr, memcpy, NULL): Do not define.
79667
79668         * lib/readtokens.c: Include readtokens.h first, to test interface.
79669         Include <stdlib.h>, <string.h> unconditionally.
79670         (init_tokenbuffer): Define with a prototype.
79671
79672         * lib/regex.c (PARAMS): Remove.  All uses removed.
79673         All uses of _RE_ARGS removed, too.
79674         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79675         unconditionally.
79676         (bzero): Assume memset exists.
79677         (memcmp, memcpy, NULL): Remove.
79678         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79679         char, or assignments to local vars of type signed char.
79680         (init_syntax_once, PREFIX(extract_number_and_incr),
79681         PREFIX(print_partial_compiled_pattern),
79682         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79683         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79684         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79685         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79686         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79687         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79688         wcs_compile_range, byte_compile_range, truncate_wchar,
79689         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79690         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79691         count_mbs_length, wcs_re_match_2_internal,
79692         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79693         PREFIX(alt_match_null_string_p),
79694         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79695         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79696         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79697         now-unnecessary declaration, if any.
79698         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79699         regcomp, regexec):
79700         Remove now-unnecessary casts among pointer types.
79701         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79702
79703         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79704         (free): Remove decl.
79705
79706         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79707
79708         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79709         (free): Remove decl.
79710
79711         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79712         * lib/xgetcwd.c: Likewise.
79713
79714         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79715         (free): Remove decl.
79716
79717         * lib/strchrnul.c (strchrnul): Define with a prototype.
79718         Fix bug: c_in was not converted to char before searching.
79719
79720         The following changes are not K&R related:
79721
79722         * lib/group-member.h: Include <sys/types.h>, so that this file is
79723         self-contained.
79724         * lib/makepath.h: Likewise.
79725
79726         * lib/getusershell.c (readname, default_index, line_size, readname):
79727         Use size_t, not int, for sizes.
79728         (readname): If the size overflows, report an error instead of
79729         looping forever.
79730
79731 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79732
79733         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79734         libc.
79735
79736 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79737
79738         * README: New section: portability guidelines.
79739
79740 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79741
79742         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79743         C89 spec.
79744
79745 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79746
79747         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79748
79749 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79750
79751         Assume C89 or better; remove K&R cruft.
79752         A few of these changes were first proposed by Derek Robert Price
79753         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79754
79755         * lib/addext.c: Include <string.h> unconditionally.
79756         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79757         Don't declare getenv or malloc.
79758
79759         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79760         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79761         (NULL): Remove.
79762         (find_stack_direction, alloca): Use prototypes.
79763
79764         * lib/atexit.c (atexit): Define using a prototype.
79765
79766         * lib/basename.c, dirname.c, stripslash.c:
79767         Include <string.h> unconditionally.
79768
79769         * lib/bcopy.c: Include <stddef.h>.
79770         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79771
79772         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79773
79774         * lib/error.h (error, error_at_line, error_print_progname)
79775         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79776         * lib/error.c: Include error.h first, to check interface.
79777         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79778         (VA_START): Remove; all uses changeed to va_start.
79779         (exit, strerror): Remove decls.
79780         (error_print_progname): Prototype uncondionally.
79781         Don't include <errno.h>; no longer needed.
79782         (private_strerror): Remove.
79783         (error_tail): Always define.
79784         (error, error_at_line): Assume C89 or better; always use prototypes.
79785         * lib/fatal.c: Include "fatal.h" first, to test interface.
79786         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79787         (VA_START): Remove; all uses changed to va_start.
79788         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79789         this case.
79790         (exit): Remove decl.
79791         (fatal): Prototype unconditionally.  Assume va_start works.
79792         Abort at end, to pacify gcc.
79793
79794         * lib/euidaccess.c (main): Define with a prototype.
79795
79796         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79797
79798         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79799
79800         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79801         prototypes.
79802         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79803         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79804         (getenv): Remove decl.
79805         (fnmatch): Define using a prototype.
79806         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79807         (FCT): Define using a prototype.
79808
79809         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79810
79811         * lib/gethostname.c: Include <stddef.h>.
79812         (gethostname): Define with prototype.  Length is size_t, not int.
79813
79814 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79815
79816         Assume C89 or better; remove K&R cruft.
79817         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79818         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79819         string.h, getenv, malloc.
79820         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79821         headers.
79822         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79823         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79824         do not check for strerror.
79825         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79826         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79827         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79828         do not check for doprnt or vprintf.
79829         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79830         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79831
79832 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79833
79834         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79835         getversion.c should have been removed then, but was accidentally
79836         preserved.
79837
79838         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79839         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79840
79841 2003-09-08  Karl Berry  <karl@gnu.org>
79842
79843         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79844                 config, forget about prep.
79845
79846         * config/depcomp, missing: update from automake.
79847
79848 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79849
79850         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79851         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79852
79853 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79854
79855         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79856         copy_tm_result.  Bug reported by Simon Josefsson in
79857         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79858
79859 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79860
79861         * m4/time_r.m4: New file.
79862         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79863         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79864         is. Check for timegm declaration.
79865         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79866         Do not check for gmtime_r.
79867         Replace mktime if __mktime_internal does not exist and if mktime
79868         hasn't been replaced already.
79869
79870 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79871
79872         * lib/time_r.c, lib/time_r.h: New files.
79873
79874         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79875         __localtime_r.
79876         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79877         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79878
79879         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79880         __gmtime_r.
79881         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79882         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79883         Include <time_r.h>.
79884
79885         * lib/timegm.c: Switch to glibc implementation, with the following
79886         changes:
79887         [defined HAVE_CONFIG_H]: Include <config.h>.
79888         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79889         (__mktime_internal) [!defined _LIBC]: New decl.
79890         (__gmtime_r) [!defined _LIBC]: New macro and function.
79891         (timegm): Use a prototype, since gnulib assumes C89.
79892         Do not bother declaring tmp to be const, as it's not really usefu.
79893         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79894         (timegm): Declare only if HAVE_DECL_TIMEGM.
79895
79896 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79897
79898         * MODULES.html.sh (func_all_modules): Add time_r.
79899         * modules/time_r: New file.
79900         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79901         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79902
79903 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79904
79905         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79906         Bug reported by Lute Kamstra in
79907         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79908
79909         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79910         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79911         course with correspondingly smaller numbers for tomorrow and
79912         yesterday.  From Tadayoshi Funaba.  Originally installed into
79913         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79914         coreutils merge?).
79915
79916 2003-08-31  Simon Josefsson  <jas@extundo.com>
79917
79918         * modules/timegm: New file.
79919         * MODULES.html.sh (func_all_modules): Add timegm.
79920
79921 2003-08-31  Simon Josefsson  <jas@extundo.com>
79922
79923         * m4/timegm.m4: New file.
79924
79925 2003-08-31  Simon Josefsson  <jas@extundo.com>
79926
79927         * lib/timegm.h: New file.
79928         * lib/timegm.c: New file.  Based on
79929         wget-1.8.2/src/http.c:mktime_from_utc.
79930
79931 2003-08-31  Karl Berry  <karl@gnu.org>
79932
79933         * lib/argp.h: update from libc.
79934
79935 2003-08-28  Bruno Haible  <bruno@clisp.org>
79936
79937         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79938         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79939         followed by '#define fnmatch fnmatch_posix' gives an error.
79940
79941 2003-08-28  Bruno Haible  <bruno@clisp.org>
79942
79943         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79944         warning on QNX, which defines O_BINARY to 000000.
79945
79946 2003-08-27  Jim Meyering  <jim@meyering.net>
79947
79948         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79949         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79950         would fail after 32.  Reported by Danny Levinson.  Details here:
79951         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79952
79953 2003-08-24  Bruno Haible  <bruno@clisp.org>
79954
79955         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79956         MSVC7 <stdio.h> is included later.
79957
79958 2003-08-22  Simon Josefsson  <jas@extundo.com>
79959
79960         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79961
79962 2003-08-20  Karl Berry  <karl@gnu.org>
79963
79964         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79965
79966 2003-08-20  Bruno Haible  <bruno@clisp.org>
79967
79968         * modules/progname: New file.
79969         * MODULES.html.sh (func_all_modules): Add progname.
79970
79971 2003-08-20  Bruno Haible  <bruno@clisp.org>
79972
79973         * lib/progname.h: New file, from GNU gettext.
79974         * lib/progname.c: New file, from GNU gettext.
79975         * lib/progreloc.c: New file, from GNU gettext.
79976
79977 2003-08-19  Jim Meyering  <jim@meyering.net>
79978
79979         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79980         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79981
79982 2003-08-19  Bruno Haible  <bruno@clisp.org>
79983
79984         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79985         more.
79986
79987 2003-08-19  Bruno Haible  <bruno@clisp.org>
79988
79989         * lib/xstrdup.c: Assume <string.h> exists.
79990
79991 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79992
79993         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79994         in makefile rules.
79995
79996 2003-08-18  Jim Meyering  <jim@meyering.net>
79997
79998         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79999         * m4/lib-ld.m4: Likewise.
80000
80001 2003-08-18  Jim Meyering  <jim@meyering.net>
80002
80003         * lib/setenv.h: Indent nested cpp directive.
80004         * lib/vasnprintf.c: Remove trailing blanks.
80005
80006 2003-08-17  Simon Josefsson  <jas@extundo.com>
80007
80008         * modules/xstrndup: New file.
80009         * MODULES.html.sh (func_all_modules): Add xstrndup.
80010
80011 2003-08-17  Simon Josefsson  <jas@extundo.com>
80012
80013         * modules/argp: Fix autoconf macro name. Add more dependencies.
80014
80015 2003-08-17  Simon Josefsson  <jas@extundo.com>
80016
80017         * m4/xstrndup.m4: New file.
80018
80019 2003-08-17  Simon Josefsson  <jas@extundo.com>
80020
80021         * m4/argp.m4: New file.
80022
80023 2003-08-17  Simon Josefsson  <jas@extundo.com>
80024             Bruno Haible  <bruno@clisp.org>
80025
80026         * lib/xstrndup.h: New file.
80027         * lib/xstrndup.c: New file.
80028
80029 2003-08-17  Bruno Haible  <bruno@clisp.org>
80030
80031         * modules/strndup (Files, Include): Add lib/strndup.h.
80032
80033 2003-08-17  Bruno Haible  <bruno@clisp.org>
80034
80035         * modules/euidaccess (Files): Add lib/euidaccess.h.
80036
80037 2003-08-17  Bruno Haible  <bruno@clisp.org>
80038
80039         * lib/strndup.h: New file.
80040
80041 2003-08-17  Bruno Haible  <bruno@clisp.org>
80042
80043         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
80044         like AC_GNU_SOURCE.
80045         * modules/extensions (configure.ac): Comment out the invocation of
80046         gl_USE_SYSTEM_EXTENSIONS.
80047
80048 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80049
80050         Merges from coreutils, etc.
80051         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
80052         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
80053         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
80054         fixing a typo.
80055         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
80056         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
80057
80058 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80059
80060         Document merge from coreutils.
80061         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
80062         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
80063         * modules/utime: Add m4/utimes-null.m4.
80064
80065 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80066
80067         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
80068         space, undoing this 2003-08-12 change:
80069         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80070
80071 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80072
80073         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
80074         strtoul.c from libc, undoing this 2003-08-12 change:
80075         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80076
80077 2003-08-16  Jim Meyering  <jim@meyering.net>
80078
80079         Merges from coreutils.
80080         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
80081         prefix.  Adjust cache variables similarly.  Create 500 rather than
80082         just 300 files, to exercise bug on Darwin6.5, too.
80083         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
80084         $missing_dir.
80085         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
80086         AM_SYS_POSIX_TERMIOS.
80087         Reported by mkc@mathdogs.com.
80088         Also change use of $am_cv_sys_posix_termios
80089         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
80090         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
80091         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
80092         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
80093         in /proc/mounts until it finds one with matching device number.  This
80094         is unnecessary when the FILE argument *is* a mount point.  No stat call
80095         is necessary in that case.  So, disable the statvfs-testing code on
80096         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
80097         as RedHat bug# 84846.
80098         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80099         to 1MB, so as not to render systems with no stack size limit (e.g.,
80100         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80101         Include <unistd.h>.  On some systems,
80102         it is required for the definition of _SC_PAGESIZE.
80103
80104 2003-08-16  Jim Meyering  <jim@meyering.net>
80105
80106         Merge from coreutils.
80107         * lib/xstrtoimax.c: #else #if -> #elif.
80108         * lib/xstrtoumax.c: Likewise.
80109
80110 2003-08-16  Jim Meyering  <jim@meyering.net>
80111
80112         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
80113         * m4/utimes.m4: Removed.
80114         * m4/utimes-null.m4: Renamed from utimes.m4.
80115
80116         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80117         to 1MB, so as not to render systems with no stack size limit (e.g.,
80118         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80119         Include <unistd.h>.  On some systems,
80120         it is required for the definition of _SC_PAGESIZE.
80121
80122 2003-08-16  Jim Meyering  <jim@meyering.net>
80123         and Paul Eggert  <eggert@cs.ucla.edu>
80124
80125         Merges from coreutils, etc.
80126
80127         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
80128         using the latest version from cvs.  This avoids problems with #line
80129         directives using a vendor (Sun) compiler.
80130         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
80131         Don't set GETGROUPS_LIB here; now it's
80132         done via getgroups.m4's wrapper function.
80133         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
80134         rather than just in sh-util/configure.in, so that the
80135         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
80136         same.
80137         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
80138         AC_FUNC_GETLOADAVG where to find getloadavg.c.
80139         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
80140         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
80141         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
80142         Remove code that is now done by the newly-required macros.
80143         Append $(EXEEXT) to DF_PROG.
80144         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
80145         Do not invoke or require the following here,
80146         since prereq.m4 or some gnulib .m4 now does this for us:
80147         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
80148         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
80149         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
80150         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
80151         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
80152         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
80153         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
80154         AC_FUNC_OBSTACK.
80155         Do not replace the following functions, as this is now the job
80156         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
80157         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
80158         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
80159         atexit getpass, strdup, getpagesize.
80160         Replace 'raise'.
80161         Do not check for the following functions, as this is now the job
80162         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
80163         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
80164         setregid.
80165         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
80166         Check for sys/sysctl.h.
80167         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
80168         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
80169         of checking for ssize_t ourselves.
80170
80171         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
80172         Require every macro that gnulib/modules/* suggests for us.
80173         (jm_PREREQ_ADDEXT): New macro.
80174         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
80175         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
80176
80177         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
80178         (gl_PHYSMEM): Use it.
80179         Also check for `table' function.
80180         Check for new headers and functions.
80181         Add check for sys/sysmp.h.
80182         With suggestions from Kaveh Ghazi.
80183         Ignore headers that are present but cannot be compiled.  This
80184         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
80185         C 5.4.
80186
80187 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80188
80189         Document merge from coreutils.
80190         * modules/userspec: Depend on posixver.
80191         * modules/strftime: Depend on tzset.
80192
80193 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80194
80195         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
80196         rather than tab, after '#' in shell-script copyright notices.
80197         Suggested by Bruno Haible.
80198
80199 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80200
80201         * config/srclist-update: Use three spaces, rather than tab, after '#'
80202         in shell-script copyright notices.  Suggested by Bruno Haible.
80203         Remove unnecessary parenthesization in regular expression.
80204
80205 2003-08-15  Jim Meyering  <jim@meyering.net>
80206
80207         Merge from coreutils.
80208         * lib/xgethostname.c: Include <stdlib.h>.
80209         (xghostname): Don't exit for anything other than memory-related
80210         failure; just return NULL.
80211         * lib/userspec.c: Include "posixver.h".
80212         (parse_user_spec): Accept `.' as a separator only
80213         in pre-POSIX-200112 mode.
80214         * lib/strtoimax.c: Use #elif rather than #else #if.
80215         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
80216         Remove function, now that we can rely on a working tzset function.
80217         [!_LIBC]: Ensure that the required autoconf test has been run.
80218         [!defined _NL_CURRENT && HAVE_STRFTIME]:
80219         Use underlying_strftime for %r.
80220         * lib/sha.c: Merge in some clean-up and optimization changes from
80221         glibc.
80222         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
80223         Ensure that it is a multiple of 64.
80224         Rearrange loop exit tests so as to avoid performing an
80225         additional fread after encountering an error or EOF.
80226         * lib/realloc.c: Update copyright date.
80227
80228 2003-08-15  Jim Meyering  <jim@meyering.net>
80229         and Paul Eggert  <eggert@twinsun.com>
80230
80231         Merge from coreutils.
80232         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
80233         member but strut utmpx does not.  Needed for AIX 4.3.3.
80234         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
80235
80236 2003-08-15  Jim Meyering  <jim@meyering.net>
80237         and Paul Eggert  <eggert@cs.ucla.edu>
80238
80239         Merges from coreutils, etc.
80240         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
80241         Require gl_FUNC_TZSET_CLOBBER.
80242         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
80243         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
80244         members.
80245
80246 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80247
80248         Help the merge from coreutils.
80249         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
80250         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
80251         * m4/tzset.m4: Use it too.
80252
80253 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80254
80255         * modules/tzset: New file.
80256
80257 2003-08-14  Jim Meyering  <jim@meyering.net>
80258
80259         Merges from coreutils.
80260         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
80261         variable names, rather than @FNMATCH_H@.
80262         * modules/alloca: Likewise for $(ALLOCA_H).
80263
80264         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
80265         the three copies of the literal target, `fnmatch.h'.
80266         * modules/alloca (alloca.h): Likewise.
80267
80268 2003-08-14  Jim Meyering  <jim@meyering.net>
80269
80270         Merge from coreutils.
80271         * m4/tzset.m4: New file.
80272         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
80273         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
80274         otherwise, AIX 5.1 systems would end up using the latter.
80275         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
80276         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
80277         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
80278         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
80279
80280 2003-08-14  Jim Meyering  <jim@meyering.net>
80281
80282         Merge from coreutils.
80283         * lib/obstack.h: Whitespace changes.
80284         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
80285         and xcalloc return values.
80286         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
80287         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
80288         hang on OSF/1 5.1 for DIR on both local and remote file systems.
80289         Reported by (and fix confirmed by) Nelson H. F. Beebe.
80290         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80291         error from mntctl.
80292         Use mntctl's return value to drive the entry-processing loop, since
80293         we can't rely on the value of the vmt_length member in the last
80294         entry.  On some systems doing so could result in exhausting
80295         virtual memory.  Based in part on a patch from Mike Jetzer.
80296
80297 2003-08-14  Jim Meyering  <jim@meyering.net>
80298         and Paul Eggert  <eggert@twinsun.com>
80299
80300         Merges from coreutils, plus other fixes.
80301         * lib/physmem.c: Merge in portability changes from gcc/libiberty
80302         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
80303         for credits and details.  Thanks to Kaveh Ghazi for helping
80304         to keep these files in sync.
80305         (ARRAY_SIZE): Define it.
80306         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
80307         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
80308         (memcasecmp): Don't assume size_t fits in unsigned int.
80309         Remove casts and duplicate code.
80310         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
80311         (memcpy): Remove definition.
80312         Merge in some clean-up and optimization changes from glibc.
80313         [BLOCKSIZE]: Move definition to top of file.
80314         Ensure that it is a multiple of 64.
80315         Rearrange loop exit tests so as to avoid performing an
80316         additional fread after encountering an error or EOF.
80317         * lib/md5.h (md5_uintptr): Define.
80318         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
80319         return to the initial working directory.  Preserve errno
80320         for caller.
80321         * lib/idcache.c: Include "xalloc.h".
80322         (xmalloc, xrealloc): Remove decls.
80323         (getuser): Remove casts no longer required in C89.
80324         * lib/human.c: Include stdio.h, for sprintf.
80325         * lib/group-member.c: Include "xalloc.h".
80326         (xmalloc, xrealloc): Remove decls.
80327         (get_group_info): Remove casts no longer required in C89.
80328         * lib/getusershell.c (readname): Remove casts no longer required in
80329         C89.
80330         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
80331         * lib/getline.c: Whitespace fix, from coreutils.
80332
80333 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80334
80335         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
80336         Check for isascii.
80337
80338         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80339         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80340         Undo previous (whitespace-only) change.
80341
80342 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80343
80344         * lib/exclude.c: Include <ctype.h>
80345         (IN_CTYPE_DOMAIN): New macro.
80346         (is_space): New fn.
80347         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
80348         and empty lines.
80349
80350         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80351         Undo previous (whitespace-only) change.
80352
80353 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80354
80355         * config/srclist-update: Change update back to the old behavior,
80356         leaving whitespace alone.  Use one 'sed' command rather than a
80357         pipeline.
80358         (fixlicense): Now a variable, not a function.
80359         (remove_trailing_blanks): Remove.
80360         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
80361         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80362         Undo previous (whitespace-only) change.
80363
80364 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80365
80366         Merge from coreutils.
80367         * modules/euidaccess: Add lib_SOURCES, include for new
80368         file euidaccess.h
80369
80370 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80371
80372         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80373         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80374         Normalize leading white space and remove trailing white space.
80375
80376         Merge from coreutils
80377         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
80378
80379         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
80380         0.12.1.  These files are now being upgraded automatically by
80381         ../config/srclist-update.
80382
80383 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80384
80385         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80386         Normalize leading white space and remove trailing white space.
80387         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
80388         notice, as per ../config/srclist-update.
80389
80390         Merge from coreutils.
80391         * lib/euidaccess.h: New file.
80392         * lib/euidaccess.c: Include it.
80393         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
80394         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
80395         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
80396
80397 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80398
80399         * config/srclist-update: Add copyright notice.
80400         (remove_id_lines, remove_trailing_blanks): New constants.
80401         (fixfile): Use them to normalize spacing a bit in copied files.
80402         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80403         Normalize leading white space and remove trailing white space.
80404
80405         * config/texinfo.tex: Sync with texinfo.
80406
80407         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
80408         strtoul.c from libc, to merge coreutils whitespace changes.
80409
80410         * config/srclist.txt: Get the following m4 files from gettext:
80411         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80412         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
80413         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
80414         wint_t.m4.
80415
80416 2003-08-12  Karl Berry  <karl@gnu.org>
80417
80418         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
80419         been made.
80420
80421 2003-08-11  Paul Eggert  <eggert@twinsun.com>
80422
80423         * modules/gnu-source, m4/gnu-source.m4:
80424         Remove; we're assuming Autoconf 2.54 or later now.
80425         Suggested by Bruno Haible.
80426         * MODULES.html.sh (func_all_modules): Remove gnu-source.
80427
80428 2003-08-11  Bruno Haible  <bruno@clisp.org>
80429
80430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
80431
80432 2003-08-11  Bruno Haible  <bruno@clisp.org>
80433
80434         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
80435         (vasnprintf): Use it instead of wcslen.
80436
80437 2003-08-11  Bruno Haible  <bruno@clisp.org>
80438
80439         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
80440         value to ensure that _Bool promotes to int. Use #define for _Bool when
80441         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
80442
80443 2003-08-10  Karl Berry  <karl@gnu.org>
80444
80445         * lib/regex.h: update from libc (whitespace fix).
80446
80447 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80448
80449         Merge some files from coreutils.  These changes were
80450         originally made by Jim Meyering.
80451         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
80452         many older Unixes require this.
80453         * lib/alloca.c (alloca): Remove cast to argument of free;
80454         no longer needed in C89.
80455         * lib/alloca_.h, regex.h: Fix white space to match
80456         what GNU indent does.
80457
80458 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80459
80460         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
80461         apparently Emacs's Unicode mode got confused before my 2003-08-05
80462         checkin.
80463
80464 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80465
80466         * m4/extensions.m4: New file.
80467         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
80468         Require gl_USE_SYSTEM_EXTENSIONS.
80469         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
80470         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
80471
80472 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80473
80474         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
80475         * modules/extensions, modules/gnu-source: New files.
80476         * modules/timespec, modules/unlocked-io: Depend on extensions.
80477
80478 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80479
80480         * modules/restrict: New file.
80481         * MODULES.html.sh (func_all_modules): Add restrict.
80482         * modules/regex: Depend on restrict.
80483
80484 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80485
80486         * m4/restrict.m4: New file.
80487         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
80488
80489 2003-08-07  Bruno Haible  <bruno@clisp.org>
80490
80491         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
80492         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
80493
80494 2003-08-07  Bruno Haible  <bruno@clisp.org>
80495
80496         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
80497         makes the module 'getndelim2' compatible with the module 'getline'.
80498
80499 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80500
80501         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
80502         byte with "\201" to avoid glitches when editing that source file
80503         with multi-gnome-terminal.
80504
80505 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80506
80507         * lib/bumpalloc.h: Remove.
80508
80509 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80510
80511         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
80512         * modules/bumpalloc: Remove.
80513
80514 2003-08-04  Paul Eggert  <eggert@twinsun.com>
80515
80516         * lib/getloadavg.c: Change copyright notice and spacing to conform to
80517         GNU coding style.
80518
80519         Merge from coreutils.
80520         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
80521         1. From glibc.
80522         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
80523         from Karl Berry, implemented by Jim Meyering.
80524         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
80525         from Dmitry V. Levin.
80526         Remove anachronistic cast of xrealloc.
80527         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
80528         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
80529         type. Otherwise, it wouldn't compile with at least /bin/cc on
80530         ymp-cray-unicos9.0.2.X.
80531         Combine two mostly-identical uses of alloca into one.
80532         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
80533
80534 2003-08-04  Dave Love  <d.love@dl.ac.uk>
80535
80536         [From Emacs.]
80537
80538         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
80539         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
80540         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
80541         obsolete NLIST_NAME_UNION.
80542         [__GNU__]: Undef BSD and FSCALE.
80543         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
80544
80545 2003-08-03  Paul Eggert  <eggert@twinsun.com>
80546
80547         * lib/stdbool_.h (_Bool): Make it signed char, instead of
80548         an enum type, so that it's guaranteed to promote to int.  See:
80549         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
80550
80551 2003-08-03  Karl Berry  <karl@gnu.org>
80552
80553         * config/depcomp: update from automake.
80554
80555 2003-07-31  Paul Eggert  <eggert@twinsun.com>
80556
80557         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
80558         (strerror): Don't assume that a printable int fits in 14 bytes.
80559
80560 2003-07-31  Bruno Haible  <bruno@clisp.org>
80561
80562         * modules/getpass-gnu: New file.
80563         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
80564
80565 2003-07-31  Bruno Haible  <bruno@clisp.org>
80566
80567         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
80568
80569 2003-07-24  Karl Berry  <karl@gnu.org>
80570
80571         * config/missing: update from automake.
80572
80573 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
80574             Bruno Haible  <bruno@clisp.org>
80575
80576         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
80577         * lib/getline.c (getline, getdelim): Likewise.
80578         Remove _GNU_SOURCE define; now it's defined in config.h through
80579         m4/getline.m4.
80580
80581 2003-07-23  Karl Berry  <karl@gnu.org>
80582
80583         * config/config.sub: update from prep.
80584
80585 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80586
80587         * modules/xalloc (Depends-on): Add exitfail.
80588         * modules/xmemcoll: Likewise.
80589
80590 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80591
80592         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
80593         over-parenthesization in macros.
80594
80595         Sync with coreutils.
80596
80597         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
80598         required by C99.
80599
80600         Use `exit_failure' for xalloc and xmemcoll instead of their own
80601         private exit-failure variables.
80602         * lib/xalloc.h (xalloc_exit_failure): Remove.
80603         * lib/xmalloc.c: Likewise.  Include exitfail.h.
80604         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
80605         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
80606         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
80607         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
80608
80609 2003-07-20  Jim Meyering  <jim@meyering.net>
80610
80611         * modules/closeout (Depends-on): Add exitfail.
80612         Suggestion from Bruno Haible.
80613
80614 2003-07-19  Karl Berry  <karl@gnu.org>
80615
80616         * config/config.sub: update from prep.
80617
80618 2003-07-18  Paul Eggert  <eggert@twinsun.com>
80619
80620         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
80621         Remove.
80622         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
80623         to test that it can stand by itself.  Include "exitfail.h".
80624         Clients should set exit_failure instead.
80625         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
80626
80627 2003-07-18  Bruno Haible  <bruno@clisp.org>
80628
80629         * modules/getndelim2: New file.
80630         * modules/getline: Share files with module getndelim2.
80631         * modules/getnline: Depend on getndelim2 instead of sharing files with
80632         it. Add getnline.c to lib_SOURCES.
80633         * MODULES.html.sh (func_all_modules): Add getndelim2.
80634
80635 2003-07-18  Bruno Haible  <bruno@clisp.org>
80636
80637         * m4/getndelim2.m4: New file.
80638         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
80639         invoke gl_PREREQ_GETNDELIM2.
80640         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
80641         gl_PREREQ_GETNDELIM2.
80642         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
80643         gl_GETNDELIM2.
80644
80645 2003-07-18  Bruno Haible  <bruno@clisp.org>
80646
80647         * lib/getndelim2.h: New file.
80648         * lib/getndelim2.c: Make into a module of its own. Include config.h,
80649         getndelim2.h.
80650         (getndelim2): Make non-static. Change return type to ssize_t.
80651         * lib/getline.h: Change argument names.
80652         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
80653         * lib/getnline.c: Include getndelim2.h.
80654
80655 2003-07-18  Andreas Schwab  <schwab@suse.de>
80656
80657         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
80658
80659 2003-07-17  Karl Berry  <karl@gnu.org>
80660
80661         * config/config.sub: update from prep.
80662
80663 2003-07-17  Bruno Haible  <bruno@clisp.org>
80664
80665         * modules/getnline: New file.
80666         * modules/getline: Add lib/getndelim2.c to source file list.
80667         * MODULES.html.sh (func_all_modules): Add getnline.
80668
80669 2003-07-17  Bruno Haible  <bruno@clisp.org>
80670
80671         * m4/getnline.m4: New file.
80672
80673 2003-07-17  Bruno Haible  <bruno@clisp.org>
80674
80675         * m4/Makefile.am.in: Remove file.
80676         * m4/Makefile.am: Remove file.
80677         * m4/Makefile.in: Remove file.
80678
80679 2003-07-17  Bruno Haible  <bruno@clisp.org>
80680
80681         * lib/getnline.h: New file.
80682         * lib/getnline.c: New file.
80683         * lib/getndelim2.c: New file, extracted from getline.c.
80684         (getndelim2): Renamed from getdelim2, with added nmax argument.
80685         * lib/getline.c: Include getndelim2.c.
80686         (getdelim2): Moved out to getndelim2.c.
80687         (getline, getdelim): Update.
80688
80689 2003-07-17  Bruno Haible  <bruno@clisp.org>
80690
80691         * lib/Makefile.am: Remove file.
80692         * lib/Makefile.in: Remove file.
80693
80694 2003-07-17  Bruno Haible  <bruno@clisp.org>
80695
80696         * configure.in: Remove file.
80697         * Makefile.in: Remove file.
80698
80699 2003-07-17  Bruno Haible  <bruno@clisp.org>
80700
80701         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80702
80703 2003-07-16  Karl Berry  <karl@gnu.org>
80704
80705         * config/srclist-update: was running fixlicense twice, which caused
80706                 texinfo.tex to be nullified for some reason.  Simplify,
80707                 $gplsrc is no longer needed as far as I can see?
80708
80709 2003-07-16  Jim Meyering  <jim@meyering.net>
80710
80711         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80712
80713 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80714
80715         * config/srclist.txt: Get the following files from gettext-runtime/intl
80716         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80717         ref-del.sin.  From Bruno Haible.
80718         * config/srclist-update (fixfile): Change grep pattern again, since the
80719         previous fix didn't work (there was another trailing $).  Use
80720         '[$]' to escape the $s.
80721
80722 2003-07-15  Karl Berry  <karl@gnu.org>
80723
80724         * lib/vasnprintf.c: update from gettext.
80725
80726 2003-07-15  Karl Berry  <karl@gnu.org>
80727
80728         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80729         gets expanded when surrounded by '$'.
80730
80731 2003-07-15  Jim Meyering  <jim@meyering.net>
80732
80733         * modules/save-cwd: Don't depend on error.  From Derek Price.
80734
80735 2003-07-15  Jim Meyering  <jim@meyering.net>
80736
80737         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80738
80739 2003-07-14  Simon Josefsson  <jas@extundo.com>
80740
80741         * modules/mempcpy: New file.
80742         * MODULES.html.sh (func_all_modules): Add mempcpy.
80743
80744 2003-07-14  Simon Josefsson  <jas@extundo.com>
80745
80746         * m4/mempcpy.m4: New file.
80747
80748 2003-07-14  Simon Josefsson  <jas@extundo.com>
80749
80750         * lib/mempcpy.h: New file.
80751         * lib/mempcpy.c: New file.
80752
80753 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80754
80755         * modules/getdate, modules/posixtm: Depend on mktime.
80756
80757 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80758
80759         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80760         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80761         unicodeio.c, unicodeio.h, unlocked-io.h:
80762         Switch from LGPL to GPL.
80763
80764 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80765
80766         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80767         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80768         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80769         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80770         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80771         updated automatically by ../config/srclist-update.  This changes
80772         their license from LPGL to GPL.
80773
80774 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80775
80776         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80777         assumed to refer to the root of the most recent stable gettext version.
80778         * config/srclistvars.sh: Add defaults for eggert.
80779         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80780         Match "This program" as well as "The program".  This is needed
80781         for gettext.
80782
80783 2003-07-14  Jim Meyering  <jim@meyering.net>
80784
80785         Don't emit diagnostics.  Let callers do that.
80786         * lib/save-cwd.c: Don't include "error.h".
80787         (save_cwd): Don't call error.  Ensure that errno is valid
80788         when returning nonzero.
80789
80790         * lib/save-cwd.h (restore_cwd): Update prototype.
80791         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80792         Simplify.  Don't call error upon failure.  Let callers do that.
80793         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80794         when auditing is enabled.  But don't bother updating the #if.
80795
80796 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80797
80798         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80799         it breaks C++ compilation.
80800         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80801
80802 2003-07-10  Simon Josefsson  <jas@extundo.com>
80803
80804         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80805
80806 2003-07-10  Jim Meyering  <jim@meyering.net>
80807
80808         * m4/clock_time.m4: Remove trailing blank.
80809         * m4/intmax_t.m4: Likewise.
80810
80811 2003-07-10  Jim Meyering  <jim@meyering.net>
80812
80813         * lib/vasnprintf.c: Remove trailing blanks.
80814         Make cpp indentation consistent.
80815
80816 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80817
80818         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80819         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80820         Switch from LGPL to GPL.
80821
80822 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80823
80824         * config/srclist.txt: Sort sublists.  Add
80825         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80826         that differ from gnulib for one reason or another; we'd like this list
80827         to be smaller but for now let's document what we have.
80828
80829 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80830
80831         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80832         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80833         and sweeter "eval x=$x".
80834         * config/srclist.txt: Get lib/argp* from glibc.
80835
80836 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80837
80838         * lib/mktime.c: Fix some boundary cases and remove need for floating
80839         point.
80840
80841         Issue a compile-time diagnostic if time_t is floating point, or if
80842         two's complement arithmetic is not in effect, or if arithmetic
80843         right shift does not propagate the sign.  These assumptions were
80844         all in the original code but they weren't checked.
80845
80846         (TIME_T_MIDPOINT, verify): New macros.
80847         (__isleap): Remove; it has integer overflow problems.
80848         (leapyear): New function, without those problems.
80849         (ydhms_tm_diff): Remove; splitting into two parts.
80850         (ydhms_diff): New function, containing the arithmetic part of
80851         the old ydhms_tm_diff function.  Issue a compile-time
80852         diagnostic if we are not using C99 integer division.
80853         Avoid casts when possible.
80854         (guess_time_tm): New function, containing the checking part of
80855         the old ydhms_tm_diff function.  Return the new value, rather than
80856         the difference between it and the old.  Accept a new argument T
80857         so that *T specifies the old value.  Check for overflow in the result.
80858
80859         (__mktime_internal): Use a time_t offset, not a long int offset.
80860         This undoes the 2003-06-04 change, which is no longer needed now
80861         that we have better overflow checking.
80862         (localtime_offset): Likewise.
80863
80864         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80865         and long are 64-bit but int is only 32-bit.
80866         (ydhms_diff): Use long int to store year1 and yday1.
80867         Issue a compile-time diagnostic if long int is not wide enough.
80868
80869         (__mktime_internal): Use long int to store adjusted year and yday.
80870         Use plain C rather than preprocessor commands, if that doesn't
80871         affect efficiency.
80872         Check for overflow (and try to repair) after each probe
80873         rather than checking only at the very end.  This avoids some bugs
80874         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80875         does not equal GMT offset at maximum time).
80876         Use integer to check for overflow rather than floating point; this
80877         is more portable to non-IEEE hosts, and is a tad faster.
80878         When we detect that we are oscillating between two values,
80879         don't check whether tm_isdst has the requested value, since
80880         we already know the answer.  When tm_isdst has the wrong value,
80881         use a different heuristic to find the right one, based on the
80882         extreme values actually observed in practice in tz2003a,
80883         rather than the (overly optimistic) "previous 3 calendar quarters".
80884
80885         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80886         "T const" to accommodate glibc style.
80887         (check_result): Use less-confusing report format.  "long" -> "long int.
80888         (main): Likewise.
80889         Don't loop if the iteration overflows time_t.
80890         Allow a negative step in the iteration.
80891
80892 2003-07-06  Karl Berry  <karl@gnu.org>
80893
80894         * config/depcomp: update from automake.
80895         * config/config.sub: update from prep.
80896
80897 2003-07-03  Karl Berry  <karl@gnu.org>
80898
80899         * config/config.guess: update from prep.
80900
80901 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80902
80903         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80904         xreadlink.c now includes it unconditionally.
80905
80906 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80907
80908         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80909         having it depend on HAVE_SYS_TYPES_H.
80910
80911 2003-07-01  Bruno Haible  <bruno@clisp.org>
80912
80913         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80914         <sys/types.h> should be sufficient.
80915         Reported by Paul Eggert.
80916
80917 2003-06-26  Karl Berry  <karl@gnu.org>
80918
80919         * config/depcomp: update from automake.
80920
80921 2003-06-26  Bruno Haible  <bruno@clisp.org>
80922
80923         * modules/human: Depend on module stdbool.
80924
80925 2003-06-25  Bruno Haible  <bruno@clisp.org>
80926
80927         * modules/readlink: New file.
80928         * modules/xreadlink: Depend on it.
80929         * MODULES.html.sh (func_all_modules): Add readlink.
80930
80931 2003-06-25  Bruno Haible  <bruno@clisp.org>
80932
80933         * m4/readlink.m4: New file.
80934
80935 2003-06-25  Bruno Haible  <bruno@clisp.org>
80936
80937         * lib/readlink.c: New file.
80938
80939 2003-06-22  Karl Berry  <karl@gnu.org>
80940
80941         * config/srclist.txt: update mkinstalldirs from automake.
80942         * config/mkinstalldirs: update.
80943
80944 2003-06-22  Bruno Haible  <bruno@clisp.org>
80945
80946         Portability to mingw32.
80947         * m4/ssize_t.m4: New file, from GNU gettext.
80948         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80949         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80950
80951 2003-06-22  Bruno Haible  <bruno@clisp.org>
80952
80953         * modules/safe-read: Add m4/ssize_t.m4.
80954         * modules/xreadlink: Add m4/ssize_t.m4.
80955
80956 2003-06-20  Bruno Haible  <bruno@clisp.org>
80957
80958         Assume C89, so PARAMS isn't needed.
80959         * lib/unicodeio.h (PARAMS): Remove.
80960         * lib/unicodeio.c: Don't use PARAMS.
80961
80962 2003-06-18  Karl Berry  <karl@gnu.org>
80963
80964         * config/config.{guess,sub}: update from prep.
80965
80966 2003-06-18  Jim Meyering  <jim@meyering.net>
80967
80968         Merge changes from coreutils.
80969         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80970         Remove explicit declarations of xmalloc and realloc.
80971         Include xalloc.h.
80972         (read_utmp): Remove anachronistic cast of xmalloc.
80973
80974 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80975
80976         Assume C89, so PARAMS isn't needed.
80977         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80978         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80979         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80980         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80981         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80982         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80983         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80984         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80985         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80986         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80987         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80988         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80989         no longer needed. Anyway, config.h should always be included before any
80990         other file.
80991
80992 2003-06-11  Simon Josefsson  <jas@extundo.com>
80993
80994         * modules/sysexits: New file.
80995         * MODULES.html.sh (func_all_modules): Add sysexits.
80996
80997 2003-06-11  Simon Josefsson  <jas@extundo.com>
80998
80999         * lib/sysexit_.h: New file.
81000
81001 2003-06-11  Derek Price  <derek@ximbiot.com>
81002
81003         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
81004         necessary.
81005
81006 2003-06-11  Bruno Haible  <bruno@clisp.org>
81007
81008         * m4/sysexits.m4: New file.
81009
81010 2003-06-10  Simon Josefsson  <jas@extundo.com>
81011
81012         * lib/argp.h: New file, from glibc.
81013         * lib/argp-ba.c: New file, from glibc.
81014         * lib/argp-eexst.c: New file, from glibc.
81015         * lib/argp-fmtstream.c: New file, from glibc.
81016         * lib/argp-fmtstream.h: New file, from glibc.
81017         * lib/argp-fs-xinl.c: New file, from glibc.
81018         * lib/argp-help.c: New file, from glibc.
81019         * lib/argp-namefrob.h: New file, from glibc.
81020         * lib/argp-parse.c: New file, from glibc.
81021         * lib/argp-pv.c: New file, from glibc.
81022         * lib/argp-pvh.c: New file, from glibc.
81023         * lib/argp-xinl.c: New file, from glibc.
81024
81025 2003-06-10  Simon Josefsson  <jas@extundo.com>
81026
81027         * modules/strchrnul: New file.
81028
81029 2003-06-10  Simon Josefsson  <jas@extundo.com>
81030
81031         * modules/argp: New file.
81032
81033 2003-06-10  Simon Josefsson  <jas@extundo.com>
81034
81035         * m4/strchrnul.m4: New file.
81036
81037 2003-06-10  Simon Josefsson  <jas@extundo.com>
81038
81039         * lib/strchrnul.h: New file.
81040         * lib/strchrnul.c: New file.
81041
81042 2003-06-10  Bruno Haible  <bruno@clisp.org>
81043
81044         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
81045
81046 2003-06-07  Karl Berry  <karl@gnu.org>
81047
81048         * config/config.{guess,sub}: update from prep.
81049
81050 2003-06-07  Jim Meyering  <jim@meyering.net>
81051
81052         * modules/strtod: Use $(...) notation, not @...@ for
81053         AC_REPLACE'd variables.
81054         * modules/localcharset: Likewise.
81055
81056 2003-06-07  Jim Meyering  <jim@meyering.net>
81057
81058         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
81059         in place of my name in the copyright comment.
81060         Remove definition and uses of __P.
81061
81062         From coreutils.
81063         * lib/stat.c: Don't declare xmalloc explicitly.
81064         Instead, include "xalloc.h".
81065         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
81066         xrealloc, and xcalloc return values.
81067         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
81068         Improve comment.
81069         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
81070
81071 2003-06-07  Bruno Haible  <bruno@clisp.org>
81072
81073         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
81074         avoid AC_CONFIG_LINKS.
81075         * modules/fnmatch (Makefile.am): Use explicit creation rule for
81076         fnmatch.h, to avoid AC_CONFIG_LINKS.
81077         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
81078
81079 2003-06-07  Bruno Haible  <bruno@clisp.org>
81080
81081         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
81082         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
81083         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81084         directory.
81085         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
81086         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81087         directory.
81088
81089 2003-06-06  Jim Meyering  <jim@meyering.net>
81090
81091         Merge from coreutils.
81092         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
81093         Consolidate declarations and initializations of *_base* locals.
81094
81095         Merge from coreutils.
81096         This avoids a core dump on systems without GNU putenv,
81097         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
81098         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
81099         (unsetenv): New static function, from GNU libc.
81100         (rpl_putenv): Use it.
81101
81102         * lib/modechange.c: Remove trailing blanks.
81103
81104         Merge from coreutils.
81105         * lib/fsusage.c: Remove declaration of statfs.
81106         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
81107
81108         * lib/posixtm.c: Include <stdbool.h> unconditionally.
81109
81110 2003-06-06  Jim Meyering  <jim@meyering.net>
81111
81112         * lib/stdbool_.h: Renamed from stdbool.h.in.
81113
81114 2003-06-06  Jim Meyering  <jim@meyering.net>
81115             Bruno Haible  <bruno@clisp.org>
81116
81117         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
81118         Adjust Makefile.am snippet not to redirect directly to target.
81119         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
81120
81121 2003-06-05  Paul Eggert  <eggert@twinsun.com>
81122
81123         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
81124         mismatch, look in future quarters as well as past.  This fixes a
81125         bug when processing fall-backwards gaps immediately after a long
81126         period of daylight-saving time.
81127
81128         * lib/mktime.c: Assume freestanding C89 or better.
81129         (HAVE_LIMITS_H): Remove.  Assume it's 1.
81130         (__P): Remove; not used.
81131         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
81132         (mktime, not_equal_tm, print_tm, check_result,
81133         main): Use prototypes.  Use const * where appropriate.
81134         (main): Fix typo in testing code that uncovered by above changes.
81135         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
81136
81137 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81138
81139         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
81140         locale.h, localeconv.  This merges changes from coreutils.
81141
81142         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
81143         It can be removed after the next Autoconf is released.
81144         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
81145         needed.
81146
81147 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81148
81149         * lib/mktime.c: Fix Debian bug 177940
81150         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
81151         (localtime_offset): Now long int, not time_t, because we want it
81152         to be guaranteed to be signed.  All uses changed.
81153         (__mktime_internal): If overflow would occur when adding offset,
81154         don't add it.
81155
81156         Merge 'human' changes from coreutils.  Rewrite to support
81157         locale-specific notations like thousands separators.
81158         * lib/human.c: Simplify authorship notice.
81159         Include human.h immediately after config.h.
81160         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
81161         <limits.h>: Do not include, since human.h does.
81162         (SIZE_MAX, UINTMAX_MAX): New macros.
81163         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
81164         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
81165         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
81166         (power_letter): Renamed from suffixes.
81167         (generate_suffix_backwards): Remove.
81168         (adjust_value): Now takes int style (because of human.h changes)
81169         and long double value (for greater precision on some platforms).
81170         (group_number): New function.
81171         (human_readable): Use it.  Use integer options, not enum.
81172         Put the options before the sizes in the arg list.
81173         Support all the new options.
81174         The old human_readable function has been removed;
81175         use inttostr.h instead.
81176         (human_readable, default_block_size, humblock):
81177         Use uintmax_t, not int, for block sizes.
81178         (human_readable_inexact, block_size_types): Remove.
81179         (block_size_opts): New constant.
81180         (human_options): Renamed from human_block_size, with new signature
81181         that allows block sizes up to UINTMAX_MAX.  All callers changed.
81182         * lib/human.h: Add copyright and authorship notice.
81183         Include <limits.h> and <stdbool.h> unconditionally.
81184         (PARAMS): Remove.  All uses removed.
81185         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
81186         (enum human_inexact_style): Remove tag; now a nameless enum.
81187         (human_floor, human_ceiling, human_round_to_even): Now have
81188         values 2, 0, 1 rather than -1, 1, 0.
81189         (human_group_digits, human_suppress_point_zero, human_autoscale,
81190         human_base_1024, human_SI, human_B): New constants.
81191         (human_readable_inexact, human_block_size): Remove.
81192         (human_readable): Size args are now uintmax_t, not int.
81193         (human_options): New decl.
81194
81195         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
81196         unnecessary now that we assume C89 or better.  This change
81197         imported from coreutils.
81198
81199         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81200         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
81201         in the 2003-05-30 sync from glibc.
81202
81203         .h files should stand alone, but we shouldn't include <sys/types.h>
81204         if we can get away with just <stddef.h>.
81205
81206         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
81207         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
81208         rather than <sys/types.h>, as we merely need size_t.
81209         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
81210         to get size_t.
81211         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
81212         Include <stdio.h>, to get FILE.
81213         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
81214         memcasecmp.h has included <stddef.h> and all we need is size_t.
81215         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
81216         our interface, instead of including <sys/types.h>
81217
81218 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81219
81220         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
81221         now, as glibc mktime is buggy on non-glibc systems.
81222
81223 2003-06-03  Karl Berry  <karl@gnu.org>
81224
81225         * config/config.sub: update from prep.
81226
81227 2003-06-02  Paul Eggert  <eggert@twinsun.com>
81228
81229         [from coreutils]
81230         Fix some minor time-related bugs with POSIX time arguments.
81231         Some valid time stamps were being rejected (notably -1, and
81232         time stamps before 1900 on 64-bit hosts).  And some invalid
81233         time stamps were being accepted, e.g. September 31.
81234
81235         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
81236         that we can return (time_t) -1 successfully.
81237         * lib/posixtm.c: Likewise.
81238         [HAVE_STDBOOL_H]: Include <stdbool.h>.
81239         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
81240         (t): Remove static var.
81241         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
81242         of static var.  All uses changed.
81243         (year): Do not reject years before 1900; they can occur with
81244         64-bit time_t.
81245         (posix_time_parse): Do not check for out-of-range components;
81246         that is now the caller's responsibility, since our checks were
81247         only approximations.
81248         (posixtime): Use mktime to check for out-of-range components,
81249         since it knows them exactly.
81250         If mktime returns (time_t) -1, check whether an error actually occurred
81251         by invoking localtime on -1.
81252         (main) [TEST_POSIXTIME]: Check for input data errors, and report
81253         posixtime failures better.
81254         Improve the test data (in comments only).
81255
81256 2003-06-02  Karl Berry  <karl@gnu.org>
81257
81258         * config/mkinstalldirs (version): new variable.
81259         (--version): new option.
81260         (usage): improve message.
81261
81262 2003-05-30  Karl Berry  <karl@gnu.org>
81263
81264         * lib/mktime.c: update from libc.
81265
81266 2003-05-30  Bruno Haible  <bruno@clisp.org>
81267
81268         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
81269         * config/config.rpath: Upgrade to gettext-0.12.1.
81270
81271 2003-05-30  Bruno Haible  <bruno@clisp.org>
81272
81273         * m4/gettext.m4: Upgrade to gettext-0.12.1.
81274         * m4/nls.m4: New file, from gettext-0.12.1.
81275         * m4/po.m4: New file, from gettext-0.12.1.
81276         * m4/progtest.m4: Upgrade to gettext-0.12.1.
81277
81278 2003-05-30  Bruno Haible  <bruno@clisp.org>
81279
81280         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
81281         * lib/localcharset.h: Likewise.
81282         * lib/localcharset.c: Likewise.
81283
81284 2003-05-29  Karl Berry  <karl@gnu.org>
81285
81286         * config/config.rpath: update from gettext.
81287
81288 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81289
81290         Assume the headers required for C89 freestanding compilers.
81291         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
81292         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
81293         * m4/human.m4 (gl_HUMAN): Likewise.
81294         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
81295         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
81296         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81297         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
81298         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81299         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
81300
81301 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81302
81303         Assume the headers required for C89 freestanding compilers.
81304         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
81305         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
81306         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
81307         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
81308         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
81309         define, since <limits.h> is guaranteed to do that.
81310         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
81311         * lib/exclude.c: Include <stdbool.h> unconditionally.
81312         * lib/tempname.c: Include <stddef.h> unconditionally.
81313         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
81314         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
81315         <stddef.h> does that.
81316         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
81317         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
81318         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
81319         needed.
81320         * lib/xstrtol.c: Likewise.
81321         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
81322         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
81323
81324         * lib/addext.c (addext): Use assignment rather than cast, to avoid
81325         warnings on some platforms.
81326
81327         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81328         arbitrarily.
81329
81330 2003-05-26  Jim Meyering  <jim@meyering.net>
81331
81332         Merge in a change from coreutils:
81333         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
81334         that is guaranteed to be `no'.  Use `no_such_member' to indicate
81335         that condition, rather than `-1' which is slightly misleading.
81336         Change the name of the cache variable to have the gl_ prefix.
81337         Prompted by a patch from Richard Dawe for DJGPP.
81338
81339 2003-05-24  Karl Berry  <karl@gnu.org>
81340
81341         * config/config.guess: update from prep.
81342
81343 2003-05-22  Karl Berry  <karl@gnu.org>
81344
81345         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
81346
81347 2003-05-20  Karl Berry  <karl@gnu.org>
81348
81349         * config/config.guess: update from prep.
81350
81351 2003-05-18  Karl Berry  <karl@gnu.org>
81352
81353         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
81354         might actually be set by the user.
81355
81356         * config/depcomp, install-sh, mdate-sh: update from automake.
81357
81358 2003-05-17  Bruno Haible  <bruno@clisp.org>
81359
81360         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
81361         invalid expansion for AC_EGREP_CPP.
81362         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
81363         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
81364         Suggested by Akim Demaille <akim@epita.fr> in
81365         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
81366
81367 2003-05-12  Jim Meyering  <jim@meyering.net>
81368
81369         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
81370         the space-padded-by-default conversion specifiers, %e, %k, %l.
81371
81372 2003-05-12  Bruno Haible  <bruno@clisp.org>
81373
81374         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
81375         the string is longer than 4 KB.
81376
81377 2003-05-11  Karl Berry  <karl@gnu.org>
81378
81379         * config/config.{guess,sub}: update from prep.
81380
81381 2003-05-09  Bruno Haible  <bruno@clisp.org>
81382
81383         * modules/error: Add m4/strerror_r.m4 to file list.
81384
81385 2003-05-03  Bruno Haible  <bruno@clisp.org>
81386
81387         Upgrade to Unicode-4.0.
81388         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
81389         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
81390         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
81391         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
81392         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
81393         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
81394         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
81395         Change width of U+E0100..U+E01EF from 1 to 0.
81396
81397 2003-04-25  Jim Meyering  <jim@meyering.net>
81398
81399         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
81400         of type size_t, not int.
81401
81402 2003-04-25  Bruno Haible  <bruno@clisp.org>
81403
81404         * lib/copy-file.c: Include <stddef.h>, for size_t.
81405
81406 2003-04-21  Paul Eggert  <eggert@twinsun.com>
81407
81408         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
81409         code which expansion is under static control.  Patch imported from
81410         Akim Demaille's patch to Bison; see
81411         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81412
81413 2003-04-14  Bruno Haible  <bruno@clisp.org>
81414
81415         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
81416
81417 2003-04-11  Jim Meyering  <jim@meyering.net>
81418
81419         Merge changes from Coreutils.
81420
81421         2003-03-22  Jim Meyering  <jim@meyering.net>
81422
81423         * lib/strftime.c (widen): Cast alloca return value to proper type.
81424
81425         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
81426
81427         From GNU libc.
81428         * lib/strftime.c (my_strftime): Handle very large width
81429         specifications for numeric values correctly.  Improve checks for
81430         overflow.
81431
81432         2003-01-19  Jim Meyering  <jim@meyering.net>
81433
81434         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
81435         definitions.
81436         (nl_get_alt_digit) [! defined my_strftime]: Define.
81437         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
81438         _nl_get_alt_digit and _nl_get_walt_digit.
81439
81440         * lib/strftime.c (my_strftime): Merge in locale-related changes from
81441         libc. These changes have no effect outside of _LIBC.
81442
81443 2003-04-10  Bruno Haible  <bruno@clisp.org>
81444
81445         * modules/findprog: New file.
81446         * MODULES.html.sh (func_all_modules): Add it.
81447
81448 2003-04-10  Bruno Haible  <bruno@clisp.org>
81449
81450         * m4/findprog.m4: New file.
81451         * m4/eaccess.m4: New file.
81452
81453 2003-04-10  Bruno Haible  <bruno@clisp.org>
81454
81455         * lib/findprog.h: New file, from GNU gettext.
81456         * lib/findprog.c: New file, from GNU gettext.
81457
81458 2003-04-05  Jim Meyering  <jim@meyering.net>
81459
81460         Merge changes from Coreutils.
81461
81462         * lib/exclude.h (PARAMS): Remove definition and uses.
81463         * lib/exclude.c: Remove uses of `PARAMS'.
81464
81465         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
81466         Add test-cases for DOS filenames. Declare program_name.
81467         (main): Set up program_name.  Patch by Rich Dawe.
81468
81469         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81470         error from mntctl.
81471         Use mntctl's return value to drive the entry-processing loop, since
81472         we can't rely on the value of the vmt_length member in the last
81473         entry.  On some systems doing so could result in exhausting
81474         virtual memory.  Based in part on a patch from Mike Jetzer.
81475
81476 2003-04-04  Bruno Haible  <bruno@clisp.org>
81477
81478         * modules/linebreak: New file.
81479         * MODULES.html.sh (func_all_modules): Add it.
81480
81481 2003-04-04  Bruno Haible  <bruno@clisp.org>
81482
81483         * m4/linebreak.m4: New file.
81484
81485 2003-04-04  Bruno Haible  <bruno@clisp.org>
81486
81487         * lib/linebreak.h: New file, from GNU gettext.
81488         * lib/linebreak.c: New file, from GNU gettext with slight
81489         modifications.
81490         * lib/lbrkprop.h: New file, from GNU gettext.
81491
81492 2003-04-03  Bruno Haible  <bruno@clisp.org>
81493
81494         * modules/utf8-ucs4: New file.
81495         * modules/utf16-ucs4: New file.
81496         * modules/ucs4-utf8: New file.
81497         * modules/ucs4-utf16: New file.
81498         * MODULES.html.sh (func_all_modules): Add them.
81499
81500 2003-04-03  Bruno Haible  <bruno@clisp.org>
81501
81502         * m4/utf-ucs4.m4: New file.
81503         * m4/ucs4-utf.m4: New file.
81504
81505 2003-04-03  Bruno Haible  <bruno@clisp.org>
81506
81507         * lib/utf8-ucs4.h: New file, from GNU gettext.
81508         * lib/utf16-ucs4.h: New file, from GNU gettext.
81509         * lib/ucs4-utf8.h: New file, from GNU gettext.
81510         * lib/ucs4-utf16.h: New file, from GNU gettext.
81511
81512 2003-04-02  Bruno Haible  <bruno@clisp.org>
81513
81514         * modules/binary-io: New file.
81515         * MODULES.html.sh (func_all_modules): Add it.
81516
81517 2003-04-02  Bruno Haible  <bruno@clisp.org>
81518
81519         * lib/binary-io.h: New file, from GNU gettext.
81520
81521 2003-04-01  Bruno Haible  <bruno@clisp.org>
81522
81523         * modules/pathname: New file.
81524         * MODULES.html.sh (func_all_modules): Add it.
81525
81526 2003-04-01  Bruno Haible  <bruno@clisp.org>
81527
81528         * lib/pathname.h: New file, from GNU gettext.
81529         * lib/concatpath.c: New file, from GNU gettext.
81530
81531 2003-03-30  Bruno Haible  <bruno@clisp.org>
81532
81533         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
81534
81535 2003-03-30  Bruno Haible  <bruno@clisp.org>
81536
81537         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
81538         function chown() doesn't exist.
81539
81540 2003-03-28  Bruno Haible  <bruno@clisp.org>
81541
81542         * modules/copy-file: New file.
81543         * MODULES.html.sh (func_all_modules): Add it.
81544
81545 2003-03-28  Bruno Haible  <bruno@clisp.org>
81546
81547         * m4/copy-file.m4: New file.
81548
81549 2003-03-28  Bruno Haible  <bruno@clisp.org>
81550
81551         * lib/copy-file.h: New file, from GNU gettext.
81552         * lib/copy-file.c: New file, from GNU gettext.
81553
81554 2003-03-18  Jim Meyering  <jim@meyering.net>
81555
81556         * lib/quote.c (quote_n): Fix typo in comment.
81557
81558 2003-03-18  Bruno Haible  <bruno@clisp.org>
81559
81560         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
81561         checking.
81562         * m4/onceonly_2_57.m4: Likewise.
81563
81564 2003-03-17  Bruno Haible  <bruno@clisp.org>
81565
81566         * m4/onceonly.m4: Require autoconf 2.54 or newer.
81567         (m4_quote): Remove macro.
81568         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
81569
81570 2003-03-14  Jim Meyering  <jim@meyering.net>
81571
81572         Merge changes from Coreutils.
81573         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
81574         to be const, in order to avoid warnings.
81575         (obstack_room): Likewise.
81576         (obstack_empty_p): Likewise.
81577
81578 2003-03-14  Bruno Haible  <bruno@clisp.org>
81579
81580         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
81581         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
81582
81583 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81584
81585         Merge changes from Bison.
81586         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
81587         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
81588         when compiling Bison 1.875's `bitset bset = obstack_alloc
81589         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
81590         * lib/hash.c: Include <stdbool.h> unconditionally.
81591
81592 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81593
81594         * m4/onceonly.m4 (m4_quote): New macro.
81595         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
81596         Quote AC_FOREACH variable-expansions properly.
81597
81598 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81599
81600         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
81601
81602 2003-03-09  Paul Eggert  <eggert@twinsun.com>
81603
81604         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
81605         Reported by Bruce Becker; see:
81606         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
81607
81608 2003-03-03  Paul Eggert  <eggert@twinsun.com>
81609             Bruno Haible  <bruno@clisp.org>
81610
81611         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
81612         Reported by John Hughes, see
81613         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
81614
81615 2003-02-20  Bruno Haible  <bruno@clisp.org>
81616
81617         * MODULES.html.sh (func_all_modules): Add poll.
81618
81619 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81620
81621         * modules/poll: New file.
81622
81623 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81624
81625         * lib/poll_.h: New file.
81626         * lib/poll.c: New file.
81627
81628 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81629
81630         * m4/poll.m4: New file.
81631
81632 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81633
81634         * modules/mathl: New file.
81635
81636 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81637
81638         * lib/mathl.h: New file.
81639         * lib/acosl.c: New file.
81640         * lib/asinl.c: New file.
81641         * lib/atanl.c: New file.
81642         * lib/ceill.c: New file.
81643         * lib/cosl.c: New file.
81644         * lib/expl.c: New file.
81645         * lib/floorl.c: New file.
81646         * lib/frexpl.c: New file.
81647         * lib/ldexpl.c: New file.
81648         * lib/logl.c: New file.
81649         * lib/sincosl.c: New file.
81650         * lib/sinl.c: New file.
81651         * lib/sqrtl.c: New file.
81652         * lib/tanl.c: New file.
81653         * lib/trigl.c: New file.
81654         * lib/trigl.h: New file.
81655
81656 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81657
81658         * m4/mathl.m4: New file.
81659
81660 2003-02-18  Bruno Haible  <bruno@clisp.org>
81661
81662         * MODULES.html.sh (func_all_modules): Add mathl.
81663
81664 2003-02-17  Bruno Haible  <bruno@clisp.org>
81665
81666         * modules/mkdtemp: New module.
81667         * MODULES.html.sh (func_all_modules): Add it.
81668
81669 2003-02-17  Bruno Haible  <bruno@clisp.org>
81670
81671         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81672
81673 2003-02-17  Bruno Haible  <bruno@clisp.org>
81674
81675         * lib/mkdtemp.h: New file, from GNU gettext.
81676         * lib/mkdtemp.c: New file, from GNU gettext.
81677
81678 2003-02-02  Jim Meyering  <jim@meyering.net>
81679
81680         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81681         e.g. glibc-2.2.93.
81682
81683 2003-01-31  Bruno Haible  <bruno@clisp.org>
81684
81685         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81686         'rpl_rename'.
81687         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81688         'rpl_strnlen'.
81689         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81690         'rpl_strtod'.
81691         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81692         'rpl_utime'.
81693
81694 2003-01-31  Bruno Haible  <bruno@clisp.org>
81695
81696         * lib/rename.c: #undef rename before defining rpl_rename.
81697         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81698
81699 2003-01-30  Bruno Haible  <bruno@clisp.org>
81700
81701         * modules/vasnprintf, modules/vasprintf: New modules.
81702         * MODULES.html.sh (func_all_modules): Add them.
81703
81704 2003-01-30  Bruno Haible  <bruno@clisp.org>
81705
81706         * m4/signed.m4: New file, from GNU gettext.
81707         * m4/longdouble.m4: New file, from GNU gettext.
81708         * m4/wchar_t.m4: New file, from GNU gettext.
81709         * m4/wint_t.m4: New file, from GNU gettext.
81710         * m4/vasnprintf.m4: New file.
81711         * m4/vasprintf.m4: New file.
81712
81713 2003-01-30  Bruno Haible  <bruno@clisp.org>
81714
81715         * lib/printf-args.h: New file, from GNU gettext.
81716         * lib/printf-args.c: New file, from GNU gettext.
81717         * lib/printf-parse.h: New file, from GNU gettext.
81718         * lib/printf-parse.c: New file, from GNU gettext.
81719         * lib/vasnprintf.h: New file, from GNU gettext.
81720         * lib/vasnprintf.c: New file, from GNU gettext.
81721         * lib/asnprintf.c: New file, from GNU gettext.
81722         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81723         * lib/vasprintf.c: New file, from GNU gettext.
81724         * lib/asprintf.c: New file, from GNU gettext.
81725
81726 2003-01-29  Bruno Haible  <bruno@clisp.org>
81727
81728         * modules/stpncpy: New module.
81729         * MODULES.html.sh (func_all_modules): Add it.
81730
81731 2003-01-29  Bruno Haible  <bruno@clisp.org>
81732
81733         * m4/stpncpy.m4: New file.
81734
81735 2003-01-29  Bruno Haible  <bruno@clisp.org>
81736
81737         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81738         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81739
81740 2003-01-28  Bruno Haible  <bruno@clisp.org>
81741
81742         * modules/c-ctype: New module.
81743         * MODULES.html.sh (func_all_modules): Add it.
81744
81745 2003-01-28  Bruno Haible  <bruno@clisp.org>
81746
81747         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81748         Paul Eggert.
81749         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81750         Paul Eggert.
81751
81752 2003-01-27  Bruno Haible  <bruno@clisp.org>
81753
81754         * modules/xsetenv: New module.
81755         * MODULES.html.sh (func_all_modules): Add it.
81756
81757 2003-01-27  Bruno Haible  <bruno@clisp.org>
81758
81759         * lib/xsetenv.h: New file, from GNU gettext.
81760         * lib/xsetenv.c: New file, from GNU gettext.
81761
81762 2003-01-23  Jim Meyering  <jim@meyering.net>
81763
81764         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81765         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81766
81767 2003-01-23  Bruno Haible  <bruno@clisp.org>
81768
81769         * modules/minmax: New module.
81770         * MODULES.html.sh (func_all_modules): Add it.
81771
81772 2003-01-23  Bruno Haible  <bruno@clisp.org>
81773
81774         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81775         Eggert.
81776
81777 2003-01-22  Bruno Haible  <bruno@clisp.org>
81778
81779         * modules/exit: New module.
81780         * MODULES.html.sh (func_all_modules): Add it.
81781
81782 2003-01-22  Bruno Haible  <bruno@clisp.org>
81783
81784         * lib/exit.h: New file, from GNU gettext.
81785
81786 2003-01-19  Bruno Haible  <bruno@clisp.org>
81787
81788         * gnulib-tool: Recognize option --extract-maintainer.
81789         (func_get_maintainer): New function.
81790         * modules/*: Add Maintainer entry.
81791
81792 2003-01-16  Jim Meyering  <jim@meyering.net>
81793
81794         * m4/regex.m4: The `regex' struct is both input and output.
81795         Initialize it before each use.  Patch by Tim Waugh.
81796
81797 2003-01-16  Bruno Haible  <bruno@clisp.org>
81798
81799         * MODULES.html.sh: Add a table of contents. Add the module name as
81800         leftmost column. Add hyperlinks.
81801
81802 2003-01-15  Bruno Haible  <bruno@clisp.org>
81803
81804         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81805
81806 2003-01-15  Bruno Haible  <bruno@clisp.org>
81807
81808         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81809         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81810         suffix.
81811
81812 2003-01-15  Bruno Haible  <bruno@clisp.org>
81813
81814         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81815
81816 2003-01-15  Bruno Haible  <bruno@clisp.org>
81817
81818         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81819         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81820
81821 2003-01-14  Jim Meyering  <jim@meyering.net>
81822
81823         * lib/same.c (same_name): Tweak a comment.
81824
81825 2003-01-14  Bruno Haible  <bruno@clisp.org>
81826
81827         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81828         when a string comparison is sufficient.
81829
81830 2003-01-14  Bruno Haible  <bruno@clisp.org>
81831
81832         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81833         'unsigned int'.
81834
81835 2003-01-14  Bruno Haible  <bruno@clisp.org>
81836
81837         * lib/hash-pjw.c: Add comment about low quality of this function.
81838
81839 2003-01-13  Bruno Haible  <bruno@clisp.org>
81840
81841         * modules/stpcpy: Distribute lib/stpcpy.h.
81842         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81843
81844 2003-01-13  Bruno Haible  <bruno@clisp.org>
81845
81846         * modules/*: Add a description.
81847         * modules/strpbrk: Fix Makefile.am snippet.
81848         * modules/strtoimax: Fix dependencies.
81849         * modules/strtoumax: Likewise.
81850
81851 2003-01-13  Bruno Haible  <bruno@clisp.org>
81852
81853         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81854         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81855         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81856
81857 2003-01-13  Bruno Haible  <bruno@clisp.org>
81858
81859         * gnulib-tool (func_create_testdir): Store config/* files in the main
81860         directory.
81861         * config.rpath: Move to ...
81862         * config/config.rpath: ... here.
81863         * modules/gettext: Contains config/config.rpath, not config.rpath.
81864         * modules/iconv: Likewise.
81865
81866 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81867
81868         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81869         to avoid collisions with libcurses and libreadline.
81870
81871         * m4/getstr.m4: Remove.
81872         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81873
81874 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81875
81876         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81877         to avoid collisions with libcurses and libreadline.
81878
81879         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81880         * lib/getstr.h, getstr.c: Remove.
81881         * lib/getline.c: Include "getline.h", to check interface.
81882         Move body of old getstr.c here: this defines MIN_CHUNK and
81883         declares getdelim2, which is renamed from getstr.
81884         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81885
81886         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81887         All uses changed.
81888         * lib/linebuffer.h: Likewise.
81889         (readline): Remove backward-compatibility macro.
81890
81891 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81892
81893         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81894         to avoid collisions with libcurses and libreadline.
81895         * getstr: Remove.
81896         * MODULES.html.sh: Remove getstr.
81897         * modules/getline: Depend on unlocked-io, not getstr.
81898
81899 2003-01-12  Jim Meyering  <jim@meyering.net>
81900
81901         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81902
81903 2003-01-10  Bruno Haible  <bruno@clisp.org>
81904
81905         * modules/alloca: Change Makefile.am requirements. Simplify Include
81906         requirements. Add lib/alloca_.h to file list.
81907
81908 2003-01-10  Bruno Haible  <bruno@clisp.org>
81909
81910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81911
81912 2003-01-10  Bruno Haible  <bruno@clisp.org>
81913
81914         * lib/alloca_.h: New file.
81915         * lib/getdate.y: Unconditionally include alloca.h.
81916         * lib/makepath.c: Likewise.
81917         * lib/setenv.c: Likewise.
81918         * lib/userspec.c: Likewise.
81919
81920 2003-01-09  Karl Berry  <karl@gnu.org>
81921
81922         * MODULES.html.sh: include `dirname $0` in PATH, to find
81923         gnulib-tool.
81924
81925 2003-01-09  Bruno Haible  <bruno@clisp.org>
81926
81927         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81928         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81929
81930 2003-01-09  Bruno Haible  <bruno@clisp.org>
81931
81932         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81933
81934 2003-01-09  Bruno Haible  <bruno@clisp.org>
81935
81936         * lib/stdbool.h.in: New file.
81937
81938 2003-01-09  Bruno Haible  <bruno@clisp.org>
81939
81940         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81941         * MODULES.html.sh: Likewise.
81942
81943 2003-01-08  Jim Meyering  <jim@meyering.net>
81944
81945         * lib/full-write.c: Undefine and define-away `const' after inclusion
81946         of errno.h, not before.  Suggestion from Bruno Haible.
81947
81948 2003-01-08  Bruno Haible  <bruno@clisp.org>
81949
81950         * modules/full-read: Depend on full-write.
81951
81952 2003-01-08  Bruno Haible  <bruno@clisp.org>
81953
81954         * lib/safe-read.c: Include specification header first, to ensure its
81955         selfcontainedness.
81956         * lib/full-write.c: Likewise.
81957
81958 2003-01-07  Jim Meyering  <jim@meyering.net>
81959
81960         * lib/full-write.c: Rework so that it may serve to define full_read,
81961         too.
81962         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81963
81964 2003-01-07  Bruno Haible  <bruno@clisp.org>
81965
81966         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81967         <inttypes.h>.
81968         * lib/xstrtol.h: Likewise.
81969         * lib/xstrtoimax.c: Likewise.
81970         * lib/xstrtoumax.c: Likewise.
81971         * lib/human.h: Likewise.
81972
81973         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81974         on systems that have <inttypes.h> but not <stdint.h>.
81975
81976 2003-01-07  Bruno Haible  <bruno@clisp.org>
81977
81978         * MODULES.html.sh: Add copyright notice.
81979         (missed_files): Omit CVS directory entries.
81980         (func_module): Make it work with sed-3.02.
81981         * MODULES.txt: Remove file.
81982
81983 2003-01-06  Jim Meyering  <jim@meyering.net>
81984
81985         * lib/version-etc.c: Update year in translatable copyright string.
81986
81987 2003-01-03  Karl Berry  <karl@gnu.org>
81988
81989         * config/config.{guess,sub}: update from prep.
81990
81991 2003-01-02  Karl Berry  <karl@gnu.org>
81992
81993         * doc/COPYING.DOC: belatedly updated to 1.2.
81994
81995 2003-01-01  Karl Berry  <karl@gnu.org>
81996
81997         * gnulib-tool (func_verify_module): report module name $module in
81998         error message, not $1.
81999         * gnulib-tool (create-testdir): don't complain if destdir couldn't
82000         be created, only if it doesn't exist.
82001         * gnulib-tool (last_checkin_date): don't expand the $Date here.
82002
82003 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82004
82005         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
82006
82007 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82008
82009         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
82010         memcmp if strcoll doesn't work.
82011
82012 2002-12-31  Bruno Haible  <bruno@clisp.org>
82013
82014         * lib/utime.c (utime_null): No need to call ftruncate if the file was
82015         nonempty.
82016
82017 2002-12-31  Bruno Haible  <bruno@clisp.org>
82018
82019         * lib/memcoll.c (STRCOLL): New macro.
82020         (memcoll): Use it.
82021
82022 2002-12-31  Bruno Haible  <bruno@clisp.org>
82023
82024         * lib/localcharset.h: New file.
82025         * lib/localcharset.c: Include it.
82026         * lib/unicodeio.c: Likewise.
82027
82028 2002-12-31  Bruno Haible  <bruno@clisp.org>
82029
82030         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
82031         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
82032
82033 2002-12-31  Bruno Haible  <bruno@clisp.org>
82034
82035         * lib/getline.h: Include <stddef.h>, for size_t.
82036
82037         * lib/unicodeio.h: Include <stddef.h>, for size_t.
82038         * lib/unicodeio.c: Don't include <stddef.h>.
82039
82040 2002-12-31  Bruno Haible  <bruno@clisp.org>
82041
82042         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
82043         HAVE_TM_ZONE.
82044
82045 2002-12-24  Karl Berry  <karl@gnu.org>
82046
82047         * config/config.guess: update from prep.
82048
82049 2002-12-24  Bruno Haible  <bruno@clisp.org>
82050
82051         General infrasructure.
82052         * m4/README: Rewritten.
82053         * m4/onceonly.m4: New file.
82054         * m4/onceonly_2_57.m4: New file.
82055
82056         Module atexit.
82057         * m4/atexit.m4: New file.
82058
82059         Module strtod.
82060         * m4/strtod.m4: New file.
82061
82062         Module strtol.
82063         * m4/strtol.m4: New file.
82064
82065         Module strtoul.
82066         * m4/strtoul.m4: New file.
82067
82068         Module memchr.
82069         * m4/memchr.m4: New file.
82070
82071         Module memcmp.
82072         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
82073         (jm_FUNC_MEMCMP): Invoke it.
82074
82075         Module memcpy.
82076         * m4/memcpy.m4: New file.
82077
82078         Module memmove.
82079         * m4/memmove.m4: New file.
82080
82081         Module memset.
82082         * m4/memset.m4: New file.
82083
82084         Module strcspn.
82085         * m4/strcspn.m4: New file.
82086
82087         Module strpbrk.
82088         * m4/strpbrk.m4: New file.
82089
82090         Module strstr.
82091         * m4/strstr.m4: New file.
82092
82093         Module strerror.
82094         * m4/strerror.m4: New file.
82095
82096         Module mktime.
82097         * m4/mktime.m4: Renamed from jm-mktime.m4.
82098         (gl_PREREQ_MKTIME): New macro.
82099         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
82100
82101         Module malloc.
82102         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
82103         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
82104         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
82105
82106         Module realloc.
82107         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
82108         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
82109         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
82110
82111         Module strftime.
82112         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
82113         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
82114         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
82115         gl_TM_GMTOFF.
82116         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
82117
82118         Module xalloc.
82119         * m4/xalloc.m4: New file.
82120
82121         Module alloca.
82122         * m4/alloca.m4: New file.
82123
82124         Module putenv.
82125         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
82126         (jm_FUNC_PUTENV): Invoke it.
82127
82128         Module setenv.
82129         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
82130         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
82131         when invoked twice.
82132         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
82133         gt_FUNC_SETENV.
82134
82135         Module memrchr.
82136         * m4/memrchr.m4: New file.
82137
82138         Module stpcpy.
82139         * m4/stpcpy.m4: New file.
82140
82141         Module strcase.
82142         * m4/strcase.m4: New file.
82143
82144         Module strdup.
82145         * m4/strdup.m4: New file.
82146
82147         Module strnlen.
82148         * m4/strnlen.m4: New file.
82149
82150         Module strndup.
82151         * m4/strndup.m4: New file.
82152
82153         Module xstrtod.
82154         * m4/xstrtod.m4: New file.
82155
82156         Module xstrtol.
82157         * m4/xstrtol.m4: New file.
82158
82159         Module getdate.
82160         * m4/getdate.m4: New file.
82161
82162         Module unlocked-io.
82163         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
82164         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
82165         * m4/jm-glibc-io.m4n: Remove file.
82166
82167         Module long-options.
82168         * m4/long-options.m4: New file.
82169
82170         Module md5.
82171         * m4/md5.m4: New file.
82172
82173         Module sha.
82174         * m4/sha.m4: New file.
82175
82176         Module getstr.
82177         * m4/getstr.m4: New file.
82178
82179         Module getline.
82180         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
82181         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
82182         <sys/types.h>, for size_t. Use the function name gnu_getline, not
82183         simply getline. Infoke gl_PREREQ_GETLINE.
82184
82185         Module obstack.
82186         * m4/obstack.m4: New file.
82187
82188         Module hash.
82189         * m4/hash.m4: New file.
82190
82191         Module readtokens.
82192         * m4/readtokens.m4: New file.
82193
82194         Module strverscmp.
82195         * m4/strverscmp.m4: New file.
82196
82197         Module stdbool.
82198         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
82199         OSF/1.
82200
82201         Module strtoll.
82202         * m4/strtoll.m4: New file.
82203
82204         Module strtoull.
82205         * m4/strtoull.m4: New file.
82206
82207         Module strtoimax.
82208         * m4/strtoimax.m4: New file.
82209
82210         Module strtoumax.
82211         * m4/strtoumax.m4: New file.
82212
82213         Module xstrtoimax.
82214         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
82215         jm_AC_PREREQ_XSTRTOIMAX.
82216         Moved the strtol prerequisites to strtol.m4.
82217         Moved the strtoll prerequisites to strtoll.m4.
82218         Moved the strtoimax prerequisites to strtoimax.m4.
82219
82220         Module xstrtoumax.
82221         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
82222         jm_AC_PREREQ_XSTRTOUMAX.
82223         Moved the strtoul prerequisites to strtoul.m4.
82224         Moved the strtoull prerequisites to strtoull.m4.
82225         Moved the strtoumax prerequisites to strtoumax.m4.
82226
82227         Module chown.
82228         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
82229         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
82230
82231         Module dup2.
82232         * m4/dup2.m4: New file.
82233
82234         Module ftruncate.
82235         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
82236         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
82237
82238         Module getgroups.
82239         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
82240         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
82241
82242         Module gettimeofday.
82243         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
82244         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
82245         gl_PREREQ_GETTIMEOFDAY.
82246
82247         Module mkdir.
82248         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
82249         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
82250
82251         Module mkstemp.
82252         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
82253         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
82254         jm_AC_TYPE_UINTMAX_T.
82255         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
82256
82257         Module stat.
82258         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
82259         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
82260
82261         Module lstat.
82262         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
82263         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
82264
82265         Module timespec.
82266         * m4/timespec.m4 (gl_TIMESPEC): New macro.
82267         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
82268         * m4/st_mtim.m4: Indentation.
82269
82270         Module nanosleep.
82271         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
82272         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
82273         gl_PREREQ_NANOSLEEP.
82274
82275         Module regex.
82276         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
82277         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
82278         (gl_REGEX): New macro.
82279
82280         Module rename.
82281         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
82282         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
82283
82284         Module rmdir.
82285         * m4/rmdir.m4: New file.
82286
82287         Module utime.
82288         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
82289         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
82290         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
82291
82292         Module dirname.
82293         * m4/dirname.m4: New file.
82294
82295         Module getopt.
82296         * m4/getopt.m4: New file.
82297
82298         Module unistd-safer.
82299         * m4/unistd-safer.m4: New file.
82300
82301         Module fnmatch.
82302         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
82303         declaration.
82304         (gl_PREREQ_FNMATCH_EXTRA): New macro.
82305         (gl_FUNC_FNMATCH_POSIX): New macro.
82306         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
82307         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
82308         simply fnmatch.
82309
82310         Module exclude.
82311         * m4/exclude.m4: New file.
82312
82313         Module human.
82314         * m4/human.m4: New file.
82315
82316         Module acl.
82317         * m4/acl.m4: Nop.
82318
82319         Module backupfile.
82320         * m4/backupfile.m4: New file.
82321         * m4/d-ino.m4: Indentation.
82322
82323         Module fsusage.
82324         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
82325         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
82326         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
82327
82328         Module dirfd.
82329         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
82330         requirements.
82331
82332         Module euidaccess.
82333         * m4/euidaccess.m4: New file.
82334
82335         Module file-type.
82336         * m4/file-type.m4: New file.
82337
82338         Module fileblocks.
82339         * m4/fileblocks.m4: New file.
82340
82341         Module filemode.
82342         * m4/filemode.m4: New file.
82343
82344         Module isdir.
82345         * m4/isdir.m4: New file.
82346
82347         Module lchown.
82348         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
82349         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
82350
82351         Module makepath.
82352         * m4/makepath.m4: New file.
82353
82354         Module modechange.
82355         * m4/modechange.m4: New file.
82356
82357         Module mountlist.
82358         * m4/mountlist.m4: New file.
82359         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
82360         Indentation.
82361
82362         Module path-concat.
82363         * m4/path-concat.m4: New file.
82364
82365         Module pathmax.
82366         * m4/pathmax.m4: New file.
82367
82368         Module same.
82369         * m4/same.m4: New file.
82370
82371         Module save-cwd.
82372         * m4/save-cwd.m4: New file.
82373
82374         Module savedir.
82375         * m4/savedir.m4: New file.
82376
82377         Module xgetcwd.
82378         * m4/xgetcwd.m4: New file.
82379         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
82380
82381         Module xreadlink.
82382         * m4/xreadlink.m4: New file.
82383
82384         Module safe-read.
82385         * m4/safe-read.m4: New file.
82386
82387         Module safe-write.
82388         * m4/safe-write.m4: New file.
82389
82390         Module closeout.
82391         * m4/closeout.m4: New file.
82392
82393         Module stdio-safer.
82394         * m4/stdio-safer.m4: New file.
82395
82396         Module getpass.
82397         * m4/getpass.m4: New file.
82398
82399         Module getugroups.
82400         * m4/getugroups.m4: New file.
82401
82402         Module group-member.
82403         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
82404         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
82405
82406         Module idcache.
82407         * m4/idcache.m4: New file.
82408
82409         Module userspec.
82410         * m4/userspec.m4: New file.
82411
82412         Module gettime.
82413         * m4/clock_time.m4: New file.
82414         * m4/gettime.m4: New file.
82415
82416         Module settime.
82417         * m4/settime.m4: New file.
82418
82419         Module posixtm.
82420         * m4/posixtm.m4: New file.
82421
82422         Module gethostname.
82423         * m4/gethostname.m4: New file.
82424
82425         Module canon-host.
82426         * m4/canon-host.m4: New file.
82427
82428         Module gettext.
82429         * m4/codeset.m4: New file, from gettext-0.11.5.
82430         * m4/gettext.m4: New file, from gettext-0.11.5.
82431         * m4/glibc21.m4: New file, from gettext-0.11.5.
82432         * m4/iconv.m4: New file, from gettext-0.11.5.
82433         * m4/intdiv0.m4: New file, from gettext-0.11.5.
82434         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
82435         * m4/inttypes.m4: New file, from gettext-0.11.5.
82436         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
82437         * m4/isc-posix.m4: New file, from gettext-0.11.5.
82438         * m4/lcmessage.m4: New file, from gettext-0.11.5.
82439         * m4/lib-ld.m4: New file, from gettext-0.11.5.
82440         * m4/lib-link.m4: New file, from gettext-0.11.5.
82441         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
82442         * m4/progtest.m4: New file, from gettext-0.11.5.
82443         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
82444         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
82445         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
82446
82447         Module localcharset.
82448         * m4/localcharset.m4: New file.
82449
82450         Module hard-locale.
82451         * m4/hard-locale.m4: New file.
82452
82453         Module mbswidth.
82454         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
82455         onceonly macros.
82456         * m4/mbrtowc.m4: Add comment.
82457
82458         Module memcasecmp.
82459         * m4/memcasecmp.m4: New file.
82460
82461         Module memcoll.
82462         * m4/memcoll.m4: New file.
82463
82464         Module unicodeio.
82465         * m4/unicodeio.m4: New file.
82466
82467         Module rpmatch.
82468         * m4/rpmatch.m4: New file.
82469
82470         Module yesno.
82471         * m4/yesno.m4: New file.
82472
82473         Module exitfail.
82474         * m4/exitfail.m4: New file.
82475
82476         Module c-stack.
82477         * m4/c-stack.m4 (gl_C_STACK): New macro.
82478         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
82479
82480         Module error.
82481         * m4/error.m4 (gl_ERROR): New macro.
82482         (jm_PREREQ_ERROR): Use onceonly macros.
82483
82484         Module fatal.
82485         * m4/fatal.m4: New file.
82486
82487         Module getloadavg.
82488         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
82489         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
82490
82491         Module getpagesize.
82492         * m4/getpagesize.m4: New file.
82493
82494         Module getusershell.
82495         * m4/getusershell.m4: New file.
82496
82497         Module physmem.
82498         * m4/physmem.m4: New file.
82499
82500         Module posixver.
82501         * m4/posixver.m4: New file.
82502
82503         Module quotearg.
82504         * m4/quotearg.m4: New file.
82505
82506         Module quote.
82507         * m4/quote.m4: New file.
82508
82509         Module readutmp.
82510         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
82511
82512         Module sig2str.
82513         * m4/sig2str.m4: New file.
82514
82515         Other.
82516         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
82517         ulonglong.m4.
82518         * m4/intmax_t.m4: New file.
82519         * m4/d-type.m4: Indentation.
82520         * m4/jm-macros.m4: Update.
82521         * m4/prereq.m4 (jm_PREREQ): Update.
82522         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
82523         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
82524         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
82525         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
82526         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
82527         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
82528         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
82529         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
82530         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
82531         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
82532         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
82533         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
82534         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
82535         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
82536         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
82537         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
82538         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
82539         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
82540         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
82541
82542 2002-12-24  Bruno Haible  <bruno@clisp.org>
82543
82544         * MODULES.txt: Update according to m4/ changes.
82545
82546         Module gettext.
82547         * config.rpath: New file, from gettext-0.11.5.
82548
82549         * modules/*: New module descriptions.
82550         * gnulib-tool: New file.
82551         * MODULES.html.sh: New file.
82552
82553 2002-12-21  Karl Berry  <karl@gnu.org>
82554
82555         * doc/fdl.texi: update to version 1.2.
82556
82557 2002-12-19  Karl Berry  <karl@gnu.org>
82558
82559         * config/config.guess: update from prep.
82560
82561 2002-12-18  Bruno Haible  <bruno@clisp.org>
82562
82563         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
82564         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
82565
82566 2002-12-17  Bruno Haible  <bruno@clisp.org>
82567
82568         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
82569         stdlib.h, string.h.
82570
82571 2002-12-17  Bruno Haible  <bruno@clisp.org>
82572
82573         * lib/canon-host.c (strdup): Remove unused declaration.
82574
82575         * lib/fsusage.c: Include full_read.h.
82576         (get_fs_usage): Use full_read instead of safe_read.
82577
82578         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
82579
82580 2002-12-12  Karl Berry  <karl@gnu.org>
82581
82582         * config/config.guess: update from prep.
82583
82584 2002-12-11  Bruno Haible  <bruno@clisp.org>
82585
82586         * m4/setenv.m4: New file, from gettext-0.11.5.
82587
82588 2002-12-11  Bruno Haible  <bruno@clisp.org>
82589
82590         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
82591         not unsetenv().
82592         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
82593         modifications:
82594
82595         2002-12-11  Bruno Haible  <bruno@clisp.org>
82596
82597                 * setenv.c (alloca): Fall back to malloc.
82598                 (freea): New macro.
82599                 (setenv): Use freea() to free memory allocated with alloca().
82600
82601         2002-11-13  Bruno Haible  <bruno@clisp.org>
82602
82603                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
82604                 function declarations.
82605                 * unsetenv.c (unsetenv): Likewise.
82606
82607         2002-03-04  Bruno Haible  <bruno@clisp.org>
82608
82609                 Portability to AIX 4.3.3.
82610                 * unsetenv.c: New file, extracted from setenv.c.
82611                 * setenv.c: Move the unsetenv() function to unsetenv.c.
82612
82613         2001-12-20  Bruno Haible  <bruno@clisp.org>
82614
82615                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
82616                 use malloc instead. For SunOS 4.
82617
82618         2001-12-11  Bruno Haible  <bruno@clisp.org>
82619
82620                 * setenv.c: Declare alloca.
82621                 (compar_fn_t): New typedef.
82622                 (KNOWN_VALUE, STORE_VALUE): Use it.
82623
82624         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
82625         setenv.h.
82626
82627 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82628
82629         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
82630         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
82631         Choose values that are less likely to collide with system fnmatch
82632         options.
82633         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
82634         defined (e.g., a pure POSIX system).
82635         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
82636         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
82637
82638 2002-12-06  Paul Eggert  <eggert@twinsun.com>
82639
82640         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
82641         a pain in practice to deal with generated m4 files.  This change
82642         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
82643
82644         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
82645         and jm-glibc-io.m4, as they are no longer a special case.
82646         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
82647         kludge and the auto-generation stuff.  Check only whether the
82648         functions are declared, not whether they exist, since older hosts
82649         that don't declare the functions can't use the optimization anyway.
82650
82651 2002-12-06  Jim Meyering  <jim@meyering.net>
82652
82653         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
82654
82655         Merge in changes from libc's misc/error.c, in preparation
82656         for the merge of gnulib's changes back into libc.
82657
82658         * lib/error.c (_): Define only if not already defined.
82659         Move definition to follow all #include directives.
82660         Include unlocked-io.h only if !_LIBC.
82661         [_LIBC]: Include <libio/libioP.h>.
82662         [USE_IN_LIBIO]: Include <libio/iolibio.h>
82663         (fflush): Tweak definition to use INTUSE.
82664         (putc): Define.
82665
82666 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82667
82668         * lib/alloca.c [defined emacs]: Include "lisp.h".
82669         (xalloc_die) [defined emacs]: New macro.
82670         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82671         [! defined emacs]: Include <xalloc.h>.
82672         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82673         (pointer): Typedef to POINTER_TYPE *.
82674         (malloc): Remove decl; we now always use xmalloc.
82675         (alloca): Use old-style definition, since Emacs needs this.
82676         Check for arithmetic overflow when computing combined size.
82677
82678 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82679
82680         Do not generate unlocked-io.h automatically, since it's easier to
82681         maintain it by hand.
82682
82683         * lib/unlocked-io.h: New file, from GNU diffutils,
82684         but with proper copyright notice and attribution.
82685         * lib/gen-uio: Remove.
82686         * lib/Makefile.am: Add copyright notice.
82687         (libfetish_a_SOURCES): Add unlocked-io.h.
82688         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82689         (DISTCLEANFILES, io_functions): Remove macros.
82690         (EXTRA_DIST): Remove gen_uio.
82691         (unlocked-io.h): Remove rule.
82692
82693 2002-12-04  Jim Meyering  <jim@meyering.net>
82694
82695         Reflect the fact that stat.c and lstat.c are no longer generated.
82696         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82697         (DISTCLEANFILES): Likewise.
82698         (EXTRA_DIST): Likewise.
82699         (all_local): Don't depend on stat.c or lstat.c.
82700         (stat.c, lstat.c): Remove rules.
82701         (EXTRA_DIST): Remove xstat.in.
82702
82703         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82704         * lib/stat.c: New file.  Contents mostly from xstat.in.
82705         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82706         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82707
82708         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82709         too.
82710         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82711
82712 2002-12-03  Jim Meyering  <jim@meyering.net>
82713
82714         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82715         but not semantics, to minimize the differences between these two files.
82716         (safe_read): Change comment to mention SAFE_READ_ERROR.
82717
82718         * lib/safe-read.c (IS_EINTR): Define.
82719         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82720
82721 2002-12-02  Jim Meyering  <jim@meyering.net>
82722
82723         * lib/safe-read.c (EINTR): Define.
82724         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82725         (INT_MAX): Provide fallback.
82726         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82727
82728         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82729
82730 2002-12-02  Bruno Haible  <bruno@clisp.org>
82731
82732         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82733         Define, taken from safe-read.c.
82734         (INT_MAX): Provide fallback.
82735         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82736         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82737
82738         * lib/safe-read.c (EINTR): Remove definition.
82739         (safe_read): Don't use EINTR if it is absent.
82740
82741 2002-12-01  Jim Meyering  <jim@meyering.net>
82742
82743         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82744         zero.
82745         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82746
82747 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82748
82749         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82750         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82751         with `if (! (value < limit)) abort ();', for readability.
82752
82753 2002-11-26  Karl Berry  <karl@gnu.org>
82754
82755         * lib/strdup.c: copy from libc again, with jim's ok.
82756         * lib/.cppi-disable: re-add strdup.c
82757
82758 2002-11-25  Karl Berry  <karl@gnu.org>
82759
82760         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82761         instead of "strtol.c".
82762
82763 2002-11-25  Karl Berry  <karl@gnu.org>
82764
82765         * config/install-sh: update from automake for variable quoting, $0 in
82766         error msgs, etc.
82767
82768         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82769         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82770         entry.
82771
82772 2002-11-25  Jim Meyering  <jim@meyering.net>
82773
82774         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82775
82776 2002-11-24  Karl Berry  <karl@gnu.org>
82777
82778         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82779         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82780
82781 2002-11-24  Jim Meyering  <jim@meyering.net>
82782
82783         Update from coreutils:
82784
82785         * lib/mktime.c: Merge in changes from libc.
82786
82787         Avoid a link-time failure on some Linux systems.
82788         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82789         (otherwise).
82790         (__mon_yday): Declare with the STATIC attribute.
82791         (__mktime_internal): Likewise.
82792         Based on a report from Greg Schafer.
82793
82794 2002-11-23  Jim Meyering  <jim@meyering.net>
82795
82796         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82797         Use `unsigned', not `int', as type of index.
82798
82799         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82800
82801         * lib/fsusage.c: Remove unneeded parentheses around operands of
82802         `defined'.
82803
82804 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82805
82806         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82807         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82808         so that we can be included first.
82809         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82810         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82811         No need to include stddef.h or sys/types.h any more.
82812         Surround local include files with "", not "<>".
82813         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82814         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82815         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82816         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82817         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82818         (ISPRINT): Remove; no longer needed now that we assume C89.
82819
82820         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82821         Preserve errno.
82822
82823         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82824         quotearg_char): Use SIZE_MAX rather than
82825         (size_t) -1 when we are talking about "infinity".
82826
82827         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82828
82829 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82830
82831         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82832         hint that one should use `if (! x) abort ();' rather than `assert
82833         (x);', and anyway it's one less thing to worry about configuring.
82834         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82835         hash_rehash, hash_insert): Use abort rather than assert.
82836
82837 2002-11-22  Bruno Haible  <bruno@clisp.org>
82838
82839         * lib/safe-read.h: Assume C89. Add comments.
82840         (safe_read): Change return type to size_t.
82841         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82842         byte counts > SSIZE_MAX correctly.
82843         * lib/safe-write.h: New file.
82844         * lib/safe-write.c: New file.
82845         * lib/full-read.h: New file.
82846         * lib/full-read.c: New file.
82847         * lib/full-write.h: Assume C89. Add comments.
82848         * lib/full-write.c: Include safe-write.h.
82849         (full_write): Rewritten to use safe_write.
82850         Suggested by Jim Meyering and Paul Eggert.
82851
82852 2002-11-21  Jim Meyering  <jim@meyering.net>
82853
82854         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82855
82856         Merge in changes from the coreutils.
82857
82858         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82859         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82860         <stdint.h>.
82861         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82862         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82863         int.  Work more efficiently if X is the same width as uintmax_t.
82864         Do not compare X to -1, to avoid bogus compiler warning.
82865         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82866         Don't assume that f_frsize and f_bsize are the same type.
82867
82868         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82869         warning on FreeBSD.
82870
82871         * lib/makepath.c (make_path): Restore umask *before* creating the final
82872         component.
82873         (make_path): Minor reformatting.
82874
82875         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82876         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82877         HAVE_MALLOC/HAVE_REALLOC.
82878
82879         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82880         dummy ones.  At least on GNU/Linux systems, `auto' means something
82881         else.
82882         From Michael Stone.
82883
82884 2002-11-21  Bruno Haible  <bruno@clisp.org>
82885
82886         Remove case insensitive option matching.
82887         * lib/argmatch.h (argcasematch): Remove declaration.
82888         (ARGCASEMATCH): Remove macro.
82889         (__xargmatch_internal): Remove case_sensitive argument.
82890         (XARGMATCH): Update.
82891         (XARGCASEMATCH): Remove macro.
82892         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82893         case_sensitive argument.
82894         (argcasematch): Remove function.
82895         (__xargmatch_internal): Remove case_sensitive argument.
82896         (main): Use XARGMATCH instead of XARGCASEMATCH.
82897
82898         * lib/xmalloc.c: Change compile-time error message. Add comment about
82899         required autoconf version.
82900
82901 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82902
82903         Merge argmatch cleanups from Bison.  Assume C89.
82904
82905         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82906         Include stdlib.h, for EXIT_FAILURE.
82907         Always include <string.h>, since we assume C89.
82908         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82909         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82910         Include <stddef.h> instead, since it's all we need for size_t.
82911         (PARAMS): Remove.  All uses removed.
82912         (ARRAY_CARDINALITY): Do not bother to #undef.
82913         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82914         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82915         Remove unnecessary parentheses.
82916         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82917         Insert necessary parentheses.
82918         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82919         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82920
82921 2002-11-19  Bruno Haible  <bruno@clisp.org>
82922
82923         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82924         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82925
82926         * lib/mbswidth.h (PARAMS): Remove macro.
82927         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82928         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82929
82930         * lib/gcd.h (PARAMS): Remove macro.
82931         (gcd): Use ANSI C function declarations.
82932         * lib/gcd.c (gcd): Likewise.
82933
82934 2002-11-15  Bruno Haible  <bruno@clisp.org>
82935
82936         * lib/strcspn.c: Include <stddef.h>.
82937         (strcspn): Use ANSI C function declaration. Change return type to
82938         size_t. Use NULL.
82939         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82940         (strpbrk): Use NULL.
82941         * lib/strpbrk.h (PARAMS): Remove macro.
82942         (strpbrk): Use ANSI C function declaration.
82943         * lib/strstr.c: Don't include <sys/types.h>.
82944         * lib/strstr.h (PARAMS): Remove macro.
82945         (strstr): Use ANSI C function declarations.
82946
82947 2002-11-14  Karl Berry  <karl@gnu.org>
82948
82949         * config/mkinstalldirs: `do' on separate line, instead of
82950         `for var; do'.
82951
82952 2002-11-06  Bruno Haible  <bruno@clisp.org>
82953
82954         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82955         * lib/gcd.c (gcd): Likewise.
82956
82957 2002-11-05  Bruno Haible  <bruno@clisp.org>
82958
82959         * lib/gcd.h: New file, from gettext-0.11.5.
82960         * lib/gcd.c: New file, from gettext-0.11.5.
82961
82962 2002-11-05  Bruno Haible  <bruno@clisp.org>
82963
82964         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82965         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82966         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82967         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82968
82969         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82970         <libintl.h>.
82971         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82972         <libintl.h>.
82973
82974         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82975         * lib/human.c: Include gettext.h instead of <libintl.h>.
82976         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82977         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82978         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82979         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82980         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82981         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82982         (textdomain): Remove definition.
82983         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82984
82985         * lib/long-options.c: Remove include of <libintl.h> and definition of
82986         _.
82987         * lib/same.c: Remove include of <libintl.h> and definition of _.
82988
82989 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82990
82991         * lib/config.charset: A few additions for Solaris.
82992
82993 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82994
82995         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82996         * lib/localcharset.c (locale_charset): Declare as extern "C".
82997
82998 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82999
83000         * lib/config.charset: msdos in uk_UA uses CP1125.
83001
83002 2002-11-04  Bruno Haible  <bruno@clisp.org>
83003
83004         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
83005         * lib/strcase.h: New file, from GNU gettext-0.11.5.
83006         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
83007         * lib/strstr.h: New file, from GNU gettext-0.11.5.
83008         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
83009
83010 2002-11-04  Bruno Haible  <bruno@clisp.org>
83011
83012         * lib/localcharset.c (locale_charset): Don't return an empty string.
83013
83014 2002-11-04  Bruno Haible  <bruno@clisp.org>
83015
83016         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
83017         aliases.
83018
83019 2002-11-04  Bruno Haible  <bruno@clisp.org>
83020
83021         * lib/config.charset: Update for newest glibc. Add canonical names
83022         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
83023
83024 2002-11-04  Bruno Haible  <bruno@clisp.org>
83025
83026         * lib/config.charset: Add support for NetBSD.
83027
83028 2002-11-04  Bruno Haible  <bruno@clisp.org>
83029
83030         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
83031
83032 2002-11-01  Bruno Haible  <bruno@clisp.org>
83033
83034         * configure.in: Add AC_CONFIG_AUX_DIR call.
83035         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
83036         test/Makefile.
83037         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
83038
83039 2002-09-28  Karl Berry  <karl@gnu.org>
83040
83041         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
83042         installed automake until the next release, since changes have been
83043         made.
83044
83045 2002-09-25  Karl Berry  <karl@gnu.org>
83046
83047         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
83048         * lib/getopt*: copy from libc/posix.
83049         * lib/gettext.h: copy from gettext.
83050         * lib/.cppi-disable: add strdup.c, gettext.h.
83051
83052 2002-09-25  Karl Berry  <karl@gnu.org>
83053
83054         * config/srclist.txt: enable gettext.h check.
83055         * config/config.{guess,sub}: update from prep.
83056         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
83057                 from automake 1.6.3.
83058         See srclist*.
83059
83060 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
83061
83062         * regex.c (PATFETCH): Remove the translating fetch.
83063         (PATFETCH_RAW): Rename to PATFETCH.
83064         (set_image_of_range): New fun.
83065         (SET_RANGE_TABLE_WORK_AREA): Use it.
83066         (regex_compile): Don't translate the pattern chars so eagerly.
83067         Only do it when inserting an `exactn' bytecode or when handling
83068         a char-range.
83069         (mutually_exclusive_p): Avoid empty statement.
83070
83071 2002-07-06  Jim Meyering  <meyering@lucent.com>
83072
83073         * m4/README: Don't mention Makefile.am.in.
83074         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
83075
83076 2002-07-01  Jim Meyering  <meyering@lucent.com>
83077
83078         * lib/c-stack.c: Include sys/time.h.
83079         From Volker Borchert.
83080
83081 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83082
83083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
83084
83085 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83086
83087         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
83088         New macro.  Use it uniformly instead of
83089         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
83090         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
83091         reported by Vin Shelton.
83092
83093 2002-06-22  Paul Eggert  <eggert@twinsun.com>
83094
83095         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
83096         Do not assume SA_SIGINFO behavior.
83097         Bug reported by Jim Meyering on NetBSD 1.5.2.
83098
83099 2002-06-22  Jim Meyering  <meyering@lucent.com>
83100
83101         * m4/c-stack.m4: New file, from diffutils-2.8.2.
83102         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
83103
83104         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
83105         now that configure.ac uses AC_GNU_SOURCE.
83106         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
83107         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
83108
83109         Update to latest tools.  Suggestions from Paul Eggert.
83110         * m4/stdbool.m4: New file, from diffutils-2.8.2.
83111         * m4/gnu-source.m4: Update from diffutils-2.8.2.
83112         * m4/fnmatch.m4: Likewise.
83113         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
83114         to AC_HEADER_STDBOOL
83115
83116 2002-06-22  Jim Meyering  <meyering@lucent.com>
83117
83118         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
83119         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
83120
83121 2002-06-22  Jim Meyering  <meyering@lucent.com>
83122
83123         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
83124
83125         * lib/exitfail.c, exitfail.h: Likewise.
83126         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
83127
83128         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
83129         of fnmatch.h.
83130         (EXTRA_DIST): Add fnmatch_loop.c.
83131         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
83132
83133         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
83134         * lib/fnmatch.c: Update from diffutils-2.8.2.
83135         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
83136         * lib/fnmatch.h: Remove file.
83137
83138 2002-06-21  Jim Meyering  <meyering@lucent.com>
83139
83140         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
83141         * m4/mbrtowc.m4: Likewise.
83142
83143         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
83144         * m4/mbswidth.m4: Reflect name change:
83145         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
83146         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83147
83148         * m4/lib-link.m4: Update from gettext-0.11.2.
83149         * m4/gettext.m4: Likewise.
83150
83151         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
83152         From Alfred M. Szmidt.
83153
83154 2002-06-18  Paul Eggert  <eggert@twinsun.com>
83155
83156         * lib/file-type.h: Report an error if neither S_ISREG nor
83157         S_IFREG is defined, instead of using a test specific to glibc
83158         2.2.  This should be safe, since POSIX requires S_ISREG and
83159         Unix Version 7 had S_IFREG.  We don't need to check for
83160         <sys/types.h> since we don't use any symbols that it defines.
83161
83162 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
83163
83164         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
83165         $@-t, so that each temporary file name is unique and valid in the first
83166         8 characters, for operation under DOS.
83167
83168 2002-06-15  Paul Eggert  <eggert@twinsun.com>
83169
83170         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
83171
83172 2002-06-15  Jim Meyering  <meyering@lucent.com>
83173
83174         Work even with DJGPP 2.03, which lacks support for symlinks.
83175         From Richard Dawe.
83176         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
83177         is defined.
83178         * lib/lchown.c (S_ISLNK): Likewise.
83179
83180 2002-06-15  Jim Meyering  <meyering@lucent.com>
83181
83182         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
83183         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
83184         have been included before this file.
83185
83186 2002-06-14  Jim Meyering  <meyering@lucent.com>
83187
83188         * lib/file-type.h: Use the version from diffutils-2.8.2.
83189         * lib/file-type.c: Likewise.
83190
83191 2002-06-07  Jim Meyering  <meyering@lucent.com>
83192
83193         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
83194         They're needed at least for NetBSD 1.5.2.
83195         ($statxfs_includes): Include those same headers.
83196         ($statxfs_includes): Include sys/vfs.h if available.
83197         ($statxfs_includes): Likewise for sys/statvfs.h.
83198         Check for the following members in both structs statfs and statvfs:
83199         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
83200
83201 2002-06-01  Jim Meyering  <meyering@lucent.com>
83202
83203         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
83204         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
83205
83206 2002-05-28  Jim Meyering  <meyering@lucent.com>
83207
83208         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
83209         Reported by Volker Borchert.
83210
83211 2002-05-27  Jim Meyering  <meyering@lucent.com>
83212
83213         Fix a problem seen only on nonconforming systems whereby ls.c's
83214         use of localtime, and then of gettimeofday would cause trouble:
83215         the localtime call used to initialize rpl_gettimeofday's save
83216         mechanism would clobber ls's current local time information so
83217         that in any long listing the first file would always be listed
83218         with date 1970-01-01.  Analysis by Volker Borchert.
83219
83220         * lib/gettimeofday.c (localtime): Undefine.
83221         (rpl_localtime): New function.
83222
83223 2002-05-27  Jim Meyering  <meyering@lucent.com>
83224
83225         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
83226         localtime.
83227
83228         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
83229         use the replacement function; it wouldn't resolve at link time.
83230         Reported by Volker Borchert.
83231
83232 2002-05-22  Jim Meyering  <meyering@lucent.com>
83233
83234         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
83235         file-type.h.
83236         * lib/file-type.h: New file.
83237         * lib/file-type.c (file_type): New file/function.  Extracted from
83238         diffutils.
83239
83240 2002-04-30  Jim Meyering  <meyering@lucent.com>
83241
83242         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
83243
83244 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83245
83246         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
83247
83248 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83249
83250         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
83251         Do not check for alloca.h (no longer used) or stdbool.h (was never
83252         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
83253
83254 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83255
83256         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
83257
83258 2002-04-29  Jim Meyering  <meyering@lucent.com>
83259
83260         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
83261         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
83262         Use AC_FUNC_STRNLEN here instead.
83263
83264         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
83265         With autoconf-2.53a, it's part of AC_PROG_CC.
83266
83267 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83268
83269         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
83270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
83271
83272 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83273
83274         * lib/sig2str.h, lib/sig2str.c: New files.
83275         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
83276
83277 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83278
83279         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
83280         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
83281         of 127, since 64 is the largest conceivable number for ancient
83282         nonstandard hosts.
83283         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
83284
83285 2002-04-28  Jim Meyering  <meyering@lucent.com>
83286
83287         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
83288
83289 2002-04-24  Jim Meyering  <meyering@lucent.com>
83290
83291         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
83292         (jm_PREREQ): Use it.
83293
83294         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
83295         mach/mach.h fcntl.h.
83296         Check for this function: setlocale.
83297
83298 2002-04-24  Jim Meyering  <meyering@lucent.com>
83299
83300         * lib/gettext.h: New file, from Gettext.
83301         * lib/Makefile.am (INCLUDES): Remove -I../intl.
83302         (libfetish_a_SOURCES): Add gettext.h.
83303
83304 2002-04-16  Jim Meyering  <meyering@lucent.com>
83305
83306         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
83307         ut_pid, ut_id, ut_exit.
83308
83309 2002-04-16  Jim Meyering  <meyering@lucent.com>
83310
83311         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
83312         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
83313         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
83314
83315 2002-04-12  Jim Meyering  <meyering@lucent.com>
83316
83317         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
83318         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
83319         existence of the getmntinfo function.  Needed for Darwin 5.3.
83320
83321         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
83322         This is necessary at least on Darwin 5.3.
83323
83324         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
83325         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
83326         strnlen.o in the library, and that makes some versions of ranlib
83327         object.
83328
83329 2002-04-12  Jim Meyering  <meyering@lucent.com>
83330
83331         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
83332
83333 2002-04-09  Jim Meyering  <meyering@lucent.com>
83334
83335         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
83336         to be more precise.  Rather than saying we're checking whether the
83337         function `works', say what we're testing.
83338         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
83339         Reported by Bruno Haible.
83340
83341 2002-03-10  Jim Meyering  <meyering@lucent.com>
83342
83343         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
83344         Suggestion from Santiago Vila.
83345
83346 2002-03-08  Jim Meyering  <meyering@lucent.com>
83347
83348         * lib/rename.c: Mention that this wrapper is needed also on
83349         mips-dec-ultrix4.4 systems.
83350
83351 2002-03-02  Jim Meyering  <meyering@lucent.com>
83352
83353         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
83354         not HAVE_CLOCK_SETTIME.
83355
83356 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83357
83358         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
83359         Check for clock_settime.
83360
83361 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83362
83363         * lib/nanosleep.h: Rename to....
83364         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
83365
83366         * lib/gettime.c: New file.
83367         * lib/settime.c: New file.
83368         * lib/stime.c: Remove.
83369
83370         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
83371         timespec.h.  Remove nanosleep.h.
83372
83373 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83374
83375         * m4/acl.m4: New file.
83376         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
83377         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
83378
83379 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83380
83381         * lib/acl.c, lib/acl.h: New files.
83382         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
83383
83384 2002-02-24  Jim Meyering  <meyering@lucent.com>
83385
83386         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
83387         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
83388         cause trouble.  Reported by Nelson Beebe.
83389
83390 2002-02-23  Paul Eggert  <eggert@twinsun.com>
83391
83392         * lib/path-concat.c (xpath_concat): Reorder code to pacify
83393         compilers that don't know that xalloc_die never returns.
83394
83395 2002-02-20  Jim Meyering  <meyering@lucent.com>
83396
83397         * lib/getdate.c: Regenerate using bison-1.33.
83398
83399 2002-02-17  Jim Meyering  <meyering@lucent.com>
83400
83401         * config/config.guess (main): Don't use `head -1'; it's no longer
83402         portable. Use `sed 1q' instead.
83403
83404 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
83405
83406         * m4/codeset.m4: Upgrade to gettext-0.11.
83407         * m4/gettext.m4: Upgrade to gettext-0.11.
83408         * m4/glibc21.m4: Upgrade to gettext-0.11.
83409         * m4/iconv.m4: Upgrade to gettext-0.11.
83410         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83411         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83412         * m4/lib-ld.m4: New file, from gettext-0.11.
83413         * m4/lib-link.m4: New file, from gettext-0.11.
83414         * m4/lib-prefix.m4: New file, from gettext-0.11.
83415         * m4/progtest.m4: Upgrade to gettext-0.11.
83416
83417 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83418
83419         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
83420         (jm_PREREQ): Use it.
83421
83422 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83423
83424         * lib/posixver.c, lib/posixver.h: New files.
83425         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83426
83427 2002-02-02  Paul Eggert  <eggert@twinsun.com>
83428             Bruno Haible  <bruno@clisp.org>
83429
83430         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
83431         (fwrite_success_callback): New declaration.
83432         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
83433         print_unicode_char. Call failure callback instead of error.
83434         (fwrite_success_callback): New function.
83435         (exit_failure_callback): New function.
83436         (fallback_failure_callback): New function.
83437         (print_unicode_char): Call unicode_to_mb.
83438
83439 2002-01-26  Jim Meyering  <meyering@lucent.com>
83440
83441         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
83442         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
83443
83444 2002-01-26  Jim Meyering  <meyering@lucent.com>
83445
83446         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
83447
83448 2002-01-22  Paul Eggert  <eggert@twinsun.com>
83449
83450         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
83451
83452 2002-01-22  Jim Meyering  <meyering@lucent.com>
83453
83454         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
83455         Otherwise, some versions of automake would omit the rule that makes
83456         Makefile from Makefile.in.
83457
83458 2002-01-21  Paul Eggert  <eggert@twinsun.com>
83459
83460         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
83461         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83462         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
83463         (memcoll): Set errno to zero if there is no error.
83464
83465         * lib/quotearg.c (quotearg_buffer_restyled):
83466         Fix bug with quoting buffers containing NUL when backslashing escapes.
83467         This bug was exposed by the other changes in this patch.
83468         (quotearg_n_options): New arg ARGSIZE.
83469         All callers changed.
83470         (quoting_options_from_style): New function.
83471         (quotearg_n_style): Use it.
83472         (quotearg_n_style_mem): New function.
83473
83474         * lib/quotearg.h (quotearg_n_style_mem): New function.
83475
83476 2002-01-19  Jim Meyering  <meyering@lucent.com>
83477
83478         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
83479         Remove useless quotes: DF_PROG="df".
83480         * m4/strnlen.m4: New file.
83481
83482 2002-01-16  Paul Eggert  <eggert@twinsun.com>
83483
83484         * lib/backupfile.c (ISDIGIT): Comment fix.
83485         * lib/getdate.y (ISDIGIT): Likewise.
83486         * lib/posixtm.c (ISDIGIT, year): Likewise.
83487         * lib/strverscmp.c (ISDIGIT): Likewise.
83488         * lib/userspec.c (ISDIGIT): Likewise.
83489
83490 2002-01-16  Jim Meyering  <meyering@lucent.com>
83491
83492         * lib/getdate.y: Add three semicolons, each just before a closing
83493         brace. Bison (as of version 1.31) no longer papers over that mistake.
83494
83495 2002-01-05  Jim Meyering  <meyering@lucent.com>
83496
83497         * lib/version-etc.c (version_etc_copyright): Update copyright year.
83498
83499 2001-12-19  Paul Eggert  <eggert@twinsun.com>
83500
83501         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
83502         not silently exit merely because the output buffer happens to
83503         have nothing pending.
83504
83505 2001-12-18  Paul Eggert  <eggert@twinsun.com>
83506
83507         See the big note in ../ChangeLog.
83508         * lib/human.c (suffixes): Prefer K to k for 1024.
83509         (generate_suffix_backwards): New function.
83510         (human_readable_inexact): Use it.
83511         * lib/xstrtol.c (__xstrtol): If there is no number but there
83512         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
83513         Accept 'K' as well as 'k'.
83514
83515 2001-12-15  Jim Meyering  <meyering@lucent.com>
83516
83517         * lib/regex.h (__restrict_arr): Update from libc.
83518
83519         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
83520         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
83521         (STREQ): Define.
83522
83523 2001-12-14  Jim Meyering  <meyering@lucent.com>
83524
83525         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
83526         Suggestion from Bruno Haible.
83527
83528 2001-12-10  Jim Meyering  <meyering@lucent.com>
83529
83530         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
83531         xrealloc, Instead, include "xalloc.h".
83532         (initbuffer): Don't cast xmalloc return value to char*.
83533         (readline): Reword comment.
83534         Don't cast xrealloc return value to char*
83535         Return NULL, not 0.
83536
83537 2001-12-09  Jim Meyering  <meyering@lucent.com>
83538
83539         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
83540         about `signed and unsigned type in conditional expression'.
83541         * lib/posixtm.c (posix_time_parse): Likewise.
83542
83543         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
83544
83545         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
83546         to avoid a pedantic warning.
83547
83548         * lib/getstr.c: Don't include assert.h.
83549         (getstr): Remove warning-evoking assertions.
83550         Return -1 if offset parameter is out of bounds.
83551         Change the type of a local from int to size_t.
83552
83553         * lib/strftime.c (my_strftime_localtime_r): Include this function
83554         definition in the `#if ! HAVE_TM_GMTOFF' block.
83555
83556         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
83557         Include xalloc.h instead.
83558
83559 2001-12-02  Jim Meyering  <meyering@lucent.com>
83560
83561         * lib/tempname.c: Don't declare getenv, thus reverting the change of
83562         2001-11-18.  It's no longer necessary, now that stdlib.h is always
83563         included.
83564
83565         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
83566         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
83567
83568 2001-11-30  Akim Demaille  <akim@epita.fr>
83569
83570         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
83571         before being defined.
83572
83573 2001-11-27  Paul Eggert  <eggert@twinsun.com>
83574
83575         * lib/quotearg.h (quotearg_n, quotearg_n_style):
83576         First arg is int, not unsigned.
83577         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
83578         (SIZE_MAX, UINT_MAX): New macros.
83579         (quotearg_n_options): Abort if N is negative.
83580         Avoid overflow check on hosts where size_t is 64 bits and int
83581         is 32 bits, as overflow is impossible there.
83582         Fix off-by-one typo that caused unnecessary reallocation.
83583
83584 2001-11-27  Jim Meyering  <meyering@lucent.com>
83585
83586         * lib/tempname.c: Merge with version from libc.
83587         * lib/regex.c: Likewise.
83588
83589         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
83590         systems for which STDC_HEADERS is 0, it was not included, resulting in
83591         a warning about an integer-to-pointer conversion problem with getenv.
83592         Reported by Volker Borchert.
83593
83594 2001-11-26  Jim Meyering  <meyering@lucent.com>
83595
83596         * lib/gtod.h: Remove file.
83597         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
83598         * lib/gettimeofday.c: Don't include gtod.h.
83599         (GTOD_init): Remove function.
83600         (rpl_gettimeofday): Do its job here instead, rather than aborting.
83601         Suggestion from Volker Borchert.
83602
83603 2001-11-23  Jim Meyering  <meyering@lucent.com>
83604
83605         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
83606         it.
83607         * lib/hash.c (struct hash_table): Define it here instead.
83608
83609 2001-11-22  Jim Meyering  <meyering@lucent.com>
83610
83611         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
83612
83613 2001-11-20  Jim Meyering  <meyering@lucent.com>
83614
83615         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
83616         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
83617
83618 2001-11-19  Jim Meyering  <meyering@lucent.com>
83619
83620         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
83621         directory.  Use "conftestXXXXXX" as the template.
83622         Suggestion from Paul Eggert.
83623
83624         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
83625         immediately, so the test doesn't mistakenly hit the max-open-files
83626         limit.
83627
83628 2001-11-18  Paul Eggert  <eggert@twinsun.com>
83629
83630         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
83631         (TEMPORARIES): New macro.
83632         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
83633         removes an artificial limitation (e.g. HP-UX 10.20, where
83634         TMP_MAX is 17576).
83635
83636 2001-11-18  Jim Meyering  <meyering@lucent.com>
83637
83638         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
83639
83640 2001-11-18  Jim Meyering  <meyering@lucent.com>
83641
83642         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
83643         on SunOS 4.
83644
83645         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
83646         files will be created before anything else.
83647
83648 2001-11-17  Paul Eggert  <eggert@twinsun.com>
83649
83650         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
83651         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
83652
83653 2001-11-17  Jim Meyering  <meyering@lucent.com>
83654
83655         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
83656         Prompted by a report from Bob Proulx.
83657
83658         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
83659         Instead, require UTILS_FUNC_MKSTEMP.
83660
83661 2001-11-17  Jim Meyering  <meyering@lucent.com>
83662
83663         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
83664         Now, that's done as part of AC_FUNC_STRTOD.
83665
83666 2001-11-17  Jim Meyering  <meyering@lucent.com>
83667
83668         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83669         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83670         rather than group writable.  Patch by Juan F. Codagnone.
83671
83672         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83673         xrealloc, Instead, include "xalloc.h".
83674
83675         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83676         Remove explicit declarations of xmalloc, xrealloc,
83677         and xstrdup.  Instead, include "xalloc.h".
83678
83679         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83680         unlocked-io.h.
83681         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83682         Likewise.
83683         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83684
83685         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83686         Reported by Padraig Brady.
83687
83688         * lib/mkstemp.c: #undef mkstemp.
83689         Include config.h.
83690         (rpl_mkstemp): Rename from mkstemp.
83691         Protoize.
83692
83693 2001-11-16  Jim Meyering  <meyering@lucent.com>
83694
83695         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83696         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83697         determine the amount of total physical memory, use pstat_getstatic.
83698         HPUX-11 doesn't define _SC_PHYS_PAGES.
83699         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83700         If sysconf couldn't be used to determine the amount of available
83701         physical memory, use both pstat_getstatic and pstat_getdynamic.
83702         Based on a patch from Bob Proulx.
83703
83704 2001-11-10  Jim Meyering  <meyering@lucent.com>
83705
83706         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83707         (jm_PREREQ): Use it.
83708
83709 2001-11-09  Jim Meyering  <meyering@lucent.com>
83710
83711         * m4/jm-macros.m4: Require autoconf-2.52f.
83712         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83713         Use these AC_-prefixed names, not the AM_-prefixed ones.
83714
83715         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83716
83717 2001-11-05  Jim Meyering  <meyering@lucent.com>
83718
83719         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83720
83721 2001-11-04  Jim Meyering  <meyering@lucent.com>
83722
83723         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83724         $DEFS.
83725
83726 2001-11-03  Jim Meyering  <meyering@lucent.com>
83727
83728         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83729         of AC_DEFUN.
83730
83731         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83732         know the name of the variable in the macro definition.
83733
83734 2001-11-03  Jim Meyering  <meyering@lucent.com>
83735
83736         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83737         in argmatch_to_argument call.
83738
83739         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83740         argument.
83741
83742         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83743         e.g., a fault due to an attempt to free a NULL pointer.
83744
83745 2001-11-01  Jim Meyering  <meyering@lucent.com>
83746
83747         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83748         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83749
83750 2001-11-01  Jim Meyering  <meyering@lucent.com>
83751
83752         * lib/dirfd.c, lib/dirfd.h: New files.
83753         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83754
83755         * lib/hash.c (hash_print) [TESTING]: Clean up.
83756
83757 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83758
83759         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83760         to avoid a warning if -Wall.
83761
83762 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83763
83764         * README: New file
83765         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83766         (per RMS's instructions, this is now the canonical source)
83767         * lgpl/, gpl/: New directories.
83768
83769 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83770
83771         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83772
83773 2001-10-21  Jim Meyering  <meyering@lucent.com>
83774
83775         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83776         this code would end up calling gettext even in packages built
83777         with --disable-nls.
83778         * lib/getopt.c (_): Likewise.
83779         * lib/regex.c (_): Likewise.
83780
83781 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83782
83783         * m4/error.m4 (jm_PREREQ_ERROR):
83784         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83785         AC_FUNC_STRERROR_R does that.
83786         Check for strerror declaration.
83787
83788         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83789         are supposed to have them these days.
83790         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83791         Merge changes from latest Autoconf CVS.
83792         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83793         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83794         POSIX decided to standardize on the int flavor of strerror_r.
83795
83796 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83797
83798         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83799         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83800         Use strerror_r that is only a macro, even if it is not a function.
83801         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83802         (private_strerror): Use prototypes, not old-style function definition.
83803         (print_errno_message): New function.
83804         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83805         char*-flavored one.
83806         (error_tail, error, error_at_line): Use it.
83807
83808 2001-10-11  Jim Meyering  <meyering@lucent.com>
83809
83810         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83811         and quote_n (1, ... to avoid clobbering a buffer.
83812
83813 2001-10-05  Jim Meyering  <meyering@lucent.com>
83814
83815         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83816         hash-pjw.h.
83817         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83818         * lib/hash-pjw.h: New file.
83819
83820 2001-09-30  Jim Meyering  <meyering@lucent.com>
83821
83822         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83823         `struct fsstat' has the `f_fstypename' member.
83824         Use that to define FS_TYPE, which is now used to make
83825         the getfsstat link test tighter.
83826
83827 2001-09-30  Jim Meyering  <meyering@lucent.com>
83828
83829         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83830         Include <sys/ucred.h>, for Apple Darwin.
83831         Include sys/mount.h and sys/fs_types.h only if available.
83832         (FS_TYPE): Define.
83833         (read_filesystem_list): Use FS_TYPE.
83834
83835 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83836
83837         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83838         a boolean context.
83839
83840 2001-09-29  Jim Meyering  <meyering@lucent.com>
83841
83842         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83843         [one-argument getmntent function]): Include stdio.h before mntent.h.
83844         SunOS 4.1.x needs it for the declaration of `FILE'.
83845         Patch by Volker Borchert.
83846
83847         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83848         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83849         sys/fs_types.h, and make the link-test for getfsstat guard #include
83850         directives with appropriate #if HAVE_*_H tests so that we can
83851         detect getfsstat on Apple Darwin1.3.7 systems.
83852         Reported by Nelson Beebe.
83853         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83854
83855 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83856
83857         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83858         #defines strtoimax.  Also treat the other strto* functions
83859         like strtoimax.
83860
83861         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83862         Check for strtoul and strtoumax,
83863         as those declarations are made even in the signed case.
83864         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83865         Likewise, for strtol and strtoimax.
83866
83867 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83868
83869         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83870         #defines strtoimax.  Also treat the other strto* functions
83871         like strtoimax.
83872
83873         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83874         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83875         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83876
83877 2001-09-26  Jim Meyering  <meyering@lucent.com>
83878
83879         Most macros in unlocked-io.h had the wrong number of arguments.
83880         * lib/gen-uio: New script.
83881         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83882         * lib/unlocked-io.hin: Remove file.
83883         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83884         rather than trying to embed it here.
83885         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83886         Reported by Padraig Brady.
83887
83888 2001-09-25  Volker Borchert  <bt@teknon.de>
83889
83890         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83891         `result'.
83892
83893 2001-09-24  Jim Meyering  <meyering@lucent.com>
83894
83895         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83896
83897 2001-09-23  Jim Meyering  <meyering@lucent.com>
83898
83899         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83900         instead of the mere test for existence of mntent.h.  The latter
83901         would get a false-positive on AIX 3.4 systems.
83902         In the outer getmntent if-block, don't die if neither of the getmntent
83903         tests succeeds.  Instead, just fall through and continue with the
83904         remaining tests.
83905
83906 2001-09-23  Jim Meyering  <meyering@lucent.com>
83907
83908         * lib/mountlist.c: Remove useless parentheses in #if directives.
83909         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83910         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83911
83912 2001-09-22  Jim Meyering  <meyering@lucent.com>
83913
83914         * m4/gettext.m4: New file.  From gettext.
83915         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83916         * m4/progtest.m4: Likewise
83917         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83918         * m4/glibc21.m4: Likewise.
83919
83920         * m4/libintl.m4: Remove.  No longer used.
83921
83922 2001-09-22  Jim Meyering  <meyering@lucent.com>
83923
83924         * lib/localcharset.c: Update from latest gettext.
83925         * lib/config.charset: Likewise.
83926
83927 2001-09-20  Jim Meyering  <meyering@lucent.com>
83928
83929         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83930         strtoimax.
83931         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83932         strtoumax.
83933
83934 2001-09-20  Jim Meyering  <meyering@lucent.com>
83935
83936         * lib/xstrtol.c (strtoimax): Guard declaration with
83937         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83938         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83939         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83940         (strtoumax): Likewise, for completeness (it wasn't necessary).
83941
83942 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83943
83944         * lib/strtoimax.c (HAVE_LONG_LONG):
83945         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83946         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83947         to work around bug in IBM C compiler.
83948
83949 2001-09-17  Jim Meyering  <meyering@lucent.com>
83950
83951         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83952         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83953         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83954         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83955         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83956         whenever the right hand side need not be expanded by the shell.
83957
83958 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83959
83960         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83961         library.  It's not correct, as some older glibcs are buggy.
83962         fnmatch wasn't fixed until glibc 2.2.
83963
83964         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83965         special shell magic here.
83966
83967 2001-09-16  Jim Meyering  <meyering@lucent.com>
83968
83969         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83970         * m4/jm-macros.m4: Require it.
83971
83972 2001-09-16  Jim Meyering  <meyering@lucent.com>
83973
83974         * lib/mkdir.c: New file.
83975
83976 2001-09-15  Jim Meyering  <meyering@lucent.com>
83977
83978         * m4/jm-macros.m4: Check for help2man.
83979
83980 2001-09-11  Jim Meyering  <meyering@lucent.com>
83981
83982         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83983         The body, by Paul Eggert, was moved here from configure.in.
83984         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83985
83986 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83987
83988         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83989         (jm_PREREQ): Use it.
83990
83991 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83992
83993         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83994         Use ssize_t, not int, to store result of readlink.
83995         Check for ssize_t overflow as well as size_t overflow,
83996         as POSIX says the result of readlink is implementation-defined
83997         when ssize_t overflows.
83998         Remove unnecessary cast to char*.
83999         Use free+malloc instead of realloc, as the storage doesn't need
84000         to be preserved and it's clearer and can be more efficient that way.
84001         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
84002         * lib/xreadlink.h (xreadlink): Update prototype.
84003
84004 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84005
84006         * lib/xgetcwd.c: Revert some of the previous change; intead,
84007         fix the HAVE_GETCWD_NULL code to behave more like the
84008         !HAVE_GETCWD_NULL code used to.
84009
84010         Include "xalloc.h".
84011         (xgetcwd): Do not return NULL when memory is exhausted; instead,
84012         invoke xalloc_die.
84013
84014 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84015
84016         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
84017         sys/param.h, as pathmax.h includes them.
84018
84019 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84020
84021         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
84022         (jm_PREREQ_XGETCWD): New macro.
84023
84024         * m4/getcwd.m4: New file.
84025
84026 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84027
84028         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
84029         like the HAVE_GETCWD_NULL code.
84030         Include pathmax.h if not HAVE_GETCWD.
84031         Do not include xalloc.h.
84032         (INITIAL_BUFFER_SIZE): New symbol.
84033         Do not use xmalloc / xrealloc, since the caller is responsible for
84034         handling errors.  Preserve errno around `free' during failure.
84035         Do not overrun buffer when using getwd.
84036
84037 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84038
84039         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
84040         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
84041         getcwd (NULL, 0).
84042
84043 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84044
84045         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
84046         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
84047         spotted by Jim Meyering.
84048
84049 2001-09-03  Jim Meyering  <meyering@lucent.com>
84050
84051         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
84052         failure.
84053
84054 2001-09-02  Jim Meyering  <meyering@lucent.com>
84055
84056         * lib/error.c: Update from GNU libc.
84057
84058 2001-09-01  Jim Meyering  <meyering@lucent.com>
84059
84060         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
84061         Used by df.
84062
84063 2001-09-01  Jim Meyering  <meyering@lucent.com>
84064
84065         * lib/xreadlink.c: New file.
84066         * lib/xreadlink.h: New file.
84067         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
84068         xreadlink.h.
84069
84070         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
84071         doesn't conflict with sparc Solaris 7's definition in
84072         /usr/include/sys/int_types.h.
84073
84074         * lib/exclude.c: Use `""', not `<>' to #include non-system header
84075         files.
84076         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
84077         and strncasecmp as r-values.  Unixware didn't have declarations.
84078
84079 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84080
84081         * lib/xstrtol.h: Add copyright notice.
84082         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
84083         LONGINT_INVALID_SUFFIX_CHAR.
84084
84085 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84086
84087         * lib/xstrtol.c (strtoimax): New decl.
84088
84089 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84090
84091         * lib/xgetcwd.c: Don't include pathmax.h.
84092         Include stdlib.h and unistd.h if available.
84093         Include xalloc.h.
84094         (xmalloc, xstrdup, free): Remove decls.
84095         (xgetcwd): Don't assume sizes fit in unsigned.
84096         Check for overflow when computing sizes.
84097         Simplify reallocation code.
84098
84099 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84100
84101         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
84102         a directory's st_size can have an arbitrary value, so the old
84103         usage could waste an arbitrary amount of memory.  All uses
84104         changed.
84105         * lib/savedir.h: Update prototype.
84106
84107 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84108
84109         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
84110
84111         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
84112         old strtoimax.c.
84113
84114         Also, make the following further changes to make this file's
84115         configuration more similar to that of strtol.c:
84116         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
84117         (strtoumax, uintmax_t, strtoull, strtol): Remove.
84118         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
84119         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
84120         changed to signed values.
84121
84122         And make the following changes as well:
84123         Fix copyright notice, as 1999 was missing.
84124         (verify): New macro.
84125         (strtoimax): Check sizes at compile-time, not run-time.
84126         Prefer strtol to strtoll if both work.
84127         (main): Remove; it was not that useful and was a pain to maintain.
84128
84129         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
84130
84131 2001-08-31  Jim Meyering  <meyering@lucent.com>
84132
84133         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
84134         Use an initial, malloc'd, buffer of length 128 rather than
84135         a statically allocated one of length 1024.
84136
84137 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84138
84139         Simplify code, partly by assuming autoconf 2.52 semantics.
84140
84141         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
84142
84143         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
84144         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
84145         All uses removed.
84146         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
84147         Move AC_REQUIRE to next-to-top level, to avoid confusion.
84148         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
84149         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
84150         jm_AC_HEADER_INTTYPES_H.
84151         * m4/jm-macros.m4 (jm_MACROS): Likewise.
84152
84153         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
84154
84155         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84156         Quote first arg of AC_DEFUN.
84157         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
84158         since they are needed to parse the include file even if we need
84159         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
84160         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
84161         but with opposite signedness.
84162
84163 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84164
84165         Merge 'exclude' changes from tar 1.13.22.
84166         This fixes one or two unlikely storage allocation overflow bugs,
84167         but doesn't change user-visible behavior otherwise.
84168
84169 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84170
84171         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
84172         (jm_PREREQ_EXCLUDE): New macro.
84173
84174 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84175
84176         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
84177         tm to be declared.
84178
84179 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84180
84181         * lib/hash.c: Remove '2001' from copyright notice.
84182
84183 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84184
84185         * lib/full-write.h: New file.
84186         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
84187         * lib/full-write.c: Correct credits, as cccp.c no longer
84188         exists and anyway it was so heavily changed from the old cccp
84189         code as to be unrecognizable.  Include full-write.h.
84190         (full_write): Return size_t, with short writes meaning failure.
84191         All callers changed.  This fixes a bug with large buffers
84192         on 64-bit hosts.
84193         * lib/utime.c: Include full-write.h.
84194
84195 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84196
84197         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
84198         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
84199         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
84200         Include if available.
84201         (<xalloc.h>): Include
84202         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
84203         (verify): New macro.  Use it to verify that EXCLUDE macros do not
84204         collide with FNM macros.
84205         (struct patopts): New struct.
84206         (struct exclude): Use it, as exclude patterns now come with options.
84207         (new_exclude): Support above changes.
84208         (new_exclude, add_exclude_file):
84209         Initial size must now be a power of two to simplify overflow checking.
84210         (free_exclude, fnmatch_no_wildcards): New function.
84211         (excluded_filename): No longer requires options arg, as the options
84212         are determined by add_exclude.  Now returns bool, not int.
84213         (excluded_filename, add_exclude):
84214         Add support for the fancy new exclusion options.
84215         (add_exclude, add_exclude_file): Now takes int options arg.
84216         Check for arithmetic overflow when computing sizes.
84217         (add_exclude_file): xrealloc might modify errno, so don't
84218         realloc until after errno might be used.
84219
84220         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
84221         New macros.
84222         (free_exclude): New decl.
84223         (add_exclude, add_exclude_file): Now takes int options arg.
84224         (excluded_filename): No longer requires options arg, as the options
84225         are determined by add_exclude.  Now returns bool, not int.
84226
84227 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84228
84229         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
84230
84231 2001-08-27  Jim Meyering  <meyering@lucent.com>
84232
84233         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
84234
84235         * lib/version-etc.c (N_): Remove definition.
84236         Revert most of last change.
84237         Instead, simply don't mark the `Copyright...' string for translation.
84238         Based on advice from Paul Eggert.
84239
84240         * lib/strtoxmax.c: Tweak comment.
84241
84242 2001-08-26  Jim Meyering  <meyering@lucent.com>
84243
84244         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
84245
84246         * m4/xstrtoimax.m4: New file.
84247         * m4/xstrtoumax.m4: Add comments explaining why we
84248         AC_REPLACE_FUNCS(strtol).
84249
84250 2001-08-26  Jim Meyering  <meyering@lucent.com>
84251
84252         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
84253         of copyright with `%s' so translators don't get an untranslated
84254         message in 2002.
84255         (COPYRIGHT_YEAR): Define.
84256         (version_etc): Use fprintf rather than fputs.
84257         Suggestion from Ulrich Drepper.
84258
84259         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
84260
84261         * lib/strtoll.c: New file, from GNU libc.
84262         * lib/xstrtoimax.c: New file.
84263
84264         * lib/xstrtol.h: Add xstrtoimax.
84265         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
84266         * lib/strtoimax.c: New file.  Likewise, but first define
84267         STRTOUXMAX_SIGNED.
84268
84269         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
84270         ...
84271         * lib/strtoxmax.c: ... then renamed to this.
84272
84273 2001-08-18  Paul Eggert  <eggert@twinsun.com>
84274
84275         * m4/inttypes.m4: Add AC_PREREQ(2.13).
84276         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
84277         (jm_AC_TYPE_INTMAX_T): New macro.
84278         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
84279
84280         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
84281
84282         * m4/longlong.m4: Renamed from ulonglong.m4.
84283         * m4/inttypes.m4: Renamed from inttypes_h.m4.
84284         * m4/uintmax_t.m4: Removed.
84285
84286 2001-08-13  Paul Eggert  <eggert@twinsun.com>
84287
84288         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
84289         Port to Solaris 8, where 'sed' requires a space after the 'r'
84290         command, and where sh dislikes "$/".  Clean up the spacing a bit.
84291         Redirect output to $tmp just once.
84292
84293 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
84294
84295         * lib/addext.c (<errno.h>): Include.
84296         (errno): Declare if not defined.
84297         (addext): Work correctly when pathconf returns -1 and leaves
84298         errno alone because there is no limit.  Also, work even if
84299         pathconf returns a value greater than SIZE_MAX.
84300
84301 2001-08-12  Jim Meyering  <meyering@lucent.com>
84302
84303         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
84304         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
84305         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
84306         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
84307         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
84308         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
84309         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
84310         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
84311         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
84312         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
84313         utime.m4, utimes.m4, xstrtoumax.m4:
84314         Quote the first argument in each use of AC_DEFUN.
84315
84316 2001-08-12  Jim Meyering  <meyering@lucent.com>
84317
84318         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
84319         Simply `return getcwd (NULL, 0);'.
84320         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
84321         Use 1300 as initial value for length, not PATH_MAX.
84322
84323         * lib/pathmax.h: Clean up cpp syntax.
84324
84325 2001-08-12  Jim Meyering  <meyering@lucent.com>
84326
84327         * lib/gettimeofday.c: New file.
84328         * lib/gtod.h: New file.
84329         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
84330
84331 2001-08-05  Jim Meyering  <meyering@lucent.com>
84332
84333         * m4/jm-macros.m4: Require autoconf-2.52.
84334
84335 2001-08-04  Jim Meyering  <meyering@lucent.com>
84336
84337         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
84338         stmt, to get in sync with glibc.
84339
84340 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84341
84342         The following changes are from gettext 0.10.39 as maintained by
84343         Bruno Haible.
84344
84345         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
84346         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
84347         with inverted sense.  All uses changed.
84348
84349         * lib/mbswidth.c: Don't include <limits.h>.
84350         Include <stdlib.h> and <string.h> unconditionally.
84351         (iswcntrl, mbsinit, ISCNTRL): New macros.
84352         (mbsnwidth): Use K&R style function declarations.
84353         Don't bother checking for MB_LEN_MAX == 1, since the compiler
84354         can optimize it when MB_CUR_MAX == 1.
84355         The width of control characters is zero, not 1.
84356
84357 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84358
84359         The following changes are from gettext 0.10.39 as maintained by
84360         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
84361
84362         * m4/codeset.m4: Upgrade to serial AM1.
84363         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
84364         all uses changed.  Quote first arg of AC_DEFUN.
84365         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
84366
84367         * m4/iconv.m4: Upgrade to serial AM2.
84368         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
84369         Add --with-libconv-prefix.
84370         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
84371         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
84372         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
84373         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
84374         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
84375
84376         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
84377         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
84378         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
84379         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
84380         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
84381         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
84382         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84383         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
84384         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
84385
84386         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
84387         string.h any more.
84388
84389         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
84390         not the default value.
84391
84392         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
84393         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
84394         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
84395         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
84396         Also check for iswcntrl, used for wcwidth fallback.
84397         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
84398         to Autoconf 2.13.
84399
84400 2001-08-03  Jim Meyering  <meyering@lucent.com>
84401
84402         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
84403         as it was in the original.  Reported by Paul Eggert.
84404
84405 2001-07-16  Jim Meyering  <meyering@lucent.com>
84406
84407         * m4/gettimeofday.m4: New file.
84408         Prompted by a report from Bernhard Baehr.
84409
84410 2001-07-15  Jim Meyering  <meyering@lucent.com>
84411
84412         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
84413         stuff. Now it's in ../Makefile.cfg.
84414
84415 2001-07-15  Jim Meyering  <meyering@lucent.com>
84416
84417         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
84418         (BUILT_SOURCES): Add unlocked-io.h.
84419         (io_functions): Define.
84420         (unlocked-io.h): New rule.
84421         (DISTCLEANFILES): Add unlocked-io.h.
84422         (all-local): Depend on unlocked-io.h, to ensure it is created.
84423
84424         * lib/unlocked-io.hin: New file
84425
84426         * lib/regex.c: Update from glibc.
84427
84428 2001-07-05  Jim Meyering  <meyering@lucent.com>
84429
84430         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
84431         recommendation.
84432         (libfetish_a_SOURCES): Put all .h files here instead.
84433         Remove a thus-exposed (better checks in automake) duplicate and
84434         two unnecessary .h files.
84435
84436 2001-07-04  Jim Meyering  <meyering@lucent.com>
84437
84438         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
84439         that generates jm-glibc-io.m4 so that it doesn't trigger any make
84440         distcheck failure.
84441
84442 2001-07-02  Jim Meyering  <meyering@lucent.com>
84443
84444         The following changes were prompted by suggestions from Bruno Haible.
84445
84446         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
84447         is now generated.
84448         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
84449         definition of EXTRA_DIST.
84450         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
84451         ensure that the generated file is created/updated whenever the list
84452         of $(unlocked_functions) is changed.
84453         (jm-glibc-io.m4): New rule.
84454         (unlocked-io.h): New rule -- currently unused.
84455
84456 2001-06-24  Jim Meyering  <meyering@lucent.com>
84457
84458         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
84459         unmatched right bracket, rather than kludging it with an extra,
84460         falsely-matching quote in a comment.  Patch by Akim Demaille.
84461
84462 2001-06-11  Jim Meyering  <meyering@lucent.com>
84463
84464         * lib/regex.c: Update from GNU libc.
84465
84466 2001-05-27  Jim Meyering  <meyering@lucent.com>
84467
84468         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
84469         Check for ut_type in struct utmp.
84470
84471 2001-05-27  Jim Meyering  <meyering@lucent.com>
84472
84473         * lib/readutmp.h (UT_TYPE): Define.
84474
84475 2001-05-24  Jim Meyering  <meyering@lucent.com>
84476
84477         * lib/argmatch.c: Include "quote.h".
84478         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
84479         quote function.  Reported by Göran Uddeborg.
84480
84481 2001-05-22  Jim Meyering  <meyering@lucent.com>
84482
84483         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
84484         now that we use the package-supplied version unconditionally.
84485         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
84486
84487 2001-05-21  Jim Meyering  <meyering@lucent.com>
84488
84489         * m4/regex.m4: Change a couple backticks to single quotes to avoid
84490         shell syntax errors.
84491
84492 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84493
84494         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
84495
84496 2001-05-20  Paul Eggert  <eggert@twinsun.com>
84497
84498         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
84499         Don't bother to check library strftime, since
84500         we'll be using our own my_strftime function anyway.
84501         Define my_strftime instead of strftime.
84502
84503 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
84504
84505         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
84506         which is not yet declared.
84507
84508 2001-05-15  Jim Meyering  <meyering@lucent.com>
84509
84510         * m4/regex.m4: Use proper quoting so brackets appear in the test
84511         program.
84512         Reported by, and with help from, Bruno Haible.
84513
84514 2001-05-13  Jim Meyering  <meyering@lucent.com>
84515
84516         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
84517         undefined.
84518
84519 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84520
84521         dirname code cleanup.  base_name now behaves more compatibly
84522         with POSIX basename when given file names that have trailing
84523         slashes, and similarly for dir_name.  Add new primitives
84524         base_len and dir_len.  Put the directory-name-related decls
84525         into dirname.h.
84526
84527         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
84528         * lib/backupfile.c (base_name): Likewise.
84529         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
84530         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
84531         * lib/makepath.c (strip_trailing_slashes): Likewise.
84532         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
84533         ISSLASH): Likewise.
84534         * lib/rename.c (strip_trailing_slashes): Likewise.
84535         * lib/same.c (base_name): Likewise.
84536         * lib/stripslash.c (ISSLASH): Likewise.
84537
84538         * lib/addext.c: Include <dirname.h> after size_t is defined.
84539         * lib/backupfile.c: Likewise.
84540
84541         * lib/addext.c (addext): Use base_len to trim redundant
84542         trailing slashes instead of doing it ourselves.
84543         But do not trim the last slash if it is not redundant.
84544
84545         * lib/backupfile.c (find_backup_file_name,
84546         max_backup_version): Use base_len instead of rolling it ourselves.
84547         Handle the case of "" and (on DOS) "C:" correctly.
84548
84549         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
84550         needed. Include <string.h>, <dirname.h>.
84551         (base_name): Allow file names ending in slashes, other than names
84552         that are all slashes.  In this case, return the basename followed
84553         by the slashes.  This is more general, and can be used in places
84554         where the original base_name purposely had an assertion failure.
84555         (base_len): New function.
84556
84557         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
84558         Do not include <assert.h>; no longer needed.
84559         Include xalloc.h.
84560         (memrchr): Remove decl.
84561         (dir_name_r): Remove.
84562         (dir_len): Renamed from dirlen.  All callers changed.
84563         Rewrite in terms of base_name, for simplicity and consistency.
84564         (dir_name): Never return NULL.  All callers changed.
84565         Do not include <stdlib.h> in test program; no longer needed.
84566         return 0; is fine for test program.
84567
84568         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
84569         New macros.
84570         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
84571
84572         * lib/path-concat.c (path_concat): Use base_len to compute
84573         base length, not strlen; this means we cannot rely on memcpy
84574         to null-terminate.
84575
84576         * lib/same.c (STREQ): Remove.
84577         (same_name): Handle the case where the basename ends in trailing '/'.
84578
84579         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
84580         a slash was stripped.  Do not strip the last slash after a
84581         file system prefix.
84582
84583 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84584
84585         * lib/Makefile.am (libfetish_a_SOURCES):
84586         Add strftime.c, since we now compile it on all hosts.
84587
84588         * lib/strftime.c (my_strftime):
84589         Define to nstrftime if emacs, but only if my_strftime is not defined.
84590         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
84591         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
84592         Add one more extra argument: a nanoseconds value.
84593         All uses changed.
84594         (ns): New macro.
84595         (my_strftime function): Add %N format.
84596         (emacs_strftimeu): Renamed from emacs_strftime,
84597         with extra ut argument.
84598
84599 2001-05-09  Paul Eggert  <eggert@twinsun.com>
84600
84601         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
84602
84603 2001-04-21  Jim Meyering  <meyering@lucent.com>
84604
84605         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
84606         doesn't interfere.
84607
84608 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84609
84610         * m4/ftruncate.m4: Check for chsize.
84611         Link with ftruncate.o unconditionally if ftruncate is missing.
84612         This was required when cross-compiling to i586-mingw32msvc.
84613
84614 2001-04-08  Jim Meyering  <meyering@lucent.com>
84615
84616         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
84617         recomputed; that's necessary when the offset spans a DST transition.
84618         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
84619
84620 2001-04-02  Jim Meyering  <meyering@lucent.com>
84621
84622         * lib/regex.h, regex.c: Update from GNU libc.
84623
84624 2001-03-24  Jim Meyering  <meyering@lucent.com>
84625
84626         * m4/jm-macros.m4: Require autoconf-2.49d.
84627
84628 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
84629
84630         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
84631
84632 2001-03-19  Paul Eggert  <eggert@twinsun.com>
84633
84634         * lib/version-etc.c (version_etc_copyright): Update to 2001.
84635
84636 2001-03-17  Jim Meyering  <meyering@lucent.com>
84637
84638         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
84639         now that the version in autoconf is equivalent.
84640         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
84641
84642         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
84643         Suggestion from Akim Demaille.
84644
84645         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
84646         (jm_PREREQ_TEMPNAME): New function.
84647
84648 2001-03-16  Paul Eggert  <eggert@twinsun.com>
84649
84650         * lib/tempname.c (uint64_t): Define to uintmax_t if
84651         not defined, and if UINT64_MAX is not defined.
84652         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
84653         Reported by John David Anglin.
84654
84655 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
84656
84657         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
84658         resolve alias if codeset is empty.
84659         * lib/config.charset (BeOS): Use wildcard syntax.
84660
84661 2001-03-13  Jim Meyering  <meyering@lucent.com>
84662
84663         * lib/path-concat.c (path_concat)
84664         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84665         concatenating e.g., `C:' and `foo'.
84666         From Bruno Haible.
84667
84668 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84669
84670         * lib/localcharset.c (locale_charset): Don't use
84671         setlocale(LC_CTYPE,NULL). Don't return NULL.
84672         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84673
84674 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84675
84676         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84677         support for DOS/DJGPP.
84678
84679 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84680
84681         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84682         lacks mkstemp.  Compile our own tempname.c if we compile our own
84683         mkstemp.c, as mkstemp relies on tempname.
84684
84685 2001-03-01  Jim Meyering  <meyering@lucent.com>
84686
84687         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84688         AH_VERBATIM really does output its argument verbatim.
84689
84690 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84691
84692         * lib/Makefile.am (libfetish_a_SOURCES):
84693         Add dup-safer.c, fopen-safer.c.
84694         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84695
84696         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84697         * lib/unistd-safer.h: New files.
84698
84699 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84700
84701         The mkstemp replacement is taken from glibc 2.2.2, with some
84702         portability fixes for use outside glibc, as follows:
84703
84704         * lib/tempname.c (struct_stat64): New macro.
84705         (direxists, __gen_tempname): Use it.
84706         This avoids a portability problem with Solaris 8.
84707
84708         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84709         (<stddef.h>, <stdint.h>, <string.h>):
84710         Include only if STDC_HEADERS || _LIBC.
84711         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84712         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84713         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84714         (__set_errno): Define this macro if <errno.h> doesn't.
84715         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84716         Define these macros if <stdio.h> doesn't.
84717         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84718         Define these macros if <sys/stat.h>
84719         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84720         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84721         __xstat64): Define if not _LIBC.
84722         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84723         (__gen_tempname): Invoke gettimeofday only if
84724         HAVE_GETTIMEOFDAY || _LIBC;
84725         otherwise, fall back on plain "time".
84726         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84727
84728         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84729
84730         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84731
84732 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84733
84734         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84735
84736 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84737
84738         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84739         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84740         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84741         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84742
84743 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84744
84745         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84746         Remove workaround macros for hosts that have mbrtowc but not
84747         mbstate_t, as we now insist on proper declarations for both
84748         before using mbrtowc.
84749
84750 2001-02-17  Jim Meyering  <meyering@lucent.com>
84751
84752         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84753         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84754         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84755         UnixWare 7.1.1.
84756
84757         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84758         rather than AC_CACHE_VAL.
84759
84760 2001-02-17  Jim Meyering  <meyering@lucent.com>
84761
84762         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84763         around included file name.
84764
84765         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84766
84767         * lib/strftime.c: Update from GNU libc (the only changes were to
84768         comments).
84769
84770 2001-02-17  Jim Meyering  <meyering@lucent.com>
84771
84772         * lib/regex.c: Update from libc.
84773
84774 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84775
84776         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84777         clash.
84778
84779 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84780
84781         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84782         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84783         Reported by Mark Hounschell via Paul Eggert.
84784
84785 2001-02-07  Jim Meyering  <meyering@lucent.com>
84786
84787         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84788
84789 2001-02-05  Jim Meyering  <meyering@lucent.com>
84790
84791         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84792         it includes the patch required for `large file' support with at least
84793         HP-UX's 10.20 /bin/cc.
84794
84795 2001-02-03  Jim Meyering  <meyering@lucent.com>
84796
84797         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84798         AS_IF, now that it works once again (mysteriously).
84799         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84800
84801 2001-01-30  Jim Meyering  <meyering@lucent.com>
84802
84803         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84804         * m4/chown.m4: Rename conftestchown to conftest.chown.
84805         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84806         s/conftestdir2/conftest.d2/.
84807         * m4/utimes.m4: s/conftestdata/conftest.data/
84808         Inspired by Pavel Roskin's change in autoconf.
84809
84810 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84811
84812         * lib/config.charset: Update for FreeBSD 4.2.
84813
84814 2001-01-27  Jim Meyering  <meyering@lucent.com>
84815
84816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84817         a use of AS_IF.
84818         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84819
84820 2001-01-26  Jim Meyering  <meyering@lucent.com>
84821
84822         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84823         quotearg.c includes it.
84824
84825 2001-01-26  Jim Meyering  <meyering@lucent.com>
84826
84827         * lib/quotearg.c: Include stddef.h.
84828         * lib/quote.c: Include stddef.h.
84829         Reported by Axel Kittenberger.
84830
84831         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84832         line in double quotes so that it evokes a better diagnostic.
84833         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84834         Reported by Axel Kittenberger.
84835
84836 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84837
84838         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84839         as if it was a `charset'.
84840
84841 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84842
84843         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84844         has const.
84845
84846 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84847
84848         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84849         to avoid a warning.  Add back 'const' to inptr.
84850
84851 2001-01-20  Jim Meyering  <meyering@lucent.com>
84852
84853         Be sure that headers are checked before used in code compiled
84854         for the type checks.
84855         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84856         In place of that, invoke jm_CHECK_ALL_TYPES.
84857         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84858         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84859         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84860         The check for ssize_t was mistakenly run before the test for unistd.h.
84861
84862         The configure-time check for stdbool.h was missing.
84863         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84864         (jm_PREREQ_HASH): New function.
84865
84866 2001-01-17  Jim Meyering  <meyering@lucent.com>
84867
84868         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84869         for autoconf-2.49c.
84870         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84871
84872 2001-01-16  Jim Meyering  <meyering@lucent.com>
84873
84874         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84875         From Bruno Haible.
84876
84877 2001-01-14  Jim Meyering  <meyering@lucent.com>
84878
84879         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84880         foo and bar.  Create conftestdir/ in the script, not in the C code.
84881         Remove directories in the script, not in the C code.
84882         Remove conftestdir{,2} before trying to create the directory.
84883         Make the entire configure script fail if the mkdir fails.
84884
84885 2001-01-14  Jim Meyering  <meyering@lucent.com>
84886
84887         * lib/rename.c: New file.  From Volker Borchert.
84888         Include stdlib.h, string.h or strings.h, and xalloc.h.
84889         Use strip_trailing_slashes rather than open-coding it.
84890
84891 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84892
84893         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84894
84895 2001-01-03  Jim Meyering  <meyering@lucent.com>
84896
84897         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84898         of local `inptr' to avoid warning with some system declarations of
84899         iconv.
84900
84901 2001-01-02  Volker Borchert  <bt@teknon.de>
84902
84903         * m4/rename.m4: New file.
84904         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84905
84906 2001-01-01  Jim Meyering  <meyering@lucent.com>
84907
84908         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84909         even on systems with utmpx.h.  It's necessary for the declaration of
84910         utmp's ut_user member.  Reported by Andreas Jaeger.
84911
84912         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84913         available. They are required for the declarations of getgrgid and
84914         getpwuid resp.
84915         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84916         Reported by Andreas Jaeger.
84917
84918 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84919
84920         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84921         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84922         so `make install' also works in VPATH builds.
84923
84924 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84925
84926         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84927         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84928         can be used in subdirectories.
84929
84930 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84931
84932         * lib/modechange.c: Do not assume that mode_t uses the
84933         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84934         the other-execute bit of FOO even if S_IXOTH != 1.
84935
84936         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84937         WOTH, XOTH, ALLM): New macros.
84938         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84939          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84940         Use them.
84941         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84942         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84943         (mode_compile):
84944         No need to use uintmax_t; unsigned long is long enough.
84945         Don't bother to get suffix since we don't use it.
84946
84947 2000-12-26  Jim Meyering  <meyering@lucent.com>
84948
84949         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84950         better with autoheader.
84951
84952 2000-12-24  Jim Meyering  <meyering@lucent.com>
84953
84954         * lib/hash.c (is_prime): Return explicit boolean values.
84955         (hash_get_first): Return NULL to appease Irix5.6's 89.
84956         Reported by Nelson Beebe.
84957
84958 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84959
84960         * lib/localcharset.c (locale_charset): Add support for Win32.
84961
84962 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84963
84964         * lib/physmem.h, lib/physmem.c: New files.
84965
84966         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84967         (noinst_HEADERS): Add physmem.h.
84968
84969         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84970         't' for compatibility with Solaris 8 sort.
84971
84972 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84973
84974         * lib/config.charset: Add support for BeOS.
84975
84976 2000-12-17  Jim Meyering  <meyering@lucent.com>
84977
84978         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84979         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84980
84981 2000-12-16  Jim Meyering  <meyering@lucent.com>
84982
84983         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84984         N and M) would have treated it like `chown N:N FILE'.
84985
84986         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84987
84988 2000-12-16  Jim Meyering  <meyering@lucent.com>
84989
84990         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84991         SHELLS_FILE to a file name that's useful on djgpp systems.
84992         Include stdlib.h.
84993         (ADDITIONAL_DEFAULT_SHELLS): Define.
84994         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84995         Based mostly on a patch from Prashant TR.
84996
84997 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84998
84999         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
85000         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
85001         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
85002
85003 2000-12-08  Andreas Schwab  <schwab@suse.de>
85004
85005         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
85006         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
85007
85008 2000-12-07  Jim Meyering  <meyering@lucent.com>
85009
85010         * lib/stripslash.c (ISSLASH): Define.
85011         (strip_trailing_slashes): Use ISSLASH rather than comparing against
85012         `/'.
85013         From Prashant TR.
85014
85015         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
85016         (dir_name_r): Declare this function as static.
85017         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
85018         manifest itself on a name containing a mix of slashes and
85019         backslashes.
85020         Make this function work with names starting with a DOS-style
85021         drive letter and colon prefix.
85022         (dir_name): Append `.' if necessary.
85023         Based mostly on patches from Prashant TR and Eli Zaretskii.
85024
85025         * lib/dirname.h (dir_name_r): Remove prototype.
85026
85027 2000-12-06  Paul Eggert  <eggert@twinsun.com>
85028
85029         * m4/off_t-format.m4: Remove this file.
85030         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
85031
85032 2000-12-06  Jim Meyering  <meyering@lucent.com>
85033
85034         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
85035         replacement strtoull, we may well need the replacement strtoul, too.
85036         Check for declarations of strtoul and strtoull.
85037         Check for strtol.  Mainly as a cue to cause automake to include
85038         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
85039         Check for limits.h -- strtol.c needs it.
85040
85041 2000-12-05  Jim Meyering  <meyering@lucent.com>
85042
85043         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
85044
85045 2000-12-04  Jim Meyering  <meyering@lucent.com>
85046
85047         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
85048         Also include memory.h, stdlib.h, unistd.h if appropriate.
85049         Reported by Andreas Jaeger (conflicting declaration of malloc).
85050
85051 2000-12-02  Jim Meyering  <meyering@lucent.com>
85052
85053         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
85054         * m4/jm-macros.m4 (jm_MACROS): require it.
85055
85056 2000-12-02  Jim Meyering  <meyering@lucent.com>
85057
85058         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
85059
85060 2000-12-01  Paul Eggert  <eggert@twinsun.com>
85061
85062         * lib/memrchr.c: Include <config.h> before any system include file.
85063
85064 2000-11-30  Jim Meyering  <meyering@lucent.com>
85065
85066         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
85067
85068 2000-11-30  Jim Meyering  <meyering@lucent.com>
85069
85070         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
85071
85072 2000-11-29  Paul Eggert  <eggert@twinsun.com>
85073
85074         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
85075
85076 2000-11-26  Jim Meyering  <meyering@lucent.com>
85077
85078         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
85079
85080 2000-11-22  Paul Eggert  <eggert@twinsun.com>
85081
85082         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
85083         size of (size_t) -1; it's not portable.
85084
85085 2000-11-17  Jim Meyering  <meyering@lucent.com>
85086
85087         * lib/strstr.c: Update from GNU libc.
85088
85089 2000-11-17  Akim Demaille  <akim@epita.fr>
85090
85091         * lib/obstack.h: Formatting changes.
85092         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
85093         prevent type checking.
85094         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
85095         cast the value to (void *): assigning a `foo *' to a `void *'
85096         variable is valid.
85097         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
85098
85099 2000-11-16  Jim Meyering  <meyering@lucent.com>
85100
85101         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
85102
85103 2000-11-11  Jim Meyering  <meyering@lucent.com>
85104
85105         * lib/error.c: Add a couple #includes, merging from GNU libc version.
85106
85107 2000-11-10  Jim Meyering  <meyering@lucent.com>
85108
85109         * lib/obstack.h: Update from GNU libc.
85110         * lib/obstack.c: Likewise.
85111
85112 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
85113
85114         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
85115
85116 2000-11-06  Paul Eggert  <eggert@twinsun.com>
85117
85118         * lib/getusershell.c (setusershell): Use rewind rather than
85119         fseek/fseeko, to avoid configuration hassles with fseeko.
85120         Don't bother opening SHELLS_FILE if shellstream is NULL;
85121         it's not necessary.
85122
85123 2000-11-05  Jim Meyering  <meyering@lucent.com>
85124
85125         * lib/makepath.h (make_dir): Declare.
85126         * lib/makepath.c (make_dir): Remove `static' attribute.
85127         Tweak a comment.
85128
85129 2000-11-04  Jim Meyering  <meyering@lucent.com>
85130
85131         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
85132
85133 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
85134
85135         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
85136         last one in a bucket, advance to the next bucket.
85137
85138 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
85139
85140         * lib/fnmatch.c: Do not comment out all the code if we are using
85141         the GNU C library, because in some cases we are replacing buggy
85142         code in the GNU C library itself.
85143
85144 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
85145
85146         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
85147         (regex_compile): Catch bogus \(\1\).
85148
85149 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85150
85151         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
85152         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
85153         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
85154
85155 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85156
85157         * lib/error.h, getline.h, modechange.h:
85158         Remove "2000" from Copyright line, as the file hasn't been
85159         changed this year other than in the copyright notice.
85160
85161         * lib/xalloc.h: Add "2000" to Copyright line, as this file
85162         was changed this year.
85163
85164 2000-10-29  Jim Meyering  <meyering@lucent.com>
85165
85166         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
85167         renaming.
85168         * m4/ls-mntd-fs.m4: Likewise
85169
85170 2000-10-29  Jim Meyering  <meyering@lucent.com>
85171
85172         * lib/xstat.in: Fix grammar in comment.
85173
85174 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
85175
85176         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
85177         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
85178         doesn't define __restrict_arr.
85179
85180 2000-10-28  Jim Meyering  <meyering@lucent.com>
85181
85182         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
85183         (jm_PREREQ_MEMCHR): New function.
85184
85185 2000-10-28  Jim Meyering  <meyering@lucent.com>
85186
85187         * lib/memchr.c: Update from libc.
85188         Adjust for portability:
85189         [HAVE_STDLIB_H]: Include stdlib.h.
85190         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
85191         Undef __memchr, too.
85192         [!weak_alias]: Define __memchr to memchr.
85193
85194         * lib/regex.c: Update from libc.
85195         * lib/regex.h: Likewise.
85196         * lib/getopt1.c: Likewise.
85197         * lib/memcmp.c: Likewise.
85198
85199         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
85200         Avoid using fseek, when possible -- it's broken by design.
85201         Patch by Ulrich Drepper.
85202
85203 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
85204
85205         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
85206         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
85207         Giving in to popular pressure to shut up the compiler with casts.
85208
85209 2000-10-26  Jim Meyering  <meyering@lucent.com>
85210
85211         * lib/strftime.c: Update from libc.
85212
85213 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
85214
85215         * regex.c: More `unsigned char' -> `re_char' changes.
85216         Also change several `int' into `re_wchar_t'.
85217         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
85218         (PUSH_FAILURE_POINTER): Don't cast any more.
85219         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
85220         We want GCC to complain, since this piece of code makes
85221         re_match non-reentrant, which *should* be fixed.
85222         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
85223         (EXTEND_BUFFER): Use RETALLOC.
85224         (SET_LIST_BIT): Don't cast.
85225         (re_wchar_t): New type.
85226         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
85227         that those two functions will always properly return.
85228         (IMMEDIATE_QUIT_CHECK): Cast to void.
85229         (analyse_first): Use recursion rather than an explicit stack.
85230         (re_compile_fastmap): Can't fail anymore.
85231         (re_search_2): Don't check re_compile_fastmap for failure.
85232         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
85233         Now also sets the new value (passed in a new argument).
85234         (re_match_2_internal): Use it.
85235         Also, use a new var `reg' of type size_t when looping through regs
85236         rather than reuse the inappropriate `mcnt'.
85237
85238 2000-10-25  Jim Meyering  <meyering@lucent.com>
85239
85240         * lib/obstack.c: Update from libc.
85241
85242 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
85243
85244         * regex.c (regex_compile): Change the way of handling a range from
85245         a char less than 256 to a char not less than 256.
85246
85247 2000-10-24  Andrew Innes  <andrewi@gnu.org>
85248
85249         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
85250         NT-Emacs only.
85251         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
85252         so that re_search functions only quit when callers expect them to.
85253
85254 2000-10-23  Jim Meyering  <meyering@lucent.com>
85255
85256         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
85257         wrong.  That set_locale call must not have any side effects.
85258         From Paul Eggert.
85259
85260 2000-10-22  Jim Meyering  <meyering@lucent.com>
85261
85262         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
85263         [CYCLIC]: Remove now-unused definition.
85264
85265         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
85266         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
85267         Suggestion from Ulrich Drepper.
85268
85269 2000-10-21  Jim Meyering  <meyering@lucent.com>
85270
85271         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
85272         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
85273         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
85274
85275 2000-10-21  Jim Meyering  <meyering@lucent.com>
85276
85277         * lib/dirname.c (memrchr): Declare if necessary.
85278         (dir_name): Remove the restriction that there be no
85279         trailing slashes.  Now, this code skips past them, effectively
85280         ignoring them.
85281         [TEST_DIRNAME] (main): New unit tests.
85282
85283         * lib/memrchr.c: New file from GNU libc.
85284         Undef __memrchr, too.
85285         [!weak_alias]: Define __memrchr to memrchr.
85286         Guard weak_alias use with `#ifdef weak_alias'.
85287
85288 2000-10-21  Jim Meyering  <meyering@lucent.com>
85289
85290         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
85291         (dir_name): Use dir_name_r.
85292         * lib/dirname.h (dir_name_r): Declare it.
85293
85294 2000-10-17  Jim Meyering  <meyering@lucent.com>
85295
85296         * lib/quote.h (PARAMS): Define and use.
85297         Reported by Akim Demaille.
85298
85299         * lib/getopt.c: Update from libc.
85300
85301 2000-10-16  Jim Meyering  <meyering@lucent.com>
85302
85303         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
85304         setlocale.
85305         From Jan Fedak.
85306
85307 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
85308
85309         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
85310
85311 2000-09-25  Jim Meyering  <meyering@lucent.com>
85312
85313         * lib/md5.h (rol): Define (from GnuPG).
85314
85315         * lib/sha.c: Give credit (GnuPG) where due.
85316         (M): Use rol rather than open-coding it.
85317         Add a FIXME comment.
85318
85319 2000-09-21  Jim Meyering  <meyering@lucent.com>
85320
85321         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
85322         Reported by Michael Stone.
85323
85324 2000-09-20  Jim Meyering  <meyering@lucent.com>
85325
85326         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
85327         (noinst_HEADERS): Add sha.h.
85328         Based on code from Scott G. Miller and from GnuPG.
85329
85330 2000-09-18  Jim Meyering  <meyering@lucent.com>
85331
85332         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
85333         LIBS. Otherwise, everyone ends up linking with -lelf for some
85334         configurations.
85335         Reported by Mike Stone.
85336
85337 2000-09-15  Jim Meyering  <meyering@lucent.com>
85338
85339         * lib/regex.c: Update from libc.
85340
85341 2000-09-10  Jim Meyering  <meyering@lucent.com>
85342
85343         * lib/getopt.c (_getopt_internal): Update from glibc.
85344
85345 2000-09-09  Jim Meyering  <meyering@lucent.com>
85346
85347         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
85348         think it should be used as a general replacement for isascii.
85349         * lib/fnmatch.c: Likewise.
85350         * lib/mbswidth.c: Likewise
85351         * lib/regex.c: Likewise.
85352
85353         Don't use atoi.
85354         * lib/userspec.c: Include sys/param.h and limits.h.
85355         Include xstrtol.h.
85356         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85357         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
85358         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
85359         UID, GID.  Check range.
85360
85361 2000-09-06  Jim Meyering  <meyering@lucent.com>
85362
85363         * lib/getopt.c (_getopt_internal): Update from glibc.
85364
85365 2000-08-30  Jim Meyering  <meyering@lucent.com>
85366
85367         * lib/strftime.c: Merge in changes from GNU libc.
85368
85369 2000-08-26  Jim Meyering  <meyering@lucent.com>
85370
85371         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
85372         * m4/fpending.m4: New file.
85373
85374 2000-08-26  Jim Meyering  <meyering@lucent.com>
85375
85376         * lib/closeout.c: Include "__fpending.h".
85377         (close_stdout_status): Return right away if there's nothing to flush.
85378
85379         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
85380         * lib/__fpending.c: New file.
85381         * lib/__fpending.h: New file.
85382
85383 2000-08-20  Jim Meyering  <meyering@lucent.com>
85384
85385         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
85386         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
85387         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
85388
85389 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
85390
85391         Improve fileutils installation on systems where running
85392         programs (like install) can't be unlinked.
85393         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
85394         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
85395
85396 2000-08-07  Paul Eggert  <eggert@twinsun.com>
85397
85398         Standardize on "memory exhausted" instead of "Memory exhausted"
85399         or "virtual memory exhausted".
85400         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
85401         "virtual memory exhausted".
85402         * lib/same.c (same_name): Invoke xalloc_die instead of printing
85403         our own message.
85404         * lib/userspec.c (parse_user_spec): Likewise.
85405         * lib/bumpalloc.h: comment fix
85406         * lib/same.c, userspec.c: Include xalloc.h.
85407
85408         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
85409         not char *const and pointing to a constant array.
85410         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85411         (xrealloc): Comment fix.
85412
85413         * lib/userspec.c (parse_user_spec):
85414         Don't translate a message until just before returning,
85415         to avoid unnecessary translation.
85416
85417 2000-08-07  Jim Meyering  <meyering@lucent.com>
85418
85419         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
85420         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
85421         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
85422         getgroups.c, gethostname.c, getopt.h, group-member.c,
85423         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
85424         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
85425         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
85426         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
85427         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
85428         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
85429         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
85430         yesno.c: Back out Copyright date changes for each file with no change
85431         this year.  This eases coordination with other programs using the same
85432         source code modules.  From Paul Eggert.
85433
85434 2000-08-06  Paul Eggert  <eggert@twinsun.com>
85435
85436         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
85437         not char, for compatibility with glibc 2.1.3 strftime.c.
85438
85439 2000-08-03  Greg McGary  <greg@mcgary.org>
85440
85441         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
85442         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
85443         (EXTEND_BUFFER): Use them.
85444
85445 2000-08-01  Jim Meyering  <meyering@lucent.com>
85446
85447         * lib/dirname.c (ISSLASH): Define.
85448         (BACKSLASH_IS_PATH_SEPARATOR): Define.
85449         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
85450         both `\' and `/' may be use as path separators.
85451         Based on a patch from Prashant TR.
85452
85453 2000-07-31  Paul Eggert  <eggert@twinsun.com>
85454
85455         * lib/quotearg.c (quotearg_n_options): Don't make the initial
85456         slot vector a constant, since it might get modified.
85457
85458 2000-07-31  Jim Meyering  <meyering@lucent.com>
85459
85460         * lib/xmalloc.c: Use `virtual memory exhausted', not
85461         `Memory exhausted'.
85462         * lib/obstack.c (print_and_abort): Likewise.
85463
85464 2000-07-30  Paul Eggert  <eggert@twinsun.com>
85465
85466         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
85467         buffer, so that the caller can always quote one small
85468         component of a "memory exhausted" message in slot 0.
85469         From a suggestion by Jim Meyering.
85470
85471 2000-07-30  Jim Meyering  <meyering@lucent.com>
85472
85473         * lib/makepath.c (make_path): Quote the other instance, too.
85474
85475         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
85476         (STATIC_BUF_SIZE): Define.
85477         (quotearg_n_options): Use only statically allocated storage when
85478         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
85479         than STATIC_BUF_SIZE.
85480
85481 2000-07-29  Jim Meyering  <meyering@lucent.com>
85482
85483         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
85484         * lib/dirname.c (dir_name): Likewise.
85485
85486         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
85487         `/'.
85488
85489         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
85490         (dir_name): Assert that there are no trailing slashes.
85491
85492 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
85493
85494         * lib/mbswidth.h (mbswidth): Add a flags argument.
85495         (mbswidth): New declaration.
85496         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
85497         * lib/mbswidth.c (mbswidth): Add a flags argument.
85498         (mbsnwidth): New function.
85499
85500 2000-07-24  Jim Meyering  <meyering@lucent.com>
85501
85502         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
85503
85504 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85505
85506         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
85507
85508 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85509
85510         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
85511         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
85512         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
85513         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
85514         invoke multibyte primitives.
85515
85516 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85517
85518         * lib/quotearg.c:
85519         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
85520         so that mbstate_t is always defined.
85521
85522         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
85523         be 1 in at least one GCC installation, and this configuration
85524         error is likely to be common.  Ignoring MB_LEN_MAX hurts
85525         performance on hosts that have mbrtowc but have only unibyte
85526         locales, but I assume these hosts are rare.
85527
85528 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85529
85530         * lib/mbswidth.c (_XOPEN_SOURCE):
85531         Don't define; this causes problems on Solaris 7.
85532         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
85533
85534 2000-07-23  Jim Meyering  <meyering@lucent.com>
85535
85536         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
85537         too: getgrgid, getpwuid, getuid.
85538
85539 2000-07-23  Jim Meyering  <meyering@lucent.com>
85540
85541         * lib/basename.c (base_name): Add an assertion.
85542
85543 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
85544
85545         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
85546         shadow its mbsinit function.
85547
85548 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85549
85550         * lib/mbswidth.h: New file.
85551         * lib/mbswidth.c: New file.
85552         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
85553         (noinst_HEADERS): Add mbswidth.h.
85554
85555 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85556
85557         * lib/config.charset: Add support for FreeBSD. Improve support for
85558         HP-UX and IRIX 6.
85559
85560 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
85561
85562         * m4/mbswidth.m4: New file.
85563         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
85564
85565 2000-07-15  Jim Meyering  <meyering@lucent.com>
85566
85567         * lib/makepath.c: Include quote.h.
85568         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
85569         corresponding argument in a `quote (...)' call.
85570         Give better diagnostics.
85571
85572         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
85573         (noinst_HEADERS): Add quote.h.
85574
85575         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
85576         from tar's src/misc.c.
85577         * lib/quote.h: New file.  Prototypes for same.
85578
85579 2000-07-14  Paul Eggert  <eggert@twinsun.com>
85580
85581         From a suggestion by Bruno Haible.
85582         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
85583         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
85584         to decide whether to define the BeOS workaround macro;
85585         this adjusts to the change to AC_MBSTATE_T.
85586
85587 2000-07-14  Jim Meyering  <meyering@lucent.com>
85588
85589         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
85590         jm_AC_TYPE_UINTMAX_T.
85591
85592 2000-07-13  Paul Eggert  <eggert@twinsun.com>
85593
85594         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
85595
85596         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
85597         quotearg_buffer_restyled): Add support for
85598         clocale_quoting_style.  Undo previous change to
85599         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
85600         and "{RIGHT QUOTATION MARK}" msgids.
85601
85602 2000-07-10  Paul Eggert  <eggert@twinsun.com>
85603
85604         From a suggestion by Bruno Haible.
85605         * m4/mbstate_t.m4 (AC_MBSTATE_T):
85606         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
85607         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
85608         and mbstate_t, to a single-part test that simply defines mbstate_t.
85609         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
85610         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
85611
85612 2000-07-10  Jim Meyering  <meyering@lucent.com>
85613
85614         * m4/strerror_r.m4: Mirror the correction made in autoconf.
85615
85616         * m4/gnu-source.m4: Output to confdefs.h directly.
85617         Suggestion from Akim Demaille.
85618
85619 2000-07-09  Paul Eggert  <eggert@twinsun.com>
85620
85621         The old behavior of quoting `like this' doesn't look good with
85622         newer, ISO-style fonts.  See:
85623         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85624
85625         Instead, quote "like this" by default.  Let the translator
85626         tailor the locale-specific quoting behavior by providing
85627         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
85628
85629         * lib/quotearg.c (N_): New macro.
85630         (gettext_default): New function.
85631         (quotearg_buffer_restyled): Use
85632         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
85633         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
85634
85635 2000-07-09  Jim Meyering  <meyering@lucent.com>
85636
85637         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
85638         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
85639
85640         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
85641         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
85642
85643 2000-07-09  Jim Meyering  <meyering@lucent.com>
85644
85645         * lib/Most files: Update copyright dates to include 2000.
85646
85647 2000-07-08  Jim Meyering  <meyering@lucent.com>
85648
85649         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
85650         if not defined.
85651         (xgethostname): Remove now-unnecessary #ifdef.
85652         Move declaration of `err' into loop where it's used.
85653
85654 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85655         and Bruno Haible  <haible@clisp.cons.org>
85656
85657         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
85658         only if the test for an object-type mbstate_t fails.  This
85659         prevents us from mistakenly reporting that mbstate_t is a
85660         system object type after we "#define mbstate_t int" to work
85661         around its lack.
85662
85663 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85664         and Bruno Haible  <haible@clisp.cons.org>
85665
85666         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85667
85668 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85669
85670         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85671         to strerror_r.
85672         Include <ctype.h> for use of isalpha.
85673
85674 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85675
85676         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85677         by allocating a larger buffer. Test the gethostname return value for
85678         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85679         returns an error and ENAMETOOLONG isn't defined.
85680
85681 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85682
85683         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85684         dimension.
85685
85686 2000-07-04  Jim Meyering  <meyering@lucent.com>
85687
85688         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85689         of the deprecated AC_CHECKING.
85690
85691 2000-07-04  Jim Meyering  <meyering@lucent.com>
85692
85693         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85694         Reported by Bruno Haible.
85695
85696 2000-07-04  Jim Meyering  <meyering@lucent.com>
85697
85698         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85699         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85700         lacks mbrtowc.
85701
85702 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85703
85704         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85705         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85706
85707 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85708         and Bruno Haible  <haible@clisp.cons.org>
85709
85710         * lib/quotearg.c (mbrtowc):
85711         Assign to *pwc, and return 1 only if result is nonzero.
85712         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85713
85714 2000-07-03  Jim Meyering  <meyering@lucent.com>
85715
85716         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85717
85718 2000-07-03  Jim Meyering  <meyering@lucent.com>
85719
85720         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85721         This is necessary to get a definition of e.g., UTMP_FILE on
85722         HP-UX 10.20.
85723         From Bob Proulx.
85724
85725 2000-07-02  Jim Meyering  <meyering@lucent.com>
85726
85727         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85728
85729         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85730         AC_LIBOBJ(function_name).
85731         * m4/chown.m4: Likewise.
85732         * m4/fnmatch.m4: Likewise.
85733         * m4/ftruncate.m4: Likewise.
85734         * m4/getgroups.m4: Likewise.
85735         * m4/getline.m4: Likewise.
85736         * m4/group-member.m4: Likewise.
85737         * m4/jm-macros.m4: Likewise.
85738         * m4/lstat.m4: Likewise.
85739         * m4/malloc.m4: Likewise.
85740         * m4/memcmp.m4: Likewise.
85741         * m4/nanosleep.m4: Likewise.
85742         * m4/putenv.m4: Likewise.
85743         * m4/realloc.m4: Likewise.
85744         * m4/regex.m4: Likewise.
85745         * m4/stat.m4: Likewise.
85746         * m4/strftime.m4: Likewise.
85747
85748 2000-07-02  Jim Meyering  <meyering@lucent.com>
85749
85750         * lib/quotearg.c (mbstate_t): Don't define here.
85751
85752 2000-07-02  Jim Meyering  <meyering@lucent.com>
85753
85754         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85755
85756 2000-07-01  Jim Meyering  <meyering@lucent.com>
85757
85758         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85759
85760 2000-07-01  Jim Meyering  <meyering@lucent.com>
85761
85762         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85763         problem.
85764
85765 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85766
85767         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85768         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85769
85770 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85771
85772         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85773         per change in ../m4/ls-mntd-fs.m4.
85774         (read_filesystem_list): Ignore symbolic links.
85775
85776 2000-06-29  Jim Meyering  <meyering@lucent.com>
85777
85778         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85779         for declaration of strcmp.
85780
85781         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85782
85783         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85784         Avoid warning by casting result to `char *' to remove `const'.
85785
85786 2000-06-28  Jim Meyering  <meyering@lucent.com>
85787
85788         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85789         included by quotearg.c, for which we perform this test.  From
85790         Bruno Haible.
85791
85792 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85793
85794         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85795         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85796         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85797
85798 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85799
85800         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85801
85802 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85803
85804         savedir now sets errno on failure and invokes xmalloc to get memory.
85805         Fix a couple of other minor bugs while we're at it.
85806
85807         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85808         (NAMLEN): Remove macro.
85809         (malloc, realloc): Remove decls.
85810         (stpcpy): Likewise.
85811         ("xalloc.h"): Include.
85812         (NAME_SIZE_DEFAULT): New macro.
85813         (savedir): Use xmalloc / xrealloc to allocate memory.
85814         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85815         Skip "" directory entries.
85816         Use strlen to calculate directory entry length, since the old method
85817         is rarely used these days and isn't worth supporting.
85818         Don't use a pointer after freeing it.
85819         Check for integer overflow when calculating allocation size.
85820         Use memcpy to copy entries, instead of stpcpy.
85821         Set errno properly when returning NULL.
85822         Check for readdir error.
85823
85824 2000-06-26  Jim Meyering  <meyering@lucent.com>
85825
85826         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85827
85828 2000-06-25  Jim Meyering  <meyering@lucent.com>
85829
85830         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85831         Linux header bug when _XOPEN_SOURCE is defined to 500.
85832
85833 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85834
85835         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85836         deficiency.
85837
85838 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85839
85840         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85841         Include xalloc.h.
85842         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85843
85844 2000-06-24  Jim Meyering  <meyering@lucent.com>
85845
85846         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85847         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85848         for which strerror does return char*, but which lacks a conveniently
85849         accessible declaration of the function.  If the compile-test says
85850         strerror_r doesn't work, then resort to a `run'-test that works on
85851         BeOS and segfaults on DEC Unix.
85852
85853 2000-06-24  Jim Meyering  <meyering@lucent.com>
85854
85855         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85856
85857 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85858
85859         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85860         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85861
85862 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85863
85864         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85865         (mbrtowc, mbstate_t): Define substitutes if
85866         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85867         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85868         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85869
85870 2000-06-23  Jim Meyering  <meyering@lucent.com>
85871
85872         * m4/afs.m4: Add missing AC_MSG_RESULT.
85873         Reported by Bruno Haible.
85874
85875         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85876         Suggestion from Bruno Haible.
85877
85878 2000-06-23  Jim Meyering  <meyering@lucent.com>
85879
85880         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85881
85882 2000-06-21  Jim Meyering  <meyering@lucent.com>
85883
85884         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85885
85886 2000-06-21  Jim Meyering  <meyering@lucent.com>
85887
85888         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85889         (noinst_HEADERS): Add getstr.h.
85890
85891         * lib/getline.c (getstr): Move into a separate file.
85892         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85893         the following changes: new parameter, delim2; both delim[12]
85894         parameters have type `int', not `char'.  The latter would lose
85895         with 8-bit delimiters.
85896         * lib/getstr.h: New file.
85897
85898 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85899
85900         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85901         than 1024, return a memory chunk of least possible size, instead
85902         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85903         Use free/xmalloc instead of xrealloc to avoid copying for very long
85904         paths.
85905
85906 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85907
85908         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85909         the empty string.
85910
85911 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85912
85913         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85914         address, not strdup.  Include <stdlib.h> and don't declare free().
85915
85916 2000-06-19  Jim Meyering  <meyering@lucent.com>
85917
85918         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85919
85920 2000-06-18  Jim Meyering  <meyering@lucent.com>
85921
85922         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85923
85924         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85925         `checking whether...' message to be consistent with that of the
85926         lstat test.
85927
85928 2000-06-18  Jim Meyering  <meyering@lucent.com>
85929
85930         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85931         Besides, these days every porting target provides a mkdir function.
85932
85933         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85934         needed. (this snippet comes from src/system.h).
85935
85936 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85937
85938         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85939
85940 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85941
85942         * lib/human.c (adjust_value): New function.
85943         (human_readable_inexact): Apply rounding style even when
85944         printing approximate values.
85945
85946 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85947
85948         * lib/human.c (human_readable_inexact): Allow an input block
85949         size that is not a multiple of the output block size, and vice versa.
85950         Reported by Piergiorgio Sartor.
85951
85952 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85953
85954         * lib/getdate.y (get_date): Apply relative times after time
85955         zone indicator, not before.  Reported by Todd A. Jacobs.
85956
85957 2000-06-13  Jim Meyering  <meyering@lucent.com>
85958
85959         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85960
85961         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85962
85963 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85964
85965         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85966
85967 2000-06-12  Jim Meyering  <meyering@lucent.com>
85968
85969         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85970         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85971         optional argument.
85972         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85973         the optional argument, `lib'.
85974
85975 2000-06-08  Jim Meyering  <meyering@lucent.com>
85976
85977         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85978
85979 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85980
85981         Rewrite largefile configuration so that we don't need to run
85982         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85983         AC_CANONICAL_HOST in configure.in -- jmm]
85984
85985         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85986         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85987         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85988         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85989         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85990         All uses changed.
85991         Instead of inspecting the output of getconf, try to compile the
85992         test program without and with the macro definition.
85993         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85994         for getconf.  Instead, check for the needed flags by compiling
85995         test programs.
85996
85997 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85998
85999         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
86000
86001 2000-06-04  Jim Meyering  <meyering@lucent.com>
86002
86003         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
86004         SunOS 4.1.4 for which gid_t is an unsigned type.
86005
86006 2000-06-03  Jim Meyering  <meyering@lucent.com>
86007
86008         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
86009         now that autoconf requires that.
86010
86011         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
86012         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
86013         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
86014
86015 2000-06-03  Jim Meyering  <meyering@lucent.com>
86016
86017         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
86018
86019 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86020
86021         * m4/glibc21.m4: New file.
86022         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
86023
86024 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86025
86026         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
86027         newer, don't install charset.alias.
86028         * lib/config.charset: Change the Linux/glibc rules so they become empty
86029         on glibc-2.1 or newer.
86030
86031 2000-06-02  Jim Meyering  <meyering@lucent.com>
86032
86033         * lib/mountlist.c: Back out last change.  Instead, do this...
86034         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
86035         me_dummy member using the same `ignore'-testing code.
86036         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
86037         fs_type strings.
86038         From Mark D. Roth.
86039
86040 2000-05-29  Jim Meyering  <meyering@lucent.com>
86041
86042         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
86043         mounts with the `ignore' attribute.  Based on a patch from
86044         Mark D. Roth.
86045
86046 2000-05-28  Jim Meyering  <meyering@lucent.com>
86047
86048         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
86049         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86050         * m4/stat.m4: Likewise.
86051         * m4/lstat.m4: Likewise.
86052         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
86053
86054         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
86055         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
86056
86057 2000-05-26  Jim Meyering  <meyering@lucent.com>
86058
86059         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
86060
86061 2000-05-24  Jim Meyering  <meyering@lucent.com>
86062
86063         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
86064         autoconf requires that.
86065         * m4/lib-check.m4: Likewise.
86066         * m4/jm-macros.m4: Likewise.
86067         * m4/strftime.m4: Likewise.
86068
86069         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
86070         AC_CHECK_DECLS, now that autoconf requires that.
86071
86072 2000-05-22  Jim Meyering  <meyering@lucent.com>
86073
86074         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86075         * m4/lstat.m4: Likewise.
86076
86077 2000-05-22  Jim Meyering  <meyering@lucent.com>
86078
86079         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
86080
86081 2000-05-20  Jim Meyering  <meyering@lucent.com>
86082
86083         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
86084         (jm_PREREQ): Use it.
86085
86086 2000-05-18  Jim Meyering  <meyering@lucent.com>
86087
86088         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
86089         back, too, since it may have been modified by allocate_entry.
86090         (hash_delete): Rewrite to use neither the assignment operator
86091         nor the comma operator in an if-expression.
86092
86093 2000-05-15  Paul Eggert  <eggert@twinsun.com>
86094
86095         * lib/closeout.c:
86096         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
86097         Remove; no longer needed.
86098         "quotearg.h": Add include.
86099         (file_name): Do not bother to explicitly initialize to NULL; it's less
86100         efficient on some hosts.
86101         (close_stdout_status): Remove test as to whether stdout was already
86102         closed; it breaks for the case "echo x | sort >&-".
86103         Quote file name colons.
86104         Do not assume that _("write error") lacks format strings.
86105
86106 2000-05-15  Jim Meyering  <meyering@lucent.com>
86107
86108         * lib/version-etc.c (version_etc_copyright): Update the copyright
86109         string used in all --version output.
86110
86111 2000-05-14  Jim Meyering  <meyering@lucent.com>
86112
86113         * lib/closeout.c (close_stdout_set_file_name): New function.
86114         (close_stdout_status): Use new file-scoped global.
86115         Return right away if fstat says the stdout file descriptor is invalid.
86116         * lib/closeout.h (close_stdout_set_file_name): Declare.
86117
86118 2000-05-10  Jim Meyering  <meyering@lucent.com>
86119
86120         * lib/closeout.c [default_exit_status]: New file-scoped variable.
86121         (close_stdout_set_status): New function.
86122         * lib/closeout.h (close_stdout_set_status): Declare.
86123
86124 2000-05-09  Jim Meyering  <meyering@lucent.com>
86125
86126         * m4/gettext.m4: Rename this...
86127         * m4/libintl.m4: ...to this.
86128
86129 2000-05-08  Jim Meyering  <meyering@lucent.com>
86130
86131         * lib/long-options.c: Don't include closeout.h.
86132         (parse_long_options): Don't call close_stdout for --version.
86133
86134 2000-05-06  Paul Eggert  <eggert@twinsun.com>
86135
86136         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
86137         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
86138         2.1.3 bug.  This avoids a clash when files like regex.c define
86139         _GNU_SOURCE.
86140
86141 2000-05-06  Jim Meyering  <meyering@lucent.com>
86142
86143         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
86144         (AC_REPLACE_FUNCS): Add strnlen.
86145
86146         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
86147         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
86148
86149         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
86150         AC_SEARCH_LIBS call for nanosleep.
86151         (LIB_NANOSLEEP): Set and AC_SUBST.
86152
86153 2000-05-06  Jim Meyering  <meyering@lucent.com>
86154
86155         * lib/strnlen.c: Undefine __strnlen and strnlen.
86156         [!weak_alias]: Define __strnlen to strnlen.
86157
86158         * lib/atexit.c: New file, from libiberty.
86159
86160 2000-05-06  Jim Meyering  <meyering@lucent.com>
86161
86162         * lib/closeout.c (close_stdout_status): Also check for errors on the
86163         stderr stream.
86164
86165 2000-05-05  Jim Meyering  <meyering@lucent.com>
86166
86167         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
86168         AC_SEARCH_LIBS call for clock_gettime.
86169         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
86170
86171         * m4/search-libs.m4: Update from autoconf.
86172
86173         su doesn't work on Solaris 2.6.
86174         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
86175         <shadow.h>.  Reported by Dragos Harabor.
86176
86177 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
86178
86179         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
86180         memcpy instead of xmalloc, xrealloc, path_concat.
86181         (locale_charset): Treat empty environment variables as absent.
86182         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
86183
86184 2000-05-04  Jim Meyering  <meyering@lucent.com>
86185
86186         * lib/getopt.c: Update from glibc.
86187         * lib/obstack.c: Likewise.
86188         * lib/obstack.h: Likewise.
86189         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
86190         file
86191
86192         * lib/regex.h: Likewise.
86193         * lib/strndup.c: Likewise.
86194         * lib/strnlen.c: New file, from glibc.
86195
86196 2000-05-03  Jim Meyering  <meyering@lucent.com>
86197
86198         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
86199
86200 2000-05-02  Paul Eggert  <eggert@twinsun.com>
86201
86202         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
86203         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
86204         compile-time test, rather than inspecting host and OS, to
86205         decide whether to define _LARGEFILE_SOURCE.
86206
86207 2000-05-01  Jim Meyering  <meyering@lucent.com>
86208
86209         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
86210
86211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
86212         Based on a patch from Bruno Haible.
86213
86214 2000-05-01  Jim Meyering  <meyering@lucent.com>
86215
86216         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
86217
86218 2000-04-29  Jim Meyering  <meyering@lucent.com>
86219
86220         * lib/path-concat.c: Declare strdup only if it's not defined.
86221         * lib/canon-host.c: Likewise.
86222
86223 2000-04-28  Jim Meyering  <meyering@lucent.com>
86224
86225         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
86226         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
86227         is included first, then limits.h is included by locale.h by libintl.h.
86228         From John David Anglin.
86229
86230 2000-04-25  Jim Meyering  <meyering@lucent.com>
86231
86232         * lib/makepath.c (S_IRWXUGO): Define.
86233         (make_path): Always perform explicit chmod if MODE specifies any
86234         of the `special' permission bits.  Prompted by a bug report against
86235         install from Mate Wierdl and Joost van Baal.
86236
86237 2000-04-18  Jim Meyering  <meyering@lucent.com>
86238
86239         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
86240         (jm_PREREQ): Use it.
86241
86242 2000-04-18  Jim Meyering  <meyering@lucent.com>
86243
86244         * lib/README: New file.
86245
86246         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
86247         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
86248
86249 2000-04-17  Jim Meyering  <meyering@lucent.com>
86250
86251         Get it right :-)
86252         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
86253         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
86254         Suggestion from Akim Demaille.
86255
86256 2000-04-17  Jim Meyering  <meyering@lucent.com>
86257
86258         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
86259         the definition of it to rpl_strftime also defined-away the system's
86260         declaration.
86261
86262 2000-04-15  Jim Meyering  <meyering@lucent.com>
86263
86264         Use `C' to denote so-called `contiguous' files, the same way
86265         that tar does.
86266         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
86267         (ftypelet): Use S_ISCTG.
86268         From Michael Deutschmann.
86269
86270 2000-04-14  Jim Meyering  <meyering@lucent.com>
86271
86272         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
86273         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
86274         clobbered.
86275
86276 2000-04-14  Jim Meyering  <meyering@lucent.com>
86277
86278         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
86279
86280 2000-04-13  Jim Meyering  <meyering@lucent.com>
86281
86282         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
86283         AH_VERBATIM to insert required #ifndef into config.h.in.
86284         Suggestion from Akim Demaille.
86285
86286 2000-04-12  Jim Meyering  <meyering@lucent.com>
86287
86288         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
86289         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
86290         Christian Krackowizer.
86291
86292         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
86293         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
86294         (AC_SYS_LARGEFILE): Require.
86295         (AM_C_PROTOTYPES): Require.
86296
86297 2000-04-08  Jim Meyering  <meyering@lucent.com>
86298
86299         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
86300         names don't conflict.  Reported by Eli Zaretskii.
86301
86302 2000-04-07  Jim Meyering  <meyering@lucent.com>
86303
86304         * lib/putenv.c: Move inclusion of errno.h so it follows that of
86305         sys/types.h, to work around system header problems on AIX 3.2.5.
86306         From Bruno Haible.
86307
86308 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
86309
86310         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
86311         bug.  Deal with the different error behavior of Irix iconv.
86312
86313 2000-04-05  Paul Eggert  <eggert@twinsun.com>
86314
86315         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
86316         IRIX if the installer said otherwise.
86317
86318 2000-04-05  Jim Meyering  <meyering@lucent.com>
86319
86320         Portability tweaks required for ultrix4.3.
86321         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
86322         (jm_CHECK_DECLS): Add getutent to the list of functions.
86323         (_jm_DECL_HEADERS): Add utmpx.h.
86324         From John David Anglin.
86325
86326         * m4/strftime.m4: Back out the 2000-04-02 change.
86327         Instead of that change, simply undefine putenv in the test program.
86328
86329 2000-04-05  Jim Meyering  <meyering@lucent.com>
86330
86331         Portability tweaks required for ultrix4.3.
86332         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
86333         getutent.
86334         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
86335         * lib/canon-host.c: Declare strdup.
86336         * lib/path-concat.c: Likewise.
86337         From John David Anglin.
86338
86339 2000-04-04  Jim Meyering  <meyering@lucent.com>
86340
86341         Be more DOS 8.3-friendly.
86342         * lib/ref-add.sin: Renamed from ref-add.sed.in.
86343         * lib/ref-del.sin: Renamed from ref-del.sed.in.
86344         * lib/Makefile.am: Reflect renaming.
86345         Reported by Eli Zaretskii.
86346
86347         Use a temporary file name that won't clash with `charset.alias'
86348         in the DOS 8.3 name space.
86349         * lib/Makefile.am (charset_tmp): Define.
86350         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
86351         (uninstall-local): Likewise.
86352         Reported by Eli Zaretskii.
86353
86354 2000-04-03  Jim Meyering  <meyering@lucent.com>
86355
86356         * m4/gettext.m4: Fix typo in comment.
86357
86358         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
86359         textutils/configure.in).  Suggestion from Paul Eggert.
86360         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
86361
86362 2000-04-02  Paul Eggert  <eggert@twinsun.com>
86363
86364         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
86365         variable in the shell rather than using putenv, which isn't
86366         portable.  This avoids the configure-time inter-test dependency
86367         on the potentially-renamed putenv function.
86368
86369 2000-03-30  Paul Eggert  <eggert@twinsun.com>
86370
86371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
86372         before checking struct stat.st_blksize, so that
86373         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
86374
86375 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86376
86377         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
86378         since strftime.c uses HAVE_STRFTIME to decide whether to use
86379         the underlying strftime.
86380
86381 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86382
86383         * lib/time/strftime.c (my_strftime): Make sure we call the system
86384         strftime, not ourselves, when invoking the underlying strftime.
86385
86386 2000-03-24  Jim Meyering  <meyering@lucent.com>
86387
86388         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
86389         (charset_alias): Define.
86390         (install-exec-local): Factor out common code.
86391         (uninstall-local): Split lines longer than 80.
86392         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
86393         (SUFFIXES): Define.
86394         (.sed.in.sed): New rule.  Don't redirect directly to $@.
86395         (CLEANFILES): Add ref-add.sed and ref-del.sed.
86396
86397 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
86398
86399         * lib/config.charset: Output a line containing "Packages using this
86400         file".
86401         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
86402         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
86403         ref-del.sed): New rules.
86404
86405 2000-03-17  Jim Meyering  <meyering@lucent.com>
86406
86407         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
86408         Otherwise, include <strings.h>
86409
86410 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86411
86412         * lib/unicodeio.c (utf8_wctomb): New function.
86413         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
86414         format instead of in UCS-4 with platform dependent endianness.
86415
86416 2000-03-10  Jim Meyering  <meyering@lucent.com>
86417
86418         * m4/lib-check.m4: Look for getspnam in -lgen, too.
86419         From Marco Franzen.
86420
86421 2000-03-07  Paul Eggert  <eggert@twinsun.com>
86422
86423         * lib/savedir.c (savedir): Work even if directory size is
86424         negative; this can happen with some screwy NFS configurations.
86425
86426 2000-03-06  Jim Meyering  <meyering@lucent.com>
86427
86428         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
86429         if it's NULL (because we ran out of memory).  From Bruno Haible.
86430
86431 2000-03-05  Jim Meyering  <meyering@lucent.com>
86432
86433         * lib/localcharset.c ("path-concat.h"): Include.
86434         (get_charset_aliases): Use path_concat instead of ANSI string
86435         concatenation.
86436
86437         * lib/unicodeio.h (PARAMS): Define.
86438         Use it to guard prototype.
86439
86440 2000-03-04  Jim Meyering  <meyering@lucent.com>
86441
86442         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
86443         for lib/localcharset.c.
86444
86445 2000-03-04  Jim Meyering  <meyering@lucent.com>
86446
86447         * lib/Makefile.am (install-exec-local): Create $(libdir) before
86448         installing into it.
86449         (uninstall-local): Uncomment this rule so `make distcheck' works
86450         once again.
86451
86452         * lib/unicodeio.c (<errno.h>): Include it.
86453         (errno): Declare if not defined.
86454
86455         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
86456
86457         * lib/config.charset: New version, incorporating remarks from a linux
86458         i18n mailing list.  From Bruno Haible.
86459
86460 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
86461
86462         * m4/codeset.m4: New file.
86463         * m4/iconv.m4: New file.
86464         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
86465
86466 2000-03-03  Jim Meyering  <meyering@lucent.com>
86467
86468         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
86469
86470 2000-03-02  Jim Meyering  <meyering@lucent.com>
86471
86472         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
86473         the messages come out on separate lines.
86474
86475         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
86476         rather than jm_CHECK_DECLARATIONS.
86477         * m4/decl.m4: Remove now-unused file.
86478
86479         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
86480         geteuid.
86481
86482 2000-03-02  Jim Meyering  <meyering@lucent.com>
86483
86484         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
86485
86486 2000-03-01  Jim Meyering  <meyering@lucent.com>
86487
86488         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
86489         * lib/unicodeio.c: Likewise.
86490
86491 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
86492
86493         * lib/config.charset: New file.
86494         * lib/localcharset.c: New file.
86495         * lib/unicodeio.h, lib/unicodeio.c: New files.
86496         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
86497         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
86498         (noinst_HEADERS): Add unicodeio.h.
86499         (all-local, install-exec-local, charset.alias): New targets.
86500
86501 2000-02-28  Paul Eggert  <eggert@twinsun.com>
86502
86503         * lib/quotearg.c (ALERT_CHAR): New macro.
86504         (quotearg_buffer_restyled): Use it.
86505
86506 2000-02-27  Jim Meyering  <meyering@lucent.com>
86507
86508         * m4/check-decl.m4: Add getenv to the list.
86509
86510 2000-02-27  Jim Meyering  <meyering@lucent.com>
86511
86512         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
86513         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
86514
86515         * lib/backupfile.c: Guard inclusion of stdlib.h with
86516         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
86517         Declare malloc if needed.
86518
86519         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
86520         `#ifndef HAVE_DECL..'
86521         now that autoconf always defines the HAVE_DECL_ symbols.
86522         * lib/human.c: Likewise.
86523         * lib/same.c: Likewise.
86524         * lib/strtoumax.c: Likewise.
86525
86526         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
86527         declaration check was not run.
86528         * lib/hash.c: Likewise.
86529         * lib/human.c: Likewise.
86530         * lib/same.c: Likewise.
86531         * lib/strtoumax.c: Likewise.
86532
86533         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
86534         `.', then first look up the entire `.'-containing string as a login
86535         name.
86536
86537 2000-02-23  Jim Meyering  <meyering@lucent.com>
86538
86539         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
86540         in place of my hack.
86541
86542 2000-02-18  Paul Eggert  <eggert@twinsun.com>
86543
86544         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
86545         (textint): New typedef.
86546         (parser_control): Member year changed from int to textint.
86547         All uses changed.
86548         (YYSTYPE): Removed; replaced by %union with int and textint members.
86549         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
86550         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
86551         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
86552         (tSNUMBER, tUNUMBER): Now of type <textintval>.
86553         (date, number, to_year): Use width of number in digits, not its value,
86554         to determine whether it's a 2-digit year, or a 2-digit time.
86555         (yylex): Store number of digits of numeric tokens.
86556         Reported by John Kendall.
86557
86558         (parser_control): Changed from struct parser_control to typedef (for
86559         consistency).  All uses changed.
86560
86561         (tID): Removed; not used.
86562         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
86563
86564 2000-02-14  Paul Eggert  <eggert@twinsun.com>
86565
86566         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
86567         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
86568
86569 2000-02-12  Jim Meyering  <meyering@lucent.com>
86570
86571         * lib/userspec.c (ISDIGIT): Define it.
86572         (isdigit): Remove definition.
86573         (is_number): Use ISDIGIT, not isdigit.
86574         <libintl.h>: Include.
86575         (_ and N_): Define.
86576         (parse_user_spec): Mark translatable strings.
86577
86578 2000-02-10  Jim Meyering  <meyering@lucent.com>
86579
86580         With these changes, nanosleep.[ch] are finally enough like the other
86581         lib/* replacement files to compile on a few more losing systems.
86582
86583         * lib/nanosleep.h: Don't include config.h.
86584         Remove prototype from declaration of nanosleep.
86585         (PARAMS): Remove now-unneeded definition.
86586         * lib/nanosleep.c: #undef nanosleep.
86587         (rpl_nanosleep): Rename from nanosleep.
86588
86589 2000-02-10  Jim Meyering  <meyering@lucent.com>
86590
86591         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
86592         gnu_nanosleep to rpl_nanosleep.
86593
86594 2000-02-09  Jim Meyering  <meyering@lucent.com>
86595
86596         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
86597         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
86598
86599 2000-02-08  Akim Demaille  <akim@epita.fr>
86600
86601         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
86602         `[' and `]' and remove uses of `changequote'.
86603         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
86604         (AC_SYS_LARGEFILE): Likewise.
86605         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86606         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
86607         of changequote.
86608         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
86609         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
86610         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
86611         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
86612
86613 2000-02-05  Jim Meyering  <meyering@lucent.com>
86614
86615         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
86616         Remove explicit use of AC_HEADER_TIME.  It is required by
86617         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
86618         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
86619         in autoconf whereby the expansion of the latter ended up preceding
86620         the expansion of its prerequisite, AC_HEADER_TIME.
86621         Reported by Volker Borchert.
86622
86623 2000-02-03  Jim Meyering  <meyering@lucent.com>
86624
86625         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
86626
86627 2000-02-03  Jim Meyering  <meyering@lucent.com>
86628
86629         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
86630         rather than with `#if HAVE_UTMPNAME'.
86631
86632 2000-02-02  Jim Meyering  <meyering@lucent.com>
86633
86634         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
86635         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
86636         Reported by Eli Zaretskii.
86637
86638 2000-02-01  Jim Meyering  <meyering@lucent.com>
86639
86640         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
86641
86642 2000-01-31  Jim Meyering  <meyering@lucent.com>
86643
86644         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
86645         functions.  Add the time.h and sys/time.h headers along with the
86646         AC_REQUIRE'ment of AC_HEADER_TIME.
86647
86648 2000-01-31  Jim Meyering  <meyering@lucent.com>
86649
86650         * lib/nanosleep.h (nanosleep): Guard declaration with
86651         `#if ! HAVE_DECL_NANOSLEEP'.
86652         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
86653         the declaration in that vendor's sys/timers.h.
86654         Reported by Christian Krackowizer.
86655
86656         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
86657         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
86658         (ISPRINT): Likewise.
86659         Reported by Tom Tromey.
86660
86661 2000-01-30  Jim Meyering  <meyering@lucent.com>
86662
86663         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
86664
86665         * m4/prereq.m4 (utmp_includes): Define.
86666         Check for ut_user and ut_name members in both struct utmpx
86667         and struct utmp.
86668
86669 2000-01-30  Jim Meyering  <meyering@lucent.com>
86670
86671         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86672         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86673         header files where only utmpx.ut_user is declared.
86674
86675         * lib/readutmp.h (UT_USER): Define.
86676
86677 2000-01-29  Jim Meyering  <meyering@lucent.com>
86678
86679         * m4/lib-check.m4: New file containing library-related checks from
86680         fileutils and sh-utils (textutils had none).
86681
86682 2000-01-28  Jim Meyering  <meyering@lucent.com>
86683
86684         * m4/perl.m4: Change format of warning message to look more like that
86685         from the missing script.  Suggestion from François Pinard.
86686
86687 2000-01-25  Jim Meyering  <meyering@lucent.com>
86688
86689         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86690         well as time.h in the compile check.
86691         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86692         Fix typo in cross-compiling case: s/yes/no/.
86693
86694 2000-01-23  Jim Meyering  <meyering@lucent.com>
86695
86696         * m4/jm-macros.m4: Move df-related tests here from
86697         fileutils/configure.in
86698
86699         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86700         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86701
86702         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86703         s/space/ac_fsusage_space/.
86704         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86705
86706         * m4/ftruncate.m4: New file (derived from part of
86707         fileutils/configure.in).
86708         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86709         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86710
86711         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86712         AC_SUBST these here, rather than just in sh-util/configure.in, so
86713         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86714         all the same.
86715         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86716         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86717         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86718         (AC_SUBST(POW_LIBM)): Likewise.
86719         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86720
86721 2000-01-23  Jim Meyering  <meyering@lucent.com>
86722
86723         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86724         obstack.c.
86725
86726 2000-01-22  Jim Meyering  <meyering@lucent.com>
86727
86728         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86729
86730         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86731
86732         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86733         configure.in
86734         (AC_CHECK_HEADERS): Likewise for sh-utils.
86735         (AC_CHECK_HEADERS): Likewise for textutils.
86736         Merge the three lists of headers.
86737
86738         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86739         from fileutils' configure.in.
86740
86741         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86742         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86743         check-decl.m4.
86744
86745         * m4/check-decl.m4: Use #if rather than #ifdef.
86746         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86747         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86748         (_jm_DECL_HEADERS): Define new function.
86749         (jm_CHECK_DECLARATIONS): Require it.
86750
86751 2000-01-22  Jim Meyering  <meyering@lucent.com>
86752
86753         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86754         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86755         Required for some AIX systems.  Reported by Christian Krackowizer.
86756         [TESTING] (main): New function.
86757
86758         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86759         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86760         letters.
86761
86762         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86763         iswprint.
86764
86765         * lib/strverscmp.c (ISDIGIT): Define.
86766         (strverscmp): Use ISDIGIT, not isdigit.
86767
86768 2000-01-19  Jim Meyering  <meyering@lucent.com>
86769
86770         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86771         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86772         defines `struct timespec' in <sys/time.h>
86773
86774         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86775         Thanks to Akim for explaining.
86776
86777 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86778
86779         * lib/nanosleep.c (nanosleep):
86780         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86781         POSIX.1 doesn't require SA_INTERRUPT and some systems
86782         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86783         it's been part of POSIX.1 since day 1 (in 1988).
86784
86785 2000-01-17  Jim Meyering  <meyering@lucent.com>
86786
86787         * lib/interlock: Remove unused file.  Reported by François Pinard.
86788
86789 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86790
86791         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86792         alert, backslash, formfeed, and vertical tab unnecessarily in
86793         shell quoting style.
86794
86795 2000-01-16  Jim Meyering  <meyering@lucent.com>
86796
86797         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86798         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86799         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86800         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86801
86802 2000-01-16  Jim Meyering  <meyering@lucent.com>
86803
86804         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86805         because the latter didn't work.
86806
86807 2000-01-15  Jim Meyering  <meyering@lucent.com>
86808
86809         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86810         (AC_REPLACE_FUNCS): Add memcpy and memset.
86811         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86812         Add strpbrk.
86813         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86814
86815 2000-01-12  Jim Meyering  <meyering@lucent.com>
86816
86817         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86818         (jm_PREREQ): Use it.
86819         (jm_PREREQ_READUTMP): New macro.
86820         (jm_PREREQ): Use it.
86821
86822 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86823
86824         Quote multibyte characters correctly.
86825         * m4/c-bs-a.m4: New file.
86826         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86827         (jm_PREREQ): Use it.
86828
86829 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86830
86831         * m4/uintmax_t.m4: Port to autoconf 2.13.
86832
86833 2000-01-08  Jim Meyering  <meyering@ascend.com>
86834
86835         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86836         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86837
86838 2000-01-04  Jim Meyering  <meyering@ascend.com>
86839
86840         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86841         jm_STRUCT_DIRENT_D_TYPE.
86842         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86843         jm_STRUCT_DIRENT_D_INO.
86844         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86845         jm_STRUCT_UTIMBUF.
86846         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86847         renamings.
86848         * m4/utime.m4: Likewise.
86849
86850         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86851         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86852
86853 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86854
86855         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86856         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86857
86858 2000-01-02  Jim Meyering  <meyering@ascend.com>
86859
86860         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86861         remember if this is necessary.
86862
86863 1999-12-26  Jim Meyering  <meyering@ascend.com>
86864
86865         * m4/jm-macros.m4: Use it here.
86866         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86867
86868 1999-12-23  Jim Meyering  <meyering@ascend.com>
86869
86870         * m4/jm-macros.m4: Check for clock_gettime (moved from
86871         fileutils/configure.in)
86872         Check for gettimeofday.
86873
86874 1999-12-20  Jim Meyering  <meyering@ascend.com>
86875
86876         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86877         autoconf-2.14a-1999-12-20.
86878
86879 1999-12-19  Jim Meyering  <meyering@ascend.com>
86880
86881         * m4/lstat-slash.m4: New file.
86882         * m4/jm-macros.m4: Use the new macro:
86883         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86884
86885 1999-12-07  Jim Meyering  <meyering@ascend.com>
86886
86887         * m4/perl.m4: Require that File::Compare be available, too.
86888         Too many systems seem to lack it.
86889
86890         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86891         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86892
86893 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86894
86895         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86896         problem with the QNX 4.25 shell, which doesn't propagate exit
86897         status of failed commands inside shell assignments.
86898
86899 1999-11-17  Jim Meyering  <meyering@ascend.com>
86900
86901         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86902
86903 1999-11-07  Jim Meyering  <meyering@ascend.com>
86904
86905         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86906
86907 1999-11-06  Jim Meyering  <meyering@ascend.com>
86908
86909         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86910         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86911
86912 1999-11-05  Jim Meyering  <meyering@ascend.com>
86913
86914         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86915         configure.in of textutils, fileutils, and sh-utils into this one
86916         (shared between those packages) file.
86917         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86918         AC_STRUCT_ST_BLKSIZE.
86919
86920 1999-11-03  Jim Meyering  <meyering@ascend.com>
86921
86922         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86923         of AC_CHECK_TYPE checks includes unistd.h.
86924         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86925         Suggestion from Akim Demaille.
86926
86927 1999-10-30  Jim Meyering  <meyering@ascend.com>
86928
86929         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86930         m4-quoted string.
86931         * m4/ls-mntd-fs.m4: Likewise.
86932         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86933         * m4/jm-winsz1.m4: Likewise.
86934
86935         * m4/const.m4: Remove file, since the fix made it into the experimental
86936         version of autoconf.
86937         * m4/mktime.m4: Likewise.
86938
86939         * m4/check-type.m4: Remove file, now that the latest version of
86940         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86941
86942         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86943         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86944         AC_CHECK_TYPE.
86945
86946 1999-10-04  Jim Meyering  <meyering@ascend.com>
86947
86948         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86949
86950 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86951
86952         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86953         2.95.1 bug with HP-UX 10.20.
86954
86955 1999-09-17  Jim Meyering  <meyering@ascend.com>
86956
86957         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86958         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86959         due to missing strdup (against sh-utils-2.0).
86960
86961 1999-08-29  Jim Meyering  <meyering@ascend.com>
86962
86963         * m4/jm-macros.m4: Require jm_BISON.
86964         * m4/bison.m4: New file.
86965
86966 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86967
86968         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86969         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86970
86971 1999-08-05  Jim Meyering  <meyering@ascend.com>
86972
86973         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86974         to avoid conflicts with `conftest' on 8+3 filesystems.
86975         Suggestion from Eli Zaretskii.
86976
86977 1999-08-04  Jim Meyering  <meyering@ascend.com>
86978
86979         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86980         fileutils and sh-utils (textutils's getline test was inadequate).
86981         (AM_FUNC_GETLINE): Run this test.
86982         (AC_CHECK_FUNCS): Check for getdelim.
86983         Reported by Bob Proulx.
86984
86985 1999-08-02  Jim Meyering  <meyering@ascend.com>
86986
86987         * m4/jm-macros.m4: Add a comment.
86988
86989 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86990
86991         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86992         <inttypes.h> defines strtoumax as a macro (and not as a
86993         function).
86994
86995 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86996
86997         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86998         that we can shift, multiply and divide unsigned long long
86999         values; Ultrix cc can't do it.
87000
87001 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87002
87003         * m4/mktime.m4: New file, which is a preview of what should appear
87004         in the next public autoconf release.
87005
87006 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87007
87008         * m4/lfs.m4: Remove this file.
87009         * m4/largefile.m4: New file.  It contains the old contents of
87010         lfs.m4, except that all names with prefix AC_LFS have been
87011         changed to use the prefix AC_SYS_LARGEFILE instead, to be
87012         compatible with future autoconf versions.  Also, some minor m4
87013         quoting problems have been fixed.
87014
87015 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87016
87017         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
87018         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
87019         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
87020         and simplify the shell code.
87021
87022 1999-08-01  Jim Meyering  <meyering@ascend.com>
87023
87024         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
87025         m4.
87026
87027 1999-07-20  Jim Meyering  <meyering@ascend.com>
87028
87029         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
87030
87031 1999-07-15  Jim Meyering  <meyering@ascend.com>
87032
87033         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
87034
87035 1999-05-22  Jim Meyering  <meyering@ascend.com>
87036
87037         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
87038
87039 1999-05-20  Jim Meyering  <meyering@ascend.com>
87040
87041         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
87042         Add a colon after each `then' in case $4 is empty.
87043
87044 1999-05-16  Jim Meyering  <meyering@ascend.com>
87045
87046         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
87047
87048 1999-05-10  Jim Meyering  <meyering@ascend.com>
87049
87050         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
87051
87052         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
87053         AC_FUNC_MKTIME.
87054
87055 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
87056
87057         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
87058
87059 1999-05-04  Paul Eggert  <eggert@twinsun.com>
87060
87061         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
87062         not CPPFLAGS, so that linking works correctly in IRIX.
87063
87064 1999-04-30  Paul Eggert  <eggert@twinsun.com>
87065
87066         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
87067
87068 1999-04-20  Paul Eggert  <eggert@twinsun.com>
87069
87070         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
87071         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
87072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
87073         jm_AC_TYPE_UNSIGNED_LONG_LONG.
87074         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
87075
87076         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
87077
87078 1999-04-20  Jim Meyering  <meyering@ascend.com>
87079
87080         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
87081         AC_REPLACE xstroull if necessary.  From Paul Eggert.
87082         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
87083
87084 1999-04-18  Jim Meyering  <meyering@ascend.com>
87085
87086         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
87087         * m4/jm-macros.m4: Use it.
87088
87089 1999-04-06  Jim Meyering  <meyering@ascend.com>
87090
87091         * m4/strftime.m4: Remove test for %f.
87092
87093 1999-03-29  Jim Meyering  <meyering@ascend.com>
87094
87095         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
87096         superset of the AC_TYPE_* checks in the textutils, fileutils,
87097         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
87098         AC_TYPE_PID_T.
87099
87100 1999-03-28  Jim Meyering  <meyering@ascend.com>
87101
87102         * m4/jm-macros.m4: Define GNU_PACKAGE here.
87103         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
87104         replaced e.g., in the *.sh files of the sh-utils.
87105
87106 1999-03-20  Jim Meyering  <meyering@ascend.com>
87107
87108         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
87109         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
87110         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
87111
87112 1999-03-19  Jim Meyering  <meyering@ascend.com>
87113
87114         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
87115
87116 1999-03-12  Jim Meyering  <meyering@ascend.com>
87117
87118         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
87119
87120 1999-03-07  Jim Meyering  <meyering@ascend.com>
87121
87122         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
87123         declared.
87124
87125 1999-02-17  Jim Meyering  <meyering@ascend.com>
87126
87127         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
87128         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
87129
87130 1999-02-07  Jim Meyering  <meyering@ascend.com>
87131
87132         * m4/group-member.m4: New file -- extracted from sh-utils'
87133         configure.in.
87134
87135         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
87136         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
87137
87138 1999-02-06  Jim Meyering  <meyering@ascend.com>
87139
87140         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
87141         * m4/fnmatch.m4: Likewise.
87142         * m4/getgroups.m4: Likewise.
87143         * m4/lstat.m4: Likewise.
87144         * m4/malloc.m4: Likewise.
87145         * m4/putenv.m4: Likewise.
87146         * m4/realloc.m4: Likewise.
87147         * m4/regex.m4: Likewise.
87148         * m4/stat.m4: Likewise.
87149         * m4/strftime.m4: Likewise.
87150         Suggestion from Alain Magloire.
87151
87152         * m4/chown.m4: Use `.$ac_objext', not `.o'.
87153         * m4/fnmatch.m4: Likewise.
87154         * m4/getgroups.m4: Likewise.
87155         * m4/getline.m4: Likewise.
87156         * m4/lstat.m4: Likewise.
87157         * m4/malloc.m4: Likewise.
87158         * m4/memcmp.m4: Likewise.
87159         * m4/putenv.m4: Likewise.
87160         * m4/realloc.m4: Likewise.
87161         * m4/regex.m4: Likewise.
87162         * m4/stat.m4: Likewise.
87163         * m4/strftime.m4: Likewise.
87164         Suggestion from Alain Magloire.
87165
87166         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
87167         an argument.
87168
87169         * m4/regex.m4: Add a run-time Test for proper operation of
87170         re_compile_pattern.
87171
87172 1999-01-31  Jim Meyering  <meyering@ascend.com>
87173
87174         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
87175
87176 1999-01-30  Jim Meyering  <meyering@ascend.com>
87177
87178         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
87179
87180         * m4/jm-mktime.m4: Make this a wrapper around the official
87181         AM_FUNC_MKTIME rather than my private copy, now that the official one
87182         is up to date.
87183         * m4/mktime.m4: Remove file.
87184
87185         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
87186         * m4/uptime.m4: Likewise.
87187         * m4/uintmax_t.m4: Likewise.
87188
87189 1999-01-28  Jim Meyering  <meyering@ascend.com>
87190
87191         * m4/jm-macros.m4: Use jm_AFS.
87192         * m4/afs.m4: New file (from fileutils' configure.in).
87193
87194         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
87195         * m4/chown.m4: Likewise.
87196         * m4/d-ino.m4: Likewise.
87197         * m4/d-type.m4: Likewise.
87198         * m4/fnmatch.m4: Likewise.
87199         * m4/getgroups.m4: Likewise.
87200         * m4/gettext.m4: Likewise.
87201         * m4/jm-mktime.m4: Likewise.
87202         * m4/jm-winsz2.m4: Likewise.
87203         * m4/lcmessage.m4: Likewise.
87204         * m4/ls-mntd-fs.m4: Likewise.
87205         * m4/malloc.m4: Likewise.
87206         * m4/memcmp.m4: Likewise.
87207         * m4/putenv.m4: Likewise.
87208         * m4/realloc.m4: Likewise.
87209         * m4/st_mtim.m4: Likewise.
87210         * m4/strftime.m4: Likewise.
87211
87212 1999-01-16  Jim Meyering  <meyering@ascend.com>
87213
87214         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
87215         (ARGMATCH_DIE_DECL): Define.
87216
87217 1999-01-12  Jim Meyering  <meyering@ascend.com>
87218
87219         * m4/Makefile.am.in: Rewrite to avoid using fmt.
87220         Reported by Lars Hecking.
87221
87222 1999-01-10  Jim Meyering  <meyering@ascend.com>
87223
87224         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
87225         gross kludge.
87226         * m4/inttypes_h.m4: Likewise.
87227         * m4/lstat.m4: Likewise.
87228         * m4/malloc.m4: Likewise.
87229         * m4/readdir.m4: Likewise.
87230         * m4/realloc.m4: Likewise.
87231         * m4/st_dm_mode.m4: Likewise.
87232         * m4/stat.m4: Likewise.
87233         * m4/utimbuf.m4: Likewise.
87234         * m4/utimes.m4: Likewise.
87235
87236         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
87237         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
87238         comments in config.h.in are meaningful.
87239
87240         * m4/jm-macros.m4: Require autoconf-2.13 here.
87241
87242         * m4/regex.m4: By default, don't use the included regex.c on systems
87243         with glibc 2.  Suggestion from Uli Drepper.
87244
87245 1999-01-02  Jim Meyering  <meyering@ascend.com>
87246
87247         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
87248
87249 1998-12-18  Jim Meyering  <meyering@ascend.com>
87250
87251         * m4/Makefile.am.in (Makefile.am): Simplify rule.
87252         Based on a suggestion from Lars Hecking.
87253
87254 1998-11-16  Paul Eggert  <eggert@twinsun.com>
87255
87256         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
87257
87258 1998-11-16  Jim Meyering  <meyering@ascend.com>
87259
87260         * m4/lfs.m4: Double-quote the `uname...` expression.
87261
87262 1998-11-14  Jim Meyering  <meyering@ascend.com>
87263
87264         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
87265         * m4/stat.m4: Likewise.
87266
87267 1998-11-03  Jim Meyering  <meyering@ascend.com>
87268
87269         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
87270         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
87271
87272 1998-10-18  Jim Meyering  <meyering@ascend.com>
87273
87274         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
87275
87276 1998-10-17  Jim Meyering  <meyering@ascend.com>
87277
87278         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
87279         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
87280         calls for those previously hard-coded headers.  Instead, take a new
87281         parameter.
87282         (jm_CHECK_DECLARATIONS): Reflect interface change.
87283         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
87284         (jm_CHECK_DECL_LOCALTIME_R): New macro.
87285
87286         * m4/mktime.m4: Test for spring-forward gap before long-running test.
87287
87288 1998-10-14  Jim Meyering  <meyering@ascend.com>
87289
87290         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
87291         instead of "TZ=America/Vancouver".  From Paul Eggert.
87292
87293 1998-10-11  Jim Meyering  <meyering@ascend.com>
87294
87295         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
87296         This adds a test for a recently added compatibility fix for mktime.c.
87297         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
87298
87299 1998-09-27  Jim Meyering  <meyering@ascend.com>
87300
87301         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
87302
87303         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
87304         ../configure.in, including a change from Gordon Matzigkeit to allow
87305         cross-compiling for the Hurd.
87306
87307         * m4/glibc.m4: New file/macro to test for the GNU C Library
87308         versions 1 and 2.  From Gordon Matzigkeit.
87309         Indent.
87310
87311 1998-09-21  Jim Meyering  <meyering@ascend.com>
87312
87313         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
87314
87315 1998-08-18  Paul Eggert  <eggert@twinsun.com>
87316
87317         Port nanosecond-resolution times to UnixWare 2.1.2 and
87318         pedantic Solaris 2.6.
87319
87320         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
87321         AC_STRUCT_ST_MTIM.
87322         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
87323         Generate name of ns member, instead of just 1 or undef.
87324         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
87325
87326 1998-08-15  Jim Meyering  <meyering@ascend.com>
87327
87328         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
87329         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
87330         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
87331         instead of jm_TYPE_SSIZE_T.
87332
87333 1998-08-12  Jim Meyering  <meyering@ascend.com>
87334
87335         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
87336
87337 1998-08-02  Jim Meyering  <meyering@ascend.com>
87338
87339         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
87340         in acconfig.h manually.
87341
87342 1998-07-31  Paul Eggert  <eggert@twinsun.com>
87343
87344         * m4/st_mtim.m4: New file.
87345
87346 1998-07-28  Jim Meyering  <meyering@ascend.com>
87347
87348         * m4/utimes.m4: Undef stat.
87349
87350 1998-07-25  Jim Meyering  <meyering@ascend.com>
87351
87352         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
87353         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
87354
87355 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
87356
87357         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
87358         uid and gid actually remain unchanged.
87359
87360 1998-07-07  Jim Meyering  <meyering@ascend.com>
87361
87362         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
87363
87364 1998-07-04  Jim Meyering  <meyering@ascend.com>
87365
87366         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
87367         to prove that this macro can be used in packages without regex.c.
87368
87369 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87370
87371         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
87372         is to be used.
87373
87374 1998-07-03  Jim Meyering  <meyering@ascend.com>
87375
87376         * m4/gettext.m4: Add -lintl if it's found to be necessary.
87377
87378         * m4/gettext.m4: New file -- from gettext-0.10.35.
87379         * m4/lcmessage.m4: Likewise.
87380         * m4/progtest.m4: Likewise.
87381
87382         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
87383         * m4/jm-macros.m4: Require the new macro.
87384
87385 1998-06-29  Jim Meyering  <meyering@ascend.com>
87386
87387         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
87388         for the definition of NGROUPS (used in a system header included
87389         by sys/mount.h).
87390
87391 1998-06-28  Jim Meyering  <meyering@ascend.com>
87392
87393         * m4/ls-mntd-fs.m4: New file.
87394         * m4/fstypename.m4: New file.
87395
87396         * m4/jm-macros.m4: Require the new macro.
87397         * m4/jm-glibc-io.m4: New file.
87398
87399 1998-05-19  Jim Meyering  <meyering@ascend.com>
87400
87401         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
87402         * m4/lchown.m4: New file.
87403
87404         * m4/Makefile.am.in: New file.
87405         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
87406
87407 1998-05-14  Jim Meyering  <meyering@ascend.com>
87408
87409         * m4/Makefile.am (EXTRA_DIST): Add them.
87410         * m4/jm-macros.m4: New file.
87411         * m4/utimbuf.m4: New file.
87412
87413 1998-05-12  Jim Meyering  <meyering@ascend.com>
87414
87415         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
87416
87417 1998-05-11  Jim Meyering  <meyering@ascend.com>
87418
87419         * m4/isc-posix.m4: New file.
87420
87421 1998-05-10  Jim Meyering  <meyering@ascend.com>
87422
87423         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
87424
87425 1998-05-09  Jim Meyering  <meyering@ascend.com>
87426
87427         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
87428         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
87429         with automake.
87430
87431         * m4/ssize_t.m4: New file.
87432         * m4/mktime.m4: Remove file -- the new automake has this now.
87433
87434 1998-04-26  Jim Meyering  <meyering@ascend.com>
87435
87436         * m4/assert.m4: New file.
87437         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
87438
87439 1998-04-05  Jim Meyering  <meyering@ascend.com>
87440
87441         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
87442         (jm_PREREQ): Use it here.
87443
87444 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
87445
87446         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
87447         in acconfig.h.
87448
87449 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
87450
87451         * m4/prereq.m4: New file.
87452         * m4/error.m4: New file.
87453         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
87454
87455 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
87456
87457         * m4/getline.m4: Don't set am_cv_func_working_getline before the
87458         cache-check for the same variable -- that defeated the purpose of
87459         the test; the test program was never run.  This was a problem only
87460         on systems with losing getline functions -- HP-UX 10.20 is one.
87461         Reported by Bjorn Helgaas.
87462
87463 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
87464
87465         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
87466
87467 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
87468
87469         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
87470
87471         * m4/const.m4: New file.  Use an initializer in this declaration
87472         typedef int charset[2]; const charset x;
87473         Reported by Bob Glickstein.
87474
87475 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
87476
87477         * m4/chown.m4: Fix reversed types on -1 args to chown.
87478         From Kaveh Ghazi.
87479
87480 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
87481
87482         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
87483         Add lseek and memchr.
87484
87485         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
87486         T.E.Dickey <dickey@clark.net> said that some older preprocessors
87487         have a 20-character limit on names.
87488
87489 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
87490
87491         * m4/inttypes_h.m4: New file.
87492         * m4/uintmax_t.m4: New file.
87493         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
87494
87495
87496         -----
87497
87498         Local Variables:
87499         coding: utf-8
87500         End:
87501
87502         Copyright (C) 1997-2011 Free Software Foundation, Inc.
87503
87504         Copying and distribution of this file, with or without
87505         modification, are permitted provided the copyright notice
87506         and this notice are preserved.