27cdfcd5b03c3d53bd8207828d8300e10d489c5b
[gnulib.git] / ChangeLog
1 2011-09-25  Bruno Haible  <bruno@clisp.org>
2
3         fflush et al.: Document limitation on MSVC.
4         * doc/posix-functions/fflush.texi: Document possible crash in handling
5         mode other than DEFAULT_HANDLING.
6         * doc/posix-functions/fgetc.texi: Likewise.
7         * doc/posix-functions/fputc.texi: Likewise.
8         * doc/posix-functions/fread.texi: Likewise.
9         * doc/posix-functions/fwrite.texi: Likewise.
10
11 2011-09-25  Bruno Haible  <bruno@clisp.org>
12
13         msvc-inval: Allow three invalid parameter handling modes.
14         * lib/msvc-inval.h: Don't include <stdlib.h> here.
15         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
16         macros.
17         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
18         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
19         SANE_LIBRARY_HANDLING as a no-op.
20         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
21         <stdlib.h>.
22         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
23
24 2011-09-25  Bruno Haible  <bruno@clisp.org>
25
26         msvc-inval: Make handler multithread-safe.
27         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
28         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
29         declarations.
30         (gl_msvc_inval_current): New declaration.
31         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
32         Operate on the structure returned by gl_msvc_inval_current().
33         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
34         Remove varaiables.
35         (tls_index, tls_initialized): New variables.
36         (not_per_thread): New variable.
37         (gl_msvc_inval_current): New function.
38         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
39         returned by gl_msvc_inval_current().
40
41 2011-09-25  Bruno Haible  <bruno@clisp.org>
42
43         msvc-inval: Install handler globally.
44         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
45         !_MSC_VER.
46         (gl_msvc_invalid_parameter_handler): Remove declaration.
47         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
48         declarations.
49         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
50         Install the handler globally, don't uninstall it.
51         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
52         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
53         currently valid, call RaiseException instead.
54         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
55         for !_MSC_VER.
56
57 2011-09-25  Bruno Haible  <bruno@clisp.org>
58
59         strerror_r-posix: Fix for MSVC 9.
60         * lib/strerror_r.c (local_snprintf): New function.
61         (snprintf): Define to local_snprintf, not to _snprintf.
62
63 2011-09-25  Bruno Haible  <bruno@clisp.org>
64
65         ftruncate: Support for MSVC 9.
66         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
67         (chsize_nothrow): New function.
68         (chsize): Redefine as a macro.
69         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
70         * modules/ftruncate (Depends-on): Add msvc-inval.
71
72 2011-09-25  Bruno Haible  <bruno@clisp.org>
73
74         New module 'fstat'.
75         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
76         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
77         * lib/fchdir.c (rpl_fstat): Remove function.
78         * m4/fstat.m4: New file.
79         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
80         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
81         declared.
82         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
83         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
84         * modules/fstat: New file.
85         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
86         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
87         is set.
88         * doc/posix-functions/fstat.texi: Mention the new module and the
89         problem on MSVC.
90         * NEWS: Mention the change.
91         * modules/acl (Depends-on): Add fstat.
92         * modules/chdir-safer (Depends-on): Likewise.
93         * modules/chown (Depends-on): Likewise.
94         * modules/copy-file (Depends-on): Likewise.
95         * modules/fchdir (Depends-on): Likewise.
96         * modules/fdopendir (Depends-on): Likewise.
97         * modules/fopen (Depends-on): Likewise.
98         * modules/fts (Depends-on): Likewise.
99         * modules/getcwd (Depends-on): Likewise.
100         * modules/isapipe (Depends-on): Likewise.
101         * modules/linkat (Depends-on): Likewise.
102         * modules/lseek (Depends-on): Likewise.
103         * modules/mkdir-p (Depends-on): Likewise.
104         * modules/open (Depends-on): Likewise.
105         * modules/openat (Depends-on): Likewise.
106         * modules/read-file (Depends-on): Likewise.
107         * modules/renameat (Depends-on): Likewise.
108         * modules/utimens (Depends-on): Likewise.
109
110 2011-09-25  Bruno Haible  <bruno@clisp.org>
111
112         linkat: Fix compilation on MSVC 9.
113         * lib/linkat.c: Don't include <stdint.h>.
114
115 2011-09-25  Bruno Haible  <bruno@clisp.org>
116
117         fclose: Support for MSVC 9.
118         * lib/fclose.c: Include msvc-inval.h.
119         (fclose_nothrow): New function.
120         (rpl_fclose): Use it.
121         * modules/fclose (Depends-on): Add msvc-inval.
122         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
123
124 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
125
126         dup2: minor simplifications
127         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
128         that it's a performance win.
129         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
130         ! defined __CYGWIN__)" to "ifdef F_GETFL".
131
132 2011-09-24  Jim Meyering  <meyering@redhat.com>
133
134         test-futimens: avoid a warning from gcc -Wshadow
135         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
136         to avoid a shadowing warning.
137
138 2011-09-24  Bruno Haible  <bruno@clisp.org>
139
140         fdopen: Support for MSVC 9.
141         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
142         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
143         * lib/fdopen.c: Include msvc-inval.h.
144         (fdopen_nothrow): New function.
145         (rpl_fdopen): Use it.
146         * modules/fdopen (Depends-on): Add msvc-inval.
147         * modules/fclose-tests (Depends-on): Add fdopen.
148         * modules/fflush-tests (Depends-on): Likewise.
149         * modules/fgetc-tests (Depends-on): Likewise.
150         * modules/fputc-tests (Depends-on): Likewise.
151         * modules/fread-tests (Depends-on): Likewise.
152         * modules/freopen-tests (Depends-on): Likewise.
153         * modules/fseeko-tests (Depends-on): Likewise.
154         * modules/ftello-tests (Depends-on): Likewise.
155         * modules/fwrite-tests  (Depends-on): Likewise.
156         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
157
158 2011-09-24  Bruno Haible  <bruno@clisp.org>
159
160         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
161         * modules/fgetc-tests (Depends-on): Add unistd.
162         * modules/fputc-tests (Depends-on): Likewise.
163         * modules/fread-tests (Depends-on): Likewise.
164         * modules/fwrite-tests (Depends-on): Likewise.
165
166 2011-09-24  Bruno Haible  <bruno@clisp.org>
167
168         dup: Simplify autoconf test.
169         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
170         on gl_MSVC_INVAL's result.
171
172 2011-09-24  Bruno Haible  <bruno@clisp.org>
173
174         Tests for function fwrite().
175         * modules/fwrite-tests: New file.
176         * tests/test-fwrite.c: New file.
177         * modules/stdio-tests (Depends-on): Add fwrite-tests.
178
179         Tests for function fread().
180         * modules/fread-tests: New file.
181         * tests/test-fread.c: New file.
182         * modules/stdio-tests (Depends-on): Add fread-tests.
183
184         Activate fputc tests.
185         * modules/stdio-tests (Depends-on): Add fputc-tests.
186
187         Enhance fgetc, fputc tests.
188         * tests/test-fgetc.c (main): Also test the stream's error indicator.
189         * tests/test-fputc.c (main): Likewise.
190
191 2011-09-24  Bruno Haible  <bruno@clisp.org>
192
193         write: Support for MSVC 9.
194         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
195         is not 1.
196         * lib/write.c (write_nothrow): New function.
197         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
198         not 1. Use write_nothrow.
199         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
200         invalid parameter handler.
201         (gl_PREREQ_WRITE): New macro.
202         * modules/write (Depends-on): Add msvc-inval.
203         (configure.ac): Invoke gl_PREREQ_WRITE.
204         * doc/posix-functions/write.texi: Mention the problem on MSVC.
205
206 2011-09-24  Bruno Haible  <bruno@clisp.org>
207
208         read: Fix last commit.
209         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
210
211 2011-09-24  Bruno Haible  <bruno@clisp.org>
212
213         dup2: Fix last commit.
214         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
215         (rpl_dup2): Disable fcntl workaround on native Windows.
216
217         sigprocmask: Make code safer.
218         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
219         section that changes macro definitions for this compilation unit.
220
221 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
222
223         dup2: clarify by coalescing Windows-specific material
224         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
225         "msvc-nothrow.h"' to the Windows-specific section, so that the
226         Emacs source need not contain these include files.
227         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
228         Windows-specific fixes into this function rather than just the
229         nothrow fix, as this shortens and clarifies the code.  Always
230         define as a function, as that's a bit cleaner than having it be
231         sometimes a function and sometimes a macro.
232         (rpl_dup2): Move the Windows-specific stuff out of here and into
233         ms_windows_dup2.  Don't protect the Haiku-related fix with
234         "#if !defined __linux__", as the same code also works around
235         a Linux kernel bug, and it doesn't add any system calls on any
236         platform.  Add comment about FreeBSD 6.1.
237
238         sigprocmask: move #include directive
239         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
240         Windows-specific section, so that the Emacs source need not
241         contain msvc-inval.h.
242
243 2011-09-23  Bruno Haible  <bruno@clisp.org>
244
245         read: Support for MSVC 9.
246         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
247         is not 1.
248         * lib/read.c (read_nothrow): New function.
249         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
250         read_nothrow.
251         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
252         invalid parameter handler.
253         (gl_PREREQ_READ): New macro.
254         * modules/read (Depends-on): Add msvc-inval.
255         (configure.ac): Invoke gl_PREREQ_READ.
256         * doc/posix-functions/read.texi: Mention the problem on MSVC.
257
258 2011-09-23  Bruno Haible  <bruno@clisp.org>
259
260         close: Support for MSVC 9.
261         * lib/close.c: Include <errno.h>, msvc-inval.h.
262         (close_nothrow): New function.
263         (rpl_close): Use it.
264         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
265         invalid parameter handler.
266         * modules/close (Depends-on): Add msvc-inval.
267         * modules/dup2-tests (Depends-on): Add close.
268         * modules/dup3-tests (Depends-on): Likewise.
269         * modules/fcntl-tests (Depends-on): Likewise.
270         * modules/spawn-pipe-tests (Depends-on): Likewise.
271         * modules/unistd-safer-tests (Depends-on): Likewise.
272         * doc/posix-functions/close.texi: Mention the problem on MSVC.
273
274 2011-09-23  Bruno Haible  <bruno@clisp.org>
275
276         New module 'dup'.
277         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
278         Allow replacement.
279         * lib/dup.c: New file.
280         * lib/fchdir.c (rpl_dup): Remove function.
281         * m4/dup.m4: New file.
282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
283         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
284         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
285         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
286         * modules/dup: New file.
287         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
288         'dup' module is in use.
289         * modules/fdopendir (Depends-on): Add dup.
290         * modules/fdutimensat-tests (Depends-on): Likewise.
291         * modules/fts (Depends-on): Likewise.
292         * modules/futimens-tests (Depends-on): Likewise.
293         * modules/posix_spawnp-tests (Depends-on): Likewise.
294         * modules/unistd-safer-tests (Depends-on): Likewise.
295         * modules/utimens-tests (Depends-on): Likewise.
296         * doc/posix-functions/dup.texi: Mention the new module and the problem
297         on MSVC.
298
299 2011-09-23  Bruno Haible  <bruno@clisp.org>
300
301         getdtablesize: Support for MSVC 9.
302         * lib/getdtablesize.c: Include msvc-inval.h.
303         (_setmaxstdio_nothrow): New function.
304         (_setmaxstdio): Redefine it.
305         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
306         * modules/getdtablesize (Depends-on): Add msvc-inval.
307         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
308
309 2011-09-23  Bruno Haible  <bruno@clisp.org>
310
311         signal-h: Rename from signal.
312         * modules/signal-h: Renamed from modules/signal.
313         * modules/pthread_sigmask (Depends-on): Update.
314         * modules/raise (Depends-on): Likewise.
315         * modules/sigaction (Depends-on): Likewise.
316         * modules/sigpipe (Depends-on): Likewise.
317         * modules/sigprocmask (Depends-on): Likewise.
318         * modules/sys_select (Depends-on): Likewise.
319         * modules/signal-h-tests: Renamed from modules/signal-tests.
320         (Files, Depends-on, Makefile.am): Update.
321         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
322         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
323         (Files, Makefile.am): Update.
324         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
325         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
326         * modules/signal: New placeholder file.
327         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
328         * doc/posix-headers/signal.texi: Update.
329         * NEWS: Mention the change.
330
331 2011-09-23  Bruno Haible  <bruno@clisp.org>
332
333         sigprocmask: Avoid crashes through signal() on MSVC 9.
334         * lib/sigprocmask.c: Include msvc-inval.h.
335         (signal_nothrow): New function.
336         (signal): Redefine it.
337         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
338         * modules/sigprocmask (Depends-on): Add msvc-inval.
339         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
340
341 2011-09-23  Bruno Haible  <bruno@clisp.org>
342
343         Tests for module 'raise'.
344         * modules/raise-tests: New file.
345         * tests/test-raise.c: New file.
346
347         raise: Support for MSVC.
348         * lib/signal.in.h (raise): New declaration.
349         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
350         for native Windows platforms.
351         * m4/raise.m4: New file.
352         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
353         HAVE_RAISE, REPLACE_RAISE.
354         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
355         REPLACE_RAISE.
356         * modules/raise (Status, Notice): Remove fields.
357         (Files): Add m4/raise.m4.
358         (Depends-on): Add signal, msvc-inval.
359         (configure.ac): Use the common idioms.
360         (Maintainer): Add me.
361         * tests/test-signal-c++.cc: Check the signature of raise.
362         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
363
364 2011-09-23  Bruno Haible  <bruno@clisp.org>
365
366         pipe2: Fix compilation on pre-C99 compilers.
367         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
368
369 2011-09-23  Bruno Haible  <bruno@clisp.org>
370
371         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
372         * lib/msvc-nothrow.h: New file.
373         * lib/msvc-nothrow.c: New file.
374         * m4/msvc-nothrow.m4: New file.
375         * modules/msvc-nothrow: New file.
376         * lib/dup2.c: Include msvc-nothrow.h.
377         (rpl_dup2): No need to protect _get_osfhandle call here.
378         * lib/accept4.c: Include msvc-nothrow.h.
379         * lib/error.c: Likewise.
380         * lib/fcntl.c: Likewise.
381         * lib/lseek.c: Likewise.
382         * lib/nonblocking.c: Likewise.
383         * lib/poll.c: Likewise.
384         * lib/read.c: Likewise.
385         * lib/select.c: Likewise.
386         * lib/sockets.h: Likewise.
387         * lib/sockets.c: Likewise.
388         * lib/stdio-read.c: Likewise.
389         * lib/stdio-write.c: Likewise.
390         * lib/write.c: Likewise.
391         * lib/w32sock.h: Likewise.
392         * lib/w32spawn.h: Likewise.
393         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
394         * lib/fsync.c: Likewise.
395         * lib/isapipe.c: Likewise.
396         * modules/dup2 (Depends-on): Add msvc-nothrow.
397         * modules/accept4 (Depends-on): Likewise.
398         * modules/error (Depends-on): Likewise.
399         * modules/fcntl (Depends-on): Likewise.
400         * modules/lseek (Depends-on): Likewise.
401         * modules/nonblocking (Depends-on): Likewise.
402         * modules/poll (Depends-on): Likewise.
403         * modules/read (Depends-on): Likewise.
404         * modules/select (Depends-on): Likewise.
405         * modules/sockets (Depends-on): Likewise.
406         * modules/sigpipe (Depends-on): Likewise.
407         * modules/write (Depends-on): Likewise.
408         * modules/accept (Depends-on): Likewise.
409         * modules/bind (Depends-on): Likewise.
410         * modules/connect (Depends-on): Likewise.
411         * modules/gethostname (Depends-on): Likewise.
412         * modules/getpeername (Depends-on): Likewise.
413         * modules/getsockname (Depends-on): Likewise.
414         * modules/getsockopt (Depends-on): Likewise.
415         * modules/ioctl (Depends-on): Likewise.
416         * modules/listen (Depends-on): Likewise.
417         * modules/recv (Depends-on): Likewise.
418         * modules/recvfrom (Depends-on): Likewise.
419         * modules/send (Depends-on): Likewise.
420         * modules/sendto (Depends-on): Likewise.
421         * modules/setsockopt (Depends-on): Likewise.
422         * modules/shutdown (Depends-on): Likewise.
423         * modules/socket (Depends-on): Likewise.
424         * modules/execute (Depends-on): Likewise.
425         * modules/spawn-pipe (Depends-on): Likewise.
426         * modules/flock (Depends-on): Likewise.
427         * modules/fsync (Depends-on): Likewise.
428         * modules/isapipe (Depends-on): Likewise.
429         * tests/test-cloexec.c: Include msvc-nothrow.h.
430         * tests/test-dup-safer.c: Likewise.
431         * tests/test-dup2.c: Likewise.
432         * tests/test-dup3.c: Likewise.
433         * tests/test-fcntl.c: Likewise.
434         * tests/test-pipe.c: Likewise.
435         * tests/test-pipe2.c: Likewise.
436         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
437         * modules/unistd-safer-tests (Depends-on): Likewise.
438         * modules/dup2-tests (Depends-on): Likewise.
439         * modules/dup3-tests (Depends-on): Likewise.
440         * modules/fcntl-tests (Depends-on): Likewise.
441         * modules/pipe-posix-tests (Depends-on): Likewise.
442         * modules/pipe2-tests (Depends-on): Likewise.
443
444 2011-09-23  Bruno Haible  <bruno@clisp.org>
445
446         dup2: Make code more maintainable.
447         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
448         (rpl_dup2): Use it.
449         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
450         * modules/dup2 (configure.ac): Invoke it.
451         Reported by Paul Eggert.
452
453 2011-09-23  Bruno Haible  <bruno@clisp.org>
454
455         msvc-inval: Fix compilation error.
456         * lib/msvc-inval.h: Include <excpt.h>.
457
458 2011-09-23  Bruno Haible  <bruno@clisp.org>
459
460         mkdir: Tweak for MSVC 9.
461         * lib/sys_stat.in.h: Update comments.
462         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
463
464         Tests for module 'chdir'.
465         * modules/chdir-tests: New file.
466         * tests/test-chdir.c: New file.
467
468         New module 'chdir'.
469         * modules/chdir: New file.
470         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
471         (chdir): New declaration.
472         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
473         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
474         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
475         * tests/test-unistd-c++.cc: Check signature of chdir.
476         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
477         * modules/chdir-long (Depends-on): Add chdir.
478         * modules/fchdir (Depends-on): Likewise.
479         * modules/rename (Depends-on): Likewise.
480         * modules/savewd (Depends-on): Likewise.
481
482         rmdir: Support for mingw, MSVC 9.
483         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
484         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
485
486         getcwd: Tweak for MSVC 9.
487         * lib/unistd.in.h: Update comments.
488         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
489
490 2011-09-22  Bruno Haible  <bruno@clisp.org>
491
492         strerror_r-posix: Avoid a link error on MSVC.
493         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
494         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
495
496 2011-09-22  Bruno Haible  <bruno@clisp.org>
497
498         select: Avoid link errors on MSVC.
499         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
500         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
501         * modules/pselect (Link): Likewise.
502         * NEWS: Mention the change.
503         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
504         test-select-stdin against $(LIB_SELECT).
505         * modules/pselect-tests (Makefile.am): Link test-pselect against
506         $(LIB_SELECT).
507
508 2011-09-22  Bruno Haible  <bruno@clisp.org>
509
510         select: Avoid compilation error on MSVC.
511         * lib/select.c: Don't include <stdbool.h>.
512
513 2011-09-21  Bruno Haible  <bruno@clisp.org>
514
515         Consolidate all uses of PATH_MAX in *.m4 files.
516         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
517         macros.
518         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
519         and gl_PATHMAX_SNIPPET.
520         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
521         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
522         * modules/chdir-long (Files): Add m4/pathmax.m4.
523         * modules/getcwd (Files): Likewise.
524
525 2011-09-21  Bruno Haible  <bruno@clisp.org>
526
527         ftruncate: Un-deprecate, concentrate on Win32 support.
528         * modules/ftruncate (Status, Notice): Remove sections.
529         (Depends-on): Add largefile.
530         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
531         non-mingw platforms.
532         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
533         include <io.h>.
534         * modules/perror-tests (Depends-on): Add ftruncate.
535         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
536         'ftruncate' module.
537
538 2011-09-21  Bruno Haible  <bruno@clisp.org>
539
540         Add dependencies to new dirent related modules.
541         * modules/opendir (Depends-on): Add closedir.
542         * modules/getcwd (Depends-on): Add opendir, closedir.
543         * modules/dirent-safer-tests (Depends-on): Likewise.
544         * modules/fdopendir-tests (Depends-on): Likewise.
545         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
546         * modules/renameat-tests (Depends-on): Likewise.
547
548 2011-09-21  Bruno Haible  <bruno@clisp.org>
549
550         opendir: Avoid compilation error on mingw.
551         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
552         * modules/opendir (Depends-on): Add unistd.
553
554 2011-09-21  Bruno Haible  <bruno@clisp.org>
555
556         ftruncate tests: Avoid a test failure on mingw.
557         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
558
559 2011-09-21  Bruno Haible  <bruno@clisp.org>
560
561         select tests: Avoid test failures on OSF/1 5.1 and mingw.
562         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
563         native Windows.
564
565 2011-09-21  Bruno Haible  <bruno@clisp.org>
566
567         New module 'fdopen'.
568         * lib/stdio.in.h (fdopen): New declaration.
569         * lib/fdopen.c: New file.
570         * m4/fdopen.m4: New file.
571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
572         REPLACE_FDOPEN.
573         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
574         REPLACE_FDOPEN.
575         * modules/fdopen: New file.
576         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
577         * tests/test-stdio-c++.cc: Check signature of fdopen.
578         * doc/posix-functions/fdopen.texi: Mention the new module.
579
580 2011-09-21  Bruno Haible  <bruno@clisp.org>
581
582         unlockpt tests: Avoid test failure on NetBSD 5.1.
583         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
584         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
585
586 2011-09-21  Bruno Haible  <bruno@clisp.org>
587
588         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
589         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
590         * tests/test-getlogin_r.c (main): Likewise.
591
592 2011-09-20  Bruno Haible  <bruno@clisp.org>
593
594         time tests: Don't require pid_t.
595         * doc/posix-headers/time.texi: Revert last change.
596         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
597         * tests/test-time.c: Comment out the check for pid_t.
598
599 2011-09-20  Bruno Haible  <bruno@clisp.org>
600
601         fsync tests: Avoid a test failure on mingw.
602         * tests/test-fsync.c (main): Allow a failure with EIO.
603
604 2011-09-20  Bruno Haible  <bruno@clisp.org>
605
606         euidaccess: Update comments.
607         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
608
609 2011-09-20  Bruno Haible  <bruno@clisp.org>
610
611         Ensure EBADF returns for socket functions on mingw.
612         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
613         descriptor is invalid.
614         * lib/bind.c (rpl_bind): Likewise.
615         * lib/connect.c (rpl_connect): Likewise.
616         * lib/getpeername.c (rpl_getpeername): Likewise.
617         * lib/getsockname.c (rpl_getsockname): Likewise.
618         * lib/getsockopt.c (rpl_getsockopt): Likewise.
619         * lib/listen.c (rpl_listen): Likewise.
620         * lib/recv.c (rpl_recv): Likewise.
621         * lib/recvfrom.c (rpl_recvfrom): Likewise.
622         * lib/send.c (rpl_send): Likewise.
623         * lib/sendto.c (rpl_sendto): Likewise.
624         * lib/setsockopt.c (rpl_setsockopt): Likewise.
625         * lib/shutdown.c (rpl_shutdown): Likewise.
626
627 2011-09-20  Bruno Haible  <bruno@clisp.org>
628
629         select tests: EBADF tests.
630         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
631         test_bad_fd): New functions.
632         (test_function): Invoke also test_bad_fd.
633
634 2011-09-20  Bruno Haible  <bruno@clisp.org>
635
636         Tests for module 'posix_spawn_file_actions_addopen.
637         * modules/posix_spawn_file_actions_addopen-tests: New file.
638         * tests/test-posix_spawn_file_actions_addopen.c: New file.
639
640         Tests for module 'posix_spawn_file_actions_adddup2'.
641         * modules/posix_spawn_file_actions_adddup2-tests: New file.
642         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
643
644         Tests for module 'posix_spawn_file_actions_addclose'.
645         * modules/posix_spawn_file_actions_addclose-tests: New file.
646         * tests/test-posix_spawn_file_actions_addclose.c: New file.
647
648 2011-09-20  Bruno Haible  <bruno@clisp.org>
649
650         Tests for module 'unlockpt'.
651         * modules/unlockpt-tests: New file.
652         * tests/test-unlockpt.c: New file.
653         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
654
655         Tests for module 'grantpt'.
656         * modules/grantpt-tests: New file.
657         * tests/test-grantpt.c: New file.
658         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
659
660 2011-09-20  Bruno Haible  <bruno@clisp.org>
661
662         freopen tests: EBADF tests.
663         * tests/test-freopen.c: Include errno.h, unistd.h.
664         (main): Add tests for EBADF, commented out for the moment.
665
666         fclose tests: EBADF tests.
667         * tests/test-fclose.c (main): Add tests for EBADF.
668
669         fflush tests: EBADF tests.
670         * tests/test-fflush.c: Include errno.h, macros.h.
671         (main): Add tests for EBADF.
672
673         ftello tests: EBADF tests.
674         * tests/test-ftello4.sh: New file.
675         * tests/test-ftello4.c: New file.
676         * modules/ftello-tests (Files): Add them.
677         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
678
679         fseeko tests: EBADF tests.
680         * tests/test-fseeko4.sh: New file.
681         * tests/test-fseeko4.c: New file.
682         * modules/fseeko-tests (Files): Add them.
683         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
684
685         Tests for function fputc().
686         * modules/fputc-tests: New file.
687         * tests/test-fputc.c: New file.
688         * modules/stdio-tests (Depends-on): Add fputc-tests.
689
690         Tests for function fgetc().
691         * modules/fgetc-tests: New file.
692         * tests/test-fgetc.c: New file.
693         * modules/stdio-tests (Depends-on): Add fgetc-tests.
694
695         Tests for function fdopen().
696         * modules/fdopen-tests: New file.
697         * tests/test-fdopen.c: New file.
698         * modules/stdio-tests (Depends-on): Add fdopen-tests.
699
700         Tests for module 'vdprintf'.
701         * modules/vdprintf-tests: New file.
702         * tests/test-vdprintf.c: New file.
703
704         Tests for module 'dprintf'.
705         * modules/dprintf-tests: New file.
706         * tests/test-dprintf.c: New file.
707
708 2011-09-20  Bruno Haible  <bruno@clisp.org>
709
710         Tests for module 'ioctl'.
711         * modules/ioctl-tests: New file.
712         * tests/test-ioctl.c: New file.
713
714 2011-09-20  Bruno Haible  <bruno@clisp.org>
715
716         fcntl tests: EBADF tests.
717         * tests/test-fcntl.c (main): Add more tests for EBADF.
718
719 2011-09-20  Bruno Haible  <bruno@clisp.org>
720
721         utimensat tests: EBADF tests.
722         * tests/test-utimensat.c (main): Add tests for EBADF.
723
724         renameat tests: EBADF tests.
725         * tests/test-renameat.c (main): Add tests for EBADF.
726
727         mkfifoat tests: EBADF tests.
728         * tests/test-mkfifoat.c (main): Add tests for EBADF.
729
730         readlinkat tests: EBADF tests.
731         * tests/test-readlinkat.c (main): Add tests for EBADF.
732
733         symlinkat tests: EBADF tests.
734         * tests/test-symlinkat.c (main): Add tests for EBADF.
735
736         linkat tests: EBADF tests.
737         * tests/test-linkat.c (main): Add tests for EBADF.
738
739         Tests for module 'faccessat'.
740         * modules/faccessat-tests: New file.
741         * tests/test-faccessat.c: New file.
742
743         fdopendir tests: EBADF tests.
744         * tests/test-fdopendir.c (main): Add more tests for EBADF.
745
746         openat tests: EBADF tests.
747         * tests/test-fchownat.c (main): Add tests for EBADF.
748         * tests/test-fstatat.c (main): Likewise.
749         * tests/test-mkdirat.c (main): Likewise.
750         * tests/test-openat.c (main): Likewise.
751         * tests/test-unlinkat.c (main): Likewise.
752         * tests/test-fchmodat.c: New file.
753         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
754         (Makefile.am): Also run 'test-fchmodat'.
755
756 2011-09-20  Bruno Haible  <bruno@clisp.org>
757
758         utimens, futimens, fdutimensat tests: EBADF tests.
759         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
760
761         Tests for function fstat().
762         * modules/fstat-tests: New file.
763         * tests/test-fstat.c: New file.
764         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
765
766 2011-09-20  Bruno Haible  <bruno@clisp.org>
767
768         test-ttyname_r tests: EBADF tests.
769         * tests/test-ttyname_r.c (main): Add tests for EBADF.
770
771         Tests for module 'isatty'.
772         * modules/isatty-tests: New file.
773         * tests/test-isatty.c: New file.
774
775         Tests for module 'write'.
776         * modules/write-tests: New file.
777         * tests/test-write.c: New file.
778
779         Tests for module 'read'.
780         * modules/read-tests: New file.
781         * tests/test-read.c: New file.
782
783         pwrite tests: EBADF tests.
784         * tests/test-pwrite.c (main): Add tests for EBADF.
785
786         pread tests: EBADF tests.
787         * tests/test-pread.c (main): Add tests for EBADF.
788
789         lseek tests: EBADF tests.
790         * tests/test-lseek.c (main): Add more tests for EBADF.
791
792         Tests for module 'ftruncate'.
793         * modules/ftruncate-tests: New file.
794         * tests/test-ftruncate.sh: New file.
795         * tests/test-ftruncate.c: New file.
796
797         fsync tests: EBADF tests.
798         * tests/test-fsync.c (main): Add more tests for EBADF.
799
800         fdatasync tests: EBADF tests.
801         * tests/test-fdatasync.c (main): Add more tests for EBADF.
802
803         Tests for module 'fchown'.
804         * modules/fchown-tests: New file.
805         * tests/test-fchown.c: New file.
806
807         Tests for module 'fchmod'.
808         * modules/fchmod-tests: New file.
809         * tests/test-fchmod.c: New file.
810
811         fchdir tests: EBADF tests.
812         * tests/test-fchdir.c (main): Add more tests for EBADF.
813
814         dup2 tests: EBADF tests.
815         * tests/test-dup2.c (main): Add more tests for EBADF.
816
817         Tests for module 'dup'.
818         * modules/dup-tests: New file.
819         * tests/test-dup.c: New file.
820
821         Tests for module 'close'.
822         * modules/close-tests: New file.
823         * tests/test-close.c: New file.
824
825 2011-09-20  Bruno Haible  <bruno@clisp.org>
826
827         Tests for module 'shutdown'.
828         * modules/shutdown-tests: New file.
829         * tests/test-shutdown.c: New file.
830
831         Tests for module 'setsockopt'.
832         * modules/setsockopt-tests: New file.
833         * tests/test-setsockopt.c: New file.
834
835         Tests for module 'sendto'.
836         * modules/sendto-tests: New file.
837         * tests/test-sendto.c: New file.
838
839         Tests for module 'send'.
840         * modules/send-tests: New file.
841         * tests/test-send.c: New file.
842
843         Tests for module 'recvfrom'.
844         * modules/recvfrom-tests: New file.
845         * tests/test-recvfrom.c: New file.
846
847         Tests for module 'recv'.
848         * modules/recv-tests: New file.
849         * tests/test-recv.c: New file.
850
851         Tests for module 'listen'.
852         * modules/listen-tests: New file.
853         * tests/test-listen.c: New file.
854
855         Tests for module 'getsockopt'.
856         * modules/getsockopt-tests: New file.
857         * tests/test-getsockopt.c: New file.
858
859         Tests for module 'getsockname'.
860         * modules/getsockname-tests: New file.
861         * tests/test-getsockname.c: New file.
862
863         Tests for module 'getpeername'.
864         * modules/getpeername-tests: New file.
865         * tests/test-getpeername.c: New file.
866
867         Tests for module 'connect'.
868         * modules/connect-tests: New file.
869         * tests/test-connect.c: New file.
870
871         Tests for module 'bind'.
872         * modules/bind-tests: New file.
873         * tests/test-bind.c: New file.
874
875         accept4 tests: Fix for native Windows.
876         * tests/test-accept4.c: Include sockets.h.
877         (main): Invoke gl_sockets_startup.
878         * modules/accept4-tests (Depends-on): Add sockets.
879
880         accept tests: Fix for native Windows.
881         * tests/test-accept.c: Include sockets.h.
882         (main): Invoke gl_sockets_startup.
883         * modules/accept-tests (Depends-on): Add sockets.
884
885 2011-09-19  Bruno Haible  <bruno@clisp.org>
886
887         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
888         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
889         do...while(0).
890         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
891         Suggested by Paul Eggert.
892
893 2011-09-19  Bruno Haible  <bruno@clisp.org>
894
895         sched: Ensure pid_t is defined.
896         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
897         not define pid_t.
898         * lib/sched.in.h: Include <sys/types.h>.
899         * doc/posix-headers/sched.texi: Mention the pid_t problem.
900         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
901
902 2011-09-19  Bruno Haible  <bruno@clisp.org>
903
904         msvc-inval: Ensure the entire expansion is a single statement.
905         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
906         of braces.
907
908 2011-09-19  Jim Meyering  <meyering@redhat.com>
909
910         tests: use printf, not echo in init.sh's warn_ function
911         * tests/init.sh (warn_): Use printf, not echo.  The latter would
912         misbehave when given strings containing a backslash or starting
913         with e.g., -n.  James Youngman suggested setting IFS.
914
915 2011-09-19  Eric Blake  <eblake@redhat.com>
916
917         futimens: enhance test
918         * tests/test-futimens.h (test_futimens): Also check for EBADF on
919         closed non-negative fd.
920
921         date: accept 'hence' as opposite of 'ago'
922         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
923         * tests/test-parse-datetime.c (main): Enhance test.
924         Suggested by Jesse Wilson.
925
926 2011-09-19  Jim Meyering  <meyering@redhat.com>
927
928         getcwd: don't fail in a deep directory on a system without openat
929         Before this change, getcwd would fail when called from a directory
930         of depth PATH_MAX / 3 or greater.  That was due to the fact that
931         the non-openat implementation used "..", "../..", "../../..", etc.
932         to access ancestor directories.  With too many, that string would
933         be longer than PATH_MAX.
934         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
935         using gnulib's openat replacement.
936         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
937         we're using the replacement function.
938
939 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
940
941         maint.mk: avoid warnings from perl about missing files
942         * top/maint.mk (def_sym_regex): Ignore files listed in
943         $(gl_other_headers_) that do not exist, say because a project
944         does not use a corresponding module.
945
946 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
947
948         stat: use pathmax.h only if needed
949         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
950         This is better for Emacs, which does not have a mingw port and
951         therefore can avoid the pathmax module.
952
953         utimens: remove dependency on dup2
954         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
955         to work around the Linux kernel bug.
956         * modules/utimens (Depends-on): Remove dup2.
957
958 2011-09-18  Bruno Haible  <bruno@clisp.org>
959
960         inet_ntop, inet_pton: Look for it also in libresolv.
961         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
962         libnsl, search for it in libresolv.
963         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
964         Needed on Solaris 7.
965
966 2011-09-18  Bruno Haible  <bruno@clisp.org>
967
968         accept, accept4 tests: Avoid link error on Solaris.
969         * modules/accept-tests (Makefile.am): Link test-accept against
970         $(LIBSOCKET).
971         * modules/accept4-tests (Makefile.am): Link test-accept4 against
972         $(LIBSOCKET).
973
974         accept4: Avoid link error on Solaris.
975         * modules/accept4 (Link): New section.
976
977         socket functions: Avoid link errors on Solaris.
978         * modules/accept (Depends-on): Add socketlib.
979         (Link): New section.
980         * modules/bind (Depends-on): Add socketlib.
981         (Link): New section.
982         * modules/connect (Depends-on): Add socketlib.
983         (Link): New section.
984         * modules/getpeername (Depends-on): Add socketlib.
985         (Link): New section.
986         * modules/getsockname (Depends-on): Add socketlib.
987         (Link): New section.
988         * modules/getsockopt (Depends-on): Add socketlib.
989         (Link): New section.
990         * modules/listen (Depends-on): Add socketlib.
991         (Link): New section.
992         * modules/recv (Depends-on): Add socketlib.
993         (Link): New section.
994         * modules/recvfrom (Depends-on): Add socketlib.
995         (Link): New section.
996         * modules/send (Depends-on): Add socketlib.
997         (Link): New section.
998         * modules/sendto (Depends-on): Add socketlib.
999         (Link): New section.
1000         * modules/setsockopt (Depends-on): Add socketlib.
1001         (Link): New section.
1002         * modules/shutdown (Depends-on): Add socketlib.
1003         (Link): New section.
1004         * modules/socket (Depends-on): Add socketlib.
1005         (Link): New section.
1006
1007 2011-09-18  Bruno Haible  <bruno@clisp.org>
1008
1009         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
1010         * tests/test-ptsname.c (main): Terminate the test if it takes longer
1011         than 5 seconds.
1012         * modules/ptsname-tests (configure.ac): Test for alarm.
1013
1014 2011-09-18  Bruno Haible  <bruno@clisp.org>
1015
1016         posix_spawn_file_actions_add*: Fix module dependencies.
1017         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
1018         posix_spawn_file_actions_init.
1019         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
1020         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
1021
1022 2011-09-18  Bruno Haible  <bruno@clisp.org>
1023
1024         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
1025         * tests/test-rename.h (test_rename): Allow error code EEXIST.
1026         * tests/test-renameat.c (main): Likewise.
1027
1028 2011-09-18  Bruno Haible  <bruno@clisp.org>
1029
1030         Tests for module 'accept4'.
1031         * modules/accept4-tests: New file.
1032         * tests/test-accept4.c: New file.
1033
1034 2011-09-18  Bruno Haible  <bruno@clisp.org>
1035
1036         Tests for module 'accept'.
1037         * modules/accept-tests: New file.
1038         * tests/test-accept.c: New file.
1039
1040 2011-09-18  Bruno Haible  <bruno@clisp.org>
1041
1042         dup2: Support for MSVC.
1043         * lib/dup2.c: Include msvc-inval.h.
1044         (rpl_dup2): Handle invalid parameter notifications during dup2 and
1045         _get_osfhandle calls.
1046         * modules/dup2 (Depends-on): Add msvc-inval.
1047         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
1048
1049         New module 'msvc-inval'.
1050         * lib/msvc-inval.h: New file.
1051         * lib/msvc-inval.c: New file.
1052         * m4/msvc-inval.m4: New file.
1053         * modules/msvc-inval: New file.
1054
1055 2011-09-17  Bruno Haible  <bruno@clisp.org>
1056
1057         Tests for module 'pclose'.
1058         * modules/pclose-tests: New file.
1059
1060         New module 'pclose'.
1061         * lib/stdio.in.h (pclose): New declaration.
1062         * lib/pclose.c: New file.
1063         * m4/pclose.m4: New file.
1064         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
1065         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
1066         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
1067         * modules/pclose: New file.
1068         * modules/popen-tests (Depends-on): Add pclose.
1069         * modules/popen-safer-tests (Depends-on): Likewise.
1070         * doc/posix-functions/pclose.texi: Mention the new module.
1071
1072 2011-09-17  Bruno Haible  <bruno@clisp.org>
1073
1074         popen: Support for MSVC.
1075         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
1076         * lib/popen.c (popen): Provide alternate definition for native Windows.
1077         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
1078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
1079         * modules/popen (Depends-on, configure.ac): Update condition.
1080         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
1081         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
1082         fixed.
1083
1084 2011-09-17  Bruno Haible  <bruno@clisp.org>
1085
1086         isnanl, isnand, isnanf: Work around MSVC bug.
1087         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
1088
1089 2011-09-17  Bruno Haible  <bruno@clisp.org>
1090
1091         sys_socket tests: Fix recent mistake.
1092         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
1093
1094 2011-09-17  Bruno Haible  <bruno@clisp.org>
1095
1096         putenv: Support for MSVC.
1097         * modules/putenv (Depends-on): Add environ.
1098         * lib/putenv.c (environ): Disable declaration.
1099         * lib/unistd.in.h: Update comment.
1100
1101 2011-09-17  Bruno Haible  <bruno@clisp.org>
1102
1103         math: Avoid macro redefinition warnings on MSVC.
1104         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
1105         Undefine before redefining.
1106
1107 2011-09-17  Bruno Haible  <bruno@clisp.org>
1108
1109         doc: Mention functions which are declared as macros.
1110         * doc/posix-functions/*[fl].texi: Mention that some functions are
1111         defined as macros with arguments only.
1112
1113 2011-09-17  Bruno Haible  <bruno@clisp.org>
1114
1115         Add dependencies to new dirent related modules.
1116         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
1117         * modules/fts (Depends-on): Likewise.
1118         * modules/glob (Depends-on): Likewise.
1119         * modules/savedir (Depends-on): Likewise.
1120         * modules/scandir (Depends-on): Likewise.
1121         * modules/dirent-safer (Depends-on): Add opendir, closedir.
1122         * modules/fdopendir (Depends-on): Add opendir.
1123
1124 2011-09-17  Bruno Haible  <bruno@clisp.org>
1125
1126         inet_pton: Support for MSVC on Windows Vista or newer.
1127         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
1128         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
1129         HAVE_DECL_INET_PTON is defined.
1130         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1131         On platforms with <winsock2.h>, test whether inet_pton is declared in
1132         <ws2tcpip.h>. If so, arrange to replace it.
1133         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1134         REPLACE_INET_PTON.
1135         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
1136         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
1137         (Depends-on, configure.ac): Update condition.
1138         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
1139
1140 2011-09-17  Bruno Haible  <bruno@clisp.org>
1141
1142         inet_ntop: Support for MSVC on Windows Vista or newer.
1143         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
1144         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
1145         HAVE_DECL_INET_NTOP is defined.
1146         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1147         On platforms with <winsock2.h>, test whether inet_ntop is declared in
1148         <ws2tcpip.h>. If so, arrange to replace it.
1149         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1150         REPLACE_INET_NTOP.
1151         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
1152         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
1153         (Depends-on, configure.ac): Update condition.
1154         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
1155
1156 2011-09-16  Eric Blake  <eblake@redhat.com>
1157
1158         test-fsync: yet another enhancement
1159         * tests/test-fsync.c (main): Also test behavior on read-only text
1160         file.
1161
1162 2011-09-16  Bruno Haible  <bruno@clisp.org>
1163
1164         Enhance fsync, fdatasync tests.
1165         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
1166         * tests/test-fdatasync.c (main): Likewise.
1167
1168 2011-09-16  Bruno Haible  <bruno@clisp.org>
1169
1170         Support for MSVC compiler: Ensure mode_t gets defined.
1171         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
1172         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1173         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1174         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
1175         * tests/test-fcntl-h.c: Check that mode_t is defined.
1176         * tests/test-sys_stat.c: Likewise.
1177         * tests/test-sys_types.c: Likewise.
1178         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
1179         * doc/posix-headers/sys_stat.texi: Likewise.
1180         * doc/posix-headers/sys_types.texi: Likewise.
1181
1182 2011-09-16  Bruno Haible  <bruno@clisp.org>
1183
1184         sys_stat: Support for MSVC.
1185         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
1186         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
1187         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
1188         MSVC.
1189
1190 2011-09-16  Bruno Haible  <bruno@clisp.org>
1191
1192         Support for MSVC compiler: Ensure off_t gets defined.
1193         * lib/unistd.in.h: Include <sys/types.h>.
1194         * tests/test-fcntl-h.c: Check that off_t is defined.
1195         * tests/test-sys_stat.c: Likewise.
1196         * tests/test-sys_types.c: Likewise.
1197
1198 2011-09-16  Eric Blake  <eblake@redhat.com>
1199
1200         fdatasync: port to Solaris
1201         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
1202         * modules/fdatasync (Link): Document it.
1203         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
1204
1205         fdatasync: port to MacOS X 10.7
1206         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
1207         declared.
1208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
1209         * modules/unistd (Makefile.am): Substitute it.
1210         * lib/unistd.in.h (fdatasync): Declare on MacOS.
1211         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
1212
1213         fdatasync: minor improvements
1214         * modules/fdatasync (Depends-on): Add condition for fsync.
1215         * lib/fdatasync.c (fdatasync): Add comment.
1216         * tests/test-unistd-c++.cc: Test fdatasync.
1217
1218         unistd: update refs to newer POSIX
1219         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
1220         Suggested by Bruno Haible.
1221
1222         fdatasync: new module
1223         * modules/fsync (Description): Document difference to fdatasync.
1224         * modules/fdatasync: New module.
1225         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
1226         * lib/fdatasync.c (fdatasync): Likewise.
1227         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
1228         defaults.
1229         * modules/unistd (Makefile.am): Set witnesses.
1230         * lib/unistd.in.h (fdatasync): Declare.
1231         * MODULES.html.sh: Document it.
1232         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
1233         * modules/fdatasync-tests: New test.
1234         * tests/test-fdatasync.c: Likewise.
1235
1236 2011-09-16  Eric Blake  <eblake@redhat.com>
1237
1238         test-fsync: enhance tests
1239         * modules/fsync-tests (Depends-on): Add errno, for mingw.
1240         * tests/test-fsync.c (main): Enhance test.
1241
1242 2011-09-15  Bruno Haible  <bruno@clisp.org>
1243
1244         Support for MSVC compiler: Ensure ssize_t gets defined.
1245         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
1246         * doc/posix-headers/stdio.texi: Likewise.
1247         * modules/stdio (Depends-on): Add ssize_t.
1248         * modules/sys_socket (Depends-on): Likewise.
1249         * modules/sys_types (Depends-on): Likewise.
1250         * modules/sys_uio (Depends-on): Likewise.
1251         * modules/unistd (Depends-on): Likewise.
1252         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
1253         * tests/test-sys_types.c: Check that ssize_t is defined.
1254
1255 2011-09-14  Bruno Haible  <bruno@clisp.org>
1256
1257         Avoid using #, the m4 comment starter character, near brackets.
1258         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1259         delimiter character in sed expressions.
1260         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1261         Suggested by Eric Blake.
1262
1263         Properly quote AC_CHECK_DECLS' 4th argument.
1264         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
1265         argument.
1266         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1267         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1268         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1269         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1270         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1271         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
1272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
1273         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
1274         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
1275         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
1276         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
1277         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1278         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1279         * m4/isinf.m4 (gl_ISINF): Likewise.
1280         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1281         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1282         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1283         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1284         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1285         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1286         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1287         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1288         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
1289         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1290         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1291         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
1293         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1295         Reported by Eric Blake.
1296
1297         Properly quote AC_CHECK_DECL's 4th argument.
1298         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
1299         argument.
1300         * m4/argp.m4 (gl_ARGP): Likewise.
1301         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1302         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1303         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1304         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1305         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
1306         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1307         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1308         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1309         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1310         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1311         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1312         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1313         Reported by Eric Blake.
1314
1315 2011-09-14  Eric Blake  <eblake@redhat.com>
1316
1317         opendir: avoid compile warning
1318         * lib/opendir.c (includes): Always include errno.h.
1319         Reported by Tatsuro MATSUOKA.
1320
1321 2011-09-14  Jim Meyering  <meyering@redhat.com>
1322
1323         maint.mk: sc_tight_scope: propagate failure from sub-make
1324         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
1325         Reported by Martin von Gagern.
1326
1327 2011-09-13  Bruno Haible  <bruno@clisp.org>
1328
1329         tempname: Support for MSVC.
1330         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
1331         MSVC.
1332         * modules/tempname (Depends-on): Add fcntl-h.
1333
1334 2011-09-13  Bruno Haible  <bruno@clisp.org>
1335
1336         sys_time: Support for MSVC.
1337         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
1338         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
1339         include <winsock2.h>.
1340         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
1341         function declarations that collide with POSIX.
1342         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
1343         (Makefile.am): Substitute HAVE_WINSOCK2_H.
1344
1345 2011-09-13  Bruno Haible  <bruno@clisp.org>
1346
1347         stat: Support for MSVC.
1348         * lib/stat.c: Include pathmax.h.
1349         * modules/stat (Depends-on): Add pathmax.
1350
1351         pathmax: Support for native Windows.
1352         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
1353
1354 2011-09-12  Bruno Haible  <bruno@clisp.org>
1355
1356         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
1357         * lib/dirent.in.h (struct dirent): New type.
1358         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
1359         DT_WHT): New macros.
1360         (DIR): New type.
1361         (opendir, closedir): Declare only if the module 'opendir' is enabled.
1362         (readdir, rewinddir): New declarations.
1363         * lib/dirent-private.h: New file.
1364         * lib/opendir.c: New file.
1365         * lib/readdir.c: New file.
1366         * lib/rewinddir.c: New file.
1367         * lib/closedir.c: New file.
1368         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
1369         * m4/opendir.m4: New file.
1370         * m4/readdir.m4: New file.
1371         * m4/rewinddir.m4: New file.
1372         * m4/closedir.m4: New file.
1373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
1374         REPLACE_CLOSEDIR here.
1375         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
1376         readdir, rewinddir are declared.
1377         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
1378         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
1379         HAVE_REWINDDIR, HAVE_CLOSEDIR.
1380         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
1381         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
1382         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
1383         * modules/opendir: New file.
1384         * modules/readdir: New file.
1385         * modules/rewinddir: New file.
1386         * modules/closedir: New file.
1387         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
1388         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
1389         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
1390         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
1391         * NEWS: Mention the 'fchdir' change.
1392
1393 2011-09-11  Bruno Haible  <bruno@clisp.org>
1394
1395         asm-underscore.m4: Support for MSVC.
1396         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
1397         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
1398
1399 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
1400
1401         Doc about crypt functions.
1402         * doc/posix-functions/crypt.texi: Expand range of glibc versions
1403         needing for _GNU_SOURCE to get crypt.
1404         * doc/posix-functions/encrypt.texi: Likewise.
1405         * doc/posix-functions/setkey.texi: Likewise.
1406
1407 2011-09-11  Bruno Haible  <bruno@clisp.org>
1408
1409         doc: Update regarding MSVC 9.
1410         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
1411         tested".
1412         * doc/posix-functions/*.texi: Update with info about MSVC 9.
1413         * doc/posix-headers/*.texi: Likewise.
1414         * doc/pastposix-functions/*.texi: Likewise.
1415         * doc/glibc-functions/*.texi: Likewise.
1416         * doc/glibc-headers/*.texi: Likewise.
1417
1418 2011-09-11  Bruno Haible  <bruno@clisp.org>
1419
1420         unistd et al.: Don't assume <unistd.h> exists.
1421         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
1422         does not exist.
1423         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
1424         exist. But include <stdlib.h>.
1425         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
1426         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
1427         symlink() does not exist.
1428         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
1429         include <io.h> instead.
1430         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
1431         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
1432         include <direct.h> instead.
1433         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1435         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
1436         <io.h> instead.
1437         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
1438         correctly if the system does not have hard links.
1439         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
1440         <direct.h> instead.
1441         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
1442         it when looking for function declarations.
1443         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
1444         <direct.h> and <io.h> instead.
1445         * doc/posix-headers/unistd.texi: More details about MSVC problem.
1446
1447 2011-09-11  Bruno Haible  <bruno@clisp.org>
1448
1449         strcase: Support for MSVC.
1450         * modules/strcase (Status, Notice): Remove obsoletion mark.
1451         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
1452         * doc/posix-functions/strncasecmp.texi: Likewise.
1453
1454         strings: Don't assume <strings.h> exists.
1455         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
1456         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
1457         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
1458         * doc/posix-headers/strings.texi: Mention the MSVC problem.
1459
1460 2011-09-11  Bruno Haible  <bruno@clisp.org>
1461
1462         dirent: Don't assume <dirent.h> exists.
1463         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
1464         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
1465         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
1466         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
1467
1468 2011-09-11  Bruno Haible  <bruno@clisp.org>
1469
1470         Fix wint_t on MSVC.
1471         * lib/wchar.in.h (wint_t): On MSVC, override it.
1472         * lib/wctype.in.h (wint_t): Likewise.
1473         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
1474         MSVC.
1475         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
1476         * doc/posix-headers/wctype.texi: Likewise.
1477
1478 2011-09-11  Bruno Haible  <bruno@clisp.org>
1479
1480         sys_types: Fix typo.
1481         * lib/sys_types.in.h: Fix typo in comment.
1482         Reported by Paul Eggert.
1483
1484         Support for MSVC compiler: Ensure size_t gets defined.
1485         * modules/strings (Depends-on): Add 'sys_types'.
1486         * modules/sys_uio (Depends-on): Likewise.
1487         * lib/sys_uio.in.h: Update comment.
1488
1489         C++ tests for module 'sys_types'.
1490         * modules/sys_types-c++-tests: New file.
1491         * tests/test-sys_types-c++.cc: New file.
1492
1493         Tests for module 'sys_types'.
1494         * modules/sys_types-tests: New file.
1495         * tests/test-sys_types.c: New file.
1496
1497         New module 'sys_types'.
1498         * lib/sys_types.in.h: New file.
1499         * m4/sys_types_h.m4: New file.
1500         * modules/sys_types: New file.
1501         * doc/posix-headers/sys_types.texi: Mention the new module and the
1502         size_t problem on MSVC 9.
1503
1504 2011-09-11  Bruno Haible  <bruno@clisp.org>
1505
1506         Support for MSVC compiler: Avoid division by a literal 0.
1507         * lib/math.in.h (NAN): Define through a function call also on MSVC.
1508         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
1509         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
1510         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
1511         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1512         * tests/infinity.h: New file.
1513         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1514         on MSVC.
1515         * tests/test-ceilf1.c: Include infinity.h.
1516         (main): Use Infinityf.
1517         * tests/test-ceil1.c: Include infinity.h.
1518         (main): Use Infinityd.
1519         * tests/test-ceill.c: Include infinity.h.
1520         (main): Use Infinityl.
1521         * tests/test-dprintf-posix.c: Include infinity.h.
1522         (test_function): Use Infinityd.
1523         * tests/test-floorf1.c: Include infinity.h.
1524         (main): Use Infinityf.
1525         * tests/test-floor1.c: Include infinity.h.
1526         (main): Use Infinityd.
1527         * tests/test-floorl.c: Include infinity.h.
1528         (main): Use Infinityl.
1529         * tests/test-fprintf-posix.c: Include infinity.h.
1530         (test_function): Use Infinityd.
1531         * tests/test-frexp.c: Include infinity.h.
1532         (main): Use Infinityd.
1533         * tests/test-frexpl.c: Include infinity.h.
1534         (main): Use Infinityl.
1535         * tests/test-isfinite.c: Include infinity.h.
1536         (test_isfinitef): Use Infinityf.
1537         (test_isfinited): Use Infinityd.
1538         (test_isfinitel): Use Infinityl.
1539         * tests/test-isinf.c: Include infinity.h.
1540         (test_isinff): Use Infinityf.
1541         (test_isinfd): Use Infinityd.
1542         (test_isinfl): Use Infinityl.
1543         * tests/test-isnan.c: Include infinity.h.
1544         (test_float): Use Infinityf.
1545         (test_double): Use Infinityd.
1546         (test_long_double): Use Infinityl.
1547         * tests/test-isnanf.h: Include infinity.h.
1548         (main): Use Infinityf.
1549         * tests/test-isnand.h: Include infinity.h.
1550         (main): Use Infinityd.
1551         * tests/test-isnanl.h: Include infinity.h.
1552         (main): Use Infinityl.
1553         * tests/test-ldexpl.c: Include infinity.h.
1554         (main): Use Infinityl.
1555         * tests/test-printf-posix.h: Include infinity.h.
1556         (test_function): Use Infinityd.
1557         * tests/test-roundf1.c: Include infinity.h.
1558         (main): Use Infinityf.
1559         * tests/test-round1.c: Include infinity.h.
1560         (main): Use Infinityd.
1561         * tests/test-roundl.c: Include infinity.h.
1562         (main): Use Infinityl.
1563         * tests/test-signbit.c: Include infinity.h.
1564         (test_signbitf): Use Infinityf.
1565         (test_signbitd): Use Infinityd.
1566         (test_signbitl): Use Infinityl.
1567         * tests/test-snprintf-posix.h: Include infinity.h.
1568         (test_function): Use Infinityd, Infinityl.
1569         * tests/test-sprintf-posix.h: Include infinity.h.
1570         (test_function): Use Infinityd, Infinityl.
1571         * tests/test-truncf1.c: Include infinity.h.
1572         (main): Use Infinityf.
1573         * tests/test-trunc1.c: Include infinity.h.
1574         (main): Use Infinityd.
1575         * tests/test-truncl.c: Include infinity.h.
1576         (main): Use Infinityl.
1577         * tests/test-vasnprintf-posix.c: Include infinity.h.
1578         (test_function): Use Infinityd, Infinityl.
1579         * tests/test-vasprintf-posix.c: Include infinity.h.
1580         (test_function): Use Infinityd, Infinityl.
1581         * modules/ceilf-tests (Files): Add tests/infinity.h.
1582         * modules/ceil-tests (Files): Likewise.
1583         * modules/ceill-tests (Files): Likewise.
1584         * modules/dprintf-posix-tests (Files): Likewise.
1585         * modules/floorf-tests (Files): Likewise.
1586         * modules/floor-tests (Files): Likewise.
1587         * modules/floorl-tests (Files): Likewise.
1588         * modules/fprintf-posix-tests (Files): Likewise.
1589         * modules/frexp-tests (Files): Likewise.
1590         * modules/frexp-nolibm-tests (Files): Likewise.
1591         * modules/frexpl-tests (Files): Likewise.
1592         * modules/frexpl-nolibm-tests (Files): Likewise.
1593         * modules/isfinite-tests (Files): Likewise.
1594         * modules/isinf-tests (Files): Likewise.
1595         * modules/isnan-tests (Files): Likewise.
1596         * modules/isnanf-tests (Files): Likewise.
1597         * modules/isnanf-nolibm-tests (Files): Likewise.
1598         * modules/isnand-tests (Files): Likewise.
1599         * modules/isnand-nolibm-tests (Files): Likewise.
1600         * modules/isnanl-tests (Files): Likewise.
1601         * modules/isnanl-nolibm-tests (Files): Likewise.
1602         * modules/ldexpl-tests (Files): Likewise.
1603         * modules/printf-posix-tests (Files): Likewise.
1604         * modules/roundf-tests (Files): Likewise.
1605         * modules/round-tests (Files): Likewise.
1606         * modules/roundl-tests (Files): Likewise.
1607         * modules/signbit-tests (Files): Likewise.
1608         * modules/snprintf-posix-tests (Files): Likewise.
1609         * modules/sprintf-posix-tests (Files): Likewise.
1610         * modules/truncf-tests (Files): Likewise.
1611         * modules/trunc-tests (Files): Likewise.
1612         * modules/truncl-tests (Files): Likewise.
1613         * modules/vasnprintf-posix-tests (Files): Likewise.
1614         * modules/vasprintf-posix-tests (Files): Likewise.
1615         * modules/vdprintf-posix-tests (Files): Likewise.
1616         * modules/vfprintf-posix-tests (Files): Likewise.
1617         * modules/vprintf-posix-tests (Files): Likewise.
1618         * modules/vsnprintf-posix-tests (Files): Likewise.
1619         * modules/vsprintf-posix-tests (Files): Likewise.
1620         * modules/xprintf-posix-tests (Files): Likewise.
1621
1622 2011-09-11  Bruno Haible  <bruno@clisp.org>
1623
1624         Ensure pid_t gets defined.
1625         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1626         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1627         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1628         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1629         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1630         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1631         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1632         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1633         * tests/test-fcntl-h.c: Check that pid_t is defined.
1634         * tests/test-sched.c: Likewise.
1635         * tests/test-termios.c: Likewise.
1636         * tests/test-time.c: Likewise.
1637         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1638         * doc/posix-headers/signal.texi: Likewise.
1639         * doc/posix-headers/sys_types.texi: Likewise.
1640         * doc/posix-headers/time.texi: Likewise.
1641
1642 2011-09-11  Bruno Haible  <bruno@clisp.org>
1643
1644         acl: Fix compilation on Solaris 10 (older version).
1645         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1646         of ACE_EVERYONE.
1647         * lib/set-mode-acl.c (qset_acl): Likewise.
1648         Reported by Christian Jullien <eligis@orange.fr>.
1649
1650 2011-09-10  Bruno Haible  <bruno@clisp.org>
1651
1652         iconv, unsetenv: Add support for MSVC compiler.
1653         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1654         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1655
1656 2011-09-10  Bruno Haible  <bruno@clisp.org>
1657
1658         *printf: Add support for MSVC compiler.
1659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1660         handles the exception caused by the %n directive. When cross-compiling,
1661         guess no on native Windows.
1662         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1663         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1664         emulate it through vsnprintf.
1665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1666         * doc/posix-functions/dprintf.texi: Update documentation regarding
1667         MSVC 9.
1668         * doc/posix-functions/fprintf.texi: Likewise.
1669         * doc/posix-functions/printf.texi: Likewise.
1670         * doc/posix-functions/snprintf.texi: Likewise.
1671         * doc/posix-functions/sprintf.texi: Likewise.
1672         * doc/posix-functions/swprintf.texi: Likewise.
1673         * doc/posix-functions/vdprintf.texi: Likewise.
1674         * doc/posix-functions/vfprintf.texi: Likewise.
1675         * doc/posix-functions/vprintf.texi: Likewise.
1676         * doc/posix-functions/vsnprintf.texi: Likewise.
1677         * doc/posix-functions/vsprintf.texi: Likewise.
1678         * doc/glibc-functions/asprintf.texi: Likewise.
1679         * doc/glibc-functions/obstack_printf.texi: Likewise.
1680         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1681         * doc/glibc-functions/vasprintf.texi: Likewise.
1682
1683 2011-09-10  Bruno Haible  <bruno@clisp.org>
1684
1685         nocrash: Add support for native Windows.
1686         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1687
1688 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1689             Bruno Haible  <bruno@clisp.org>
1690
1691         absolute-header, include-next: Add support for MSVC compiler.
1692         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1693         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1694         directory separator in #line directives.
1695         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1696         recognize also backslash as directory separator in #line directives.
1697
1698 2011-09-08  Jim Meyering  <meyering@redhat.com>
1699
1700         maint.mk: mark the post-release commit log with "maint: " prefix
1701         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1702         one-line commit-log summary.
1703
1704 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1705             Bruno Haible  <bruno@clisp.org>
1706
1707         Doc about crypt functions.
1708         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1709         systems.
1710         * doc/posix-functions/encrypt.texi: Likewise.
1711         * doc/posix-functions/setkey.texi: Likewise.
1712
1713 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1714
1715         * lib/gc.h: Fix copyright header.
1716
1717 2011-09-07  Bruno Haible  <bruno@clisp.org>
1718
1719         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1720         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1721         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1722
1723 2011-09-07  Bruno Haible  <bruno@clisp.org>
1724
1725         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1726         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1727         * lib/freopen.c: Likewise.
1728         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1729         * lib/lstat.c: Likewise.
1730         * lib/stat.c: Likewise.
1731         * lib/open.c: Use different syntax for include of <fcntl.h>.
1732         * lib/openat.c: Include fcntl.h again, explicitly.
1733
1734 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1735
1736         parse-datetime: document the newly accepted format
1737         * doc/parse-datetime.texi (Combined date and time of day items):
1738         New section.
1739
1740 2011-09-06  Bruno Haible  <bruno@clisp.org>
1741
1742         acl: Fix a test failure on newer Solaris 10 with ZFS.
1743         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1744         ENOSYS as no ACL.
1745         Reported by Jim Meyering.
1746
1747 2011-09-06  Bruno Haible  <bruno@clisp.org>
1748
1749         acl: Update for AIX >= 5.3 with NFS.
1750         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1751         ENOSYS as no ACL.
1752
1753         acl: Fix a test failure on AIX >= 5.3 with NFS.
1754         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1755         as no ACL.
1756
1757 2011-09-06  Bruno Haible  <bruno@clisp.org>
1758
1759         acl: Fix a test failure on IRIX 6.5 with NFS.
1760         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1761         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1762         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1763         * lib/copy-acl.c (qcopy_acl): Likewise.
1764
1765 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1766
1767         openat: port to AIX 7.1 with large files
1768         AIX 7.1 does a "#define openat open64at" if large files are in use,
1769         so we can't simply #undef openat.  Use the orig_openat trick (similar
1770         to orig_open in lib/open.c) to work around the problem.  Problem
1771         reported by Kevin Brott for GNU tar, in the thread containing
1772         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1773         * lib/openat.c (__need_system_fcntl_h): Define first.
1774         Include <fcntl.h> and <sys/types.h> before undefining.
1775         (orig_openat) [HAVE_OPENAT]: New inline function.
1776         (openat) [HAVE_OPENAT]: Do not undef.
1777         (rpl_openat): Use orig_openat, not openat.
1778
1779 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1780             Bruno Haible  <bruno@clisp.org>
1781
1782         acl: Avoid errors on NonStop Kernel.
1783         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1784         ENOTSUP errors.
1785
1786 2011-09-05  Bruno Haible  <bruno@clisp.org>
1787
1788         acl: Clean up Solaris code.
1789         * lib/acl-internal.h: Remove no-op #if.
1790         * lib/file-has-acl.c: Likewise.
1791         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1792         * lib/copy-acl.c (qcopy_acl): Likewise.
1793
1794 2011-09-05  Bruno Haible  <bruno@clisp.org>
1795
1796         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1797         binaries built on the original Solaris 10.
1798         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1799         trivial.
1800
1801 2011-09-05  Bruno Haible  <bruno@clisp.org>
1802
1803         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1804         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1805         10.
1806         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1807         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1808         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1809         instead of acl_get, facl_get, acl_set, facl_set.
1810
1811 2011-09-05  Bruno Haible  <bruno@clisp.org>
1812
1813         copy-file: Try unit tests on more file systems.
1814         * tests/test-copy-file-1.sh: New file.
1815         * tests/test-copy-file-2.sh: New file.
1816         * modules/copy-file-tests (Files): Add them.
1817         (Makefile.am): Add them to TESTS.
1818
1819         acl: Try unit tests on more file systems.
1820         * tests/test-file-has-acl-1.sh: New file.
1821         * tests/test-file-has-acl-2.sh: New file.
1822         * tests/test-set-mode-acl-1.sh: New file.
1823         * tests/test-set-mode-acl-2.sh: New file.
1824         * tests/test-copy-acl-1.sh: New file.
1825         * tests/test-copy-acl-2.sh: New file.
1826         * modules/acl-tests (Files): Add them.
1827         (Makefile.am): Add them to TESTS.
1828
1829 2011-09-04  Bruno Haible  <bruno@clisp.org>
1830
1831         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1832         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1833         10.
1834         (OLD_ALLOW, OLD_DENY): New macros.
1835         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1836         ACE_ACCESS_ALLOWED_ACE_TYPE.
1837         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1838         ACE_ACCESS_DENIED_ACE_TYPE.
1839         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1840         (NEW_ACE_EXECUTE): Fix value.
1841         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1842         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1843         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1844         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1845         NEW_ACE_SYNCHRONIZE): New macros.
1846         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1847         instead of acl_fromtext, acl_set, facl_set.
1848         Fixes a coreutils/tests/cp/perm failure.
1849
1850 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1851
1852         openat: test for fstatat (..., 0) bug
1853         Further testing with tar suggests that fstatat (..., 0)
1854         does not work in general, on AIX 7.1; see
1855         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1856         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1857         replacement fstatat (which is what older AIX releases were using
1858         anyway).
1859         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1860         use is now changed to orig_fstatat.  This was probably the right
1861         thing to do anyway.
1862         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1863         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1864         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1865         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1866         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1867         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1868         if the bug is found.
1869
1870         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1871         This tests for another fstatat bug on AIX 7.1:
1872         fstatat (AT_FDCWD, ..., 0) does not work.  See
1873         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1874         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1875         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1876         (rpl_fstatat): Adjust so that it works around either (or both)
1877         bugs if present.
1878         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1879
1880 2011-09-03  Karl Berry  <karl@gnu.org>
1881
1882         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1883         in index entries.
1884
1885 2011-09-02  Bruno Haible  <bruno@clisp.org>
1886
1887         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1888         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1889         values of AR, ARFLAGS, RANLIB.
1890         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1891
1892 2011-09-02  Bruno Haible  <bruno@clisp.org>
1893
1894         Find 'ar' program that fits with --host argument.
1895         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1896
1897 2011-09-02  Bruno Haible  <bruno@clisp.org>
1898
1899         tests: init.sh: Support any non-GNU diff.
1900         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1901         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1902         Solaris 8.
1903
1904 2011-09-02  Bruno Haible  <bruno@clisp.org>
1905
1906         tests: init.sh: work also with any non-GNU diff that supports -u
1907         * tests/init.sh: Relax check for diff -u support.
1908         Rather than checking for GNU diff via --version, simply check
1909         for support for -u itself.  Useful at least on OpenBSD 4.9,
1910         AIX 7.1, IRIX 6.5, and Solaris 10.
1911
1912 2011-09-01  Bruno Haible  <bruno@clisp.org>
1913
1914         strtoimax, strtoumax: Document problem on HP-UX 11.
1915         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1916         * doc/posix-functions/strtoumax.texi: Likewise.
1917
1918 2011-09-01  Bruno Haible  <bruno@clisp.org>
1919
1920         strtoumax: Avoid link error on OSF/1 with DTK cc.
1921         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1922         defined as a function.
1923         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1924         strtoumax is defined, not whether it is declared.
1925
1926 2011-09-01  Bruno Haible  <bruno@clisp.org>
1927
1928         strtoimax: Avoid link error on OSF/1 with DTK cc.
1929         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1930         defined as a function.
1931         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1932         strtoimax is defined, not whether it is declared.
1933
1934 2011-09-01  Bruno Haible  <bruno@clisp.org>
1935
1936         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1937         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1938         as a function.
1939         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1940         whether it is declared.
1941
1942 2011-09-01  Bruno Haible  <bruno@clisp.org>
1943
1944         imaxabs: Avoid link error on OSF/1 with DTK cc.
1945         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1946         as a function.
1947         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1948         whether it is declared.
1949
1950 2011-09-01  Bruno Haible  <bruno@clisp.org>
1951
1952         Tests for module 'strtoumax'.
1953         * modules/strtoumax-tests: New file.
1954         * tests/test-strtoumax.c: New file.
1955
1956         Tests for module 'strtoimax'.
1957         * modules/strtoimax-tests: New file.
1958         * tests/test-strtoimax.c: New file.
1959
1960         Tests for module 'imaxdiv'.
1961         * modules/imaxdiv-tests: New file.
1962         * tests/test-imaxdiv.c: New file.
1963
1964         Tests for module 'imaxabs'.
1965         * modules/imaxabs-tests: New file.
1966         * tests/test-imaxabs.c: New file.
1967
1968 2011-09-01  Bruno Haible  <bruno@clisp.org>
1969
1970         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1971         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1972         pthread_create.
1973
1974 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1975
1976         openat: work around AIX 7.1 fstatat issue
1977         This should fix the problem that was not properly fixed
1978         in the previous change, dated 2011-08-30.
1979         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1980         __need_system_stat_h defined.
1981         (orig_fstatat) [HAVE_FSTATAT]: New function.
1982         (rpl_fstatat): Go back to the old way of doing things,
1983         except call orig_fstatat instead of fstatat.
1984         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1985         Remove unnecessary check whether fstatat fills in st_size etc.
1986
1987 2011-09-01  Bruno Haible  <bruno@clisp.org>
1988
1989         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1990         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1991         just include the system's header.
1992
1993 2011-08-31  Jim Meyering  <meyering@redhat.com>
1994
1995         tests: avoid spurious assertion failure in test-float.c on ppc64
1996         * tests/test-float.c (test_long_double): Comment out an assertion,
1997         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1998         with gcc-4.4.4.
1999
2000         maint: indent with spaces, not TABs
2001         I need to get in the habit of running gnulib's "make check".
2002         Both of these would have been caught.
2003         * m4/largefile.m4: Indent with spaces, not TABs.
2004         * lib/parse-datetime.y (iso_8601_time): Likewise.
2005         Spotted by Pádraig Brady.
2006
2007         test-parse-datetime.c: accommodate a relatively strict gcc warning
2008         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
2009         to avoid a warning from gcc's -Werror=missing-declarations.
2010         Insert a few spaces-before-funcall-parenthesis.
2011
2012 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
2013
2014         parse-datetime: accept ISO 8601 date and time rep with "T" separator
2015         The parser now accepts ISO 8601 date-time strings with "T" as the
2016         separator.  It has long parsed dates like "2004-02-29 16:21:42"
2017         with a space between the date and time strings.  Now it also parses
2018         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
2019         variants like "2004-02-29T16:21:42.333-07:00"
2020         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
2021         of day representation using the 'T' separator character.
2022         * doc/parse-datetime.texi (General date syntax): replace use of
2023         deprecated --iso-8601 option with --rfc-3339 in example of date
2024         command output formats that can be parsed.
2025         * tests/test-parse-datetime.c (tm_diff): New function, taken from
2026         lib/parse-datetime.y.
2027         (gmt_offset): New function.
2028         (main): Add additional test cases to validate ISO8601 extended
2029         date and time of day parsing.
2030
2031 2011-08-31  Bruno Haible  <bruno@clisp.org>
2032
2033         freopen: Documentation.
2034         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
2035         name.
2036         Reported by Claudio Bley <claudio.bley@gmail.com>.
2037
2038 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
2039
2040         freopen: Don't crash if the filename argument is NULL.
2041         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
2042         NULL.
2043
2044 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2045
2046         openat: work around AIX 7.1 fstatat bug
2047         Problem reported by Kevin Brott for GNU tar, in the thread containing
2048         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
2049         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
2050         FSTATAT_ST_SIZE_ETC_BROKEN.
2051         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
2052         rpl_fstatat.
2053         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
2054         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
2055         AC_CHECK_FUNCS_ONCE for fstatat.
2056         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
2057         fchmodat, mkdirat, openat and unlinkat.
2058
2059 2011-08-30  Bruno Haible  <bruno@clisp.org>
2060
2061         Avoid endless recursions if config.h includes some header files.
2062         * lib/fopen.c (__need_FILE): Define already before including config.h.
2063         * lib/freopen.c (__need_FILE): Likewise.
2064         * lib/open.c (__need_system_fcntl_h): Likewise.
2065         * lib/stat.c (__need_system_sys_stat_h): Likewise.
2066         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
2067         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2068
2069 2011-08-25  Karl Berry  <karl@gnu.org>
2070
2071         * config/srclist.txt (ylwrap): new try.
2072         * build-aux/ylwrap: new file.
2073
2074 2011-08-23  Bruno Haible  <bruno@clisp.org>
2075
2076         tmpdir: Use a good default directory on native Windows.
2077         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
2078         (P_tmpdir): Default to _P_tmpdir on native Windows.
2079         (path_search): On native Windows, try the value returned by GetTempPath
2080         before trying P_tmpdir.
2081         * modules/tmpdir (Depends-on): Add pathmax.
2082         Suggested by John Darrington <john@darrington.wattle.id.au>.
2083
2084 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
2085
2086         doc: fix typo in README-release
2087         * top/README-release: Capitalize first word of a sentence.
2088
2089 2011-08-19  Jim Meyering  <meyering@redhat.com>
2090
2091         fts: do not exhaust memory when processing million-entry directories
2092         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
2093         directory would require about 256*N bytes of memory.  Thus, it was
2094         easy to construct a directory too large to be processed by any of
2095         those tools.  With this change, fts' maximum memory utilization is
2096         now limited to around 30MB.
2097         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
2098         (fts_read): When we've processed the final entry (i.e., when
2099         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
2100         using the parent entry to read any remaining entries.  Dispatch
2101         depending on what fts_build returns:
2102         - NULL+stop, aka failure: stop
2103         - NULL otherwise: move up in the dir hierarchy
2104         - non-NULL: handle this new entry
2105         (fts_build): Declare and use new local, continue_readdir.
2106         Prepare to be called from fts_read, when the entries
2107         from a partially-read directory have just been exhausted.
2108         In that case, we'll skip the opendir and instead use the parent's
2109         fts_dirp and derive dir_fd from that.
2110         Finally, in the readdir loop, if we read max_entries entries,
2111         exit the loop ensuring *not* to call closedir.  This is required
2112         so that fts_dirp can be reused on a subsequent call.
2113         Prompted by Ben England's report of memory exhaustion in find
2114         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
2115
2116         maint: fts: move decl of `dp' down into while loop; split a long line
2117         * lib/fts.c (fts_build): No semantic change.
2118
2119         fts: add/use new struct member, fts_dirp
2120         We are about to use this to manage any directory with
2121         too many entries to read all of them into memory at once.
2122         To do that, we'll need to save the DIR* pointer in each
2123         affected FTSENT struct.
2124         * lib/fts_.h: Include <dirent.h>.
2125         (struct FTSENT) [fts_dirp]: New member.
2126         * lib/fts.c (closedir_and_clear): Define.
2127         Use it in place of closedir so that we are sure to
2128         clear the new fts_dirp member when done with it.
2129         (fts_alloc): Initialize the new member.
2130         (fts_lfree): Free, if needed.
2131
2132         maint: fts: give __opendir2 a new parameter and rename
2133         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
2134         than surreptitiously using sole caller's "dir_fd".
2135         (fts_opendir): Rename from __opendir2.
2136
2137         maint: fts.c: remove __opendir2's now-unused parameter, oflag
2138         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
2139
2140         maint: fts.c: correct off-by-one indentation
2141         * lib/fts.c (fts_build): Correct indentation, change style
2142         of a couple of block comments, and bracing style.
2143
2144         maint: fts.c: move __opendir2 #define "up" out of function body
2145         * lib/fts.c (__opendir2): Move "up".  No semantic change.
2146
2147         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
2148         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
2149         out for a long time and besides was useful only on BSD systems.
2150
2151 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2152
2153         regex: port to Stratus OpenVOS
2154         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
2155         define to empty, rather than attempting nonportable optimizations.
2156         Problem reported by Paul Green in:
2157         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
2158         and fix suggested by Eric Blake in:
2159         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
2160
2161 2011-08-17  Eric Blake  <eblake@redhat.com>
2162
2163         getcwd: fix test failures on mingw
2164         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
2165         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
2166         test if long directory cannot be created, and allow mingw errno.
2167
2168         getcwd-lgpl: fix m4 to match relaxed test for BSD
2169         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
2170         (gl_FUNC_GETCWD_SIGNATURE): New macro.
2171         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
2172         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
2173         signature problem.
2174
2175         getcwd: fix compilation on mingw64
2176         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
2177         getcwd.
2178         Reported by Marc-André Lureau.
2179
2180         pipe2: silence compiler warning
2181         * lib/pipe2.c (pipe2): Hide label if it is not used.
2182
2183 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
2184
2185         relocatable-prog: fix link error
2186         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
2187         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
2188         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
2189         into modules/relocatable-lib without noticing that
2190         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
2191         also needs to build relocatable.c.
2192
2193 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2194
2195         getaddrinfo: fix sh typo in gai_strerrorA decl checking
2196         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
2197         shell code: it contained a 'break' that was not in a loop.
2198         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
2199         via a shell-language loop; this may have been true in old Autoconf
2200         versions, but it's not true in Autoconf 2.68.  I found this bug
2201         when testing coreutils git on Solaris 8, whose shell complains
2202         about the syntax error.
2203
2204 2011-08-12  Simon Josefsson  <simon@josefsson.org>
2205
2206         * lib/base64.c: Fix comment to reference RFC 4648.
2207         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
2208         <gvtulder@gmail.com>.
2209
2210 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2211
2212         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
2213
2214         po/Makefile.in.in: fix make -q problem
2215         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
2216         rule, since there's no file named 'check-macro-version' and its
2217         use as a file breaks make -q.
2218         (all): Don't depend on check-macro-version.
2219         (CHECK_MACRO_VERSION): New macro.
2220         (stamp-po): Use it.
2221
2222         configmake: fix make -q problem
2223         * modules/configmake (configmake.h): Update configmake.h's time stamp
2224         even if the file does not change.  Otherwise, 'make -q' fails.
2225         Problem reported by Simon Josefsson in
2226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
2227
2228 2011-08-11  Jim Meyering  <meyering@redhat.com>
2229
2230         git-version-gen: correct the advice in a comment
2231         * build-aux/git-version-gen: Correct comment.
2232         Don't recommend to list .tarball-version in .gitignore.
2233
2234 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2235
2236         base64: fix off-by-one buffer size bug
2237         Problem and (trivial) fix reported by Gijs van Tulder in
2238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
2239         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
2240         * tests/test-base64.c (main): Catch the bug.
2241
2242 2011-08-10  Eric Blake  <eblake@redhat.com>
2243
2244         closein: correct comments
2245         * lib/closein.c (close_stdin): Improve comments.
2246
2247 2011-08-09  Bruno Haible  <bruno@clisp.org>
2248
2249         More tests for 'fseeko'.
2250         * tests/test-fseeko3.c: New file, from Eric Blake.
2251         * tests/test-fseeko3.sh: New file.
2252         * modules/fseeko-tests (Files): Add them.
2253         (TESTS): Add test-fseeko3.sh.
2254         (check_PROGRAMS): Add test-fseeko3.
2255
2256 2011-08-09  Eric Blake  <eblake@redhat.com>
2257
2258         fseeko: remove unneeded hack
2259         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
2260
2261         fseeko: fix bug on glibc
2262         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
2263         Reported by John W. Eaton.
2264
2265 2011-08-08  Bruno Haible  <bruno@clisp.org>
2266
2267         unictype/base: Fix interoperability with preinstalled libunistring.
2268         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
2269         Reported by Simon Josefsson.
2270
2271 2011-08-08  Bruno Haible  <bruno@clisp.org>
2272
2273         iswblank: Detect declaration correctly.
2274         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
2275         AC_CHECK_DECLS invocation.
2276
2277 2011-08-08  Bruno Haible  <bruno@clisp.org>
2278
2279         tcgetsid: Detect declaration correctly.
2280         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
2281         AC_CHECK_DECLS invocation.
2282         Reported by Simon Josefsson.
2283
2284 2011-08-08  Eric Blake  <eblake@redhat.com>
2285
2286         largefile: fix typo that regressed large file support
2287         * modules/largefile (configure.ac-early): Fix section name.
2288
2289 2011-08-06  Karl Berry  <karl@gnu.org>
2290
2291         * MODULES.html.sh (func_all_files): _Noreturn is no longer
2292         a separate module.
2293
2294 2011-08-05  Simon Josefsson  <simon@josefsson.org>
2295
2296         openat: Fix warnings and commens when building unlinkat.c on Hurd.
2297         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
2298         get prototype for free.
2299
2300 2011-08-04  Bruno Haible  <bruno@clisp.org>
2301
2302         Tests for module 'pathmax'.
2303         * modules/pathmax-tests: New file.
2304         * tests/test-pathmax.c: New file.
2305
2306         canonicalize-lgpl: Support larger filenames on the Hurd.
2307         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
2308         Reported by Paul Eggert.
2309
2310         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
2311         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
2312         * lib/chdir-long.h: Include pathmax.h.
2313         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
2314         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
2315         (PATH_MAX): Remove code that is done by pathmax.h.
2316         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
2317         * lib/tmpfile.c: Add a comment.
2318         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
2319         * modules/chdir-long (Depends-on): Add pathmax.
2320         * modules/getcwd (Depends-on): Add pathmax.
2321         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
2322         is not defined.
2323         * doc/posix-headers/limits.texi: Mention the pathmax module.
2324         * NEWS: Mention the change.
2325
2326 2011-08-02  Bruno Haible  <bruno@clisp.org>
2327
2328         pthread_sigmask: Actually use results of gl_THREADLIB.
2329         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
2330         gl_THREADLIB, not gl_[]THREADLIB.
2331         Reported by Eric Blake.
2332
2333 2011-08-02  Jim Meyering  <meyering@redhat.com>
2334
2335         maint.mk: relax the default _gl_TS_function_match regexp
2336         * top/maint.mk (_gl_TS_function_match): Don't require at least one
2337         space between function name and "(" in an "extern" declaration.
2338         That would fail to match a decl with no space there: extern void foo();
2339
2340 2011-07-31  Iain Nicol  <iain@thenicols.net>
2341
2342         git-version-gen: document that EXTRA_DIST must include .version
2343         * build-aux/git-version-gen: In the how-to-use comment, document
2344         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
2345         will fail when run from an unpacked distribution tarball.
2346
2347 2011-08-01  Bruno Haible  <bruno@clisp.org>
2348
2349         wctype-h: Fix last change.
2350         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
2351         REPLACE_TOWLOWER to 0.
2352         Reported by Sam Steingold <sds@gnu.org>.
2353
2354 2011-07-31  Bruno Haible  <bruno@clisp.org>
2355
2356         frexpl: Update autoconf test.
2357         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
2358         according to changes of 2011-06-20.
2359
2360 2011-07-31  Bruno Haible  <bruno@clisp.org>
2361
2362         sys_utsname: Add support for Minix.
2363         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
2364         <sys/utsname.h>.
2365         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2366         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
2367
2368 2011-07-31  Bruno Haible  <bruno@clisp.org>
2369
2370         strings: Add support for Minix.
2371         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
2372         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2373         * doc/posix-headers/strings.texi: Document the Minix problem.
2374
2375 2011-07-31  Bruno Haible  <bruno@clisp.org>
2376
2377         wctype-h: Add support for Minix.
2378         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
2379         REPLACE_TOWLOWER.
2380         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
2381         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
2382         REPLACE_ISWCNTRL.
2383
2384 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2385
2386         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
2387         This is a performance improvement for 64-bit hosts: it causes the
2388         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
2389
2390 2011-07-31  Bruno Haible  <bruno@clisp.org>
2391
2392         stdioext: Add support for Minix.
2393         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
2394         * lib/fpurge.c (fpurge): Likewise.
2395         * lib/freadahead.c (freadahead): Likewise.
2396         * lib/freadable.c (freadable): Likewise.
2397         * lib/freading.c (freading): Likewise.
2398         * lib/freadptr.c (freadptr): Likewise.
2399         * lib/freadseek.c (freadptrinc): Likewise.
2400         * lib/fseeko.c (rpl_fseeko): Likewise.
2401         * lib/fseterr.c (fseterr): Likewise.
2402         * lib/fwritable.c (fwritable): Likewise.
2403         * lib/fwriting.c (fwriting): Likewise.
2404         * lib/fflush.c (clear_ungetc_buffer): Update comment.
2405         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
2406
2407 2011-07-31  Bruno Haible  <bruno@clisp.org>
2408
2409         errno: Port to Minix.
2410         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
2411         ECONNABORTED are defined.
2412         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
2413         GNULIB_defined_ECONNABORTED): New macros.
2414         * lib/strerror-override.h (strerror_override): Test also
2415         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
2416         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
2417         ECONNABORTED.
2418         * doc/posix-headers/errno.texi: Mention the Minix problem.
2419
2420 2011-07-31  Bruno Haible  <bruno@clisp.org>
2421
2422         Work around declaration collisions on Minix.
2423         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
2424         defined, set REPLACE_MBSINIT.
2425         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
2426         defined, set REPLACE_MBRTOWC.
2427         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
2428         set REPLACE_MBRLEN.
2429         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
2430         defined, set REPLACE_MBSRTOWCS.
2431         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
2432         defined, set REPLACE_WCRTOMB.
2433         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
2434         defined, set REPLACE_WCSRTOMBS.
2435
2436 2011-07-31  Bruno Haible  <bruno@clisp.org>
2437
2438         Add support for Minix with ACK compiler.
2439         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
2440         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
2441         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
2442
2443 2011-07-31  Bruno Haible  <bruno@clisp.org>
2444
2445         Documentation about Minix.
2446         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
2447         * doc/glibc-headers/*.texi: Likewise.
2448         * doc/posix-functions/*.texi: Likewise.
2449         * doc/glibc-functions/*.texi: Likewise.
2450
2451 2011-07-31  Bruno Haible  <bruno@clisp.org>
2452
2453         snippet/warn-on-use: Fix indentation.
2454         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
2455
2456 2011-07-25  Jim Meyering  <meyering@redhat.com>
2457
2458         tests: test-update-copyright.sh: remove unnecessary "rm" commands
2459         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
2460         commands.
2461
2462 2011-07-27  Jim Meyering  <meyering@redhat.com>
2463
2464         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
2465         * top/maint.mk (gl_extract_significant_defines_): Now that
2466         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
2467         gnulib/lib/signal.in.h, and now that we recommend to
2468         define-if-undefined those two symbols in application code,
2469         we must filter them out of the "significant" list.
2470         This avoids a "make syntax-check" failure in coreutils.
2471
2472 2011-07-26  Eric Blake  <eblake@redhat.com>
2473
2474         warnings: add comments about previous patch
2475         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
2476         * m4/include_next.m4: Likewise.
2477         * m4/warn-on-use.m4: Likewise.
2478         * m4/warnings.m4: Likewise, and simplify use.
2479         Suggested by Stefano Lattarini.
2480
2481         include-next, warnings: support older autoconf
2482         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
2483         AS_VAR_PUSHDEF in a way that works with older autoconf.
2484         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
2485         Reported by Daniel P. Berrange.
2486
2487 2011-07-25  Bruno Haible  <bruno@clisp.org>
2488
2489         fseek, ftell: Fix doc.
2490         * doc/posix-functions/fseek.texi: Reword statement about
2491         AC_SYS_LARGEFILE.
2492         * doc/posix-functions/ftell.texi: Likewise.
2493
2494 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2495             Bruno Haible  <bruno@clisp.org>
2496
2497         Add dependencies to the 'largefile' module.
2498         * modules/fopen (Depends-on): Add 'largefile'.
2499         * modules/freopen (Depends-on): Likewise.
2500         * modules/fseeko (Depends-on): Likewise.
2501         * modules/ftello (Depends-on): Likewise.
2502         * modules/glob (Depends-on): Likewise.
2503         * modules/lseek (Depends-on): Likewise.
2504         * modules/lstat (Depends-on): Likewise.
2505         * modules/mkostemp (Depends-on): Likewise.
2506         * modules/mkostemps (Depends-on): Likewise.
2507         * modules/mkstemp (Depends-on): Likewise.
2508         * modules/mkstemps (Depends-on): Likewise.
2509         * modules/open (Depends-on): Likewise.
2510         * modules/openat (Depends-on): Likewise.
2511         * modules/pread (Depends-on): Likewise.
2512         * modules/pwrite (Depends-on): Likewise.
2513         * modules/scandir (Depends-on): Likewise.
2514         * modules/stat (Depends-on): Likewise.
2515         * modules/tmpfile (Depends-on): Likewise.
2516         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2517         since the containing module now depends on the largefile module.
2518         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2519         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2520         off_t is fixed by gnulib.
2521         * doc/posix-functions/freopen.texi: Likewise.
2522         * doc/posix-functions/fseeko.texi: Likewise.
2523         * doc/posix-functions/fstatat.texi: Likewise.
2524         * doc/posix-functions/ftello.texi: Likewise.
2525         * doc/posix-functions/glob.texi: Likewise.
2526         * doc/posix-functions/lseek.texi: Likewise.
2527         * doc/posix-functions/lstat.texi: Likewise.
2528         * doc/posix-functions/mkstemp.texi: Likewise.
2529         * doc/posix-functions/open.texi: Likewise.
2530         * doc/posix-functions/openat.texi: Likewise.
2531         * doc/posix-functions/pread.texi: Likewise.
2532         * doc/posix-functions/pwrite.texi: Likewise.
2533         * doc/posix-functions/scandir.texi: Likewise.
2534         * doc/posix-functions/stat.texi: Likewise.
2535         * doc/posix-functions/tmpfile.texi: Likewise.
2536         * doc/glibc-functions/mkostemp.texi: Likewise.
2537         * doc/glibc-functions/mkostemps.texi: Likewise.
2538         * doc/glibc-functions/mkstemps.texi: Likewise.
2539
2540 2011-07-25  Bruno Haible  <bruno@clisp.org>
2541
2542         fcntl: Move AC_LIBOBJ invocation to module description.
2543         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2544         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2545
2546         fcntl: Remove call-in from fchdir.m4.
2547         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2549
2550         dup3: Remove potential call-in from fchdir.m4.
2551         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2552         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2553
2554         dup2: Move AC_LIBOBJ invocation to module description.
2555         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2556         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2557         Don't invoke AC_LIBOBJ.
2558         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2559
2560         dup2: Remove call-in from fchdir.m4.
2561         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2563
2564         fclose: Move AC_LIBOBJ invocation to module description.
2565         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2566         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2567         to 1.
2568         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2569
2570         fclose: Remove call-in from close.m4.
2571         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2572         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2573
2574         close: Move AC_LIBOBJ invocation to module description.
2575         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2576         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2577         1.
2578         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2579
2580         close: Remove call-in from fchdir.m4.
2581         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2583
2584         open: Move AC_LIBOBJ invocation to module description.
2585         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2586         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2587         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2588
2589         open: Remove call-in from fchdir.m4.
2590         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2592
2593         fchdir: Start to remove gl_REPLACE_* idiom.
2594         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2595         (gl_FUNC_FCHDIR): Invoke it.
2596
2597 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2598
2599         * lib/ftell.c (ftell): Comment out cast.
2600
2601         close: use gl_REPLACE_FCLOSE only if defined
2602         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2603         is defined.  The close module doesn't depend on the fclose module
2604         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2606         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2607
2608 2011-07-24  Jim Meyering  <meyering@redhat.com>
2609
2610         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2611         * tests/test-select.h (test_function): Declare as "static".
2612
2613 2011-07-24  Bruno Haible  <bruno@clisp.org>
2614
2615         doc: Mention the effects of AC_SYS_LARGEFILE.
2616         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2617         on this function.
2618         * doc/posix-functions/aio_error.texi: Likewise.
2619         * doc/posix-functions/aio_fsync.texi: Likewise.
2620         * doc/posix-functions/aio_read.texi: Likewise.
2621         * doc/posix-functions/aio_return.texi: Likewise.
2622         * doc/posix-functions/aio_suspend.texi: Likewise.
2623         * doc/posix-functions/aio_write.texi: Likewise.
2624         * doc/posix-functions/fgetpos.texi: Likewise.
2625         * doc/posix-functions/fopen.texi: Likewise.
2626         * doc/posix-functions/freopen.texi: Likewise.
2627         * doc/posix-functions/fsetpos.texi: Likewise.
2628         * doc/posix-functions/fstatvfs.texi: Likewise.
2629         * doc/posix-functions/ftruncate.texi: Likewise.
2630         * doc/posix-functions/ftw.texi: Likewise.
2631         * doc/posix-functions/getrlimit.texi: Likewise.
2632         * doc/posix-functions/glob.texi: Likewise.
2633         * doc/posix-functions/lio_listio.texi: Likewise.
2634         * doc/posix-functions/lockf.texi: Likewise.
2635         * doc/posix-functions/mkstemp.texi: Likewise.
2636         * doc/posix-functions/mmap.texi: Likewise.
2637         * doc/posix-functions/nftw.texi: Likewise.
2638         * doc/posix-functions/openat.texi: Likewise.
2639         * doc/posix-functions/opendir.texi: Likewise.
2640         * doc/posix-functions/posix_fadvise.texi: Likewise.
2641         * doc/posix-functions/posix_fallocate.texi: Likewise.
2642         * doc/posix-functions/pread.texi: Likewise.
2643         * doc/posix-functions/pwrite.texi: Likewise.
2644         * doc/posix-functions/readdir.texi: Likewise.
2645         * doc/posix-functions/readdir_r.texi: Likewise.
2646         * doc/posix-functions/rewinddir.texi: Likewise.
2647         * doc/posix-functions/scandir.texi: Likewise.
2648         * doc/posix-functions/seekdir.texi: Likewise.
2649         * doc/posix-functions/setrlimit.texi: Likewise.
2650         * doc/posix-functions/statvfs.texi: Likewise.
2651         * doc/posix-functions/telldir.texi: Likewise.
2652         * doc/posix-functions/tmpfile.texi: Likewise.
2653         * doc/posix-functions/truncate.texi: Likewise.
2654         * doc/glibc-functions/fallocate.texi: Likewise.
2655         * doc/glibc-functions/fstatfs.texi: Likewise.
2656         * doc/glibc-functions/fts_children.texi: Likewise.
2657         * doc/glibc-functions/fts_read.texi: Likewise.
2658         * doc/glibc-functions/getdirentries.texi: Likewise.
2659         * doc/glibc-functions/mkostemp.texi: Likewise.
2660         * doc/glibc-functions/mkostemps.texi: Likewise.
2661         * doc/glibc-functions/mkstemps.texi: Likewise.
2662         * doc/glibc-functions/preadv.texi: Likewise.
2663         * doc/glibc-functions/pwritev.texi: Likewise.
2664         * doc/glibc-functions/sendfile.texi: Likewise.
2665         * doc/glibc-functions/statfs.texi: Likewise.
2666
2667 2011-07-24  Bruno Haible  <bruno@clisp.org>
2668
2669         doc: Fix typo.
2670         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2671
2672 2011-07-24  Bruno Haible  <bruno@clisp.org>
2673
2674         doc: Mention fsusage.
2675         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2676
2677 2011-07-24  Bruno Haible  <bruno@clisp.org>
2678
2679         doc: Mention new glibc headers and functions.
2680         * doc/glibc-headers/gshadow.texi: New file.
2681         * doc/glibc-functions/endsgent.texi: New file.
2682         * doc/glibc-functions/fgetsgent.texi: New file.
2683         * doc/glibc-functions/fgetsgent_r.texi: New file.
2684         * doc/glibc-functions/getsgent.texi: New file.
2685         * doc/glibc-functions/getsgent_r.texi: New file.
2686         * doc/glibc-functions/getsgnam.texi: New file.
2687         * doc/glibc-functions/getsgnam_r.texi: New file.
2688         * doc/glibc-functions/putsgent.texi: New file.
2689         * doc/glibc-functions/setsgent.texi: New file.
2690         * doc/glibc-functions/sgetsgent.texi: New file.
2691         * doc/glibc-functions/sgetsgent_r.texi: New file.
2692         * doc/glibc-functions/malloc_info.texi: New file.
2693         * doc/glibc-functions/preadv.texi: New file.
2694         * doc/glibc-functions/pwritev.texi: New file.
2695         * doc/glibc-functions/register_printf_modifier.texi: New file.
2696         * doc/glibc-functions/register_printf_specifier.texi: New file.
2697         * doc/glibc-functions/register_printf_type.texi: New file.
2698         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2699         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2700         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2701         * doc/glibc-functions/pthread_getname_np.texi: New file.
2702         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2703         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2704         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2705         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2706         * doc/glibc-functions/pthread_setname_np.texi: New file.
2707         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2708         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2709         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2710         * doc/glibc-functions/qsort_r.texi: New file.
2711         * doc/glibc-functions/quick_exit.texi: New file.
2712         * doc/glibc-functions/syncfs.texi: New file.
2713         * doc/gnulib.texi: Include them.
2714         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2715         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2716         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2717         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2718         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2719         * doc/glibc-functions/execvpe.texi: Likewise.
2720
2721 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2722
2723         ftell: don't include <unistd.h>
2724         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2725         guaranteed to define off_t, and the ftell module depends on the
2726         stdio module.
2727
2728         ftell: do not assume wraparound signed arithmetic
2729         * lib/ftell.c: Include <limits.h>.
2730         (ftell): Don't assume wraparound signed arithmetic.
2731
2732 2011-07-24  Bruno Haible  <bruno@clisp.org>
2733
2734         close: No longer depend on module 'fclose'.
2735         * modules/close (Depends-on): Remove fclose.
2736         * NEWS: Mention the change.
2737         Suggested by Sam Steingold <sds@gnu.org>.
2738
2739 2011-07-24  Bruno Haible  <bruno@clisp.org>
2740
2741         fsusage: Enable large volume support on AIX >= 5.2.
2742         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2743         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2744         instead of STAT_STATVFS.
2745         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2746
2747         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2748         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2749         f_blocks field only on MacOS X.
2750
2751         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2752         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2753         * modules/fsusage (Depends-on): Add largefile.
2754
2755 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2756
2757         * README: Modernize discussion of signed integers.
2758         Assuming overflow wraparound is no longer safe.
2759         Mention ones' complement and signed magnitude.
2760
2761 2011-07-22  Bruno Haible  <bruno@clisp.org>
2762
2763         select tests, pselect tests: Refactor.
2764         * tests/test-select.h: New file, extracted from tests/test-select.c.
2765         (select_fn): New type.
2766         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2767         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2768         test_pipe): Add my_select argument.
2769         (test_function): Renamed from main. Add my_select argument.
2770         * tests/test-select.c: Move most code to tests/test-select.h. Include
2771         test-select.h.
2772         * modules/select-tests (Files): Add tests/test-select.h.
2773         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2774         (my_select, main): New functions.
2775         * modules/pselect-tests (Files): Add tests/test-select.h,
2776         tests/macros.h, tests/signature.h.
2777         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2778         (configure.ac): Check for <sys/wait.h>.
2779
2780 2011-07-22  Bruno Haible  <bruno@clisp.org>
2781
2782         sys_select tests: Check the signature of FD_*.
2783         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2784         signature tests from here...
2785         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2786         here.
2787         * modules/sys_select-tests (Files): Add tests/signature.h.
2788
2789 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2790
2791         largefile: new module, replacing large-inode
2792         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2793         * MODULES.html.sh: Add largefile, remove large-inode.
2794         * modules/largefile, m4/largefile.m4: New files.
2795         * modules/large-inode, m4/large-inode.m4: Remove.
2796
2797         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2798         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2799         implementations that use only 32 bits to count blocks.
2800         On typical hosts with 1024-byte blocks, this fails with file
2801         systems as small as 4 TiB.  Problem reported by Herb Wartens
2802         <http://debbugs.gnu.org/9140> and this should also fix a similar
2803         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2804
2805         large-inode: New module
2806         * MODULES.html.sh: Add it.
2807         * modules/large-inode, m4/large-inode.m4: New files.
2808
2809         extensions: Enable extensions on MacOS X 10.5 and later.
2810         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2811
2812 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2813
2814         file-has-acl: use acl_extended_file_nofollow if available
2815         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2816         (acl_extended_file): New macro.
2817         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2818         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2819
2820 2011-07-21  Bruno Haible  <bruno@clisp.org>
2821
2822         Declare system functions in a way that works with C++.
2823         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2824         declare fdopendir as extern "C".
2825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2826         declare frexpl as extern "C".
2827         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2828         declare gai_strerror as extern "C".
2829         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2830         programs, declare gai_strerror as extern "C".
2831         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2832         declare getlogin_r as extern "C".
2833         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2834         as extern "C".
2835         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2836         declare ldexpl as extern "C".
2837         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2838         as extern "C".
2839         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2840         program, declare getmntinfo as extern "C".
2841         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2842         stpncpy as extern "C".
2843         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2844         program, declare __xpg_strerror_r as extern "C".
2845         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2846         strndup as extern "C".
2847         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2848         declare memset and bzero as extern "C".
2849         Reported by Sam Steingold <sds@gnu.org>.
2850
2851 2011-07-12  Jim Meyering  <meyering@redhat.com>
2852
2853         maint.mk: prohibit inclusion of "verify.h" without use
2854         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2855
2856 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2857
2858         timer-time: A new module to check for timer_settime()
2859         * m4/timer_time.m4: Check for the posix function.
2860         * modules/timer-time: Add the new module.
2861         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2862         Mention it.
2863
2864 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2865             Bruno Haible  <bruno@clisp.org>
2866
2867         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2868         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2869         not defined, assume POSIX threads and look for pthread_sigmask in
2870         $LIBS, without changing $CPPFLAGS.
2871
2872 2011-07-19  Bruno Haible  <bruno@clisp.org>
2873
2874         strstr: Update cross-compilation guess.
2875         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2876         CPUs, guess no, in view of glibc
2877         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2878         Suggested by Eric Blake. Reported by Reuben Thomas.
2879
2880 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2881
2882         getopt-gnu: suppress core dumps from detection code
2883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2884         to suppress core dumps that may well occur on glibc systems.
2885         * modules/getopt-gnu: Depend on nocrash.
2886
2887 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2888
2889         pthread_sigmask: ensure usleep is declared
2890         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2891         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2892
2893 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2894
2895         doc: Document NonStop portability issues.
2896         * doc/posix-functions/sigaction.texi (sigaction):
2897         * doc/posix-headers/signal.texi (signal.h):
2898         Document NonStop.  See Joachim Schmitz in
2899         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2900
2901 2011-07-15  Bruno Haible  <bruno@clisp.org>
2902
2903         ffsl, ffsll: Avoid unportable behaviour.
2904         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2905
2906 2011-07-15  Bruno Haible  <bruno@clisp.org>
2907
2908         ffs: More tests.
2909         * tests/test-ffs.c (NBITS): New macro.
2910         (main): Add more tests.
2911         * tests/test-ffsl.c (NBITS): New macro.
2912         (main): Add more tests.
2913         * tests/test-ffsll.c (NBITS): New macro.
2914         (main): Add more tests.
2915
2916 2011-07-15  Eric Blake  <eblake@redhat.com>
2917
2918         ffsl, ffsll: new modules
2919         * modules/ffsl: New file.
2920         * modules/ffsll: Likewise.
2921         * m4/ffsl.m4: Likewise.
2922         * m4/ffsll.m4: Likewise.
2923         * lib/ffsl.c: Likewise.
2924         * lib/ffsl.h: Likewise.
2925         * lib/ffsll.c: Likewise.
2926         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2927         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2928         * modules/string (Makefile.am): Substitute witnesses.
2929         * lib/strings.in.h (ffsl, ffsll): Declare.
2930         * modules/ffsl-tests: New test file.
2931         * modules/ffsll-tests: Likewise.
2932         * tests/test-ffsl.c: Likewise.
2933         * tests/test-ffsll.c: Likewise.
2934         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2935         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2936         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2937
2938         ffs: fix m4 prerequisite
2939         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2940
2941         ffs: avoid undefined behavior
2942         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2943         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2944         Reported by Bruno Haible.
2945
2946 2011-07-12  Bruno Haible  <bruno@clisp.org>
2947
2948         pthread_sigmask: Rely on module 'threadlib'.
2949         * modules/pthread_sigmask (Depends-on): Add threadlib.
2950         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2951         is defined.
2952
2953 2011-07-12  Bruno Haible  <bruno@clisp.org>
2954
2955         regex: Depend on module 'strcase'.
2956         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2957
2958 2011-07-12  Jim Meyering  <meyering@redhat.com>
2959
2960         warn-on-use: fix typo in file name
2961         * modules/snippet/warn-on-use (Files): Correct file name:
2962         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2963
2964 2011-07-12  Bruno Haible  <bruno@clisp.org>
2965
2966         strings: Document module.
2967         * doc/posix-headers/strings.texi: Mention module 'strings'.
2968
2969 2011-07-12  Bruno Haible  <bruno@clisp.org>
2970
2971         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2972         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2973         (Files, Makefile.am): Update.
2974         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2975         * modules/stdlib (Depends-on): Update.
2976
2977 2011-07-12  Bruno Haible  <bruno@clisp.org>
2978
2979         * NEWS: Mention the changes.
2980
2981         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2982         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2983         (Files, Makefile.am): Update.
2984         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2985         * modules/arpa_inet (Depends-on): Update.
2986         * modules/ctype (Depends-on): Update.
2987         * modules/dirent (Depends-on): Update.
2988         * modules/fcntl-h (Depends-on): Update.
2989         * modules/glob (Depends-on): Update.
2990         * modules/iconv-h (Depends-on): Update.
2991         * modules/inttypes-incomplete (Depends-on): Update.
2992         * modules/langinfo (Depends-on): Update.
2993         * modules/locale (Depends-on): Update.
2994         * modules/math (Depends-on): Update.
2995         * modules/netdb (Depends-on): Update.
2996         * modules/poll-h (Depends-on): Update.
2997         * modules/pty (Depends-on): Update.
2998         * modules/search (Depends-on): Update.
2999         * modules/signal (Depends-on): Update.
3000         * modules/spawn (Depends-on): Update.
3001         * modules/stdio (Depends-on): Update.
3002         * modules/stdlib (Depends-on): Update.
3003         * modules/string (Depends-on): Update.
3004         * modules/strings (Depends-on): Update.
3005         * modules/sys_file (Depends-on): Update.
3006         * modules/sys_ioctl (Depends-on): Update.
3007         * modules/sys_select (Depends-on): Update.
3008         * modules/sys_socket (Depends-on): Update.
3009         * modules/sys_stat (Depends-on): Update.
3010         * modules/sys_time (Depends-on): Update.
3011         * modules/sys_times (Depends-on): Update.
3012         * modules/sys_utsname (Depends-on): Update.
3013         * modules/sys_wait (Depends-on): Update.
3014         * modules/termios (Depends-on): Update.
3015         * modules/time (Depends-on): Update.
3016         * modules/unistd (Depends-on): Update.
3017         * modules/wchar (Depends-on): Update.
3018         * modules/wctype-h (Depends-on): Update.
3019         * MODULES.html.sh (Support for building libraries and executables):
3020         Update.
3021
3022         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
3023         * modules/snippet/unused-parameter: Renamed from
3024         modules/unused-parameter.
3025         (Files, Makefile.am): Update.
3026         * build-aux/snippet/unused-parameter.h: Renamed from
3027         build-aux/unused-parameter.h.
3028         * modules/selinux-h (Depends-on): Update.
3029         * modules/unistr/base (Depends-on): Update.
3030         * MODULES.html.sh (Core language properties): Update.
3031
3032         Rename module 'link-warning' to 'snippet/link-warning'.
3033         * modules/snippet/link-warning: Renamed from modules/link-warning.
3034         (Files, Makefile.am): Update.
3035         * build-aux/snippet/link-warning.h: Renamed from
3036         build-aux/link-warning.h.
3037         * MODULES.html.sh (Support for building libraries and executables):
3038         Update.
3039
3040         Rename module 'c++defs' to 'snippet/c++defs'.
3041         * modules/snippet/c++defs: Renamed from modules/c++defs.
3042         (Files, Makefile.am): Update.
3043         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
3044         * modules/arpa_inet (Depends-on): Update.
3045         * modules/ctype (Depends-on): Update.
3046         * modules/dirent (Depends-on): Update.
3047         * modules/fcntl-h (Depends-on): Update.
3048         * modules/glob (Depends-on): Update.
3049         * modules/iconv-h (Depends-on): Update.
3050         * modules/langinfo (Depends-on): Update.
3051         * modules/locale (Depends-on): Update.
3052         * modules/math (Depends-on): Update.
3053         * modules/netdb (Depends-on): Update.
3054         * modules/poll-h (Depends-on): Update.
3055         * modules/pty (Depends-on): Update.
3056         * modules/search (Depends-on): Update.
3057         * modules/signal (Depends-on): Update.
3058         * modules/spawn (Depends-on): Update.
3059         * modules/stdio (Depends-on): Update.
3060         * modules/stdlib (Depends-on): Update.
3061         * modules/string (Depends-on): Update.
3062         * modules/strings (Depends-on): Update.
3063         * modules/sys_ioctl (Depends-on): Update.
3064         * modules/sys_select (Depends-on): Update.
3065         * modules/sys_socket (Depends-on): Update.
3066         * modules/sys_stat (Depends-on): Update.
3067         * modules/sys_time (Depends-on): Update.
3068         * modules/sys_wait (Depends-on): Update.
3069         * modules/termios (Depends-on): Update.
3070         * modules/time (Depends-on): Update.
3071         * modules/unistd (Depends-on): Update.
3072         * modules/wchar (Depends-on): Update.
3073         * modules/wctype-h (Depends-on): Update.
3074
3075         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
3076         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
3077         (Files, Makefile.am): Update.
3078         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
3079         * modules/argv-iter (Depends-on): Update.
3080         * modules/arpa_inet (Depends-on): Update.
3081         * modules/dirent (Depends-on): Update.
3082         * modules/fcntl-h (Depends-on): Update.
3083         * modules/fnmatch (Depends-on): Update.
3084         * modules/getopt-posix (Depends-on): Update.
3085         * modules/glob (Depends-on): Update.
3086         * modules/iconv-h (Depends-on): Update.
3087         * modules/inttypes-incomplete (Depends-on): Update.
3088         * modules/locale (Depends-on): Update.
3089         * modules/math (Depends-on): Update.
3090         * modules/netdb (Depends-on): Update.
3091         * modules/search (Depends-on): Update.
3092         * modules/signal (Depends-on): Update.
3093         * modules/spawn (Depends-on): Update.
3094         * modules/stdio (Depends-on): Update.
3095         * modules/stdlib (Depends-on): Update.
3096         * modules/string (Depends-on): Update.
3097         * modules/strings (Depends-on): Update.
3098         * modules/sys_socket (Depends-on): Update.
3099         * modules/sys_stat (Depends-on): Update.
3100         * modules/sys_time (Depends-on): Update.
3101         * modules/sys_times (Depends-on): Update.
3102         * modules/sys_utsname (Depends-on): Update.
3103         * modules/time (Depends-on): Update.
3104         * modules/unistd (Depends-on): Update.
3105         * modules/wchar (Depends-on): Update.
3106         * MODULES.html.sh (Support for building libraries and executables):
3107         Update.
3108
3109 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3110
3111         Improvements on _Noreturn and related modules.
3112
3113         modules/_Exit-tests: test _Noreturn too
3114         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
3115         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
3116         (main): Use them.
3117
3118         stdnoreturn, stdnoreturn-tests: remove modules
3119         They're not needed here and a bit premature for use elsewhere.  See
3120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
3121         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3122         * tests/test-stdnoreturn.c: Remove files.
3123         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
3124         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
3125         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
3126         and using noreturn.
3127         * modules/openat, modules/sigpipe-die, modules/xalloc:
3128         * modules/xmemdup0, modules/xstrtol:
3129         Remove dependency on stdnoreturn.
3130
3131         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
3132         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
3133         Reparenthesize to avoid GCC warning.
3134         Support Microsoft's syntax.
3135         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
3136
3137         _Noreturn-tests: remove module
3138         * modules/_Noreturn-tests: Remove.
3139         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
3140         * tests/test-_Noreturn.c: Remove.
3141         * tests/test-stdnoreturn.c: Merge from the old
3142         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
3143
3144 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3145
3146         _Noreturn, stdnoreturn, and related modules.
3147
3148         * top/maint.mk: Adjust to new noreturn support.
3149         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
3150         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
3151
3152         xalloc: use stdnoreturn.h
3153         * lib/xalloc.h: Include <stdnoreturn.h>.
3154         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3155         * modules/xalloc (Depends-on): Add stdnoreturn.
3156
3157         xstrtol: use stdnoreturn.h
3158         * lib/xstrtol.h: Include <stdnoreturn.h>.
3159         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3160         * modules/xstrtol (Depends-on): Add stdnoreturn.
3161
3162         xmemdup0: use stdnoreturn.h
3163         * lib/xmemdup0.h: Include <stdnoreturn.h>.
3164         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3165         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
3166
3167         sigpipe-die: use stdnoreturn.h
3168         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
3169         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3170         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
3171
3172         openat: use stdnoreturn.h
3173         * lib/openat.h: Include <stdnoreturn.h>.
3174         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3175         * modules/openat (Depends-on): Add stdnoreturn.
3176
3177         * lib/openat-die.c (openat_save_fail): Modernize comment.
3178
3179         * lib/xalloc-die.c (xalloc_die): Modernize comment.
3180
3181         * lib/glthread/thread.h: Modernize comment.
3182
3183         obstack: use _Noreturn
3184         * lib/obstack.c (__attribute__): Remove macro.
3185         (print_and_abort): Use _Noreturn.
3186
3187         c-stack: use _Noreturn
3188         * lib/c-stack.c (die, overflow_handler, segv_handler):
3189         Use _Noreturn rather than __attribute__((noreturn)).
3190
3191         argmatch-tests, exclude_tests: use _Noreturn
3192         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
3193         Remove.
3194         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
3195
3196         stdlib: use _Noreturn
3197         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
3198         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
3199         * modules/stdlib (Depends-on): Add _Noreturn.
3200         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
3201
3202         stdnoreturn-tests: new module
3203         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
3204
3205         stdnoreturn: new module
3206         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
3207         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
3208
3209         _Noreturn-tests: new module
3210         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
3211
3212         _Noreturn: new module
3213         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
3214         New section, mentioning it.
3215         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
3216
3217         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
3218
3219 2011-07-11  Eric Blake  <eblake@redhat.com>
3220
3221         ffs: new module
3222         * modules/ffs: New file.
3223         * m4/ffs.m4: Likewise.
3224         * lib/ffs.c: Likewise.
3225         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
3226         * modules/strings (Makefile.am): Substitute witness.
3227         (Depends-on): Add c++defs.
3228         * lib/strings.in.h (ffs): Declare.
3229         * modules/ffs-tests: New test file.
3230         * tests/test-ffs.c: Test new module.
3231         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3232         * doc/posix-functions/ffs.texi (ffs): Likewise.
3233
3234         regex: avoid compiler warning
3235         * lib/regex.c (includes): Include <strings.h>, for use of
3236         strcasecmp in regcomp.c.
3237         Reported by Joachim Schmitz.
3238
3239 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3240
3241         stdint: respect system's intmax_t if INTMAX_MAX
3242         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
3243         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
3244         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
3245         long but int64_t is long long, and where we will clash with the
3246         system intmax_t if we override it.  See
3247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
3248         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
3249         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
3250         similarly for UINTMAX_C.
3251
3252 2011-07-08  Bruno Haible  <bruno@clisp.org>
3253
3254         pthread_sigmask tests: Avoid a compiler warning.
3255         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
3256         non-zero.
3257
3258         sigprocmask tests: A better way to avoid a compiler warning.
3259         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
3260         (main): Complain if system() returns non-zero.
3261         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
3262
3263 2011-07-08  Bruno Haible  <bruno@clisp.org>
3264
3265         pthread_sigmask: Work around IRIX bug.
3266         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
3267         bug.
3268         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
3269         there may be unblocked pending signals.
3270         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
3271
3272 2011-07-08  Bruno Haible  <bruno@clisp.org>
3273
3274         pthread_sigmask: Work around Cygwin bug.
3275         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
3276         bug.
3277         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
3278         the system's pthread_sigmask function.
3279         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
3280
3281 2011-07-08  Bruno Haible  <bruno@clisp.org>
3282
3283         pthread_sigmask: Work around bug in single-threaded implementation.
3284         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
3285         FreeBSD, HP-UX, Solaris bug.
3286         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
3287         * lib/pthread_sigmask.c: Include <stddef.h>.
3288         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
3289         the system's pthread_sigmask function.
3290         * modules/pthread_sigmask (configure.ac): Invoke
3291         gl_PREREQ_PTHREAD_SIGMASK.
3292         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
3293         HP-UX, Solaris.
3294
3295 2011-07-08  Eric Blake  <eblake@redhat.com>
3296
3297         test-sigprocmask: avoid compiler warning
3298         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
3299         * tests/test-sigprocmask.c (main): Use it to silence warning.
3300         Reported by Jim Meyering.
3301
3302         test-snprintf: avoid compiler warning
3303         * tests/test-snprintf.c (main): Avoid shadowed declaration.
3304         * tests/test-vsnprintf.c (main): Likewise.
3305         Reported by Jim Meyering.
3306
3307 2011-07-08  Bruno Haible  <bruno@clisp.org>
3308
3309         Tests for module 'pthread_sigmask'.
3310         * modules/pthread_sigmask-tests: New file.
3311         * tests/test-pthread_sigmask1.c: New file, based on
3312         tests/test-sigprocmask.c.
3313         * tests/test-pthread_sigmask2.c: New file.
3314
3315 2011-07-08  Jim Meyering  <meyering@redhat.com>
3316
3317         test-getopt.h: avoid warning about an unused variable
3318         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
3319
3320 2011-07-07  Jim Meyering  <meyering@redhat.com>
3321
3322         maint: reduce list of files exempt from sc_prohibit_leading_TABs
3323         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
3324         now that it no longer contains leading TABs.
3325         Remove unused "url=FIXME" statement.
3326
3327 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3328
3329         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
3330         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3331         When gl_THREADLIB is not in use, assume that the POSIX sematics
3332         are desired.  This is better for Emacs, which uses POSIX semantics
3333         on GNUish and/or POSIXish platforms, and does not use threads at
3334         all otherwise.
3335
3336         pthread_sigmask: fix typo when testing for libraries
3337         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3338         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
3339
3340 2011-07-08  Eric Blake  <eblake@redhat.com>
3341
3342         fts: introduce FTS_NOATIME
3343         * lib/fts_.h (FTS_NOATIME): New bit flag.
3344         (FTS_OPTIONMASK): Adjust.
3345         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
3346         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
3347
3348 2011-07-08  Bruno Haible  <bruno@clisp.org>
3349
3350         Tests for module 'thread'.
3351         * modules/thread-tests: New file.
3352         * tests/test-thread_self.c: New file.
3353         * tests/test-thread_create.cc: New file.
3354
3355 2011-07-08  Bruno Haible  <bruno@clisp.org>
3356
3357         thread: Avoid gcc warnings when using gl_thread_self().
3358         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
3359         'void *'.
3360         (gl_thread_self_pointer): Update.
3361
3362 2011-07-07  Bruno Haible  <bruno@clisp.org>
3363
3364         signal-c++-tests: Check declaration of pthread_sigmask.
3365         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
3366         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
3367         $(LIB_PTHREAD_SIGMASK).
3368
3369 2011-07-07  Bruno Haible  <bruno@clisp.org>
3370
3371         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
3372         * lib/signal.in.h (pthread_sigmask): Override if
3373         REPLACE_PTHREAD_SIGMASK is 1.
3374         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3375         REPLACE_PTHREAD_SIGMASK.
3376         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
3377         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
3378         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
3379         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3380         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
3381
3382 2011-07-07  Bruno Haible  <bruno@clisp.org>
3383
3384         pthread_sigmask: Ensure declaration in <signal.h>.
3385         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
3386         include <pthread.h>.
3387         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
3388         problem.
3389
3390 2011-07-07  Bruno Haible  <bruno@clisp.org>
3391
3392         pthread_sigmask: Document the module.
3393         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
3394
3395 2011-07-07  Bruno Haible  <bruno@clisp.org>
3396
3397         pthread_sigmask: Follow gnulib conventions.
3398         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
3399         gl_PTHREAD_SIGMASK.
3400         * modules/pthread_sigmask (configure.ac): Update.
3401
3402 2011-07-07  Bruno Haible  <bruno@clisp.org>
3403
3404         pthread_sigmask: Make declaration C++ safe.
3405         * lib/signal.in.h: In two special conditions, just do an #include_next.
3406         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3407         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
3408         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3409         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3410         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
3411         not REPLACE_PTHREAD_MASK.
3412         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
3413         not REPLACE_PTHREAD_MASK.
3414         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3415
3416 2011-07-07  Bruno Haible  <bruno@clisp.org>
3417
3418         pthread_sigmask: Fix return value.
3419         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
3420         * lib/pthread_sigmask.c: New file.
3421         * modules/pthread_sigmask (Files): Add it.
3422         (configure.ac): Invoke AC_LIBOBJ.
3423
3424 2011-07-07  Eric Blake  <eblake@redhat.com>
3425
3426         getopt: more portable argv creation
3427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
3428         const, use char arrays rather than strings.
3429         Suggested by Paul Eggert.
3430
3431 2011-07-07  Bruno Haible  <bruno@clisp.org>
3432
3433         Tests for module 'sigprocmask'.
3434         * modules/sigprocmask-tests: New file.
3435         * tests/test-sigprocmask.c: New file.
3436
3437 2011-07-07  Bruno Haible  <bruno@clisp.org>
3438
3439         float tests: Tweak.
3440         * tests/test-float.c (main): Tweak skip message.
3441
3442 2011-07-07  Eric Blake  <eblake@redhat.com>
3443
3444         getopt: avoid compiler warning during configure
3445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
3446         assigning string literals to non-const pointer.
3447
3448         getopt-gnu: avoid crash in glibc getopt
3449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
3450         * tests/test-getopt.h (test_getopt): Enhance test.
3451         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3452         * doc/posix-functions/getopt.texi (getopt): Document it.
3453         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3454         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3455         Likewise.
3456
3457 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3458
3459         getopt: handle W; without long options in getopt [BZ #12922]
3460         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
3461         but no long options are defined, just return 'W'.
3462
3463 2011-07-07  Bruno Haible  <bruno@clisp.org>
3464
3465         Avoid literal tabs.
3466         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
3467         variable containing a tab instead of a literal tab.
3468         Reported by Jim Meyering.
3469
3470 2011-07-07  Bruno Haible  <bruno@clisp.org>
3471
3472         Comments.
3473         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
3474
3475 2011-07-06  Bruno Haible  <bruno@clisp.org>
3476
3477         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
3478         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
3479         <winsock2.h>.
3480         (rpl_fd_isset, FD_ISSET): New definitions, copied from
3481         lib/sys_socket.in.h.
3482         (close, gethostname): Hide declarations from <winsock2.h>.
3483         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3484         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
3485         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
3486         (select): Don't override if gnulib's <sys/select.h> was already
3487         included.
3488         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3489         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3490         setsockopt, shutdown, select): Tweak indentation.
3491
3492 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3493
3494         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
3495         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
3496         in an application that does not use the sys_select module.
3497
3498 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
3499
3500         poll: do not return 0 on timeout=-1
3501         * lib/poll.c: Loop with yield if no events occured
3502
3503 2011-07-06  Eric Blake  <eblake@redhat.com>
3504
3505         pthread_sigmask: always replace when not using pthread
3506         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
3507         replacement when using some threading other than pthread.  Fix
3508         logic bug.
3509
3510 2011-07-06  Bruno Haible  <bruno@clisp.org>
3511
3512         Comments.
3513         * m4/printf.m4: Update comments about mingw.
3514
3515 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3516
3517         sys_select: define sigset_t more portably
3518         * lib/sys_select.in.h: Always include <sys/types.h>, since
3519         we now need sigset_t and mingw defines it there.
3520         Include <signal.h> before split inclusion guard, to avoid
3521         mishaps on Solaris, whose <signal.h> eventually includes us.
3522         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3523         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3524         which come from ...
3525         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3526         gl_CHECK_TYPE_SIGSET_T.
3527         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3528         does the real work.
3529         * modules/sys_select (Depends-on): Add 'signal'.
3530
3531         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3532         Suggested by Bruno Haible.
3533
3534         pselect: Use pthread_sigmask, not sigprocmask.
3535         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3536         multithreaded apps better than sigprocmask does.
3537         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3538         sigprocmask directly.
3539
3540 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3541
3542         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3543         Don't #undef,  since we don't need any underlying pselect.
3544         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3545         (Depends-on): Add select.
3546         (Link): Add $(LIBSOCKET).
3547         These changes suggested by Bruno Haible.
3548
3549         pselect: document better
3550         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3551         * doc/posix-functions/pselect.texi (pselect): Document new module.
3552
3553         pthread_sigmask: new module
3554         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3555         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3556         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3557         This is done only as a macro; I don't know how well that'll
3558         work for C++.  Move <sys/types.h> include before the include_next,
3559         to avoid mishap on Solaris.
3560         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3561         * modules/signal (Makefile.am): Substitute the check's results.
3562         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3563
3564         test-pselect: new module
3565         * modules/pselect-tests, tests/test-pselect.c: New files.
3566         * tests/test-select.c, tests/test-sys_select-c++.cc:
3567         If TEST_PSELECT is defined, test pselect instead of testing select.
3568
3569         * tests/test-sys_select.c (sigset_t): Test for it, too.
3570         Suggested by Bruno Haible.
3571
3572 2011-07-05  Eric Blake  <eblake@redhat.com>
3573
3574         snprintf: guarantee %1$d, for libintl
3575         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3576         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3577         * doc/posix-functions/snprintf.texi (snprintf): Update.
3578         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3579         * tests/test-snprintf.c (main): Enhance test.
3580         * tests/test-vsnprintf.c (main): Likewise.
3581
3582 2011-07-05  Jim Meyering  <meyering@redhat.com>
3583
3584         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3585         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3586         per Bruno's request, to accommodate this idiom (no space after "#")
3587         even when the function is inside an #if block:
3588         char *
3589         gets (char *s)
3590         #undef gets
3591         {
3592           ...
3593         }
3594
3595 2011-07-04  Jim Meyering  <meyering@redhat.com>
3596
3597         maint: indent with spaces, not TABs, and add a rule to check this
3598         * tests/test-userspec.c: Indent with spaces, not TABs.
3599         * tests/test-argp.c: Likewise.
3600         * tests/test-c-stack2.sh: Likewise.
3601         * tests/test-parse-duration.sh: Likewise
3602         * m4/strtod.m4: Likewise.
3603         * m4/alloca.m4: Likewise.
3604         * m4/pselect.m4: Likewise.
3605         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3606
3607 2011-07-03  Jim Meyering  <meyering@redhat.com>
3608
3609         maint.mk: correct omissions in prohibit_argmatch_without_use check
3610         This rule would mistakenly report that argmatch.h is included without
3611         use even when both the argmatch and invalid_arg macro were used.
3612         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3613         of argmatch and invalid_arg.
3614
3615 2011-07-03  Bruno Haible  <bruno@clisp.org>
3616
3617         Comments about EINTR.
3618         * lib/safe-read.h: Explain the purpose of this module.
3619         * lib/safe-write.h: Likewise.
3620         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3621         module.
3622         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3623         module.
3624         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3625
3626 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3627
3628         xnanosleep: Rewrite to use new dtotimespec module.
3629         It has the conversion code that used to be in xnanosleep.
3630         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3631         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3632         (TIME_T_MAX): Remove.
3633         (xnanosleep): Rewrite in terms of dtotimespec.
3634         * modules/xnanosleep (Depends-on): Add dtotimespec.
3635         Remove intprops, stdbool.
3636
3637         timespec-add, timespec-sub: new modules
3638         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3639         * lib/timespec-add.c, lib/timespec-sub.c:
3640         * modules/timespec-add, modules/timespec-sub: New files.
3641
3642         dtotimespec: new module
3643         * lib/timespec.h (dtotimespec): New decl.
3644         * lib/dtotimespec.c, modules/dtotimespec: New files.
3645
3646         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3647
3648         pselect: new module
3649         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3650         (pselect): New decls.
3651         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3652         since the standard pselect decl uses 'restrict'.
3653         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3654         HAVE_PSELECT, REPLACE_PSELECT.
3655         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3656         HAVE_PSELECT, REPLACE_PSELECT.
3657         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3658
3659         sys_select: don't depend on sys_socket
3660         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3662         This fix works on GNU and GNU-like platforms, but has not been tested
3663         on native Windows.
3664         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3665         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3666         gl_HEADER_SYS_SOCKET.
3667         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3668         gl_PREREQ_SYS_H_WINSOCK2.
3669
3670 2011-06-29  Eric Blake  <eblake@redhat.com>
3671
3672         pipe2: fix C89 compile problem
3673         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3674         Reported by Bruno Haible.
3675
3676         pipe, pipe2: don't corrupt fd on error
3677         * lib/pipe.c (pipe): Leave fd unchanged on error.
3678         * lib/pipe2.c (pipe2): Likewise.
3679         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3680         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3681
3682 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3683
3684         mmap-anon: do not use regular expressions inadvertently
3685         * m4/mmap-anon.m4: Remove trailing period from strings sought
3686         in the output.
3687
3688 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3689
3690         nanosleep: fix integer overflow problem
3691         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3692         arithmetic wraps around on overflow.
3693
3694         nanosleep: simplify carrying
3695         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3696         first call to the underyling nanosleep, not for the last one.
3697         This doesn't fix any bugs, but it simplifies the computation of
3698         the remaining delay.  Found while auditing integer overflow issues.
3699
3700         dup2: remove test for existence of fcntl
3701         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3702         "#if HAVE_FCNTL", in the configure-time test program.
3703         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3704         and therefore speeds up "configure" a bit.  Found while
3705         adding the dup2 module to Emacs.
3706
3707 2011-06-24  Eric Blake  <eblake@redhat.com>
3708
3709         maint.mk: enhance useless header checks
3710         * top/maint.mk (_sc_header_without_use): Check both include
3711         styles.
3712         (sc_prohibit_assert_without_use)
3713         (sc_prohibit_close_stream_without_use)
3714         (sc_prohibit_getopt_without_use)
3715         (sc_prohibit_quotearg_without_use)
3716         (sc_prohibit_quote_without_use)
3717         (sc_prohibit_long_options_without_use)
3718         (sc_prohibit_inttostr_without_use)
3719         (sc_prohibit_ignore_value_without_use)
3720         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3721         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3722         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3723         (sc_prohibit_hash_pjw_without_use)
3724         (sc_prohibit_safe_read_without_use)
3725         (sc_prohibit_argmatch_without_use)
3726         (sc_prohibit_canonicalize_without_use)
3727         (sc_prohibit_root_dev_ino_without_use)
3728         (sc_prohibit_openat_without_use)
3729         (sc_prohibit_c_ctype_without_use)
3730         (sc_prohibit_signal_without_use)
3731         (sc_prohibit_stdio--_without_use)
3732         (sc_prohibit_stdio-safer_without_use)
3733         (sc_prohibit_strings_without_use)
3734         (sc_prohibit_intprops_without_use)
3735         (sc_prohibit_stddef_without_use)
3736         (sc_prohibit_xfreopen_without_use): Update clients.
3737
3738 2011-06-24  Jim Meyering  <meyering@redhat.com>
3739
3740         syntax-check: keep one maint.mk rule in sync with its header
3741         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3742         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3743         I prefer to avoid temporary files here, so use <(...), but that
3744         is not supported by /bin/sh, so...
3745         (SHELL): Define to /bin/bash.
3746
3747 2011-06-24  Eric Blake  <eblake@redhat.com>
3748
3749         maint.mk: update sc_prohibit_intprops_without_use
3750         * top/maint.mk (_intprops_names): Match recent changes.
3751
3752 2011-06-24  Bruno Haible  <bruno@clisp.org>
3753
3754         strerror-override: No-op tweak.
3755         * lib/strerror-override.h (strerror_override): Reorder conditions,
3756         for consistency with lib/strerror-override.c.
3757
3758 2011-06-23  Eric Blake  <eblake@redhat.com>
3759
3760         maint.mk: test further PATH_MAX issues
3761         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3762         (sc_prohibit_path_max_allocation): ...and also test alloca.
3763         Suggested by Jim Meyering.
3764
3765 2011-06-22  Eric Blake  <eblake@redhat.com>
3766
3767         maint.mk: add syntax-check to avoid char[PATH_MAX]
3768         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3769
3770         stat: be robust to PATH_MAX definition
3771         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3772         * modules/stat (Depends-on): Add verify.
3773
3774         link: work around IRIX bug
3775         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3776         * lib/link.c (rpl_link): Work around it.
3777         * tests/test-link.h (test_link): Enhance test.
3778         * doc/posix-functions/link.texi (link): Document the bug.
3779
3780         getopt: silence clang warning
3781         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3782         dereference.
3783         Reported by Gustavo Martin Domato.
3784
3785 2011-06-22  Jim Meyering  <meyering@redhat.com>
3786
3787         bootstrap: do not insert a blank line into each .gitignore file
3788         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3789
3790 2011-06-21  Eric Blake  <eblake@redhat.com>
3791
3792         perror: test for output mismatch
3793         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3794         perror on IRIX.
3795
3796         strerror_r: fix OpenBSD behavior on out-of-range
3797         * lib/strerror_r.c (strerror_r): Always use maximal string.
3798         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3799
3800         strerror_r: fix OpenBSD behavior on 0
3801         * lib/strerror-override.c (strerror_override): Also override 0
3802         when needed.
3803         * lib/strerror-override.h (strerror_override): Likewise.
3804         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3805         earlier.
3806         * lib/strerror_r.c (strerror_r): Likewise.
3807         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3808         behavior...
3809         (gl_FUNC_STRERROR_0): ...into new macro.
3810         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3811         is overridden.
3812         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3813         * modules/strerror-override (Files): Add strerror.m4.
3814         (configure.ac): Also provide override for 0 when needed.
3815         * doc/posix-functions/strerror.texi (strerror): Document this.
3816         * doc/posix-functions/perror.texi (perror): Likewise.
3817
3818         perror: adjust array size
3819         * modules/perror (Depends-on): Add strerror-override.
3820         * lib/perror.c (perror): Use it to avoid magic number.
3821
3822         strerror-override: reduce size
3823         * lib/strerror-override.c (strerror_override): Use fewer lines.
3824
3825 2011-06-20  Bruno Haible  <bruno@clisp.org>
3826
3827         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3828         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3829
3830 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3831
3832         alloca: port to compilers that can optimize like GCC 4.6.0
3833         * lib/alloca.c (find_stack_direction): New signature, taken from
3834         Autoconf git.  This works with GCC 4.6.0.  This code should never
3835         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3836         be used with other compilers that optimize as well as GCC 4.6.0 does.
3837         (alloca): Adjust to new signature.
3838         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3839         New macro, which patches Autoconf in a similar way.
3840
3841         c-stack: stop worrying about stack direction
3842         * lib/c-stack.c (find_stack_direction): Remove.
3843         (segv_handler): Don't worry about stack direction growth, as it's
3844         too much of a pain to configure this correctly, given how compilers
3845         are optimizing-away our stack-growth detection code.  Instead, assume
3846         that any access to just before or just after the stack is OK.
3847         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3848         Don't require AC_FUNC_ALLOCA; no longer needed.
3849
3850 2011-06-20  Eric Blake  <eblake@redhat.com>
3851
3852         test-stat: don't allocate PATH_MAX bytes
3853         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3854         PATH_MAX-sized buffer.
3855         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3856         * modules/stat-tests (Depends-on): Likewise.
3857         * tests/test-fstatat.c (includes): Drop pathmax.h.
3858         * tests/test-stat.c (includes): Likewise.
3859         Reported by Bruno Haible.
3860
3861 2011-06-20  Bruno Haible  <bruno@clisp.org>
3862
3863         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3864         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3865         * lib/float.c: New file.
3866         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3867         REPLACE_FLOAT_LDBL.
3868         * modules/float (Files): Add lib/float.c.
3869         (configure.ac): Invoke AC_LIBOBJ.
3870         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3871
3872 2011-06-20  Bruno Haible  <bruno@clisp.org>
3873
3874         Tests for module 'float'.
3875         * modules/float-tests: New file.
3876         * tests/test-float.c: New file.
3877
3878 2011-06-19  Bruno Haible  <bruno@clisp.org>
3879
3880         isinf: Coding style.
3881         * lib/isinf.c: Use GNU coding style.
3882
3883 2011-06-19  Bruno Haible  <bruno@clisp.org>
3884
3885         linkat test: Avoid test failure on AIX 7.1.
3886         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3887         * tests/test-link.h (test_link): Likewise.
3888
3889 2011-06-19  Bruno Haible  <bruno@clisp.org>
3890
3891         pread test: Avoid test failure on OpenBSD 4.9.
3892         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3893
3894 2011-06-19  Bruno Haible  <bruno@clisp.org>
3895
3896         sprintf-posix: Fix test failure on AIX 7.1.
3897         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3898         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3899         on AIX.
3900         * doc/posix-functions/fprintf.texi: Likewise.
3901         * doc/posix-functions/printf.texi: Likewise.
3902         * doc/posix-functions/snprintf.texi: Likewise.
3903         * doc/posix-functions/sprintf.texi: Likewise.
3904         * doc/posix-functions/vdprintf.texi: Likewise.
3905         * doc/posix-functions/vfprintf.texi: Likewise.
3906         * doc/posix-functions/vprintf.texi: Likewise.
3907         * doc/posix-functions/vsnprintf.texi: Likewise.
3908         * doc/posix-functions/vsprintf.texi: Likewise.
3909
3910 2011-06-19  Bruno Haible  <bruno@clisp.org>
3911
3912         roundl-ieee: Fix test failure on AIX 7.1.
3913         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3914         * doc/posix-functions/roundl.texi: Mention problem with negative
3915         arguments.
3916
3917 2011-06-19  Bruno Haible  <bruno@clisp.org>
3918
3919         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3920         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3921         * doc/posix-functions/round.texi: Mention problem with negative
3922         arguments.
3923         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3924
3925 2011-06-19  Bruno Haible  <bruno@clisp.org>
3926
3927         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3928         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3929         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3930         * doc/posix-functions/roundf.texi: Mention problem with negative
3931         arguments.
3932         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3933
3934 2011-06-19  Bruno Haible  <bruno@clisp.org>
3935
3936         ceilf-ieee: Work around bug on MacOS X 10.5.
3937         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3938
3939         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3940         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3941         IEEE compliant, avoid compiler optimizations.
3942         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3943         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3944         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3945         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3946         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3947         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3948         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3949         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3950         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3951         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3952
3953 2011-06-19  Bruno Haible  <bruno@clisp.org>
3954
3955         ceilf-ieee: Work around bug on AIX 7.1.
3956         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3957         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3958
3959 2011-06-19  Bruno Haible  <bruno@clisp.org>
3960
3961         ceil-ieee: Work around bug on AIX 7.1.
3962         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3963         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3964
3965 2011-06-18  Bruno Haible  <bruno@clisp.org>
3966
3967         fsync test: Avoid test failure on MacOS X and AIX.
3968         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3969         EINVAL.
3970
3971 2011-06-18  Bruno Haible  <bruno@clisp.org>
3972
3973         openat, fdopendir tests: Fix link errors.
3974         * modules/openat-tests (Depends-on): Add progname.
3975         * modules/fdopendir-tests (Depends-on): Likewise.
3976         * tests/test-fchownat.c: Include progname.h.
3977         (main): Call set_program_name.
3978         * tests/test-fstatat.c: Include progname.h.
3979         (main): Call set_program_name.
3980         * tests/test-mkdirat.c: Include progname.h.
3981         (main): Call set_program_name.
3982         * tests/test-openat.c: Include progname.h.
3983         (main): Call set_program_name.
3984         * tests/test-unlinkat.c: Include progname.h.
3985         (main): Call set_program_name.
3986         * tests/test-fdopendir.c: Include progname.h.
3987         (main): Call set_program_name.
3988
3989 2011-06-18  Bruno Haible  <bruno@clisp.org>
3990
3991         Doc update.
3992         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3993         HP-UX.
3994         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3995
3996 2011-06-18  Bruno Haible  <bruno@clisp.org>
3997
3998         getcwd tests: Avoid compilation error on HP-UX 11.31.
3999         * modules/getcwd-tests (Depends-on): Add pathmax.
4000         * tests/test-getcwd.c: Include pathmax.h.
4001
4002 2011-06-18  Bruno Haible  <bruno@clisp.org>
4003
4004         isfinite, isinf: Fix link error on AIX 6 and 7.
4005         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
4006         needed, also test the macro with a 'float' argument.
4007         * m4/isinf.m4 (gl_ISINF): Likewise.
4008
4009 2011-06-18  Bruno Haible  <bruno@clisp.org>
4010
4011         getloadavg: Don't clobber LIBS. Regression from previous commit.
4012         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
4013         AC_CHECK_LIB from here...
4014         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
4015         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
4016         gl_func_getloadavg_done.
4017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4018
4019 2011-06-18  Bruno Haible  <bruno@clisp.org>
4020
4021         clean-temp: Improve documentation.
4022         * lib/clean-temp.h: Explain better how to use this module.
4023         Reported by John Darrington <john@darrington.wattle.id.au>.
4024
4025 2011-06-17  Bruno Haible  <bruno@clisp.org>
4026
4027         pread, pwrite: Avoid cc warning on AIX.
4028         * lib/unistd.in.h (pread): Undefine before defining as a macro.
4029         (pwrite): Likewise.
4030
4031 2011-06-17  Bruno Haible  <bruno@clisp.org>
4032
4033         spawn-pipe tests: Fix link error.
4034         * tests/test-spawn-pipe-child.c: Undefine fprintf.
4035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4036
4037 2011-06-17  Bruno Haible  <bruno@clisp.org>
4038
4039         Tests: Remove unnecessary dependency.
4040         * modules/canonicalize-tests (Depends-on): Remove progname.
4041         * modules/chown-tests (Depends-on): Likewise.
4042         * modules/dirname-tests (Depends-on): Likewise.
4043         * modules/fdopendir-tests (Depends-on): Likewise.
4044         * modules/fdutimensat-tests (Depends-on): Likewise.
4045         * modules/hash-tests (Depends-on): Likewise.
4046         * modules/lchown-tests (Depends-on): Likewise.
4047         * modules/linkat-tests (Depends-on): Likewise.
4048         * modules/renameat-tests (Depends-on): Likewise.
4049         * modules/spawn-pipe-tests (Depends-on): Likewise.
4050         * modules/utimensat-tests (Depends-on): Likewise.
4051
4052 2011-06-17  Bruno Haible  <bruno@clisp.org>
4053
4054         spawn-pipe tests: Fix link error.
4055         * tests/test-spawn-pipe-child.c: Undefine fflush.
4056
4057 2011-06-17  Bruno Haible  <bruno@clisp.org>
4058
4059         Fix tests link errors.
4060         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
4061         * modules/chown-tests (Makefile.am): Don't link test-chown with
4062         LIBINTL.
4063         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
4064         LIBINTL.
4065         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
4066         LIBINTL.
4067         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
4068         LIBINTL.
4069
4070 2011-06-16  Bruno Haible  <bruno@clisp.org>
4071
4072         crypto/gc-sha1: Fix recent regression.
4073         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
4074         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
4075
4076         crypto/gc-md5: Fix recent regression.
4077         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
4078
4079         crypto/gc-md4: Fix recent regression.
4080         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
4081         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
4082
4083         crypto/gc-arctwo: Fix recent regression.
4084         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
4085         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
4086
4087         crypto/gc-rijndael: Fix recent regression.
4088         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
4089         (configure.ac): Invoke AC_LIBOBJ here.
4090         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
4091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4092
4093         crypto/gc-hmac-sha1: Fix recent regression.
4094         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
4095         (configure.ac): Invoke AC_LIBOBJ here.
4096         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
4097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4098
4099         crypto/gc-hmac-md5: Fix recent regression.
4100         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
4101         (configure.ac): Invoke AC_LIBOBJ here.
4102         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
4103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4104
4105         crypto/gc-des: Fix recent regression.
4106         * modules/crypto/gc-des (Files): Remove m4/des.m4.
4107         (configure.ac): Invoke AC_LIBOBJ here.
4108         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
4109         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4110
4111         crypto/gc-arcfour: Fix recent regression.
4112         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
4113         (configure.ac): Invoke AC_LIBOBJ here.
4114         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
4115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4116
4117 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4118
4119         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
4120         After the 2011-05-21 change, this macro requires
4121         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
4122         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4123
4124 2011-06-16  Bruno Haible  <bruno@clisp.org>
4125
4126         fprintftime: Move AC_LIBOBJ invocations to module description.
4127         * m4/fprintftime.m4: Remove file.
4128         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
4129         (configure.ac): Remove gl_FPRINTFTIME call.
4130         (Makefile.am): Augment lib_SOURCES.
4131         Reported by Jim Meyering.
4132
4133 2011-06-16  Bruno Haible  <bruno@clisp.org>
4134
4135         tmpfile-safer: Finish 2011-05-23 commit.
4136         * m4/stdio-safer.m4: Really remove file.
4137         Reported by Jim Meyering.
4138
4139 2011-06-16  Bruno Haible  <bruno@clisp.org>
4140
4141         syntax-check: Fix typo.
4142         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
4143         printf-posix.m4.
4144         Reported by Jim Meyering.
4145
4146 2011-06-13  Jim Meyering  <meyering@redhat.com>
4147
4148         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
4149         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
4150
4151 2011-05-23  Bruno Haible  <bruno@clisp.org>
4152
4153         yesno: Move AC_LIBOBJ invocations to module description.
4154         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
4155         * modules/yesno (Makefile.am): Augment lib_SOURCES.
4156
4157 2011-05-23  Bruno Haible  <bruno@clisp.org>
4158
4159         xstrtol: Move AC_LIBOBJ invocations to module description.
4160         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
4161         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
4162
4163 2011-05-23  Bruno Haible  <bruno@clisp.org>
4164
4165         xstrtold: Move AC_LIBOBJ invocations to module description.
4166         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
4167         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
4168
4169 2011-05-23  Bruno Haible  <bruno@clisp.org>
4170
4171         xstrtod: Move AC_LIBOBJ invocations to module description.
4172         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
4173         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
4174
4175 2011-05-23  Bruno Haible  <bruno@clisp.org>
4176
4177         xnanosleep: Move AC_LIBOBJ invocations to module description.
4178         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
4179         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
4180
4181 2011-05-23  Bruno Haible  <bruno@clisp.org>
4182
4183         xgetcwd: Move AC_LIBOBJ invocations to module description.
4184         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
4185         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
4186
4187 2011-05-23  Bruno Haible  <bruno@clisp.org>
4188
4189         xalloc: Move AC_LIBOBJ invocations to module description.
4190         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
4191         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
4192
4193 2011-05-23  Bruno Haible  <bruno@clisp.org>
4194
4195         write-any-file: Move AC_LIBOBJ invocations to module description.
4196         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
4197         invocation.
4198         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
4199
4200 2011-05-23  Bruno Haible  <bruno@clisp.org>
4201
4202         utimens: Move AC_LIBOBJ invocations to module description.
4203         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
4204         * modules/utimens (Makefile.am): Augment lib_SOURCES.
4205
4206 2011-05-23  Bruno Haible  <bruno@clisp.org>
4207
4208         utimecmp: Move AC_LIBOBJ invocations to module description.
4209         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
4210         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
4211
4212 2011-05-23  Bruno Haible  <bruno@clisp.org>
4213
4214         userspec: Move AC_LIBOBJ invocations to module description.
4215         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
4216         * modules/userspec (Makefile.am): Augment lib_SOURCES.
4217
4218 2011-05-23  Bruno Haible  <bruno@clisp.org>
4219
4220         unlinkdir: Move AC_LIBOBJ invocations to module description.
4221         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
4222         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
4223
4224 2011-05-23  Bruno Haible  <bruno@clisp.org>
4225
4226         unistd-safer: Move AC_LIBOBJ invocations to module description.
4227         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
4228         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
4229
4230 2011-05-23  Bruno Haible  <bruno@clisp.org>
4231
4232         tempname: Move AC_LIBOBJ invocations to module description.
4233         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
4234         * modules/tempname (Makefile.am): Augment lib_SOURCES.
4235
4236 2011-05-23  Bruno Haible  <bruno@clisp.org>
4237
4238         strftime: Move AC_LIBOBJ invocations to module description.
4239         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
4240         * modules/strftime (Makefile.am): Augment lib_SOURCES.
4241
4242 2011-05-23  Bruno Haible  <bruno@clisp.org>
4243
4244         stdlib-safer: Move AC_LIBOBJ invocations to module description.
4245         * m4/stdlib-safer.m4: Remove file.
4246         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
4247         (configure.ac): Remove gl_STDLIB_SAFER call.
4248         (Makefile.am): Augment lib_SOURCES.
4249
4250 2011-05-23  Bruno Haible  <bruno@clisp.org>
4251
4252         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
4253         * m4/stdio-safer.m4: Remove file.
4254         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
4255         (configure.ac): Remove gl_TMPFILE_SAFER call.
4256         (Makefile.am): Augment lib_SOURCES.
4257
4258 2011-05-23  Bruno Haible  <bruno@clisp.org>
4259
4260         popen-safer: Move AC_LIBOBJ invocations to module description.
4261         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
4262         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
4263         (configure.ac): Remove gl_POPEN_SAFER call.
4264         (Makefile.am): Augment lib_SOURCES.
4265
4266 2011-05-23  Bruno Haible  <bruno@clisp.org>
4267
4268         freopen-safer: Move AC_LIBOBJ invocations to module description.
4269         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
4270         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
4271         (configure.ac): Remove gl_FREOPEN_SAFER call.
4272         (Makefile.am): Augment lib_SOURCES.
4273
4274 2011-05-23  Bruno Haible  <bruno@clisp.org>
4275
4276         fopen-safer: Move AC_LIBOBJ invocations to module description.
4277         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
4278         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
4279         (configure.ac): Remove gl_FOPEN_SAFER call.
4280         (Makefile.am): Augment lib_SOURCES.
4281
4282 2011-05-23  Bruno Haible  <bruno@clisp.org>
4283
4284         crypto/sha512: Move AC_LIBOBJ invocations to module description.
4285         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
4286         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
4287
4288 2011-05-23  Bruno Haible  <bruno@clisp.org>
4289
4290         crypto/sha256: Move AC_LIBOBJ invocations to module description.
4291         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
4292         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
4293
4294 2011-05-23  Bruno Haible  <bruno@clisp.org>
4295
4296         crypto/sha1: Move AC_LIBOBJ invocations to module description.
4297         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
4298         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
4299
4300 2011-05-23  Bruno Haible  <bruno@clisp.org>
4301
4302         settime: Move AC_LIBOBJ invocations to module description.
4303         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
4304         * modules/settime (Makefile.am): Augment lib_SOURCES.
4305
4306 2011-05-23  Bruno Haible  <bruno@clisp.org>
4307
4308         savedir: Move AC_LIBOBJ invocations to module description.
4309         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
4310         * modules/savedir (Makefile.am): Augment lib_SOURCES.
4311
4312 2011-05-23  Bruno Haible  <bruno@clisp.org>
4313
4314         save-cwd: Move AC_LIBOBJ invocations to module description.
4315         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
4316         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
4317
4318 2011-05-23  Bruno Haible  <bruno@clisp.org>
4319
4320         same: Move AC_LIBOBJ invocations to module description.
4321         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
4322         * modules/same (Makefile.am): Augment lib_SOURCES.
4323
4324 2011-05-23  Bruno Haible  <bruno@clisp.org>
4325
4326         safe-write: Move AC_LIBOBJ invocations to module description.
4327         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
4328         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
4329         instead of gl_SAFE_WRITE.
4330         (Makefile.am): Augment lib_SOURCES.
4331
4332 2011-05-23  Bruno Haible  <bruno@clisp.org>
4333
4334         safe-read: Move AC_LIBOBJ invocations to module description.
4335         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
4336         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
4337         of gl_SAFE_READ.
4338         (Makefile.am): Augment lib_SOURCES.
4339
4340 2011-05-23  Bruno Haible  <bruno@clisp.org>
4341
4342         safe-alloc: Move AC_LIBOBJ invocations to module description.
4343         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
4344         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
4345
4346 2011-05-23  Bruno Haible  <bruno@clisp.org>
4347
4348         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
4349         * m4/rijndael.m4: Remove file.
4350         * modules/crypto/rijndael (Files): Remove it.
4351         (configure.ac): Remove gl_RIJNDAEL call.
4352         (Makefile.am): Augment lib_SOURCES.
4353
4354 2011-05-23  Bruno Haible  <bruno@clisp.org>
4355
4356         readtokens: Move AC_LIBOBJ invocations to module description.
4357         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
4358         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
4359
4360 2011-05-23  Bruno Haible  <bruno@clisp.org>
4361
4362         read-file: Move AC_LIBOBJ invocations to module description.
4363         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
4364         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
4365         of gl_FUNC_READ_FILE.
4366         (Makefile.am): Augment lib_SOURCES.
4367
4368 2011-05-23  Bruno Haible  <bruno@clisp.org>
4369
4370         quotearg: Move AC_LIBOBJ invocations to module description.
4371         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
4372         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
4373
4374 2011-05-23  Bruno Haible  <bruno@clisp.org>
4375
4376         quote: Move AC_LIBOBJ invocations to module description.
4377         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
4378         * modules/quote (Makefile.am): Augment lib_SOURCES.
4379
4380 2011-05-23  Bruno Haible  <bruno@clisp.org>
4381
4382         posixver: Move AC_LIBOBJ invocations to module description.
4383         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
4384         * modules/posixver (Makefile.am): Augment lib_SOURCES.
4385
4386 2011-05-23  Bruno Haible  <bruno@clisp.org>
4387
4388         posixtm: Move AC_LIBOBJ invocations to module description.
4389         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
4390         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
4391
4392 2011-05-23  Bruno Haible  <bruno@clisp.org>
4393
4394         physmem: Move AC_LIBOBJ invocations to module description.
4395         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
4396         * modules/physmem (Makefile.am): Augment lib_SOURCES.
4397
4398 2011-05-23  Bruno Haible  <bruno@clisp.org>
4399
4400         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
4401         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
4402         invocation.
4403         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
4404
4405 2011-05-23  Bruno Haible  <bruno@clisp.org>
4406
4407         mpsort: Move AC_LIBOBJ invocations to module description.
4408         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
4409         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
4410
4411 2011-05-23  Bruno Haible  <bruno@clisp.org>
4412
4413         modechange: Move AC_LIBOBJ invocations to module description.
4414         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
4415         * modules/modechange (Makefile.am): Augment lib_SOURCES.
4416
4417 2011-05-23  Bruno Haible  <bruno@clisp.org>
4418
4419         mkdir-p: Move AC_LIBOBJ invocations to module description.
4420         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
4421         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
4422
4423 2011-05-23  Bruno Haible  <bruno@clisp.org>
4424
4425         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4426         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
4427         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
4428
4429 2011-05-23  Bruno Haible  <bruno@clisp.org>
4430
4431         mgetgroups: Move AC_LIBOBJ invocations to module description.
4432         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
4433         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
4434
4435 2011-05-23  Bruno Haible  <bruno@clisp.org>
4436
4437         memxor: Move AC_LIBOBJ invocations to module description.
4438         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
4439         * modules/memxor (Makefile.am): Augment lib_SOURCES.
4440
4441 2011-05-23  Bruno Haible  <bruno@clisp.org>
4442
4443         memcoll: Move AC_LIBOBJ invocations to module description.
4444         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
4445         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
4446
4447 2011-05-23  Bruno Haible  <bruno@clisp.org>
4448
4449         memcasecmp: Move AC_LIBOBJ invocations to module description.
4450         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
4451         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
4452
4453 2011-05-23  Bruno Haible  <bruno@clisp.org>
4454
4455         crypto/md5: Move AC_LIBOBJ invocations to module description.
4456         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
4457         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
4458
4459 2011-05-23  Bruno Haible  <bruno@clisp.org>
4460
4461         crypto/md4: Move AC_LIBOBJ invocations to module description.
4462         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
4463         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
4464
4465 2011-05-23  Bruno Haible  <bruno@clisp.org>
4466
4467         crypto/md2: Move AC_LIBOBJ invocations to module description.
4468         * m4/md2.m4: Remove file.
4469         * modules/crypto/md2 (Files): Remove it.
4470         (configure.ac): Remove gl_MD2 call.
4471         (Makefile.am): Augment lib_SOURCES.
4472
4473 2011-05-23  Bruno Haible  <bruno@clisp.org>
4474
4475         long-options: Move AC_LIBOBJ invocations to module description.
4476         * m4/long-options.m4: Remove file.
4477         * modules/long-options (Files): Remove it.
4478         (configure.ac): Remove gl_LONG_OPTIONS call.
4479         (Makefile.am): Augment lib_SOURCES.
4480
4481 2011-05-23  Bruno Haible  <bruno@clisp.org>
4482
4483         i-ring: Move AC_LIBOBJ invocations to module description.
4484         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
4485         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
4486
4487 2011-05-23  Bruno Haible  <bruno@clisp.org>
4488
4489         idcache: Move AC_LIBOBJ invocations to module description.
4490         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
4491         * modules/idcache (Makefile.am): Augment lib_SOURCES.
4492
4493 2011-05-23  Bruno Haible  <bruno@clisp.org>
4494
4495         human: Move AC_LIBOBJ invocations to module description.
4496         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
4497         * modules/human (Makefile.am): Augment lib_SOURCES.
4498
4499 2011-05-23  Bruno Haible  <bruno@clisp.org>
4500
4501         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4502         * m4/hmac-sha1.m4: Remove file.
4503         * modules/crypto/hmac-sha1 (Files): Remove it.
4504         (configure.ac): Remove gl_HMAC_SHA1 call.
4505         (Makefile.am): Augment lib_SOURCES.
4506
4507 2011-05-23  Bruno Haible  <bruno@clisp.org>
4508
4509         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
4510         * m4/hmac-md5.m4: Remove file.
4511         * modules/crypto/hmac-md5 (Files): Remove it.
4512         (configure.ac): Remove gl_HMAC_MD5 call.
4513         (Makefile.am): Augment lib_SOURCES.
4514
4515 2011-05-23  Bruno Haible  <bruno@clisp.org>
4516
4517         hash: Move AC_LIBOBJ invocations to module description.
4518         * m4/hash.m4: Remove file.
4519         * modules/hash (Files): Remove it.
4520         (configure.ac): Remove gl_HASH call.
4521         (Makefile.am): Augment lib_SOURCES.
4522
4523 2011-05-23  Bruno Haible  <bruno@clisp.org>
4524
4525         hard-locale: Move AC_LIBOBJ invocations to module description.
4526         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4527         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4528
4529 2011-05-23  Bruno Haible  <bruno@clisp.org>
4530
4531         getugroups: Move AC_LIBOBJ invocations to module description.
4532         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4533         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4534
4535 2011-05-23  Bruno Haible  <bruno@clisp.org>
4536
4537         gettime: Move AC_LIBOBJ invocations to module description.
4538         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4539         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4540
4541 2011-05-23  Bruno Haible  <bruno@clisp.org>
4542
4543         getndelim2: Move AC_LIBOBJ invocations to module description.
4544         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4545         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4546
4547 2011-05-23  Bruno Haible  <bruno@clisp.org>
4548
4549         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4550         * m4/gc-pbkdf2-sha1.m4: Remove file.
4551         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4552         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4553         (Makefile.am): Augment lib_SOURCES.
4554
4555 2011-05-23  Bruno Haible  <bruno@clisp.org>
4556
4557         fts: Move AC_LIBOBJ invocations to module description.
4558         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4559         * modules/fts (configure.ac): ... to here.
4560
4561 2011-05-23  Bruno Haible  <bruno@clisp.org>
4562
4563         file-type: Move AC_LIBOBJ invocations to module description.
4564         * m4/file-type.m4: Remove file.
4565         * modules/file-type (Files): Remove it.
4566         (configure.ac): Remove gl_FILE_TYPE call.
4567         (Makefile.am): Augment lib_SOURCES.
4568
4569 2011-05-23  Bruno Haible  <bruno@clisp.org>
4570
4571         filenamecat*: Respect rules for use of AC_LIBOBJ.
4572         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4573         Remove AC_LIBOBJ invocation.
4574         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4575         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4576
4577 2011-05-23  Bruno Haible  <bruno@clisp.org>
4578
4579         filemode: Move AC_LIBOBJ invocations to module description.
4580         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4581         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4582
4583 2011-05-23  Bruno Haible  <bruno@clisp.org>
4584
4585         openat-safer: Move AC_LIBOBJ invocations to module description.
4586         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4587         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4588
4589 2011-05-23  Bruno Haible  <bruno@clisp.org>
4590
4591         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4592         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4593         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4594
4595 2011-05-23  Bruno Haible  <bruno@clisp.org>
4596
4597         exclude: Move AC_LIBOBJ invocations to module description.
4598         * m4/exclude.m4: Remove file.
4599         * modules/exclude (Files): Remove it.
4600         (configure.ac): Remove gl_EXCLUDE call.
4601         (Makefile.am): Augment lib_SOURCES.
4602
4603 2011-05-23  Bruno Haible  <bruno@clisp.org>
4604
4605         dirname*: Respect rules for use of AC_LIBOBJ.
4606         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4607         invocations.
4608         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4609         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4610
4611 2011-05-23  Bruno Haible  <bruno@clisp.org>
4612
4613         dirent-safer: Move AC_LIBOBJ invocations to module description.
4614         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4615         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4616
4617 2011-05-23  Bruno Haible  <bruno@clisp.org>
4618
4619         crypto/des: Move AC_LIBOBJ invocations to module description.
4620         * m4/des.m4: Remove file.
4621         * modules/crypto/des (Files): Remove it.
4622         (configure.ac): Remove gl_DES call.
4623         (Makefile.am): Augment lib_SOURCES.
4624
4625 2011-05-23  Bruno Haible  <bruno@clisp.org>
4626
4627         cycle-check: Move AC_LIBOBJ invocations to module description.
4628         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4629         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4630
4631 2011-05-23  Bruno Haible  <bruno@clisp.org>
4632
4633         c-strtold: Move AC_LIBOBJ invocations to module description.
4634         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4635         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4636
4637 2011-05-23  Bruno Haible  <bruno@clisp.org>
4638
4639         c-strtod: Move AC_LIBOBJ invocations to module description.
4640         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4641         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4642
4643 2011-05-23  Bruno Haible  <bruno@clisp.org>
4644
4645         crc: Move AC_LIBOBJ invocations to module description.
4646         * m4/crc.m4: Remove file.
4647         * modules/crc (Files): Remove it.
4648         (configure.ac): Remove gl_CRC call.
4649         (Makefile.am): Augment lib_SOURCES.
4650
4651 2011-05-23  Bruno Haible  <bruno@clisp.org>
4652
4653         close-stream: Move AC_LIBOBJ invocations to module description.
4654         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4655         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4656
4657 2011-05-23  Bruno Haible  <bruno@clisp.org>
4658
4659         closeout: Move AC_LIBOBJ invocations to module description.
4660         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4661         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4662
4663 2011-05-23  Bruno Haible  <bruno@clisp.org>
4664
4665         closein: Move AC_LIBOBJ invocations to module description.
4666         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4667         * modules/closein (Makefile.am): Augment lib_SOURCES.
4668
4669 2011-05-23  Bruno Haible  <bruno@clisp.org>
4670
4671         cloexec: Move AC_LIBOBJ invocations to module description.
4672         * m4/cloexec.m4: Remove file.
4673         * modules/cloexec (Files): Remove it.
4674         (configure.ac): Remove gl_CLOEXEC call.
4675         (Makefile.am): Augment lib_SOURCES.
4676
4677 2011-05-23  Bruno Haible  <bruno@clisp.org>
4678
4679         check-version: Move AC_LIBOBJ invocations to module description.
4680         * m4/check-version.m4: Remove file.
4681         * modules/check-version (Files): Remove it.
4682         (configure.ac): Remove gl_CHECK_VERSION call.
4683         (Makefile.am): Augment lib_SOURCES.
4684
4685 2011-05-23  Bruno Haible  <bruno@clisp.org>
4686
4687         chdir-safer: Move AC_LIBOBJ invocations to module description.
4688         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4689         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4690
4691 2011-05-23  Bruno Haible  <bruno@clisp.org>
4692
4693         canonicalize: Move AC_LIBOBJ invocations to module description.
4694         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4695         AC_LIBOBJ invocation.
4696         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4697
4698 2011-05-23  Bruno Haible  <bruno@clisp.org>
4699
4700         canon-host: Move AC_LIBOBJ invocations to module description.
4701         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4702         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4703         instead of gl_CANON_HOST.
4704         (Makefile.am): Augment lib_SOURCES.
4705
4706 2011-05-23  Bruno Haible  <bruno@clisp.org>
4707
4708         backupfile: Move AC_LIBOBJ invocations to module description.
4709         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4710         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4711
4712 2011-05-23  Bruno Haible  <bruno@clisp.org>
4713
4714         argmatch: Move AC_LIBOBJ invocations to module description.
4715         * m4/argmatch.m4: Remove file.
4716         * modules/argmatch (Files): Remove it.
4717         (configure.ac): Remove gl_ARGMATCH call.
4718         (Makefile.am): Augment lib_SOURCES.
4719
4720 2011-05-23  Bruno Haible  <bruno@clisp.org>
4721
4722         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4723         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4724         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4725
4726 2011-05-23  Bruno Haible  <bruno@clisp.org>
4727
4728         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4729         * m4/arcfour.m4: Remove file.
4730         * modules/crypto/arcfour (Files): Remove it.
4731         (configure.ac): Remove gl_ARCFOUR call.
4732         (Makefile.am): Augment lib_SOURCES.
4733
4734 2011-05-22  Bruno Haible  <bruno@clisp.org>
4735
4736         write: Move AC_LIBOBJ invocations to module description.
4737         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4738         * modules/write (configure.ac): ... to here.
4739
4740 2011-05-22  Bruno Haible  <bruno@clisp.org>
4741
4742         wmemset: Move AC_LIBOBJ invocations to module description.
4743         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4744         here...
4745         * modules/wmemset (configure.ac): ... to here.
4746
4747 2011-05-22  Bruno Haible  <bruno@clisp.org>
4748
4749         wmemmove: Move AC_LIBOBJ invocations to module description.
4750         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4751         here...
4752         * modules/wmemmove (configure.ac): ... to here.
4753
4754 2011-05-22  Bruno Haible  <bruno@clisp.org>
4755
4756         wmemcpy: Move AC_LIBOBJ invocations to module description.
4757         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4758         here...
4759         * modules/wmemcpy (configure.ac): ... to here.
4760
4761 2011-05-22  Bruno Haible  <bruno@clisp.org>
4762
4763         wmemcmp: Move AC_LIBOBJ invocations to module description.
4764         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4765         here...
4766         * modules/wmemcmp (configure.ac): ... to here.
4767
4768 2011-05-22  Bruno Haible  <bruno@clisp.org>
4769
4770         wmemchr: Move AC_LIBOBJ invocations to module description.
4771         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4772         here...
4773         * modules/wmemchr (configure.ac): ... to here.
4774
4775 2011-05-22  Bruno Haible  <bruno@clisp.org>
4776
4777         wcswidth: Move AC_LIBOBJ invocations to module description.
4778         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4779         here...
4780         * modules/wcswidth (configure.ac): ... to here.
4781
4782 2011-05-22  Bruno Haible  <bruno@clisp.org>
4783
4784         wcwidth: Respect rules for use of AC_LIBOBJ.
4785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4786         invocation from here...
4787         * modules/wcwidth (configure.ac): ... to here.
4788         (Depends-on): Update conditions.
4789
4790 2011-05-22  Bruno Haible  <bruno@clisp.org>
4791
4792         wctype: Move AC_LIBOBJ invocations to module description.
4793         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4794         invocation from here...
4795         * modules/wctype (configure.ac): ... to here.
4796         (Depends-on): Update conditions.
4797
4798 2011-05-22  Bruno Haible  <bruno@clisp.org>
4799
4800         wctrans: Move AC_LIBOBJ invocations to module description.
4801         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4802         invocation from here...
4803         * modules/wctrans (configure.ac): ... to here.
4804
4805 2011-05-22  Bruno Haible  <bruno@clisp.org>
4806
4807         wctomb: Move AC_LIBOBJ invocations to module description.
4808         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4809         invocations from here...
4810         * modules/wctomb (configure.ac): ... to here.
4811
4812 2011-05-22  Bruno Haible  <bruno@clisp.org>
4813
4814         wctob: Move AC_LIBOBJ invocations to module description.
4815         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4816         gl_PREREQ_WCTOB invocations from here...
4817         * modules/wctob (configure.ac): ... to here.
4818         (Depends-on): Update conditions.
4819
4820 2011-05-22  Bruno Haible  <bruno@clisp.org>
4821
4822         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4823         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4824         here...
4825         * modules/wcsxfrm (configure.ac): ... to here.
4826
4827 2011-05-22  Bruno Haible  <bruno@clisp.org>
4828
4829         wcstok: Move AC_LIBOBJ invocations to module description.
4830         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4831         * modules/wcstok (configure.ac): ... to here.
4832
4833 2011-05-22  Bruno Haible  <bruno@clisp.org>
4834
4835         wcsstr: Move AC_LIBOBJ invocations to module description.
4836         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4837         * modules/wcsstr (configure.ac): ... to here.
4838
4839 2011-05-22  Bruno Haible  <bruno@clisp.org>
4840
4841         wcsspn: Move AC_LIBOBJ invocations to module description.
4842         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4843         * modules/wcsspn (configure.ac): ... to here.
4844
4845 2011-05-22  Bruno Haible  <bruno@clisp.org>
4846
4847         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4848         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4849         gl_PREREQ_WCSRTOMBS invocations from here...
4850         * modules/wcsrtombs (configure.ac): ... to here.
4851
4852 2011-05-22  Bruno Haible  <bruno@clisp.org>
4853
4854         wcsrchr: Move AC_LIBOBJ invocations to module description.
4855         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4856         here...
4857         * modules/wcsrchr (configure.ac): ... to here.
4858
4859 2011-05-22  Bruno Haible  <bruno@clisp.org>
4860
4861         wcspbrk: Move AC_LIBOBJ invocations to module description.
4862         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4863         here...
4864         * modules/wcspbrk (configure.ac): ... to here.
4865
4866 2011-05-22  Bruno Haible  <bruno@clisp.org>
4867
4868         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4869         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4870         gl_PREREQ_WCSNRTOMBS invocations from here...
4871         * modules/wcsnrtombs (configure.ac): ... to here.
4872
4873 2011-05-22  Bruno Haible  <bruno@clisp.org>
4874
4875         wcsnlen: Move AC_LIBOBJ invocations to module description.
4876         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4877         here...
4878         * modules/wcsnlen (configure.ac): ... to here.
4879
4880 2011-05-22  Bruno Haible  <bruno@clisp.org>
4881
4882         wcsncpy: Move AC_LIBOBJ invocations to module description.
4883         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4884         here...
4885         * modules/wcsncpy (configure.ac): ... to here.
4886
4887 2011-05-22  Bruno Haible  <bruno@clisp.org>
4888
4889         wcsncmp: Move AC_LIBOBJ invocations to module description.
4890         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4891         here...
4892         * modules/wcsncmp (configure.ac): ... to here.
4893
4894 2011-05-22  Bruno Haible  <bruno@clisp.org>
4895
4896         wcsncat: Move AC_LIBOBJ invocations to module description.
4897         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4898         here...
4899         * modules/wcsncat (configure.ac): ... to here.
4900
4901 2011-05-22  Bruno Haible  <bruno@clisp.org>
4902
4903         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4904         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4905         from here...
4906         * modules/wcsncasecmp (configure.ac): ... to here.
4907
4908 2011-05-22  Bruno Haible  <bruno@clisp.org>
4909
4910         wcslen: Move AC_LIBOBJ invocations to module description.
4911         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4912         * modules/wcslen (configure.ac): ... to here.
4913
4914 2011-05-22  Bruno Haible  <bruno@clisp.org>
4915
4916         wcsdup: Move AC_LIBOBJ invocations to module description.
4917         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4918         * modules/wcsdup (configure.ac): ... to here.
4919
4920 2011-05-22  Bruno Haible  <bruno@clisp.org>
4921
4922         wcscspn: Move AC_LIBOBJ invocations to module description.
4923         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4924         here...
4925         * modules/wcscspn (configure.ac): ... to here.
4926
4927 2011-05-22  Bruno Haible  <bruno@clisp.org>
4928
4929         wcscpy: Move AC_LIBOBJ invocations to module description.
4930         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4931         * modules/wcscpy (configure.ac): ... to here.
4932
4933 2011-05-22  Bruno Haible  <bruno@clisp.org>
4934
4935         wcscoll: Move AC_LIBOBJ invocations to module description.
4936         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4937         here...
4938         * modules/wcscoll (configure.ac): ... to here.
4939
4940 2011-05-22  Bruno Haible  <bruno@clisp.org>
4941
4942         wcscmp: Move AC_LIBOBJ invocations to module description.
4943         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4944         * modules/wcscmp (configure.ac): ... to here.
4945
4946 2011-05-22  Bruno Haible  <bruno@clisp.org>
4947
4948         wcschr: Move AC_LIBOBJ invocations to module description.
4949         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4950         * modules/wcschr (configure.ac): ... to here.
4951
4952 2011-05-22  Bruno Haible  <bruno@clisp.org>
4953
4954         wcscat: Move AC_LIBOBJ invocations to module description.
4955         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4956         * modules/wcscat (configure.ac): ... to here.
4957
4958 2011-05-22  Bruno Haible  <bruno@clisp.org>
4959
4960         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4961         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4962         here...
4963         * modules/wcscasecmp (configure.ac): ... to here.
4964
4965 2011-05-22  Bruno Haible  <bruno@clisp.org>
4966
4967         wcrtomb: Move AC_LIBOBJ invocations to module description.
4968         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4969         invocations from here...
4970         * modules/wcrtomb (configure.ac): ... to here.
4971
4972 2011-05-22  Bruno Haible  <bruno@clisp.org>
4973
4974         wcpncpy: Move AC_LIBOBJ invocations to module description.
4975         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4976         here...
4977         * modules/wcpncpy (configure.ac): ... to here.
4978
4979 2011-05-22  Bruno Haible  <bruno@clisp.org>
4980
4981         wcpcpy: Move AC_LIBOBJ invocations to module description.
4982         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4983         * modules/wcpcpy (configure.ac): ... to here.
4984
4985 2011-05-22  Bruno Haible  <bruno@clisp.org>
4986
4987         waitpid: Move AC_LIBOBJ invocations to module description.
4988         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4989         invocation from here...
4990         * modules/waitpid (configure.ac): ... to here.
4991
4992 2011-05-22  Bruno Haible  <bruno@clisp.org>
4993
4994         utimensat: Move AC_LIBOBJ invocations to module description.
4995         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4996         here...
4997         * modules/utimensat (configure.ac): ... to here.
4998
4999 2011-05-22  Bruno Haible  <bruno@clisp.org>
5000
5001         usleep: Move AC_LIBOBJ invocations to module description.
5002         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
5003         here...
5004         * modules/usleep (configure.ac): ... to here.
5005
5006 2011-05-22  Bruno Haible  <bruno@clisp.org>
5007
5008         unlockpt: Move AC_LIBOBJ invocations to module description.
5009         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
5010         gl_PREREQ_UNLOCKPT invocations from here...
5011         * modules/unlockpt (configure.ac): ... to here.
5012
5013 2011-05-22  Bruno Haible  <bruno@clisp.org>
5014
5015         unlink: Respect rules for use of AC_LIBOBJ.
5016         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
5017         * modules/unlink (configure.ac): ... to here.
5018
5019 2011-05-22  Bruno Haible  <bruno@clisp.org>
5020
5021         uname: Move AC_LIBOBJ invocations to module description.
5022         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
5023         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
5024         here...
5025         * modules/uname (configure.ac): ... to here.
5026
5027 2011-05-22  Bruno Haible  <bruno@clisp.org>
5028
5029         ttyname_r: Move AC_LIBOBJ invocations to module description.
5030         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
5031         gl_PREREQ_TTYNAME_R invocations from here...
5032         * modules/ttyname_r (configure.ac): ... to here.
5033
5034 2011-05-22  Bruno Haible  <bruno@clisp.org>
5035
5036         tsearch: Move AC_LIBOBJ invocations to module description.
5037         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
5038         invocations from here...
5039         * modules/tsearch (configure.ac): ... to here.
5040
5041 2011-05-22  Bruno Haible  <bruno@clisp.org>
5042
5043         towctrans: Move AC_LIBOBJ invocations to module description.
5044         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
5045         AC_LIBOBJ invocation from here...
5046         * modules/towctrans (configure.ac): ... to here.
5047
5048 2011-05-22  Bruno Haible  <bruno@clisp.org>
5049
5050         tmpfile: Move AC_LIBOBJ invocations to module description.
5051         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
5052         invocations from here...
5053         * modules/tmpfile (configure.ac): ... to here.
5054
5055 2011-05-22  Bruno Haible  <bruno@clisp.org>
5056
5057         times: Move AC_LIBOBJ invocations to module description.
5058         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
5059         * modules/times (configure.ac): ... to here.
5060
5061 2011-05-22  Bruno Haible  <bruno@clisp.org>
5062
5063         time_r: Move AC_LIBOBJ invocations to module description.
5064         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
5065         invocations from here...
5066         * modules/time_r (configure.ac): ... to here.
5067
5068 2011-05-22  Bruno Haible  <bruno@clisp.org>
5069
5070         timegm: Move AC_LIBOBJ invocations to module description.
5071         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
5072         invocations from here...
5073         * modules/timegm (configure.ac): ... to here.
5074
5075 2011-05-22  Bruno Haible  <bruno@clisp.org>
5076
5077         tcgetsid: Move AC_LIBOBJ invocations to module description.
5078         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
5079         and gl_PREREQ_TCGETSID invocations from here...
5080         * modules/tcgetsid (configure.ac): ... to here.
5081         (Depends-on): Update conditions.
5082
5083 2011-05-22  Bruno Haible  <bruno@clisp.org>
5084
5085         symlinkat: Move AC_LIBOBJ invocations to module description.
5086         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
5087         here...
5088         * modules/symlinkat (configure.ac): ... to here.
5089
5090 2011-05-22  Bruno Haible  <bruno@clisp.org>
5091
5092         symlink: Move AC_LIBOBJ invocations to module description.
5093         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
5094         here...
5095         * modules/symlink (configure.ac): ... to here.
5096
5097 2011-05-22  Bruno Haible  <bruno@clisp.org>
5098
5099         strverscmp: Move AC_LIBOBJ invocations to module description.
5100         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
5101         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
5102         from here...
5103         * modules/strverscmp (configure.ac): ... to here.
5104
5105 2011-05-22  Bruno Haible  <bruno@clisp.org>
5106
5107         strtok_r: Move AC_LIBOBJ invocations to module description.
5108         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
5109         and gl_PREREQ_STRTOK_R invocations from here...
5110         * modules/strtok_r (configure.ac): ... to here.
5111         (Depends-on): Update conditions.
5112
5113 2011-05-22  Bruno Haible  <bruno@clisp.org>
5114
5115         strtoumax: Move AC_LIBOBJ invocations to module description.
5116         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
5117         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
5118         from here...
5119         * modules/strtoumax (configure.ac): ... to here.
5120
5121 2011-05-22  Bruno Haible  <bruno@clisp.org>
5122
5123         strtoimax: Move AC_LIBOBJ invocations to module description.
5124         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
5125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
5126         from here...
5127         * modules/strtoimax (configure.ac): ... to here.
5128
5129 2011-05-22  Bruno Haible  <bruno@clisp.org>
5130
5131         strtoull: Move AC_LIBOBJ invocations to module description.
5132         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
5133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
5134         from here...
5135         * modules/strtoull (configure.ac): ... to here.
5136
5137 2011-05-22  Bruno Haible  <bruno@clisp.org>
5138
5139         strtoll: Move AC_LIBOBJ invocations to module description.
5140         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
5141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
5142         here...
5143         * modules/strtoll (configure.ac): ... to here.
5144
5145 2011-05-22  Bruno Haible  <bruno@clisp.org>
5146
5147         strtoul: Move AC_LIBOBJ invocations to module description.
5148         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
5149         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5150         * modules/strtoul (configure.ac): ... to here.
5151
5152 2011-05-22  Bruno Haible  <bruno@clisp.org>
5153
5154         strtol: Move AC_LIBOBJ invocations to module description.
5155         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
5156         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5157         * modules/strtol (configure.ac): ... to here.
5158
5159 2011-05-22  Bruno Haible  <bruno@clisp.org>
5160
5161         strtod: Move AC_LIBOBJ invocations to module description.
5162         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
5163         invocations from here...
5164         * modules/strtod (configure.ac): ... to here.
5165
5166 2011-05-22  Bruno Haible  <bruno@clisp.org>
5167
5168         strstr*: Move AC_LIBOBJ invocations to module description.
5169         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
5170         invocations from here...
5171         * modules/strstr-simple (configure.ac): ... to here.
5172         * modules/strstr (configure.ac): ... and here.
5173
5174 2011-05-22  Bruno Haible  <bruno@clisp.org>
5175
5176         strsignal: Move AC_LIBOBJ invocations to module description.
5177         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
5178         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
5179         * modules/strsignal (configure.ac): ... to here.
5180         (Depends-on): Update conditions.
5181
5182 2011-05-22  Bruno Haible  <bruno@clisp.org>
5183
5184         strsep: Move AC_LIBOBJ invocations to module description.
5185         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
5186         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
5187         here...
5188         * modules/strsep (configure.ac): ... to here.
5189
5190 2011-05-22  Bruno Haible  <bruno@clisp.org>
5191
5192         strptime: Move AC_LIBOBJ invocations to module description.
5193         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
5194         gl_PREREQ_STRPTIME invocations from here...
5195         * modules/strptime (configure.ac): ... to here.
5196
5197 2011-05-22  Bruno Haible  <bruno@clisp.org>
5198
5199         strpbrk: Move AC_LIBOBJ invocations to module description.
5200         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
5201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
5202         here...
5203         * modules/strpbrk (configure.ac): ... to here.
5204
5205 2011-05-22  Bruno Haible  <bruno@clisp.org>
5206
5207         strnlen: Move AC_LIBOBJ invocations to module description.
5208         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
5209         invocations from here...
5210         * modules/strnlen (configure.ac): ... to here.
5211
5212 2011-05-22  Bruno Haible  <bruno@clisp.org>
5213
5214         strndup: Move AC_LIBOBJ invocations to module description.
5215         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
5216         invocations from here...
5217         * modules/strndup (configure.ac): ... to here.
5218         (Depends-on): Update conditions.
5219
5220 2011-05-22  Bruno Haible  <bruno@clisp.org>
5221
5222         strncat: Move AC_LIBOBJ invocations to module description.
5223         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5224         invocations from here...
5225         * modules/strncat (configure.ac): ... to here.
5226
5227 2011-05-22  Bruno Haible  <bruno@clisp.org>
5228
5229         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
5230         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
5231         invocations from here...
5232         * modules/strdup (configure.ac): ... to here.
5233         * modules/strdup-posix (configure.ac): ... and here.
5234
5235 2011-05-22  Bruno Haible  <bruno@clisp.org>
5236
5237         strcspn: Move AC_LIBOBJ invocations to module description.
5238         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
5239         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
5240         here...
5241         * modules/strcspn (configure.ac): ... to here.
5242
5243 2011-05-22  Bruno Haible  <bruno@clisp.org>
5244
5245         strchrnul: Move AC_LIBOBJ invocations to module description.
5246         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
5247         gl_PREREQ_STRCHRNUL invocations from here...
5248         * modules/strchrnul (configure.ac): ... to here.
5249
5250 2011-05-22  Bruno Haible  <bruno@clisp.org>
5251
5252         strcasestr*: Move AC_LIBOBJ invocations to module description.
5253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5254         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
5255         * modules/strcasestr-simple (configure.ac): ... to here.
5256         * modules/strcasestr (configure.ac): ... and here.
5257
5258 2011-05-22  Bruno Haible  <bruno@clisp.org>
5259
5260         strcase: Move AC_LIBOBJ invocations to module description.
5261         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
5262         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
5263         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
5264         gl_PREREQ_STRNCASECMP invocations from here...
5265         * modules/strcase (configure.ac): ... to here.
5266
5267 2011-05-22  Bruno Haible  <bruno@clisp.org>
5268
5269         stpncpy: Move AC_LIBOBJ invocations to module description.
5270         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
5271         here...
5272         * modules/stpncpy (configure.ac): ... to here.
5273
5274 2011-05-22  Bruno Haible  <bruno@clisp.org>
5275
5276         stpcpy: Move AC_LIBOBJ invocations to module description.
5277         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
5278         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
5279         here...
5280         * modules/stpcpy (configure.ac): ... to here.
5281
5282 2011-05-21  Bruno Haible  <bruno@clisp.org>
5283
5284         stat: Move AC_LIBOBJ invocations to module description.
5285         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
5286         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
5287         here...
5288         * modules/stat (configure.ac): ... to here.
5289
5290 2011-05-21  Bruno Haible  <bruno@clisp.org>
5291
5292         sleep: Move AC_LIBOBJ invocations to module description.
5293         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
5294         * modules/sleep (configure.ac): ... to here.
5295
5296 2011-05-21  Bruno Haible  <bruno@clisp.org>
5297
5298         signbit: Move AC_LIBOBJ invocations to module description.
5299         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
5300         * modules/signbit (configure.ac): ... to here.
5301
5302 2011-05-21  Bruno Haible  <bruno@clisp.org>
5303
5304         sigprocmask: Move AC_LIBOBJ invocations to module description.
5305         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
5306         gl_PREREQ_SIGPROMASK invocations from here...
5307         * modules/sigprocmask (configure.ac): ... to here.
5308
5309 2011-05-21  Bruno Haible  <bruno@clisp.org>
5310
5311         sigaction: Move AC_LIBOBJ invocations to module description.
5312         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
5313         gl_PREREQ_SIGACTION invocations from here...
5314         * modules/sigaction (configure.ac): ... to here.
5315
5316 2011-05-21  Bruno Haible  <bruno@clisp.org>
5317
5318         sig2str: Move AC_LIBOBJ invocations to module description.
5319         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
5320         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
5321         here...
5322         * modules/sig2str (configure.ac): ... to here.
5323
5324 2011-05-21  Bruno Haible  <bruno@clisp.org>
5325
5326         setlocale: Move AC_LIBOBJ invocations to module description.
5327         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
5328         gl_PREREQ_SETLOCALE invocations from here...
5329         * modules/setlocale (configure.ac): ... to here.
5330
5331 2011-05-21  Bruno Haible  <bruno@clisp.org>
5332
5333         unsetenv: Move AC_LIBOBJ invocations to module description.
5334         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
5335         and gl_PREREQ_UNSETENV invocations from here...
5336         * modules/unsetenv (configure.ac): ... to here.
5337         (Depends-on): Update.
5338
5339 2011-05-21  Bruno Haible  <bruno@clisp.org>
5340
5341         setenv: Move AC_LIBOBJ invocations to module description.
5342         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
5343         here...
5344         * modules/setenv (configure.ac): ... to here.
5345
5346 2011-05-21  Bruno Haible  <bruno@clisp.org>
5347
5348         selinux-h: Move AC_LIBOBJ invocations to module description.
5349         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
5350         AC_LIBOBJ invocation from here...
5351         * modules/selinux-h (configure.ac): ... to here.
5352
5353 2011-05-21  Bruno Haible  <bruno@clisp.org>
5354
5355         select: Respect rules for use of AC_LIBOBJ.
5356         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
5357         here...
5358         * modules/select (configure.ac): ... to here.
5359
5360 2011-05-21  Bruno Haible  <bruno@clisp.org>
5361
5362         scandir: Move AC_LIBOBJ invocations to module description.
5363         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
5364         invocations from here...
5365         * modules/scandir (configure.ac): ... to here.
5366
5367 2011-05-21  Bruno Haible  <bruno@clisp.org>
5368
5369         rpmatch: Move AC_LIBOBJ invocations to module description.
5370         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
5371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
5372         here...
5373         * modules/rpmatch (configure.ac): ... to here.
5374
5375 2011-05-21  Bruno Haible  <bruno@clisp.org>
5376
5377         rmdir: Respect rules for use of AC_LIBOBJ.
5378         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
5379         * modules/rmdir (configure.ac): ... to here.
5380
5381 2011-05-21  Bruno Haible  <bruno@clisp.org>
5382
5383         renameat: Move AC_LIBOBJ invocations to module description.
5384         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
5385         here...
5386         * modules/renameat (configure.ac): ... to here.
5387
5388 2011-05-21  Bruno Haible  <bruno@clisp.org>
5389
5390         rename: Respect rules for use of AC_LIBOBJ.
5391         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
5392         here...
5393         * modules/rename (configure.ac): ... to here.
5394
5395 2011-05-21  Bruno Haible  <bruno@clisp.org>
5396
5397         remove: Move AC_LIBOBJ invocations to module description.
5398         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
5399         here...
5400         * modules/remove (configure.ac): ... to here.
5401
5402 2011-05-21  Bruno Haible  <bruno@clisp.org>
5403
5404         relocatable-lib: Move AC_LIBOBJ invocations to module description.
5405         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
5406         macro.
5407         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
5408         * modules/relocatable-lib (configure.ac): ... to here.
5409         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5410         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
5411
5412 2011-05-21  Bruno Haible  <bruno@clisp.org>
5413
5414         relocatable-prog: Move AC_LIBOBJ invocations to module description.
5415         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
5416         here...
5417         * modules/relocatable-prog (configure.ac): ... to here.
5418
5419 2011-05-21  Bruno Haible  <bruno@clisp.org>
5420
5421         regex: Move AC_LIBOBJ invocations to module description.
5422         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
5423         invocations from here...
5424         * modules/regex (configure.ac): ... to here.
5425
5426 2011-05-21  Bruno Haible  <bruno@clisp.org>
5427
5428         realloc-*: Move AC_LIBOBJ invocations to module description.
5429         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
5430         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
5431         AC_LIBOBJ invocations from here...
5432         * modules/realloc-gnu (configure.ac): ... to here.
5433         * modules/realloc-posix (configure.ac): ... and here.
5434
5435 2011-05-21  Bruno Haible  <bruno@clisp.org>
5436
5437         readutmp: Move AC_LIBOBJ invocations to module description.
5438         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
5439         * modules/readutmp (configure.ac): ... to here.
5440
5441 2011-05-21  Bruno Haible  <bruno@clisp.org>
5442
5443         readlinkat: Move AC_LIBOBJ invocations to module description.
5444         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
5445         here...
5446         * modules/readlinkat (configure.ac): ... to here.
5447
5448 2011-05-21  Bruno Haible  <bruno@clisp.org>
5449
5450         readlink: Move AC_LIBOBJ invocations to module description.
5451         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
5452         gl_PREREQ_READLINK invocations from here...
5453         * modules/readlink (configure.ac): ... to here.
5454
5455 2011-05-21  Bruno Haible  <bruno@clisp.org>
5456
5457         readline: Move AC_LIBOBJ invocations to module description.
5458         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
5459         gl_PREREQ_READLINE invocations from here...
5460         * modules/readline (configure.ac): ... to here.
5461
5462 2011-05-21  Bruno Haible  <bruno@clisp.org>
5463
5464         read: Move AC_LIBOBJ invocations to module description.
5465         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
5466         * modules/read (configure.ac): ... to here.
5467
5468 2011-05-21  Bruno Haible  <bruno@clisp.org>
5469
5470         rawmemchr: Move AC_LIBOBJ invocations to module description.
5471         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
5472         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
5473         from here...
5474         * modules/rawmemchr (configure.ac): ... to here.
5475
5476 2011-05-21  Bruno Haible  <bruno@clisp.org>
5477
5478         random_r: Move AC_LIBOBJ invocations to module description.
5479         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
5480         gl_PREREQ_RANDOM_R invocations from here...
5481         * modules/random_r (configure.ac): ... to here.
5482
5483 2011-05-21  Bruno Haible  <bruno@clisp.org>
5484
5485         pwrite: Move AC_LIBOBJ invocations to module description.
5486         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
5487         * modules/pwrite (configure.ac): ... to here.
5488
5489 2011-05-21  Bruno Haible  <bruno@clisp.org>
5490
5491         putenv: Move AC_LIBOBJ invocations to module description.
5492         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
5493         * modules/putenv (configure.ac): ... to here.
5494
5495 2011-05-21  Bruno Haible  <bruno@clisp.org>
5496
5497         login_tty: Move AC_LIBOBJ invocations to module description.
5498         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
5499         * modules/login_tty (configure.ac): ... to here.
5500
5501 2011-05-21  Bruno Haible  <bruno@clisp.org>
5502
5503         openpty: Move AC_LIBOBJ invocations to module description.
5504         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
5505         * modules/openpty (configure.ac): ... to here.
5506
5507 2011-05-21  Bruno Haible  <bruno@clisp.org>
5508
5509         forkpty: Move AC_LIBOBJ invocations to module description.
5510         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
5511         * modules/forkpty (configure.ac): ... to here.
5512
5513 2011-05-21  Bruno Haible  <bruno@clisp.org>
5514
5515         ptsname: Move AC_LIBOBJ invocations to module description.
5516         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5517         invocations from here...
5518         * modules/ptsname (configure.ac): ... to here.
5519
5520 2011-05-21  Bruno Haible  <bruno@clisp.org>
5521
5522         pread: Move AC_LIBOBJ invocations to module description.
5523         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5524         * modules/pread (configure.ac): ... to here.
5525
5526 2011-05-21  Bruno Haible  <bruno@clisp.org>
5527
5528         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5529         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5530         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5531         * modules/posix_spawn (configure.ac): ... to here.
5532         * modules/posix_spawnp (configure.ac): ... and here.
5533
5534 2011-05-21  Bruno Haible  <bruno@clisp.org>
5535
5536         popen: Move AC_LIBOBJ invocations to module description.
5537         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5538         invocations from here...
5539         * modules/popen (configure.ac): ... to here.
5540
5541 2011-05-21  Bruno Haible  <bruno@clisp.org>
5542
5543         poll: Move AC_LIBOBJ invocations to module description.
5544         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5545         invocations from here...
5546         * modules/poll (configure.ac): ... to here.
5547
5548 2011-05-21  Bruno Haible  <bruno@clisp.org>
5549
5550         pipe-posix: Move AC_LIBOBJ invocations to module description.
5551         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5552         * modules/pipe-posix (configure.ac): ... to here.
5553
5554 2011-05-21  Bruno Haible  <bruno@clisp.org>
5555
5556         openat: Respect rules for use of AC_LIBOBJ.
5557         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5558         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5559         * modules/openat (configure.ac): ... to here.
5560
5561 2011-05-21  Bruno Haible  <bruno@clisp.org>
5562
5563         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5564         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5565         invocation from here...
5566         * modules/obstack-printf (configure.ac): ... to here.
5567         * modules/obstack-printf-posix (configure.ac): ... and here.
5568
5569 2011-05-21  Bruno Haible  <bruno@clisp.org>
5570
5571         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5572         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5573         from here...
5574         * modules/nl_langinfo (configure.ac): ... to here.
5575
5576 2011-05-21  Bruno Haible  <bruno@clisp.org>
5577
5578         nanosleep: Move AC_LIBOBJ invocations to module description.
5579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5580         gl_PREREQ_NANOSLEEP invocations from here...
5581         * modules/nanosleep (configure.ac): ... to here.
5582
5583 2011-05-21  Bruno Haible  <bruno@clisp.org>
5584
5585         mountlist: Move AC_LIBOBJ invocations to module description.
5586         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5587         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5588         * modules/mountlist (configure.ac): ... to here.
5589
5590 2011-05-21  Bruno Haible  <bruno@clisp.org>
5591
5592         mktime: Respect rules for use of AC_LIBOBJ.
5593         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5594         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5595         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5596         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5597         * modules/mktime (configure.ac): ... to here.
5598         * modules/mktime-internal (configure.ac): ... and here.
5599         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5600
5601 2011-05-21  Bruno Haible  <bruno@clisp.org>
5602
5603         mkstemps: Move AC_LIBOBJ invocations to module description.
5604         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5605         here...
5606         * modules/mkstemps (configure.ac): ... to here.
5607
5608 2011-05-21  Bruno Haible  <bruno@clisp.org>
5609
5610         mkstemp: Move AC_LIBOBJ invocations to module description.
5611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5612         gl_PREREQ_MKSTEMP invocations from here...
5613         * modules/mkstemp (configure.ac): ... to here.
5614
5615 2011-05-21  Bruno Haible  <bruno@clisp.org>
5616
5617         mkostemps: Move AC_LIBOBJ invocations to module description.
5618         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5619         here...
5620         * modules/mkostemps (configure.ac): ... to here.
5621
5622 2011-05-21  Bruno Haible  <bruno@clisp.org>
5623
5624         mkostemp: Move AC_LIBOBJ invocations to module description.
5625         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5626         gl_PREREQ_MKOSTEMP invocations from here...
5627         * modules/mkostemp (configure.ac): ... to here.
5628
5629 2011-05-21  Bruno Haible  <bruno@clisp.org>
5630
5631         mknod: Move AC_LIBOBJ invocations to module description.
5632         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5633         * modules/mknod (configure.ac): ... to here.
5634
5635 2011-05-21  Bruno Haible  <bruno@clisp.org>
5636
5637         mkfifoat: Move AC_LIBOBJ invocations to module description.
5638         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5639         here...
5640         * modules/mkfifoat (configure.ac): ... to here.
5641
5642 2011-05-21  Bruno Haible  <bruno@clisp.org>
5643
5644         mkfifo: Respect rules for use of AC_LIBOBJ.
5645         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5646         here...
5647         * modules/mkfifo (configure.ac): ... to here.
5648
5649 2011-05-21  Bruno Haible  <bruno@clisp.org>
5650
5651         mkdtemp: Move AC_LIBOBJ invocations to module description.
5652         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5653         invocations from here...
5654         * modules/mkdtemp (configure.ac): ... to here.
5655
5656 2011-05-21  Bruno Haible  <bruno@clisp.org>
5657
5658         mkdir: Move AC_LIBOBJ invocations to module description.
5659         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5660         * modules/mkdir (configure.ac): ... to here.
5661
5662 2011-05-21  Bruno Haible  <bruno@clisp.org>
5663
5664         memset: Move AC_LIBOBJ invocations to module description.
5665         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5667         here...
5668         * modules/memset (configure.ac): ... to here.
5669
5670 2011-05-21  Bruno Haible  <bruno@clisp.org>
5671
5672         memrchr: Move AC_LIBOBJ invocations to module description.
5673         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5674         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5675         here...
5676         * modules/memrchr (configure.ac): ... to here.
5677
5678 2011-05-21  Bruno Haible  <bruno@clisp.org>
5679
5680         mempcpy: Move AC_LIBOBJ invocations to module description.
5681         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5682         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5683         here...
5684         * modules/mempcpy (configure.ac): ... to here.
5685
5686 2011-05-21  Bruno Haible  <bruno@clisp.org>
5687
5688         memmove: Move AC_LIBOBJ invocations to module description.
5689         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5691         here...
5692         * modules/memmove (configure.ac): ... to here.
5693
5694 2011-05-21  Bruno Haible  <bruno@clisp.org>
5695
5696         memmem*: Move AC_LIBOBJ invocations to module description.
5697         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5698         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5699         here...
5700         (gl_FUNC_MEMMEM): ... and here...
5701         * modules/memmem-simple (configure.ac): ... to here.
5702         * modules/memmem (configure.ac): ... and here.
5703
5704 2011-05-21  Bruno Haible  <bruno@clisp.org>
5705
5706         memcpy: Move AC_LIBOBJ invocations to module description.
5707         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5709         here...
5710         * modules/memcpy (configure.ac): ... to here.
5711
5712 2011-05-21  Bruno Haible  <bruno@clisp.org>
5713
5714         memcmp: Simplify autoconf macro.
5715         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5716         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5717         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5718
5719 2011-05-21  Bruno Haible  <bruno@clisp.org>
5720
5721         memcmp: Move AC_LIBOBJ invocations to module description.
5722         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5723         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5724         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5725         * modules/memcmp (configure.ac): ... to here.
5726         (Depends-on): Update conditions.
5727
5728 2011-05-21  Bruno Haible  <bruno@clisp.org>
5729
5730         memchr: Respect rules for use of AC_LIBOBJ.
5731         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5732         invocations from here...
5733         * modules/memchr (configure.ac): ... to here.
5734
5735 2011-05-21  Bruno Haible  <bruno@clisp.org>
5736
5737         mbtowc: Move AC_LIBOBJ invocations to module description.
5738         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5739         invocations from here...
5740         * modules/mbtowc (configure.ac): ... to here.
5741
5742 2011-05-21  Bruno Haible  <bruno@clisp.org>
5743
5744         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5745         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5746         gl_PREREQ_MBSRTOWCS invocations from here...
5747         * modules/mbsrtowcs (configure.ac): ... to here.
5748
5749 2011-05-21  Bruno Haible  <bruno@clisp.org>
5750
5751         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5752         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5753         gl_PREREQ_MBSNRTOWCS invocations from here...
5754         * modules/mbsnrtowcs (configure.ac): ... to here.
5755
5756 2011-05-21  Bruno Haible  <bruno@clisp.org>
5757
5758         mbsinit: Move AC_LIBOBJ invocations to module description.
5759         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5760         invocations from here...
5761         * modules/mbsinit (configure.ac): ... to here.
5762
5763 2011-05-21  Bruno Haible  <bruno@clisp.org>
5764
5765         mbrlen: Move AC_LIBOBJ invocations to module description.
5766         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5767         invocations from here...
5768         * modules/mbrlen (configure.ac): ... to here.
5769
5770 2011-05-21  Bruno Haible  <bruno@clisp.org>
5771
5772         mbrtowc: Respect rules for use of AC_LIBOBJ.
5773         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5774         invocations from here...
5775         * modules/mbrtowc (configure.ac): ... to here.
5776
5777 2011-05-21  Bruno Haible  <bruno@clisp.org>
5778
5779         malloc-*: Move AC_LIBOBJ invocations to module description.
5780         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5781         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5782         AC_LIBOBJ invocations from here...
5783         * modules/malloc-gnu (configure.ac): ... to here.
5784         * modules/malloc-posix (configure.ac): ... and here.
5785
5786 2011-05-21  Bruno Haible  <bruno@clisp.org>
5787
5788         lstat, openat: Respect rules for use of AC_LIBOBJ.
5789         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5790         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5791         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5792         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5793         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5794         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5795         here.
5796         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5797
5798 2011-05-21  Bruno Haible  <bruno@clisp.org>
5799
5800         lseek: Move AC_LIBOBJ invocations to module description.
5801         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5802         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5803         * modules/lseek (configure.ac): ... to here.
5804
5805 2011-05-21  Bruno Haible  <bruno@clisp.org>
5806
5807         linkat: Move AC_LIBOBJ invocations to module description.
5808         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5809         here...
5810         * modules/linkat (configure.ac): ... to here.
5811
5812 2011-05-21  Bruno Haible  <bruno@clisp.org>
5813
5814         link: Respect rules for use of AC_LIBOBJ.
5815         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5816         * modules/link (configure.ac): ... to here.
5817
5818 2011-05-21  Bruno Haible  <bruno@clisp.org>
5819
5820         lchown: Move AC_LIBOBJ invocations to module description.
5821         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5822         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5823         * modules/lchown (configure.ac): ... to here.
5824
5825 2011-05-21  Bruno Haible  <bruno@clisp.org>
5826
5827         iswctype: Move AC_LIBOBJ invocations to module description.
5828         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5829         here...
5830         * modules/iswctype (configure.ac): ... to here.
5831
5832 2011-05-21  Bruno Haible  <bruno@clisp.org>
5833
5834         iswblank: Move AC_LIBOBJ invocations to module description.
5835         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5836         here...
5837         * modules/iswblank (configure.ac): ... to here.
5838
5839 2011-05-21  Bruno Haible  <bruno@clisp.org>
5840
5841         atanl: Move AC_LIBOBJ invocations to module description.
5842         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5843         * modules/atanl (configure.ac): ... to here.
5844
5845 2011-05-21  Bruno Haible  <bruno@clisp.org>
5846
5847         acosl: Move AC_LIBOBJ invocations to module description.
5848         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5849         * modules/acosl (configure.ac): ... to here.
5850
5851 2011-05-21  Bruno Haible  <bruno@clisp.org>
5852
5853         asinl: Respect rules for use of AC_LIBOBJ.
5854         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5855         * modules/asinl (configure.ac): ... to here.
5856
5857 2011-05-21  Bruno Haible  <bruno@clisp.org>
5858
5859         tanl: Move AC_LIBOBJ invocations to module description.
5860         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5861         * modules/tanl (configure.ac): ... to here.
5862
5863 2011-05-21  Bruno Haible  <bruno@clisp.org>
5864
5865         cosl: Move AC_LIBOBJ invocations to module description.
5866         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5867         * modules/cosl (configure.ac): ... to here.
5868
5869 2011-05-21  Bruno Haible  <bruno@clisp.org>
5870
5871         sinl: Move AC_LIBOBJ invocations to module description.
5872         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5873         * modules/sinl (configure.ac): ... to here.
5874
5875 2011-05-21  Bruno Haible  <bruno@clisp.org>
5876
5877         logl: Move AC_LIBOBJ invocations to module description.
5878         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5879         * modules/logl (configure.ac): ... to here.
5880
5881 2011-05-21  Bruno Haible  <bruno@clisp.org>
5882
5883         expl: Move AC_LIBOBJ invocations to module description.
5884         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5885         * modules/expl (configure.ac): ... to here.
5886
5887 2011-05-21  Bruno Haible  <bruno@clisp.org>
5888
5889         roundl: Move AC_LIBOBJ invocations to module description.
5890         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5891         * modules/roundl (configure.ac): ... to here.
5892
5893 2011-05-21  Bruno Haible  <bruno@clisp.org>
5894
5895         round: Move AC_LIBOBJ invocations to module description.
5896         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5897         * modules/round (configure.ac): ... to here.
5898
5899 2011-05-21  Bruno Haible  <bruno@clisp.org>
5900
5901         roundf: Move AC_LIBOBJ invocations to module description.
5902         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5903         * modules/roundf (configure.ac): ... to here.
5904
5905 2011-05-21  Bruno Haible  <bruno@clisp.org>
5906
5907         truncl: Move AC_LIBOBJ invocations to module description.
5908         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5909         * modules/truncl (configure.ac): ... to here.
5910
5911 2011-05-21  Bruno Haible  <bruno@clisp.org>
5912
5913         trunc: Move AC_LIBOBJ invocations to module description.
5914         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5915         * modules/trunc (configure.ac): ... to here.
5916
5917 2011-05-21  Bruno Haible  <bruno@clisp.org>
5918
5919         truncf: Move AC_LIBOBJ invocations to module description.
5920         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5921         * modules/truncf (configure.ac): ... to here.
5922
5923 2011-05-21  Bruno Haible  <bruno@clisp.org>
5924
5925         ceill: Move AC_LIBOBJ invocations to module description.
5926         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5927         * modules/ceill (configure.ac): ... to here.
5928
5929 2011-05-21  Bruno Haible  <bruno@clisp.org>
5930
5931         ceil: Move AC_LIBOBJ invocations to module description.
5932         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5933         * modules/ceil (configure.ac): ... to here.
5934
5935 2011-05-21  Bruno Haible  <bruno@clisp.org>
5936
5937         ceilf: Move AC_LIBOBJ invocations to module description.
5938         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5939         * modules/ceilf (configure.ac): ... to here.
5940
5941 2011-05-21  Bruno Haible  <bruno@clisp.org>
5942
5943         floorl: Respect rules for use of AC_LIBOBJ.
5944         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5945         * modules/floorl (configure.ac): ... to here.
5946
5947 2011-05-21  Bruno Haible  <bruno@clisp.org>
5948
5949         floor: Respect rules for use of AC_LIBOBJ.
5950         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5951         * modules/floor (configure.ac): ... to here.
5952
5953 2011-05-21  Bruno Haible  <bruno@clisp.org>
5954
5955         floorf: Move AC_LIBOBJ invocations to module description.
5956         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5957         * modules/floorf (configure.ac): ... to here.
5958
5959 2011-05-20  Bruno Haible  <bruno@clisp.org>
5960
5961         sqrtl: Respect rules for use of AC_LIBOBJ.
5962         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5963         * modules/sqrtl (configure.ac): ... to here.
5964
5965 2011-05-20  Bruno Haible  <bruno@clisp.org>
5966
5967         ldexpl: Respect rules for use of AC_LIBOBJ.
5968         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5969         * modules/ldexpl (configure.ac): ... to here.
5970
5971 2011-05-20  Bruno Haible  <bruno@clisp.org>
5972
5973         frexpl*: Respect rules for use of AC_LIBOBJ.
5974         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5975         invocation from here...
5976         * modules/frexpl (configure.ac): ... to here.
5977         * modules/frexpl-nolibm (configure.ac): ... and here.
5978
5979 2011-05-20  Bruno Haible  <bruno@clisp.org>
5980
5981         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5982         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5983         invocation from here...
5984         * modules/frexp (configure.ac): ... to here.
5985         * modules/frexp-nolibm (configure.ac): ... and here.
5986
5987 2011-05-20  Bruno Haible  <bruno@clisp.org>
5988
5989         isnan: Respect rules for use of AC_LIBOBJ.
5990         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5991         invocations here.
5992         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5993         REPLACE_ISNAN.
5994         * modules/isnand (configure.ac): Likewise.
5995         * modules/isnanl (configure.ac): Likewise.
5996
5997 2011-05-20  Bruno Haible  <bruno@clisp.org>
5998
5999         isnanl*: Respect rules for use of AC_LIBOBJ.
6000         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
6001         invocation from here...
6002         * modules/isnanl (configure.ac): ... to here.
6003         * modules/isnanl-nolibm (configure.ac): ... and here.
6004
6005 2011-05-20  Bruno Haible  <bruno@clisp.org>
6006
6007         isnand*: Move AC_LIBOBJ invocations to module description.
6008         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
6009         invocation from here...
6010         * modules/isnand (configure.ac): ... to here.
6011         * modules/isnand-nolibm (configure.ac): ... and here.
6012
6013 2011-05-20  Bruno Haible  <bruno@clisp.org>
6014
6015         isnanf*: Move AC_LIBOBJ invocations to module description.
6016         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
6017         invocation from here...
6018         * modules/isnanf (configure.ac): ... to here.
6019         * modules/isnanf-nolibm (configure.ac): ... and here.
6020
6021 2011-05-20  Bruno Haible  <bruno@clisp.org>
6022
6023         isnan*: Separate the AC_LIBOBJ invocations.
6024         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
6025         AC_LIBOBJ invocation.
6026         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
6027         here.
6028         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
6029         AC_LIBOBJ invocation.
6030         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
6031         here.
6032         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
6033         AC_LIBOBJ invocation.
6034         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
6035         here.
6036         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
6037
6038 2011-05-08  Bruno Haible  <bruno@clisp.org>
6039
6040         isinf: Move AC_LIBOBJ invocations to module description.
6041         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
6042         * modules/isinf (configure.ac): ... to here.
6043
6044 2011-05-08  Bruno Haible  <bruno@clisp.org>
6045
6046         isfinite: Move AC_LIBOBJ invocations to module description.
6047         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
6048         * modules/isfinite (configure.ac): ... to here.
6049
6050 2011-05-08  Bruno Haible  <bruno@clisp.org>
6051
6052         isblank: Move AC_LIBOBJ invocations to module description.
6053         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
6054         here...
6055         * modules/isblank (configure.ac): ... to here.
6056
6057 2011-05-08  Bruno Haible  <bruno@clisp.org>
6058
6059         isapipe: Move AC_LIBOBJ invocations to module description.
6060         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
6061         gl_PREREQ_ISAPIPE invocations from here...
6062         * modules/isapipe (configure.ac): ... to here.
6063         (Depends-on): Update condition.
6064
6065 2011-05-08  Bruno Haible  <bruno@clisp.org>
6066
6067         ioctl: Move AC_LIBOBJ invocations to module description.
6068         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
6069         invocations from here...
6070         * modules/ioctl (configure.ac): ... to here.
6071         (Depends-on): Update condition.
6072
6073 2011-05-08  Bruno Haible  <bruno@clisp.org>
6074
6075         imaxdiv: Move AC_LIBOBJ invocations to module description.
6076         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
6077         invocations from here...
6078         * modules/imaxdiv (configure.ac): ... to here.
6079
6080 2011-05-08  Bruno Haible  <bruno@clisp.org>
6081
6082         imaxabs: Move AC_LIBOBJ invocations to module description.
6083         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
6084         invocations from here...
6085         * modules/imaxabs (configure.ac): ... to here.
6086
6087 2011-05-08  Bruno Haible  <bruno@clisp.org>
6088
6089         getaddrinfo: Move AC_LIBOBJ invocations to module description.
6090         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
6091         AC_LIBOBJ invocations from here...
6092         * modules/getaddrinfo (configure.ac): ... to here.
6093         (Depends-on): Add conditions.
6094
6095 2011-05-08  Bruno Haible  <bruno@clisp.org>
6096
6097         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6098         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
6099         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6100         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
6101         (gl_PREREQ_INET_PTON): ... from here.
6102         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
6103         gl_PREREQ_INET_PTON here.
6104         (Depends-on): Update condition.
6105
6106 2011-05-08  Bruno Haible  <bruno@clisp.org>
6107
6108         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6109         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
6110         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6111         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
6112         (gl_PREREQ_INET_NTOP): ... from here.
6113         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
6114         gl_PREREQ_INET_NTOP here.
6115         (Depends-on): Update condition.
6116
6117 2011-05-08  Bruno Haible  <bruno@clisp.org>
6118
6119         iconv_open: Move AC_LIBOBJ invocations to module description.
6120         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
6121         AC_LIBOBJ invocations from here...
6122         * modules/iconv_open (configure.ac): ... to here.
6123
6124 2011-05-08  Bruno Haible  <bruno@clisp.org>
6125
6126         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
6127         If module 'iconv_open' is among the main modules and module
6128         'iconv_open-utf' is among the tests dependencies, then
6129         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
6130         return the special iconv_t values. Therefore iconv() and iconv_close()
6131         must support these special iconv_t values, already in lib, not only in
6132         tests.
6133         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
6134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
6135         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
6136         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
6137         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
6138         (Depends-on): Add the dependencies of iconv_open-utf.
6139         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
6140         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
6141         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
6142
6143 2011-05-08  Bruno Haible  <bruno@clisp.org>
6144
6145         group-member: Move AC_LIBOBJ invocations to module description.
6146         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
6147         gl_PREREQ_GROUP_MEMBER invocations from here...
6148         * modules/group-member (configure.ac): ... to here.
6149
6150 2011-05-08  Bruno Haible  <bruno@clisp.org>
6151
6152         grantpt: Move AC_LIBOBJ invocations to module description.
6153         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
6154         invocations from here...
6155         * modules/grantpt (configure.ac): ... to here.
6156
6157 2011-05-08  Bruno Haible  <bruno@clisp.org>
6158
6159         glob: Move AC_LIBOBJ invocations to module description.
6160         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
6161         from here...
6162         * modules/glob (configure.ac): ... to here.
6163
6164 2011-05-08  Bruno Haible  <bruno@clisp.org>
6165
6166         getusershell: Move AC_LIBOBJ invocations to module description.
6167         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
6168         Move AC_LIBOBJ invocation from here...
6169         * modules/getusershell (configure.ac): ... to here.
6170         (Depends-on): Update condition.
6171
6172 2011-05-08  Bruno Haible  <bruno@clisp.org>
6173
6174         gettimeofday: Move AC_LIBOBJ invocations to module description.
6175         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6176         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
6177         gl_PREREQ_GETTIMEOFDAY invocations from here...
6178         * modules/gettimeofday (configure.ac): ... to here.
6179
6180 2011-05-08  Bruno Haible  <bruno@clisp.org>
6181
6182         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
6183         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
6184         just gl_FUNC_TZSET.
6185         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
6186         (gl_FUNC_TZSET_CLOBBER): Remove actions.
6187         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
6188         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
6189
6190 2011-05-08  Bruno Haible  <bruno@clisp.org>
6191
6192         getsubopt: Move AC_LIBOBJ invocations to module description.
6193         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
6194         gl_PREREQ_GETSUBOPT invocations from here...
6195         * modules/getsubopt (configure.ac): ... to here.
6196
6197 2011-05-08  Bruno Haible  <bruno@clisp.org>
6198
6199         getpass-gnu: Move AC_LIBOBJ invocations to module description.
6200         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
6201         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
6202         * modules/getpass-gnu (configure.ac): ... to here.
6203
6204 2011-05-08  Bruno Haible  <bruno@clisp.org>
6205
6206         getpass: Move AC_LIBOBJ invocations to module description.
6207         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
6208         gl_PREREQ_GETPASS invocations from here...
6209         * modules/getpass (configure.ac): ... to here.
6210
6211 2011-05-08  Bruno Haible  <bruno@clisp.org>
6212
6213         getpagesize: Move AC_LIBOBJ invocations to module description.
6214         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
6215         from here...
6216         * modules/getpagesize (configure.ac): ... to here.
6217
6218 2011-05-08  Bruno Haible  <bruno@clisp.org>
6219
6220         getopt: Move AC_LIBOBJ invocations to module description.
6221         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
6222         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
6223         invocations from here...
6224         * modules/getopt-gnu (configure.ac): ... to here.
6225         * modules/getopt-posix (configure.ac): ... and here.
6226         (Depends-on): Update condition.
6227
6228 2011-05-08  Bruno Haible  <bruno@clisp.org>
6229
6230         getopt, argp: Respect rules for use of AC_LIBOBJ.
6231         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
6232         (gl_REPLACE_GETOPT_ALWAYS): New macro.
6233         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
6234         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
6235
6236 2011-05-08  Bruno Haible  <bruno@clisp.org>
6237
6238         getlogin_r: Move AC_LIBOBJ invocations to module description.
6239         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
6240         gl_PREREQ_GETLOGIN_R invocations from here...
6241         * modules/getlogin_r (configure.ac): ... to here.
6242
6243 2011-05-08  Bruno Haible  <bruno@clisp.org>
6244
6245         getlogin: Move AC_LIBOBJ invocations to module description.
6246         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
6247         here...
6248         * modules/getlogin (configure.ac): ... to here.
6249
6250 2011-05-08  Bruno Haible  <bruno@clisp.org>
6251
6252         getloadavg: Move AC_LIBOBJ invocations to module description.
6253         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
6254         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
6255         * modules/getloadavg (configure.ac): ... to here.
6256
6257 2011-05-08  Bruno Haible  <bruno@clisp.org>
6258
6259         gethrxtime: Move AC_LIBOBJ invocations to module description.
6260         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
6261         LIB_GETHRXTIME from here...
6262         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
6263         invocations from here...
6264         * modules/gethrxtime (configure.ac): ... to here.
6265
6266 2011-05-08  Bruno Haible  <bruno@clisp.org>
6267
6268         gethostname: Move AC_LIBOBJ invocations to module description.
6269         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
6270         gl_PREREQ_GETHOSTNAME invocations from here...
6271         * modules/gethostname (configure.ac): ... to here.
6272
6273 2011-05-08  Bruno Haible  <bruno@clisp.org>
6274
6275         getgroups: Move AC_LIBOBJ invocations to module description.
6276         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
6277         here...
6278         * modules/getgroups (configure.ac): ... to here.
6279
6280 2011-05-08  Bruno Haible  <bruno@clisp.org>
6281
6282         getdtablesize: Move AC_LIBOBJ invocations to module description.
6283         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
6284         invocation from here...
6285         * modules/getdtablesize (configure.ac): ... to here.
6286
6287 2011-05-08  Bruno Haible  <bruno@clisp.org>
6288
6289         getdomainname: Move AC_LIBOBJ invocations to module description.
6290         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
6291         gl_PREREQ_GETDOMAINNAME invocations from here...
6292         * modules/getdomainname (configure.ac): ... to here.
6293
6294 2011-05-08  Bruno Haible  <bruno@clisp.org>
6295
6296         getline: Move AC_LIBOBJ invocations to module description.
6297         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
6298         invocations from here...
6299         * modules/getline (configure.ac): ... to here.
6300
6301 2011-05-08  Bruno Haible  <bruno@clisp.org>
6302
6303         getline: Simplify.
6304         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
6305         It's already handled through the module dependency.
6306
6307 2011-05-08  Bruno Haible  <bruno@clisp.org>
6308
6309         getdelim: Move AC_LIBOBJ invocations to module description.
6310         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
6311         and gl_PREREQ_GETDELIM invocations from here...
6312         * modules/getdelim (configure.ac): ... to here.
6313         (Depends-on): Fix condition.
6314
6315 2011-05-08  Bruno Haible  <bruno@clisp.org>
6316
6317         getcwd: Move AC_LIBOBJ invocations to module description.
6318         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
6319         invocations from here...
6320         * modules/getcwd (configure.ac): ... to here.
6321
6322 2011-05-08  Bruno Haible  <bruno@clisp.org>
6323
6324         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
6325         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
6326         here...
6327         * modules/getcwd-lgpl (configure.ac): ... to here.
6328
6329 2011-05-07  Bruno Haible  <bruno@clisp.org>
6330
6331         crypto/gc: Move AC_LIBOBJ invocations to module description.
6332         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
6333         * modules/crypto/gc (configure.ac): ... to here.
6334
6335 2011-05-07  Bruno Haible  <bruno@clisp.org>
6336
6337         fwriting: Move AC_LIBOBJ invocations to module description.
6338         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
6339         here...
6340         * modules/fwriting (configure.ac): ... to here.
6341
6342 2011-05-07  Bruno Haible  <bruno@clisp.org>
6343
6344         fwritable: Move AC_LIBOBJ invocations to module description.
6345         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
6346         here...
6347         * modules/fwritable (configure.ac): ... to here.
6348
6349 2011-05-07  Bruno Haible  <bruno@clisp.org>
6350
6351         futimens: Move AC_LIBOBJ invocations to module description.
6352         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
6353         here...
6354         * modules/futimens (configure.ac): ... to here.
6355
6356 2011-05-07  Bruno Haible  <bruno@clisp.org>
6357
6358         ftruncate: Move AC_LIBOBJ invocations to module description.
6359         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
6360         gl_PREREQ_FTRUNCATE invocations from here...
6361         * modules/ftruncate (configure.ac): ... to here.
6362
6363 2011-05-07  Bruno Haible  <bruno@clisp.org>
6364
6365         fsync: Move AC_LIBOBJ invocations to module description.
6366         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
6367         invocations from here...
6368         * modules/fsync (configure.ac): ... to here.
6369
6370 2011-05-07  Bruno Haible  <bruno@clisp.org>
6371
6372         fsusage: Move AC_LIBOBJ invocations to module description.
6373         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
6374         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
6375         * modules/fsusage (configure.ac): ... to here.
6376
6377 2011-05-07  Bruno Haible  <bruno@clisp.org>
6378
6379         freopen: Move AC_LIBOBJ invocations to module description.
6380         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
6381         invocations from here...
6382         * modules/freopen (configure.ac): ... to here.
6383
6384 2011-05-07  Bruno Haible  <bruno@clisp.org>
6385
6386         free: Move AC_LIBOBJ invocations to module description.
6387         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
6388         invocations from here...
6389         * modules/free (configure.ac): ... to here.
6390
6391 2011-05-07  Bruno Haible  <bruno@clisp.org>
6392
6393         freadable: Move AC_LIBOBJ invocations to module description.
6394         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
6395         here...
6396         * modules/freadable (configure.ac): ... to here.
6397
6398 2011-05-07  Bruno Haible  <bruno@clisp.org>
6399
6400         fpurge: Move AC_LIBOBJ invocations to module description.
6401         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
6402         invocations from here...
6403         * modules/fpurge (configure.ac): ... to here.
6404
6405 2011-05-07  Bruno Haible  <bruno@clisp.org>
6406
6407         fpending: Move AC_LIBOBJ invocations to module description.
6408         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
6409         gl_FUNC_FPENDING.
6410         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
6411         invocations from here...
6412         * modules/fpending (configure.ac): ... to here.
6413
6414 2011-05-07  Bruno Haible  <bruno@clisp.org>
6415
6416         fopen: Move AC_LIBOBJ invocations to module description.
6417         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
6418         invocations from here...
6419         * modules/fopen (configure.ac): ... to here.
6420
6421 2011-05-07  Bruno Haible  <bruno@clisp.org>
6422
6423         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
6424         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
6425         gl_FUNC_FNMATCH_POSIX.
6426         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
6427         invocations from here...
6428         * modules/fnmatch (configure.ac): ... to here.
6429         * modules/fnmatch-gnu (configure.ac): ... and here.
6430
6431 2011-05-07  Bruno Haible  <bruno@clisp.org>
6432
6433         flock: Move AC_LIBOBJ invocations to module description.
6434         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
6435         invocations from here...
6436         * modules/flock (configure.ac): ... to here.
6437
6438 2011-05-07  Bruno Haible  <bruno@clisp.org>
6439
6440         fileblocks: Move AC_LIBOBJ invocations to module description.
6441         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
6442         gl_PREREQ_FILEBLOCKS invocations from here...
6443         * modules/fileblocks (configure.ac): ... to here.
6444
6445 2011-05-06  Bruno Haible  <bruno@clisp.org>
6446
6447         fflush: Move AC_LIBOBJ invocations to module description.
6448         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
6449         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
6450         invocations from here...
6451         * modules/fflush (configure.ac): ... to here.
6452
6453 2011-05-06  Bruno Haible  <bruno@clisp.org>
6454
6455         fdopendir: Move AC_LIBOBJ invocations to module description.
6456         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
6457         here...
6458         * modules/fdopendir (configure.ac): ... to here.
6459         (Depends-on): Improve conditions.
6460
6461 2011-05-06  Bruno Haible  <bruno@clisp.org>
6462
6463         _Exit: Move AC_LIBOBJ invocations to module description.
6464         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
6465         invocations from here...
6466         * modules/_Exit (configure.ac): ... to here.
6467
6468 2011-05-21  Bruno Haible  <bruno@clisp.org>
6469
6470         euidaccess: Respect rules for use of AC_LIBOBJ.
6471         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6472         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
6473         from here...
6474         * modules/euidaccess (configure.ac): ... to here.
6475
6476 2011-05-06  Bruno Haible  <bruno@clisp.org>
6477
6478         error: Move AC_LIBOBJ invocations to module description.
6479         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
6480         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
6481         invocations from here...
6482         * modules/error (configure.ac): ... to here.
6483
6484 2011-05-06  Bruno Haible  <bruno@clisp.org>
6485
6486         duplocale: Move AC_LIBOBJ invocations to module description.
6487         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
6488         gl_PREREQ_DUPLOCALE invocations from here...
6489         * modules/duplocale (configure.ac): ... to here.
6490
6491 2011-05-05  Bruno Haible  <bruno@clisp.org>
6492
6493         dirfd: Move AC_LIBOBJ invocations to module description.
6494         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
6495         gl_FUNC_DIRFD.
6496         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
6497         here...
6498         * modules/dirfd (configure.ac): ... to here.
6499         (Depends-on): Fix condition.
6500
6501 2011-05-05  Bruno Haible  <bruno@clisp.org>
6502
6503         chown: Respect rules for use of AC_LIBOBJ.
6504         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
6505         * modules/chown (configure.ac): ... to here.
6506
6507 2011-05-05  Bruno Haible  <bruno@clisp.org>
6508
6509         chdir-long: Move AC_LIBOBJ invocations to module description.
6510         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
6511         gl_PREREQ_CHDIR_LONG invocations from here...
6512         * modules/chdir-long (configure.ac): ... to here.
6513
6514 2011-05-05  Bruno Haible  <bruno@clisp.org>
6515
6516         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6517         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6518         from here...
6519         * modules/canonicalize-lgpl (configure.ac): ... to here.
6520
6521 2011-05-05  Bruno Haible  <bruno@clisp.org>
6522
6523         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6524         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6525         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6526         REPLACE_CALLOC.
6527         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6528         * modules/calloc-gnu (configure.ac): Likewise.
6529
6530 2011-05-05  Bruno Haible  <bruno@clisp.org>
6531
6532         btowc: Move AC_LIBOBJ invocations to module description.
6533         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6534         invocations from here...
6535         * modules/btowc (configure.ac): ... to here.
6536
6537 2011-05-21  Bruno Haible  <bruno@clisp.org>
6538
6539         atexit: Move AC_LIBOBJ invocations to module description.
6540         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6541         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6542         here...
6543         * modules/atexit (configure.ac): ... to here.
6544
6545 2011-05-05  Bruno Haible  <bruno@clisp.org>
6546
6547         atoll: Move AC_LIBOBJ invocations to module description.
6548         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6549         invocations from here...
6550         * modules/atoll (configure.ac): ... to here.
6551
6552 2011-05-05  Bruno Haible  <bruno@clisp.org>
6553
6554         argz: Move AC_LIBOBJ invocations to module description.
6555         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6556         * modules/argz (configure.ac): ... to here.
6557
6558 2011-05-05  Bruno Haible  <bruno@clisp.org>
6559
6560         alphasort: Move AC_LIBOBJ invocations to module description.
6561         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6562         gl_PREREQ_ALPHASORT invocations from here...
6563         * modules/alphasort (configure.ac): ... to here.
6564
6565 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6566
6567         verify: new macro verify_expr; verify_true deprecated
6568         * NEWS: Mention this.
6569         * doc/verify.texi (Compile-time Assertions): Document this.
6570         * lib/verify.h (verify_true): Deprecate.
6571         (verify_expr): New macro.
6572         * tests/test-verify.c (function): Test verify_expr.
6573
6574 2011-06-14  Jim Meyering  <meyering@redhat.com>
6575
6576         init.sh: give more portable redirection-related advice in a comment
6577         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6578         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6579         for lots of discussion.  Stefano Lattarini suggested the solution
6580         of putting "9>&2" after the command.  Reported by Bruno Haible.
6581
6582 2011-06-13  Bruno Haible  <bruno@clisp.org>
6583
6584         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6585         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6586         'none'.
6587
6588 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6589
6590         ftoastr: use strtof only if HAVE_STRTOF
6591         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6593         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6594         * modules/ftoastr (configure.ac): Check for strtof.
6595
6596 2011-06-13  Bruno Haible  <bruno@clisp.org>
6597
6598         gnulib-tool: Addendum to 2011-06-08 commit.
6599         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6600         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6601
6602 2011-06-13  Bruno Haible  <bruno@clisp.org>
6603
6604         fseeko: Provide a non-inline replacement of fseek().
6605         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6606         * modules/fseeko (Depends-on): Add fseek.
6607         * modules/fseek (License): Change to LGPLv2+.
6608
6609 2011-06-13  Bruno Haible  <bruno@clisp.org>
6610
6611         ftello: Provide a non-inline replacement of ftell().
6612         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6613         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6614         not have ftello() (such as on mingw).
6615         * modules/ftello (Depends-on): Add ftell.
6616         * modules/ftell (License): Change to LGPLv2+.
6617
6618 2011-05-07  Bruno Haible  <bruno@clisp.org>
6619
6620         ftell: Move AC_LIBOBJ invocations to module description.
6621         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6622         * modules/ftell (configure.ac): ... to here.
6623
6624 2011-05-07  Bruno Haible  <bruno@clisp.org>
6625
6626         ftello: Respect rules for use of AC_LIBOBJ.
6627         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6628         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6629         here...
6630         * modules/ftello (configure.ac): ... to here.
6631
6632 2011-05-07  Bruno Haible  <bruno@clisp.org>
6633
6634         fseeko: Simplify.
6635         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6636         (gl_FUNC_FSEEKO): Inline it here.
6637
6638 2011-05-07  Bruno Haible  <bruno@clisp.org>
6639
6640         fseek: Move AC_LIBOBJ invocations to module description.
6641         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6642         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6643         * modules/fseek (configure.ac): ... to here.
6644
6645 2011-05-07  Bruno Haible  <bruno@clisp.org>
6646
6647         fseek: Respect rules for use of AC_LIBOBJ.
6648         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6649         here...
6650         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6651
6652 2011-05-07  Bruno Haible  <bruno@clisp.org>
6653
6654         fseeko: Respect rules for use of AC_LIBOBJ.
6655         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6656         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6657         here...
6658         * modules/fseeko (configure.ac): ... to here.
6659
6660 2011-06-13  Bruno Haible  <bruno@clisp.org>
6661
6662         gnulib-tool: Allow comments in the 'Depends-on' section.
6663         * doc/gnulib.texi (Module description): Mention comment syntax in the
6664         Depends-on section.
6665         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6666
6667 2011-06-13  Bruno Haible  <bruno@clisp.org>
6668
6669         file-set.h: guard __attibute__ use, now that it's not always defined
6670         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6671         versions that support it.  This fixes a coreutils build failure with
6672         the vendor cc on HP-UX 11.31.
6673
6674 2011-06-12  Bruno Haible  <bruno@clisp.org>
6675
6676         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6677         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6678         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6679         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6680         (acl, aclsort): New declarations.
6681         (aclv_nontrivial): New declaration.
6682         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6683         (file_has_acl): Read also the second kind of HP-UX ACLs.
6684         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6685         kind of HP-UX ACLs if the first kind fails.
6686         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6687         second kind of HP-UX ACLs.
6688         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6689         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6690         agree.
6691         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6692         hpuxjfs.
6693         Handle hpuxjfs.
6694         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6695         hpuxjfs.
6696         Handle hpuxjfs.
6697         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6698         (func_test_same_acls): Use both lsacl and getacl.
6699         Handle hpuxjfs.
6700         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6701         (func_test_same_acls): Use both lsacl and getacl.
6702         Handle hpuxjfs.
6703
6704 2011-06-12  Bruno Haible  <bruno@clisp.org>
6705
6706         acl: Complete the 2010-08-10 fix.
6707         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6708         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6709         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6710         explicitly.
6711         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6712         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6713
6714 2011-06-12  Bruno Haible  <bruno@clisp.org>
6715
6716         spawn-pipe tests: Comments.
6717         * tests/test-spawn-pipe-child.c (main): Update comment.
6718         Reported by James Youngman <jay@gnu.org>.
6719
6720 2011-06-11  James Youngman  <jay@gnu.org>
6721
6722         New module 'stat-size'.
6723         * modules/stat-size: New module.  Provides macros for accessing
6724         file size information in instances of struct stat.  Depends on the
6725         fileblocks module because it calls st_blocks.
6726         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6727         * doc/gnulib.texi: Include stat-size.texi.
6728         * doc/stat-size.texi: Documentation for this module.
6729         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6730         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6731         AC_STRUCT_ST_BLOCKS.
6732
6733 2011-06-09  Bruno Haible  <bruno@clisp.org>
6734
6735         thread: Support pthreads-win32.
6736         * lib/glthread/thread.h (gl_thread_self): Define differently on
6737         pthreads-win32.
6738         (gl_null_thread): New declaration.
6739         (gl_thread_self_pointer): New macro.
6740         * lib/glthread/thread.c (gl_null_thread): New constant.
6741         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6742         gl_thread_self.
6743         * tests/test-tls.c: Likewise.
6744         Suggested by Paul Eggert. Reported by Eric Blake.
6745
6746 2011-06-09  Bruno Haible  <bruno@clisp.org>
6747
6748         thread: Fix confusion between NULL and 0.
6749         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6750         Reported by Paul Eggert.
6751
6752 2011-06-09  Bruno Haible  <bruno@clisp.org>
6753
6754         spawn-pipe tests: Avoid test failure on HP-UX 11.
6755         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6756         is closed.
6757
6758 2011-06-09  Bruno Haible  <bruno@clisp.org>
6759
6760         acl tests: Fix compilation error on HP-UX 11.
6761         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6762
6763 2011-06-09  Bruno Haible  <bruno@clisp.org>
6764
6765         rmdir: Avoid test failure on HP-UX 10.20.
6766         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6767         EEXIST.
6768
6769 2011-06-08  Eric Blake  <eblake@redhat.com>
6770
6771         perror: fix test on mingw
6772         * modules/perror-tests (Depends-on): Add dup2.
6773
6774         strerror_r-posix: fix on MacOS
6775         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6776         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6777         logic bug.
6778         * lib/strerror_r.c (strerror_r): Fix the bug.
6779         * lib/strerror.c (strerror): Likewise.
6780         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6781         problem.
6782         * doc/posix-functions/strerror.texi (strerror): Likewise.
6783         * doc/posix-functions/perror.texi (perror): Likewise.
6784         * tests/test-strerror.c (main): Enhance test.
6785         * tests/test-strerror_r.c (main): Likewise.
6786
6787 2011-06-08  Bruno Haible  <bruno@clisp.org>
6788
6789         gnulib-tool: Better isolation between different gnulib-tool invocations.
6790         * gnulib-tool: New option --witness-c-macro.
6791         (witness_c_macro): New variable.
6792         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6793         AM_CPPFLAGS define it as a C macro.
6794         (func_emit_tests_Makefile_am): Likewise.
6795         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6796         read it from there.
6797         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6798         m4_define, not AC_DEFUN.
6799         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6800         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6801         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6802         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6803         s|...|...|, to substitute the values of the GNULIB_* module indicator
6804         variables.
6805         * modules/dirent (Makefile.am): Likewise.
6806         * modules/fcntl-h (Makefile.am): Likewise.
6807         * modules/iconv-h (Makefile.am): Likewise.
6808         * modules/langinfo (Makefile.am): Likewise.
6809         * modules/locale (Makefile.am): Likewise.
6810         * modules/math (Makefile.am): Likewise.
6811         * modules/netdb (Makefile.am): Likewise.
6812         * modules/poll-h (Makefile.am): Likewise.
6813         * modules/pty (Makefile.am): Likewise.
6814         * modules/search (Makefile.am): Likewise.
6815         * modules/signal (Makefile.am): Likewise.
6816         * modules/spawn (Makefile.am): Likewise.
6817         * modules/stdio (Makefile.am): Likewise.
6818         * modules/stdlib (Makefile.am): Likewise.
6819         * modules/string (Makefile.am): Likewise.
6820         * modules/sys_ioctl (Makefile.am): Likewise.
6821         * modules/sys_select (Makefile.am): Likewise.
6822         * modules/sys_socket (Makefile.am): Likewise.
6823         * modules/sys_stat (Makefile.am): Likewise.
6824         * modules/sys_times (Makefile.am): Likewise.
6825         * modules/sys_utsname (Makefile.am): Likewise.
6826         * modules/sys_wait (Makefile.am): Likewise.
6827         * modules/termios (Makefile.am): Likewise.
6828         * modules/time (Makefile.am): Likewise.
6829         * modules/unistd (Makefile.am): Likewise.
6830         * modules/wchar (Makefile.am): Likewise.
6831
6832 2011-06-08  Eric Blake  <eblake@redhat.com>
6833
6834         strerror: simplify replacement
6835         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6836         * modules/strerror (configure.ac): No prereqs needed here...
6837         * modules/strerror-override (configure.ac): ...but this needs it.
6838         (Files): Add file for needed prereq macro.
6839
6840 2011-06-08  Bruno Haible  <bruno@clisp.org>
6841
6842         strerror_r-posix: Tweaks.
6843         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6844         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6845         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6846         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6847         (gl_FUNC_STRERROR_R): ... to here.
6848         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6849
6850 2011-06-07  Eric Blake  <eblake@redhat.com>
6851
6852         perror: document fixed bugs
6853         * doc/posix-functions/perror.texi (perror): Document recent
6854         patches.
6855
6856 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6857
6858         stat-time: get_stat_birthtime failure is better-defined
6859         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6860         return a timestamp whose tv_sec and tv_nsec values are both -1.
6861         Previously, the spec said only that the tv_nsec value was negative.
6862         This upward-compatible change simplifies GNU tar a bit.
6863
6864 2011-06-07  Eric Blake  <eblake@redhat.com>
6865
6866         strerror_r-posix: work around cygwin 1.7.9
6867         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6868         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6869         bug without replacing strerror_r.
6870         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6871         strerror_r is buggy, but without requiring strerror_r compilation.
6872         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6873
6874         test-perror: relax test to ignore cygwin bug
6875         * tests/test-perror2.c (main): Relax test on requiring detection
6876         of stream errors, and use unbuffered stream.
6877         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6878         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6879         * doc/posix-functions/fputc.texi (fputc): Likewise.
6880         * doc/posix-functions/fputs.texi (fputs): Likewise.
6881         * doc/posix-functions/fputws.texi (fputws): Likewise.
6882         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6883         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6884         * doc/posix-functions/getopt.texi (getopt): Likewise.
6885         * doc/posix-functions/perror.texi (perror): Likewise.
6886         * doc/posix-functions/printf.texi (printf): Likewise.
6887         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6888         * doc/posix-functions/psignal.texi (psignal): Likewise.
6889         * doc/posix-functions/putc.texi (putc): Likewise.
6890         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6891         Likewise.
6892         * doc/posix-functions/putchar.texi (putchar): Likewise.
6893         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6894         Likewise.
6895         * doc/posix-functions/puts.texi (puts): Likewise.
6896         * doc/posix-functions/putwc.texi (putwc): Likewise.
6897         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6898         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6899         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6900         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6901         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6902         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6903         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6904         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6905
6906 2011-05-22  Bruno Haible  <bruno@clisp.org>
6907
6908         strerror: Move AC_LIBOBJ invocations to module description.
6909         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6910         gl_PREREQ_STRERROR invocations from here...
6911         * modules/strerror (configure.ac): ... to here.
6912
6913 2011-05-21  Bruno Haible  <bruno@clisp.org>
6914
6915         perror: Use common idiom.
6916         * modules/perror (configure.ac): Reorder statements.
6917
6918 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6919
6920         tests: fix usage message in 'mktempd_'
6921         * tests/init.sh (mktempd_): In the usage message, use literal
6922         'mktempd_', not '$ME' (which is even undefined), as the name of
6923         the subroutine.
6924
6925 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6926
6927         tests init: new function 'fatal_', for hard errors
6928         Before this patch, the only way offered by tests/init.sh to
6929         properly signal a hard error was the `framework_failure_'
6930         function.  But the error message issued by that function,
6931         as its name would suggest, refers to a set-up failure in the
6932         testsuite, while hard errors can obviously also be due to
6933         other reasons.  The best way to fix this inconsistency is to
6934         introduce a new function with a more general error message.
6935         * tests/init.sh (fatal_): New function.
6936
6937 2011-06-06  Eric Blake  <eblake@redhat.com>
6938
6939         canonicalize-lgpl: use common idiom
6940         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6941         over newer POSIX -Rf.
6942         Reported by Bruno Haible.
6943
6944         canonicalize-lgpl: work around AIX realpath bug
6945         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6946         * doc/posix-functions/realpath.texi (realpath): Document it.
6947         Reported by Bruno Haible.
6948
6949         strerror: work around FreeBSD bug
6950         * lib/strerror.c (strerror): Special case 0.
6951         Reported by Bruno Haible.
6952
6953         strerror-override: avoid bloating errno module
6954         * modules/errno (Files, configure.ac): Move replacement strings...
6955         * modules/strerror-override: ...to new module.
6956         * modules/strerror (Depends-on): Add strerror-override.
6957         * modules/strerror_r-posix (Depends-on): Likewise.
6958         * MODULES.html.sh: Document new module.
6959         Reported by Bruno Haible.
6960
6961 2011-06-06  Bruno Haible  <bruno@clisp.org>
6962
6963         spawn-pipe tests: Rename program.
6964         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6965         * tests/test-spawn-pipe-child.c: Update comment.
6966         * tests/test-spawn-pipe.sh: Update.
6967         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6968
6969         spawn-pipe tests: Link the child program only against libc.
6970         * tests/test-spawn-pipe-child.c: New file, extracted from
6971         tests/test-spawn-pipe.c.
6972         (main): Expect only one argument.
6973         (is_open): New function, copied from tests/test-pipe.c.
6974         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6975         (child_main): Remove function.
6976         (test_pipe): Pass only one argument to the child program.
6977         (main): Remove child process code. Expect the child program's name as
6978         first argument.
6979         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6980         argument.
6981         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6982         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6983         test-spawn-pipe-child against no libraries.
6984
6985 2011-06-06  Bruno Haible  <bruno@clisp.org>
6986
6987         careadlinkat: Avoid mismatch between ssize_t and int.
6988         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6989         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6990
6991 2011-06-06  Jim Meyering  <meyering@redhat.com>
6992
6993         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6994         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6995         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6996
6997 2011-06-05  Bruno Haible  <bruno@clisp.org>
6998
6999         ansi-c++-opt: Interoperability with libtool.
7000         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
7001         set the variable to "no", not to ":".
7002         * NEWS: Mention the change.
7003
7004 2011-06-05  Bruno Haible  <bruno@clisp.org>
7005
7006         acl: Fix test failure on AIX 7.
7007         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
7008         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
7009
7010 2011-06-05  Bruno Haible  <bruno@clisp.org>
7011
7012         pipe-filter-ii: Fix test failure on AIX and IRIX.
7013         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
7014         with EAGAIN, retry with a smaller buffer size.
7015
7016 2011-06-05  Bruno Haible  <bruno@clisp.org>
7017
7018         localename: Fix link dependencies.
7019         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
7020         * modules/localename-tests (Makefile.am): Link test-localename with
7021         $(LIBTHREAD).
7022
7023 2011-06-05  Bruno Haible  <bruno@clisp.org>
7024
7025         error: Avoid gcc warning.
7026         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
7027
7028 2011-06-05  Bruno Haible  <bruno@clisp.org>
7029
7030         unsetenv: Avoid gcc warning.
7031         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
7032
7033 2011-06-05  Bruno Haible  <bruno@clisp.org>
7034
7035         setenv: Avoid gcc warning.
7036         * lib/setenv.c (setenv): Provide declaration if system lacks it.
7037
7038 2011-06-05  Bruno Haible  <bruno@clisp.org>
7039
7040         sys_select: Ensure memset is declared also on AIX 7.
7041         * lib/sys_select.in.h: Include <string.h> also on AIX.
7042         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
7043         self-contained also on AIX 7.1.
7044
7045 2011-06-04  Jim Meyering  <meyering@redhat.com>
7046
7047         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
7048         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
7049         function name, "error".
7050         (_gl_translatable_diag_func_re): New configurable variable.
7051
7052 2011-06-04  Bruno Haible  <bruno@clisp.org>
7053
7054         getopt: Avoid gcc warning.
7055         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
7056
7057 2011-06-04  Bruno Haible  <bruno@clisp.org>
7058
7059         strerror_r: Fix comments.
7060         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
7061         commit.
7062
7063 2011-06-04  Bruno Haible  <bruno@clisp.org>
7064
7065         perror: Fix compilation error.
7066         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
7067         Undefine fprintf, not sprintf.
7068         * modules/perror (Depends-on): Remove intprops, verify.
7069
7070 2011-06-04  Bruno Haible  <bruno@clisp.org>
7071
7072         setlocale: Enable replacement on Cygwin 1.5.
7073         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
7074         Cygwin 1.5.x.
7075         * doc/posix-functions/setlocale.texi: Mention that the problem with the
7076         LC_CTYPE category also exists on Cygwin 1.5.x.
7077
7078 2011-06-04  Bruno Haible  <bruno@clisp.org>
7079
7080         strerror-override: Don't disable symbol renamings.
7081         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
7082         * lib/strerror-override.c: Include config.h.
7083         (strerror_override): Don't undefine.
7084
7085 2011-06-03  Bruno Haible  <bruno@clisp.org>
7086
7087         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
7088         * lib/localename.h: Update copyright header.
7089         * lib/localename.c: Likewise.
7090         * lib/relocatable.h: Likewise.
7091         * lib/relocatable.c: Likewise.
7092
7093 2011-06-02  Bruno Haible  <bruno@clisp.org>
7094
7095         doc: Fix a module name.
7096         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
7097
7098 2011-06-02  Bruno Haible  <bruno@clisp.org>
7099
7100         pipe2: Remove dependency on 'nonblocking' module.
7101         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
7102         O_NONBLOCK is defined by gnulib.
7103         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
7104         is zero.
7105         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
7106         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
7107         defined by gnulib.
7108         (get_nonblocking_flag): New function.
7109         (main): Test O_NONBLOCK flag only if it is nonzero.
7110         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
7111
7112 2011-06-03  Jim Meyering  <meyering@redhat.com>
7113
7114         maint: three new prohibit-header-without-use rules
7115         Prohibit use of cloexec.h, posixver.h, same.h without use.
7116         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
7117         (sc_prohibit_posixver_without_use): Likewise.
7118         (sc_prohibit_same_without_use): Likewise.
7119
7120 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7121
7122         allocator: 'die' routine is now given requested size
7123         * lib/allocator.h (struct allocator.die): New size arg.
7124         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
7125         If the actual problem is an ssize_t limitation, not a size_t or
7126         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
7127
7128 2011-06-01  Eric Blake  <eblake@redhat.com>
7129
7130         strerror: drop strerror_r dependency
7131         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
7132         * lib/strerror-override.c (strerror_override): ...to new file.
7133         * lib/strerror-override.h: Add prototype.
7134         * lib/strerror-impl.h: Delete.
7135         * lib/strerror.c (strerror): New implementation.
7136         * modules/errno (Files): Add new files.
7137         (configure.ac): Compile new file as appropriate.
7138         * modules/strerror (Files): Drop unused file.
7139         (Depends-on): Drop strerror_r-posix.
7140         * MODULES.html.sh: Document strerror_r-posix.
7141         Requested by Sam Steingold.
7142
7143         perror: call strerror_r directly
7144         * modules/perror (Files): Drop strerror-impl.h.
7145         * lib/perror.c (perror): Use our own stack buffer, rather than
7146         calling a wrapper that uses static storage.
7147         * doc/posix-functions/perror.texi (perror): Document a limitation
7148         of our replacement.
7149
7150         strerror_r: fix includes for FreeBSD
7151         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
7152         since we use abort on some platforms.
7153         Reported by Matthias Bolte.
7154
7155 2011-05-31  Bruno Haible  <bruno@clisp.org>
7156
7157         Fix link errors in tests: openat-die uses gettext-h.
7158         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
7159         against $(LIBINTL).
7160         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
7161         against $(LIBINTL).
7162         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
7163         $(LIBINTL).
7164         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
7165         against $(LIBINTL).
7166         * modules/linkat-tests (Makefile.am): Link test-linkat against
7167         $(LIBINTL).
7168         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
7169         $(LIBINTL).
7170         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
7171         against $(LIBINTL).
7172         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
7173         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
7174         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
7175         $(LIBINTL).
7176         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
7177         $(LIBINTL).
7178         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
7179         $(LIBINTL).
7180         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7181
7182 2011-05-31  Bruno Haible  <bruno@clisp.org>
7183
7184         Fix link errors in tests: wait-process uses gettext-h.
7185         * modules/nonblocking-pipe-tests (Makefile.am): Set
7186         test_nonblocking_pipe_main_LDADD.
7187         * modules/nonblocking-socket-tests (Makefile.am): Link
7188         test-nonblocking-socket-main against $(LIBINTL).
7189         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7190
7191 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7192
7193         assert-h: work around 'verify' incompatibility
7194         * lib/verify.h: Use @...@ directives, not ifdef.
7195         * modules/assert-h (assert.h): Implement the directives.
7196         (assert.h): Substitute the symbol-prefix more consistently.
7197
7198 2011-05-29  Jim Meyering  <meyering@redhat.com>
7199
7200         trim: remove three superfluous assignments
7201         * lib/trim.c (trim2): Remove three superfluous assignments
7202         and correct brace positioning.
7203
7204 2011-05-29  Bruno Haible  <bruno@clisp.org>
7205
7206         wctype-h: Avoid namespace pollution on Solaris 2.6.
7207         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
7208         identifiers.
7209         * doc/posix-headers/wctype.texi: Mention the problem.
7210         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7211
7212 2011-05-28  Jim Meyering  <meyering@redhat.com>
7213
7214         parse-datetime.y: accommodate -Wstrict-overflow
7215         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
7216         placate -Wstrict-overflow.
7217
7218         trim: avoid a warning from -O2 -Wstrict-overflow
7219         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
7220
7221 2011-05-29  Bruno Haible  <bruno@clisp.org>
7222
7223         gnulib-tool: Fix bug in yesterday's commit.
7224         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
7225         twice.
7226
7227 2011-05-29  Bruno Haible  <bruno@clisp.org>
7228
7229         Allow multiple gnulib generated include files to be combined.
7230         * gnulib-tool (func_compute_include_guard_prefix): New function.
7231         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
7232         ${gl_include_guard_prefix} references.
7233         (func_import, func_create_testdir): Invoke
7234         func_compute_include_guard_prefix.
7235         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
7236         * lib/ctype.in.h: Likewise.
7237         * lib/dirent.in.h: Likewise.
7238         * lib/errno.in.h: Likewise.
7239         * lib/fcntl.in.h: Likewise.
7240         * lib/float.in.h: Likewise.
7241         * lib/getopt.in.h: Likewise.
7242         * lib/iconv.in.h: Likewise.
7243         * lib/langinfo.in.h: Likewise.
7244         * lib/locale.in.h: Likewise.
7245         * lib/math.in.h: Likewise.
7246         * lib/netdb.in.h: Likewise.
7247         * lib/netinet_in.in.h: Likewise.
7248         * lib/poll.in.h: Likewise.
7249         * lib/pthread.in.h: Likewise.
7250         * lib/pty.in.h: Likewise.
7251         * lib/sched.in.h: Likewise.
7252         * lib/se-selinux.in.h: Likewise.
7253         * lib/search.in.h: Likewise.
7254         * lib/signal.in.h: Likewise.
7255         * lib/spawn.in.h: Likewise.
7256         * lib/stdarg.in.h: Likewise.
7257         * lib/stddef.in.h: Likewise.
7258         * lib/stdint.in.h: Likewise.
7259         * lib/stdio.in.h: Likewise.
7260         * lib/stdlib.in.h: Likewise.
7261         * lib/string.in.h: Likewise.
7262         * lib/strings.in.h: Likewise.
7263         * lib/sys_file.in.h: Likewise.
7264         * lib/sys_ioctl.in.h: Likewise.
7265         * lib/sys_select.in.h: Likewise.
7266         * lib/sys_socket.in.h: Likewise.
7267         * lib/sys_stat.in.h: Likewise.
7268         * lib/sys_time.in.h: Likewise.
7269         * lib/sys_times.in.h: Likewise.
7270         * lib/sys_uio.in.h: Likewise.
7271         * lib/sys_utsname.in.h: Likewise.
7272         * lib/sys_wait.in.h: Likewise.
7273         * lib/sysexits.in.h: Likewise.
7274         * lib/termios.in.h: Likewise.
7275         * lib/time.in.h: Likewise.
7276         * lib/unistd.in.h: Likewise.
7277         * lib/wchar.in.h: Likewise.
7278         * lib/wctype.in.h: Likewise.
7279         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
7280         * modules/ctype (Makefile.am): Likewise.
7281         * modules/dirent (Makefile.am): Likewise.
7282         * modules/errno (Makefile.am): Likewise.
7283         * modules/fcntl-h (Makefile.am): Likewise.
7284         * modules/float (Makefile.am): Likewise.
7285         * modules/getopt-posix (Makefile.am): Likewise.
7286         * modules/iconv-h (Makefile.am): Likewise.
7287         * modules/langinfo (Makefile.am): Likewise.
7288         * modules/locale (Makefile.am): Likewise.
7289         * modules/math (Makefile.am): Likewise.
7290         * modules/netdb (Makefile.am): Likewise.
7291         * modules/netinet_in (Makefile.am): Likewise.
7292         * modules/poll-h (Makefile.am): Likewise.
7293         * modules/pthread (Makefile.am): Likewise.
7294         * modules/pty (Makefile.am): Likewise.
7295         * modules/sched (Makefile.am): Likewise.
7296         * modules/search (Makefile.am): Likewise.
7297         * modules/selinux-h (Makefile.am): Likewise.
7298         * modules/signal (Makefile.am): Likewise.
7299         * modules/spawn (Makefile.am): Likewise.
7300         * modules/stdarg (Makefile.am): Likewise.
7301         * modules/stddef (Makefile.am): Likewise.
7302         * modules/stdint (Makefile.am): Likewise.
7303         * modules/stdio (Makefile.am): Likewise.
7304         * modules/stdlib (Makefile.am): Likewise.
7305         * modules/string (Makefile.am): Likewise.
7306         * modules/strings (Makefile.am): Likewise.
7307         * modules/sys_file (Makefile.am): Likewise.
7308         * modules/sys_ioctl (Makefile.am): Likewise.
7309         * modules/sys_select (Makefile.am): Likewise.
7310         * modules/sys_socket (Makefile.am): Likewise.
7311         * modules/sys_stat (Makefile.am): Likewise.
7312         * modules/sys_time (Makefile.am): Likewise.
7313         * modules/sys_times (Makefile.am): Likewise.
7314         * modules/sys_uio (Makefile.am): Likewise.
7315         * modules/sys_utsname (Makefile.am): Likewise.
7316         * modules/sys_wait (Makefile.am): Likewise.
7317         * modules/sysexits (Makefile.am): Likewise.
7318         * modules/termios (Makefile.am): Likewise.
7319         * modules/time (Makefile.am): Likewise.
7320         * modules/unistd (Makefile.am): Likewise.
7321         * modules/wchar (Makefile.am): Likewise.
7322         * modules/wctype-h (Makefile.am): Likewise.
7323         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
7324
7325 2011-05-29  Bruno Haible  <bruno@clisp.org>
7326
7327         assert-h: Allow multiple gnulib generated replacements to coexist.
7328         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
7329
7330 2011-05-29  Bruno Haible  <bruno@clisp.org>
7331
7332         argp: Allow coexistence with strerror_r-posix module.
7333         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
7334         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
7335         by gnulib's <string.h> replacement), assume it has the POSIX signature,
7336         not the glibc signature.
7337
7338 2011-05-28  Bruno Haible  <bruno@clisp.org>
7339
7340         gnulib-tool: Alternative structure of testdirs, similar to --import.
7341         * gnulib-tool: New option --single-configure.
7342         (func_usage): Document it.
7343         (single_configure): New variable.
7344         (func_modules_transitive_closure_separately,
7345         func_modules_transitive_closure_separately,
7346         func_determine_use_libtests, func_modules_add_dummy_separately,
7347         func_modules_to_filelist_separately): New functions, extracted from
7348         func_import.
7349         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
7350         (func_import): Use the new functions.
7351         (func_create_testdir): Set final_modules. Handle $single_configure =
7352         true case.
7353
7354 2011-05-28  Bruno Haible  <bruno@clisp.org>
7355
7356         getloadavg: Remove an unreliable safety check.
7357         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
7358         getloadavg.c is in place.
7359         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
7360         Reported by Sam Steingold <sds@gnu.org>.
7361
7362 2011-05-28  Bruno Haible  <bruno@clisp.org>
7363
7364         doc: Cleanup yet another file produced by texinfo.tex.
7365         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
7366
7367 2011-05-28  Bruno Haible  <bruno@clisp.org>
7368
7369         Finish the conditional dependencies mechanism.
7370         * gnulib-tool: New option --no-conditional-dependencies.
7371         (func_usage): Document it. Don't mark --conditional-dependencies as
7372         experimental.
7373         (cond_dependencies): The possible values can now be true, false, empty.
7374         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
7375         (func_import): Store setting in gnulib-cache.m4 and read it from there.
7376         * doc/gnulib-tool.texi (Conditional dependencies): New section.
7377
7378 2011-05-28  Bruno Haible  <bruno@clisp.org>
7379
7380         doc: Use a recent texinfo.tex.
7381         * doc/Makefile (tex_opts): New variable.
7382         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
7383
7384 2011-05-28  Jim Meyering  <meyering@redhat.com>
7385
7386         intprops.h: adjust comment to match code change
7387         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
7388         only once, it *may* have side effects.  Also fix an unrelated typo.
7389         (_GL_INT_SIGNED): Likewise.
7390
7391 2011-05-26  Simon Josefsson  <simon@josefsson.org>
7392
7393         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
7394
7395 2011-05-26  Bruno Haible  <bruno@clisp.org>
7396
7397         mbsrchr: Avoid collision with system function on Interix.
7398         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
7399         Reported by Markus Duft <mduft@gentoo.org>.
7400
7401 2011-05-15  James Youngman  <jay@gnu.org>
7402
7403         getopt: for ambiguous options, enumerate the possibilities.
7404         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
7405         the ambiguous options when an ambiguous prefix is given. This was
7406         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
7407         glibc change was
7408         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
7409
7410 2011-05-25  Eric Blake  <eblake@redhat.com>
7411
7412         getcwd: work around mingw bug
7413         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
7414         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7415         Reported by Matthias Bolte.
7416
7417 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7418
7419         test-intprops: disable -Wtype-limits diagnostics
7420         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
7421         diagnostics.  Otherwise, the integer overflow macros generate many
7422         diagnostics.  Reported by Jim Meyering in
7423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7424
7425         intprops: shorten, to pacify gcc -Woverlength-strings
7426         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
7427         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
7428         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
7429         likely to run afoul of C compiler limits for string constant lengths.
7430         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7431
7432 2011-05-24  Eric Blake  <eblake@redhat.com>
7433
7434         docs: document recently fixed glibc printf bug
7435         * doc/posix-functions/fprintf.texi (fprintf): Document it.
7436         * doc/posix-functions/printf.texi (printf): Likewise.
7437         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7438         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7439
7440         closein-tests: convert to init.sh
7441         * modules/closein-tests (Files): Add init.sh
7442         * tests/test-closein.sh Use it.
7443
7444         yesno-tests: convert to init.sh
7445         * modules/yesno-tests (Files): Add init.sh.
7446         * tests/test-yesno.sh: Use it.
7447
7448         atexit-tests: ensure reliable exit status
7449         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
7450         Reported by Bruno Haible.
7451
7452 2011-05-24  Bruno Haible  <bruno@clisp.org>
7453
7454         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
7455         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
7456         gl_PREREQ_STRERROR_R invocations from here...
7457         * modules/strerror_r-posix (configure.ac): ... to here.
7458
7459 2011-05-24  Eric Blake  <eblake@redhat.com>
7460
7461         strerror_r: fix missing header
7462         * lib/strerror_r.c: Avoid compiler warning about snprintf.
7463
7464         strerror_r: fix AIX test failures
7465         * lib/strerror_r.c (strerror_r): Convert silent truncation to
7466         ERANGE failure.
7467
7468         strerror_r: fix Solaris test failures
7469         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
7470         failures.
7471         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7472
7473         strerror_r: enforce POSIX recommendations
7474         * lib/strerror_r.c (safe_copy): New helper method.
7475         (strerror_r): Guarantee a non-empty string.
7476         * tests/test-strerror_r.c (main): Enhance tests to incorporate
7477         recent POSIX rulings and to match our strerror guarantees.
7478         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7479
7480 2011-05-24  Jim Meyering  <meyering@redhat.com>
7481
7482         test-perror2.c: avoid warning about unused variable
7483         * tests/test-perror2.c (main): Remove declaration of unused "fp".
7484
7485 2011-05-24  Eric Blake  <eblake@redhat.com>
7486
7487         perror: avoid spurious test failure on HP-UX
7488         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
7489
7490         tests: fix logic bug in init.sh
7491         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
7492         shell.
7493
7494 2011-05-24  Jim Meyering  <meyering@redhat.com>
7495
7496         utimensat: do not reference an out-of-scope buffer
7497         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
7498         declared in an inner scope, yet "times" would be dereferenced outside
7499         the scope in which "ts" was valid.
7500         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
7501         of ts[2] "out/up", so that the use of aliased "times" (via
7502         "times = ts;") does not end up referencing an out-of-scope "ts"
7503
7504         opendir-safer.c: don't clobber errno; don't close negative FD
7505         * lib/opendir-safer.c (opendir_safer):
7506         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
7507         file descriptor, and more importantly, don't clobber the
7508         offending errno value with EINVAL.  Before, upon failure
7509         of dup_safer, we would pass the negative file descriptor to
7510         fdopendir, which would clobber errno.
7511
7512 2011-05-23  Bruno Haible  <bruno@clisp.org>
7513
7514         idcache: Fix module description.
7515         * modules/idcache (Include): Set to "idcache.h".
7516
7517 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7518
7519         gnulib-tool: fix portability problem with MacOS sed
7520         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7521         before the "}".  Problem reported by Leo in
7522         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7523         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7524         sed_extract_condition1, sed_extract_condition2.
7525
7526 2011-05-23  Bruno Haible  <bruno@clisp.org>
7527
7528         hash: Simplify autoconf macro.
7529         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7530
7531 2011-05-23  Bruno Haible  <bruno@clisp.org>
7532
7533         getugroups: Fix module description.
7534         * modules/getugroups (Include): Set to "getugroups.h".
7535
7536 2011-05-23  Bruno Haible  <bruno@clisp.org>
7537
7538         linkat: Simplify autoconf macro.
7539         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7540
7541 2011-05-23  Bruno Haible  <bruno@clisp.org>
7542             Eric Blake  <eblake@redhat.com>
7543
7544         linkat, renameat: Update dependencies.
7545         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7546         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7547         symlinkat.
7548
7549 2011-05-23  Jim Meyering  <meyering@redhat.com>
7550
7551         maint.mk: more tight_scope improvements
7552         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7553         (_gl_TS_headers): Define only in if-0'd block.
7554         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7555         sometimes we must *not* use it.  Adjust uses accordingly.
7556         (sc_tight_scope): Use much simpler grep-based test to determine
7557         whether we skip this rule.
7558
7559         maint.mk: generalize/improve the tight-scope rule
7560         * top/maint.mk: Emit a warning when the test is skipped.
7561         (_gl_TS_dir): Add $(srcdir)/ prefix.
7562         (_gl_TS_function_match): Simplify, rather than trying
7563         to enumerate common types.  Otherwise, it would fail to match an
7564         "extern unsigned char const *" declaration in idutils.
7565         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7566         a way to support use of that type of macro.
7567         (_gl_TS_var_match): Simplify regexp.
7568         (_gl_TS_obj_files): New configurable variable.
7569         (_gl_TS_headers): Likewise.
7570
7571 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7572
7573         verify: fix bug when gnulib <assert.h> is also included
7574         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7575         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7576         Perhaps there's a better way, but this fixes the immediate problem.
7577         Problem reported by Bruno Haible in
7578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7579
7580 2011-05-22  Bruno Haible  <bruno@clisp.org>
7581
7582         xgetcwd: Simplify autoconf macro.
7583         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7584
7585 2011-05-22  Bruno Haible  <bruno@clisp.org>
7586
7587         New module 'mktime-internal'.
7588         * modules/mktime-internal: New file.
7589         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7590         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7591         mktime_internal as a C macro if libc has __mktime_internal.
7592         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7593         conditions.
7594         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7595
7596 2011-05-22  Bruno Haible  <bruno@clisp.org>
7597
7598         timegm: Correct mktime replacement statements.
7599         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7600         defining mktime as a C macro. This completes a 2009-07-28 commit.
7601
7602 2011-05-22  Bruno Haible  <bruno@clisp.org>
7603
7604         timegm: Simplify autoconf macro.
7605         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7606
7607 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7608
7609         clock-time: change to LGPLv2+.
7610         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7611         BSD-like but we have no mark for that; this is good enough for now.
7612
7613 2011-05-21  Bruno Haible  <bruno@clisp.org>
7614
7615         strerror_r: Fix comments.
7616         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7617
7618 2011-05-21  Bruno Haible  <bruno@clisp.org>
7619
7620         relocatable-prog-wrapper: Fix possible link error.
7621         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7622         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7623         (gl_FUNC_SETENV): ... to here.
7624         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7625         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7626
7627 2011-05-21  Bruno Haible  <bruno@clisp.org>
7628
7629         relocatable-prog-wrapper: Assume strerror() exists.
7630         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7631         m4/strerror.m4.
7632         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7633         * lib/relocwrapper.c: Remove mention of strerror module.
7634         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7635         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7636         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7637         C macro.
7638
7639 2011-05-21  Bruno Haible  <bruno@clisp.org>
7640
7641         select: Simplify replacement idiom.
7642         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7643         Win32 platforms.
7644         * lib/sys_select.in.h (select): Simplify accordingly.
7645         * modules/select (Depends-on): Likewise.
7646
7647 2011-05-21  Bruno Haible  <bruno@clisp.org>
7648
7649         mkdir-p: Simplify autoconf macro.
7650         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7651         gl_FUNC_LCHOWN.
7652
7653 2011-05-21  Eric Blake  <eblake@redhat.com>
7654
7655         strerror_r: avoid clobbering strerror on cygwin
7656         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7657         fall back instead to sys_errlist.
7658         * modules/strerror (configure.ac): Add witness.
7659         * tests/test-strerror_r.c (main): Enhance test.
7660         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7661         * tests/test-perror2.c (main): Free memory before exit.
7662
7663 2011-05-21  Bruno Haible  <bruno@clisp.org>
7664
7665         mkdtemp: Use gnulib naming conventions.
7666         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7667         * modules/mkdtemp (configure.ac): Update.
7668
7669 2011-05-20  Eric Blake  <eblake@redhat.com>
7670
7671         strerror_r: avoid corrupting errno on Solaris
7672         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7673         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7674
7675         strerror_r: avoid compiler warning
7676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7677
7678         strerror_r: simplify AIX code
7679         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7680
7681         test-perror: avoid spurious failure on FreeBSD
7682         * modules/perror-tests (Depends-on): Add strerror, now that
7683         strerror_r no longer pulls it in.
7684
7685 2011-05-20  Bruno Haible  <bruno@clisp.org>
7686
7687         strerror_r-posix: Remove unused dependencies.
7688         * modules/strerror_r-posix (Depends-on): Remove strerror.
7689         Reported by Eric Blake.
7690
7691 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7692
7693         intprops: remove assumption about A|B representation
7694         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7695         is a valid integer if both A and B are.  Although this is true for
7696         all known practical hosts, the C standard doesn't guarantee it,
7697         and the code need not assume it.  Also, this change may work around
7698         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7700
7701 2011-05-20  Eric Blake  <eblake@redhat.com>
7702
7703         perror: work around FreeBSD bug
7704         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7705         is broken.  Move AC_LIBOBJ...
7706         * modules/perror (configure.ac): Here.
7707         * doc/posix-functions/perror.texi (perror): Document this.
7708         * tests/test-perror2.c (main): Enhance test.
7709
7710         test-perror: check for strerror interactions
7711         * tests/macros.h (STREQ): Add macro.
7712         * modules/perror-tests (Files): Add second test.
7713         * tests/test-perror2.c (main): New file.
7714         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7715
7716         test-perror: rewrite to use init script
7717         * modules/perror-tests (Files): Add init.sh.
7718         * tests/test-perror.sh: Use temporary directory.
7719
7720 2011-05-20  Jim Meyering  <meyering@redhat.com>
7721
7722         maint: replace misused "a" with "an"
7723         * doc/intprops.texi: "a integer"
7724         * doc/regex.texi: "a explanation"
7725         * lib/alignof.h: "a object"
7726         * lib/argmatch.h: "a explanation"
7727         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7728         * lib/stdint.in.h: "a integer"
7729         * lib/userspec.c: "a owner"
7730         * doc/gnulib.texi: Fix "a idea", and reword.
7731
7732 2011-05-19  Jim Meyering  <meyering@redhat.com>
7733
7734         maint: correct misuse of "a" and "an"
7735         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7736         * lib/argp-help.c: "an docum...": s/an/a/
7737         * lib/argp-parse.c: "An vector": s/An/A/
7738         * lib/execute.c: "an native": s/an/a/
7739         * lib/spawn-pipe.c: Likewise.
7740         * lib/gc.h: "an Gc_rc": s/an/a/
7741         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7742         * lib/fts.c: "an stat.st_dev": s/an/a/
7743
7744 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7745
7746         intprops-tests: work around HP-UX 11.23 cc bug with constants
7747         * tests/test-intprops.c (VERIFY): New macro.
7748         (main): Use it, instead of verify, to work around the compiler bug; see
7749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7750
7751         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7752         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7753         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7754         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7755         (_GL_REMAINDER_OVERFLOW): Use it.
7756
7757         intprops-tests: revert unsigned part of previous change
7758         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7759         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7760         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7762
7763 2011-05-19  Bruno Haible  <bruno@clisp.org>
7764
7765         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7766         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7767         strerror_r() returned without filling the buffer.
7768         Reported by Eric Blake.
7769
7770 2011-05-19  Eric Blake  <eblake@redhat.com>
7771
7772         strerror_r: guarantee unchanged errno
7773         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7774         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7775         failure.
7776         * tests/test-strerror_r.c (main): Enhance test.
7777
7778 2011-05-19  Bruno Haible  <bruno@clisp.org>
7779
7780         strerror_r: Reorder #if blocks.
7781         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7782         for consistency with the previous commit.
7783
7784 2011-05-19  Bruno Haible  <bruno@clisp.org>
7785
7786         perror: Avoid clobbering the strerror buffer when possible.
7787         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7788         * lib/strerror.c: Include it.
7789         * modules/strerror (Files): Add lib/strerror-impl.h.
7790         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7791         (my_strerror): New function, defined through lib/strerror-impl.h.
7792         (perror): Use it instead of strerror.
7793         * modules/perror (Files): Add lib/strerror-impl.h.
7794         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7795
7796 2011-05-19  Eric Blake  <eblake@redhat.com>
7797
7798         strerror_r: fix on newer cygwin
7799         * lib/strerror_r.c (strerror_r): Cygwin now has
7800         __xpg_strerror_r, use it.
7801
7802 2011-05-19  Bruno Haible  <bruno@clisp.org>
7803
7804         strerror_r: Avoid clobbering the strerror buffer when possible.
7805         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7806         (sys_nerr, sys_errlist): New declarations.
7807         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7808         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7809         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7810
7811 2011-05-19  Bruno Haible  <bruno@clisp.org>
7812
7813         strerror_r: Fix test failure on mingw.
7814         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7815         EXTEND_STRERROR_R.
7816         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7817         macros from errno.in.h instead.
7818
7819 2011-05-19  Eric Blake  <eblake@redhat.com>
7820
7821         strerror: relax test for Solaris
7822         * tests/test-strerror.c (main): Permit Solaris behavior.
7823         * tests/test-strerror_r.c (main): Likewise.
7824
7825         strerror: enforce POSIX ruling on strerror(0)
7826         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7827         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7828         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7829         * doc/posix-functions/strerror.texi (strerror): Document it.
7830         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7831         * tests/test-strerror.c (main): Strengthen test.
7832         * tests/test-strerror_r.c (main): Likewise.
7833
7834 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7835
7836         intprop-tests: port to older and more-pedantic compilers
7837         * modules/intprops-tests (Files): Add tests/macros.h.
7838         * tests/test-intprops.c: Include macros.h.
7839         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7840         it's no longer documented to expand to an integer constant expression.
7841         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7842         argument is floating point, as it's no longer documented to expand
7843         to an integer constant expression in that case.
7844         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7845         compiler bugs reported by Bruno Haible.  See
7846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7847         (U0, U1): New constants, to work around the same bugs.  Also,
7848         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7849
7850         intprops: work around C compiler bugs
7851         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7852         bug in Sun C 5.11 2010/08/13 and other compilers; see
7853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7854
7855         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7856         * doc/intprops.texi (Integer Type Determination): Fix
7857         documentation for TYPE_IS_INTEGER: it returns an constant
7858         expression, not an integer constant expression.  Fix doc for
7859         TYPE_SIGNED: it returns an integer constant expression only if its
7860         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7861         hardly worth documented that way....)
7862
7863 2011-05-18  Bruno Haible  <bruno@clisp.org>
7864
7865         strerror_r: Avoid clobbering the strerror buffer when possible.
7866         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7867         Handle gnulib defined errno values here. When strerror() returns NULL
7868         or an empty string, return EINVAL.
7869         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7870         gnulib defined errno values here.
7871         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7872
7873 2011-05-18  Eric Blake  <eblake@redhat.com>
7874
7875         fnmatch: avoid compiler warning
7876         * lib/fnmatch_loop.c (FCT): Use correct type.
7877         Reported by Matthias Bolte.
7878
7879 2011-05-13  Jim Meyering  <meyering@redhat.com>
7880
7881         maint.mk: three new prohibit_<HDR>_without_use rules
7882         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7883         (sc_prohibit_stdio-safer_without_use): Likewise.
7884         (sc_prohibit_xfreopen_without_use): Likewise.
7885
7886 2011-05-17  Jim Meyering  <meyering@redhat.com>
7887
7888         announce-gen: fail if the NEWS delta is empty
7889         If there's nothing noteworthy in NEWS, then either you forgot
7890         or you shouldn't be releasing.
7891         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7892
7893 2011-05-17  Pádraig Brady <P@draigBrady.com>
7894
7895         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7896         reserved symbols starting with double underscore from the check.
7897
7898 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7899
7900         intprops: add doc
7901         * doc/intprops.texi: New file, documenting intprops.
7902         * doc/gnulib.texi (Particular Modules): Include it.
7903
7904         verify: add doc to gnulib manual and fix example
7905         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7906         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7907         (Compile-time Assertions): Fix example so it can't overflow.
7908
7909 2011-05-17  Jim Meyering  <meyering@redhat.com>
7910
7911         warnings.m4: don't usurp save_CPPFLAGS variable name
7912         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7913
7914         doc: fix typo
7915         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7916
7917 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7918             Bruno Haible  <bruno@clisp.org>
7919
7920         doc: Tweak recent change.
7921         * README (Portability guidelines): Tweak new text.
7922         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7923         Interix 6.1.
7924
7925 2011-05-16  Eric Blake  <eblake@redhat.com>
7926
7927         inttypes: avoid autoconf warning
7928         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7929         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7930
7931 2011-05-16  Sam Steingold <sds@gnu.org>
7932         and Eric Blake  <eblake@redhat.com>
7933
7934         vc-list-files: accept multiple directory operands
7935         * build-aux/vc-list-files: Iterate over all remaining operands.
7936
7937 2011-05-16  Bruno Haible  <bruno@clisp.org>
7938
7939         Fix confusion regarding deprecated modules.
7940         * modules/calloc (Status, Notice): Mark module as deprecated, not
7941         obsolete.
7942         * modules/fnmatch-posix (Status, Notice): Likewise.
7943         * modules/getdate (Status, Notice): Likewise.
7944         * modules/getopt (Status, Notice): Likewise.
7945         * modules/malloc (Status, Notice): Likewise.
7946         * modules/pipe (Status, Notice): Likewise.
7947         * modules/realloc (Status, Notice): Likewise.
7948         * modules/rename-dest-slash (Status, Notice): Likewise.
7949         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7950         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7951         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7952         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7953         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7954
7955 2011-05-16  Bruno Haible  <bruno@clisp.org>
7956
7957         doc: List the target platforms.
7958         * doc/gnulib-intro.texi (Target Platforms): New section.
7959         * doc/gnulib.texi (Introduction): Update menu.
7960         * README (Portability guidelines): Refer to the new section. Update
7961         statement about oldest supported environment. Remove rationale why
7962         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7963         unportable C89 function.
7964         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7965         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7966
7967 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7968
7969         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7970
7971 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7972
7973         intprops-tests: new module
7974         * modules/intprops-tests, tests/test-intprops.c: New files.
7975
7976         intprops: add safe, portable integer overflow checking
7977         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7978         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7979         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7980         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7981         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7982         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7983         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7984         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7985         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7986         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7987         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7988
7989 2011-05-12  James Youngman  <jay@gnu.org>
7990
7991         Add a test for glibc's Bugzilla bug #12378.
7992         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7993         doesn't allow the literal matching of a lone "[" (which is
7994         required by POSIX).
7995         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7996
7997 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7998
7999         Sync glibc change fixing Bugzilla bug #12378.
8000         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
8001         beginning and fall back to matching as normal character if the
8002         string ends before the matching ']' is found.  This is what POSIX
8003         requires.
8004
8005 2011-05-13  Eric Blake  <eblake@redhat.com>
8006
8007         getcwd-lgpl: relax test for FreeBSD
8008         * doc/posix-functions/getcwd.texi (getcwd): Document portability
8009         issue.
8010         * tests/test-getcwd-lgpl.c (main): Relax test.
8011         Reported by Matthias Bolte.
8012
8013 2011-05-11  Eric Blake  <eblake@redhat.com>
8014
8015         test-fflush: silence compiler warning
8016         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
8017
8018 2011-05-11  Bruno Haible  <bruno@clisp.org>
8019
8020         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
8021         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
8022         * modules/canonicalize (Depends-on): Add 'nocrash'.
8023         * modules/canonicalize-lgpl (Depends-on): Likewise.
8024         * doc/posix-functions/realpath.texi: Update platforms list.
8025         Reported by Ryan Schmidt <ryandesign@macports.org>.
8026
8027 2011-05-11  Bruno Haible  <bruno@clisp.org>
8028
8029         group-member: Declare function in <unistd.h>.
8030         * lib/unistd.in.h (group_member): New declaration.
8031         * lib/group-member.h: Remove file.
8032         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
8033         * tests/test-unistd-c++.cc: Check signature of group_member.
8034         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
8035         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
8036         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
8037         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
8038         HAVE_GROUP_MEMBER.
8039         * modules/group-member (Files): Remove lib/group-member.h.
8040         (Depends-on): Add unistd. Specify conditions.
8041         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8042         (Include): Change to <unistd.h>.
8043         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
8044         HAVE_GROUP_MEMBER.
8045         * NEWS: Mention the change.
8046         * lib/euidaccess.c: Don't include group-member.h.
8047
8048 2011-05-11  Bruno Haible  <bruno@clisp.org>
8049
8050         group-member: Document module.
8051         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
8052         module.
8053
8054 2011-05-11  Bruno Haible  <bruno@clisp.org>
8055
8056         fclose: Fix mistake earlier today.
8057         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
8058
8059 2011-05-11  Eric Blake  <eblake@redhat.com>
8060
8061         fclose: preserve fflush errors
8062         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
8063         Reported by Jim Meyering.
8064
8065         bootstrap: support a prereq of 'rpcgen -' on RHEL5
8066         * build-aux/bootstrap (check_versions): When no specific version
8067         is required, merely check that the app produces an exit status
8068         that indicates its existence.
8069
8070         maint.mk: drop redundant check
8071         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
8072         the same but better.
8073
8074 2011-05-11  Bruno Haible  <bruno@clisp.org>
8075
8076         fclose: Fix possible link error.
8077         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
8078         unregister_shadow_fd. Improve comments.
8079         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
8080         Eric Blake.
8081
8082 2011-05-11  Jim Meyering  <meyering@redhat.com>
8083
8084         maint.mk: improve "can not" detection and generalize rule name
8085         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
8086         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
8087         Use the same technique as in sc_prohibit_doubled_word, so that
8088         we recognize "can not" also when the words are separated by a newline.
8089         Suggested by Eric Blake.
8090         (perl_filename_lineno_text_): Define.  Factored out of...
8091         (prohibit_doubled_word_): ...here.  Use the new definition.
8092         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
8093         (prohibit_undesirable_word_seq_RE_): New overridable variable.
8094         (ignore_undesirable_word_sequence_RE_): New overridable variable.
8095
8096 2011-05-10  Eric Blake  <eblake@redhat.com>
8097
8098         fclose: avoid double close race when possible
8099         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
8100         all but WINDOWS_SOCKETS.
8101
8102 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
8103
8104         openat: correct new comment
8105         * lib/openat-proc.c (openat_proc_name): Correct the comment.
8106
8107 2011-05-10  Jim Meyering  <meyering@redhat.com>
8108
8109         openat: add comments
8110         * lib/openat-proc.c (openat_proc_name): Add comments,
8111         mostly from Eric Blake.
8112
8113 2011-05-09  Eric Blake  <eblake@redhat.com>
8114
8115         openat: reduce syscalls in first probe of /proc
8116         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
8117         be a directory.  Simplify the probe for .. bugs.
8118         * modules/openat (Depends-on): Drop same-inode.
8119         Reported by Bastien ROUCARIES.
8120
8121 2011-05-09  Jim Meyering  <meyering@redhat.com>
8122
8123         maint.mk: change semantics/name of tight_scope variables
8124         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
8125         Rename variables to align with semantics that make them more useful.
8126
8127         maint.mk: tweak new rule's name not to impinge
8128         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
8129         (sc_tight_scope): Use new rule name rather than $@-0.
8130
8131         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
8132         * top/maint.mk (sc_tight_scope): New rule.
8133         (sc_tight_scope-0): New rule, ifdef'd out.
8134         (_gl_TS_dir): Default.
8135         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
8136         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
8137
8138 2011-05-09  Simon Josefsson  <simon@josefsson.org>
8139
8140         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
8141         Haible <bruno@clisp.org>.
8142
8143 2011-05-08  Bruno Haible  <bruno@clisp.org>
8144
8145         Comments.
8146         * m4/isnanf.m4: Add comment.
8147         * m4/isnanl.m4: Likewise.
8148
8149 2011-05-08  Bruno Haible  <bruno@clisp.org>
8150
8151         glob: Remove obsolete macro.
8152         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
8153
8154 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8155
8156         intprops: Sun C 5.11 supports __typeof__
8157         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
8158         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
8159         which is new.
8160         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
8161
8162         intprops: switch to usual gnulib indenting and naming
8163         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
8164         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
8165
8166         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
8167
8168 2011-05-08  Jim Meyering  <meyering@redhat.com>
8169
8170         maint.mk: suppress "Entering/Leaving directory" diag in announcement
8171         * top/maint.mk (release-prep): Use make's --no-print-directory
8172         option when generating the announcement.  This eliminates the
8173         pesky "make[2]: Entering/Leaving directory" diagnostics in the
8174         generated announcement template.
8175
8176 2011-05-08  Bruno Haible  <bruno@clisp.org>
8177
8178         tzset: Fix gettimeofday wrapper on Solaris 2.6.
8179         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
8180         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
8181
8182 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8183
8184         ignore-value, verify: Omit include files from lib_SOURCES.
8185         * modules/ignore-value, modules/verify (Makefile.am):
8186         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
8187         that leads Automake to duplicate use of am__objects_... variables
8188         in Makefile.in.  See
8189         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
8190
8191 2011-05-07  Bruno Haible  <bruno@clisp.org>
8192
8193         fclose: Simplify autoconf macro.
8194         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
8195         defined.
8196
8197 2011-05-07  Bruno Haible  <bruno@clisp.org>
8198
8199         canonicalize-lgpl: Fix autoconf macro ordering bug.
8200         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
8201         gl_STDLIB_H_DEFAULTS.
8202
8203 2011-05-06  Eric Blake  <eblake@redhat.com>
8204
8205         maintainer-makefile: make sc_po_check easier to tune
8206         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
8207         to probe for strings, such as an alternate location for gnulib.
8208
8209         fclose: guarantee behavior on seekable stdin
8210         * modules/fclose (Depends-on): Add fflush.
8211         * doc/posix-functions/fclose.texi (fclose): Document this.
8212         * tests/test-fclose.c (main): Make test for this unconditional.
8213
8214 2011-05-06  Bruno Haible  <bruno@clisp.org>
8215
8216         fflush, fpurge: Relicense under LGPLv2+.
8217         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
8218         * modules/fpurge (License): Likewise.
8219         With permission from Eric Blake and Jim Meyering.
8220         Suggested by Eric Blake.
8221
8222 2011-05-06  Karl Berry  <karl@gnu.org>
8223
8224         * MODULES.html.sh (func_all_modules): remove exit.
8225
8226 2011-05-06  Jim Meyering  <meyering@redhat.com>
8227
8228         maint.mk: use info-gnu@ as the default only for a stable release
8229         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
8230         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
8231         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
8232         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
8233
8234 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8235
8236         assert-h: new module, which supports C1X-style static_assert
8237         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
8238         * lib/verify.h: Revamp so that this can be copied into assert.h,
8239         while retaining the ability to use it standalone as before.
8240         Rename private identifiers so as not to encroach on the
8241         standard C namespace, since this is now used by assert.h.
8242         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
8243         the old verify_true.
8244         (_GL_VERIFY_TRUE): New macro, with much of the contents of
8245         the old verify_true.  Use _GL_VERIFY_TYPE.
8246         (_GL_VERIFY): New macro, with much of the contents of the old verify.
8247         (static_assert): New macro, if _GL_STATIC_ASSERT_H
8248         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
8249         defined when this file is copied into the replacement assert.h.
8250         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
8251         and _Static_assert is not built in.
8252         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
8253         defined, and use the new macros mentioned above.
8254         * doc/posix-headers/assert.texi: Document this.
8255
8256 2011-05-05  Bruno Haible  <bruno@clisp.org>
8257
8258         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8259         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
8260         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
8261         gl_REPLACE_FCLOSE here.
8262         * modules/fflush (Depends-on): Remove fclose.
8263         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
8264         combination with module 'fclose'.
8265
8266 2011-05-05  Bruno Haible  <bruno@clisp.org>
8267
8268         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
8269         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
8270         gl_FUNC_FFLUSH.
8271         (gl_FUNC_FFLUSH): Use it.
8272         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
8273         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
8274         gl_REPLACE_FSEEKO here.
8275
8276 2011-05-05  Bruno Haible  <bruno@clisp.org>
8277
8278         tzset: Relicense under LGPL.
8279         * modules/tzset (License): Change to LGPL.
8280         No agreement needed; it's a no-op.
8281
8282         strtoimax, strtoumax: Relicense under LGPL.
8283         * modules/strtoimax (License): Change to LGPL.
8284         * modules/strtoumax (License): Likewise.
8285         With permission from Jim Meyering, Paul Eggert:
8286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
8287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
8288
8289         getgroups: Relicense under LGPL.
8290         * modules/getgroups (License): Change to LGPL.
8291         With permission from Jim Meyering, Paul Eggert, Eric Blake:
8292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8295
8296         nanosleep: Relicense under LGPL.
8297         * modules/nanosleep (License): Change to LGPL.
8298         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
8299         Haible:
8300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8304
8305         futimens: Relicense under LGPL.
8306         * modules/futimens (License): Change to LGPL.
8307         With permission from Eric Blake:
8308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8309
8310         fflush: Relicense under LGPL.
8311         * modules/fflush (License): Change to LGPL.
8312         With permission from Eric Blake, Bruno Haible, Jim Meyering:
8313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
8316
8317         tmpfile: Relicense under LGPL.
8318         * modules/tmpfile (License): Change to LGPL.
8319         With permission from Ben Pfaff:
8320         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8321
8322         isfinite: Relicense under LGPL.
8323         * modules/isfinite (License): Change to LGPL.
8324         With permission from Ben Pfaff, Bruno Haible:
8325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
8327
8328         acosl..tanl: Relicense under LGPL.
8329         * modules/acosl (License): Change to LGPL.
8330         * modules/asinl (License): Likewise.
8331         * modules/atanl (License): Likewise.
8332         * modules/cosl (License): Likewise.
8333         * modules/expl (License): Likewise.
8334         * modules/logl (License): Likewise.
8335         * modules/sinl (License): Likewise.
8336         * modules/sqrtl (License): Likewise.
8337         * modules/tanl (License): Likewise.
8338         Source code originally from glibc and Paolo Bonzini. Agreements:
8339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
8340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
8341
8342 2011-05-05  Bruno Haible  <bruno@clisp.org>
8343
8344         signal: Define sighandler_t.
8345         * lib/signal.in.h (sighandler_t): New type.
8346         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
8347         whether sighandler_t is defined.
8348         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
8349         * modules/signal (Depends-on): Add extensions.
8350         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
8351         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
8352         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
8353
8354 2011-05-05  Eric Blake  <eblake@redhat.com>
8355
8356         maint: remove useless REPLACE_*_H macros
8357         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
8358         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8359         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8360         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
8361         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8362         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8363         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
8364         * m4/btowc.m4: Update callers.
8365         * m4/dirfd.m4: Likewise.
8366         * m4/duplocale.m4: Likewise.
8367         * m4/fchdir.m4: Likewise.
8368         * m4/fdopendir.m4: Likewise.
8369         * m4/inet_ntop.m4: Likewise.
8370         * m4/inet_pton.m4: Likewise.
8371         * m4/ioctl.m4: Likewise.
8372         * m4/mbrlen.m4: Likewise.
8373         * m4/mbrtowc.m4: Likewise.
8374         * m4/mbsinit.m4: Likewise.
8375         * m4/mbsnrtowcs.m4: Likewise.
8376         * m4/mbsrtowcs.m4: Likewise.
8377         * m4/poll.m4: Likewise.
8378         * m4/setlocale.m4: Likewise.
8379         * m4/wcrtomb.m4: Likewise.
8380         * m4/wcsnrtombs.m4: Likewise.
8381         * m4/wcsrtombs.m4: Likewise.
8382         * m4/wctob.m4: Likewise.
8383         * m4/wcwidth.m4: Likewise.
8384         * modules/posix_spawn: Likewise.
8385         * modules/posix_spawn_file_actions_addclose: Likewise.
8386         * modules/posix_spawn_file_actions_adddup2: Likewise.
8387         * modules/posix_spawn_file_actions_addopen: Likewise.
8388         * modules/posix_spawn_file_actions_destroy: Likewise.
8389         * modules/posix_spawn_file_actions_init: Likewise.
8390         * modules/posix_spawnattr_destroy: Likewise.
8391         * modules/posix_spawnattr_getflags: Likewise.
8392         * modules/posix_spawnattr_getpgroup: Likewise.
8393         * modules/posix_spawnattr_getschedparam: Likewise.
8394         * modules/posix_spawnattr_getschedpolicy: Likewise.
8395         * modules/posix_spawnattr_getsigdefault: Likewise.
8396         * modules/posix_spawnattr_getsigmask: Likewise.
8397         * modules/posix_spawnattr_init: Likewise.
8398         * modules/posix_spawnattr_setflags: Likewise.
8399         * modules/posix_spawnattr_setpgroup: Likewise.
8400         * modules/posix_spawnattr_setschedparam: Likewise.
8401         * modules/posix_spawnattr_setschedpolicy: Likewise.
8402         * modules/posix_spawnattr_setsigdefault: Likewise.
8403         * modules/posix_spawnattr_setsigmask: Likewise.
8404         * modules/posix_spawnp: Likewise.
8405
8406 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
8407
8408         Add option to do-release-commit-and-tag to specify branch.
8409         * build-aux/do-release-commit-and-tag: Add --branch.
8410
8411 2011-05-03  Bruno Haible  <bruno@clisp.org>
8412
8413         Avoid unnecessary compilation units, through conditional dependencies.
8414         * modules/accept (Depends-on): Add conditions to the dependencies.
8415         * modules/acosl (Depends-on): Likewise.
8416         * modules/argz (Depends-on): Likewise.
8417         * modules/asinl (Depends-on): Likewise.
8418         * modules/atanl (Depends-on): Likewise.
8419         * modules/atoll (Depends-on): Likewise.
8420         * modules/bind (Depends-on): Likewise.
8421         * modules/btowc (Depends-on): Likewise.
8422         * modules/canonicalize-lgpl (Depends-on): Likewise.
8423         * modules/ceil (Depends-on): Likewise.
8424         * modules/ceilf (Depends-on): Likewise.
8425         * modules/ceill (Depends-on): Likewise.
8426         * modules/chdir-long (Depends-on): Likewise.
8427         * modules/chown (Depends-on): Likewise.
8428         * modules/close (Depends-on): Likewise.
8429         * modules/connect (Depends-on): Likewise.
8430         * modules/cosl (Depends-on): Likewise.
8431         * modules/dirfd (Depends-on): Likewise.
8432         * modules/dprintf (Depends-on): Likewise.
8433         * modules/dprintf-posix (Depends-on): Likewise.
8434         * modules/error (Depends-on): Likewise.
8435         * modules/euidaccess (Depends-on): Likewise.
8436         * modules/expl (Depends-on): Likewise.
8437         * modules/faccessat (Depends-on): Likewise.
8438         * modules/fchdir (Depends-on): Likewise.
8439         * modules/fclose (Depends-on): Likewise.
8440         * modules/fcntl (Depends-on): Likewise.
8441         * modules/fdopendir (Depends-on): Likewise.
8442         * modules/fflush (Depends-on): Likewise.
8443         * modules/floor (Depends-on): Likewise.
8444         * modules/floorf (Depends-on): Likewise.
8445         * modules/floorl (Depends-on): Likewise.
8446         * modules/fnmatch (Depends-on): Likewise.
8447         * modules/fopen (Depends-on): Likewise.
8448         * modules/fprintf-posix (Depends-on): Likewise.
8449         * modules/frexp (Depends-on): Likewise.
8450         * modules/frexp-nolibm (Depends-on): Likewise.
8451         * modules/frexpl (Depends-on): Likewise.
8452         * modules/frexpl-nolibm (Depends-on): Likewise.
8453         * modules/fseek (Depends-on): Likewise.
8454         * modules/fsusage (Depends-on): Likewise.
8455         * modules/ftell (Depends-on): Likewise.
8456         * modules/ftello (Depends-on): Likewise.
8457         * modules/futimens (Depends-on): Likewise.
8458         * modules/getcwd (Depends-on): Likewise.
8459         * modules/getcwd-lgpl (Depends-on): Likewise.
8460         * modules/getdelim (Depends-on): Likewise.
8461         * modules/getdomainname (Depends-on): Likewise.
8462         * modules/getgroups (Depends-on): Likewise.
8463         * modules/gethostname (Depends-on): Likewise.
8464         * modules/getline (Depends-on): Likewise.
8465         * modules/getlogin_r (Depends-on): Likewise.
8466         * modules/getopt-posix (Depends-on): Likewise.
8467         * modules/getpeername (Depends-on): Likewise.
8468         * modules/getsockname (Depends-on): Likewise.
8469         * modules/getsockopt (Depends-on): Likewise.
8470         * modules/getsubopt (Depends-on): Likewise.
8471         * modules/getusershell (Depends-on): Likewise.
8472         * modules/glob (Depends-on): Likewise.
8473         * modules/grantpt (Depends-on): Likewise.
8474         * modules/iconv_open (Depends-on): Likewise.
8475         * modules/iconv_open-utf (Depends-on): Likewise.
8476         * modules/inet_ntop (Depends-on): Likewise.
8477         * modules/inet_pton (Depends-on): Likewise.
8478         * modules/ioctl (Depends-on): Likewise.
8479         * modules/isapipe (Depends-on): Likewise.
8480         * modules/isfinite (Depends-on): Likewise.
8481         * modules/isinf (Depends-on): Likewise.
8482         * modules/lchown (Depends-on): Likewise.
8483         * modules/ldexpl (Depends-on): Likewise.
8484         * modules/link (Depends-on): Likewise.
8485         * modules/linkat (Depends-on): Likewise.
8486         * modules/listen (Depends-on): Likewise.
8487         * modules/logl (Depends-on): Likewise.
8488         * modules/lstat (Depends-on): Likewise.
8489         * modules/mbrlen (Depends-on): Likewise.
8490         * modules/mbrtowc (Depends-on): Likewise.
8491         * modules/mbsinit (Depends-on): Likewise.
8492         * modules/mbsnrtowcs (Depends-on): Likewise.
8493         * modules/mbsrtowcs (Depends-on): Likewise.
8494         * modules/mbtowc (Depends-on): Likewise.
8495         * modules/memcmp (Depends-on): Likewise.
8496         * modules/mkdir (Depends-on): Likewise.
8497         * modules/mkdtemp (Depends-on): Likewise.
8498         * modules/mkfifo (Depends-on): Likewise.
8499         * modules/mkfifoat (Depends-on): Likewise.
8500         * modules/mknod (Depends-on): Likewise.
8501         * modules/mkostemp (Depends-on): Likewise.
8502         * modules/mkostemps (Depends-on): Likewise.
8503         * modules/mkstemp (Depends-on): Likewise.
8504         * modules/mkstemps (Depends-on): Likewise.
8505         * modules/mktime (Depends-on): Likewise.
8506         * modules/nanosleep (Depends-on): Likewise.
8507         * modules/open (Depends-on): Likewise.
8508         * modules/openat (Depends-on): Likewise.
8509         * modules/perror (Depends-on): Likewise.
8510         * modules/poll (Depends-on): Likewise.
8511         * modules/popen (Depends-on): Likewise.
8512         * modules/posix_spawn (Depends-on): Likewise.
8513         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8514         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8515         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8516         * modules/posix_spawnp (Depends-on): Likewise.
8517         * modules/pread (Depends-on): Likewise.
8518         * modules/printf-posix (Depends-on): Likewise.
8519         * modules/ptsname (Depends-on): Likewise.
8520         * modules/putenv (Depends-on): Likewise.
8521         * modules/pwrite (Depends-on): Likewise.
8522         * modules/readline (Depends-on): Likewise.
8523         * modules/readlink (Depends-on): Likewise.
8524         * modules/readlinkat (Depends-on): Likewise.
8525         * modules/recv (Depends-on): Likewise.
8526         * modules/recvfrom (Depends-on): Likewise.
8527         * modules/regex (Depends-on): Likewise.
8528         * modules/remove (Depends-on): Likewise.
8529         * modules/rename (Depends-on): Likewise.
8530         * modules/renameat (Depends-on): Likewise.
8531         * modules/rmdir (Depends-on): Likewise.
8532         * modules/round (Depends-on): Likewise.
8533         * modules/roundf (Depends-on): Likewise.
8534         * modules/roundl (Depends-on): Likewise.
8535         * modules/rpmatch (Depends-on): Likewise.
8536         * modules/select (Depends-on): Likewise.
8537         * modules/send (Depends-on): Likewise.
8538         * modules/sendto (Depends-on): Likewise.
8539         * modules/setenv (Depends-on): Likewise.
8540         * modules/setlocale (Depends-on): Likewise.
8541         * modules/setsockopt (Depends-on): Likewise.
8542         * modules/shutdown (Depends-on): Likewise.
8543         * modules/sigaction (Depends-on): Likewise.
8544         * modules/signbit (Depends-on): Likewise.
8545         * modules/sigprocmask (Depends-on): Likewise.
8546         * modules/sinl (Depends-on): Likewise.
8547         * modules/sleep (Depends-on): Likewise.
8548         * modules/snprintf (Depends-on): Likewise.
8549         * modules/snprintf-posix (Depends-on): Likewise.
8550         * modules/socket (Depends-on): Likewise.
8551         * modules/sprintf-posix (Depends-on): Likewise.
8552         * modules/sqrtl (Depends-on): Likewise.
8553         * modules/stat (Depends-on): Likewise.
8554         * modules/strchrnul (Depends-on): Likewise.
8555         * modules/strdup-posix (Depends-on): Likewise.
8556         * modules/strerror (Depends-on): Likewise.
8557         * modules/strerror_r-posix (Depends-on): Likewise.
8558         * modules/strndup (Depends-on): Likewise.
8559         * modules/strnlen (Depends-on): Likewise.
8560         * modules/strptime (Depends-on): Likewise.
8561         * modules/strsep (Depends-on): Likewise.
8562         * modules/strsignal (Depends-on): Likewise.
8563         * modules/strstr-simple (Depends-on): Likewise.
8564         * modules/strtod (Depends-on): Likewise.
8565         * modules/strtoimax (Depends-on): Likewise.
8566         * modules/strtok_r (Depends-on): Likewise.
8567         * modules/strtoumax (Depends-on): Likewise.
8568         * modules/symlink (Depends-on): Likewise.
8569         * modules/symlinkat (Depends-on): Likewise.
8570         * modules/tanl (Depends-on): Likewise.
8571         * modules/tcgetsid (Depends-on): Likewise.
8572         * modules/tmpfile (Depends-on): Likewise.
8573         * modules/trunc (Depends-on): Likewise.
8574         * modules/truncf (Depends-on): Likewise.
8575         * modules/truncl (Depends-on): Likewise.
8576         * modules/uname (Depends-on): Likewise.
8577         * modules/unlink (Depends-on): Likewise.
8578         * modules/unlockpt (Depends-on): Likewise.
8579         * modules/unsetenv (Depends-on): Likewise.
8580         * modules/usleep (Depends-on): Likewise.
8581         * modules/utimensat (Depends-on): Likewise.
8582         * modules/vasprintf (Depends-on): Likewise.
8583         * modules/vdprintf (Depends-on): Likewise.
8584         * modules/vdprintf-posix (Depends-on): Likewise.
8585         * modules/vfprintf-posix (Depends-on): Likewise.
8586         * modules/vprintf-posix (Depends-on): Likewise.
8587         * modules/vsnprintf (Depends-on): Likewise.
8588         * modules/vsnprintf-posix (Depends-on): Likewise.
8589         * modules/vsprintf-posix (Depends-on): Likewise.
8590         * modules/wcrtomb (Depends-on): Likewise.
8591         * modules/wcscasecmp (Depends-on): Likewise.
8592         * modules/wcscspn (Depends-on): Likewise.
8593         * modules/wcsdup (Depends-on): Likewise.
8594         * modules/wcsncasecmp (Depends-on): Likewise.
8595         * modules/wcsnrtombs (Depends-on): Likewise.
8596         * modules/wcspbrk (Depends-on): Likewise.
8597         * modules/wcsrtombs (Depends-on): Likewise.
8598         * modules/wcsspn (Depends-on): Likewise.
8599         * modules/wcsstr (Depends-on): Likewise.
8600         * modules/wcstok (Depends-on): Likewise.
8601         * modules/wcswidth (Depends-on): Likewise.
8602         * modules/wctob (Depends-on): Likewise.
8603         * modules/wctomb (Depends-on): Likewise.
8604         * modules/wctype (Depends-on): Likewise.
8605         * modules/wcwidth (Depends-on): Likewise.
8606         * modules/write (Depends-on): Likewise.
8607
8608 2011-05-03  Bruno Haible  <bruno@clisp.org>
8609
8610         Support for conditional dependencies.
8611         * doc/gnulib.texi (Module description): Document the syntax of
8612         conditional dependencies.
8613         * gnulib-tool: New option --conditional-dependencies.
8614         (func_usage): Document it.
8615         (cond_dependencies): New variable.
8616         (func_get_automake_snippet_conditional,
8617         func_get_automake_snippet_unconditional): New functions, extracted from
8618         func_get_automake_snippet.
8619         (func_get_automake_snippet): Use them.
8620         (sed_first_32_chars): New variable.
8621         (func_module_shellfunc_name): New function.
8622         (func_module_shellvar_name): New function.
8623         (func_module_conditional_name): New function.
8624         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8625         func_cond_module_condition): New functions.
8626         (func_modules_transitive_closure): Add support for conditional
8627         dependencies.
8628         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8629         conditional automake snippet in an automake conditional.
8630         (func_emit_autoconf_snippets): Emit shell functions that contain the
8631         code for conditional modules.
8632         (func_import, func_create_testdir): Update specification.
8633
8634 2011-05-03  Eric Blake  <eblake@redhat.com>
8635
8636         test-getaddrinfo: report error information
8637         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8638
8639 2011-05-03  Jim Meyering  <meyering@redhat.com>
8640
8641         bootstrap: avoid build failure when $GZIP is set
8642         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8643         program name.  If defined at all, it is supposed to list gzip options.
8644         Reported by Alan Curry in http://debbugs.gnu.org/8609
8645
8646 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8647
8648         readme-release: new module with release instructions
8649         * modules/readme-release: New module.
8650         * top/README-release: New file, from coreutils, grep, diffutils.
8651         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8652
8653 2011-05-02  Eric Blake  <eblake@redhat.com>
8654
8655         fflush: also replace fclose when fixing fflush
8656         * modules/fflush (Depends-on): Add fclose.
8657         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8658         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8659         memstreams with no backing fd.
8660         * doc/posix-functions/fclose.texi (fclose): Document the use of
8661         fflush module to fix the bug.
8662         * tests/test-fclose.c (main): Relax test when fclose is used in
8663         isolation.
8664
8665         fclose: add some tests
8666         * modules/fclose-tests: New test module.
8667         * tests/test-fclose.c: New file.
8668         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8669
8670         fclose: reduced dependencies
8671         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8672         simpler lseek.
8673         * lib/fclose.c (rpl_fclose): Likewise.
8674         Reported by Simon Josefsson.
8675
8676         exit: drop remaining clients
8677         * modules/argmatch (Depends-on): Replace exit with stdlib.
8678         * modules/copy-file (Depends-on): Likewise.
8679         * modules/execute (Depends-on): Likewise.
8680         * modules/exitfail (Depends-on): Likewise.
8681         * modules/obstack (Depends-on): Likewise.
8682         * modules/pagealign_alloc (Depends-on): Likewise.
8683         * modules/pipe-filter-gi (Depends-on): Likewise.
8684         * modules/pipe-filter-ii (Depends-on): Likewise.
8685         * modules/savewd (Depends-on): Likewise.
8686         * modules/spawn-pipe (Depends-on): Likewise.
8687         * modules/wait-process (Depends-on): Likewise.
8688         * modules/xsetenv (Depends-on): Likewise.
8689         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8690         * modules/git-merge-changelog (Depends-on): Likewise.
8691         * modules/long-options (Depends-on): Likewise.
8692         * modules/pt_chown (Depends-on): Likewise.
8693         * modules/sysexits (Depends-on): Likewise.
8694
8695         freading: relax license from LGPLv3+ to LGPLv2+
8696         * modules/freading (License): Relax LGPL version.
8697
8698 2011-05-02  Bruno Haible  <bruno@clisp.org>
8699
8700         fchdir: Remove unused dependencies.
8701         * modules/fchdir (Depends-on): Remove include_next.
8702
8703 2011-05-02  Bruno Haible  <bruno@clisp.org>
8704
8705         gnulib-tool: Refactor.
8706         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8707         from func_emit_autoconf_snippets.
8708         (func_emit_autoconf_snippets): Use it.
8709
8710 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8711
8712         * NEWS: Document removal of 'exit'.
8713         * modules/exit: Remove file.
8714
8715 2011-05-01  Bruno Haible  <bruno@clisp.org>
8716
8717         Update DEPENDENCIES.
8718         * DEPENDENCIES (gettext): Recommend the newest release.
8719         Reported by Simon Josefsson.
8720
8721 2011-05-01  Bruno Haible  <bruno@clisp.org>
8722
8723         gnulib-tool: Reduce code duplication.
8724         * gnulib-tool (func_emit_autoconf_snippets): New function.
8725         (func_import, func_create_testdir): Use it.
8726
8727 2011-04-30  Eric Blake  <eblake@redhat.com>
8728
8729         fclose: don't fail on non-seekable input stream
8730         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8731         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8732         since fflush is allowed to fail in that case.
8733
8734 2011-04-30  Bruno Haible  <bruno@clisp.org>
8735
8736         dup3: cleanup
8737         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8738
8739 2011-04-30  Bruno Haible  <bruno@clisp.org>
8740
8741         netdb: Make it work in C++ mode.
8742         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8743         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8744         module.
8745         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8746         gl_MODULE_INDICATOR_FOR_TESTS.
8747         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8748         * modules/netdb-c++-tests: New file.
8749         * tests/test-netdb-c++.cc: New file.
8750
8751 2011-04-30  Bruno Haible  <bruno@clisp.org>
8752
8753         New modules 'vfscanf', 'vscanf'.
8754         * modules/vfscanf: New file.
8755         * modules/vscanf: New file.
8756         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8757         here.
8758         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8759         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8760
8761 2011-04-30  Bruno Haible  <bruno@clisp.org>
8762
8763         passfd: Add comments.
8764         * lib/passfd.c: Add comments about platforms.
8765
8766 2011-04-30  Bruno Haible  <bruno@clisp.org>
8767
8768         sys_uio: Make <sys/uio.h> self-contained.
8769         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8770         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8771
8772 2011-04-30  Bruno Haible  <bruno@clisp.org>
8773
8774         sys_socket: Ensure 'struct iovec' definition.
8775         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8776         <sys/socket.h>.
8777         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8778
8779 2011-04-30  Bruno Haible  <bruno@clisp.org>
8780
8781         sys_uio: Protect definition of 'struct iovec'.
8782         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8783         it as a C struct.
8784
8785 2011-04-30  Bruno Haible  <bruno@clisp.org>
8786
8787         manywarnings: fix indentation
8788         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8789
8790 2011-04-30  Pádraig Brady <P@draigBrady.com>
8791
8792         manywarnings: add -Wno-missing-field-initializers if needed.
8793         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8794         option if it's needed to allow initialization with { 0, }
8795
8796 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8797
8798         announce-gen: cosmetic improvement
8799         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8800
8801 2011-04-29  Jim Meyering  <meyering@redhat.com>
8802
8803         vc-list-files: indent with spaces, not TABs
8804         * build-aux/vc-list-files: Convert leading TABs to spaces,
8805         to match the style of most other files in gnulib.
8806
8807         announce-gen: indent with spaces, not TABs
8808         * build-aux/announce-gen: Convert all TABs to spaces, to match
8809         the style of most other files in gnulib.
8810
8811 2011-04-29  Eric Blake  <eblake@redhat.com>
8812
8813         quotearg: avoid uninitialized variable use
8814         * lib/quotearg.c (quoting_options_from_style): Initialize
8815         remaining fields, and ensure that custom styles are only used via
8816         quoting_options rather than quoting_style.
8817
8818 2011-04-29  Jim Meyering  <meyering@redhat.com>
8819
8820         maint.mk: remove unused VC-tag variable
8821         * top/maint.mk (VC-tag): Remove unused variable.
8822
8823 2011-04-29  Bruno Haible  <bruno@clisp.org>
8824
8825         netdb: fix gai_strerror replacements
8826         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8827         * modules/netdb: Substitute it.
8828
8829 2011-04-29  Jim Meyering  <meyering@redhat.com>
8830
8831         test-getcwd.c: avoid new set-but-not-used warning
8832         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8833         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8834         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8835         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8836
8837         test-hash.c: avoid a new shadowing warning
8838         * tests/test-hash.c (main): Don't shadow "dup".
8839
8840 2011-04-28  Eric Blake  <eblake@redhat.com>
8841
8842         getaddrinfo: fix gai_strerror signature
8843         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8844         and work around mingw with UNICODE defined.
8845         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8846         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8847         * modules/netdb (Makefile.am): Substitute it.
8848         * lib/netdb.in.h (gai_strerror): Declare replacement.
8849         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8850         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8851         the fix.
8852
8853         getsockopt: avoid compiler warning
8854         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8855         Reported by Matthias Bolte.
8856
8857         tests: drop unused link dependency
8858         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8859         * modules/dirent-safer-tests (Makefile.am): Likewise.
8860         * modules/fdopendir-tests (Makefile.am): Likewise.
8861         * modules/mkfifoat-tests (Makefile.am): Likewise.
8862         * modules/openat-safer-tests (Makefile.am): Likewise.
8863         * modules/openat-tests (Makefile.am): Likewise.
8864         * modules/readlinkat-tests (Makefile.am): Likewise.
8865         * modules/symlinkat-tests (Makefile.am): Likewise.
8866         * modules/linkat-tests (Makefile.am): Likewise.
8867         (Depends-on): Switch to filenamecat-lgpl.
8868         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8869         LIBINTL.
8870         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8871         * tests/test-linkat.c (main): Don't require xalloc.
8872
8873         hash, mgetgroups: drop xalloc dependency
8874         * lib/hash.c (includes): Adjust includes.
8875         * lib/mgetgroups.c (includes): Likewise.
8876         (xgetgroups): Move...
8877         * lib/xgetgroups.c: ...to new file.
8878         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8879         * modules/xgetgroups: New file, split from...
8880         * modules/mgetgroups: ...here.
8881         (Depends-on): Add xalloc-oversized.
8882         * modules/hash (Depends-on): Likewise.
8883         * modules/hash-tests (Depends-on): Drop xalloc.
8884         (test_hash_LDADD): Drop unused library.
8885         * tests/test-hash.c (main): Break xalloc dependency.
8886         (includes): Drop unused include.
8887
8888         xalloc-oversized: new module
8889         * modules/xalloc-oversized: New module.
8890         * modules/xalloc (Depends-on): Add it.
8891         * lib/xalloc.h (xalloc_oversized): Move...
8892         * lib/xalloc-oversized.h: ...into new file.
8893
8894         utimecmp: drop dependency on xmalloc
8895         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8896         due to memory pressure.
8897         * modules/utimecmp (Depends-on): Drop xalloc.
8898
8899 2011-04-27  Eric Blake  <eblake@redhat.com>
8900
8901         getcwd: fix mingw bugs
8902         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8903         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8904         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8905
8906 2011-04-27  Bruno Haible  <bruno@clisp.org>
8907
8908         mkstemps: Ensure declaration on MacOS X 10.5.
8909         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8910         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8911         MacOS X.
8912
8913 2011-04-27  Bruno Haible  <bruno@clisp.org>
8914
8915         mkstemp: More documentation.
8916         * doc/posix-functions/mkstemp.texi: Document header file problem on
8917         MacOS X.
8918
8919 2011-04-27  Bruno Haible  <bruno@clisp.org>
8920
8921         mkstemp: Tweak configure message when cross-compiling.
8922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8923         result as a guess.
8924
8925 2011-04-27  Bruno Haible  <bruno@clisp.org>
8926
8927         clean-temp: Clarify what it does.
8928         * lib/clean-temp.h: Add more comments.
8929         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8930         module.
8931         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8932         * doc/glibc-functions/mkstemps.texi: Likewise.
8933         * doc/glibc-functions/mkostemps.texi: Likewise.
8934
8935 2011-04-27  Eric Blake  <eblake@redhat.com>
8936
8937         fchdir: avoid extra chdir and fix test
8938         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8939         getcwd-lgpl.
8940         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8941         have to be canonical.
8942         (canonicalize_file_name): Drop unused macro.
8943         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8944
8945         filenamecat-lgpl: fix licence
8946         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8947         when it was first created.
8948
8949         linkat, renameat: add missing dependency
8950         * modules/linkat (Depends-on): Require getcwd-lgpl.
8951         * modules/renameat (Depends-on): Likewise.
8952
8953         tests: reduce dependencies
8954         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8955         * tests/test-renameat.c (main): Likewise.
8956         * modules/linkat-tests (Depends-on): Relax dependency.
8957         * modules/renameat-tests (Depends-on): Likewise.
8958         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8959         dependency explicit.
8960
8961         save-cwd: reduce default dependency
8962         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8963         * lib/save-cwd.c: Update comments.
8964         * NEWS: Document the semantic change.
8965
8966         getcwd: enhance tests
8967         * tests/test-getcwd-lgpl.c: New file, taken from...
8968         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8969         repeat long path stress tests from m4 probe.
8970         * modules/getcwd-lgpl-tests: New module.
8971         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8972         * m4/getcwd-abort-bug.m4: Update comment.
8973         * m4/getcwd-path-max.m4: Likewise.
8974
8975         getcwd-lgpl: new module
8976         * modules/getcwd-lgpl: New module.
8977         * lib/getcwd-lgpl.c: New file.
8978         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8979         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8980         * modules/getcwd (configure.ac): Set C witness.
8981         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8982
8983         getcwd: tweak comments
8984         * m4/getcwd-abort-bug.m4: Fix comments.
8985         * m4/getcwd-path-max.m4: Likewise.
8986         * m4/getcwd.m4: Likewise.
8987
8988 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8989         and Eric Blake  <eblake@redhat.com>
8990
8991         mkstemp: replace if system version uses wrong permissions
8992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8993         read/write mode bits set in file created by mkstemp.
8994         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8995
8996 2011-04-27  Eric Blake  <eblake@redhat.com>
8997
8998         passfd: avoid compiler warning
8999         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
9000         Reported by Laine Stump.
9001
9002 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
9003
9004         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
9005         required by the NetBSD (and perhaps other 4.4BSD derived) join.
9006
9007 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9008         and Eric Blake  <eblake@redhat.com>
9009
9010         mkstemp: mention clean-temp module
9011         * lib/mkstemp.c: Add comment.
9012         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
9013
9014 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
9015
9016         inttypes: also provide default values for 32-bit tests
9017         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
9018         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
9019
9020 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
9021
9022         strtoumax: remove dependency on strtoimax
9023         This is like the strtoull change of yesterday.
9024         * modules/strtoumax (Files): Add lib/strtoimax.c.
9025         (Depends-on): Remove strtoimax and add verify.
9026
9027         inttypes-incomplete: new module
9028         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
9029         all but the PRI* and SCN* parts of gl_INTTYPES_H.
9030         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
9031         of gl_INTTYPES_H.
9032         (gl_INTTYPES_H): Rewrite in terms of these new macros.
9033         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
9034         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
9035         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
9036         * modules/strtoumax, modules/xstrtol (Depends-on):
9037         Depend on inttypes-incomplete, not inttypes.
9038         * modules/inttypes-incomplete: New module, containing the contents
9039         of the old modules/inttypes module, except that the Files: section
9040         omits m4/inttypes-pri.m4, and the configure.ac section invokes
9041         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
9042         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
9043         (Depends-on): Depend only on inttypes-incomplete.
9044         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
9045
9046         inttypes: omit now-redundant strtoimax and strtoumax work
9047         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
9048         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
9049
9050         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
9051         This supports apps that need pointers to strtoimax and strtoumax,
9052         and ports to HP-UX 11.00 64.bit, which has macros that expand to
9053         nonexistent functions.  See
9054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
9055         et seq.
9056         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
9057         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
9058         a macro.
9059         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9060
9061 2011-04-25  Simon Josefsson  <simon@josefsson.org>
9062
9063         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
9064
9065 2011-04-25  Bruno Haible  <bruno@clisp.org>
9066
9067         strtol, strtoul: Mark modules as obsolete.
9068         * modules/strtol (Status, Notice): New sections.
9069         * modules/strtoul (Status, Notice): New sections.
9070
9071 2011-04-25  Bruno Haible  <bruno@clisp.org>
9072
9073         strtod: Remove check for strtod, unless supporting old platforms.
9074         * modules/strtod-obsolete: New file.
9075         * m4/strtod-obsolete.m4: New file.
9076         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
9077         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
9078         * modules/strtod (Depends-on): Add strtod-obsolete.
9079         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
9080
9081 2011-04-25  Bruno Haible  <bruno@clisp.org>
9082
9083         strcase: Make module obsolete.
9084         * modules/strcase (Status, Notice): New sections.
9085
9086 2011-04-25  Bruno Haible  <bruno@clisp.org>
9087
9088         dup2: Remove check for dup2, unless supporting old obsolete platforms.
9089         * modules/dup2-obsolete: New file.
9090         * m4/dup2-obsolete.m4: New file.
9091         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
9092         gl_FUNC_DUP2_OBSOLETE is not also defined.
9093         * modules/dup2 (Depends-on): Add dup2-obsolete.
9094         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
9095
9096 2011-04-25  Bruno Haible  <bruno@clisp.org>
9097
9098         strnlen: Avoid memchr related link error on old obsolete platforms.
9099         * modules/memchr-obsolete: New file.
9100         * m4/memchr-obsolete.m4: New file.
9101         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
9102         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
9103         * modules/memchr (Depends-on): Add memchr-obsolete.
9104         * modules/strnlen (Depends-on): Likewise.
9105         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
9106
9107 2011-04-25  Jim Meyering  <meyering@redhat.com>
9108
9109         maint.mk: makefile_at_at_check extend and clean up
9110         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
9111         in addition to */Makefile.am.
9112         Exempt legitimate uses of @VAR@ notation, e.g.,
9113         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
9114         Remove obsolete coreutils-specific comment.
9115         Prompted by discussion here:
9116         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
9117
9118 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9119
9120         strtoul: remove dependency on strtol
9121         This is so that 'configure' need not check for strtol merely because
9122         the application needs strtoul.
9123         * modules/strtoul (Files): Add lib/strtol.c.
9124         (Depends-on): Remove strtol.
9125
9126         strtoull: remove dependency on strtoul
9127         This is like the strtoll change.
9128         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
9129         (Depends-on): Remove strtoul.
9130
9131         strtoll: remove dependency on strtol
9132         This is so that 'configure' need not check for strtol merely because
9133         the application needs strtoll.
9134         * modules/strtoll (Files): Add lib/strtol.c.
9135         (Depends-on): Remove strtol.
9136
9137 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9138
9139         inttypes: Move some configure check to module 'imaxdiv'.
9140         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
9141         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
9142         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
9143
9144 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9145
9146         inttypes: Move some configure check to module 'imaxabs'.
9147         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
9148         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
9149         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
9150
9151 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9152
9153         inttypes: Remove configure tests that are not needed since 2009-12-31.
9154         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
9155         gl_cv_header_working_inttypes_h.
9156
9157 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9158
9159         * modules/strnlen (Depends-on): Remove memchr.
9160         The strnlen implementation doesn't need the memchr module's fixes; see
9161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
9162
9163         strtol: remove dependency on wchar
9164         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
9165         * modules/strtol (Depends-on): Remove wchar.
9166
9167 2011-04-21  Eric Blake  <eblake@redhat.com>
9168
9169         passfd: fix test regression on Linux
9170         * modules/passfd-tests (configure.ac): Correct socketpair check.
9171
9172         passfd: speed up configure and drop unused code
9173         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
9174         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
9175         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
9176         Instead of probing at configure for unix_scm_rights_bsd44_way,
9177         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
9178         check to a struct member probe.
9179         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
9180         (sendfd, recvfd): Update preprocessor checks.
9181         * modules/passfd (Files): Reflect rename, and drop unused file.
9182         (Depends-on): Drop unused dependency.
9183
9184         passfd: allow compilation on mingw
9185         * modules/sys_socket (Depends-on): Add sys_uio.
9186         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
9187         iovec and a minimal struct msghdr.
9188         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
9189         * tests/test-sys_socket.c (main): Enhance test.
9190         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
9191         guaranteed to provide what we need.
9192         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
9193         * modules/passfd-tests (Depends-on): Add sys_wait.
9194         * tests/test-passfd.c (main): Skip test on mingw, for now.
9195         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
9196         partial 'struct msghdr' implementation.
9197
9198         sys_uio: new module
9199         * modules/sys_uio: New module.
9200         * modules/sys_uio-tests: Likewise.
9201         * lib/sys_uio.in.h: New file.
9202         * m4/sys_uio_h.m4: Likewise.
9203         * tests/test-sys_uio.c: Likewise.
9204         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
9205         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
9206
9207 2011-04-20  Jim Meyering  <meyering@redhat.com>
9208
9209         useless-if-before-free: avoid false-positive
9210         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
9211         disjunct so that it too requires a terminating ";".  Without that,
9212         this script would identify as useless one statement from gcc that
9213         was not:
9214           if (aligned_ptr)
9215             free (((void **) aligned_ptr) [-1]);
9216
9217 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
9218
9219         doc: update users.txt.
9220         * users.txt: Add barcode.
9221
9222 2011-04-19  Bruno Haible  <bruno@clisp.org>
9223
9224         ioctl: Remove link dependency on native Windows.
9225         * lib/fd-hook.h: Renamed from lib/close-hook.h.
9226         (gl_close_fn, gl_ioctl_fn): New types.
9227         (struct fd_hook): Renamed from struct close_hook. Change type of
9228         private_close_fn field. Add private_ioctl_fn field.
9229         (close_hook_fn): Add parameter for primary close method.
9230         (execute_close_hooks, execute_all_close_hooks): Likewise.
9231         (ioctl_hook_fn): New type.
9232         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
9233         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9234         argument.
9235         (unregister_fd_hook): Renamed from unregister_close_hook.
9236         * lib/fd-hook.c: Renamed from lib/close-hook.c.
9237         Don't include <unistd.h>.
9238         (close): Remove undef.
9239         (anchor): Update.
9240         (execute_close_hooks): Add argument for primary close method.
9241         (execute_all_close_hooks): Likewise.
9242         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
9243         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9244         argument. Allow each argument to be NULL.
9245         (unregister_fd_hook): Renamed from unregister_close_hook.
9246         * lib/close.c (rpl_close): Pass 'close' function pointer to
9247         execute_all_close_hooks.
9248         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
9249         (primary_ioctl): New function.
9250         (ioctl): Don't call ioctlsocket here. Instead, call
9251         execute_all_ioctl_hooks.
9252         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
9253         close method.
9254         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
9255         (fd_sockets_hook): Renamed from close_sockets_hook.
9256         (gl_sockets_startup, gl_sockets_cleanup): Update.
9257         * modules/fd-hook: Renamed from modules/close-hook. Update.
9258         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9259         * modules/sockets (Depends-on): Likewise.
9260         * modules/ioctl (Depends-on): Add fd-hook.
9261         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
9262         GNULIB_SOCKET.
9263
9264 2011-04-19  Bruno Haible  <bruno@clisp.org>
9265
9266         Move the support of O_NONBLOCK in open() to the 'open' module.
9267         * modules/nonblocking (Depends-on): Remove 'open'.
9268         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
9269         gl_cv_have_open_O_NONBLOCK.
9270         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
9271         O_NONBLOCK support.
9272         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
9273
9274 2011-04-17  Bruno Haible  <bruno@clisp.org>
9275
9276         pipe2: Simplify code.
9277         * lib/pipe2.c (pipe2): Reduce code duplication.
9278
9279 2011-04-17  Bruno Haible  <bruno@clisp.org>
9280
9281         nonblocking: Add comment.
9282         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
9283
9284 2011-04-17  Bruno Haible  <bruno@clisp.org>
9285
9286         nonblocking: Add tests for sockets.
9287         * tests/test-nonblocking-socket.sh: New file.
9288         * tests/test-nonblocking-socket-main.c: New file.
9289         * tests/test-nonblocking-socket-child.c: New file.
9290         * tests/test-nonblocking-socket.h: New file.
9291         * tests/socket-server.h: New file.
9292         * tests/socket-client.h: New file.
9293         * modules/nonblocking-socket-tests: New file.
9294         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
9295
9296 2011-04-17  Bruno Haible  <bruno@clisp.org>
9297
9298         nonblocking: Add tests for pipes.
9299         * tests/test-nonblocking-pipe.sh: New file.
9300         * tests/test-nonblocking-pipe-main.c: New file.
9301         * tests/test-nonblocking-pipe-child.c: New file.
9302         * tests/test-nonblocking-pipe.h: New file.
9303         * tests/test-nonblocking-writer.h: New file.
9304         * tests/test-nonblocking-reader.h: New file.
9305         * tests/test-nonblocking-misc.h: New file.
9306         * modules/nonblocking-pipe-tests: New file.
9307         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
9308
9309 2011-04-16  Bruno Haible  <bruno@clisp.org>
9310
9311         gettext: Clarify the needed programmer actions.
9312         * modules/gettext (Notice): New field.
9313         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9314
9315 2011-04-16  Bruno Haible  <bruno@clisp.org>
9316
9317         strchrnul: Tweak last commit.
9318         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
9319         bug.
9320         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
9321         as in _GL_FUNCDECL_SYS.
9322         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
9323         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
9324
9325 2011-04-15  Eric Blake  <eblake@redhat.com>
9326
9327         strchrnul: work around cygwin bug
9328         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
9329         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
9330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
9331         * modules/string (Makefile.am): Substitute it.
9332         * lib/string.in.h (strchrnul): Use it.
9333
9334 2011-04-15  Bruno Haible  <bruno@clisp.org>
9335
9336         Don't require lib/stdio-write.c when only module 'stdio' is used.
9337         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
9338         invocation.
9339         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
9340
9341 2011-04-14  Bruno Haible  <bruno@clisp.org>
9342
9343         Support non-blocking pipe I/O in read() on native Windows.
9344         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
9345         (read): New declaration.
9346         * lib/read.c: New file.
9347         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
9348         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
9349         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
9350         vscanf): New declarations.
9351         * lib/stdio-read.c: New file.
9352         * m4/read.m4: New file.
9353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
9354         REPLACE_READ.
9355         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
9356         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9357         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
9358         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
9359         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
9360         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9361         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9362         * modules/read: New file.
9363         * modules/nonblocking (Files): Add lib/stdio-read.c.
9364         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
9365         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
9366         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9367         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9368         * modules/pread (Depends-on): Add read.
9369         * modules/safe-read (Depends-on): Likewise.
9370         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
9371         gets, scanf, vfscanf, vscanf): Verify signatures.
9372         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
9373         problem with non-blocking pipes.
9374         * doc/posix-functions/fgetc.texi: Likewise.
9375         * doc/posix-functions/fgets.texi: Likewise.
9376         * doc/posix-functions/fread.texi: Likewise.
9377         * doc/posix-functions/fscanf.texi: Likewise.
9378         * doc/posix-functions/getc.texi: Likewise.
9379         * doc/posix-functions/getchar.texi: Likewise.
9380         * doc/posix-functions/gets.texi: Likewise.
9381         * doc/posix-functions/scanf.texi: Likewise.
9382         * doc/posix-functions/vfscanf.texi: Likewise.
9383         * doc/posix-functions/vscanf.texi: Likewise.
9384
9385 2011-04-14  Bruno Haible  <bruno@clisp.org>
9386
9387         Support non-blocking pipe I/O in write() on native Windows.
9388         * lib/write.c (rpl_write): Split a write request that failed merely
9389         because the byte count was larger than the pipe buffer's size.
9390         * doc/posix-functions/write.texi: Mention the problem with large byte
9391         counts.
9392
9393 2011-04-14  Bruno Haible  <bruno@clisp.org>
9394
9395         wchar: Ensure that wchar_t gets defined on uClibc.
9396         * lib/wchar.in.h: On uClibc, include <stddef.h>.
9397         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
9398
9399 2011-04-13  Bruno Haible  <bruno@clisp.org>
9400
9401         safe-write, full-read: Avoid unnecessary compilation units.
9402         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
9403         (Depends-on): Remove safe-read. Add ssize_t.
9404         * modules/full-read (Files): Add lib/full-write.c.
9405         (Depends-on): Add full-write.
9406
9407 2011-04-13  Bruno Haible  <bruno@clisp.org>
9408
9409         Support non-blocking pipe I/O and SIGPIPE in pwrite().
9410         * modules/pwrite (Depends-on): Add 'write'.
9411
9412 2011-04-13  Bruno Haible  <bruno@clisp.org>
9413
9414         Support non-blocking pipe I/O in write() on native Windows.
9415         * lib/unistd.in.h (write): Enable replacement also if
9416         GNULIB_UNISTD_H_NONBLOCKING is 1.
9417         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
9418         (rpl_write): When failing to write on a non-blocking pipe, change
9419         errno from ENOSPC to EAGAIN.
9420         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
9421         putchar, puts, vfprintf, vprintf): Enable replacement also if
9422         GNULIB_STDIO_H_NONBLOCKING is 1.
9423         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
9424         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
9425         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
9426         CALL_WITH_SIGPIPE_EMULATION.
9427         (CALL_WITH_SIGPIPE_EMULATION): Use them.
9428         * m4/nonblocking.m4: New file.
9429         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
9430         for non-blocking I/O support.
9431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9432         GNULIB_UNISTD_H_NONBLOCKING.
9433         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
9434         required for non-blocking I/O support.
9435         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
9436         * modules/nonblocking (Files): Add m4/nonblocking.m4,
9437         lib/stdio-write.c, m4/asm-underscore.m4.
9438         (Depends-on): Add stdio, unistd.
9439         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
9440         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
9441         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
9442         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
9443         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
9444         problem with non-blocking pipes.
9445         * doc/posix-functions/fputc.texi: Likewise.
9446         * doc/posix-functions/fputs.texi: Likewise.
9447         * doc/posix-functions/fwrite.texi: Likewise.
9448         * doc/posix-functions/printf.texi: Likewise.
9449         * doc/posix-functions/putc.texi: Likewise.
9450         * doc/posix-functions/putchar.texi: Likewise.
9451         * doc/posix-functions/puts.texi: Likewise.
9452         * doc/posix-functions/vfprintf.texi: Likewise.
9453         * doc/posix-functions/vprintf.texi: Likewise.
9454         * doc/posix-functions/write.texi: Likewise.
9455
9456 2011-04-10  Jim Meyering  <meyering@redhat.com>
9457
9458         maint.mk: prohibit doubled words
9459         Detect them also when they're separated by a newline.
9460         There are 3 ways to customize it:
9461           - disable the test on a per file basis, as usual with rules using
9462             $(VC_LIST_EXCEPT)
9463           - replace the default doubled-word-selecting regexp (affects all files)
9464           - ignore a particular file-vs-doubled-word match
9465         I nearly used that last one to ignore the "is is" match in
9466         coreutils' NEWS file, since the text was "ls -is is ..."
9467         To do that, I would have added this line to cfg.mk:
9468           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
9469         but it would have ignored any "is is" match in NEWS.
9470         Low probability, but still...
9471         Instead, I changed the text, slightly:
9472           -  ls -is is now consistent with ls -lis in ignoring values returned
9473           +  "ls -is" is now consistent with ls -lis in ignoring values returned
9474         * top/maint.mk (prohibit_double_word_RE_): Provide default.
9475         (prohibit_doubled_word_): Define.
9476         (sc_prohibit_doubled_word): New rule.
9477         (sc_prohibit_the_the): Remove.  Subsumed by the above.
9478
9479 2011-04-10  Jim Meyering  <meyering@redhat.com>
9480
9481         maint: fix doubled-word typo in comment
9482         * m4/gethostname.m4: s/is is/it is/
9483         * m4/getdomainname.m4: Likewise.
9484
9485 2011-04-10  Jim Meyering  <meyering@redhat.com>
9486
9487         maint: remove doubled word: s/it it/it/
9488         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
9489
9490 2011-04-10  Jim Meyering  <meyering@redhat.com>
9491
9492         maint.mk: remove useless semicolon and backslash
9493         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
9494         semicolon and backslash.
9495
9496 2011-04-10  Bruno Haible  <bruno@clisp.org>
9497
9498         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
9499         * modules/stdint-tests (Depends-on): Add wchar.
9500
9501 2011-04-10  Jim Meyering  <meyering@redhat.com>
9502
9503         maint: remove doubled words in comments, e.g., s/a a/a/
9504         * lib/strptime.c (day_of_the_week): s/the the/the/
9505         * tests/test-chown.h (test_chown): s/a a/a/
9506
9507         test-chown.h: correct a cast
9508         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
9509         when the destination is a stat.st_gid.
9510
9511 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9512
9513         getaddrinfo: Fix test for sa_len member.
9514         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9515         include <sys/types.h> before <sys/socket.h>.
9516
9517 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9518
9519         maint: change "can not" to "cannot"
9520         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9521         boundaries.
9522
9523 2011-04-09  Jim Meyering  <meyering@redhat.com>
9524
9525         maint: change "a a" to "a"
9526         * tests/test-lchown.h (test_lchown): s/a a/a/
9527
9528         maint.mk: prohibit \<the the\>
9529         * top/maint.mk (sc_prohibit_the_the): New rule.
9530
9531         maint: fix "the the" in comment
9532         * lib/count-one-bits.h: s/the the/the/
9533
9534         maint: change "can not" to "cannot"
9535         But do not change the occurrences in maintain.texi or in
9536         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9537         * doc/gnulib-tool.texi: s/can not/cannot/
9538         * doc/posix-functions/accept.texi (accept): Likewise.
9539         * doc/posix-functions/socket.texi (socket): Likewise.
9540         * lib/mbrtowc.c: Likewise.
9541
9542         maint.mk: prohibit use of "can not"
9543         * top/maint.mk (sc_prohibit_can_not): New rule.
9544         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9545
9546 2011-04-09  Bruno Haible  <bruno@clisp.org>
9547
9548         careadlinkat: Guard against misuse of careadlinkatcwd.
9549         * lib/careadlinkat.c: Include <stdlib.h>.
9550         (careadlinkatcwd): Check that the fd argument is as expected.
9551
9552 2011-04-09  Bruno Haible  <bruno@clisp.org>
9553
9554         careadlinkat: Use common coding style.
9555         * lib/careadlinkat.c: Move gnulib includes after system includes.
9556
9557 2011-04-09  Bruno Haible  <bruno@clisp.org>
9558
9559         careadlinkat: Clarify specification.
9560         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9561         (careadlinkatcwd): Add comment.
9562         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9563
9564 2011-04-09  Bruno Haible  <bruno@clisp.org>
9565
9566         areadlinkat: Avoid link error on many platforms.
9567         * modules/areadlinkat (Depends-on): Add areadlink.
9568
9569 2011-04-09  Bruno Haible  <bruno@clisp.org>
9570
9571         allocator, careadlinkat: Fix double-inclusion guard.
9572         * lib/allocator.h: Fix double-inclusion guard.
9573         * lib/careadlinkat.h: Likewise.
9574
9575 2011-04-09  Bruno Haible  <bruno@clisp.org>
9576
9577         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9578         * lib/relocwrapper.c: Update dependencies hierarchy.
9579         * build-aux/install-reloc: Update list of files to be compiled.
9580         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9581         lib/allocator.[hc].
9582
9583 2011-04-08  Eric Blake  <eblake@redhat.com>
9584
9585         strftime: silence gnulib-tool warning
9586         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9587
9588 2011-04-08  Bruno Haible  <bruno@clisp.org>
9589
9590         verify: Fix syntax error with GCC 4.6 in C++ mode.
9591         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9592         (HAVE_STATIC_ASSERT): New macro.
9593         (verify_true, verify): Use 'static_assert' if it is supported and
9594         '_Static_assert' is not supported.
9595
9596 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9597
9598         allocator: New module.
9599         * modules/allocator, lib/allocator.c: New files.
9600         * lib/allocator.h (stdlib_allocator): New decl.
9601         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9602         Remove.  Do not include <stdlib.h>.
9603         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9604         * modules/careadlinkat (Files): Remove lib/allocator.h.
9605         (Depends-on): Add allocator.
9606
9607         stdlib: let modules use system malloc, realloc
9608         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9609         if !_GL_USE_STDLIB_ALLOC.
9610         (malloc, realloc): Limit this change to a smaller scope.
9611
9612         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9613         (malloc, realloc): Don't #undef; no longer needed.
9614         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9615         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9616         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9617         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9618         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9619         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9620         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9621         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9622
9623         careadlinkat: rename members to avoid problem
9624         * lib/allocator.h (struct allocator): Rename members from
9625         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9626         and realloc are #define'd.  Reported by Eric Blake in
9627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9628         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9629
9630 2011-04-08  Eric Blake  <eblake@redhat.com>
9631
9632         nonblocking: reduce dependency
9633         * tests/test-nonblocking.c: Only test sockets when in use.
9634         * modules/nonblocking-tests (Depends-on): Drop socket.
9635         (Makefile.am): Link even if sockets are not present.
9636         * modules/pipe2-tests (Makefile.am): Likewise.
9637         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9638
9639         pipe2: fix O_NONBLOCK support on mingw
9640         * modules/pipe2 (Depends-on): Add nonblocking.
9641         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9642         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9643         * tests/test-nonblocking.c (main): Likewise.
9644         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9645
9646         fcntl-h: fix O_ACCMODE on cygwin
9647         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9648         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9649
9650         pipe-filter: drop O_NONBLOCK workarounds
9651         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9652         * modules/pipe-filter-ii (Depends-on): Likewise.
9653         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9654
9655         nonblocking: provide O_NONBLOCK for mingw
9656         * modules/nonblocking (Depends-on): Add open.
9657         (configure.ac): Set new witness macro.
9658         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9659         * modules/fcntl-h (Makefile.am): Substitute it.
9660         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9661         nonblocking module is in use.
9662         * lib/nonblocking.c: Adjust portability test.
9663         * lib/open.c (open): Don't let native open see gnulib flag.
9664         * tests/test-fcntl-h.c (main): Enhance test.
9665         * tests/test-open.h (test_open): Likewise.
9666         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9667
9668         careadlinkat: fix compilation error on mingw
9669         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9670         within struct allocator.
9671
9672 2011-04-06  Eric Blake  <eblake@redhat.com>
9673
9674         binary-io: relicense under LGPLv2+
9675         * modules/binary-io (License): Relax to LGPLv2+.
9676         Requested for libvirt, and required by pipe2.
9677
9678 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9679
9680         verify: use _Static_assert if available
9681         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9682         (verify_true, verify): Use it if available.  This generates better
9683         diagnostics with GCC 4.6.0 and later.
9684
9685 2011-04-05  Bruno Haible  <bruno@clisp.org>
9686
9687         Remove leftover generated .h files after config.status changed.
9688
9689         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9690         GL_GENERATE_ALLOCA_H.
9691         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9692         GL_GENERATE_ALLOCA_H evaluates to false.
9693
9694         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9695         GL_GENERATE_ARGZ_H.
9696         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9697         evaluates to false.
9698
9699         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9700         GL_GENERATE_BYTESWAP_H.
9701         * modules/byteswap (Makefile.am): Remove byteswap.h if
9702         GL_GENERATE_BYTESWAP_H evaluates to false.
9703
9704         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9705         GL_GENERATE_ERRNO_H.
9706         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9707         evaluates to false.
9708
9709         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9710         GL_GENERATE_FLOAT_H.
9711         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9712         evaluates to false.
9713
9714         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9715         GL_GENERATE_FNMATCH_H.
9716         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9717         GL_GENERATE_FNMATCH_H evaluates to false.
9718
9719         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9720         GL_GENERATE_GLOB_H.
9721         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9722         evaluates to false.
9723
9724         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9725         automake conditional GL_GENERATE_ICONV_H.
9726         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9727         evaluates to false.
9728
9729         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9730         GL_GENERATE_NETINET_IN_H.
9731         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9732         GL_GENERATE_NETINET_IN_H evaluates to false.
9733
9734         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9735         conditional GL_GENERATE_PTHREAD_H.
9736         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9737         * modules/pthread (Makefile.am): Remove pthread.h if
9738         GL_GENERATE_PTHREAD_H evaluates to false.
9739
9740         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9741         GL_GENERATE_SCHED_H.
9742         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9743         evaluates to false.
9744
9745         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9746         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9747         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9748         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9749
9750         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9751         GL_GENERATE_STDARG_H.
9752         * modules/stdarg (Makefile.am): Remove stdarg.h if
9753         GL_GENERATE_STDARG_H evaluates to false.
9754
9755         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9756         GL_GENERATE_STDBOOL_H.
9757         * modules/stdbool (Makefile.am): Remove stdbool.h if
9758         GL_GENERATE_STDBOOL_H evaluates to false.
9759
9760         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9761         conditional GL_GENERATE_STDDEF_H.
9762         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9763         * modules/stddef (Makefile.am): Remove stddef.h if
9764         GL_GENERATE_STDDEF_H evaluates to false.
9765
9766         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9767         GL_GENERATE_STDINT_H.
9768         * modules/stdint (Makefile.am): Remove stdint.h if
9769         GL_GENERATE_STDINT_H evaluates to false.
9770
9771         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9772         GL_GENERATE_SYSEXITS_H.
9773         * modules/sysexits (Makefile.am): Remove sysexits.h if
9774         GL_GENERATE_SYSEXITS_H evaluates to false.
9775
9776         Reported by Karl Berry and Ralf Wildenhues.
9777
9778 2011-04-05  Bruno Haible  <bruno@clisp.org>
9779
9780         Ensure to rebuild generated .h files when config.status has changed.
9781         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9782         config.status.
9783         * modules/ctype (Makefile.am): Likewise.
9784         * modules/dirent (Makefile.am): Likewise.
9785         * modules/errno (Makefile.am): Likewise.
9786         * modules/fcntl-h (Makefile.am): Likewise.
9787         * modules/float (Makefile.am): Likewise.
9788         * modules/getopt-posix (Makefile.am): Likewise.
9789         * modules/glob (Makefile.am): Likewise.
9790         * modules/iconv-h (Makefile.am): Likewise.
9791         * modules/inttypes (Makefile.am): Likewise.
9792         * modules/langinfo (Makefile.am): Likewise.
9793         * modules/locale (Makefile.am): Likewise.
9794         * modules/math (Makefile.am): Likewise.
9795         * modules/netdb (Makefile.am): Likewise.
9796         * modules/netinet_in (Makefile.am): Likewise.
9797         * modules/poll-h (Makefile.am): Likewise.
9798         * modules/pthread (Makefile.am): Likewise.
9799         * modules/pty (Makefile.am): Likewise.
9800         * modules/sched (Makefile.am): Likewise.
9801         * modules/search (Makefile.am): Likewise.
9802         * modules/selinux-h (Makefile.am): Likewise.
9803         * modules/signal (Makefile.am): Likewise.
9804         * modules/spawn (Makefile.am): Likewise.
9805         * modules/stdarg (Makefile.am): Likewise.
9806         * modules/stdbool (Makefile.am): Likewise.
9807         * modules/stddef (Makefile.am): Likewise.
9808         * modules/stdint (Makefile.am): Likewise.
9809         * modules/stdio (Makefile.am): Likewise.
9810         * modules/stdlib (Makefile.am): Likewise.
9811         * modules/string (Makefile.am): Likewise.
9812         * modules/strings (Makefile.am): Likewise.
9813         * modules/sys_file (Makefile.am): Likewise.
9814         * modules/sys_ioctl (Makefile.am): Likewise.
9815         * modules/sys_select (Makefile.am): Likewise.
9816         * modules/sys_socket (Makefile.am): Likewise.
9817         * modules/sys_stat (Makefile.am): Likewise.
9818         * modules/sys_time (Makefile.am): Likewise.
9819         * modules/sys_times (Makefile.am): Likewise.
9820         * modules/sys_utsname (Makefile.am): Likewise.
9821         * modules/sys_wait (Makefile.am): Likewise.
9822         * modules/sysexits (Makefile.am): Likewise.
9823         * modules/termios (Makefile.am): Likewise.
9824         * modules/time (Makefile.am): Likewise.
9825         * modules/unistd (Makefile.am): Likewise.
9826         * modules/wchar (Makefile.am): Likewise.
9827         * modules/wctype-h (Makefile.am): Likewise.
9828         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9829
9830 2011-04-05  Bruno Haible  <bruno@clisp.org>
9831
9832         pipe2: Relicense under LGPLv2+.
9833         * modules/pipe2 (License): Change to LGPLv2+.
9834         Requested by Eric Blake, for libvirt.
9835
9836 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9837
9838         bootstrap: compute gnulib_extra_files after updating build_aux
9839         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9840         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9841
9842 2011-04-05  Eric Blake  <eblake@redhat.com>
9843
9844         bootstrap: preserve git whitelist item sorting
9845         * build-aux/bootstrap (sort_patterns): New function.
9846         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9847
9848 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9849
9850         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9851         sc_space_tab check.
9852
9853 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9854
9855         areadlink, areadlinkat: rewrite in terms of careadlinkat
9856         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9857         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9858         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9859         (malloc, realloc): Remove #undefs.
9860         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9861         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9862         readlink, ssize_t, stdint, unistd.
9863         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9864         areadlink, stdint.
9865
9866         careadlinkat: new module
9867         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9868         * modules/careadlinkat: New files, written by me with
9869         a review and feedback from Ben Pfaff in
9870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9871
9872 2011-04-01  Bruno Haible  <bruno@clisp.org>
9873
9874         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9875         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9876         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9877         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9878         Reported by Bruce Korb <bruce.korb@gmail.com>.
9879
9880 2011-04-01  Bruno Haible  <bruno@clisp.org>
9881
9882         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9883         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9884         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9885         * modules/wcpcpy (Depends-on): Add extensions.
9886         * modules/wcpncpy (Depends-on): Likewise.
9887         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9888         systems.
9889         * doc/posix-functions/wcpncpy.texi: Likewise.
9890         * doc/posix-functions/wcwidth.texi: Likewise.
9891
9892 2011-03-31  Eric Blake  <eblake@redhat.com>
9893
9894         nonblocking: fix mingw test failures
9895         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9896         non-blocking flag on regular file.
9897         (get_nonblocking_flag): Set errno on invalid fd.
9898         * tests/test-nonblocking.c (main): Avoid test failure on
9899         directories if fchdir is not active.
9900         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9901
9902 2011-03-31  Bruno Haible  <bruno@clisp.org>
9903
9904         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9905         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9906         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9907         Reported by Simon Josefsson <simon@josefsson.org>.
9908
9909 2011-03-31  Bruno Haible  <bruno@clisp.org>
9910         and Eric Blake  <eblake@redhat.com>
9911
9912         nonblocking: new module
9913         * modules/nonblocking: New module.
9914         * modules/nonblocking-tests: Likewise.
9915         * lib/nonblocking.h: New file.
9916         * lib/nonblocking.c: Likewise.
9917         * tests/test-nonblocking.c: New test.
9918         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9919
9920 2011-03-30  Bruno Haible  <bruno@clisp.org>
9921
9922         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9923         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9924         instead of 'printf' format for GCC >= 4.4.
9925         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9926         (fprintf, printf, vfprintf, vprintf): Declare with
9927         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9928         the system's vfprintf() function.
9929         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9930
9931 2011-03-30  Eric Blake  <eblake@redhat.com>
9932
9933         passfd: fix scoping bug
9934         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9935         before sendmsg/recvmsg.
9936
9937         passfd: standardize coding conventions
9938         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9939         can be learned at compile time.
9940         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9941         ifdefs.
9942         (sendfd, recvfd): Follow gnulib code conventions.
9943
9944         passfd: fix incorrect sendmsg arguments
9945         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9946         incorrect msg_controllen value.
9947         * modules/passfd-tests (Depends-on): Check for alarm.
9948         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9949         Reported by Bastien ROUCARIES.
9950
9951 2011-03-30  Bruno Haible  <bruno@clisp.org>
9952
9953         c-strcasestr: Relicense under LGPLv2+.
9954         * modules/c-strcasestr (License): Change to LGPLv2+.
9955         Requested by Eric Blake, for libvirt.
9956
9957 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9958
9959         * users.txt: Add libidn2.  Fix libtasn1 link.
9960
9961 2011-03-30  Jim Meyering  <meyering@redhat.com>
9962
9963         tests: readlink* ("",... fails with EINVAL on newer kernels
9964         readlink and readlinkat have typically failed with ENOENT for
9965         the invalid, empty file name,  "".  However, with the advent
9966         of linux-2.6.39, they fail with EINVAL.
9967         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9968         when operating on the empty file name.
9969         * tests/test-readlink.h (test_readlink): Likewise.
9970
9971 2011-03-29  Bruno Haible  <bruno@clisp.org>
9972
9973         Relicense some modules under LGPLv2+, for libidn2.
9974         * modules/array-mergesort (License): Change to LGPLv2+.
9975         * modules/c-strcaseeq (License): Likewise.
9976         * modules/striconveh (License): Likewise.
9977         * modules/striconveha (License): Likewise.
9978         * modules/uniconv/base (License): Likewise.
9979         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9980         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9981         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9982         * modules/unictype/base (License): Likewise.
9983         * modules/unictype/bidiclass-of (License): Likewise.
9984         * modules/unictype/category-M (License): Likewise.
9985         * modules/unictype/category-none (License): Likewise.
9986         * modules/unictype/category-of (License): Likewise.
9987         * modules/unictype/category-test (License): Likewise.
9988         * modules/unictype/category-test-withtable (License): Likewise.
9989         * modules/unictype/combining-class (License): Likewise.
9990         * modules/unictype/joiningtype-of (License): Likewise.
9991         * modules/unictype/scripts (License): Likewise.
9992         * modules/uninorm/base (License): Likewise.
9993         * modules/uninorm/canonical-decomposition (License): Likewise.
9994         * modules/uninorm/composition (License): Likewise.
9995         * modules/uninorm/decompose-internal (License): Likewise.
9996         * modules/uninorm/decomposition-table (License): Likewise.
9997         * modules/uninorm/nfc (License): Likewise.
9998         * modules/uninorm/nfd (License): Likewise.
9999         * modules/uninorm/u32-normalize (License): Likewise.
10000         * modules/unistr/base (License): Likewise.
10001         * modules/unistr/u32-cpy (License): Likewise.
10002         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
10003         * modules/unistr/u32-to-u8 (License): Likewise.
10004         * modules/unistr/u32-uctomb (License): Likewise.
10005         * modules/unistr/u8-check (License): Likewise.
10006         * modules/unistr/u8-mblen (License): Likewise.
10007         * modules/unistr/u8-mbtouc (License): Likewise.
10008         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
10009         * modules/unistr/u8-mbtoucr (License): Likewise.
10010         * modules/unistr/u8-prev (License): Likewise.
10011         * modules/unistr/u8-strlen (License): Likewise.
10012         * modules/unistr/u8-to-u32 (License): Likewise.
10013         * modules/unistr/u8-uctomb (License): Likewise.
10014         * modules/unitypes (License): Likewise.
10015         Requested by Simon Josefsson.
10016
10017 2011-03-29  Simon Josefsson  <simon@josefsson.org>
10018
10019         lib-symbol-visibility: Add a notice.
10020         * modules/lib-symbol-visibility (Notice): New field.
10021
10022 2011-03-29  Bruno Haible  <bruno@clisp.org>
10023
10024         getaddrinfo: Doc fix.
10025         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
10026         section "fixed in Gnulib".
10027
10028 2011-03-28  Simon Josefsson  <simon@josefsson.org>
10029
10030         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
10031         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
10032
10033 2011-03-26  Bruno Haible  <bruno@clisp.org>
10034
10035         unictype/property-byname: Reduce the number of load-time relocations.
10036         * lib/unictype/pr_byname.c: Include <stdlib.h>.
10037         (UC_PROPERTY_INDEX_*): New enumeration values.
10038         (uc_property_byname): Convert an index from the lookup table to an
10039         uc_property_t.
10040         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
10041         values.
10042
10043 2011-03-26  Bruno Haible  <bruno@clisp.org>
10044
10045         unictype/property-byname: Allow omitted word separators and aliases.
10046         * lib/unictype/pr_byname.gperf: Add property names without word
10047         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
10048         for 'space'.
10049
10050 2011-03-26  Bruno Haible  <bruno@clisp.org>
10051
10052         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
10053         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
10054         also hyphens to space.
10055         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
10056         without spaces.
10057         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
10058
10059 2011-03-26  Bruno Haible  <bruno@clisp.org>
10060
10061         unictype/joiningtype-byname: Recognize long names as well.
10062         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
10063         a long name.
10064         * lib/unictype/joiningtype_byname.c: Include <string.h>,
10065         unictype/joiningtype_byname.h.
10066         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
10067         * lib/unictype/joiningtype_byname.gperf: New file.
10068         * modules/unictype/joiningtype-byname (Files): Add
10069         lib/unictype/joiningtype_byname.gperf.
10070         (Depends-on): Add gperf.
10071         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
10072         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
10073         long names.
10074
10075         Tests for module 'unictype/joiningtype-longname'.
10076         * modules/unictype/joiningtype-longname-tests: New file.
10077         * tests/unictype/test-joiningtype_longname.c: New file.
10078
10079         New module 'unictype/joiningtype-longname'.
10080         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
10081         * lib/unictype/joiningtype_longname.c: New file.
10082         * modules/unictype/joiningtype-longname: New file.
10083         * modules/unictype/joiningtype-all (Depends-on): Add
10084         unictype/joiningtype-longname.
10085
10086 2011-03-26  Bruno Haible  <bruno@clisp.org>
10087
10088         unictype/bidiclass-byname: Recognize long names as well.
10089         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
10090         name.
10091         * lib/unictype/bidi_byname.c: Include <string.h>,
10092         unictype/bidi_byname.h.
10093         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
10094         * lib/unictype/bidi_byname.gperf: New file.
10095         * modules/unictype/bidiclass-byname (Files): Add
10096         lib/unictype/bidi_byname.gperf.
10097         (Depends-on): Add gperf.
10098         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
10099         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
10100         long names.
10101
10102         Tests for module 'unictype/bidiclass-longname'.
10103         * modules/unictype/bidiclass-longname-tests: New file.
10104         * tests/unictype/test-bidi_longname.c: New file.
10105
10106         New module 'unictype/bidiclass-longname'.
10107         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
10108         * lib/unictype/bidi_longname.c: New file.
10109         * modules/unictype/bidiclass-longname: New file.
10110         * modules/unictype/bidiclass-all (Depends-on): Add
10111         unictype/bidiclass-longname.
10112
10113 2011-03-26  Bruno Haible  <bruno@clisp.org>
10114
10115         unictype/bidi*: Rename modules.
10116         * modules/unictype/bidiclass-all: Renamed from
10117         modules/unictype/bidicategory-all.
10118         * modules/unictype/bidiclass-name: Renamed from
10119         modules/unictype/bidiclass-name.
10120         (Description): Update.
10121         * modules/unictype/bidiclass-name-tests: Renamed from
10122         modules/unictype/bidicategory-name-tests.
10123         * modules/unictype/bidiclass-byname: Renamed from
10124         modules/unictype/bidicategory-byname.
10125         (Description): Update.
10126         * modules/unictype/bidiclass-byname-tests: Renamed from
10127         modules/unictype/bidicategory-byname-tests.
10128         * modules/unictype/bidiclass-of: Renamed from
10129         modules/unictype/bidicategory-of.
10130         (Description): Update.
10131         * modules/unictype/bidiclass-of-tests: Renamed from
10132         modules/unictype/bidicategory-of-tests.
10133         * modules/unictype/bidiclass-test: Renamed from
10134         modules/unictype/bidicategory-test.
10135         (Description): Update.
10136         * modules/unictype/bidiclass-test-tests: Renamed from
10137         modules/unictype/bidicategory-test-tests.
10138         * modules/unictype/bidicategory-all: New file, a simple redirection.
10139         * modules/unictype/bidicategory-name: Likewise.
10140         * modules/unictype/bidicategory-byname: Likewise.
10141         * modules/unictype/bidicategory-of: Likewise.
10142         * modules/unictype/bidicategory-test: Likewise.
10143         * modules/unictype/property-bidi-* (Dependencies): Update.
10144         * lib/unictype/bidi_*.c: Update comment.
10145
10146 2011-03-26  Bruno Haible  <bruno@clisp.org>
10147
10148         unictype/bidi*: Rename functions, part 2.
10149         * modules/unictype/bidicategory-name (configure.ac): Update required
10150         libunistring version.
10151         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
10152
10153 2011-03-25  Bruno Haible  <bruno@clisp.org>
10154
10155         New module 'unictype/combining-class-all'.
10156         * modules/unictype/combining-class-all: New file.
10157
10158         Tests for module 'unictype/combining-class-byname'.
10159         * modules/unictype/combining-class-byname-tests: New file.
10160         * tests/unictype/test-combiningclass_byname.c: New file.
10161
10162         New module 'unictype/combining-class-byname'.
10163         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
10164         * lib/unictype/combiningclass_byname.c: New file.
10165         * lib/unictype/combiningclass_byname.gperf: New file.
10166         * modules/unictype/combining-class-byname: New file.
10167
10168         Tests for module 'unictype/combining-class-longname'.
10169         * modules/unictype/combining-class-longname-tests: New file.
10170         * tests/unictype/test-combiningclass_longname.c: New file.
10171
10172         New module 'unictype/combining-class-longname'.
10173         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
10174         * lib/unictype/combiningclass_longname.c: New file.
10175         * modules/unictype/combining-class-longname: New file.
10176
10177         Tests for module 'unictype/combining-class-name'.
10178         * modules/unictype/combining-class-name-tests: New file.
10179         * tests/unictype/test-combiningclass_name.c: New file.
10180
10181         New module 'unictype/combining-class-name'.
10182         * lib/unictype.in.h (uc_combining_class_name): New declaration.
10183         * lib/unictype/combiningclass_name.c: New file.
10184         * modules/unictype/combining-class-name: New file.
10185
10186 2011-03-25  Bruno Haible  <bruno@clisp.org>
10187
10188         unictype/combining-class: Rename source files.
10189         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
10190         of unictype/combining.h.
10191         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
10192         Update.
10193         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
10194         * modules/unictype/combining-class (Description): Fix.
10195         (Files, Makefile.am): Update.
10196         * tests/unictype/test-combiningclass.c: Renamed from
10197         tests/unictype/test-combining.c.
10198         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
10199
10200 2011-03-25  Bruno Haible  <bruno@clisp.org>
10201
10202         unictype: Update list of canonical combining classes.
10203         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
10204
10205 2011-03-25  Bruno Haible  <bruno@clisp.org>
10206
10207         unictype/category-byname: Recognize long names as well.
10208         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
10209         a long name.
10210         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
10211         unictype/categ_byname.h.
10212         (UC_CATEGORY_INDEX_*): New enumeration values.
10213         (uc_general_category_byname): Use uc_general_category_lookup and
10214         convert from index to value.
10215         * lib/unictype/categ_byname.gperf: New file.
10216         * modules/unictype/category-byname (Files): Add
10217         lib/unictype/categ_byname.gperf.
10218         (Depends-on): Add gperf.
10219         (Makefile.am): Add rule for generating unictype/categ_byname.h.
10220         * tests/unictype/test-categ_byname.c (main): Test the recognition of
10221         long names.
10222
10223         Tests for module 'unictype/category-longname'.
10224         * modules/unictype/category-longname-tests: New file.
10225         * tests/unictype/test-categ_longname.c: New file.
10226
10227         New module 'unictype/category-longname'.
10228         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
10229         * lib/unictype/categ_longname.c: New file.
10230         * modules/unictype/category-longname: New file.
10231         * modules/unictype/category-all (Depends-on): Add it.
10232
10233 2011-03-25  Bruno Haible  <bruno@clisp.org>
10234
10235         Tests for module 'unictype/category-LC'.
10236         * modules/unictype/category-LC-tests: New file.
10237         * tests/unictype/test-categ_LC.c: New file, automatically generated.
10238
10239         New module 'unictype/category-LC'.
10240         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
10241         (UC_CATEGORY_LC): New declaration.
10242         (UC_CASED_LETTER): New macro.
10243         * lib/gen-uni-tables.c (is_category_LC): New function.
10244         (output_categories): Also handle category LC.
10245         (UC_CATEGORY_MASK_LC): New enumeration value.
10246         (general_category_byname): Also handle category LC.
10247         * lib/unictype/categ_LC.c: New file.
10248         * lib/unictype/categ_LC.h: New file, automatically generated.
10249         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
10250         category LC.
10251         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
10252         * modules/unictype/category-LC: New file.
10253         * modules/unictype/category-byname (Depends-on): Add
10254         unictype/category-LC.
10255         * modules/unictype/category-all (Depends-on): Likewise.
10256
10257 2011-03-25  Eric Blake  <eblake@redhat.com>
10258
10259         xmalloc: revert yesterday's regression
10260         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
10261         realloc's underlying behavior (allowing allocation of zero-size
10262         objects, especially if malloc-gnu is also in use).
10263
10264 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
10265
10266         maint.mk: add missing version to VC-tag
10267         * top/maint.mk: git tag was missing actual tag name; add it.
10268
10269         valgrind: do leak checking, and exit with code 1 on error (not 0)
10270         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
10271         to VALGRIND.
10272
10273 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
10274
10275         posix-modules: say what it does.
10276         * posix-modules: Add a line to the --help output saying what it does.
10277
10278 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10279
10280         xmalloc: Do not leak if underlying realloc is C99 compatible.
10281         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
10282         This avoids a leak on C99-based systems.  See
10283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
10284
10285 2011-03-24  Eric Blake  <eblake@redhat.com>
10286
10287         realloc: document portability problem
10288         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
10289         passing 0 size to realloc.
10290
10291 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
10292
10293         doc: update users.txt
10294         * users.txt: Add cvsps, tmpwatch
10295
10296 2011-03-23  Matt Rice  <ratmice@gmail.com>
10297
10298         doc: update users.txt
10299         * users.txt: Add gdb.
10300
10301 2011-03-23  Jim Meyering  <meyering@redhat.com>
10302
10303         doc: update users.txt
10304         Looking through matches up to the following URL (there are still
10305         several more pages), I found several projects that use gnulib:
10306         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
10307         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
10308         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
10309
10310 2011-03-22  Bruno Haible  <bruno@clisp.org>
10311
10312         unictype/bidi*: Rename functions.
10313         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
10314         uc_bidi_class, uc_is_bidi_class): New declarations.
10315         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
10316         uc_bidi_category_byname.
10317         (uc_bidi_category_byname): New function.
10318         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
10319         u_bidi_category_name.
10320         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
10321         (uc_bidi_category_name): New function.
10322         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
10323         uc_bidi_category.
10324         (uc_bidi_category): New function.
10325         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
10326         uc_is_bidi_category. Invoke uc_bidi_class.
10327         (uc_is_bidi_category): New function.
10328         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
10329         instead of uc_bidi_category_byname.
10330         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
10331         instead of uc_bidi_category_name.
10332         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
10333         uc_bidi_category.
10334         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
10335         instead of uc_is_bidi_category.
10336
10337 2011-03-21  Bruno Haible  <bruno@clisp.org>
10338
10339         New module 'unictype/joininggroup-all'.
10340         * modules/unictype/joininggroup-all: New file.
10341
10342         Tests for module 'unictype/joininggroup-of'.
10343         * modules/unictype/joininggroup-of-tests: New file.
10344         * tests/unictype/test-joininggroup_of.c: New file.
10345         * tests/unictype/test-joininggroup_of.h: New file, automatically
10346         generated by gen-uni-tables.
10347
10348         New module 'unictype/joininggroup-of'.
10349         * modules/unictype/joininggroup-of: New file.
10350         * lib/unictype/joininggroup_of.c: New file.
10351         * lib/unictype/joininggroup_of.h: New file, automatically generated by
10352         gen-uni-tables.
10353
10354         Tests for module 'unictype/joininggroup-byname'.
10355         * modules/unictype/joininggroup-byname-tests: New file.
10356         * tests/unictype/test-joininggroup_byname.c: New file.
10357
10358         New module 'unictype/joininggroup-byname'.
10359         * modules/unictype/joininggroup-byname: New file.
10360         * lib/unictype/joininggroup_byname.c: New file.
10361         * lib/unictype/joininggroup_byname.gperf: New file.
10362
10363         Tests for module 'unictype/joininggroup-name'.
10364         * modules/unictype/joininggroup-name-tests: New file.
10365         * tests/unictype/test-joininggroup_name.c: New file.
10366
10367         New module 'unictype/joininggroup-name'.
10368         * modules/unictype/joininggroup-name: New file.
10369         * lib/unictype/joininggroup_name.c: New file.
10370         * lib/unictype/joininggroup_name.h: New file.
10371
10372         New module 'unictype/joiningtype-all'.
10373         * modules/unictype/joiningtype-all: New file.
10374
10375         Tests for module 'unictype/joiningtype-of'.
10376         * modules/unictype/joiningtype-of-tests: New file.
10377         * tests/unictype/test-joiningtype_of.c: New file.
10378         * tests/unictype/test-joiningtype_of.h: New file, automatically
10379         generated by gen-uni-tables.
10380
10381         New module 'unictype/joiningtype-of'.
10382         * modules/unictype/joiningtype-of: New file.
10383         * lib/unictype/joiningtype_of.c: New file.
10384         * lib/unictype/joiningtype_of.h: New file, automatically generated by
10385         gen-uni-tables.
10386
10387         Tests for module 'unictype/joiningtype-byname'.
10388         * modules/unictype/joiningtype-byname-tests: New file.
10389         * tests/unictype/test-joiningtype_byname.c: New file.
10390
10391         New module 'unictype/joiningtype-byname'.
10392         * modules/unictype/joiningtype-byname: New file.
10393         * lib/unictype/joiningtype_byname.c: New file.
10394
10395         Tests for module 'unictype/joiningtype-name'.
10396         * modules/unictype/joiningtype-name-tests: New file.
10397         * tests/unictype/test-joiningtype_name.c: New file.
10398
10399         New module 'unictype/joiningtype-name'.
10400         * modules/unictype/joiningtype-name: New file.
10401         * lib/unictype/joiningtype_name.c: New file.
10402
10403         unictype: Add support for Arabic shaping properties.
10404         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
10405         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
10406         declarations.
10407         (UC_JOINING_GROUP_*): New enumeration values.
10408         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
10409         declarations.
10410         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
10411         (unicode_joining_type): New variable.
10412         (UC_JOINING_GROUP_*): New enumeration values.
10413         (unicode_joining_group): New variable.
10414         (fill_arabicshaping, joining_type_as_c_identifier,
10415         output_joining_type_test, output_joining_type,
10416         joining_group_as_c_identifier, output_joining_group_test,
10417         output_joining_group): New functions.
10418         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
10419         fill_arabicshaping and output_joining_type_test, output_joining_type,
10420         output_joining_group_test, output_joining_group.
10421         Reported by Simon Josefsson.
10422
10423 2011-03-21  Jim Meyering  <meyering@redhat.com>
10424
10425         strftime: fix a bug in yesterday's change
10426         * lib/strftime.c (add): Accommodate width's initial value of -1.
10427         Otherwise, nstrftime would copy uninitialized data into
10428         the result buffer.
10429
10430 2011-03-21  Jim Meyering  <meyering@redhat.com>
10431
10432         tests: add strftime-tests module
10433         * tests/test-strftime.c: New file.
10434         * modules/strftime-tests: New module.
10435
10436 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10437
10438         strftime: don't assume a byte count fits in 'int'
10439         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
10440         found this problem by static analysis, using gcc -Wstrict-overflow
10441         (GCC 4.5.2, x86-64).  This reported an optimization that depended
10442         on an integer overflow having undefined behavior, but it turns out
10443         that the argument is a size, which might not fit in 'int' anyway,
10444
10445 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10446
10447         stdio: don't require ignore_value around fwrite
10448
10449         This patch works around libc bug 11959
10450         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
10451         Without this patch, applications must often write
10452         ignore_value (fwrite (...)) even though the ignore_value is
10453         not helpful here.  It's common to write many objects, using
10454         fwrite/printf/etc., and then use ferror to detect output error.
10455
10456         I considered making this patch optional, but decided against it,
10457         because libc is obviously being inconsistent here: there is no
10458         reason libc should insist that user code must inspect fwrite
10459         return's value without also insisting that it inspect printf's,
10460         putchar's, etc.  If user code wants to have a strict style where
10461         all these functions' values are checked (so that ferror need not
10462         be checked), we could add support for that style in a new gnulib
10463         module, but in the meantime it's better to be consistent and to
10464         support common usage.
10465
10466         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
10467         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
10468         that we are compiling in checking mode, and if not C++, and
10469         if not already wrapping fwrite for some other reason.
10470         (fwrite): #define to rpl_fwrite if the latter is defined.
10471
10472 2011-03-20  Bruno Haible  <bruno@clisp.org>
10473
10474         verror: Fix compilation error introduced on 2011-02-13.
10475         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
10476         instead of __attribute__.
10477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10478
10479 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10480             Bruno Haible  <bruno@clisp.org>
10481
10482         socklen: do not depend on sys_socket
10483         While trying to modify Emacs to use gnulib's socklen module,
10484         I discovered a circular dependency: socklen depends on sys_socket
10485         and vice versa.  Emacs can use socklen, but it does not need
10486         sys_socket because it has its own substitute for sys/socket.h.
10487         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10488         gl_TYPE_SOCKLEN_T.
10489         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
10490         gl_PREREQ_SYS_H_SOCKET.
10491         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
10492         gl_PREREQ_SYS_H_SOCKET.
10493         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
10494         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
10495         * modules/socklen (Depends-on): Do not depend on sys_socket.
10496         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
10497
10498 2011-03-20  Jim Meyering  <meyering@redhat.com>
10499
10500         maint.mk: sort file names *after* new transformation
10501         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
10502         prefix would have led to an unwarranted failure in GNU parted.
10503         Sort after that transformation.
10504
10505 2011-03-19  Jim Meyering  <meyering@redhat.com>
10506
10507         maint.mk: fix po-file syntax-check rule
10508         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
10509         Patch by Bruno Haible.
10510
10511 2011-03-19  Bruno Haible  <bruno@clisp.org>
10512
10513         socklen: Update comment.
10514         * m4/socklen.m4: Update comment about platforms.
10515
10516 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10517             Bruno Haible  <bruno@clisp.org>
10518
10519         inet_ntop, inet_pton: Simplify.
10520         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10521         documented to provide socklen_t and we already depend on sys_socket.
10522         * modules/inet_pton (Depends-on): Likewise.
10523         * lib/arpa_inet.in.h: Adjust comment.
10524
10525 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10526             Bruno Haible  <bruno@clisp.org>
10527
10528         netdb: Simplify.
10529         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10530         documented to provide socklen_t and we already depend on sys_socket.
10531         * lib/netdb.in.h: Adjust comment.
10532
10533 2011-03-19  Bruno Haible  <bruno@clisp.org>
10534
10535         sys_socket, netdb: Document problem with socklen_t.
10536         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10537         platforms.
10538         * doc/posix-headers/netdb.texi: Likewise.
10539
10540 2011-03-18  Eric Blake  <eblake@redhat.com>
10541
10542         maint.mk: let po check work in VPATH build
10543         * top/maint.mk (po_file): Allow cfg.mk override.
10544         (sc_po_check): Allow VPATH use.
10545         Reported by Jiri Denemark.
10546
10547 2011-03-16  Jim Meyering  <meyering@redhat.com>
10548
10549         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10550         Before, you would have had to create one .x-sc_ file per rule in order
10551         to exempt offending files.  Now, you may instead use a Make variable --
10552         usually defined in cfg.mk -- whose name identifies the affected rule.
10553         * top/maint.mk (_sc_excl): Define.
10554         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10555         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10556
10557 2011-03-13  Bruno Haible  <bruno@clisp.org>
10558
10559         ignore-value tests: Avoid warnings.
10560         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10561         empty for gcc < 3.4.
10562
10563 2011-03-13  Bruno Haible  <bruno@clisp.org>
10564
10565         passfd: Fix link error on Solaris.
10566         * modules/passfd (Description): Correct.
10567         (Depends-on): Add socketlib.
10568         (Link): New section.
10569         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10570
10571 2011-03-13  Bruno Haible  <bruno@clisp.org>
10572
10573         passfd: Fix link error on AIX 5.2.
10574         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10575
10576 2011-03-13  Bruno Haible  <bruno@clisp.org>
10577
10578         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10579         * lib/sys_socket.in.h: Include <stddef.h>.
10580         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10581         CMSG_FIRSTHDR. Remove unused variable.
10582
10583 2011-03-13  Bruno Haible  <bruno@clisp.org>
10584
10585         passfd: Fix compilation error on OpenBSD.
10586         * lib/passfd.c: Include <sys/uio.h>.
10587
10588 2011-03-13  Bruno Haible  <bruno@clisp.org>
10589
10590         passfd test: Fix warnings.
10591         * tests/test-passfd.c: Include <sys/wait.h>.
10592         (main): Fix typo.
10593
10594 2011-03-13  Bruno Haible  <bruno@clisp.org>
10595
10596         passfd module, part 4, tweaks.
10597         * tests/test-passfd.c: Reorder includes.
10598         (main): Fix perror and printf calls.
10599
10600 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10601
10602         passfd module, part 4.
10603         * modules/passfd-tests: New file.
10604         * tests/test-passfd.c: New file.
10605
10606 2011-03-13  Jim Meyering  <meyering@redhat.com>
10607
10608         Makefile: rely on GNU make; derive syntax-check rule names
10609         Rather than requiring that each sc_ rule be listed as a dependent
10610         of "check", use features of GNU make to derive the list.
10611         * Makefile (syntax-check-rules): Define.
10612         (check): Depend on the new variable, not the hard-coded list.
10613
10614 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10615             Bruno Haible  <bruno@clisp.org>
10616
10617         passfd module, part 3.
10618         * lib/passfd.h (recvfd): Add a flags argument.
10619         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10620         (recvfd): Add a flags argument.
10621         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10622         exists.
10623         * modules/passfd (Depends-on): Add cloexec.
10624         Suggested by Eric Blake.
10625
10626 2011-03-13  Bruno Haible  <bruno@clisp.org>
10627
10628         passfd module, part 2, tweaks.
10629         * modules/passfd (Files): Reorder.
10630         (Depends-on): Remove errno.
10631         (Include): Remove <sys/socket.h>, <sys/un.h>.
10632         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10633         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10634         specification header. Include <sys/socket.h> always. Don't include
10635         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10636         (sendfd): Clarify that it sets errno when it fails.
10637         (recvfd): Fix specification.
10638
10639 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10640
10641         passfd module, part 2.
10642         * modules/passfd: New file.
10643         * lib/passfd.h: New file.
10644         * lib/passfd.c: New file.
10645
10646 2011-03-12  Bruno Haible  <bruno@clisp.org>
10647
10648         wcswidth, mbswidth: Avoid integer overflow.
10649         * lib/wcswidth.c: Include <limits.h>.
10650         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10651         * lib/mbswidth.c: Include <limits.h>.
10652         (mbsnwidth): Avoid 'int' overflow.
10653         Reported by Jim Meyering.
10654
10655 2011-03-12  Bruno Haible  <bruno@clisp.org>
10656
10657         futimens, utimensat: Avoid endless recursion on Solaris 10.
10658         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10659         Solaris.
10660         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10661         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10662
10663 2011-03-11  Jim Meyering  <meyering@redhat.com>
10664
10665         maint.mk: relax a regexp to accommodate other formatting styles
10666         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10667         between "ngettext" and the following "(".
10668
10669 2011-03-11  Pádraig Brady <P@draigBrady.com>
10670
10671         maint.mk: suppress a false positive warning
10672         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10673         diagnostics are marked with ngettext.
10674
10675 2011-03-10  Eric Blake  <eblake@redhat.com>
10676
10677         wchar: add explicit dependencies, for Tru64
10678         * modules/mbmemcasecoll (Depends-on): Add wchar.
10679         * modules/mbtowc (Depends-on): Likewise.
10680         * modules/vasnprintf (Depends-on): Likewise.
10681         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10682         * modules/wctomb (Depends-on): Likewise.
10683         Reported by Peter O'Gorman.
10684
10685 2011-03-08  Bruno Haible  <bruno@clisp.org>
10686
10687         passfd module, part 1, tweaks.
10688         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10689         Improve indentation. Improve AC_MSG_CHECKING messages.
10690         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10691         gl_SOCKET_FAMILIES.
10692
10693 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10694
10695         passfd module, part 1.
10696         * m4/afunix.m4: New file.
10697         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10698         sockets.
10699
10700 2011-03-08  Bruno Haible  <bruno@clisp.org>
10701
10702         regex-quote: New API.
10703         * lib/regex-quote.h: Include <stdbool.h>.
10704         (struct regex_quote_spec): New type.
10705         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10706         New declarations.
10707         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10708         'const struct regex_quote_spec *' argument.
10709         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10710         (pcre_special): New constant.
10711         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10712         New functions.
10713         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10714         'const struct regex_quote_spec *' argument.
10715         * modules/regex-quote (Depends-on): Add stdbool.
10716         * tests/test-regex-quote.c (check): Update for new API. Add test for
10717         anchored results.
10718         * NEWS: Mention the API change.
10719         Reported by Reuben Thomas and Eric Blake.
10720
10721 2011-03-06  Bruno Haible  <bruno@clisp.org>
10722
10723         regex-quote: Fix creation of POSIX extended regular expressions.
10724         * lib/regex-quote.c (ere_special): Add grouping and alternation
10725         operators.
10726
10727 2011-03-05  Bruno Haible  <bruno@clisp.org>
10728
10729         doc: Improve doc regarding autopoint vs. gnulib.
10730         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10731         disable autopoint while running autoreconf.
10732         Suggested by Ralf Wildenhues.
10733
10734 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10735
10736         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10737         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10738
10739 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10740
10741         parse-duration: remove xalloc.h dependency
10742         * lib/parse-duration.c (parse_period): handle NULL return from
10743         strdup instead of calling xstrdup().
10744         * modules/parse-duration: remove "xalloc" dependency
10745
10746 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10747
10748         bootstrap: honor m4_base when running aclocal
10749         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10750
10751 2011-03-02  Jim Meyering  <meyering@redhat.com>
10752
10753         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10754         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10755         on request from Matt Booth.
10756
10757 2011-03-01  Eric Blake  <eblake@redhat.com>
10758
10759         test-link: work on Hurd
10760         * tests/test-link.h (test_link): Hurd rejects linking directories
10761         with EISDIR instead of the POSIX-mandated EPERM.
10762
10763 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10764
10765         stdio: simplify by moving files to printf-posix, sigpipe
10766         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10767         since this symbol is needed only if printf is replaced.
10768         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10769         Require gl_ASM_SYMBOL_PREFIX.
10770         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10771         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10772         (Depends-on): Add 'raise'.
10773         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10774         * modules/stdio (Files): Remove lib/stdio-write.c,
10775         m4/asm-underscore.m4.
10776         (Depends-on): Remove 'raise'.
10777
10778         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10779         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10780         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10781         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10782
10783 2011-02-28  Bruno Haible  <bruno@clisp.org>
10784
10785         localcharset: Assume ANSI C behaviour of free().
10786         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10787         calling free().
10788         Suggested by Simon Josefsson <simon@josefsson.org>.
10789
10790 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10791             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10792             Bruno Haible  <bruno@clisp.org>  (tiny change)
10793
10794         On Cygwin, use /proc file system instead of win32 API.
10795         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10796         Win32 file names.
10797         (DllMain): Simplify by removing Cygwin specific code.
10798         (find_shared_library_fullname): Use Linux specific implementation also
10799         for Cygwin.
10800         (get_shared_library_fullname): Update accordingly.
10801         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10802         Win32 file names.
10803         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10804         Cygwin specific code.
10805
10806 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10807             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10808
10809         Fix OpenMP flag detection for various Fortran compilers.
10810         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10811         OpenMP-conditional compilation construct, to force compile
10812         failure with missing OpenMP flag.
10813         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10814
10815 2011-02-25  Eric Blake  <eblake@redhat.com>
10816
10817         strstr: expand test coverage
10818         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10819         compilation.
10820         * tests/test-memmem.c (main): Duplicate tests.
10821         * tests/test-strcasestr.c (main): Likewise.
10822         * tests/test-c-strcasestr.c (main): Likewise.
10823
10824 2011-02-25  Jim Meyering  <meyering@redhat.com>
10825
10826         maint.mk: detect missing-NL-at-EOF, too
10827         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10828         it also detects when a file lacks a newline at EOF.
10829         (require_exactly_one_NL_at_EOF_): Renamed from
10830         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10831         since people may well have .x-sc_... file names tied to the
10832         existing name.  Suggested by Eric Blake.
10833
10834 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10835
10836         dirname: move m4/dos.m4 functionality into lib/dosname.h
10837
10838         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10839         extracts symbols from it, puts them into config.h; but it's much
10840         easier to use the symbols directly.  filename.h already does this,
10841         but it disagrees with dos.m4 in some respects.  This patch
10842         introduces a different include file dosname.h that packages up
10843         dos.m4, and then later we can work on merging filename.h and
10844         dosname.h.  Applications that need only the easy-to-configure
10845         symbols should consider including dosname.h rather than dirname.h.
10846         * NEWS: Mention incompatible changes.
10847         * m4/dos.m4: Remove.
10848         * lib/dosname.h, modules/dosname: New files.
10849         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10850         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10851         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10852         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10853         Include dosname.h, not dirname.h.
10854         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10855         Include dosname.h, for definitions of symbols like ISSLASH
10856         that used to be in config.h.
10857         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10858         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10859         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10860         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10861         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10862         * modules/rmdir (Files): Likewise.
10863         * modules/stat (Files): Likewise.
10864         * modules/unlink (Files): Likewise.
10865         * modules/dirname-lgpl (Depends-on): Add dosname.
10866         * modules/lstat (Depends-on): Likewise.
10867         * modules/openat (Depends-on): Likewise.
10868         * modules/rmdir (Depends-on): Likewise.
10869         * modules/savewd (Depends-on): Likewise.
10870         * modules/stat (Depends-on): Likewise.
10871         * modules/unlink (Depends-on): Likewise.
10872         * modules/openat (Depends-on): Remove dirname-lgpl.
10873         * modules/savewd (Depends-on): Likewise.
10874         * tests/test-dirname.c: Do not use removed symbols like
10875         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10876         the remaining symbols, e.g., ISSLASH ('\\').
10877
10878 2011-02-25  Eric Blake  <eblake@redhat.com>
10879
10880         strstr: revert patches that introduced bug and pessimization
10881         * lib/str-two-way.h: Add another reference.
10882         (two_way_short_needle, two_way_long_needle): Revert changes from
10883         2011-02-24; they pessimize search speed.
10884         (critical_factorization): Partially revert changes from
10885         2010-06-22; they violate the requirement that the left half of the
10886         needle be smaller than the period of the needle.
10887
10888 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10889
10890         filenamecat: remove unnecessary dependency on dirname-lgpl
10891         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10892         is no direct dependency, just an indirect one via filenamecat-lgpl.
10893
10894         remove: remove unnecessary use of m4/dos.m4
10895         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10896         * modules/remove (FILES): Remove m4/dos.m4.
10897
10898         * lib/openat-proc.c: Don't include dirname.h; not needed.
10899
10900         backupfile: remove unnecessary use of m4/dos.m4
10901         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10902         of its symbols are used by the backupfile code.  backupfile.c does
10903         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10904         for the rare case of programs that want all their backup file
10905         names to live within 8+3 limits, and dos.m4 doesn't address that.
10906         * modules/backupfile (Files): Remove m4/dos.m4.
10907
10908 2011-02-24  Jim Meyering  <meyering@redhat.com>
10909
10910         strstr: fix a bug whereby strstr would mistakenly return NULL
10911         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10912         in period calculation.
10913         (two_way_long_needle): Likewise.
10914         The original problem was reported by Mike Stump in
10915         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10916         Ralf Wildenhues provided the short needle and haystack.
10917         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10918         Add a more involved test to trigger the bug in two_way_long_needle.
10919
10920 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10921
10922         gnulib-tool: remove use of bold display in help screen
10923         * gnulib-tool (func_usage): Do not use bold display anymore in the
10924         help screen.  That was just meant to be a temporary emphasis for a
10925         backward-incompatible change.
10926
10927 2011-02-23  Bruno Haible  <bruno@clisp.org>
10928
10929         Fix misindentation of preprocessor directives.
10930         * lib/argp-namefrob.h: Reindent preprocessor directives.
10931         * lib/getopt_int.h (struct _getopt_data): Likewise.
10932         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10933         * lib/vasnprintf.c (decode_long_double): Likewise.
10934         * tests/test-argmatch.c: Insert blank lines, for clarity.
10935         * tests/test-exclude.c: Likewise.
10936
10937 2011-02-22  Bruno Haible  <bruno@clisp.org>
10938
10939         ioctl: Fix for MacOS X in 64-bit mode.
10940         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10941         value.
10942         Suggested by Eric Blake.
10943         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10944
10945 2011-02-22  Jim Meyering  <meyering@redhat.com>
10946
10947         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10948         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10949         in lib/.
10950
10951 2011-02-22  Eric Blake  <eblake@redhat.com>
10952
10953         maint: avoid any CDPATH issue
10954         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10955
10956         maint: adjust cpp indentation for my modules, as well
10957         * Makefile (sc_cpp_indent_check): Add my name.
10958         * lib/fbufmode.c: Filter through cppi.
10959         * lib/fpurge.c: Likewise.
10960         * lib/freadable.c: Likewise.
10961         * lib/freading.c: Likewise.
10962         * lib/fwritable.c: Likewise.
10963         * lib/fwriting.c: Likewise.
10964         * lib/sigaction.c: Likewise.
10965
10966 2011-02-22  Jim Meyering  <meyering@redhat.com>
10967
10968         maint: adjust cpp indentation to reflect nesting depth
10969         I.e., in a block of code that begins with an unnested "#if",
10970         put one space between the "#" in column 1 and following token.
10971         For example,
10972         -#include <sys/vfs.h>
10973         +# include <sys/vfs.h>
10974         Do this only in .c files that are part of a module I maintain.
10975         * lib/linkat.c: Filter through cppi.
10976         * lib/nanosleep.c: Likewise.
10977         * lib/openat.c: Likewise.
10978         * lib/openat-die.c: Likewise.
10979         * lib/dup3.c: Likewise.
10980         * lib/fchownat.c: Likewise.
10981         * lib/flock.c: Likewise.
10982         * lib/fsync.c: Likewise.
10983         * lib/fts.c: Likewise.
10984         * lib/getpass.c: Likewise.
10985         * lib/gettimeofday.c: Likewise.
10986         * lib/userspec.c: Likewise.
10987         * Makefile (sc_cpp_indent_check): New rule, to check this.
10988
10989 2011-02-22  Bruno Haible  <bruno@clisp.org>
10990
10991         New module 'wctomb'.
10992         * lib/stdlib.in.h (wctomb): New declaration.
10993         * lib/wctomb.c: New file.
10994         * lib/wctomb-impl.h: New file.
10995         * m4/wctomb.m4: New file.
10996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10997         REPLACE_WCTOMB.
10998         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10999         REPLACE_WCTOMB.
11000         * modules/wctomb: New file.
11001         * tests/test-stdlib-c++.cc: Test signature of wctomb.
11002         * doc/posix-functions/wctomb.texi: Mention the new module.
11003         * modules/wctob (Depends-on): Add wctomb.
11004
11005 2011-02-22  Bruno Haible  <bruno@clisp.org>
11006
11007         New module 'mbtowc'.
11008         * lib/stdlib.in.h (mbtowc): New declaration.
11009         * lib/mbtowc.c: New file.
11010         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
11011         * m4/mbtowc.m4: New file.
11012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
11013         REPLACE_MBTOWC.
11014         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
11015         REPLACE_MBTOWC.
11016         * modules/mbtowc: New file.
11017         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
11018         * doc/posix-functions/mbtowc.texi: Mention the new module.
11019         * modules/btowc (Depends-on): Add mbtowc.
11020
11021 2011-02-22  Bruno Haible  <bruno@clisp.org>
11022
11023         wcrtomb: Add more tests for native Windows platforms.
11024         * tests/test-wcrtomb-w32-1.sh: New file.
11025         * tests/test-wcrtomb-w32-2.sh: New file.
11026         * tests/test-wcrtomb-w32-3.sh: New file.
11027         * tests/test-wcrtomb-w32-4.sh: New file.
11028         * tests/test-wcrtomb-w32-5.sh: New file.
11029         * tests/test-wcrtomb-w32.c: New file.
11030         * modules/wcrtomb-tests (Files): Add them.
11031         (Makefile.am): Arrange to run these tests.
11032         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
11033         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
11034
11035 2011-02-20  Bruno Haible  <bruno@clisp.org>
11036
11037         wcrtomb: Enhance test.
11038         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
11039
11040 2011-02-20  Bruno Haible  <bruno@clisp.org>
11041
11042         mbrtowc: Tiny optimization.
11043         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
11044
11045 2011-02-20  Jim Meyering  <meyering@redhat.com>
11046
11047         test-exclude.c: remove unmatched #endif
11048         * tests/test-exclude.c: Remove stray #endif, left over from
11049         the change of a week ago.
11050
11051 2011-02-19  Jim Meyering  <meyering@redhat.com>
11052
11053         git-version-gen: skip "-dirty" check when appropriate
11054         * build-aux/git-version-gen: Don't run any git commands when the
11055         version string comes from .tarball-version.  Prior to this, we
11056         would run git update-index --refresh even from a just-unpacked
11057         tarball directory, and that could affect a .git/ directory in a
11058         parent of the build directory.  Reported by Mike Frysinger.
11059
11060 2011-02-19  Bruno Haible  <bruno@clisp.org>
11061
11062         unictype/property-byname: Reduce the size of the 'data' segment.
11063         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
11064
11065 2011-02-19  Bruno Haible  <bruno@clisp.org>
11066
11067         unictype/scripts: Reduce the size of the 'data' segment.
11068         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
11069         '%pic'.
11070         * lib/unictype/scripts_byname.gperf: Regenerated.
11071
11072 2011-02-19  Bruno Haible  <bruno@clisp.org>
11073
11074         stdint: Update documentation.
11075         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
11076
11077 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11078
11079         stdint: omit redundant check for wchar.h
11080         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
11081         always tests whether wchar.h exists, so remove the now-redundant test.
11082
11083 2011-02-18  Bruno Haible  <bruno@clisp.org>
11084
11085         stdint: Cut dependency to module 'wchar'.
11086         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
11087         include the necessary prerequisites.
11088         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
11089         * modules/stdint (Depends-on): Remove wchar.
11090         (Makefile.am): Substitute HAVE_WCHAR_H.
11091         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
11092
11093 2011-02-18  Eric Blake  <eblake@redhat.com>
11094
11095         longlong: skip, rather than fail, on cross-compilation
11096         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
11097         when cross-compiling; regression from 2011-02-16.
11098
11099 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11100
11101         * NEWS: Mention 2011-02-08 change to stdlib.
11102
11103 2011-02-17  Bruno Haible  <bruno@clisp.org>
11104
11105         getloadavg: Add comments about platforms.
11106         * m4/getloadavg.m4: Add comment.
11107         * lib/getloadavg.c: Likewise.
11108
11109 2011-02-17  Bruno Haible  <bruno@clisp.org>
11110
11111         getloadavg: Fix link error on Solaris 2.6.
11112         * modules/getloadavg (Link): New section.
11113         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
11114         linking test-getloadavg.
11115         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
11116         getloadavg.
11117
11118 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11119
11120         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
11121         It was 'int', but this doesn't match the IRIX 6.5 manual.
11122         Suggested by Bruno Haible in
11123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
11124
11125 2011-02-17  Bruno Haible  <bruno@clisp.org>
11126
11127         havelib: Fix comments.
11128         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
11129         change.
11130
11131 2011-02-17  Bruno Haible  <bruno@clisp.org>
11132
11133         havelib: Update config.rpath.
11134         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
11135
11136 2011-02-17  Bruno Haible  <bruno@clisp.org>
11137
11138         getloadavg test: Add some plausibility checks.
11139         * tests/test-getloadavg.c (check_avg): Print a warning when the value
11140         is improbable.
11141
11142 2011-02-16  Eric Blake  <eblake@redhat.com>
11143
11144         maintainer-makefile: make syntax-check a no-op from tarballs
11145         * top/maint.mk (no-vc-detected): New rule.
11146         (local-checks-available): Use it to avoid hanging if someone tries
11147         'make syntax-check' from a tarball.  Also append to any non-syntax
11148         checks already defined in cfg.mk.
11149
11150 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11151
11152         longlong: tune, particularly for common case of c99
11153
11154         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
11155         or running anything if c99, or if unsigned long long int does not
11156         work.  In either case, we know the answer without further tests.
11157         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
11158         it at most once, and use its results for both long long int and
11159         unsigned long long int.  This is more likely to be efficient in
11160         the common case where the program wants to check for both long
11161         long int and unsigned long long int.
11162         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
11163         since the answer is already known.
11164
11165 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
11166
11167         getloadavg: set errno
11168         * lib/getloadavg.c: Set errno when returning -1.  If no other
11169         error number looks appropriate, set it to ENOSYS if the getloadavg
11170         looks like it can't possibly ever work, ENOTSUP otherwise.
11171         Suggested by Bruno Haible in
11172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
11173
11174         getloadavg: trim unused parts and speed up 'configure'
11175         * NEWS: Document this.
11176         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
11177         always compiled if getloadavg is absent.
11178         Move test code to ...
11179         * tests/test-getloadavg.c: New file, containing previous
11180         contents of test from lib/getloadavg.c.  It also contains
11181         suggestions by Bruno Haible in
11182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
11183         * modules/getloadavg-tests: New file.
11184         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
11185         Do tests in the same order as they're needed for getloadavg.c.
11186         Omit setgid-related tests that generate symbols KMEM_GROUP,
11187         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
11188         Do only the tests that are needed to see whether the system has
11189         getloadavg, moving the other tests into ...
11190         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
11191         NLIST_NAME_UNION; nobody should be using it.  Do not define
11192         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
11193         relevant, as the user of this module shouldn't care how getloadavg
11194         is implemented.
11195
11196         getloadavg: omit unused var
11197         * lib/getloadavg.c (getloadavg): Omit unused local variable.
11198
11199 2011-02-15  Jim Meyering  <meyering@redhat.com>
11200
11201         doc: update users.txt
11202         * users.txt: Update iwhd's URL.
11203
11204 2011-02-13  Bruno Haible  <bruno@clisp.org>
11205
11206         Consistent macro naming for macros that use GCC __attribute__.
11207         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
11208         _ATTRIBUTE_NONNULL_.
11209         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
11210         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
11211         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
11212         ATTRIBUTE_DEPRECATED.
11213         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
11214         ATTRIBUTE_NORETURN.
11215         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11216         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11217         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11218         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11219         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
11220         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
11221         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
11222         ATTRIBUTE_SENTINEL.
11223         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
11224         ATTRIBUTE_RETURN_CHECK.
11225         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
11226         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
11227         ATTRIBUTE_NORETURN.
11228         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
11229         Reported by Paul Eggert.
11230
11231 2011-02-13  Bruno Haible  <bruno@clisp.org>
11232
11233         Don't interfere with a program's definition of __attribute__.
11234         * lib/argp.h (__attribute__): Remove definition.
11235         (_GL_ATTRIBUTE_FORMAT): New macro.
11236         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
11237         * lib/argp-fmtstream.h (__attribute__): Remove definition.
11238         (_GL_ATTRIBUTE_FORMAT): New macro.
11239         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
11240         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11241         GCC 3 or newer.
11242         * lib/error.h (__attribute__): Remove definition.
11243         (_GL_ATTRIBUTE_FORMAT): New macro.
11244         (error, error_at_line): Use it.
11245         * lib/hash.h (__attribute__): Remove definition.
11246         (ATTRIBUTE_WUR): Update definition. Define always.
11247         * lib/openat.h (__attribute__): Remove definition.
11248         (ATTRIBUTE_NORETURN): Update definition. Define always.
11249         * lib/sigpipe-die.h (__attribute__): Remove definition.
11250         (ATTRIBUTE_NORETURN): Update definition. Define always.
11251         * lib/vasnprintf.h (__attribute__): Remove definition.
11252         (_GL_ATTRIBUTE_FORMAT): New macro.
11253         (asnprintf, vasnprintf): Use it.
11254         * lib/xalloc.h (__attribute__): Remove definition.
11255         (ATTRIBUTE_NORETURN): Update definition. Define always.
11256         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11257         * lib/xmemdup0.h (__attribute__): Remove definition.
11258         (ATTRIBUTE_NORETURN): Update definition. Define always.
11259         * lib/xprintf.h (__attribute__): Remove definition.
11260         (_GL_ATTRIBUTE_FORMAT): New macro.
11261         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
11262         * lib/xstrtol.h (__attribute__): Remove definition.
11263         (ATTRIBUTE_NORETURN): Update definition. Define always.
11264         * lib/xvasprintf.h (__attribute__): Remove definition.
11265         (_GL_ATTRIBUTE_FORMAT): New macro.
11266         (xasprintf, xvasprintf): Use it.
11267         * tests/test-argmatch.c (__attribute__): Remove definition.
11268         (ATTRIBUTE_NORETURN): Update definition. Define always.
11269         * tests/test-exclude.c (__attribute__): Remove definition.
11270         (ATTRIBUTE_NORETURN): Update definition. Define always.
11271         Reported by Paul Eggert.
11272
11273 2011-02-13  Bruno Haible  <bruno@clisp.org>
11274
11275         mbrtowc: Add more tests for native Windows platforms.
11276         * tests/test-mbrtowc-w32-1.sh: New file.
11277         * tests/test-mbrtowc-w32-2.sh: New file.
11278         * tests/test-mbrtowc-w32-3.sh: New file.
11279         * tests/test-mbrtowc-w32-4.sh: New file.
11280         * tests/test-mbrtowc-w32-5.sh: New file.
11281         * tests/test-mbrtowc-w32.c: New file.
11282         * modules/mbrtowc-tests (Files): Add them.
11283         (Makefile.am): Arrange to run these tests.
11284         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
11285         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
11286
11287 2011-02-13  Bruno Haible  <bruno@clisp.org>
11288
11289         mbrtowc: Work around native Windows bug.
11290         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
11291         guess when no suitable locale for testing was found.
11292         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
11293
11294 2011-02-13  Bruno Haible  <bruno@clisp.org>
11295
11296         mbsinit: Work around mingw bug.
11297         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
11298         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
11299         Windows.
11300         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
11301
11302 2011-02-13  Bruno Haible  <bruno@clisp.org>
11303
11304         mbsinit: Don't crash for a NULL argument.
11305         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
11306         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
11307
11308 2011-02-13  Bruno Haible  <bruno@clisp.org>
11309
11310         Don't interfere with a program's definition of __attribute__.
11311         * lib/stdio.in.h (__attribute__): Remove definition.
11312         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
11313         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
11314         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
11315         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
11316         * lib/string.in.h (__attribute__): Remove definition.
11317         Reported by Paul Eggert.
11318
11319 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11320
11321         stdlib: don't get in the way of non-GCC __attribute__
11322         See thread starting at
11323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
11324         Revert previous stdlib change, installing the following instead:
11325         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
11326         to get in the way of a non-GCC compiler that supports __attribute__.
11327         (_GL_ATTRIBUTE_RETURN): New macro.
11328         (_Exit): Use it instead of __attribute__.
11329
11330 2011-02-12  Bruno Haible  <bruno@clisp.org>
11331
11332         quotearg test: Avoid test failure on mingw.
11333         * tests/test-quotearg.sh: Convert the locale identifier from native
11334         Windows syntax to Unix syntax.
11335
11336 2011-02-12  Bruno Haible  <bruno@clisp.org>
11337
11338         setlocale: Prefer gnulib's override over libintl's override.
11339         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
11340         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
11341         GNULIB_defined_setlocale is set.
11342
11343 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11344
11345         stdlib: support non-GCC __attribute__
11346
11347         Fix a serious and tricky problem encountered when attempting to
11348         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
11349         5.5, but it crashed due to memory corruption on Solaris 10 with
11350         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
11351         bits that are otherwise zero.  This tagging is optional inside
11352         Emacs but is preferred and is used when __attribute__ ((__aligned
11353         (8))) works, as it does with both recent-enough GCC and with Sun C
11354         5.11.  However, Sun C 5.11 is not GCC and does not #define
11355         __GNUC__ and __GNUC_MINOR__.
11356
11357         When I added the getloadavg module to Emacs, it brought in
11358         stdlib.in.h, which contained this fragment:
11359
11360            #ifndef __attribute__
11361            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
11362            #  define __attribute__(Spec)   /* empty */
11363            # endif
11364            #endif
11365
11366         When files that include <stdlib.h> were compiled with Sun C 5.11,
11367         the above code disabled __attribute__ ((__aligned (8))), which
11368         caused variables to not be properly aligned, which eventually led
11369         to the pointer corruption mentioned above.  (This was a bit hard
11370         to diagnose, unfortunately.)
11371
11372         Several "#define __attribute__(X) /* empty */" code snippets need
11373         to be eradicated from Gnulib to work with non-GCC compilers that
11374         support __attribute__.  The Autoconf way to do this is to test for
11375         each kind of attribute that we want support for, and selectively
11376         enable that in source code.
11377
11378         Fix this problem just for stdlib.h, by adding a test for the
11379         __noreturn__ attribute, and change stdlib.in.h to use that test
11380         when needed.  This technique can be easily generalized to the
11381         other *.in.h files and attributes, and a similar technique can be
11382         used for *.h and *.c files.  This patch is enough to solve the
11383         problem for Emacs + getloadavg, and I thought I'd publish it for
11384         feedback before undertaking further, similar fixes in other
11385         modules.
11386
11387         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
11388         because it's not needed for stdlib.h.  It merely substitutes the
11389         value directly into stdlib.h.  We may well need to #define it, or
11390         similar symbols, for other modules, but it's nice to also have an
11391         option to not #define it for applications like Emacs that do not
11392         need it.
11393
11394         * lib/stdlib.in.h (__attribute__): Do not #define.
11395         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
11396         be defined only if the _Exit module is also used.
11397         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
11398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
11399         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
11400         platforms.
11401         * modules/_Exit (Files): Add m4/attribute.m4.
11402         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
11403         * m4/attribute.m4: New file.
11404
11405 2011-02-12  Bruno Haible  <bruno@clisp.org>
11406
11407         wcsrtombs: Work around bug on native Windows.
11408         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
11409         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
11410         instead of len.
11411         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
11412
11413 2011-02-12  Bruno Haible  <bruno@clisp.org>
11414
11415         mbsrtowcs: Work around bug on native Windows.
11416         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
11417         against mingw bug.
11418         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
11419
11420 2011-02-12  Bruno Haible  <bruno@clisp.org>
11421
11422         Avoid setlocale bugs in tests.
11423         * modules/btowc (Dependencies): Add setlocale.
11424         * modules/c-strcase (Dependencies): Likewise.
11425         * modules/mbmemcasecmp (Dependencies): Likewise.
11426         * modules/mbmemcasecoll (Dependencies): Likewise.
11427         * modules/mbrtowc (Dependencies): Likewise.
11428         * modules/mbscasecmp (Dependencies): Likewise.
11429         * modules/mbscasestr (Dependencies): Likewise.
11430         * modules/mbschr (Dependencies): Likewise.
11431         * modules/mbscspn (Dependencies): Likewise.
11432         * modules/mbsinit (Dependencies): Likewise.
11433         * modules/mbsncasecmp (Dependencies): Likewise.
11434         * modules/mbsnrtowcs (Dependencies): Likewise.
11435         * modules/mbspbrk (Dependencies): Likewise.
11436         * modules/mbspcasecmp (Dependencies): Likewise.
11437         * modules/mbsrchr (Dependencies): Likewise.
11438         * modules/mbsrtowcs (Dependencies): Likewise.
11439         * modules/mbsspn (Dependencies): Likewise.
11440         * modules/mbsstr (Dependencies): Likewise.
11441         * modules/nl_langinfo (Dependencies): Likewise.
11442         * modules/quotearg (Dependencies): Likewise.
11443         * modules/unicase/locale-language (Dependencies): Likewise.
11444         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
11445         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
11446         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
11447         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
11448         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
11449         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
11450         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
11451         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
11452         * modules/vasnprintf-posix (Dependencies): Likewise.
11453         * modules/wcrtomb (Dependencies): Likewise.
11454         * modules/wcsnrtombs (Dependencies): Likewise.
11455         * modules/wcsrtombs (Dependencies): Likewise.
11456
11457 2011-02-12  Bruno Haible  <bruno@clisp.org>
11458
11459         setlocale: Workaround native Windows bug.
11460         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
11461         succeeds but sets LC_CTYPE to "C", report a failure.
11462         * tests/test-setlocale2.sh: New file.
11463         * tests/test-setlocale2.c: New file.
11464         * modules/setlocale-tests (Files): Add the new files.
11465         (Makefile.am): Enable test-setlocale2.sh test.
11466         * doc/posix-functions/setlocale.texi: Mention workaround.
11467
11468 2011-02-11  Bruno Haible  <bruno@clisp.org>
11469
11470         Tests for module 'setlocale'.
11471         * modules/setlocale-tests: New file.
11472         * tests/test-setlocale1.sh: New file.
11473         * tests/test-setlocale1.c: New file.
11474
11475         New module 'setlocale'.
11476         * lib/locale.in.h (setlocale): New declaration.
11477         * lib/setlocale.c: New file, based on
11478         gettext/gettext-runtime/intl/setlocale.c.
11479         * m4/setlocale.m4: New file.
11480         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
11481         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
11482         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
11483         REPLACE_SETLOCALE.
11484         * modules/setlocale: New file.
11485         * tests/test-locale-c++.cc: Test the declaration of setlocale.
11486         * doc/posix-functions/setlocale.texi: Mention the new module.
11487
11488 2011-02-11  Bruno Haible  <bruno@clisp.org>
11489
11490         Prepare for locale dependent tests on mingw.
11491         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
11492         because it has the wrong locale encoding.
11493         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
11494         French_France.1252 instead of "fr".
11495         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
11496         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
11497         because it has the wrong locale encoding.
11498         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
11499         native Windows, try Turkish_Turkey.65001.
11500         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
11501         Chinese_China.54936.
11502
11503         Prepare for locale dependent tests on mingw.
11504         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
11505         differently.
11506         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11507         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11508         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11509         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11510
11511 2011-02-11  Eric Blake  <eblake@redhat.com>
11512
11513         strptime: avoid compiler warnings
11514         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11515         compiler warnings about dead code.
11516         Reported by Daniel P. Berrange.
11517
11518 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11519
11520         doc: update users.txt
11521         * users.txt: Add rcs.
11522
11523 2011-02-10  John W. Eaton  <jwe@gnu.org>
11524
11525         doc: update users.txt
11526         * users.txt: Add octave.
11527
11528 2011-02-10  Jim Meyering  <meyering@redhat.com>
11529
11530         doc: update users.txt
11531         * users.txt: Add iwhd.
11532
11533 2011-02-09  Bruno Haible  <bruno@clisp.org>
11534
11535         gnulib-tool: Make copyright notice adjustment more robust.
11536         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11537         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11538         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11539         License".
11540         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11541
11542 2011-02-06  Bruno Haible  <bruno@clisp.org>
11543
11544         New module 'towctrans'.
11545         * modules/towctrans: New file.
11546         * lib/wctype.in.h (towctrans): New declaration.
11547         * lib/towctrans.c: New file.
11548         * lib/towctrans-impl.h: New file.
11549         * m4/towctrans.m4: New file.
11550         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11551         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11552         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11553         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11554         * doc/posix-functions/towctrans.texi: Mention the new module.
11555
11556 2011-02-06  Bruno Haible  <bruno@clisp.org>
11557
11558         New module 'wctrans'.
11559         * modules/wctrans: New file.
11560         * lib/wctype.in.h (wctrans): New declaration.
11561         * lib/wctrans.c: New file.
11562         * lib/wctrans-impl.h: New file.
11563         * m4/wctrans.m4: New file.
11564         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11565         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11566         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11567         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11568         * doc/posix-functions/wctrans.texi: Mention the new module.
11569
11570 2011-02-06  Bruno Haible  <bruno@clisp.org>
11571
11572         New module 'iswctype'.
11573         * modules/iswctype: New file.
11574         * lib/wctype.in.h (iswctype): New declaration.
11575         * lib/iswctype.c: New file.
11576         * lib/iswctype-impl.h: New file.
11577         * m4/iswctype.m4: New file.
11578         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11579         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11580         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11581         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11582         * doc/posix-functions/iswctype.texi: Mention the new module and the
11583         HP-UX 11.00 problem.
11584
11585 2011-02-06  Bruno Haible  <bruno@clisp.org>
11586
11587         New module 'wctype'.
11588         * modules/wctype: Change to represent the wctype() substitute.
11589         * lib/wctype.in.h (wctype): New declaration.
11590         * lib/wctype.c: New file.
11591         * lib/wctype-impl.h: New file.
11592         * m4/wctype.m4: New file.
11593         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11594         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11595         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11596         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11597         * doc/posix-functions/wctype.texi: Mention the new module and the
11598         HP-UX 11.00 problem.
11599
11600 2011-02-06  Bruno Haible  <bruno@clisp.org>
11601
11602         wctype-h: Ensure wctype_t and wctrans_t are defined.
11603         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11604         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11605         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11606         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11607         HAVE_WCTRANS_T.
11608         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11609
11610 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11611
11612         flock: fix license typo
11613
11614         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11615         omitted.
11616
11617 2011-02-08  Bruno Haible  <bruno@clisp.org>
11618
11619         Split large sed scripts, for HP-UX sed.
11620         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11621         to avoid HP-UX limit of 99 commands, in the near future.
11622         * modules/stdlib (Makefile.am): Likewise.
11623         * modules/unistd (Makefile.am): Likewise.
11624         * modules/wchar (Makefile.am): Likewise.
11625         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11626         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11627         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11628
11629 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11630             Bruno Haible  <bruno@clisp.org>
11631
11632         stdlib: improve random_r modularization
11633         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11634         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11635         you also need the random_r module to get this material right.
11636         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11637         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11638         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11639
11640 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11641
11642         stdlib: don't depend on stdint
11643         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11644         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11645         be independent of whether stdint.h is needed.
11646         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11647         here, instead of ...
11648         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11649         struct random_data should be using the random_r module, not just
11650         the stdlib module (which wouldn't make sense: what package needs
11651         just struct random_data without also needing random_r?).
11652         * modules/stdlib (Depends-on): Remove stdint.
11653
11654         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11655         See the thread rooted at
11656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11657         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11658         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11659         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11660         __VMS)); previously it was always included (via fcntl--.h).
11661         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11662         hand; this is good enough for load averages.  Also, do not use
11663         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11664         flags directly if available and don't bother otherwise.  (Packages
11665         that need the extra reliability should use the modules that define
11666         these flags on older platforms that lack them.)
11667         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11668         fcntl-safer.
11669
11670 2011-02-08  Jim Meyering  <meyering@redhat.com>
11671
11672         di-set.h, ino-map.h: add multiple-inclusion guard
11673         Technically, the guard is required only for ino-map.h, due to its
11674         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11675         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11676         * lib/ino-map.h: Likewise.
11677
11678 2011-02-06  Bruno Haible  <bruno@clisp.org>
11679
11680         iswblank: Ensure declaration on glibc systems.
11681         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11682         * modules/iswblank (Dependencies): Add 'extensions'.
11683         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11684
11685 2011-02-06  Bruno Haible  <bruno@clisp.org>
11686
11687         New module 'iswblank'.
11688         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11689         * modules/iswblank: New file.
11690         * modules/wctype-h (Files): Remove lib/iswblank.c.
11691         (Makefile.am): Substitute GNULIB_ISWBLANK.
11692         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11693         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11694         (gl_WCTYPE_H_DEFAULTS): New macro.
11695         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11696         * modules/iswblank-tests: New file.
11697         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11698         * tests/test-wctype-h.c (main): Remove iswblank tests.
11699         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11700         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11701         of 'wctype-h'.
11702         * NEWS: Mention the change.
11703         * modules/mbchar (Depends-on): Add iswblank.
11704
11705 2011-02-08  Bruno Haible  <bruno@clisp.org>
11706
11707         di-set tests: Refactor.
11708         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11709         unnecessary includes.
11710         (ASSERT): Remove macro.
11711         (main): Make C90 compliant by avoiding variable declaration after
11712         statement.
11713         * modules/di-set-tests (Files): Add tests/macros.h.
11714
11715 2011-02-08  Bruno Haible  <bruno@clisp.org>
11716
11717         ino-map tests: Refactor.
11718         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11719         unnecessary includes.
11720         (ASSERT): Remove macro.
11721         (main): Make C90 compliant by avoiding variable declaration after
11722         statement.
11723         * modules/ino-map-tests (Files): Add tests/macros.h.
11724
11725 2011-02-08  Jim Meyering  <meyering@redhat.com>
11726
11727         di-set: add "const" to a cast
11728         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11729         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11730
11731 2011-02-06  Bruno Haible  <bruno@clisp.org>
11732
11733         Rename module 'wctype' to 'wctype-h'.
11734         * modules/wctype-h: Renamed from modules/wctype.
11735         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11736         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11737         (Files, Depends-on, Makefile.am): Update.
11738         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11739         (Files, Makefile.am): Update.
11740         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11741         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11742         * doc/posix-headers/wctype.texi: Update.
11743         * doc/posix-functions/iswalnum.texi: Update.
11744         * doc/posix-functions/iswalpha.texi: Update.
11745         * doc/posix-functions/iswblank.texi: Update.
11746         * doc/posix-functions/iswcntrl.texi: Update.
11747         * doc/posix-functions/iswdigit.texi: Update.
11748         * doc/posix-functions/iswgraph.texi: Update.
11749         * doc/posix-functions/iswlower.texi: Update.
11750         * doc/posix-functions/iswprint.texi: Update.
11751         * doc/posix-functions/iswpunct.texi: Update.
11752         * doc/posix-functions/iswspace.texi: Update.
11753         * doc/posix-functions/iswupper.texi: Update.
11754         * doc/posix-functions/iswxdigit.texi: Update.
11755         * doc/posix-functions/towlower.texi: Update.
11756         * doc/posix-functions/towupper.texi: Update.
11757         * NEWS: Mention the change.
11758         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11759         * modules/mbchar (Dependencies): Likewise.
11760         * modules/mbswidth (Dependencies): Likewise.
11761         * modules/quotearg (Dependencies): Likewise.
11762         * modules/regex (Dependencies): Likewise.
11763         * modules/wcscasecmp (Dependencies): Likewise.
11764         * modules/wcsncasecmp (Dependencies): Likewise.
11765         * modules/wcwidth (Dependencies): Likewise.
11766
11767 2011-02-06  Bruno Haible  <bruno@clisp.org>
11768
11769         New module 'wcswidth'.
11770         * modules/wcswidth: New file.
11771         * lib/wchar.in.h (wcswidth): New declaration.
11772         * lib/wcswidth.c: New file.
11773         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11774         * m4/wcswidth.m4: New file.
11775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11777         REPLACE_WCSWIDTH.
11778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11779         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11780         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11781         * doc/posix-functions/wcswidth.texi: Mention the new module.
11782
11783 2011-02-06  Bruno Haible  <bruno@clisp.org>
11784
11785         New module 'wcstok'.
11786         * modules/wcstok: New file.
11787         * lib/wchar.in.h (wcstok): New declaration.
11788         * lib/wcstok.c: New file.
11789         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11790         * m4/wcstok.m4: New file.
11791         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11792         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11793         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11794         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11795         * doc/posix-functions/wcstok.texi: Mention the new module.
11796
11797 2011-02-06  Bruno Haible  <bruno@clisp.org>
11798
11799         New module 'wcsstr'.
11800         * modules/wcsstr: New file.
11801         * lib/wchar.in.h (wcsstr): New declaration.
11802         * lib/wcsstr.c: New file.
11803         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11804         * m4/wcsstr.m4: New file.
11805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11808         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11809         * doc/posix-functions/wcsstr.texi: Mention the new module.
11810
11811 2011-02-06  Bruno Haible  <bruno@clisp.org>
11812
11813         New module 'wcspbrk'.
11814         * modules/wcspbrk: New file.
11815         * lib/wchar.in.h (wcspbrk): New declaration.
11816         * lib/wcspbrk.c: New file.
11817         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11818         * m4/wcspbrk.m4: New file.
11819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11822         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11823         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11824
11825 2011-02-06  Bruno Haible  <bruno@clisp.org>
11826
11827         New module 'wcsspn'.
11828         * modules/wcsspn: New file.
11829         * lib/wchar.in.h (wcsspn): New declaration.
11830         * lib/wcsspn.c: New file.
11831         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11832         * m4/wcsspn.m4: New file.
11833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11835         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11836         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11837         * doc/posix-functions/wcsspn.texi: Mention the new module.
11838
11839 2011-02-06  Bruno Haible  <bruno@clisp.org>
11840
11841         New module 'wcscspn'.
11842         * modules/wcscspn: New file.
11843         * lib/wchar.in.h (wcscspn): New declaration.
11844         * lib/wcscspn.c: New file.
11845         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11846         * m4/wcscspn.m4: New file.
11847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11850         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11851         * doc/posix-functions/wcscspn.texi: Mention the new module.
11852
11853 2011-02-06  Bruno Haible  <bruno@clisp.org>
11854
11855         New module 'wcsrchr'.
11856         * modules/wcsrchr: New file.
11857         * lib/wchar.in.h (wcsrchr): New declaration.
11858         * lib/wcsrchr.c: New file.
11859         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11860         * m4/wcsrchr.m4: New file.
11861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11864         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11865         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11866
11867 2011-02-06  Bruno Haible  <bruno@clisp.org>
11868
11869         New module 'wcschr'.
11870         * modules/wcschr: New file.
11871         * lib/wchar.in.h (wcschr): New declaration.
11872         * lib/wcschr.c: New file.
11873         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11874         * m4/wcschr.m4: New file.
11875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11878         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11879         * doc/posix-functions/wcschr.texi: Mention the new module.
11880
11881 2011-02-06  Bruno Haible  <bruno@clisp.org>
11882
11883         New module 'wcsdup'.
11884         * modules/wcsdup: New file.
11885         * lib/wchar.in.h (wcsdup): New declaration.
11886         * lib/wcsdup.c: New file.
11887         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11888         * m4/wcsdup.m4: New file.
11889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11892         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11893         * doc/posix-functions/wcsdup.texi: Mention the new module.
11894
11895 2011-02-06  Bruno Haible  <bruno@clisp.org>
11896
11897         New module 'wcsxfrm'.
11898         * modules/wcsxfrm: New file.
11899         * lib/wchar.in.h (wcsxfrm): New declaration.
11900         * lib/wcsxfrm.c: New file.
11901         * lib/wcsxfrm-impl.h: New file.
11902         * m4/wcsxfrm.m4: New file.
11903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11906         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11907         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11908
11909 2011-02-06  Bruno Haible  <bruno@clisp.org>
11910
11911         New module 'wcscoll'.
11912         * modules/wcscoll: New file.
11913         * lib/wchar.in.h (wcscoll): New declaration.
11914         * lib/wcscoll.c: New file.
11915         * lib/wcscoll-impl.h: New file.
11916         * m4/wcscoll.m4: New file.
11917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11920         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11921         * doc/posix-functions/wcscoll.texi: Mention the new module.
11922
11923 2011-02-06  Bruno Haible  <bruno@clisp.org>
11924
11925         New module 'wcsncasecmp'.
11926         * modules/wcsncasecmp: New file.
11927         * lib/wchar.in.h (wcsncasecmp): New declaration.
11928         * lib/wcsncasecmp.c: New file.
11929         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11930         * m4/wcsncasecmp.m4: New file.
11931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11934         HAVE_WCSNCASECMP.
11935         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11936         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11937
11938 2011-02-06  Bruno Haible  <bruno@clisp.org>
11939
11940         New module 'wcscasecmp'.
11941         * modules/wcscasecmp: New file.
11942         * lib/wchar.in.h (wcscasecmp): New declaration.
11943         * lib/wcscasecmp.c: New file.
11944         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11945         * m4/wcscasecmp.m4: New file.
11946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11948         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11949         HAVE_WCSCASECMP.
11950         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11951         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11952
11953 2011-02-05  Bruno Haible  <bruno@clisp.org>
11954
11955         New module 'wcsncmp'.
11956         * modules/wcsncmp: New file.
11957         * lib/wchar.in.h (wcsncmp): New declaration.
11958         * lib/wcsncmp.c: New file.
11959         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11960         * m4/wcsncmp.m4: New file.
11961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11963         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11964         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11965         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11966
11967 2011-02-05  Bruno Haible  <bruno@clisp.org>
11968
11969         New module 'wcscmp'.
11970         * modules/wcscmp: New file.
11971         * lib/wchar.in.h (wcscmp): New declaration.
11972         * lib/wcscmp.c: New file.
11973         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11974         * m4/wcscmp.m4: New file.
11975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11978         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11979         * doc/posix-functions/wcscmp.texi: Mention the new module.
11980
11981 2011-02-05  Bruno Haible  <bruno@clisp.org>
11982
11983         New module 'wcsncat'.
11984         * modules/wcsncat: New file.
11985         * lib/wchar.in.h (wcsncat): New declaration.
11986         * lib/wcsncat.c: New file.
11987         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11988         * m4/wcsncat.m4: New file.
11989         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11990         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11991         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11992         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11993         * doc/posix-functions/wcsncat.texi: Mention the new module.
11994
11995 2011-02-05  Bruno Haible  <bruno@clisp.org>
11996
11997         New module 'wcscat'.
11998         * modules/wcscat: New file.
11999         * lib/wchar.in.h (wcscat): New declaration.
12000         * lib/wcscat.c: New file.
12001         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
12002         * m4/wcscat.m4: New file.
12003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
12004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
12005         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
12006         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
12007         * doc/posix-functions/wcscat.texi: Mention the new module.
12008
12009 2011-02-05  Bruno Haible  <bruno@clisp.org>
12010
12011         New module 'wcpncpy'.
12012         * modules/wcpncpy: New file.
12013         * lib/wchar.in.h (wcpncpy): New declaration.
12014         * lib/wcpncpy.c: New file.
12015         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
12016         * m4/wcpncpy.m4: New file.
12017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
12018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
12019         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
12020         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
12021         * doc/posix-functions/wcpncpy.texi: Mention the new module.
12022
12023 2011-02-05  Bruno Haible  <bruno@clisp.org>
12024
12025         New module 'wcsncpy'.
12026         * modules/wcsncpy: New file.
12027         * lib/wchar.in.h (wcsncpy): New declaration.
12028         * lib/wcsncpy.c: New file.
12029         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
12030         * m4/wcsncpy.m4: New file.
12031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
12032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
12033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
12034         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
12035         * doc/posix-functions/wcsncpy.texi: Mention the new module.
12036
12037 2011-02-05  Bruno Haible  <bruno@clisp.org>
12038
12039         New module 'wcpcpy'.
12040         * modules/wcpcpy: New file.
12041         * lib/wchar.in.h (wcpcpy): New declaration.
12042         * lib/wcpcpy.c: New file.
12043         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
12044         * m4/wcpcpy.m4: New file.
12045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
12046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
12047         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
12048         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
12049         * doc/posix-functions/wcpcpy.texi: Mention the new module.
12050
12051 2011-02-05  Bruno Haible  <bruno@clisp.org>
12052
12053         New module 'wcscpy'.
12054         * modules/wcscpy: New file.
12055         * lib/wchar.in.h (wcscpy): New declaration.
12056         * lib/wcscpy.c: New file.
12057         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
12058         * m4/wcscpy.m4: New file.
12059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
12060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
12061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
12062         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
12063         * doc/posix-functions/wcscpy.texi: Mention the new module.
12064
12065 2011-02-05  Bruno Haible  <bruno@clisp.org>
12066
12067         New module 'wcsnlen'.
12068         * modules/wcsnlen: New file.
12069         * lib/wchar.in.h (wcsnlen): New declaration.
12070         * lib/wcsnlen.c: New file.
12071         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
12072         * m4/wcsnlen.m4: New file.
12073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
12074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
12075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
12076         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
12077         * doc/posix-functions/wcsnlen.texi: Mention the new module.
12078
12079 2011-02-05  Bruno Haible  <bruno@clisp.org>
12080
12081         New module 'wcslen'.
12082         * modules/wcslen: New file.
12083         * lib/wchar.in.h (wcslen): New declaration.
12084         * lib/wcslen.c: New file.
12085         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
12086         * m4/wcslen.m4: New file.
12087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
12088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
12089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
12090         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
12091         * doc/posix-functions/wcslen.texi: Mention the new module.
12092
12093 2011-02-05  Bruno Haible  <bruno@clisp.org>
12094
12095         New module 'wmemset'.
12096         * modules/wmemset: New file.
12097         * lib/wchar.in.h (wmemset): New declaration.
12098         * lib/wmemset.c: New file.
12099         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
12100         * m4/wmemset.m4: New file.
12101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
12102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
12103         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
12104         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
12105         * doc/posix-functions/wmemset.texi: Mention the new module.
12106
12107 2011-02-05  Bruno Haible  <bruno@clisp.org>
12108
12109         New module 'wmemmove'.
12110         * modules/wmemmove: New file.
12111         * lib/wchar.in.h (wmemmove): New declaration.
12112         * lib/wmemmove.c: New file.
12113         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
12114         * m4/wmemmove.m4: New file.
12115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
12116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
12117         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
12118         HAVE_WMEMMOVE.
12119         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
12120         * doc/posix-functions/wmemmove.texi: Mention the new module.
12121
12122 2011-02-05  Bruno Haible  <bruno@clisp.org>
12123
12124         New module 'wmemcpy'.
12125         * modules/wmemcpy: New file.
12126         * lib/wchar.in.h (wmemcpy): New declaration.
12127         * lib/wmemcpy.c: New file.
12128         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
12129         * m4/wmemcpy.m4: New file.
12130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
12131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
12132         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
12133         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
12134         * doc/posix-functions/wmemcpy.texi: Mention the new module.
12135
12136 2011-02-05  Bruno Haible  <bruno@clisp.org>
12137
12138         New module 'wmemcmp'.
12139         * modules/wmemcmp: New file.
12140         * lib/wchar.in.h (wmemcmp): New declaration.
12141         * lib/wmemcmp.c: New file.
12142         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
12143         * m4/wmemcmp.m4: New file.
12144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
12145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
12146         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
12147         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
12148         * doc/posix-functions/wmemcmp.texi: Mention the new module.
12149
12150 2011-02-07  Jim Meyering  <meyering@redhat.com>
12151
12152         di-set, ino-map: new modules, from coreutils
12153         * lib/di-set.c: New file.
12154         * lib/di-set.h: Likewise.
12155         * lib/ino-map.c: Likewise.
12156         * lib/ino-map.h: Likewise.
12157         * modules/di-set: Likewise.
12158         * modules/di-set-tests: Likewise.
12159         * modules/ino-map: Likewise.
12160         * modules/ino-map-tests: Likewise.
12161         * tests/test-di-set.c: Likewise.
12162         * tests/test-ino-map.c: Likewise.
12163
12164 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12165
12166         getloadavg: merge minor changes from Emacs
12167
12168         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
12169         (getloadavg): Use memset, not bzero.
12170
12171         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
12172         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12173         clash (bug#86).
12174
12175 2010-11-14  Bruno Haible  <bruno@clisp.org>
12176
12177         Allow multiple gnulib generated replacements to coexist.
12178         * lib/getopt.in.h (struct option): Avoid identical redefinition.
12179         * lib/inttypes.in.h (imaxdiv_t): Likewise.
12180         * lib/langinfo.in.h (nl_item): Likewise.
12181         * lib/math.in.h (_NaN, NAN): Likewise.
12182         * lib/netdb.in.h (struct addrinfo): Likewise.
12183         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
12184         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
12185         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
12186         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
12187         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
12188         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
12189         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
12190         pthread_mutexattr_init, pthread_mutexattr_settype,
12191         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
12192         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
12193         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
12194         pthread_spin_trylock, pthread_spin_unlock): Likewise.
12195         * lib/sched.in.h (struct sched_param): Likewise.
12196         * lib/se-selinux.in.h (security_class_t, security_context_t,
12197         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
12198         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
12199         lsetfilecon, fsetfilecon, security_check_context,
12200         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
12201         Likewise.
12202         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
12203         Likewise.
12204         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
12205         _gl_function_taking_int_returning_void_t, union sigval,
12206         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
12207         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
12208         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12209         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
12210         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
12211         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
12212         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
12213         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
12214         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
12215         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
12216         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
12217         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
12218         socklen_t, rpl_fd_isset): Likewise.
12219         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
12220         * lib/sys_time.in.h (struct timeval): Likewise.
12221         * lib/sys_times.in.h (struct tms): Likewise.
12222         * lib/sys_utsname.in.h (struct utsname):
12223         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
12224         * lib/unistd.in.h (getpagesize): Likewise.
12225         * lib/wchar.in.h (mbstate_t): Likewise.
12226         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12227         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
12228         towlower, towupper): Likewise.
12229         Reported by Sam Steingold <sds@gnu.org>.
12230
12231 2011-02-05  Eric Blake  <eblake@redhat.com>
12232
12233         unsetenv: work around Haiku issues
12234         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
12235         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
12236
12237 2010-12-30  Bruce Korb  <bkorb@gnu.org>
12238
12239         libposix: avoid calling error() within libposix
12240         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
12241         is defined.
12242
12243 2011-02-05  Eric Blake  <eblake@redhat.com>
12244
12245         strerror_r-posix: port to cygwin
12246         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
12247         implementation.
12248         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
12249         * tests/test-strerror_r.c (main): Fix test.
12250         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12251         issue.
12252
12253 2011-02-05  Bruno Haible  <bruno@clisp.org>
12254
12255         New module 'wmemchr'.
12256         * modules/wmemchr: New file.
12257         * lib/wchar.in.h (wmemchr): New declaration.
12258         * lib/wmemchr.c: New file.
12259         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
12260         * m4/wmemchr.m4: New file.
12261         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
12262         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
12263         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
12264         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
12265         * doc/posix-functions/wmemchr.texi: Mention the new module.
12266
12267 2011-02-04  Eric Blake  <eblake@redhat.com>
12268
12269         fdopendir: detect FreeBSD bug
12270         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
12271         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
12272
12273 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12274
12275         stdbool: do not define HAVE_STDBOOL_H
12276         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
12277         AC_HEADER_STDBOOL.  All uses changed.  Do not define
12278         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
12279         imported from the latest Autoconf git.  It was motivated by Emacs,
12280         which uses gnulib but does not need HAVE_STDBOOL_H.
12281
12282 2011-02-04  Bruno Haible  <bruno@clisp.org>
12283
12284         wcsnrtombs: Prepare for new module wwcsnrtombs.
12285         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
12286         * lib/wcsnrtombs.c: Include it.
12287         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
12288
12289         wcsrtombs: Prepare for new module wwcsrtombs.
12290         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
12291         * lib/wcsrtombs.c: Include it.
12292         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
12293
12294         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
12295         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
12296         * lib/mbsnrtowcs.c: Include it.
12297         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
12298
12299         mbsrtowcs: Prepare for new module mbsrtowwcs.
12300         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
12301         * lib/mbsrtowcs.c: Include it.
12302         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
12303
12304 2011-02-04  Bruno Haible  <bruno@clisp.org>
12305
12306         vasnprintf: Reduce use of malloc for small format strings.
12307         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12308         (arguments): Add room for the first 7 arguments.
12309         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
12310         (char_directives, u8_directives, u16_directives, u32_directives): Add
12311         room for the first 7 directives.
12312         * lib/printf-parse.c: Include <string.h>.
12313         (PRINTF_PARSE): Change memory handling code so that it uses the first
12314         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
12315         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
12316         Reported by Pádraig Brady <P@draigbrady.com>.
12317
12318 2011-01-31  Eric Blake  <eblake@redhat.com>
12319
12320         dup2: work around Haiku bug
12321         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
12322         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
12323         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12324         * tests/test-dup2.c (main): Enhance test.
12325
12326 2011-01-31  Simon Josefsson  <simon@josefsson.org>
12327
12328         doc: off_t is not available in eglibc 2.11.2 stdio.h.
12329         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
12330         declared by eglibc 2.11.2.
12331         * lib/stdio.in.h: Likewise.
12332
12333 2011-01-31  Eric Blake  <eblake@redhat.com>
12334
12335         ignore-value: add missing test dependency
12336         * tests/test-ignore-value.c: Revert previous change; stdio.h
12337         provides off_t.
12338         * modules/ignore-value-tests (Depends-on): Add missing dependency.
12339
12340 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
12341
12342         mktime: clarify long_int width checking
12343         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
12344         the top level, to make it clearer that the assumption about
12345         long_int width is being checked.  See
12346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
12347
12348 2011-01-30  Simon Josefsson  <simon@josefsson.org>
12349
12350         ignore-value: Fix self-test.
12351         * tests/test-ignore-value.c: Include sys/types.h for off_t.
12352
12353 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12354
12355         TYPE_MAXIMUM: avoid theoretically undefined behavior
12356         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
12357         negative number, which the C Standard says has undefined behavior.
12358         In practice this is not a problem, but might as well do it by the book.
12359         Reported by Rich Felker and Eric Blake; see
12360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
12361         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
12362         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12364         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
12365         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12366         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
12367
12368         mktime: #undef mktime before #defining it
12369         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
12370
12371         mktime: systematically normalize tm_isdst comparisons
12372         * lib/mktime.c (isdst_differ): New function.
12373         (__mktime_internal): Use it systematically for all isdst comparisons.
12374         This completes the fix for libc BZ #6723, and removes the need for
12375         normalizing tm_isdst.  See
12376         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
12377         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
12378
12379         mktime: fix some integer overflow issues and sidestep the rest
12380
12381         This was prompted by a bug report by Benjamin Lindner for MinGW
12382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
12383         His bug is due to signed integer overflow (0 - INT_MIN), and I
12384         I scanned through mktime.c looking for other integer overflow
12385         problems, fixing all the bugs I found.
12386
12387         Although the C Standard says the resulting code is still not safe
12388         in the presence of integer overflow, in practice it should be good
12389         enough for all real-world two's-complement implementations, except
12390         for debugging environments that deliberately trap on integer
12391         overflow (e.g., gcc -ftrapv).
12392
12393         * lib/mktime.c (WRAPV): New macro.
12394         (SHR): Also check that long_int and time_t shift right in the
12395         usual way, before using the fast-but-unportable method.
12396         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
12397         used.  The code already assumed two's complement, so there's
12398         no need to test for alternatives.  All uses removed.
12399         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
12400         the C standard.  Problem reported by Rich Felker in
12401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
12402         (twos_complement_arithmetic): Also check long_int and time_t.
12403         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
12404         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
12405         (__mktime_internal): Avoid integer overflow with unary subtraction
12406         in two instances where -1 - X is an adequate replacement for -X,
12407         since the calculations are approximate.
12408
12409 2011-01-29  Eric Blake  <eblake@redhat.com>
12410
12411         mktime: avoid infinite loop
12412         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
12413         type; behavior is still undefined but portable to all known targets.
12414         Reported by Rich Felker.
12415
12416 2011-01-29  Simon Josefsson  <simon@josefsson.org>
12417
12418         rename, unlink, same-inode: Relicense.
12419         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
12420         * modules/unlink (License): Likewise.
12421         * modules/same-inode (License): Likewise.
12422
12423 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12424
12425         mktime: avoid problems on NetBSD 5 / i386
12426         * lib/mktime.c (long_int): New type.  This works around a problem
12427         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
12428         but time_t is 64 bits, and where I expect the existing code is
12429         wrong in some cases.
12430         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
12431         (ydhms_diff): Bring back the compile-time check for wide-enough
12432         year and yday.
12433
12434         mktime: fix misspelling in comment
12435         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
12436         This merges all recent glibc changes of importance.
12437
12438 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12439
12440         move-if-change: cope with concurrent mv of identical file.
12441         * build-aux/move-if-change (CMPPROG): Accept environment
12442         variable as an override for `cmp'.
12443         (usage): Document CMPPROG.
12444         Adjust comparison to drop stdout.  Cope with failure of mv if
12445         the target file exists and is identical to the source, for
12446         parallel builds.
12447         Report from H.J. Lu against binutils in PR binutils/12283.
12448
12449 2011-01-28  Bruce Korb  <bkorb@gnu.org>
12450
12451         * users.txt: Mention sharutils.
12452
12453 2011-01-28  Simon Josefsson  <simon@josefsson.org>
12454
12455         * users.txt: Mention OATH Toolkit.
12456
12457 2011-01-27  Bruno Haible  <bruno@clisp.org>
12458
12459         Prepare for supporting FreeBSD 10.
12460         * build-aux/config.libpath: Remove handling of freebsd1*.
12461
12462 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
12463
12464         Prepare for supporting FreeBSD 10.
12465         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
12466         match FreeBSD 10.0.
12467
12468 2011-01-27  Bruno Haible  <bruno@clisp.org>
12469
12470         vma-iter, get-rusage-as: Add OpenBSD support.
12471         * modules/vma-iter (configure.ac): Test for mquery.
12472         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
12473         * lib/vma-iter.c: Include <sys/mman.h>.
12474         (vma_iterate): Add an implementation based on mquery().
12475         * lib/resource-ext.h (get_rusage_as): Update comments.
12476         * lib/get-rusage-as.c: Likewise.
12477         * lib/get-rusage-data.c: Likewise.
12478
12479 2011-01-26  Karl Berry  <karl@gnu.org>
12480
12481         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
12482         variables to make it easier to override the makeinfo program used.
12483
12484 2011-01-26  Eric Blake  <eblake@redhat.com>
12485
12486         fcntl: work around Haiku F_DUPFD bugs
12487         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
12488         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
12489         cloexec bit on duplication.
12490         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
12491
12492 2011-01-26  Bruno Haible  <bruno@clisp.org>
12493
12494         Enable memory leak tests on AIX.
12495         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
12496         * tests/test-fprintf-posix3.c (main): Likewise.
12497
12498 2011-01-26  Bruno Haible  <bruno@clisp.org>
12499
12500         Tests for module 'get-rusage-data'.
12501         * modules/get-rusage-data-tests: New file.
12502         * tests/test-get-rusage-data.c: New file.
12503
12504         New module 'get-rusage-data'.
12505         * lib/resource-ext.h (get_rusage_data): New declaration.
12506         * lib/get-rusage-data.c: New file.
12507         * modules/get-rusage-data: New file.
12508
12509 2011-01-25  Bruno Haible  <bruno@clisp.org>
12510
12511         get-rusage-as: Allow for easier testing.
12512         * lib/resource-ext.h (get_rusage_as): Add comment.
12513         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12514         (main): New function for interactive testing.
12515
12516 2011-01-25  Bruno Haible  <bruno@clisp.org>
12517
12518         vma-iter: Treat Haiku like BeOS.
12519         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12520         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12521
12522 2011-01-25  Eric Blake  <eblake@redhat.com>
12523
12524         c-stack: fix regression on cygwin when libsigsegv is present
12525         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12526
12527 2011-01-24  Bruno Haible  <bruno@clisp.org>
12528
12529         vma-iter: Avoid empty intervals.
12530         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12531         on an empty interval.
12532
12533 2011-01-24  Jim Meyering  <meyering@redhat.com>
12534
12535         u64: remove unnecessary #include
12536         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12537
12538 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12539
12540         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12541         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12542
12543 2011-01-23  Bruno Haible  <bruno@clisp.org>
12544
12545         New module 'vma-iter'.
12546         * lib/vma-iter.h: New file.
12547         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12548         * modules/vma-iter: New file.
12549         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12550         for get_rusage_as_via_iterator.
12551         (vma_iterate_callback): New function.
12552         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12553         * modules/get-rusage-as (Depends-on): Add vma-iter.
12554
12555 2011-01-23  Bruno Haible  <bruno@clisp.org>
12556
12557         uninorm: Tweak includes.
12558         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12559         Reported by Jim Meyering.
12560
12561 2011-01-23  Bruno Haible  <bruno@clisp.org>
12562
12563         get-rusage-as: Improve on NetBSD.
12564         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12565         /proc, like on FreeBSD.
12566
12567 2011-01-23  Jim Meyering  <meyering@redhat.com>
12568
12569         xreadlink.h: remove unnecessary #include
12570         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12571
12572         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12573         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12574
12575 2011-01-23  Bruno Haible  <bruno@clisp.org>
12576
12577         get-rusage-as: Fix bug.
12578         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12579         original limit when aborting the first loop.
12580
12581 2011-01-23  Bruno Haible  <bruno@clisp.org>
12582
12583         wctype: Ensure valid C syntax.
12584         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12585         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12586
12587 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12588
12589         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12591         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12592         as they are needed only for configure's test case.
12593         This removes two unnecessary symbols from config.h.
12594
12595         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12596         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12598         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12599         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12600         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12601         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12602         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12603         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12604         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12605         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12606         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12607         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12608         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12609         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12610         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12611         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12612         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12613
12614 2011-01-21  Eric Blake  <eblake@redhat.com>
12615
12616         maintainer-makefile: work with older git for submodule check
12617         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12618         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12619         Reported by Matthias Bolte.
12620
12621         bootstrap: minor portability fixes
12622         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12623         (usage): Omit leading capital and trailing . on help phrases, per
12624         GNU Coding Standards.
12625         (check_versions, top level): Prefix messages with script name.
12626
12627 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12628
12629         bootstrap: support --no-git option
12630         * build-aux/bootstrap: Add --no-git option, to be used when
12631         --gnulib-srcdir points to the exact desired checkout.
12632
12633 2011-01-21  Eric Blake  <eblake@redhat.com>
12634
12635         strerror_r-posix: work with glibc 2.13
12636         * lib/strerror_r.c (strerror_r): Fix return type.
12637
12638 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12639             Bruno Haible  <bruno@clisp.org>
12640
12641         uN_strstr: New unit tests.
12642         * modules/unistr/u8-strstr-tests: New file.
12643         * modules/unistr/u16-strstr-tests: New file.
12644         * modules/unistr/u32-strstr-tests: New file.
12645         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12646         * tests/unistr/test-u8-strstr.c: New file.
12647         * tests/unistr/test-u16-strstr.c: New file.
12648         * tests/unistr/test-u32-strstr.c: New file.
12649
12650 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12651             Bruno Haible  <bruno@clisp.org>
12652
12653         Make uN_strstr functions O(n) worst-case.
12654         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12655         16-bit and 32-bit unit cases, use the unibyte algorithm from
12656         lib/mbsstr.c.
12657         * lib/unistr/u8-strstr.c: Include <string.h>.
12658         (UNIT_IS_UINT8_T): New macro.
12659         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12660         (U_STRLEN, U_STRNLEN): New macros.
12661         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12662         (U_STRLEN, U_STRNLEN): New macros.
12663         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12664         (configure.ac): Update required libunistring version.
12665         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12666         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12667         malloca.
12668         (configure.ac): Update required libunistring version.
12669         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12670         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12671         malloca.
12672         (configure.ac): Update required libunistring version.
12673
12674 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12675             Bruno Haible  <bruno@clisp.org>
12676
12677         Prepare for faster uN_strstr functions.
12678         * lib/str-kmp.h: Support definable UNITs.
12679         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12680         needle_len argument.
12681         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12682         * lib/mbscasestr.c (mbscasestr): Likewise.
12683
12684 2011-01-21  Pádraig Brady <P@draigBrady.com>
12685
12686         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12687         * tests/test-malloca.c (main): Unset the environment variable
12688         to greatly speed up the test.
12689         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12690         * modules/malloca-tests: Depend on unsetenv.
12691
12692 2011-01-21  Pádraig Brady <P@draigBrady.com>
12693
12694         ignore-value: remove stdint dependency
12695         * lib/ignore-value.h: Remove <stdint.h>
12696         * modules/ignore-value: Remove stdint dependency.
12697
12698 2011-01-21  Jim Meyering  <meyering@redhat.com>
12699
12700         maint.mk: adjust variable name to be consistent with other gl_ vars
12701         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12702         to be lower case.
12703
12704 2011-01-20  Jim Meyering  <meyering@redhat.com>
12705
12706         maint.mk: make "check" depend on public-submodule-commit by default
12707         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12708
12709 2011-01-20  Bruno Haible  <bruno@clisp.org>
12710
12711         mbfile, mbiter: Complete change from 2008-12-21.
12712         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12713         * m4/mbiter.m4 (gl_MBITER): Likewise.
12714
12715 2011-01-20  Jim Meyering  <meyering@redhat.com>
12716
12717         init.sh: insert space between each function name and "()"
12718         * tests/init.sh: Make it a little easier to see that a function's
12719         name is "warn_", and not "warn" when looking at the first part of
12720         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12721
12722 2011-01-20  Jim Meyering  <meyering@redhat.com>
12723
12724         mountlist: clean up code formatting
12725         * lib/mountlist.c (read_file_system_list): Split a long line,
12726         correct bracing style, use NULL in place of "(struct statfs *)0",
12727         don't parenthesize return value, add spaces around "=" and after
12728         ";-in-for-stmt".
12729
12730 2011-01-14  Markus Duft <mduft@gentoo.org>
12731
12732         mountlist: add support for Interix
12733         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12734         Apply statvfs to all entries of /dev/fs.
12735         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12736         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12737
12738 2011-01-20  Jim Meyering  <meyering@redhat.com>
12739
12740         maint.mk: improve the public-submodule-commit rule
12741         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12742         to suppress printing of its commands... unless V=1.
12743         Add git submodule's --quiet option to suppress printing of e.g.,
12744         "Entering gnulib" output.
12745         "cd" into $(srcdir) before running git submodule.
12746
12747 2011-01-20  Bruno Haible  <bruno@clisp.org>
12748
12749         include_next: Fix bug introduced on 2011-01-18.
12750         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12751         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12752         ac_cv_header_... variable if the second argument is not 'check'.
12753         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12754         gl_NEXT_HEADERS_INTERNAL.
12755
12756 2011-01-20  Bruno Haible  <bruno@clisp.org>
12757
12758         Allow the user to avoid the GNULIB_TEST_* macros.
12759         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12760         Suggested by Paul Eggert.
12761
12762 2011-01-14  Jim Meyering  <meyering@redhat.com>
12763
12764         bootstrap: avoid failure when there is no .gitmodules file
12765         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12766         has been assigned to, even when its value is the empty string.
12767         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12768         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12769         Reported by John W. Eaton <jwe@gnu.org>.
12770
12771 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12772
12773         assume <ctype.h>, ..., <time.h> exist
12774         For years gnulib has been assuming the existence of the headers
12775         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12776         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12777         them, since they don't appear to be needed.
12778         * README (Portability guidelines): Document this.
12779         * lib/flock.c: Assume <fcntl.h> exists.
12780         * lib/regex_internal.h: Assume <locale.h> exists.
12781         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12782         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12783         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12784         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12785         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12786         * m4/regex.m4 (gl_REGEX): Likewise.
12787         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12788         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12789         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12790         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12791         * tests/test-argp.c: Likewise.
12792         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12793
12794         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12795         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12796         AA_APPLE_UNIVERSAL_BUILD.  See
12797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12798         * NEWS: Document this.
12799
12800 2011-01-19  Eric Blake  <eblake@redhat.com>
12801
12802         c-stack: assume stack overflow if SA_SIGINFO unsupported
12803         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12804         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12805         sigaction will work.
12806         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12807         behavior match Linux.
12808         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12809
12810         stdbool-tests: accomodate Haiku
12811         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12812
12813         binary-io: fix O_TEXT on Haiku
12814         * modules/binary-io (Depends-on): Add fcntl-h.
12815         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12816         than blindly undefining O_TEXT.
12817         Reported by Scott McCreary.
12818
12819 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12820
12821         include_next: do not check for standard headers like stddef.h
12822
12823         I found this problem when modifying Emacs to use gnulib.
12824         I noticed that it added HAVE_STDDEF_H to config.h, even though
12825         gnulib always assumes <stddef.h> exists as per README and this
12826         symbol is unnecessary.
12827         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12828         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12829         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12830         faster for headers like stddef.h that are known to exist.
12831         (gl_CHECK_NEXT_HEADERS): Use it.
12832         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12833         rather than gl_CHECK_NEXT_HEADERS.
12834         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12835         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12836
12837 2011-01-18  Eric Blake  <eblake@redhat.com>
12838
12839         ansi-c++-opt: skip C++ dependency style if C++ is unused
12840         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12841         tests when we know C++ compilation is not desired.
12842         Reported by Scott McCreary.
12843
12844 2011-01-18  Bruno Haible  <bruno@clisp.org>
12845
12846         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12847         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12848         (main): Perform test also when getrlimit and setrlimit don't exist or
12849         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12850         limiting the address space size using setrlimit, compare the address
12851         space size before and after the the test.
12852         * tests/test-dprintf-posix2.c: Likewise.
12853         * tests/test-fprintf-posix3.sh: Update skip messages.
12854         * tests/test-dprintf-posix2.sh: Likewise.
12855         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12856         * modules/dprintf-posix-tests (Depends-on): Likewise.
12857         Reported by Bruce Korb <bkorb@gnu.org> and
12858         Gary V. Vaughan <gary@gnu.org>.
12859
12860 2011-01-18  Bruno Haible  <bruno@clisp.org>
12861
12862         get-rusage-as: Improvement for Cygwin.
12863         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12864         areas that are merely reserved.
12865
12866 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12867
12868         strftime: remove dependencies on multibyte modules
12869
12870         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12871         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12872         only if __osf__ is defined, and I suspect OSF doesn't need these
12873         other modules.  If my guess is wrong, we'll need to come up with a
12874         variant of strftime that doesn't need the multibyte modules.
12875
12876         I discovered this problem when attempting modify Emacs to use the
12877         strftime module.  With the previous gnulib, this caused Emacs to
12878         need 31 new files, ranging from lib/config.charset to
12879         m4/wint_t.m4.  This was overkill and I expect would be offputting
12880         to the Emacs maintainers.  After this change, only 6 new files are
12881         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12882         stdbool.m4, and tm_gmtoff.m4.
12883
12884         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12885         Suggested by Bruno Haible in
12886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12887         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12888         and do not check for wchar.h.
12889         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12890         (Depends-on): Remove mbrlen, mbsinit, wchar.
12891
12892 2011-01-18  Bruno Haible  <bruno@clisp.org>
12893
12894         Tests for module 'get-rusage-as'.
12895         * modules/get-rusage-as-tests: New file.
12896         * tests/test-get-rusage-as.c: New file.
12897
12898         New module 'get-rusage-as'.
12899         * modules/get-rusage-as: New file.
12900         * lib/resource-ext.h: New file.
12901         * lib/get-rusage-as.c: New file.
12902
12903 2011-01-17  Eric Blake  <eblake@redhat.com>
12904
12905         sigaction: relax license from LGPLv3+ to LGPLv2+
12906         * modules/sigaction (License): Relax to LGPLv2+.
12907
12908 2011-01-14  Bruno Haible  <bruno@clisp.org>
12909
12910         filemode: Make function declarations usable in C++ mode.
12911         * lib/filemode.h: Enclose function declarations in extern "C" block.
12912         Reported by John W. Eaton <jwe@gnu.org>.
12913
12914 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12915
12916         save-cwd: no longer include "xgetcwd.h"
12917         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12918         This avoids a compilation failure in projects that use save-cwd
12919         without also using the xgetcwd module.
12920
12921 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12922
12923         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12924         This is so that a program like Emacs, which needs only dtoastr,
12925         does not have to bother with distributing and compiling ftoastr
12926         and ldtoastr.
12927         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12928         * modules/dtoastr, modules/ldtoastr: New files.
12929         * modules/ftoastr: Now works just for 'float'.
12930         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12931         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12932         dtoastr.c, ldtoastr.c.
12933
12934 2011-01-11  Jim Meyering  <meyering@redhat.com>
12935
12936         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12937         There is no need to work around the lack of the fchdir function,
12938         since gnulib can now provide a replacement when required.
12939         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12940         * modules/save-cwd (Depends-on): Add fchdir.
12941
12942 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12943
12944         openat, save-cwd: avoid xmalloc
12945
12946         This removes a direct (but undocumented) dependency of openat on
12947         xalloc, along with an indirect dependency via save-cwd.  It also
12948         removes a dependency of save-cwd on xgetcwd, and thereby
12949         indirectly on xalloc.  This change causes the openat substitute
12950         to fall back on save_cwd when memory is tight, and for save_cwd to
12951         fail instead of dying when memory is tight, but that's good enough.
12952         Problem and initial idea for fix reported by Bastien Roucaries in
12953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12954
12955         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12956         xalloc.h (for xmalloc).
12957         (openat_proc_name): Use malloc, not xmalloc.
12958         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12959         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12960
12961         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12962         This avoids heap allocation for file names whose lengths are in
12963         the range 512..1023, with the upper bound increasing to at most
12964         4031 depending on the platform's PATH_MAX.  (We do not want
12965         pathmax.h here as it might supply a non-constant PATH_MAX.)
12966         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12967         Perhaps they should be moved to malloca.h?
12968         (OPENAT_BUFFER_SIZE): Use them.
12969
12970 2011-01-10  Bruno Haible  <bruno@clisp.org>
12971
12972         doc: Update users.txt.
12973         * users.txt: Add recutils.
12974
12975 2011-01-09  Karl Berry  <karl@gnu.org>
12976
12977         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12978
12979         * doc/configmake.texi: New file.
12980         * doc/gnulib.texi: Include it.
12981         * modules/configmake: Move documentation from here.
12982
12983 2011-01-09  Bruno Haible  <bruno@clisp.org>
12984
12985         Update to Unicode 6.0.0.
12986         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12987         (get_lbp): Update for Unicode 6.0.0.
12988         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12989         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12990         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12991         U+11001, U+11038..U+11046. Remove U+06DE.
12992         (uc_width): Fix bounds of planes.
12993         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12994         lib/uniwidth/width.c.
12995         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12996         trailing whitespace removed.
12997         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12998         without comments, but with the original copyright notice.
12999         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
13000         * lib/unicase/ignorable.h: Likewise.
13001         * lib/unicase/tocasefold.h: Likewise.
13002         * lib/unicase/tolower.h: Likewise.
13003         * lib/unicase/totitle.h: Likewise.
13004         * lib/unicase/toupper.h: Likewise.
13005         * lib/unictype/bidi_of.h: Likewise.
13006         * lib/unictype/blocks.h: Likewise.
13007         * lib/unictype/categ_C.h: Likewise.
13008         * lib/unictype/categ_Cn.h: Likewise.
13009         * lib/unictype/categ_L.h: Likewise.
13010         * lib/unictype/categ_Ll.h: Likewise.
13011         * lib/unictype/categ_Lm.h: Likewise.
13012         * lib/unictype/categ_Lo.h: Likewise.
13013         * lib/unictype/categ_Lu.h: Likewise.
13014         * lib/unictype/categ_M.h: Likewise.
13015         * lib/unictype/categ_Mc.h: Likewise.
13016         * lib/unictype/categ_Me.h: Likewise.
13017         * lib/unictype/categ_Mn.h: Likewise.
13018         * lib/unictype/categ_N.h: Likewise.
13019         * lib/unictype/categ_Nd.h: Likewise.
13020         * lib/unictype/categ_No.h: Likewise.
13021         * lib/unictype/categ_P.h: Likewise.
13022         * lib/unictype/categ_Po.h: Likewise.
13023         * lib/unictype/categ_S.h: Likewise.
13024         * lib/unictype/categ_Sc.h: Likewise.
13025         * lib/unictype/categ_Sk.h: Likewise.
13026         * lib/unictype/categ_Sm.h: Likewise.
13027         * lib/unictype/categ_So.h: Likewise.
13028         * lib/unictype/categ_of.h: Likewise.
13029         * lib/unictype/combining.h: Likewise.
13030         * lib/unictype/ctype_alnum.h: Likewise.
13031         * lib/unictype/ctype_alpha.h: Likewise.
13032         * lib/unictype/ctype_graph.h: Likewise.
13033         * lib/unictype/ctype_lower.h: Likewise.
13034         * lib/unictype/ctype_print.h: Likewise.
13035         * lib/unictype/ctype_punct.h: Likewise.
13036         * lib/unictype/ctype_upper.h: Likewise.
13037         * lib/unictype/decdigit.h: Likewise.
13038         * lib/unictype/digit.h: Likewise.
13039         * lib/unictype/numeric.h: Likewise.
13040         * lib/unictype/pr_alphabetic.h: Likewise.
13041         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13042         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13043         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13044         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13045         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13046         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13047         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13048         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13049         * lib/unictype/pr_case_ignorable.h: Likewise.
13050         * lib/unictype/pr_cased.h: Likewise.
13051         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
13052         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
13053         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
13054         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
13055         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
13056         * lib/unictype/pr_combining.h: Likewise.
13057         * lib/unictype/pr_composite.h: Likewise.
13058         * lib/unictype/pr_currency_symbol.h: Likewise.
13059         * lib/unictype/pr_decimal_digit.h: Likewise.
13060         * lib/unictype/pr_deprecated.h: Likewise.
13061         * lib/unictype/pr_format_control.h: Likewise.
13062         * lib/unictype/pr_grapheme_base.h: Likewise.
13063         * lib/unictype/pr_grapheme_extend.h: Likewise.
13064         * lib/unictype/pr_grapheme_link.h: Likewise.
13065         * lib/unictype/pr_id_continue.h: Likewise.
13066         * lib/unictype/pr_id_start.h: Likewise.
13067         * lib/unictype/pr_ideographic.h: Likewise.
13068         * lib/unictype/pr_lowercase.h: Likewise.
13069         * lib/unictype/pr_math.h: Likewise.
13070         * lib/unictype/pr_numeric.h: Likewise.
13071         * lib/unictype/pr_other_alphabetic.h: Likewise.
13072         * lib/unictype/pr_other_id_continue.h: Likewise.
13073         * lib/unictype/pr_other_math.h: Likewise.
13074         * lib/unictype/pr_punctuation.h: Likewise.
13075         * lib/unictype/pr_sentence_terminal.h: Likewise.
13076         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13077         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13078         * lib/unictype/pr_unified_ideograph.h: Likewise.
13079         * lib/unictype/pr_uppercase.h: Likewise.
13080         * lib/unictype/pr_xid_continue.h: Likewise.
13081         * lib/unictype/pr_xid_start.h: Likewise.
13082         * lib/unictype/scripts.h: Likewise.
13083         * lib/unictype/scripts_byname.gperf: Likewise.
13084         * lib/unictype/sy_java_ident.h: Likewise.
13085         * lib/unigbrk/gbrkprop.h: Likewise.
13086         * lib/unilbrk/lbrkprop1.h: Likewise.
13087         * lib/unilbrk/lbrkprop2.h: Likewise.
13088         * lib/uninorm/decomposition-table2.h: Likewise.
13089         * lib/uniwbrk/wbrkprop.h: Likewise.
13090         * tests/unicase/test-cased.c: Likewise.
13091         * tests/unicase/test-ignorable.c: Likewise.
13092         * tests/unicase/test-uc_tolower.c: Likewise.
13093         * tests/unicase/test-uc_totitle.c: Likewise.
13094         * tests/unicase/test-uc_toupper.c: Likewise.
13095         * tests/unictype/test-categ_C.c: Likewise.
13096         * tests/unictype/test-categ_Cn.c: Likewise.
13097         * tests/unictype/test-categ_L.c: Likewise.
13098         * tests/unictype/test-categ_Ll.c: Likewise.
13099         * tests/unictype/test-categ_Lm.c: Likewise.
13100         * tests/unictype/test-categ_Lo.c: Likewise.
13101         * tests/unictype/test-categ_Lu.c: Likewise.
13102         * tests/unictype/test-categ_M.c: Likewise.
13103         * tests/unictype/test-categ_Mc.c: Likewise.
13104         * tests/unictype/test-categ_Me.c: Likewise.
13105         * tests/unictype/test-categ_Mn.c: Likewise.
13106         * tests/unictype/test-categ_N.c: Likewise.
13107         * tests/unictype/test-categ_Nd.c: Likewise.
13108         * tests/unictype/test-categ_No.c: Likewise.
13109         * tests/unictype/test-categ_P.c: Likewise.
13110         * tests/unictype/test-categ_Po.c: Likewise.
13111         * tests/unictype/test-categ_S.c: Likewise.
13112         * tests/unictype/test-categ_Sc.c: Likewise.
13113         * tests/unictype/test-categ_Sk.c: Likewise.
13114         * tests/unictype/test-categ_Sm.c: Likewise.
13115         * tests/unictype/test-categ_So.c: Likewise.
13116         * tests/unictype/test-ctype_alnum.c: Likewise.
13117         * tests/unictype/test-ctype_alpha.c: Likewise.
13118         * tests/unictype/test-ctype_graph.c: Likewise.
13119         * tests/unictype/test-ctype_lower.c: Likewise.
13120         * tests/unictype/test-ctype_print.c: Likewise.
13121         * tests/unictype/test-ctype_punct.c: Likewise.
13122         * tests/unictype/test-ctype_upper.c: Likewise.
13123         * tests/unictype/test-decdigit.h: Likewise.
13124         * tests/unictype/test-digit.h: Likewise.
13125         * tests/unictype/test-numeric.h: Likewise.
13126         * tests/unictype/test-pr_alphabetic.c: Likewise.
13127         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13128         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
13129         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
13130         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13131         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13132         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13133         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13134         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13135         * tests/unictype/test-pr_case_ignorable.c: Likewise.
13136         * tests/unictype/test-pr_cased.c: Likewise.
13137         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
13138         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
13139         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
13140         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
13141         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
13142         * tests/unictype/test-pr_combining.c: Likewise.
13143         * tests/unictype/test-pr_composite.c: Likewise.
13144         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13145         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13146         * tests/unictype/test-pr_deprecated.c: Likewise.
13147         * tests/unictype/test-pr_format_control.c: Likewise.
13148         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13149         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13150         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13151         * tests/unictype/test-pr_id_continue.c: Likewise.
13152         * tests/unictype/test-pr_id_start.c: Likewise.
13153         * tests/unictype/test-pr_ideographic.c: Likewise.
13154         * tests/unictype/test-pr_lowercase.c: Likewise.
13155         * tests/unictype/test-pr_math.c: Likewise.
13156         * tests/unictype/test-pr_numeric.c: Likewise.
13157         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13158         * tests/unictype/test-pr_other_id_continue.c: Likewise.
13159         * tests/unictype/test-pr_other_math.c: Likewise.
13160         * tests/unictype/test-pr_punctuation.c: Likewise.
13161         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13162         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13163         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13164         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13165         * tests/unictype/test-pr_uppercase.c: Likewise.
13166         * tests/unictype/test-pr_xid_continue.c: Likewise.
13167         * tests/unictype/test-pr_xid_start.c: Likewise.
13168         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13169         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13170         changes.
13171         * lib/unictype/categ_Cc.h: Likewise.
13172         * lib/unictype/categ_Cf.h: Likewise.
13173         * lib/unictype/categ_Co.h: Likewise.
13174         * lib/unictype/categ_Cs.h: Likewise.
13175         * lib/unictype/categ_Lt.h: Likewise.
13176         * lib/unictype/categ_Nl.h: Likewise.
13177         * lib/unictype/categ_Pc.h: Likewise.
13178         * lib/unictype/categ_Pd.h: Likewise.
13179         * lib/unictype/categ_Pe.h: Likewise.
13180         * lib/unictype/categ_Pf.h: Likewise.
13181         * lib/unictype/categ_Pi.h: Likewise.
13182         * lib/unictype/categ_Ps.h: Likewise.
13183         * lib/unictype/categ_Z.h: Likewise.
13184         * lib/unictype/categ_Zl.h: Likewise.
13185         * lib/unictype/categ_Zp.h: Likewise.
13186         * lib/unictype/categ_Zs.h: Likewise.
13187         * lib/unictype/ctype_blank.h: Likewise.
13188         * lib/unictype/ctype_cntrl.h: Likewise.
13189         * lib/unictype/ctype_digit.h: Likewise.
13190         * lib/unictype/ctype_space.h: Likewise.
13191         * lib/unictype/ctype_xdigit.h: Likewise.
13192         * lib/unictype/mirror.h: Likewise.
13193         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13194         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13195         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13196         * lib/unictype/pr_bidi_control.h: Likewise.
13197         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13198         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13199         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13200         * lib/unictype/pr_bidi_pdf.h: Likewise.
13201         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13202         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13203         * lib/unictype/pr_dash.h: Likewise.
13204         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13205         * lib/unictype/pr_diacritic.h: Likewise.
13206         * lib/unictype/pr_extender.h: Likewise.
13207         * lib/unictype/pr_hex_digit.h: Likewise.
13208         * lib/unictype/pr_hyphen.h: Likewise.
13209         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13210         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13211         * lib/unictype/pr_ignorable_control.h: Likewise.
13212         * lib/unictype/pr_iso_control.h: Likewise.
13213         * lib/unictype/pr_join_control.h: Likewise.
13214         * lib/unictype/pr_left_of_pair.h: Likewise.
13215         * lib/unictype/pr_line_separator.h: Likewise.
13216         * lib/unictype/pr_logical_order_exception.h: Likewise.
13217         * lib/unictype/pr_non_break.h: Likewise.
13218         * lib/unictype/pr_not_a_character.h: Likewise.
13219         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13220         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13221         * lib/unictype/pr_other_id_start.h: Likewise.
13222         * lib/unictype/pr_other_lowercase.h: Likewise.
13223         * lib/unictype/pr_other_uppercase.h: Likewise.
13224         * lib/unictype/pr_paired_punctuation.h: Likewise.
13225         * lib/unictype/pr_paragraph_separator.h: Likewise.
13226         * lib/unictype/pr_pattern_syntax.h: Likewise.
13227         * lib/unictype/pr_pattern_white_space.h: Likewise.
13228         * lib/unictype/pr_private_use.h: Likewise.
13229         * lib/unictype/pr_quotation_mark.h: Likewise.
13230         * lib/unictype/pr_radical.h: Likewise.
13231         * lib/unictype/pr_soft_dotted.h: Likewise.
13232         * lib/unictype/pr_space.h: Likewise.
13233         * lib/unictype/pr_titlecase.h: Likewise.
13234         * lib/unictype/pr_variation_selector.h: Likewise.
13235         * lib/unictype/pr_white_space.h: Likewise.
13236         * lib/unictype/pr_zero_width.h: Likewise.
13237         * lib/unictype/sy_c_ident.h: Likewise.
13238         * lib/unictype/sy_c_whitespace.h: Likewise.
13239         * lib/unictype/sy_java_whitespace.h: Likewise.
13240         * lib/uninorm/composition-table.gperf: Likewise.
13241         * lib/uninorm/decomposition-table1.h: Likewise.
13242         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
13243         LB8.
13244         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13245         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13246         * modules/unictype/*: Bump version number of expected libunistring
13247         version.
13248
13249 2011-01-09  Bruno Haible  <bruno@clisp.org>
13250
13251         Update to Unicode 5.2.0.
13252         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
13253         trailing whitespace removed.
13254
13255 2011-01-09  Bruno Haible  <bruno@clisp.org>
13256
13257         New Unicode character properties, from Unicode 5.2.0.
13258         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13259         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
13260         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
13261         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
13262         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
13263         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
13264         uc_is_property_cased, uc_is_property_case_ignorable,
13265         uc_is_property_changes_when_lowercased,
13266         uc_is_property_changes_when_uppercased,
13267         uc_is_property_changes_when_titlecased,
13268         uc_is_property_changes_when_casefolded,
13269         uc_is_property_changes_when_casemapped): New declarations.
13270         * lib/unictype/pr_byname.gperf: Add the new properties.
13271         * modules/unictype/property-byname (Depends-on): Depend on the new
13272         properties modules.
13273         * modules/unictype/property-all (Depends-on): Likewise.
13274         * MODULES.html.sh (Unicode string functions): Add
13275         unictype/property-case-ignorable, unictype/property-cased,
13276         unictype/property-changes-when-casefolded,
13277         unictype/property-changes-when-casemapped,
13278         unictype/property-changes-when-lowercased,
13279         unictype/property-changes-when-titlecased,
13280         unictype/property-changes-when-uppercased.
13281
13282         New module 'unictype/property-changes-when-casemapped'.
13283         * modules/unictype/property-changes-when-casemapped: New file.
13284         * lib/unictype/pr_changes_when_casemapped.c: New file.
13285         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
13286         generated by gen-uni-tables.
13287         * modules/unictype/property-changes-when-casemapped-tests: New file.
13288         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
13289         automatically generated by gen-uni-tables.
13290
13291         New module 'unictype/property-changes-when-casefolded'.
13292         * modules/unictype/property-changes-when-casefolded: New file.
13293         * lib/unictype/pr_changes_when_casefolded.c: New file.
13294         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
13295         generated by gen-uni-tables.
13296         * modules/unictype/property-changes-when-casefolded-tests: New file.
13297         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
13298         automatically generated by gen-uni-tables.
13299
13300         New module 'unictype/property-changes-when-titlecased'.
13301         * modules/unictype/property-changes-when-titlecased: New file.
13302         * lib/unictype/pr_changes_when_titlecased.c: New file.
13303         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
13304         generated by gen-uni-tables.
13305         * modules/unictype/property-changes-when-titlecased-tests: New file.
13306         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
13307         automatically generated by gen-uni-tables.
13308
13309         New module 'unictype/property-changes-when-uppercased'.
13310         * modules/unictype/property-changes-when-uppercased: New file.
13311         * lib/unictype/pr_changes_when_uppercased.c: New file.
13312         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
13313         generated by gen-uni-tables.
13314         * modules/unictype/property-changes-when-uppercased-tests: New file.
13315         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
13316         automatically generated by gen-uni-tables.
13317
13318         New module 'unictype/property-changes-when-lowercased'.
13319         * modules/unictype/property-changes-when-lowercased: New file.
13320         * lib/unictype/pr_changes_when_lowercased.c: New file.
13321         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
13322         generated by gen-uni-tables.
13323         * modules/unictype/property-changes-when-lowercased-tests: New file.
13324         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
13325         automatically generated by gen-uni-tables.
13326
13327         New module 'unictype/property-case-ignorable'.
13328         * modules/unictype/property-case-ignorable: New file.
13329         * lib/unictype/pr_case_ignorable.c: New file.
13330         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
13331         by gen-uni-tables.
13332         * modules/unictype/property-case-ignorable-tests: New file.
13333         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
13334         generated by gen-uni-tables.
13335
13336         New module 'unictype/property-cased'.
13337         * modules/unictype/property-cased: New file.
13338         * lib/unictype/pr_cased.c: New file.
13339         * lib/unictype/pr_cased.h: New file, automatically generated by
13340         gen-uni-tables.
13341         * modules/unictype/property-cased-tests: New file.
13342         * tests/unictype/test-pr_cased.c: New file, automatically generated by
13343         gen-uni-tables.
13344
13345 2011-01-09  Bruno Haible  <bruno@clisp.org>
13346
13347         Update to Unicode 5.2.0.
13348         * lib/gen-uni-tables.c (output_predicate, output_category,
13349         output_combclass, output_bidi_category, output_decimal_digit_test,
13350         output_decimal_digit, output_digit_test, output_digit,
13351         output_numeric_test, output_numeric, output_mirror, output_scripts,
13352         output_scripts_byname, output_blocks, output_ident_category): Fix
13353         comment header.
13354         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
13355         get_wbp.
13356         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
13357         items.
13358         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
13359         Changes_When_Lowercased, Changes_When_Uppercased,
13360         Changes_When_Titlecased, Changes_When_Casefolded,
13361         Changes_When_Casemapped.
13362         (is_property_alphabetic, is_property_default_ignorable_code_point):
13363         Update for Unicode 5.2.0.
13364         (is_property_cased, is_property_case_ignorable,
13365         is_property_changes_when_lowercased,
13366         is_property_changes_when_uppercased,
13367         is_property_changes_when_titlecased,
13368         is_property_changes_when_casefolded,
13369         is_property_changes_when_casemapped): New functions.
13370         (output_properties): Output also the properties cased, case_ignorable,
13371         changes_when_lowercased, changes_when_uppercased,
13372         changes_when_titlecased, changes_when_casefolded,
13373         changes_when_casemapped.
13374         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
13375         Unicode TR#11 revision 17 -> 19.
13376         (LBP_CP): New enumeration value.
13377         (LBP_*): Adjust values accordingly.
13378         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13379         TR#14 revision 22 -> 24.
13380         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
13381         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
13382         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13383         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
13384         is_WBP_MIDLETTER.
13385         (output_composition_tables): Allow for 24 bits instead of 16 bits in
13386         the code1 and code2 of each composition rule.
13387         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
13388         * lib/unicase/ignorable.h: Likewise.
13389         * lib/unicase/tocasefold.h: Likewise.
13390         * lib/unicase/tolower.h: Likewise.
13391         * lib/unicase/totitle.h: Likewise.
13392         * lib/unicase/toupper.h: Likewise.
13393         * lib/unictype/bidi_of.h: Likewise.
13394         * lib/unictype/blocks.h: Likewise.
13395         * lib/unictype/categ_C.h: Likewise.
13396         * lib/unictype/categ_Cf.h: Likewise.
13397         * lib/unictype/categ_Cn.h: Likewise.
13398         * lib/unictype/categ_L.h: Likewise.
13399         * lib/unictype/categ_Ll.h: Likewise.
13400         * lib/unictype/categ_Lm.h: Likewise.
13401         * lib/unictype/categ_Lo.h: Likewise.
13402         * lib/unictype/categ_Lu.h: Likewise.
13403         * lib/unictype/categ_M.h: Likewise.
13404         * lib/unictype/categ_Mc.h: Likewise.
13405         * lib/unictype/categ_Mn.h: Likewise.
13406         * lib/unictype/categ_N.h: Likewise.
13407         * lib/unictype/categ_Nd.h: Likewise.
13408         * lib/unictype/categ_Nl.h: Likewise.
13409         * lib/unictype/categ_No.h: Likewise.
13410         * lib/unictype/categ_P.h: Likewise.
13411         * lib/unictype/categ_Pd.h: Likewise.
13412         * lib/unictype/categ_Po.h: Likewise.
13413         * lib/unictype/categ_S.h: Likewise.
13414         * lib/unictype/categ_Sc.h: Likewise.
13415         * lib/unictype/categ_So.h: Likewise.
13416         * lib/unictype/categ_of.h: Likewise.
13417         * lib/unictype/combining.h: Likewise.
13418         * lib/unictype/ctype_alnum.h: Likewise.
13419         * lib/unictype/ctype_alpha.h: Likewise.
13420         * lib/unictype/ctype_graph.h: Likewise.
13421         * lib/unictype/ctype_lower.h: Likewise.
13422         * lib/unictype/ctype_print.h: Likewise.
13423         * lib/unictype/ctype_punct.h: Likewise.
13424         * lib/unictype/ctype_upper.h: Likewise.
13425         * lib/unictype/decdigit.h: Likewise.
13426         * lib/unictype/digit.h: Likewise.
13427         * lib/unictype/numeric.h: Likewise.
13428         * lib/unictype/pr_alphabetic.h: Likewise.
13429         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13430         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13431         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13432         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13433         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13434         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13435         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13436         * lib/unictype/pr_combining.h: Likewise.
13437         * lib/unictype/pr_composite.h: Likewise.
13438         * lib/unictype/pr_currency_symbol.h: Likewise.
13439         * lib/unictype/pr_dash.h: Likewise.
13440         * lib/unictype/pr_decimal_digit.h: Likewise.
13441         * lib/unictype/pr_deprecated.h: Likewise.
13442         * lib/unictype/pr_diacritic.h: Likewise.
13443         * lib/unictype/pr_extender.h: Likewise.
13444         * lib/unictype/pr_grapheme_base.h: Likewise.
13445         * lib/unictype/pr_grapheme_extend.h: Likewise.
13446         * lib/unictype/pr_grapheme_link.h: Likewise.
13447         * lib/unictype/pr_id_continue.h: Likewise.
13448         * lib/unictype/pr_id_start.h: Likewise.
13449         * lib/unictype/pr_ideographic.h: Likewise.
13450         * lib/unictype/pr_ignorable_control.h: Likewise.
13451         * lib/unictype/pr_logical_order_exception.h: Likewise.
13452         * lib/unictype/pr_lowercase.h: Likewise.
13453         * lib/unictype/pr_numeric.h: Likewise.
13454         * lib/unictype/pr_other_alphabetic.h: Likewise.
13455         * lib/unictype/pr_punctuation.h: Likewise.
13456         * lib/unictype/pr_sentence_terminal.h: Likewise.
13457         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13458         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13459         * lib/unictype/pr_unified_ideograph.h: Likewise.
13460         * lib/unictype/pr_uppercase.h: Likewise.
13461         * lib/unictype/pr_xid_continue.h: Likewise.
13462         * lib/unictype/pr_xid_start.h: Likewise.
13463         * lib/unictype/pr_zero_width.h: Likewise.
13464         * lib/unictype/scripts.h: Likewise.
13465         * lib/unictype/scripts_byname.gperf: Likewise.
13466         * lib/unictype/sy_java_ident.h: Likewise.
13467         * lib/unigbrk/gbrkprop.h: Likewise.
13468         * lib/unilbrk/lbrkprop1.h: Likewise.
13469         * lib/unilbrk/lbrkprop2.h: Likewise.
13470         * lib/unilbrk/lbrktables.h: Likewise.
13471         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
13472         LBP_CP. Implement rule LB30.
13473         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
13474         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
13475         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
13476         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
13477         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
13478         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
13479         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
13480         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
13481         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
13482         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
13483         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
13484         bits instead of 16 bits in the code1 and code2 of each composition
13485         rule.
13486         (uc_composition): Update for Unicode 5.2.0.
13487         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
13488         * lib/uninorm/decomposition-table2.h: Likewise.
13489         * lib/uniwbrk/wbrkprop.h: Likewise.
13490         * tests/unicase/test-cased.c: Likewise.
13491         * tests/unicase/test-ignorable.c: Likewise.
13492         * tests/unicase/test-uc_tolower.c: Likewise.
13493         * tests/unicase/test-uc_totitle.c: Likewise.
13494         * tests/unicase/test-uc_toupper.c: Likewise.
13495         * tests/unictype/test-categ_C.c: Likewise.
13496         * tests/unictype/test-categ_Cf.c: Likewise.
13497         * tests/unictype/test-categ_Cn.c: Likewise.
13498         * tests/unictype/test-categ_L.c: Likewise.
13499         * tests/unictype/test-categ_Ll.c: Likewise.
13500         * tests/unictype/test-categ_Lm.c: Likewise.
13501         * tests/unictype/test-categ_Lo.c: Likewise.
13502         * tests/unictype/test-categ_Lu.c: Likewise.
13503         * tests/unictype/test-categ_M.c: Likewise.
13504         * tests/unictype/test-categ_Mc.c: Likewise.
13505         * tests/unictype/test-categ_Mn.c: Likewise.
13506         * tests/unictype/test-categ_N.c: Likewise.
13507         * tests/unictype/test-categ_Nd.c: Likewise.
13508         * tests/unictype/test-categ_Nl.c: Likewise.
13509         * tests/unictype/test-categ_No.c: Likewise.
13510         * tests/unictype/test-categ_P.c: Likewise.
13511         * tests/unictype/test-categ_Pd.c: Likewise.
13512         * tests/unictype/test-categ_Po.c: Likewise.
13513         * tests/unictype/test-categ_S.c: Likewise.
13514         * tests/unictype/test-categ_Sc.c: Likewise.
13515         * tests/unictype/test-categ_So.c: Likewise.
13516         * tests/unictype/test-ctype_alnum.c: Likewise.
13517         * tests/unictype/test-ctype_alpha.c: Likewise.
13518         * tests/unictype/test-ctype_graph.c: Likewise.
13519         * tests/unictype/test-ctype_lower.c: Likewise.
13520         * tests/unictype/test-ctype_print.c: Likewise.
13521         * tests/unictype/test-ctype_punct.c: Likewise.
13522         * tests/unictype/test-ctype_upper.c: Likewise.
13523         * tests/unictype/test-decdigit.h: Likewise.
13524         * tests/unictype/test-digit.h: Likewise.
13525         * tests/unictype/test-numeric.h: Likewise.
13526         * tests/unictype/test-pr_alphabetic.c: Likewise.
13527         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13528         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13529         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13530         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13531         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13532         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13533         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13534         * tests/unictype/test-pr_combining.c: Likewise.
13535         * tests/unictype/test-pr_composite.c: Likewise.
13536         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13537         * tests/unictype/test-pr_dash.c: Likewise.
13538         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13539         * tests/unictype/test-pr_deprecated.c: Likewise.
13540         * tests/unictype/test-pr_diacritic.c: Likewise.
13541         * tests/unictype/test-pr_extender.c: Likewise.
13542         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13543         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13544         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13545         * tests/unictype/test-pr_id_continue.c: Likewise.
13546         * tests/unictype/test-pr_id_start.c: Likewise.
13547         * tests/unictype/test-pr_ideographic.c: Likewise.
13548         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13549         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13550         * tests/unictype/test-pr_lowercase.c: Likewise.
13551         * tests/unictype/test-pr_numeric.c: Likewise.
13552         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13553         * tests/unictype/test-pr_punctuation.c: Likewise.
13554         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13555         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13556         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13557         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13558         * tests/unictype/test-pr_uppercase.c: Likewise.
13559         * tests/unictype/test-pr_xid_continue.c: Likewise.
13560         * tests/unictype/test-pr_xid_start.c: Likewise.
13561         * tests/unictype/test-pr_zero_width.c: Likewise.
13562         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13563         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13564         changed behaviour: line breaking is now disallowed between a letter
13565         or '=' and '('.
13566         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13567         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13568         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13569         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13570         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13571         lib/uniwidth/width.c.
13572         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13573         without comments, but with the original copyright notice.
13574         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13575         changes.
13576         * lib/unictype/categ_Cc.h: Likewise.
13577         * lib/unictype/categ_Co.h: Likewise.
13578         * lib/unictype/categ_Cs.h: Likewise.
13579         * lib/unictype/categ_Lt.h: Likewise.
13580         * lib/unictype/categ_Me.h: Likewise.
13581         * lib/unictype/categ_Pc.h: Likewise.
13582         * lib/unictype/categ_Pe.h: Likewise.
13583         * lib/unictype/categ_Pf.h: Likewise.
13584         * lib/unictype/categ_Pi.h: Likewise.
13585         * lib/unictype/categ_Ps.h: Likewise.
13586         * lib/unictype/categ_Sk.h: Likewise.
13587         * lib/unictype/categ_Sm.h: Likewise.
13588         * lib/unictype/categ_Z.h: Likewise.
13589         * lib/unictype/categ_Zl.h: Likewise.
13590         * lib/unictype/categ_Zp.h: Likewise.
13591         * lib/unictype/categ_Zs.h: Likewise.
13592         * lib/unictype/ctype_blank.h: Likewise.
13593         * lib/unictype/ctype_cntrl.h: Likewise.
13594         * lib/unictype/ctype_digit.h: Likewise.
13595         * lib/unictype/ctype_space.h: Likewise.
13596         * lib/unictype/ctype_xdigit.h: Likewise.
13597         * lib/unictype/mirror.h: Likewise.
13598         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13599         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13600         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13601         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13602         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13603         * lib/unictype/pr_bidi_control.h: Likewise.
13604         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13605         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13606         * lib/unictype/pr_bidi_pdf.h: Likewise.
13607         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13608         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13609         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13610         * lib/unictype/pr_format_control.h: Likewise.
13611         * lib/unictype/pr_hex_digit.h: Likewise.
13612         * lib/unictype/pr_hyphen.h: Likewise.
13613         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13614         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13615         * lib/unictype/pr_iso_control.h: Likewise.
13616         * lib/unictype/pr_join_control.h: Likewise.
13617         * lib/unictype/pr_left_of_pair.h: Likewise.
13618         * lib/unictype/pr_line_separator.h: Likewise.
13619         * lib/unictype/pr_math.h: Likewise.
13620         * lib/unictype/pr_non_break.h: Likewise.
13621         * lib/unictype/pr_not_a_character.h: Likewise.
13622         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13623         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13624         * lib/unictype/pr_other_id_continue.h: Likewise.
13625         * lib/unictype/pr_other_id_start.h: Likewise.
13626         * lib/unictype/pr_other_lowercase.h: Likewise.
13627         * lib/unictype/pr_other_math.h: Likewise.
13628         * lib/unictype/pr_other_uppercase.h: Likewise.
13629         * lib/unictype/pr_paired_punctuation.h: Likewise.
13630         * lib/unictype/pr_paragraph_separator.h: Likewise.
13631         * lib/unictype/pr_pattern_syntax.h: Likewise.
13632         * lib/unictype/pr_pattern_white_space.h: Likewise.
13633         * lib/unictype/pr_private_use.h: Likewise.
13634         * lib/unictype/pr_quotation_mark.h: Likewise.
13635         * lib/unictype/pr_radical.h: Likewise.
13636         * lib/unictype/pr_soft_dotted.h: Likewise.
13637         * lib/unictype/pr_space.h: Likewise.
13638         * lib/unictype/pr_titlecase.h: Likewise.
13639         * lib/unictype/pr_variation_selector.h: Likewise.
13640         * lib/unictype/pr_white_space.h: Likewise.
13641         * lib/unictype/sy_c_ident.h: Likewise.
13642         * lib/unictype/sy_c_whitespace.h: Likewise.
13643         * lib/unictype/sy_java_whitespace.h: Likewise.
13644         * modules/uni*/*: Bump version number of expected libunistring version.
13645         Reported by Simon Josefsson.
13646
13647 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13648
13649         useless-if-before-free: fix typo in --help and make the internal,
13650         automatic version date update process work once again.
13651         --help output contained a NUL character instead of the
13652         backslash-zero that was intended.  Also, the "must lie within
13653         the first 8 lines" line is on line 9, and hence not getting
13654         automatically updated.
13655         * build-aux/useless-if-before-free: Fix the former by adding a
13656         backslash, and the latter by condensing the three lines of what-it-does
13657         to a single line, leaving one line of slack for the future.
13658
13659 2011-01-09  Bruno Haible  <bruno@clisp.org>
13660
13661         uniwidth/width: Fix width of U+1D173..U+1D17A.
13662         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13663         symbolic_width, output_width_property_test): New functions.
13664         (main): Invoke output_nonspacing_property, output_width_property_test.
13665         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13666         U+1D173..U+1D17A.
13667         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13668         1.
13669         * modules/uniwidth/*: Bump version number of expected libunistring
13670         version.
13671         * modules/unilbrk/*: Likewise.
13672
13673 2011-01-08  Bruno Haible  <bruno@clisp.org>
13674
13675         uninorm tests: Preserve copyright of Unicode data file.
13676         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13677         Mention modifications.
13678
13679 2011-01-08  Bruno Haible  <bruno@clisp.org>
13680
13681         gen-uni-tables: Prepare for Unicode 5.2.0.
13682         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13683         (debug_output_lbp, output_lbp): Update.
13684
13685 2011-01-08  Bruno Haible  <bruno@clisp.org>
13686
13687         unilbrk: Clarify gen-uni-tables.c code.
13688         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13689         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13690         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13691
13692 2011-01-07  Bruno Haible  <bruno@clisp.org>
13693
13694         strtod: Restore errno when successfully parsing Infinity or NaN.
13695         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13696         restore the original errno.
13697
13698 2011-01-07  Bruno Haible  <bruno@clisp.org>
13699
13700         remove test: Avoid failure on HP-UX 11.
13701         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13702
13703 2011-01-07  Bruno Haible  <bruno@clisp.org>
13704
13705         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13706         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13707         error code.
13708
13709 2011-01-07  Pádraig Brady <P@draigBrady.com>
13710
13711         ignore-value: fixup comments, and add Eric Blake
13712         as an author since he rewrote the macros.
13713         * lib/ignore-value.h (ignore_value):  State that
13714         we now support aggregates.  Also specify exactly
13715         when the GCC warn_unused_result feature was added.
13716
13717 2011-01-06  Eric Blake  <eblake@redhat.com>
13718
13719         ignore-value: support aggregate types
13720         * lib/ignore-value.h (ignore_value): Provide separate gcc
13721         definition.
13722         * modules/ignore-value-tests: New test module.
13723         * tests/test-ignore-value.c: New test.
13724
13725         maint.mk: improve sc_prohibit_strcmp regex
13726         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13727         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13728         definition of STRNEQ.
13729
13730         signal: work around Haiku issue with SIGBUS
13731         * lib/siglist.h: Add comment.
13732         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13733         strsignal's favoring of SIGSEGV.
13734         * tests/test-signal.c (main): Avoid test failure.
13735         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13736         Reported by Scott McCreary.
13737
13738         maint.mk: add pre-release check to ensure submodule commits are public
13739         * top/maint.mk (public-submodule-commit): New rule.
13740         (submodule-checks): New variable.
13741         (alpha beta stable): Depend on the variable.
13742
13743 2011-01-05  Pádraig Brady <P@draigBrady.com>
13744         and Jim Meyering  <meyering@redhat.com>
13745
13746         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13747         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13748         (ATTRIBUTE_DEPRECATED): Define.
13749         (_ignore_case): New function.
13750         (ignore_value): New macro, to replace the old function.
13751         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13752         * modules/ignore-value (Depends-on): Add stdint.
13753
13754 2011-01-04  Eric Blake  <eblake@redhat.com>
13755
13756         doc: regenerate INSTALL
13757         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13758         @firstparagraphindent support, now that autoconf dropped it.
13759         (INSTALL_PRELUDE): Reinstate old macro.
13760         * doc/install.texi: Resync from autoconf.
13761         * doc/INSTALL: Reflect recent autoconf update.
13762         * doc/INSTALL.ISO: Likewise.
13763         * doc/INSTALL.UTF-8: Likewise.
13764         Reported by Karl Berry.
13765
13766 2011-01-04  Bruce Korb  <address@hidden>
13767
13768         git-version-gen: avoid a sub-shell
13769         * build-aux/git-version-gen: Redirect stderr in `...` via
13770         "exec 2>...", rather than via an added sub-shell.
13771
13772 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13773
13774         git-version-gen: use (...) rather than sh -c '...'
13775         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13776         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13777
13778 2011-01-03  Jim Meyering  <meyering@redhat.com>
13779
13780         git-version-gen: convert leading TABs to spaces
13781         * build-aux/git-version-gen: Expand leading TABs.
13782
13783         git-version-gen: handle failed "git rev-list"
13784         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13785         from git and proceeding as if it had succeeded but printed no SHA1
13786         checksums, suppress the diagnostic and handle the failure.
13787         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13788
13789         git-version-gen: include command name in one more diagnostic
13790         * build-aux/git-version-gen: When the required .tarball-version file
13791         was missing or unreadable, you might see the diagnostic from "cat",
13792         but no trace of the name of the invoking script.  Now, you still see
13793         the diagnostic from cat, but also get one from "git-version-gen: ".
13794         Inspired by a patch from Bruce Korb.
13795
13796         update-copyright: adjust test to match changed code
13797         * tests/test-update-copyright.sh: Change test's expected output
13798         to match new actual output.
13799
13800 2011-01-02  Bruno Haible  <bruno@clisp.org>
13801
13802         getlogin_r: Avoid test failure on HP-UX 11.
13803         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13804         ERANGE when the second argument is zero.
13805         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13806         portability problem.
13807
13808 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13809
13810         * build-aux/update-copyright: doc Simon's changes
13811
13812 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13813
13814         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13815         environment variable.
13816
13817 2011-01-02  Bruno Haible  <bruno@clisp.org>
13818
13819         unigbrk: Avoid gcc warnings.
13820         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13821         unused variable.
13822         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13823         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13824         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13825         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13826         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13827         Change type of first argument to 'const char *'.
13828         (main): Remove unused variable.
13829         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13830         type of first argument to 'const char *'.
13831         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13832         Likewise.
13833         (main): Change type of variable 's'.
13834         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13835         to 'int'.
13836
13837 2011-01-02  Bruno Haible  <bruno@clisp.org>
13838
13839         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13840         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13841         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13842         bug.
13843         * lib/pwrite.c: Undo 2010-12-31 patch.
13844         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13845
13846 2011-01-02  Bruno Haible  <bruno@clisp.org>
13847
13848         pread: Fix test whether it works.
13849         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13850
13851 2011-01-02  Bruno Haible  <bruno@clisp.org>
13852
13853         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13854         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13855         ends in "6". Don't require a specific month name. Try also the locale
13856         names found on HP-UX 11 and Solaris 7.
13857
13858 2011-01-02  Bruno Haible  <bruno@clisp.org>
13859
13860         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13861         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13862         C linkage.
13863         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13864
13865 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13866
13867         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13868         for consistency, since the "cluster" term is not used elsewhere.
13869         * lib/unigbrk.in.h: Update name.
13870         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13871         * lib/unigbrk/u16-grapheme-next.c: Update name.
13872         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13873         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13874         * lib/unigbrk/u32-grapheme-next.c: Update name.
13875         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13876         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13877         * lib/unigbrk/u8-grapheme-next.c: Update name.
13878         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13879         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13880         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13881         Suggested by Bruno Haible.
13882
13883 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13884
13885         Remove module 'u8-grapheme-len' as too redundant with
13886         'u8-grapheme-next'.
13887         * modules/unigbrk/u8-grapheme-len: Delete file.
13888         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13889         * lib/unigbrk.in.h: Remove prototype for deleted function.
13890         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13891         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13892
13893         Remove module 'u16-grapheme-len' as too redundant with
13894         'u16-grapheme-next'.
13895         * modules/unigbrk/u16-grapheme-len: Delete file.
13896         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13897         * lib/unigbrk.in.h: Remove prototype for deleted function.
13898         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13899         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13900
13901         Remove module 'u32-grapheme-len' as too redundant with
13902         'u32-grapheme-next'.
13903         * modules/unigbrk/u32-grapheme-len: Delete file.
13904         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13905         * lib/unigbrk.in.h: Remove prototype for deleted function.
13906         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13907         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13908
13909         Suggested by Bruno Haible.
13910
13911 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13912
13913         * unigbrk.in.h: Fix typo: "ben" => "been".
13914         Reported by Bruno Haible.
13915
13916 2011-01-01  Jim Meyering  <meyering@redhat.com>
13917
13918         maint: update almost all copyright ranges to include 2011
13919         Run the new "make update-copyright" rule.
13920
13921 2011-01-01  Jim Meyering  <meyering@redhat.com>
13922
13923         maint: update-copyright: exempt doc/INSTALL*
13924         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13925         since they are generated.  Suggested by Bruno Haible.
13926
13927 2011-01-01  Jim Meyering  <meyering@redhat.com>
13928
13929         maint: refine the update-copyright rule
13930         * Makefile (update-copyright): Also exclude any file that includes
13931         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13932         code that merely generates the comment.
13933
13934 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13935
13936         New module 'u8-grapheme-len'.
13937         * modules/unigbrk/u8-grapheme-len: New file.
13938         * modules/unigbrk/u8-grapheme-len-tests: New file.
13939         * lib/unigbrk.in.h: Add prototype for new function.
13940         * lib/unigbrk/u8-grapheme-len.c: New file.
13941         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13942
13943         New module 'u16-grapheme-len'.
13944         * modules/unigbrk/u16-grapheme-len: New file.
13945         * modules/unigbrk/u16-grapheme-len-tests: New file.
13946         * lib/unigbrk.in.h: Add prototype for new function.
13947         * lib/unigbrk/u16-grapheme-len.c: New file.
13948         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13949
13950         New module 'u32-grapheme-len'.
13951         * modules/unigbrk/u32-grapheme-len: New file.
13952         * modules/unigbrk/u32-grapheme-len-tests: New file.
13953         * lib/unigbrk.in.h: Add prototype for new function.
13954         * lib/unigbrk/u32-grapheme-len.c: New file.
13955         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13956
13957         New module 'u8-grapheme-next'.
13958         * modules/unigbrk/u8-grapheme-next: New file.
13959         * modules/unigbrk/u8-grapheme-next-tests: New file.
13960         * lib/unigbrk.in.h: Add prototype for new function.
13961         * lib/unigbrk/u8-grapheme-next.c: New file.
13962         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13963
13964         New module 'u16-grapheme-next'.
13965         * modules/unigbrk/u16-grapheme-next: New file.
13966         * modules/unigbrk/u16-grapheme-next-tests: New file.
13967         * lib/unigbrk.in.h: Add prototype for new function.
13968         * lib/unigbrk/u16-grapheme-next.c: New file.
13969         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13970
13971         New module 'u32-grapheme-next'.
13972         * modules/unigbrk/u32-grapheme-next: New file.
13973         * modules/unigbrk/u32-grapheme-next-tests: New file.
13974         * lib/unigbrk.in.h: Add prototype for new function.
13975         * lib/unigbrk/u32-grapheme-next.c: New file.
13976         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13977
13978         New module 'u8-grapheme-prev'.
13979         * modules/unigbrk/u8-grapheme-prev: New file.
13980         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13981         * lib/unigbrk.in.h: Add prototype for new function.
13982         * lib/unigbrk/u8-grapheme-prev.c: New file.
13983         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13984
13985         New module 'u16-grapheme-prev'.
13986         * modules/unigbrk/u16-grapheme-prev: New file.
13987         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13988         * lib/unigbrk.in.h: Add prototype for new function.
13989         * lib/unigbrk/u16-grapheme-prev.c: New file.
13990         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13991
13992         New module 'u32-grapheme-prev'.
13993         * modules/unigbrk/u32-grapheme-prev: New file.
13994         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13995         * lib/unigbrk.in.h: Add prototype for new function.
13996         * lib/unigbrk/u32-grapheme-prev.c: New file.
13997         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13998
13999         New module 'u8-grapheme-breaks'.
14000         * modules/unigbrk/u8-grapheme-breaks: New file.
14001         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
14002         * lib/unigbrk.in.h: Add prototype for new function.
14003         * lib/unigbrk/u8-grapheme-breaks.c: New file.
14004         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
14005
14006         New module 'u16-grapheme-breaks'.
14007         * modules/unigbrk/u16-grapheme-breaks: New file.
14008         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
14009         * lib/unigbrk.in.h: Add prototype for new function.
14010         * lib/unigbrk/u16-grapheme-breaks.c: New file.
14011         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
14012
14013         New module 'u32-grapheme-breaks'.
14014         * modules/unigbrk/u32-grapheme-breaks: New file.
14015         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
14016         * lib/unigbrk.in.h: Add prototype for new function.
14017         * lib/unigbrk/u32-grapheme-breaks.c: New file.
14018         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
14019
14020         New module 'ulc-grapheme-breaks'.
14021         * modules/unigbrk/ulc-grapheme-breaks: New file.
14022         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
14023         * m4/locale-ar.m4: New file.
14024         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
14025         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
14026         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
14027
14028 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14029
14030         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
14031         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
14032         modified how this file was generated before I initially submitted
14033         the module, but failed to regenerate it.  This meant that several
14034         of the level2 entries were wrong.
14035         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
14036         Remove the division-by-2 that is folded into the table now that
14037         gbrkprop.h has been regenerated properly.  Now -1 entries are
14038         handled correctly.
14039
14040         New module 'unigbrk/uc-gbrk-prop-tests'.
14041         * modules/unigbrk/uc-gbrk-prop-tests: New file.
14042         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
14043         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
14044         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
14045
14046 2011-01-01  Bruno Haible  <bruno@clisp.org>
14047
14048         Avoid use of hexadecimal escapes.
14049         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
14050         instead of hexadecimal escapes.
14051
14052 2011-01-01  Jim Meyering  <meyering@redhat.com>
14053
14054         maint: new rule to update copyright year ranges
14055         * Makefile (update-copyright): New rule.
14056
14057         maint: indent with TABs in Makefile
14058         * Makefile: Expand leading sequences of spaces to TABs
14059
14060         version-etc: update the copyright year it reports
14061         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
14062
14063 2010-12-31  Bruno Haible  <bruno@clisp.org>
14064
14065         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
14066         * lib/isfinite.c (zerof, zerod, zerol): New variables.
14067         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
14068         zero.
14069
14070 2010-12-31  Bruno Haible  <bruno@clisp.org>
14071
14072         pwrite: Work around HP-UX 11.11 bug.
14073         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
14074         works and set REPLACE_PWRITE if not.
14075         * lib/pwrite.c (pwrite): Add an implementation that uses the system
14076         function.
14077         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
14078
14079 2010-12-31  Bruno Haible  <bruno@clisp.org>
14080
14081         pread: Work around HP-UX 11 bugs.
14082         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
14083         and set REPLACE_PREAD if not.
14084         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
14085
14086 2010-12-31  Eric Blake  <eblake@redhat.com>
14087
14088         nl_langinfo: fix YESEXPR on Irix 6.5
14089         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
14090         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
14091         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
14092         it.
14093
14094 2010-12-31  Bruno Haible  <bruno@clisp.org>
14095
14096         iconv: Document HP-UX 11 bug.
14097         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
14098
14099 2010-12-31  Bruno Haible  <bruno@clisp.org>
14100
14101         ldexpl: Fix link error on HP-UX 11.
14102         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
14103         LDEXPL_LIBM, using $ISNANL_LIBM.
14104
14105 2010-12-31  Eric Blake  <eblake@redhat.com>
14106
14107         ftello: avoid compilation failure with SunStudio c89
14108         * lib/ftello.c (ftello): Use lseek, not llseek.
14109
14110         tests: avoid failing coreutils tests on cygwin
14111         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
14112         (create_exe_shims_): Return 0 when skipping.
14113
14114 2010-12-31  Bruno Haible  <bruno@clisp.org>
14115
14116         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
14117         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
14118
14119 2010-12-31  Bruno Haible  <bruno@clisp.org>
14120
14121         waitpid: Fix link error in C++ mode.
14122         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
14123
14124 2010-12-31  Bruno Haible  <bruno@clisp.org>
14125
14126         isnan: Use GCC built-ins when possible.
14127         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
14128         __builtin_isnan.
14129         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
14130         (isnan): Define using GCC built-ins for GCC >= 4.0.
14131
14132 2010-12-31  Bruno Haible  <bruno@clisp.org>
14133
14134         isnand: Fix mistake.
14135         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
14136         __builtin_isnand.
14137
14138 2010-12-31  Bruno Haible  <bruno@clisp.org>
14139
14140         open: Avoid C++ error on HP-UX 11.
14141         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
14142
14143 2010-12-31  Bruno Haible  <bruno@clisp.org>
14144
14145         time_r: Add missing declarations on HP-UX 11.
14146         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
14147         instead of HAVE_LOCALTIME_R.
14148         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
14149         HAVE_LOCALTIME_R always.
14150         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
14151         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
14152         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
14153         HAVE_LOCALTIME_R.
14154         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
14155         * doc/posix-functions/localtime_r.texi: Likewise.
14156
14157 2010-12-29  Eric Blake  <eblake@redhat.com>
14158
14159         mountlist: tweak previous commit
14160         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
14161         Reported by Paul Eggert.
14162
14163         mountlist: fix local drive detection on cygwin
14164         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
14165         that works for cygwin.
14166
14167 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14168
14169         ftoastr, snprintf: ftoastr + snprintf module
14170         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
14171         since the snprintf module now should be good enough here.
14172         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
14173         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
14174         and gl_MODULE_INDICATOR([snprintf]), but the former enables
14175         GNULIB_SNPRINTF only for the test directory, and the latter
14176         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
14177         seems to suffice by itself.
14178
14179 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14180
14181         alloca: one step towards thread-safety
14182         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
14183         need for a static variable.  All callers changed.  This does not
14184         make the alloca replacement thread-safe, but it's one step.
14185
14186         tests: minor indenting change
14187         * tests/init.sh: Sync from coreutils housekeeping patch
14188         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
14189         to keep lines within 80 columns.
14190
14191 2010-12-28  Jim Meyering  <meyering@redhat.com>
14192
14193         regex: don't infloop on persistent failing calloc
14194         * lib/regexec.c (build_trtable): Return failure indication upon
14195         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14196         In glibc, this was fixed for version 2.13:
14197         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
14198
14199 2010-12-28  Bruno Haible  <bruno@clisp.org>
14200             Paul Eggert <eggert@cs.ucla.edu>
14201
14202         linkat: Make implementation robust against system behaviour variations.
14203         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
14204         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
14205         way, and to -2 if it needs a generic runtime test.
14206         * lib/linkat.c (solaris_optimized_link_immediate,
14207         solaris_optimized_link_follow): New functions.
14208         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
14209         (check_same_link): Use it.
14210
14211 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
14212
14213         New module 'unigbrk/base'.
14214         * modules/unigbrk/base: New file.
14215         * lib/unigbrk.in.h: New file.
14216
14217         New module 'unigbrk/uc-gbrk-prop'.
14218         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
14219         * modules/unigbrk/uc-gbrk-prop: New file.
14220         * lib/unigbrk/gbrkprop.h: New file.
14221         * lib/unigbrk/uc-gbrk-prop.c: New file.
14222
14223         New module 'unigbrk/uc-is-grapheme-break'.
14224         * modules/unigbrk/uc-is-grapheme-break: New file.
14225         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
14226         * lib/unigbrk/uc-is-grapheme-break.c: New file.
14227         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
14228         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
14229         * tests/unigbrk/GraphemeBreakTest.txt: New file.
14230
14231         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
14232
14233 2010-12-27  Bruno Haible  <bruno@clisp.org>
14234
14235         linkat test: Avoid failure on Solaris 11 2010-11.
14236         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
14237
14238 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14239
14240         utimens: work around glibc rounding bug on more platforms
14241         * lib/utimens.c (fdutimens): Work around rounding bug even if
14242         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
14243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
14244
14245 2010-12-27  Bruno Haible  <bruno@clisp.org>
14246
14247         select tests: Improve comments.
14248         * tests/test-select.c (do_select): Add comments.
14249
14250 2010-12-27  Bruno Haible  <bruno@clisp.org>
14251
14252         select tests: Safer way of handling timeout.
14253         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
14254         at every invocation.
14255
14256 2010-12-27  Bruno Haible  <bruno@clisp.org>
14257
14258         select tests: Use 'bool' where appropriate.
14259         * tests/test-select.c (connect_to_socket): Change argument type to
14260         'bool'.
14261
14262 2010-12-27  Bruno Haible  <bruno@clisp.org>
14263
14264         select tests: Use existing modules.
14265         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
14266         (configure.ac): Don't test for unistd.h.
14267         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
14268         declared in <unistd.h>.
14269
14270 2010-12-27  Bruno Haible  <bruno@clisp.org>
14271
14272         mbrtowc: Work around a Solaris 7 bug.
14273         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
14274         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
14275         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
14276         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
14277         MBRTOWC_NULL_ARG1_BUG.
14278         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
14279         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
14280         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
14281         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
14282
14283 2010-12-27  Jim Meyering  <meyering@redhat.com>
14284
14285         read-file.c: tweak syntax
14286         * lib/read-file.c (fread_file): Remove space after "*" in function
14287         definitions.
14288
14289 2010-12-27  Bruno Haible  <bruno@clisp.org>
14290
14291         times test: Avoid gcc warnings on OSF/1.
14292         * tests/test-times.c (main): Cast printf arguments from clock_t to
14293         'long int'.
14294
14295 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14296
14297         utimens: work around glibc rounding bug on older Linux kernels
14298         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
14299         on Linux with a glibc whose utimes might not work, then work
14300         around a longstanding glibc bug involving rounding rather than
14301         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
14302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14303
14304 2010-12-26  Bruno Haible  <bruno@clisp.org>
14305
14306         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
14307         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
14308         _GL_CXXALIAS_SYS.
14309         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14310
14311 2010-12-26  Bruno Haible  <bruno@clisp.org>
14312
14313         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
14314         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
14315         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14316         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
14317         looking for the declaration.
14318         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14319         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
14320         problem.
14321         * doc/posix-functions/inet_pton.texi: Likewise.
14322
14323 2010-12-26  Bruno Haible  <bruno@clisp.org>
14324
14325         arpa_inet: Use the common idioms with C++ support.
14326         * lib/arpa_inet.in.h: Include c++defs.h.
14327         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
14328         support.
14329         * modules/arpa_inet (Depends-on): Add c++defs.
14330         (Makefile.am): Substitute the contents of c++defs.h.
14331         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
14332         * modules/arpa_inet-c++-tests: New file.
14333         * tests/test-arpa_inet-c++.cc: New file.
14334
14335 2010-12-25  Bruno Haible  <bruno@clisp.org>
14336
14337         Fix more C++ link errors on Solaris 8.
14338         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
14339         $(LIB_EACCESS).
14340         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
14341         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
14342         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
14343         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
14344         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
14345
14346 2010-12-25  Bruno Haible  <bruno@clisp.org>
14347
14348         printf-posix: Fix link error when a non-GCC compiler is used.
14349         * lib/stdio.in.h (printf): When not using GCC, override printf
14350         correctly.
14351         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14352
14353 2010-12-25  Bruno Haible  <bruno@clisp.org>
14354
14355         strerror_r-posix: Update doc.
14356         * doc/posix-functions/strerror_r.texi: Update doc about the return
14357         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
14358
14359 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14360
14361         utimens: simplify the logic of the previous change
14362         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
14363         This should not affect whether the test succeeds or fails.
14364
14365         utimens: configure better on hosts with NFS clock skew
14366         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
14367         uses the clock of the local host.  It might use the clock of the
14368         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
14369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14370
14371 2010-12-25  Bruno Haible  <bruno@clisp.org>
14372
14373         ptsname test: Avoid failure on Solaris.
14374         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
14375         open a pseudo-terminal; don't use BSD-style ptys.
14376         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
14377
14378 2010-12-25  Bruno Haible  <bruno@clisp.org>
14379
14380         ptsname: Avoid ERANGE failure on some systems.
14381         * lib/ptsname.c (buffer): Increase size.
14382
14383 2010-12-25  Bruno Haible  <bruno@clisp.org>
14384
14385         rename, renameat: Avoid test failures at NFS mounted locations.
14386         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
14387         so that subsequent mkdir calls succeed.
14388
14389 2010-12-25  Bruno Haible  <bruno@clisp.org>
14390
14391         iswblank: Fix C++ link error on Solaris 8.
14392         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
14393         _GL_FUNCDECL_SYS.
14394
14395 2010-12-25  Bruno Haible  <bruno@clisp.org>
14396
14397         unistd: Fix C++ link error on Solaris 8.
14398         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
14399
14400 2010-12-25  Bruno Haible  <bruno@clisp.org>
14401
14402         readlink doc: Mention an old glibc bug.
14403         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
14404
14405 2010-12-25  Bruno Haible  <bruno@clisp.org>
14406
14407         fcntl-h: Fix for use of C++ on glibc systems.
14408         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14409         also on glibc systems in C++ mode.
14410         Reported by Gary V. Vaughan <gary@gnu.org>.
14411
14412 2010-12-25  Bruno Haible  <bruno@clisp.org>
14413
14414         roundl-ieee: Make it work on OSF/1 5.1 with cc.
14415         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
14416
14417 2010-12-25  Bruno Haible  <bruno@clisp.org>
14418
14419         truncl-ieee: Make it work on OSF/1 5.1 with cc.
14420         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
14421         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
14422         test whether truncl works according to ISO C 99 with IEC 60559.
14423         * m4/truncl-ieee.m4: New file.
14424         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
14425         m4/signbit.m4.
14426         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
14427
14428 2010-12-25  Bruno Haible  <bruno@clisp.org>
14429
14430         ceill-ieee: Make it work on OSF/1 5.1 with cc.
14431         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
14432         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
14433         test whether ceill works according to ISO C 99 with IEC 60559.
14434         * m4/ceill-ieee.m4: New file.
14435         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
14436         m4/signbit.m4.
14437         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
14438
14439 2010-12-25  Bruno Haible  <bruno@clisp.org>
14440
14441         Ensure all prerequisites of <wchar.h> are included.
14442         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
14443         before <wchar.h>.
14444         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14445         gl_MBRLEN_NUL_RETVAL): Likewise.
14446         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14447         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
14448         AC_FUNC_MBRTOWC): Likewise.
14449         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14450         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14451         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14452         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14453         Likewise.
14454         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14455         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
14456         (gl_WCHAR_H): Improve comments.
14457         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14458
14459 2010-12-25  Bruno Haible  <bruno@clisp.org>
14460
14461         strtok_r: Fix C syntax error in autoconf macro.
14462         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
14463         characters in test program.
14464
14465 2010-12-24  Bruno Haible  <bruno@clisp.org>
14466
14467         ceil, trunc, round: Fix gcc warnings.
14468         * lib/ceil.c (MIN): Undefine before redefining.
14469         * lib/trunc.c (MIN): Likewise.
14470         * lib/round.c (MIN): Likewise.
14471         Include <math.h> first.
14472
14473 2010-12-24  Bruno Haible  <bruno@clisp.org>
14474
14475         select tests: Avoid failures on OSF/1 5.1.
14476         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
14477         failure of closing the last socket; it may fail with ECONNRESET.
14478
14479 2010-12-24  Eric Blake  <eblake@redhat.com>
14480
14481         stdint: avoid HP-UX 10.20 preprocessor bug
14482         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
14483         than #if.
14484         * tests/test-floor2.c (main): Likewise.
14485         Reported by Peter O'Gorman.
14486
14487         pipe: make obsoletion transition easier
14488         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
14489         * modules/pipe (Files): Include revived file.
14490         (Include): Drop reference, to mirror getdate's behavior.
14491
14492 2010-12-24  Bruno Haible  <bruno@clisp.org>
14493
14494         sys_socket: Hide mismatch of declarations on NonStop Kernel.
14495         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
14496         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
14497         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14498
14499 2010-12-24  Bruno Haible  <bruno@clisp.org>
14500
14501         gethostname: Ensure declaration on NonStop Kernel.
14502         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
14503         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14504
14505 2010-12-24  Bruno Haible  <bruno@clisp.org>
14506
14507         sys_select: Ensure all necessary types on NonStop Kernel.
14508         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
14509         include <sys/time.h>.
14510         * doc/posix-headers/sys_select.texi: Mention that it's missing on
14511         NonStop Kernel.
14512         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14513
14514 2010-12-24  Bruno Haible  <bruno@clisp.org>
14515
14516         sys_select: Remove unneeded include.
14517         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14518         have <sys/select.h>.
14519
14520 2010-12-24  Bruno Haible  <bruno@clisp.org>
14521
14522         gethostname: Provide a fallback for HOST_NAME_MAX.
14523         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14524         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14525         instead.
14526         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14527
14528 2010-12-24  Bruno Haible  <bruno@clisp.org>
14529
14530         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14531         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14532         (SA_RESTART): Likewise.
14533         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14534
14535 2010-12-24  Bruno Haible  <bruno@clisp.org>
14536
14537         signal: Define NSIG.
14538         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14539         * tests/test-signal.c (nsig): New variable.
14540         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14541
14542 2010-12-24  Bruno Haible  <bruno@clisp.org>
14543
14544         rename, renameat: Avoid test failures on OSF/1 5.1.
14545         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14546         alternative error codes.
14547         * tests/test-renameat.c (main): Likewise.
14548
14549 2010-12-24  Bruno Haible  <bruno@clisp.org>
14550
14551         *printf: Detect large precisions bug on Solaris 10/SPARC.
14552         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14553         by Paul Eggert.
14554         * tests/test-snprintf-posix.h (test_function): Add this test code here
14555         too.
14556         * tests/test-sprintf-posix.h (test_function): Likewise.
14557         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14558         * tests/test-vasprintf-posix.c (test_function): Likewise.
14559         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14560         around by gnulib.
14561         * doc/posix-functions/printf.texi: Likewise.
14562         * doc/posix-functions/snprintf.texi: Likewise.
14563         * doc/posix-functions/sprintf.texi: Likewise.
14564         * doc/posix-functions/vfprintf.texi: Likewise.
14565         * doc/posix-functions/vprintf.texi: Likewise.
14566         * doc/posix-functions/vsnprintf.texi: Likewise.
14567         * doc/posix-functions/vsprintf.texi: Likewise.
14568         * doc/posix-functions/dprintf.texi: Undo last commit.
14569         * doc/posix-functions/vdprintf.texi: Likewise.
14570
14571 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14572
14573         tests: port test-fdutimensat.c to Solaris 8
14574         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14575         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14576         On Solaris 8, it fails with errno == ENOSYS, because there is no
14577         futimens (so it can't use the fd), and there is no lutimens (so it
14578         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14579
14580         vsnprintf: make more consistent with snprintf; doc fixes
14581
14582         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14583         the byte count return problem was promoted from the snprintf-posix
14584         to the snprintf module.
14585         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14586         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14587         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14588         * tests/test-snprintf.c (main): Check the byte count returned.
14589         * tests/test-vsnprintf.c (main): Likewise.
14590
14591 2010-12-23  Eric Blake  <eblake@redhat.com>
14592
14593         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14594         * modules/sigpipe (License): Relax license.
14595
14596 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14597
14598         doc: document Solaris printf bug with large float precisions
14599         * doc/posix-functions/dprintf.texi (dprintf):
14600         * doc/posix-functions/fprintf.texi (fprintf):
14601         * doc/posix-functions/printf.texi (printf):
14602         * doc/posix-functions/snprintf.texi (snprintf):
14603         * doc/posix-functions/sprintf.texi (sprintf):
14604         * doc/posix-functions/vdprintf.texi (vdprintf):
14605         * doc/posix-functions/vfprintf.texi (vfprintf):
14606         * doc/posix-functions/vprintf.texi (vprintf):
14607         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14608         * doc/posix-functions/vsprintf.texi (vsprintf):
14609         Mention that these functions mishandle large floating point
14610         precisions on Solaris 10.  The same bug is also present in Solaris
14611         8, and I assume earlier.  This causes "cd gnulib-tests; make
14612         check" to fail on Solaris 8 (and I assume, later) when building
14613         the latest coreutils, in test-vasprintf-posix's call to
14614         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14615         the wide flavors (e.g., wprintf) so this patch just updates the
14616         documentation for the narrow ones.
14617
14618         test-posixtm.c: add two tests
14619         * tests/test-posixtm.c: Add two tests, to highlight the
14620         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14621         around this bug; this is merely to document it.
14622
14623 2010-12-22  Bruno Haible  <bruno@clisp.org>
14624
14625         getlogin_r: Work around portability problem on OSF/1.
14626         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14627         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14628         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14629         test for a truncated result.
14630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14631         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14632         * modules/getlogin_r (Depends-on): Add memchr.
14633         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14634
14635 2010-12-22  Bruno Haible  <bruno@clisp.org>
14636
14637         ptsname: Avoid test failure on OSF/1 5.1.
14638         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14639         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14640         (same_slave): New function.
14641         (main): Use it to compare ptsname's result with the expected file name.
14642
14643 2010-12-22  Bruno Haible  <bruno@clisp.org>
14644
14645         Port extended stdio modules to HP NonStop Kernel.
14646         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14647         macros.
14648         * lib/fbufmode.c: Update comments.
14649         * lib/fflush.c: Likewise.
14650         * lib/fpurge.c: Likewise.
14651         * lib/freadable.c: Likewise.
14652         * lib/freadahead.c: Likewise.
14653         * lib/freading.c: Likewise.
14654         * lib/freadptr.c: Likewise.
14655         * lib/freadseek.c: Likewise.
14656         * lib/fseeko.c: Likewise.
14657         * lib/fseterr.c: Likewise.
14658         * lib/fwritable.c: Likewise.
14659         * lib/fwriting.c: Likewise.
14660         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14661
14662 2010-12-22  Bruno Haible  <bruno@clisp.org>
14663
14664         ttyname_r: Work around bug on OSF/1 5.1.
14665         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14666         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14667         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14668         present.
14669         * lib/ttyname_r.c (ttyname_r): Update comments.
14670
14671 2010-12-22  Bruno Haible  <bruno@clisp.org>
14672
14673         round: Implement result sign according to IEEE 754.
14674         * lib/round.c (MIN, MINUS_ZERO): New macros.
14675         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14676         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14677         * tests/test-round-ieee.c (main): Likewise.
14678         * tests/test-roundl-ieee.c (main): Likewise.
14679
14680         trunc: Implement result sign according to IEEE 754.
14681         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14682         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14683         * tests/test-trunc2.c: Include minus-zero.h.
14684         (MINUS_ZERO): New macro.
14685         (trunc_reference): Keep in sync with lib/trunc.c.
14686         * tests/test-truncf2.c: Include minus-zero.h.
14687         (MINUS_ZERO): New macro.
14688         (truncf_reference): Keep in sync with lib/trunc.c.
14689         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14690         * tests/test-trunc-ieee.c (main): Likewise.
14691         * tests/test-truncl-ieee.c (main): Likewise.
14692
14693         ceil: Implement result sign according to IEEE 754.
14694         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14695         (FUNC): Return -0.0 for -1 < x < 0.
14696         * tests/test-ceil2.c: Include minus-zero.h.
14697         (MINUS_ZERO): New macro.
14698         (ceil_reference): Keep in sync with lib/ceil.c.
14699         * tests/test-ceilf2.c: Include minus-zero.h.
14700         (MINUS_ZERO): New macro.
14701         (ceilf_reference): Keep in sync with lib/ceil.c.
14702         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14703         * tests/test-ceil-ieee.c (main): Likewise.
14704         * tests/test-ceill-ieee.c (main): Likewise.
14705
14706         floor: Implement result sign according to IEEE 754.
14707         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14708         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14709         * tests/test-floorf2.c (floorf_reference): Likewise.
14710         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14711         * tests/test-floor-ieee.c (main): Likewise.
14712         * tests/test-floorl-ieee.c (main): Likewise.
14713
14714 2010-12-22  Bruno Haible  <bruno@clisp.org>
14715
14716         getaddrinfo: Update doc.
14717         * doc/posix-functions/gai_strerror.texi: Return type is also different
14718         on AIX and HP-UX.
14719
14720 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14721
14722         getaddrinfo, inet_ntop: Update doc for Solaris.
14723         * doc/posix-functions/gai_strerror.texi: Return type is also an
14724         issue on Solaris 9 and earlier.
14725         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14726         on Solaris 10 and earlier.
14727
14728 2010-12-21  Bruno Haible  <bruno@clisp.org>
14729
14730         New module 'roundl-ieee'.
14731         * modules/roundl-ieee: New file.
14732         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14733         test whether roundl works according to ISO C 99 with IEC 60559.
14734         * m4/roundl-ieee.m4: New file.
14735         * modules/roundl-ieee-tests: New file.
14736         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14737         * tests/test-roundl.c (main): Remove signbit tests.
14738         * modules/roundl-tests (Depends-on): Remove signbit.
14739         * doc/posix-functions/roundl.texi: Mention the new module.
14740
14741 2010-12-21  Bruno Haible  <bruno@clisp.org>
14742
14743         New module 'truncl-ieee'.
14744         * modules/truncl-ieee: New file.
14745         * modules/truncl-ieee-tests: New file.
14746         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14747         * tests/test-truncl.c (main): Remove signbit tests.
14748         * modules/truncl-tests (Depends-on): Remove signbit.
14749         * doc/posix-functions/truncl.texi: Mention the new module.
14750
14751 2010-12-21  Bruno Haible  <bruno@clisp.org>
14752
14753         New module 'ceill-ieee'.
14754         * modules/ceill-ieee: New file.
14755         * modules/ceill-ieee-tests: New file.
14756         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14757         * tests/test-ceill.c (main): Remove signbit tests.
14758         * modules/ceill-tests (Depends-on): Remove signbit.
14759         * doc/posix-functions/ceill.texi: Mention the new module.
14760
14761 2010-12-21  Bruno Haible  <bruno@clisp.org>
14762
14763         New module 'floorl-ieee'.
14764         * modules/floorl-ieee: New file.
14765         * modules/floorl-ieee-tests: New file.
14766         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14767         * tests/test-floorl.c (main): Remove signbit tests.
14768         * modules/floorl-tests (Depends-on): Remove signbit.
14769         * doc/posix-functions/floorl.texi: Mention the new module.
14770
14771 2010-12-21  Bruno Haible  <bruno@clisp.org>
14772
14773         New module 'round-ieee'.
14774         * modules/round-ieee: New file.
14775         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14776         whether round works according to ISO C 99 with IEC 60559.
14777         * m4/round-ieee.m4: New file.
14778         * modules/round-ieee-tests: New file.
14779         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14780         * tests/test-round1.c (main): Remove signbit tests.
14781         * modules/round-tests (Depends-on): Remove 'signbit'.
14782         * doc/posix-functions/round.texi: Mention the new module.
14783
14784 2010-12-21  Bruno Haible  <bruno@clisp.org>
14785
14786         New module 'trunc-ieee'.
14787         * modules/trunc-ieee: New file.
14788         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14789         whether trunc works according to ISO C 99 with IEC 60559.
14790         * m4/trunc-ieee.m4: New file.
14791         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14793         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14794         * modules/trunc-ieee-tests: New file.
14795         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14796         * tests/test-trunc1.c (main): Remove signbit tests.
14797         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14798         * doc/posix-functions/trunc.texi: Mention the new module.
14799
14800 2010-12-21  Bruno Haible  <bruno@clisp.org>
14801
14802         New module 'ceil-ieee'.
14803         * modules/ceil-ieee: New file.
14804         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14805         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14806         ISO C 99 with IEC 60559.
14807         * m4/ceil-ieee.m4: New file.
14808         * modules/ceil (Files): Add lib/ceil.c.
14809         (Depends-on): Add 'float'.
14810         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14811         * lib/math.in.h (ceil): New declaration.
14812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14813         REPLACE_CEIL.
14814         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14815         * modules/ceil-ieee-tests: New file.
14816         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14817         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14818         * doc/posix-functions/ceil.texi: Mention the new module.
14819
14820 2010-12-21  Bruno Haible  <bruno@clisp.org>
14821
14822         New module 'floor-ieee'.
14823         * modules/floor-ieee: New file.
14824         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14825         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14826         ISO C 99 with IEC 60559.
14827         * m4/floor-ieee.m4: New file.
14828         * modules/floor (Files): Add lib/floor.c.
14829         (Depends-on): Add 'float'.
14830         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14831         * lib/math.in.h (floor): New declaration.
14832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14833         REPLACE_FLOOR.
14834         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14835         * modules/floor-ieee-tests: New file.
14836         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14837         * tests/test-math-c++.cc: Check the signature of 'floor'.
14838         * doc/posix-functions/floor.texi: Mention the new module.
14839
14840 2010-12-21  Bruno Haible  <bruno@clisp.org>
14841
14842         New module 'roundf-ieee'.
14843         * modules/roundf-ieee: New file.
14844         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14845         test whether roundf works according to ISO C 99 with IEC 60559.
14846         * m4/roundf-ieee.m4: New file.
14847         * modules/roundf-ieee-tests: New file.
14848         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14849         * tests/test-roundf1.c (main): Remove signbit tests.
14850         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14851         * doc/posix-functions/roundf.texi: Mention the new module.
14852
14853 2010-12-21  Bruno Haible  <bruno@clisp.org>
14854
14855         New module 'truncf-ieee'.
14856         * modules/truncf-ieee: New file.
14857         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14858         test whether truncf works according to ISO C 99 with IEC 60559.
14859         * m4/truncf-ieee.m4: New file.
14860         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14862         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14863         * modules/truncf-ieee-tests: New file.
14864         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14865         * tests/test-truncf1.c (main): Remove signbit tests.
14866         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14867         * doc/posix-functions/truncf.texi: Mention the new module.
14868
14869 2010-12-21  Bruno Haible  <bruno@clisp.org>
14870
14871         New module 'ceilf-ieee'.
14872         * modules/ceilf-ieee: New file.
14873         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14874         test whether ceilf works according to ISO C 99 with IEC 60559.
14875         * m4/ceilf-ieee.m4: New file.
14876         * modules/ceilf-ieee-tests: New file.
14877         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14878         * tests/test-ceilf1.c (main): Remove signbit tests.
14879         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14880         * doc/posix-functions/ceilf.texi: Mention the new module.
14881
14882 2010-12-21  Bruno Haible  <bruno@clisp.org>
14883
14884         New module 'floorf-ieee'.
14885         * modules/floorf-ieee: New file.
14886         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14887         test whether floorf works according to ISO C 99 with IEC 60559.
14888         * m4/floorf-ieee.m4: New file.
14889         * modules/floorf-ieee-tests: New file.
14890         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14891         * tests/test-floorf1.c (main): Remove signbit tests.
14892         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14893         * doc/posix-functions/floorf.texi: Mention the new module.
14894
14895 2010-12-21  Bruno Haible  <bruno@clisp.org>
14896
14897         Support for minus zero in autoconf macros.
14898         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14899         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14900         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14901         * tests/minus-zero.h: Update comments.
14902
14903 2010-12-21  Bruno Haible  <bruno@clisp.org>
14904
14905         Tests for module 'ceil'.
14906         * modules/ceil-tests: New file.
14907         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14908         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14909
14910 2010-12-21  Bruno Haible  <bruno@clisp.org>
14911
14912         Tests for module 'floor'.
14913         * modules/floor-tests: New file.
14914         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14915         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14916
14917 2010-12-21  Bruno Haible  <bruno@clisp.org>
14918
14919         math: Fix indentation.
14920         * lib/math.in.h (floorf): Fix indentation.
14921
14922 2010-12-21  Bruno Haible  <bruno@clisp.org>
14923
14924         Fix cross-compilation guesses on Solaris.
14925         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14926         not match "solaris2.10".
14927         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14928         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14929         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14930
14931 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14932
14933         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14934         This fixes a problem observed with the latest coreutils snapshot
14935         that caused a test to fail on Solaris 8.  src/csplit.c's call
14936         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14937         earlier, instead of returning the number of bytes that would have
14938         been generated; this causes csplit to incorrectly report memory
14939         exhaustion.
14940         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14941         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14942         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14943         comments to match.
14944         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14945         Fix typo in matching older versions of Solaris: "solaris2.10"
14946         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14947         only for guessing while cross-compiling.
14948         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14949
14950 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14951
14952         ftoastr: fix comment again
14953         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14954         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14955         Also, simplify example a bit by using flags = 0.
14956
14957 2010-12-20  Bruno Haible  <bruno@clisp.org>
14958
14959         round*, trunc*: Update documentation regarding glibc.
14960         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14961         * doc/posix-functions/round.texi: Likewise.
14962         * doc/posix-functions/roundl.texi: Likewise.
14963         * doc/posix-functions/truncf.texi: Likewise.
14964         * doc/posix-functions/trunc.texi: Likewise.
14965         * doc/posix-functions/truncl.texi: Likewise.
14966
14967 2010-12-20  Bruno Haible  <bruno@clisp.org>
14968
14969         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14970         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14971         * doc/posix-functions/round.texi: Likewise.
14972         * doc/posix-functions/roundl.texi: Likewise.
14973
14974 2010-12-20  Bruno Haible  <bruno@clisp.org>
14975
14976         ttyname_r: Add missing declaration on HP-UX 11.
14977         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14978         HAVE_TTYNAME_R.
14979         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14980         declared. Set HAVE_TTYNAME_R always.
14981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14982         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14983         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14984         HAVE_TTYNAME_R.
14985         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14986
14987 2010-12-20  Bruno Haible  <bruno@clisp.org>
14988
14989         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14990         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14991         * doc/posix-functions/getlogin_r.texi: Likewise.
14992         * tests/test-getlogin.c: Include <errno.h>.
14993         (main): Avoid test failure on HP-UX 11.11.
14994         * tests/test-getlogin_r.c (main): Likewise.
14995
14996 2010-12-20  Bruno Haible  <bruno@clisp.org>
14997
14998         getlogin_r: Add missing declaration on HP-UX 11.
14999         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
15000         declared also when it exists as a function.
15001         * doc/posix-functions/getlogin_r.texi: Document this workaround.
15002
15003 2010-12-20  Bruno Haible  <bruno@clisp.org>
15004
15005         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
15006         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
15007         through wcrtomb.
15008
15009 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15010
15011         ftoastr: fix comment
15012         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15013         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
15014
15015 2010-12-19  Bruno Haible  <bruno@clisp.org>
15016
15017         isnan: Ensure it is a macro.
15018         * lib/math.in.h (isnan): Define as a macro if not already a macro.
15019         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
15020         Solaris.
15021
15022 2010-12-19  Bruno Haible  <bruno@clisp.org>
15023
15024         ldexpl test: Fix link error on OSF/1 5.1.
15025         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
15026
15027 2010-12-19  Bruno Haible  <bruno@clisp.org>
15028
15029         wctype: Make it work in C++ mode on OSF/1 5.1.
15030         * lib/wctype.in.h (iswblank): Declare but not define here.
15031         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
15032         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
15033         * modules/wctype (Files): Add lib/iswblank.c.
15034
15035 2010-12-19  Bruno Haible  <bruno@clisp.org>
15036
15037         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
15038         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
15039         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
15040
15041 2010-12-19  Bruno Haible  <bruno@clisp.org>
15042
15043         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
15044         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
15045         _POSIX_PII_SOCKET.
15046         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
15047         * doc/posix-functions/recvfrom.texi: Likewise.
15048         * doc/posix-functions/send.texi: Likewise.
15049         * doc/posix-functions/sendto.texi: Likewise.
15050
15051 2010-12-19  Bruno Haible  <bruno@clisp.org>
15052
15053         tcgetsid: Add missing declaration on OSF/1 5.1.
15054         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
15055         HAVE_TCGETSID.
15056         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
15057         Don't set HAVE_TCGETSID.
15058         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
15059         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
15060         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
15061         HAVE_TCGETSID.
15062         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
15063
15064 2010-12-19  Bruno Haible  <bruno@clisp.org>
15065
15066         stdio: Fix problem with popen() declaration on OSF/1 5.1.
15067         * lib/stdio.in.h: During the include_next statement, let recursive
15068         includes of this file include only the system header file.
15069
15070 2010-12-19  Bruno Haible  <bruno@clisp.org>
15071
15072         iconv_open: Fix regression from 2010-12-04.
15073         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
15074         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
15075
15076 2010-12-19  Bruno Haible  <bruno@clisp.org>
15077
15078         stdbool test: Avoid a gcc warning.
15079         * tests/test-stdbool.c (main): Fail if e1 is false.
15080         Reported by Jim Meyering.
15081
15082 2010-12-19  Jim Meyering  <meyering@redhat.com>
15083
15084         setenv: restore to working order
15085         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
15086         mistakenly removed.
15087         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
15088         HAVE_SETENV.
15089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
15090         HAVE_SETENV.
15091
15092 2010-12-19  Bruno Haible  <bruno@clisp.org>
15093
15094         Document some different function declarations on OSF/1 5.1.
15095         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
15096         * doc/posix-functions/inet_ntop.texi: Likewise.
15097         * doc/posix-functions/gethostname.texi: Likewise.
15098         * lib/unistd.in.h (gethostname): Update comment.
15099
15100 2010-12-19  Bruno Haible  <bruno@clisp.org>
15101
15102         doc: Mention vasprintf-posix module.
15103         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
15104         the 'vasprintf-posix' module.
15105         * doc/glibc-functions/vasprintf.texi: Likewise.
15106
15107 2010-12-19  Bruno Haible  <bruno@clisp.org>
15108
15109         unsetenv: Add missing declaration on OSF/1 5.1.
15110         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
15111         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
15112         Don't set HAVE_UNSETENV. In the test program, set _BSD.
15113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
15114         not HAVE_UNSETENV.
15115         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
15116         HAVE_UNSETENV.
15117         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
15118
15119 2010-12-19  Bruno Haible  <bruno@clisp.org>
15120
15121         setenv: Add missing declaration on OSF/1 5.1.
15122         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
15123         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
15124         declared. Don't set HAVE_SETENV.
15125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
15126         not HAVE_SETENV.
15127         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
15128         HAVE_SETENV.
15129         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
15130
15131 2010-12-19  Bruno Haible  <bruno@clisp.org>
15132
15133         nl_langinfo tests: Avoid gcc warning.
15134         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
15135
15136 2010-12-19  Bruno Haible  <bruno@clisp.org>
15137
15138         mknod: Avoid error in C++ mode on OSF/1 with GCC.
15139         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
15140         _GL_CXXALIAS_SYS.
15141
15142 2010-12-19  Bruno Haible  <bruno@clisp.org>
15143
15144         stdbool: Relax test.
15145         * tests/test-stdbool.c (e): Don't require that casts from a variable's
15146         address to 'bool' work in static initializer, for compilers other than
15147         GCC.
15148
15149 2010-12-19  Bruno Haible  <bruno@clisp.org>
15150
15151         ftello: Add missing declaration on OSF/1 5.1.
15152         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
15153         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
15154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
15155         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
15156         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
15157
15158 2010-12-19  Bruno Haible  <bruno@clisp.org>
15159
15160         fseeko: Add missing declaration on OSF/1 5.1.
15161         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
15162         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
15163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
15164         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
15165         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
15166
15167 2010-12-19  Bruno Haible  <bruno@clisp.org>
15168
15169         fchdir: Add missing declaration on OSF/1 5.1.
15170         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
15171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
15172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
15173         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
15174         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
15175
15176 2010-12-19  Bruno Haible  <bruno@clisp.org>
15177
15178         relocatable-prog-wrapper: Separate from relocatable-prog.
15179         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
15180         uninstall-relocwrapper rule here.
15181         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
15182         Reported by Ian Beckwith <ianb@erislabs.net>.
15183
15184 2010-12-19  Bruno Haible  <bruno@clisp.org>
15185
15186         unistr/u8-mbsnlen: Add missing dependency.
15187         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
15188         Reported by Ian Beckwith <ianb@erislabs.net>.
15189
15190 2010-12-19  Bruno Haible  <bruno@clisp.org>
15191
15192         iconv: Make it possible again to use this module without 'iconv-h'.
15193         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
15194         if it is not defined.
15195         Reported by Ian Beckwith <ianb@erislabs.net>.
15196
15197 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15198
15199         acl: port to Solaris 8 when copying from tmpfs to ufs
15200         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
15201         error number.  Problem observed on Solaris 8 with latest
15202         coreutils, with "mv A B", where A is on a tmpfs file system and B
15203         is on a ufs file system.  This caused coreutils' mv/part-symlink
15204         test to fail.
15205
15206         tests: set fail=0 at start
15207         * tests/init.sh (setup_): Move fail=0 initialization here ...
15208         (mktempd_): ... from here, so that tests can rely on fail being
15209         set to 0 initially.  This fixes a problem in coreutils; see:
15210         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
15211
15212 2010-12-18  Bruno Haible  <bruno@clisp.org>
15213
15214         memmem-simple: Stylistic changes.
15215         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
15216         Fix preprocessor directive indentation.
15217
15218 2010-12-15  Pádraig Brady <P@draigBrady.com>
15219
15220         memmem, memmem-simple: reorganize and expand empty needle check
15221         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
15222         functional checks to memmem-simple so that one has a fully functional
15223         memmem by using just this module.
15224         Restrict the performance only check to the memmem module.
15225         Also expand the empty needle check to ensure the correct
15226         pointer is returned, not just a non NULL pointer.
15227         * doc/glibc-functions/memmem.texi: Rearrange the portability
15228         documentation to correlate with the rearranged checks.
15229         Clarify exactly how the memmem and memmem-simple modules
15230         relate to each other.
15231
15232 2010-12-15  Pádraig Brady <P@draigBrady.com>
15233             Bruno Haible  <bruno@clisp.org>
15234
15235         Improve cross-compilation guesses for uClibc.
15236         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
15237         that uClibc does not have the glibc bug.
15238         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
15239         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
15240
15241 2010-12-14  Eric Blake  <eblake@redhat.com>
15242
15243         configmake: provide fallbacks for oldest supported autotools
15244         * m4/configmake.m4: New file.
15245         * modules/configmake (Files): Ship it.
15246         (configure.ac): Use it to guarantee fallbacks.
15247
15248 2010-12-13  Pádraig Brady <P@draigBrady.com>
15249
15250         read-file: Improve handling of large files
15251         * lib/read-file.c (fread_file): Minimize realloc()s
15252         for regular files, and better manage sizes around SIZE_MAX.
15253
15254 2010-12-13  Eric Blake  <eblake@redhat.com>
15255
15256         cloexec, fcntl: relax license
15257         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15258         consent from all contributors.
15259         * modules/fcntl (License): Likewise.
15260
15261 2010-12-10  Bruno Haible  <bruno@clisp.org>
15262
15263         Tests for module 'pipe-posix'.
15264         * modules/pipe-posix-tests: New file.
15265         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
15266
15267 2010-12-10  Bruno Haible  <bruno@clisp.org>
15268
15269         pipe-posix: Make it work in C++ mode.
15270         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
15271         (pipe): Use common idiom, not a macro definition.
15272         * lib/pipe.c: New file.
15273         * m4/pipe.m4: New file.
15274         * modules/pipe-posix (Description): Enhance.
15275         (Files): Add lib/pipe.c, m4/pipe.m4.
15276         (configure.ac): Invoke gl_FUNC_PIPE.
15277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
15278         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
15279         * tests/test-unistd-c++.cc: Check the signature of pipe.
15280
15281 2010-12-10  Bruno Haible  <bruno@clisp.org>
15282
15283         Rename module 'pipe' to 'spawn-pipe'.
15284         * modules/spawn-pipe: New file, renamed from modules/pipe.
15285         (Files, configure.ac, Makefile.am): Update.
15286         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
15287         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
15288         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
15289         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
15290         "spawn-pipe.h" instead of "pipe.h".
15291         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
15292         to gl_SPAWN_PIPE.
15293         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
15294         (Files, Makefile.am): Update.
15295         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
15296         Update.
15297         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
15298         Include "spawn-pipe.h" instead of "pipe.h".
15299         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
15300         * lib/javacomp.c: Likewise.
15301         * lib/javaversion.c: Likewise.
15302         * lib/pipe-filter-gi.c: Likewise.
15303         * lib/pipe-filter-ii.c: Likewise.
15304         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
15305         * modules/javacomp (Depends-on): Likewise.
15306         * modules/javaversion (Depends-on): Likewise.
15307         * modules/pipe-filter-gi (Depends-on): Likewise.
15308         * modules/pipe-filter-ii (Depends-on): Likewise.
15309         * MODULES.html.sh (Executing programs): Update.
15310         * NEWS: Mention the change.
15311
15312 2010-12-10  Eric Blake  <eblake@redhat.com>
15313
15314         pipe-posix: new module
15315         * modules/pipe-posix: New file.
15316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
15317         (gl_UNISTD_H): Check for declaration.
15318         * modules/unistd (Makefile.am): Substitute it.
15319         * lib/unistd.in.h (pipe): Provide it for mingw.
15320         * doc/posix-functions/pipe.texi (pipe): Update documentation.
15321         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
15322
15323 2010-12-07  Bruno Haible  <bruno@clisp.org>
15324
15325         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
15326         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
15327         u8_strcmp_gnu.
15328         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
15329
15330 2010-12-06  Bruno Haible  <bruno@clisp.org>
15331
15332         Update internal documentation.
15333         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
15334
15335 2010-12-04  Bruno Haible  <bruno@clisp.org>
15336
15337         Put more information about failed tests into the test return codes.
15338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
15339         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
15340         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15342         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15343         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15344         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15345         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15346         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
15347         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15348         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
15349         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15350         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15351         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15352         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
15353         returns a bit mask.
15354         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15355         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
15356         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
15357         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
15358         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15359         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15361         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15362         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15363         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15364         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15365         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15366         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15367         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15368         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15369         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15370         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
15371         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
15372         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15373         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
15374         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15375         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15376         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15377         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15378         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15379         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15380         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
15381         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15382         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15383         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
15384         gl_PRINTF_PRECISION): Likewise.
15385         * m4/regex.m4 (gl_REGEX): Likewise.
15386         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15387         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15388         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
15389         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15390         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15392         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15393         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
15394         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15395         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15396         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15397         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15398         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15399         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15400         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15401         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15402         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15403         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15405         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
15406         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
15407         enumerated value.
15408         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
15409
15410 2010-12-04  Bruno Haible  <bruno@clisp.org>
15411
15412         Update for Solaris 11 2010-11.
15413         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
15414         Express, released in November 2010.
15415
15416 2010-12-04  Bruno Haible  <bruno@clisp.org>
15417
15418         nproc: Relax license.
15419         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
15420         and Paul Eggert.
15421         Requested by Ludovic Courtès <ludo@gnu.org>.
15422
15423 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15424
15425         utimecmp: fine-grained src to nearby coarse-grained dest
15426
15427         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
15428         and the source is on a file system with higher-resolution time
15429         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15430         not work, and the time stamps are close together, the algorithm to
15431         determine the exact resolution from the read-back mtime was buggy:
15432         it had a "!=" where it should have had an "==".  This bug has been
15433         in the code ever since it was introduced to gnulib.
15434         Problem reported by Dan Jacobson in
15435         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
15436
15437 2010-11-30  Bruno Haible  <bruno@clisp.org>
15438
15439         strerror_r-posix: Fix autoconf test.
15440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
15441
15442 2010-11-28  Bruno Haible  <bruno@clisp.org>
15443             Paul Eggert  <eggert@cs.ucla.edu>
15444
15445         Tests for module 'getdomainname'.
15446         * modules/getdomainname-tests: New file.
15447         * tests/test-getdomainname.c: New file, based on
15448         tests/test-gethostname.c.
15449
15450 2010-11-28  Bruno Haible  <bruno@clisp.org>
15451             Paul Eggert  <eggert@cs.ucla.edu>
15452
15453         getdomainname: Use the system function when possible.
15454         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
15455         (getdomainname): Replace if needed. Provide the declaration if it is
15456         missing. Don't use _GL_CXXALIAS_SYS_CAST.
15457         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
15458         (getdomainname): When the system has getdomainname, call the system
15459         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
15460         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15461         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
15462         found in libnsl. Look for the declaration also in <netdb.h>. Replace
15463         the function if its second argument is of type 'int' or if it is found
15464         in libnsl.
15465         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
15466         <sys/systeminfo.h> and sysinfo().
15467         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
15468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15469         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
15470         HAVE_GETDOMAINNAME.
15471         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
15472         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
15473         * doc/glibc-functions/getdomainname.texi: Document the problems with
15474         the getdomainname declaration.
15475
15476 2010-11-28  Bruno Haible  <bruno@clisp.org>
15477
15478         sys_socket: Ensure ss_family field on AIX.
15479         * lib/sys_socket.in.h (ss_family): New macro definition.
15480         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
15481         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
15482         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15483         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15484         * modules/sys_socket (Makefile.am): Substitute
15485         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15486         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
15487
15488 2010-11-27  Bruno Haible  <bruno@clisp.org>
15489
15490         readline: Improve configure output.
15491         * m4/readline.m4 (gl_FUNC_READLINE): Make the
15492         "checking for readline..." result understandable.
15493
15494 2010-11-27  Bruno Haible  <bruno@clisp.org>
15495
15496         *printf-posix: Detect a bug on Solaris 10/x86.
15497         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
15498         for floating-point output.
15499         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
15500         directive.
15501         * tests/test-snprintf-posix.h (test_function): Likewise.
15502         * tests/test-sprintf-posix.h (test_function): Likewise.
15503         * tests/test-vasprintf-posix.c (test_function): Likewise.
15504         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
15505         * doc/posix-functions/printf.texi: Likewise.
15506         * doc/posix-functions/snprintf.texi: Likewise.
15507         * doc/posix-functions/sprintf.texi: Likewise.
15508         * doc/posix-functions/vfprintf.texi: Likewise.
15509         * doc/posix-functions/vprintf.texi: Likewise.
15510         * doc/posix-functions/vsnprintf.texi: Likewise.
15511         * doc/posix-functions/vsprintf.texi: Likewise.
15512         * doc/glibc-functions/obstack_printf.texi: Likewise.
15513         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15514
15515 2010-11-27  Bruno Haible  <bruno@clisp.org>
15516
15517         Fix link error when module libunistring-optional is in use.
15518         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15519         * modules/striconveha-tests (Makefile.am): Likewise.
15520
15521 2010-11-27  Bruno Haible  <bruno@clisp.org>
15522
15523         regex: Mention link dependencies.
15524         * modules/regex (Link): New section.
15525         * modules/rpmatch (Link): Likewise.
15526         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15527
15528 2010-11-27  Bruno Haible  <bruno@clisp.org>
15529
15530         ftoastr: Fix compilation error on Solaris.
15531         * lib/ftoastr.c: Include <config.h>.
15532
15533 2010-11-27  Bruno Haible  <bruno@clisp.org>
15534
15535         getloadavg: Update documentation.
15536         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15537
15538 2010-11-27  Bruno Haible  <bruno@clisp.org>
15539
15540         sys_socket: Fix test whether the functions are declared.
15541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15542         not <sys/select.h>.
15543
15544 2010-11-27  Bruno Haible  <bruno@clisp.org>
15545
15546         getpass: Make sure to get system declaration on some platforms.
15547         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15548         gl_USE_SYSTEM_EXTENSIONS.
15549         * modules/getpass (Depends-on): Add extensions.
15550
15551 2010-11-26  Bruno Haible  <bruno@clisp.org>
15552
15553         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15554         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15555         'iconv' module is present.
15556         (ICONV_CONST): New macro.
15557         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15558         ICONV_CONST.
15559         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15560         set ICONV_CONST.
15561         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15562         here.
15563         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15564         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15565         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15566         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15567         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15568         present.
15569
15570 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15571
15572         ftoastr: comment fix
15573         * lib/ftoastr.c: "little" -> "little or no" in comment
15574
15575 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15576
15577         stdint: port to GCC 4.3 + OSX + Octave
15578         On this platform, stdint.h is buggy and defines int64_t to long
15579         long int.  The replacement defined it to long int, causing
15580         problems with C++ style name mangling.  Instead, trust the system
15581         definition if INT64_MAX is defined, and likewise for the unsigned
15582         variant.   Problem reported by Jarno Rajahalme in
15583         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15584         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15585         and don't mess with int64_t and INT64_MAX in this case.
15586         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15587
15588 2010-11-24  Bruno Haible  <bruno@clisp.org>
15589
15590         doc: Corrections regarding MacOS X 10.4 and 10.5.
15591         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15592         MacOS X.
15593         Reported by Simon Josefsson.
15594
15595 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15596
15597         Uninstall ".bin" files installed by relocwrapper.
15598         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15599         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15600         unless it is already there.
15601
15602 2010-11-21  Bruno Haible  <bruno@clisp.org>
15603
15604         Update for NetBSD 5.0.
15605         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15606         NetBSD; the test fails on NetBSD 5.0.
15607         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15608         about NetBSD.
15609
15610 2010-11-21  Bruno Haible  <bruno@clisp.org>
15611
15612         Update for HP-UX 11.23 and HP-UX 11.31.
15613         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15614         HP-UX.
15615
15616 2010-11-21  Bruno Haible  <bruno@clisp.org>
15617
15618         Update for MacOS X 10.5.
15619         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15620         MacOS X; the test fails on MacOS X 10.5.8.
15621         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15622         about MacOS X.
15623
15624 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15625
15626         bootstrap: add bootstrap_sync option.
15627         See discussion at
15628         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15629         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15630         * build-aux/bootstrap: Accept --bootstrap-sync to update
15631         bootstrap if it is not identical to the local gnulib's
15632         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15633         enable this by default.  Accept --no-bootstrap-sync to disable
15634         it.
15635
15636 2010-11-20  Bruno Haible  <bruno@clisp.org>
15637
15638         Ensure that <features.h> is included before __GLIBC__ is tested.
15639         * lib/printf-parse.h: Include <features.h>.
15640         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15641         Reported by Mike Frysinger <vapier@gentoo.org>.
15642
15643         Ensure that <features.h> is included before __GLIBC__ is tested.
15644         * lib/wchar.in.h: Include <features.h>.
15645         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15646         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15647         Reported by Mike Frysinger <vapier@gentoo.org>.
15648
15649         Ensure that <features.h> is included before __GLIBC__ is tested.
15650         * lib/arpa_inet.in.h: Include <features.h>.
15651         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15652         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15653         Reported by Mike Frysinger <vapier@gentoo.org>.
15654
15655         Ensure that <features.h> is included before __GLIBC__ is tested.
15656         * build-aux/link-warning.h: Include <features.h>.
15657         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15658         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15659         Reported by Mike Frysinger <vapier@gentoo.org>.
15660
15661         Ensure that <features.h> is included before __GLIBC__ is tested.
15662         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15663         Reported by Mike Frysinger <vapier@gentoo.org>.
15664
15665 2010-11-20  Bruno Haible  <bruno@clisp.org>
15666
15667         memmem: Fix autoconf test.
15668         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15669
15670 2010-11-20  Bruno Haible  <bruno@clisp.org>
15671
15672         Port to uClibc.
15673         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15674         * lib/fcntl.in.h: Likewise.
15675         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15676         * lib/mbrtowc.c (mbrtowc): Likewise.
15677         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15678         * lib/strerror_r.c: Likewise.
15679         * lib/unistr/u8-strnlen.c: Likewise.
15680         * lib/vasnprintf.c (decimal_point_char): Likewise.
15681         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15682         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15683         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15684         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15685         * tests/test-sigaction.c (handler, main): Likewise.
15686         * lib/freading.h: Treat uClibc like a non-glibc platform.
15687         * lib/freading.c: Likewise.
15688         * lib/gettext.h: Likewise.
15689         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15690         Likewise.
15691         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15692         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15693         * lib/propername.c (proper_name_utf8): Likewise.
15694         * lib/spawn.in.h: Likewise.
15695         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15696         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15697         mem_cd_iconveh_internal): Likewise.
15698         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15699         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15700         strstr, strcasestr): Likewise.
15701         * lib/unicodeio.c (unicode_to_mb): Likewise.
15702         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15703         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15704         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15705         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15706         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15707         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15708         * lib/unistr/u8-stpncpy.c: Likewise.
15709         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15710         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15711         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15712         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15713         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15714         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15715         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15716         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15717         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15718         Likewise.
15719         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15720         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15721         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15722         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15723         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15724         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15725         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15726         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15727         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15728         * tests/test-striconveha.c (main): Likewise.
15729         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15730         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15731         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15732         * doc/posix-functions/getline.texi: Likewise.
15733         Reported by Mike Frysinger <vapier@gentoo.org>.
15734
15735 2010-11-20  Bruno Haible  <bruno@clisp.org>
15736
15737         nproc: Fix condition.
15738         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15739         HAVE_PTHREAD_AFFINITY_NP.
15740
15741 2010-11-20  Bruno Haible  <bruno@clisp.org>
15742
15743         Fix a comment.
15744         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15745
15746 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15747
15748         ftoastr: don't assume snprintf
15749         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15750         Implement a subset of snprintf here, by using sprintf safely.
15751         * modules/ftoastr (Depends-on): Remove snprintf.
15752
15753 2010-11-19  Jim Meyering  <meyering@redhat.com>
15754
15755         test-rename.h: fix compilation failure
15756         * tests/test-rename.h (test_rename): Add omitted "}".
15757
15758 2010-11-17  Jim Meyering  <meyering@redhat.com>
15759
15760         maint.mk: add a URL discussing the no-@acronym policy
15761         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15762
15763 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15764
15765         ftoastr: depend on snprintf, improve comments
15766         * lib/ftoastr.c: Also mention Loitsch's draft.
15767         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15768         needed in the current implementation, but it might simplify
15769         speeding up the code later.
15770         * modules/ftoastr: Depend on snprintf; this improves portability.
15771         Suggested by Bruno Haible in the same email.
15772
15773         ftoastr: port to hosts lacking strtof and strtold
15774         Problem reported by Bruno Haible in
15775         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15776         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15777         environment and strtold (and presumably strtof) are not available.
15778         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15779         (configure.ac): Require gl_C99_STRTOLD.
15780
15781 2010-11-18  Bruno Haible  <bruno@clisp.org>
15782
15783         c-strtold: Avoid link error on AIX 7.
15784         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15785         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15786         (gl_C_STRTOLD): Test whether strtold_l exists.
15787         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15788
15789 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15790
15791         intprops: new macro INT_BITS_STRLEN_BOUND
15792         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15793         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15794         not exposed.  Also, it uses a slightly tighter bound than before;
15795         though this makes no practical difference, we might as well be as
15796         tight as we easily can.
15797
15798         ftoastr: new module, for lossless conversion of floats to short strings
15799         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15800         * modules/ftoastr: New files.
15801
15802 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15803
15804         bootstrap: port to Solaris sed
15805         * build-aux/bootstrap (get_version): Port to Solaris sed.
15806         See Ralf Wildenhues's note in
15807         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15808
15809 2010-11-14  Jim Meyering  <meyering@redhat.com>
15810
15811         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15812         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15813         and move definition closer to sole use.
15814
15815 2010-11-13  Jim Meyering  <meyering@redhat.com>
15816
15817         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15818         Now we require at least autoconf-2.59, which means the work-around
15819         is no longer needed.
15820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15821         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15822         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15823         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15824         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15825
15826 2010-11-13  Bruno Haible  <bruno@clisp.org>
15827
15828         rename, renameat: Avoid test failures at NFS mounted locations.
15829         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15830         functions.
15831         (test_rename): Use assert_nonexistent.
15832         * tests/test-rename.c: Include <dirent.h>.
15833         * tests/test-renameat.c: Likewise.
15834         Reported by Gary V. Vaughan <gary@gnu.org>.
15835
15836         rename, renameat: Document Linux bug with NFS
15837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15838         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15839         * doc/posix-functions/renameat.texi: Likewise.
15840         Suggested by Eric Blake.
15841
15842 2010-11-13  Bruno Haible  <bruno@clisp.org>
15843
15844         rename test: Add comments.
15845         * tests/test-rename.h (test_rename): Add structure and comments.
15846
15847 2010-11-13  Eric Blake  <eblake@redhat.com>
15848
15849         maintainer-makefile: cover a few more files
15850         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15851         scripts generated within C files, for libvirt.
15852
15853 2010-11-13  Bruno Haible  <bruno@clisp.org>
15854
15855         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15856         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15857         character, return the number of bytes that belong together, not always
15858         1.
15859         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15860         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15861         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15862         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15863         number of bytes of an invalid character.
15864         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15865         (main): Invoke it.
15866         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15867         results.
15868         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15869         malformed byte sequences.
15870         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15871         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15872         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15873         Reported by Ben Pfaff and Paolo Bonzini.
15874
15875 2010-11-13  Bruno Haible  <bruno@clisp.org>
15876
15877         openat: Work around glibc bug with fchownat() and empty file names.
15878         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15879         (gl_FUNC_FCHOWNAT): Invoke it.
15880         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15881         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15882         Reported by Gary V. Vaughan <gary@gnu.org>.
15883
15884 2010-11-13  Bruno Haible  <bruno@clisp.org>
15885
15886         openat: Ensure autoconf macro ordering.
15887         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15888         gl_USE_SYSTEM_EXTENSIONS.
15889         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15890
15891 2010-11-13  Bruno Haible  <bruno@clisp.org>
15892
15893         Update comments.
15894         * lib/unistr/u8-check.c: Update file name in comments.
15895         * lib/unistr/u8-mblen.c: Likewise.
15896         * lib/unistr/u8-prev.c: Likewise.
15897         * lib/unistr/u8-strmblen.c: Likewise.
15898         * lib/unistr/u8-strmbtouc.c: Likewise.
15899
15900 2010-11-13  Jim Meyering  <meyering@redhat.com>
15901
15902         tests: avoid test failure on Solaris 10 due to lack of PATH export
15903         * tests/test-update-copyright.sh: Don't forget to export PATH.
15904
15905         init.sh: ensure that IFS is defined, just in case...
15906         * tests/init.sh (setup_): Ensure that IFS is defined,
15907         so that saving and restoring it works as expected.  This
15908         appears to be useful at least for an old version of dash
15909         from a long time ago (RH 6).  See here for details:
15910         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15911
15912         maint.mk: tighten "test a == b" check
15913         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15914         test to files that contain something like #!/bin/sh.
15915         Without this, coreutils would get two false positives in
15916         the comments of C source files.
15917
15918 2010-11-12  Eric Blake  <eblake@redhat.com>
15919
15920         bootstrap: fix typo in previous attempt
15921         * build-aux/bootstrap (buildreq): Correct the grouping.
15922         Reported by Paul Eggert.
15923
15924         maintainer-makefile: prohibit test x == x
15925         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15926         Based on a report by Matthias Bolte.
15927
15928         bootstrap: allow FreeBSD gzip
15929         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15930         which has no '.' and goes to stderr.
15931         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15932         Reported by Matthias Bolte.
15933
15934         maintainer-makefile: check for i18n setup
15935         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15936         will likely work.
15937
15938 2010-11-12  Bruno Haible  <bruno@clisp.org>
15939
15940         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15941         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15942         * lib/nanosleep.c (nanosleep): Likewise.
15943
15944 2010-11-11  Bruno Haible  <bruno@clisp.org>
15945
15946         fcntl-h: Fix for use of C++ on glibc systems.
15947         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15948         also on glibc systems in C++ mode.
15949         Reported by Gary V. Vaughan <gary@gnu.org>.
15950
15951 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15952
15953         mknod: avoid false failure with dash
15954         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15955
15956 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15957
15958         unlink: Fix "is it should" typo in diagnostic.
15959         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15960         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15961
15962 2010-11-11  Bruno Haible  <bruno@clisp.org>
15963
15964         Tests for module 'strerror_r-posix'.
15965         * modules/strerror_r-posix-tests: New file.
15966         * tests/test-strerror_r.c: New file.
15967         * tests/test-string-c++.cc: Check the signature of strerror_r.
15968
15969         New module 'strerror_r-posix'.
15970         * lib/string.in.h (strerror_r): New declaration.
15971         * lib/strerror_r.c: New file.
15972         * m4/strerror_r.m4: New file.
15973         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15974         of strerror_r.
15975         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15976         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15977         * modules/strerror_r-posix: New file.
15978         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15979         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15980         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15981         portability problems.
15982
15983 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15984
15985         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15986         line is also considered for output. Quoted function name in shell
15987         command, so temporary files for functions like MyClass::operator()
15988         are removed correctly without errors.
15989
15990 2010-11-09  Bruno Haible  <bruno@clisp.org>
15991
15992         * doc/posix-functions/strerror.texi: List more failing platforms.
15993
15994         * doc/posix-functions/strerror.texi: Add a comment.
15995
15996 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15997
15998         fdopendir: fix bug on MacOS X when low on file descriptors
15999
16000         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
16001         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
16002         All callers changed.
16003         (fdopendir): Invoke save_cwd at the top level, not after using
16004         multiple dup() calls to use up file descriptors.  Then retry
16005         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
16006         less than the maximum number of open file descriptors, because
16007         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
16008         on Mac OS X 10.6.4 for tar 1.24
16009         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
16010         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
16011         and for tar 1.25
16012         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
16013
16014 2010-11-07  Bruno Haible  <bruno@clisp.org>
16015
16016         vasnprintf: Support I flag on glibc systems.
16017         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
16018         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
16019         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
16020         snprintf function.
16021         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
16022         glibc systems.
16023         * tests/test-vasnprintf-posix3.c: New file.
16024         * modules/vasnprintf-posix-tests (Files): Add it.
16025         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
16026
16027 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16028
16029         [html] Fix copy/paste bug: Use unique name for compiler warnings.
16030         * MODULES.html.sh: For compiler warnings, use name
16031         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
16032
16033 2010-11-05  Eric Blake  <eblake@redhat.com>
16034
16035         ceil, floor: avoid spurious failure with icc
16036         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
16037         [denormals-as-zero] when optimizing without -mieee-fp option.
16038         * tests/test-floorf2.c (floorf_reference): Likewise.
16039         * tests/test-ceilf1.c (dummy): New function.
16040         (main): Use it to outsmart icc's optimization.
16041         * tests/test-floorf1.c (dummy, main): Likewise.
16042
16043         tests: require working signbit
16044         * modules/ceilf-tests (Depends-on): Add signbit.
16045         * modules/ceill-tests (Depends-on): Likewise.
16046         * modules/floorf-tests (Depends-on): Likewise.
16047         * modules/floorl-tests (Depends-on): Likewise.
16048         * modules/round-tests (Depends-on): Likewise.
16049         * modules/roundf-tests (Depends-on): Likewise.
16050         * modules/roundl-tests (Depends-on): Likewise.
16051         * modules/trunc-tests (Depends-on): Likewise.
16052         * modules/truncf-tests (Depends-on): Likewise.
16053         * modules/truncl-tests (Depends-on): Likewise.
16054
16055         strtod: work around icc bug
16056         * lib/strtod.c (minus_zero): Define to working value.
16057         (strtod): Use it to avoid icc bug.
16058
16059         copysign: enhance tests
16060         * modules/copysign-tests (Files): Add minus-zero.h.
16061         * tests/test-copysign.c (main): Also test zeros.
16062
16063 2010-11-04  Eric Blake  <eblake@redhat.com>
16064
16065         ceil, floor, round, trunc: enhance tests of -0
16066         * tests/test-ceilf1.c (main): Ensure correct sign of result.
16067         * tests/test-ceill.c (main): Likewise.
16068         * tests/test-floorf1.c (main): Likewise.
16069         * tests/test-floorl.c (main): Likewise.
16070         * tests/test-round1.c (main): Likewise.
16071         * tests/test-roundf1.c (main): Likewise.
16072         * tests/test-roundl.c (main): Likewise.
16073         * tests/test-trunc1.c (main): Likewise.
16074         * tests/test-truncf1.c (main): Likewise.
16075         * tests/test-truncl.c (main): Likewise.
16076
16077 2010-11-04  Eric Blake  <eblake@redhat.com>
16078
16079         frexp, tests: work around ICC bug with -zero
16080         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
16081         works with more compilers.
16082         * tests/minus-zero.h: New file.
16083         * modules/ceilf-tests (Files): Include it.
16084         * modules/ceill-tests (Files): Likewise.
16085         * modules/floorf-tests (Files): Likewise.
16086         * modules/floorl-tests (Files): Likewise.
16087         * modules/frexp-nolibm-tests (Files): Likewise.
16088         * modules/frexp-tests (Files): Likewise.
16089         * modules/frexpl-nolibm-tests (Files): Likewise.
16090         * modules/frexpl-tests (Files): Likewise.
16091         * modules/isnan-tests (Files): Likewise.
16092         * modules/isnand-nolibm-tests (Files): Likewise.
16093         * modules/isnand-tests (Files): Likewise.
16094         * modules/isnanf-nolibm-tests (Files): Likewise.
16095         * modules/isnanf-tests (Files): Likewise.
16096         * modules/isnanl-nolibm-tests (Files): Likewise.
16097         * modules/isnanl-tests (Files): Likewise.
16098         * modules/round-tests (Files): Likewise.
16099         * modules/roundf-tests (Files): Likewise.
16100         * modules/roundl-tests (Files): Likewise.
16101         * modules/ldexpl-tests (Files): Likewise.
16102         * modules/signbit-tests (Files): Likewise.
16103         * modules/snprintf-posix-tests (Files): Likewise.
16104         * modules/sprintf-posix-tests (Files): Likewise.
16105         * modules/strtod-tests (Files): Likewise.
16106         * modules/trunc-tests (Files): Likewise.
16107         * modules/truncf-tests (Files): Likewise.
16108         * modules/truncl-tests (Files): Likewise.
16109         * modules/vsnprintf-posix-tests (Files): Likewise.
16110         * modules/vsprintf-posix-tests (Files): Likewise.
16111         * modules/vasnprintf-posix-tests (Files): Likewise.
16112         * modules/vasprintf-posix-tests (Files): Likewise.
16113         * tests/test-ceilf1.c (main): Use it.
16114         * tests/test-ceill.c (main): Likewise.
16115         * tests/test-floorf1.c (main): Likewise.
16116         * tests/test-floorl.c (main): Likewise.
16117         * tests/test-frexp.c (main): Likewise.
16118         * tests/test-frexpl.c (main): Likewise.
16119         * tests/test-isnan.c (main): Likewise.
16120         * tests/test-isnand.h (main): Likewise.
16121         * tests/test-isnanf.h (main): Likewise.
16122         * tests/test-isnanl.h (main): Likewise.
16123         * tests/test-ldexpl.c (main): Likewise.
16124         * tests/test-round.c (main): Likewise.
16125         * tests/test-roundf.c (main): Likewise.
16126         * tests/test-roundl.c (main): Likewise.
16127         * tests/test-signbit.c (test_signbitf, test_signbitd)
16128         (test_signbitl): Likewise.
16129         * tests/test-snprintf-posix.h (test_function): Likewise.
16130         * tests/test-sprintf-posix.h (test_function): Likewise.
16131         * tests/test-strtod.c (main): Likewise.
16132         * tests/test-trunc1.c (main): Likewise.
16133         * tests/test-truncf1.c (main): Likewise.
16134         * tests/test-truncl.c (main): Likewise.
16135
16136         isnanl: work around icc bug
16137         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
16138
16139 2010-11-03  Eric Blake  <eblake@redhat.com>
16140
16141         tests: fix compiler warnings
16142         * tests/test-getopt.h (test_getopt): Fix condition.
16143         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16144         * tests/test-pipe2.c (main): Likewise.
16145         * tests/test-quotearg-simple.c (main): Avoid icc warning.
16146
16147         utimens: fix broken m4 test
16148         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
16149
16150 2010-10-28  Bruno Haible  <bruno@clisp.org>
16151
16152         posix_spawn*, getdtablesize: Relax license.
16153         * modules/posix_spawn (License): Change to LGPLv2+.
16154         * modules/posix_spawnp (License): Likewise.
16155         * modules/posix_spawn-internal (License): Likewise.
16156         * modules/posix_spawnattr_init (License): Likewise.
16157         * modules/posix_spawnattr_getflags (License): Likewise.
16158         * modules/posix_spawnattr_setflags (License): Likewise.
16159         * modules/posix_spawnattr_getpgroup (License): Likewise.
16160         * modules/posix_spawnattr_setpgroup (License): Likewise.
16161         * modules/posix_spawnattr_getschedparam (License): Likewise.
16162         * modules/posix_spawnattr_setschedparam (License): Likewise.
16163         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
16164         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
16165         * modules/posix_spawnattr_getsigdefault (License): Likewise.
16166         * modules/posix_spawnattr_setsigdefault (License): Likewise.
16167         * modules/posix_spawnattr_getsigmask (License): Likewise.
16168         * modules/posix_spawnattr_setsigmask (License): Likewise.
16169         * modules/posix_spawnattr_destroy (License): Likewise.
16170         * modules/posix_spawn_file_actions_init (License): Likewise.
16171         * modules/posix_spawn_file_actions_addclose (License): Likewise.
16172         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
16173         * modules/posix_spawn_file_actions_addopen (License): Likewise.
16174         * modules/posix_spawn_file_actions_destroy (License): Likewise.
16175         * modules/getdtablesize (License): Likewise.
16176         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
16177
16178 2010-10-26  Bruno Haible  <bruno@clisp.org>
16179
16180         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
16181         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
16182         Cygwin and mingw.
16183         Suggested by Eric Blake.
16184
16185 2010-10-26  Bruno Haible  <bruno@clisp.org>
16186
16187         stdio: Work around compilation error due to renameat() on Solaris 10.
16188         * lib/stdio.in.h: Include <unistd.h> on Solaris.
16189         * lib/renameat.c: Don't include <unistd.h> here.
16190         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
16191         Reported by Paul Eggert and Eric Blake.
16192
16193 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16194
16195         renameat: port to Solaris 10, which declares renameat in unistd.h
16196
16197         * lib/renameat.c: Include unistd.h before stdio.h, because
16198         Solaris 10 declares renameat in unistd.h.  Problem encountered
16199         when building GNU tar 1.24 on Solaris 10.
16200
16201 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16202
16203         fdopendir: fix C89 compilation
16204         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
16205         compilers.
16206
16207 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16208
16209         inttostr: simplify by removing unnecessary redundancy
16210         * lib/anytostr.c: Don't include verify.h.
16211         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
16212         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
16213         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
16214         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
16215         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
16216         Likewise.
16217         * modules/inttostr (Depends-on): Remove 'verify'.
16218
16219 2010-10-23  Bruno Haible  <bruno@clisp.org>
16220
16221         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
16222         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
16223         Reported by Eric Blake.
16224
16225 2010-10-23  Bruno Haible  <bruno@clisp.org>
16226
16227         Tests: Fix LOCALE_JA on MirBSD 10.
16228         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
16229         to an UTF-8 locale.
16230         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
16231         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16232         Reported by Eric Blake.
16233
16234 2010-10-21  Bruno Haible  <bruno@clisp.org>
16235
16236         nl_langinfo test: Avoid test failure on NetBSD 5.
16237         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
16238         Reported by Eric Blake.
16239
16240 2010-10-21  Eric Blake  <eblake@redhat.com>
16241
16242         c-stack: work around libsigsegv 2.8 bug
16243         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
16244         overflow on at least PowerPC64.
16245
16246 2010-10-17  Bruno Haible  <bruno@clisp.org>
16247
16248         userspec: Drop redundant file.
16249         * modules/userspec (Files): Remove lib/inttostr.h.
16250
16251 2010-10-17  Bruno Haible  <bruno@clisp.org>
16252
16253         nl_langinfo tests: Silence some warnings.
16254         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
16255         Reported by Jim Meyering.
16256
16257 2010-10-17  Bruno Haible  <bruno@clisp.org>
16258
16259         Make use of GCC's attribute __alloc_size__.
16260         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
16261         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
16262         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
16263         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
16264         __alloc_size__.
16265         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
16266         Suggested by Jim Meyering.
16267
16268 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
16269
16270         bootstrap: anchor .gitignore entries.
16271         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
16272         with...
16273         (insert_vc_ignore): ... this new function, which prepends `/' to
16274         all .gitignore entries before passing them to
16275         insert_sorted_if_absent.
16276
16277 2010-10-16  Bruno Haible  <bruno@clisp.org>
16278
16279         nextafter: Fix configure check.
16280         * modules/nextafter (configure.ac): Correct expected prototype.
16281
16282 2010-10-16  Bruno Haible  <bruno@clisp.org>
16283
16284         termios: Update documentation.
16285         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
16286
16287 2010-10-16  Bruno Haible  <bruno@clisp.org>
16288
16289         tests: Make them compile with TinyCC.
16290         * tests/test-strstr.c (main): Remove parentheses around array
16291         initializer.
16292
16293 2010-10-15  Eric Blake  <eblake@redhat.com>
16294
16295         ignore-value: make header idempotent
16296         * lib/ignore-value.h: Add double-inclusion guards.
16297         Reported by Stefan Berger.
16298
16299 2010-10-15  Jim Meyering  <meyering@redhat.com>
16300
16301         GNUmakefile: handle "stable" target, not "major"
16302         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
16303         lists in maint.mk and announce-gen.  Without this, "make stable"
16304         would fail to ensure that $(VERSION) is up to date.
16305
16306 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
16307
16308         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
16309         & co.
16310
16311 2010-10-14  Bruno Haible  <bruno@clisp.org>
16312
16313         vasnprintf: Don't set errno to 0.
16314         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
16315         block that sets it to 0.
16316         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16317
16318 2010-10-14  Bruno Haible  <bruno@clisp.org>
16319
16320         socketlib: Fix.
16321         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
16322         gl_PREREQ_SYS_H_WINSOCK2.
16323         Reported by Ian Beckwith <ianb@erislabs.net>.
16324
16325 2010-10-13  Jim Meyering  <meyering@redhat.com>
16326
16327         test-select-stdin.c: avoid warn_unused_result warnings
16328         * tests/test-select-stdin.c: Include "macros.h".
16329         ASSERT that read and fflush succeed.
16330
16331 2010-10-13  Jim Meyering  <meyering@redhat.com>
16332
16333         git-version-gen: do require git-VC'd files in cwd
16334         * build-aux/git-version-gen: Reject a git version string
16335         if there are no commits associated with the current directory.
16336         This avoids an unlikely false-positive (unrelated dir whose parent
16337         repository also contains a tag matching v*), as pointed out
16338         by Giuseppe Scrivano in
16339         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
16340
16341 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16342
16343         argv-iter: omit nonconforming declaration
16344         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
16345         enum arg_iter_err declaration, which doesn't conform to C99.
16346         Solaris 10 cc warns about this.
16347
16348 2010-10-13  Eric Blake  <eblake@redhat.com>
16349
16350         termios: fix compilation on mingw
16351         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
16352         (gl_TERMIOS_H): Adjust it on mingw.
16353         * modules/termios (Makefile.am): Substitute new key.
16354         * lib/termios.in.h (includes): Make include_next conditional.
16355         * doc/posix-headers/termios.texi (termios.h): Update
16356         documentation.
16357         Reported by Daniel P. Berrange.
16358
16359 2010-10-13  Jim Meyering  <meyering@redhat.com>
16360
16361         git-version-gen: don't require that .git/ be in the current dir
16362         * build-aux/git-version-gen: Adjust this script so that it works
16363         when run from any working directory beneath the top-level .git/-
16364         containing directory.  Inspired by a patch from Giuseppe Scrivano,
16365         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
16366
16367         test-select: avoid warn_unused_result warnings
16368         * tests/test-select.c: Include "macros.h".
16369         ASSERT that each call to read, write, and pipe succeeds.
16370         While not technically required, also check each "close".
16371         * modules/select-tests (Files): Add tests/macros.h.
16372
16373         test-symlinkat: remove declaration of unused local
16374         * tests/test-symlinkat.c (main): Remove unused local, "buf".
16375
16376         test-inttostr: avoid shadowing warnings
16377         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
16378         and use malloc rather than the stack for the same reason as
16379         mentioned in the comment justifying the other allocation.
16380
16381 2010-10-11  Bruno Haible  <bruno@clisp.org>
16382
16383         stdlib: Allow multiple gnulib generated replacements to coexist.
16384         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
16385         Reported by Sam Steingold <sds@gnu.org>.
16386
16387 2010-10-11  Jim Meyering  <meyering@redhat.com>
16388
16389         fix a documentation typo
16390         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
16391
16392 2010-10-11  Eric Blake  <eblake@redhat.com>
16393
16394         futimens: work around Solaris 11 bug
16395         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
16396         * tests/test-futimens.h (test_futimens): Enhance, rather than
16397         weaken test.
16398         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16399
16400 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16401
16402         Indentation.
16403         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
16404         higher-level operators more to the left.
16405
16406 2010-10-11  Jim Meyering  <meyering@redhat.com>
16407
16408         test-futimens: avoid unwarranted test failure on Solaris 5.11
16409         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
16410         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
16411         because it tries to dereference the NULL name argument.
16412
16413 2010-10-11  Bruno Haible  <bruno@clisp.org>
16414
16415         Indentation.
16416         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
16417         indentation.
16418
16419 2010-10-11  Jim Meyering  <meyering@redhat.com>
16420
16421         spawn.in.h: make indentation consistent with parentheses
16422         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
16423         Make indentation consistent with parentheses.
16424
16425 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
16426
16427         Fix mismatched parens in previous commit
16428         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
16429         parens.
16430
16431 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16432
16433         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
16434
16435         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
16436         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
16437         * lib/malloca.c: Include "verify.h".
16438         (verify1): Remove, replacing with a verify call.
16439         * lib/relocwrapper.c (verify1): Likewise.
16440         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
16441         Likewise.
16442         * modules/malloca (Depends-on): Add 'verify'.
16443         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
16444         * modules/vasnprintf (Depends-on): Add 'verify'.
16445         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16446         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16447         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16448         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16449         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16450         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16451         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16452
16453         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
16454
16455         Formerly the style was sometimes 2*X - 1, because the C standard
16456         was wrongly thought to disallow ?: in integral constant expressions.
16457         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
16458         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
16459         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16460         * lib/stdint.in.h (_verify_intmax_size): Likewise.
16461         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
16462         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
16463         verify that time_t cannot be floating.
16464
16465 2010-10-08  Eric Blake  <eblake@redhat.com>
16466
16467         time: enforce recent POSIX ruling that time_t is integral
16468         * lib/time.in.h (__time_t_must_be_integral): Detect any
16469         problematic systems, allowing the rest of gnulib to assume POSIX.
16470
16471 2010-10-08  Jim Meyering  <meyering@redhat.com>
16472
16473         fdopendir: fix a bug on systems lacking openat and /proc support
16474         OpenBSD 4.7 is one such system.  The most noticeable effect was
16475         failure of any application making nontrivial use of fts: rm, du,
16476         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
16477           ./rm: traversal failed: `a': Bad file descriptor
16478         Debugging that, you see that even though FD 6 was closed just
16479         prior to the opendir call in fd_clone_opendir, its resulting
16480         dir->dd_fd was 8, rather than the expected value of 6:
16481
16482         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
16483         93                close (fd);
16484         (gdb) n
16485         94                dir = fd_clone_opendir (dupfd);
16486         (gdb) n
16487         95                saved_errno = errno;
16488         (gdb) p dir->dd_fd
16489         $11 = 8
16490
16491         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
16492         The problem is that on OpenBSD, fd_clone_opendir has to resort
16493         to using the old-style save/restore CWD mechanism, due to its
16494         lack of openat/proc support, and *that* would steal the FD (6)
16495         that opendir was supposed to use.
16496
16497         The fix is to squirrel away the desired FD so that save_cwd uses a
16498         different one, and then free the dest FD right before calling opendir.
16499         That guarantees opendir will use the required file descriptor.
16500
16501         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
16502
16503 2010-10-08  Bruno Haible  <bruno@clisp.org>
16504
16505         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
16506         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
16507
16508 2010-10-08  Bruno Haible  <bruno@clisp.org>
16509
16510         nanosleep: Make replacement POSIX compliant.
16511         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16512         is out of range.
16513         Reported by Jim Meyering.
16514
16515 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         bootstrap: add hook for altering gnulib.mk, for Bison
16518         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16519         the Bison bootstrapping process can rewrite file names and variables
16520         in this file before later parts of 'bootstrap' use the file.
16521         Bison wants to include lib/gnulib.mk from the top-level makefile,
16522         so it needs the file names in this file to be relative to the top
16523         level, not relative to lib; plus it needs variable names to be
16524         rewritten.
16525         (slurp): Use the new function.
16526
16527         bootstrap: reformat for readability
16528         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16529
16530 2010-10-08  Eric Blake  <eblake@redhat.com>
16531
16532         docs: update cygwin progress
16533         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16534         1.7.7.
16535         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16536         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16537         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16538         * doc/posix-functions/carg.texi (carg): Likewise.
16539         * doc/posix-functions/cargf.texi (cargf): Likewise.
16540         * doc/posix-functions/casin.texi (casin): Likewise.
16541         * doc/posix-functions/casinf.texi (casinf): Likewise.
16542         * doc/posix-functions/casinh.texi (casinh): Likewise.
16543         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16544         * doc/posix-functions/catan.texi (catan): Likewise.
16545         * doc/posix-functions/catanf.texi (catanf): Likewise.
16546         * doc/posix-functions/catanh.texi (catanh): Likewise.
16547         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16548         * doc/posix-functions/ccos.texi (ccos): Likewise.
16549         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16550         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16551         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16552         * doc/posix-functions/cexp.texi (cexp): Likewise.
16553         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16554         * doc/posix-functions/cimag.texi (cimag): Likewise.
16555         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16556         * doc/posix-functions/clog.texi (clog): Likewise.
16557         * doc/posix-functions/clogf.texi (clogf): Likewise.
16558         * doc/posix-functions/conj.texi (conj): Likewise.
16559         * doc/posix-functions/conjf.texi (conjf): Likewise.
16560         * doc/posix-functions/cpow.texi (cpow): Likewise.
16561         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16562         * doc/posix-functions/cproj.texi (cproj): Likewise.
16563         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16564         * doc/posix-functions/creal.texi (creal): Likewise.
16565         * doc/posix-functions/crealf.texi (crealf): Likewise.
16566         * doc/posix-functions/csin.texi (csin): Likewise.
16567         * doc/posix-functions/csinf.texi (csinf): Likewise.
16568         * doc/posix-functions/csinh.texi (csinh): Likewise.
16569         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16570         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16571         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16572         * doc/posix-functions/ctan.texi (ctan): Likewise.
16573         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16574         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16575         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16576         * doc/posix-headers/complex.texi (complex.h): Likewise.
16577
16578 2010-10-07  Jim Meyering  <meyering@redhat.com>
16579
16580         parse-datetime: avoid compilation failure on OpenBSD 4.7
16581         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16582         This works around a compilation failure on OpenBSD 4.7:
16583         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16584
16585 2010-10-07  Eric Blake  <eblake@redhat.com>
16586
16587         docs: update cygwin progress
16588         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16589         1.7.6.
16590         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16591         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16592         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16593         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16594         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16595         Likewise.
16596         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16597         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16598         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16599         Likewise.
16600         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16601         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16602         Likewise.
16603         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16604         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16605         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16606         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16607         Likewise.
16608         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16609         Likewise.
16610         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16611
16612         docs: update parse-datetime history
16613         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16614         documentation of this function's history and alternatives.
16615
16616         cygwin: use more robust version check
16617         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16618         exclude an eventual cygwin 1.9.1.
16619         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16621         (gl_FUNC_STRCASESTR): Likewise.
16622         Reported by Bruno Haible.
16623
16624 2010-10-06  Bruno Haible  <bruno@clisp.org>
16625
16626         string, sys_select: Avoid #including large headers unless necessary.
16627         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16628         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16629         OSF/1, BeOS, Haiku.
16630         Reported by Jim Meyering.
16631
16632 2010-10-05  Eric Blake  <eblake@redhat.com>
16633
16634         memmem, strstr, strcasestr: fix bug with long periodic needle
16635         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16636         periodic needle having false positive.
16637         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16638         and cygwin 1.7.7.
16639         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16641         (gl_FUNC_STRCASESTR): Likewise.
16642         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16643         * tests/test-memmem.c (main): Expose the bug.
16644         * tests/test-strcasestr.c (main): Likewise.
16645         * tests/test-strstr.c (main): Likewise.
16646         * tests/test-c-strcasestr.c (main): Likewise.
16647         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16648         * doc/posix-functions/strstr.texi (strstr): Likewise.
16649         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16650         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16651
16652 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16653
16654         parse-datetime: do some more renaming
16655         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16656         parse_datetime, not get_date.  Mention the renaming.
16657         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16658         in comments.
16659         * m4/bison.m4: Likewise.
16660
16661 2010-10-05  Eric Blake  <eblake@redhat.com>
16662
16663         parse-datetime: better name than get_date
16664         * NEWS: Reword the deprecation notice.
16665         * modules/get_date: Rename to modules/parse-datetime.
16666         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16667         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16668         * lib/get_date.y: Rename to lib/parse-datetime.y.
16669         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16670         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16671         * doc/getdate.texi: Provide fallback wrapper.
16672         * lib/getdate.h: Move guts, and wrap...
16673         * lib/parse-datetime.h: ...new file.
16674         * lib/parse-datetime.y (get_date): Rename...
16675         (parse_datetime): ...to this.
16676         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16677         (gl_PARSE_DATETIME): ...to this.
16678         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16679         documentation.
16680         * modules/getdate (Files): Provide fallback docs and header.
16681         (Notice, Depends-on): Update references.
16682         * tests/test-parse-datetime.c: Likewise.
16683         * DEPENDENCIES: Likewise.
16684         * MODULES.html.sh (Date and time <time.h>): Likewise.
16685         * doc/parse-datetime.texi (Date input formats)
16686         (Authors of parse_datetime): Likewise.
16687         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16688         (Include): Likewise.
16689         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16690         * gnulib-tool: Likewise.
16691         * m4/bison.m4 (gl_BISON): Likewise.
16692         Suggested by Bruno Haible.
16693
16694 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16695
16696         more ports to Solaris tr, which needs [] around ranges
16697         * gnulib-tool: Solaris tr needs [] around ranges.
16698         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16699         * tests/test-pipe-filter-gi1.c (main): Likewise.
16700         * tests/test-pipe-filter-ii1.c (main): Likewise.
16701
16702 2010-10-05  Eric Blake  <eblake@redhat.com>
16703
16704         bootstrap: fix Solaris regression
16705         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16706         around ranges.
16707         Reported by Pádraig Brady.
16708
16709         bootstrap: work with pkg-config
16710         * build-aux/bootstrap (check_versions): Also transliterate - in
16711         prerequisite name.
16712         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16713         prerequisites that were already found, to avoid confusion.
16714         Reported by Justin Clift.
16715
16716         faccessat: remove unused wrappers
16717         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16718         presence of these wrappers dragged in -lgen on Solaris.
16719         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16720
16721 2010-10-05  Jim Meyering  <meyering@redhat.com>
16722
16723         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16724         * Makefile (sc_pragma_columns): New syntax-check rule.
16725
16726 2010-10-04  Bruno Haible  <bruno@clisp.org>
16727
16728         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16729         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16730         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16731         Reported by Bruce Korb and Eric Blake.
16732
16733 2010-10-04  Bruno Haible  <bruno@clisp.org>
16734
16735         threadlib: Make option --with-libpth-prefix work.
16736         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16737         use $LIBPTH, not just -lpth.
16738
16739 2010-10-04  Bruno Haible  <bruno@clisp.org>
16740
16741         Avoid line length limitation from HP NonStop system header files.
16742         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16743         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16744         * lib/ctype.in.h: Likewise.
16745         * lib/dirent.in.h: Likewise.
16746         * lib/errno.in.h: Likewise.
16747         * lib/fcntl.in.h: Likewise.
16748         * lib/float.in.h: Likewise.
16749         * lib/getopt.in.h: Likewise.
16750         * lib/iconv.in.h: Likewise.
16751         * lib/inttypes.in.h: Likewise.
16752         * lib/langinfo.in.h: Likewise.
16753         * lib/locale.in.h: Likewise.
16754         * lib/math.in.h: Likewise.
16755         * lib/netdb.in.h: Likewise.
16756         * lib/netinet_in.in.h: Likewise.
16757         * lib/poll.in.h: Likewise.
16758         * lib/pthread.in.h: Likewise.
16759         * lib/pty.in.h: Likewise.
16760         * lib/sched.in.h: Likewise.
16761         * lib/se-selinux.in.h: Likewise.
16762         * lib/search.in.h: Likewise.
16763         * lib/signal.in.h: Likewise.
16764         * lib/spawn.in.h: Likewise.
16765         * lib/stdarg.in.h: Likewise.
16766         * lib/stddef.in.h: Likewise.
16767         * lib/stdint.in.h: Likewise.
16768         * lib/stdio.in.h: Likewise.
16769         * lib/stdlib.in.h: Likewise.
16770         * lib/string.in.h: Likewise.
16771         * lib/strings.in.h: Likewise.
16772         * lib/sys_file.in.h: Likewise.
16773         * lib/sys_ioctl.in.h: Likewise.
16774         * lib/sys_select.in.h: Likewise.
16775         * lib/sys_socket.in.h: Likewise.
16776         * lib/sys_stat.in.h: Likewise.
16777         * lib/sys_time.in.h: Likewise.
16778         * lib/sys_times.in.h: Likewise.
16779         * lib/sys_utsname.in.h: Likewise.
16780         * lib/sys_wait.in.h: Likewise.
16781         * lib/sysexits.in.h: Likewise.
16782         * lib/termios.in.h: Likewise.
16783         * lib/time.in.h: Likewise.
16784         * lib/unistd.in.h: Likewise.
16785         * lib/wchar.in.h: Likewise.
16786         * lib/wctype.in.h: Likewise.
16787         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16788         * modules/ctype (Makefile.am): Likewise.
16789         * modules/dirent (Makefile.am): Likewise.
16790         * modules/errno (Makefile.am): Likewise.
16791         * modules/fcntl-h (Makefile.am): Likewise.
16792         * modules/float (Makefile.am): Likewise.
16793         * modules/getopt-posix (Makefile.am): Likewise.
16794         * modules/iconv-h (Makefile.am): Likewise.
16795         * modules/inttypes (Makefile.am): Likewise.
16796         * modules/langinfo (Makefile.am): Likewise.
16797         * modules/locale (Makefile.am): Likewise.
16798         * modules/math (Makefile.am): Likewise.
16799         * modules/netdb (Makefile.am): Likewise.
16800         * modules/netinet_in (Makefile.am): Likewise.
16801         * modules/poll-h (Makefile.am): Likewise.
16802         * modules/pthread (Makefile.am): Likewise.
16803         * modules/pty (Makefile.am): Likewise.
16804         * modules/sched (Makefile.am): Likewise.
16805         * modules/search (Makefile.am): Likewise.
16806         * modules/selinux-h (Makefile.am): Likewise.
16807         * modules/signal (Makefile.am): Likewise.
16808         * modules/spawn (Makefile.am): Likewise.
16809         * modules/stdarg (Makefile.am): Likewise.
16810         * modules/stddef (Makefile.am): Likewise.
16811         * modules/stdint (Makefile.am): Likewise.
16812         * modules/stdio (Makefile.am): Likewise.
16813         * modules/stdlib (Makefile.am): Likewise.
16814         * modules/string (Makefile.am): Likewise.
16815         * modules/strings (Makefile.am): Likewise.
16816         * modules/sys_file (Makefile.am): Likewise.
16817         * modules/sys_ioctl (Makefile.am): Likewise.
16818         * modules/sys_select (Makefile.am): Likewise.
16819         * modules/sys_socket (Makefile.am): Likewise.
16820         * modules/sys_stat (Makefile.am): Likewise.
16821         * modules/sys_time (Makefile.am): Likewise.
16822         * modules/sys_times (Makefile.am): Likewise.
16823         * modules/sys_utsname (Makefile.am): Likewise.
16824         * modules/sys_wait (Makefile.am): Likewise.
16825         * modules/sysexits (Makefile.am): Likewise.
16826         * modules/termios (Makefile.am): Likewise.
16827         * modules/time (Makefile.am): Likewise.
16828         * modules/unistd (Makefile.am): Likewise.
16829         * modules/wchar (Makefile.am): Likewise.
16830         * modules/wctype (Makefile.am): Likewise.
16831
16832 2010-10-04  Bruno Haible  <bruno@clisp.org>
16833
16834         read-file tests: Avoid a test failure on NonStop Kernel.
16835         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16836         a regular file.
16837         Reported by Joachim Schmitz <schmitz@hp.com>.
16838
16839 2010-10-03  Bruno Haible  <bruno@clisp.org>
16840
16841         gnulib-tool: Fixes for --create-testdir with --libtool.
16842         * gnulib-tool (func_get_automake_snippet): Don't augment
16843         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16844         an executable.
16845         (func_create_testdir): Handle module 'alloca' like func_import.
16846         Reported by Bruce Korb <bruce.korb@gmail.com>.
16847
16848 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16849
16850         Avoid some lines longer than 80 characters.
16851         * lib/stdint.in.h: Break long comment lines.
16852         * lib/math.in.h: Likewise.
16853         (_GL_NUM_UINT_WORDS): New macro, for readability.
16854         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16855         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16856         * lib/stdlib.in.h: Likewise.
16857         * lib/spawn.in.h: Likewise.
16858         * lib/sys_socket.in.h: Update an URL.
16859         * lib/sys_stat.in.h: Break long line.
16860
16861 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16862
16863         Improve pmccabe2html.
16864         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16865         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16866         when the sources change. Remove the line in the HTML about "Used
16867         ranges" (which implied that there might be other unused ranges),
16868         rename "Resume" to "Summary" (easier to understand for more users).
16869         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16870         styles, and some unnecessary blank lines.
16871
16872 2010-10-03  Bruno Haible  <bruno@clisp.org>
16873             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16874
16875         acl: Add support for ACLs on NonStop Kernel.
16876         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16877         Check whether the function aclsort() exists.
16878         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16879         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16880         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16881         (acl_nontrivial [HAVE_ACLSORT]: New function.
16882         (file_has_acl): Implement for NonStop Kernel.
16883         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16884         (qset_acl): Implement for NonStop Kernel.
16885         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16886         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16887         (main): Implement for NonStop Kernel.
16888         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16889         Kernel. Handle this flavor.
16890         * tests/test-set-mode-acl.sh: Likewise.
16891         * tests/test-copy-acl.sh: Likewise.
16892         * tests/test-copy-file.sh: Likewise.
16893
16894 2010-10-03  Bruno Haible  <bruno@clisp.org>
16895
16896         Info about ACLs on NonStop Kernel.
16897         * doc/acl-resources.txt: Add info about NonStop Kernel.
16898         References by Joachim Schmitz <schmitz@hp.com>.
16899
16900 2010-10-02  Bruno Haible  <bruno@clisp.org>
16901
16902         Define missing EDQUOT on NonStop Kernel.
16903         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16904         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16905         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16906         missing.
16907         * doc/posix-headers/errno.texi: Mention the NSK bug.
16908         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16909         Reported by Joachim Schmitz <schmitz@hp.com>.
16910
16911 2010-10-02  Bruno Haible  <bruno@clisp.org>
16912
16913         Update doc for POSIX:2008.
16914         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16915         Update URL of POSIX specification.
16916
16917 2010-10-02  Bruno Haible  <bruno@clisp.org>
16918
16919         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16920         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16921         from gnulib, not from Automake.
16922
16923 2010-10-02  Bruno Haible  <bruno@clisp.org>
16924
16925         New module 'system-posix'.
16926         * modules/system-posix: New file.
16927         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16928         module is present.
16929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16930         GNULIB_SYSTEM_POSIX.
16931         * modules/stdlib (Depends-on): Remove sys_wait.
16932         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16933         * doc/posix-functions/system.texi: Mention the new module.
16934         * doc/posix-headers/stdlib.texi: Likewise.
16935         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16936         define test_sys_wait_macros to a no-op.
16937         Reported by Sam Steingold <sds@gnu.org>.
16938
16939 2010-09-30  Bruno Haible  <bruno@clisp.org>
16940
16941         More renaming from 'getdate' to 'get_date'.
16942         * doc/get_date.texi: Renamed from doc/getdate.texi.
16943         * modules/get_date (Files): Update.
16944         * MODULES.html.sh (Date and time <time.h>): Update.
16945         * DEPENDENCIES: Update.
16946         * gnulib-tool: Update comment.
16947         * m4/bison.m4 (gl_BISON): Likewise.
16948         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16949
16950 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16951
16952         bootstrap: support ACLOCAL_FLAGS during aclocal
16953         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16954         can add additional -I dir for third-party .m4 files.
16955
16956 2010-09-30  Eric Blake  <eblake@redhat.com>
16957
16958         bootstrap: use glibtoolize on MacOS
16959         * build-aux/bootstrap (check_versions): Convert libtool into
16960         libtoolize.
16961         (tool search): Move libtool check earlier, and look for
16962         glibtoolize for MacOS.
16963         (gnulib_tool_options): Auto-add --libtool when appropriate.
16964         Reported by Justin Clift.
16965
16966         poll: fix typo that broke test on MacOS
16967         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16968         Reported by Justin Clift.
16969
16970         getdate: rename to get_date
16971         Note: getdate.h is not renamed, to minimize client impact.
16972         * modules/getdate: Mark obsolete.  Move old contents...
16973         * modules/get_date: ...to new module name.
16974         * modules/getdate-tests: Move...
16975         * modules/get_date-tests: ...here.
16976         * m4/getdate.m4: Move...
16977         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16978         * lib/getdate.y: Move...
16979         * lib/get_date.y: ...here.
16980         * tests/test-getdate.c: Move...
16981         * tests/test-get_date.c: ...here.
16982         * doc/posix-functions/getdate.texi (getdate): Update name.
16983         * NEWS: Mention the change.
16984
16985 2010-09-29  Bruno Haible  <bruno@clisp.org>
16986
16987         Separate the module 'waitpid' from the module 'sys_wait'.
16988         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16989         present.
16990         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16991         gl_MODULE_INDICATOR_FOR_TESTS.
16992         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16993         * modules/sys_wait (Depends-on): Remove waitpid.
16994         (Makefile.am): Substitute GNULIB_WAITPID.
16995         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16996         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16997         signature only if the 'waitpid' module is present.
16998         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16999         * NEWS: Mention the change.
17000         * modules/grantpt (Depends-on): Add waitpid.
17001         * modules/wait-process (Depends-on): Likewise.
17002
17003 2010-09-29  Bruno Haible  <bruno@clisp.org>
17004
17005         More tests for module 'sys_wait'.
17006         * modules/sys_wait-c++-tests: New file.
17007         * tests/test-sys_wait-c++.cc: New file.
17008         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
17009         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17010
17011 2010-09-29  Bruno Haible  <bruno@clisp.org>
17012
17013         New module 'waitpid'.
17014         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
17015         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
17016         Don't include <process.h>.
17017         (waitpid): Declare only, using modern idiom.
17018         * m4/waitpid.m4: New file.
17019         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
17020         * modules/waitpid: New file.
17021         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
17022         (Makefile.am): Update.
17023         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17024
17025 2010-09-28  Bruno Haible  <bruno@clisp.org>
17026
17027         poll: Assume ANSI C.
17028         * lib/poll.c (poll): Use an ANSI C declaration.
17029
17030 2010-09-28  Bruno Haible  <bruno@clisp.org>
17031
17032         poll-h: Create poll.h on all platforms.
17033         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
17034         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
17035         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
17036         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
17037         (gl_REPLACE_POLL_H): Don't set POLL_H.
17038         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
17039         * modules/poll-h (Depends-on): Add include_next.
17040         (Makefile.am): Create poll.h unconditionally. Substitute also
17041         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
17042
17043 2010-09-28  Bruno Haible  <bruno@clisp.org>
17044
17045         Tests for module 'poll-h'.
17046         * modules/poll-h-c++-tests: New file.
17047         * tests/test-poll-h-c++.cc: New file.
17048
17049         Tests for module 'poll-h'.
17050         * modules/poll-h-tests: New file.
17051         * tests/test-poll-h.c: New file.
17052
17053 2010-09-28  Bruno Haible  <bruno@clisp.org>
17054
17055         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
17056         * modules/poll-h (Depends-on): Add 'extensions'.
17057
17058 2010-09-28  Bruno Haible  <bruno@clisp.org>
17059
17060         New module 'poll-h'.
17061         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
17062         (poll): Use modern idiom.
17063         * modules/poll-h: New file.
17064         * modules/poll (Files): Remove lib/poll.in.h.
17065         (Depends-on): Add poll-h.
17066         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
17067         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
17068         * m4/poll_h.m4: New file.
17069         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
17070         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
17071         and invoke gl_REPLACE_POLL_H.
17072         * lib/poll.c: Use common idiom.
17073         * tests/test-poll.c: Likewise.
17074         * doc/posix-headers/poll.texi: Mention the poll-h module.
17075         Suggested by Eric Blake.
17076
17077 2010-09-26  Bruno Haible  <bruno@clisp.org>
17078
17079         sys_wait: Implement WSTOPSIG.
17080         * lib/sys_wait.in.h (WSTOPSIG): New macro.
17081         Reported by Simon Josefsson.
17082
17083 2010-09-26  Simon Josefsson  <simon@josefsson.org>
17084
17085         stdlib, sys_wait: Avoid compilation error on mingw.
17086         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
17087
17088 2010-09-26  Bruno Haible  <bruno@clisp.org>
17089
17090         stdlib tests: Avoid code duplication.
17091         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
17092         * modules/sys_wait-tests (Files): Likewise.
17093         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
17094         * tests/test-stdlib.c: Include test-sys_wait.h.
17095         (main): Invoke test_sys_wait_macros.
17096         * tests/test-sys_wait.c: Include test-sys_wait.h.
17097         (main): Invoke test_sys_wait_macros.
17098
17099 2010-09-25  Simon Josefsson  <simon@josefsson.org>
17100
17101         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
17102         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
17103         sure Windows sockets are working before calling getaddrinfo.
17104         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
17105         * doc/gnulib.texi (Windows sockets): Fix typo.
17106
17107 2010-09-25  Bruno Haible  <bruno@clisp.org>
17108
17109         Tests for module 'regex-quote'.
17110         * modules/regex-quote-tests: New file.
17111         * tests/test-regex-quote.c: New file.
17112
17113         New module 'regex-quote'.
17114         * lib/regex-quote.h: New file.
17115         * lib/regex-quote.c: New file.
17116         * modules/regex-quote: New file.
17117         Suggested by Reuben Thomas <rrt@sc3d.org>.
17118
17119 2010-09-24  Bruno Haible  <bruno@clisp.org>
17120
17121         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
17122         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
17123
17124 2010-09-23  Bruno Haible  <bruno@clisp.org>
17125
17126         setenv: Relax license.
17127         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
17128         Blake.
17129         Requested by Eric Blake.
17130
17131 2010-09-22  Bruno Haible  <bruno@clisp.org>
17132
17133         termios: Relax license.
17134         * modules/termios (License): Change to LGPLv2+.
17135         Requested by Eric Blake.
17136
17137 2010-09-22  Bruno Haible  <bruno@clisp.org>
17138
17139         threadlib: Allow the package to change the default to 'no'.
17140         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
17141         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
17142         Reported by Paul Eggert.
17143
17144 2010-09-22  Pádraig Brady  <P@draigbrady.com>
17145             Bruno Haible  <bruno@clisp.org>
17146
17147         Fix endless loop in mbmemcasecoll.
17148         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
17149         byte.
17150         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
17151
17152 2010-09-22  Bruno Haible  <bruno@clisp.org>
17153
17154         Tests for module 'memcoll'.
17155         * modules/memcoll-tests: New file.
17156         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
17157
17158         memcoll, xmemcoll: Clarify size vs. length.
17159         * modules/memcoll.c (memcoll0): Clarify specification.
17160         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
17161         passed to collate_error.
17162
17163 2010-09-22  Bruno Haible  <bruno@clisp.org>
17164
17165         Tests for module 'memcasecmp'.
17166         * modules/memcasecmp-tests: New file.
17167         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
17168
17169 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17170
17171         * lib/pthread.in.h: Add split double-inclusion guard, and include
17172         system <pthread.h> if there is one.  Use @@-style as in other
17173         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
17174         pthread.h doesn't.
17175         (pthread_mutexattr_destroy, pthread_mutexattr_init):
17176         (pthread_mutexattr_settype, pthread_mutex_trylock):
17177         New static inline functions, if there's no system <pthread.h>.
17178         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
17179         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
17180         Approximate with mutexes if the system lacks spinlocks, as in
17181         MacOS.
17182         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
17183         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
17184         @@-style.  Check for spinlocks separately.
17185         (gl_PTHREAD_DEFAULTS): New macro.
17186         * modules/pthread: Redo to use a more typical style for in.h files.
17187
17188 2010-09-21  Eric Blake  <eblake@redhat.com>
17189
17190         net_if: enhance tests
17191         * tests/test-net_if.c (main): Move signature checks earlier.
17192         Print failures to stderr.
17193         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
17194         Document the bug that we do not yet fix.
17195
17196 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17197
17198         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
17199         about gnulib, not GSS.
17200
17201 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17202
17203         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17204         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
17205         for Emacs.
17206         * build-aux/pmccabe2html: Make Makefile.am example code more
17207         cut-and-paste friendly.
17208
17209 2010-09-21  Simon Josefsson  <simon@josefsson.org>
17210
17211         * tests/test-net_if.c: New file.
17212         * modules/net_if-tests: New file.
17213
17214 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17215
17216         pthread: add pthread_spin_destroy
17217         * lib/pthread.in.h (pthread_spin_destroy): New function.
17218
17219 2010-09-19  Bruno Haible  <bruno@clisp.org>
17220
17221         gnulib-tool: Fix --help output.
17222         * gnulib-tool (func_usage): Fix help message.
17223         Reported by Reuben Thomas <rrt@sc3d.org>.
17224
17225 2010-09-18  Jim Meyering  <meyering@redhat.com>
17226
17227         maint.mk: avoid unexpanded \n in two diagnostics
17228         * top/maint.mk (sc_prohibit_always_true_header_tests):
17229         Don't use a literal \n in a halt=... assignment.  It would not be
17230         expanded, and the two \n bytes would appear in the diagnostic output
17231         rather than the desired newline.  Use halt=$$(printf ... instead.
17232         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17233
17234 2010-09-18  Bruno Haible  <bruno@clisp.org>
17235
17236         netinet_in: Doc tweak.
17237         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
17238         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17239
17240 2010-09-18  Jim Meyering  <meyering@redhat.com>
17241
17242         init.sh: correct an outdated comment
17243         * tests/init.sh (create_exe_shims_):  s/function/alias/
17244
17245         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
17246         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
17247         a file named "*.exe" is removed between the glob expansion and the
17248         processing of that oddly named file.
17249
17250 2010-09-17  Eric Blake  <eblake@redhat.com>
17251
17252         mirbsd: add some more support
17253         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
17254         in BSD family.
17255         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
17256         devices as OpenBSD.
17257         * m4/host-os.m4 (mirbsd): Add MirBSD.
17258
17259         tests: fix unportable assumption on sys/wait.h
17260         * tests/test-sys_wait.c (main): Relax test.
17261         * tests/test-stdlib.c (main): Likewise.
17262
17263         init.sh: accomodate directory with no .exes
17264         * tests/init.sh: Accomodate directory containing only scripts.
17265
17266         tests: avoid compiler warning
17267         * tests/test-stdlib.c (main): Use the variable.
17268
17269         fdutimens, fdutimensat: update signature, again
17270         * lib/utimens.h (gl_futimens): Delete, and move signature...
17271         (fdutimens): ...here.
17272         (fdutimensat): Rearrange signature.
17273         (lutimensat): Rename variable for clarity.
17274         * lib/fdutimensat.c (fdutimensat): Update signature.
17275         * lib/utimens.c (fdutimens): Likewise.
17276         (gl_futimens): Delete.
17277         (utimens, lutimens): Update callers.
17278         * lib/futimens.c (futimens): Likewise.
17279         * tests/test-fdutimensat.c: Likewise.
17280         * tests/test-utimens.c: Likewise.
17281         * tests/test-futimens.h: Update comment.
17282         * NEWS: Mention this.
17283         Suggested by Paul Eggert.
17284
17285 2010-09-17  Bruno Haible  <bruno@clisp.org>
17286
17287         Take over the maintenance of some older macros from Autoconf.
17288         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
17289         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
17290         GNU Autoconf.
17291         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
17292         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
17293
17294 2010-09-17  Eric Blake  <eblake@redhat.com>
17295
17296         fdutimensat: drop atflag validation
17297         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
17298         with valid fd, to close a race scenario where futimens is
17299         unsupported and FILE was replaced by a symlink.
17300         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
17301         accordingly.
17302         Suggested by Paul Eggert.
17303
17304 2010-09-16  Bruno Haible  <bruno@clisp.org>
17305
17306         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
17307         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
17308
17309 2010-09-16  Bruno Haible  <bruno@clisp.org>
17310
17311         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
17312         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
17313         login_tty exists.
17314         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17315
17316 2010-09-16  Bruno Haible  <bruno@clisp.org>
17317
17318         login_tty: Make the replacement code work on BSD systems.
17319         * lib/login_tty.c: Include <sys/ioctl.h>.
17320         (login_tty): Use ioctl TIOCSCTTY when available.
17321         * modules/login_tty (Depends-on): Add sys_ioctl.
17322         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17323
17324 2010-09-16  Bruno Haible  <bruno@clisp.org>
17325
17326         login_tty: Stricter unit test.
17327         * modules/login_tty-tests (Depends-on): Add tcgetsid.
17328         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
17329         and tcgetsid() after login_tty.
17330         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17331
17332 2010-09-16  Bruno Haible  <bruno@clisp.org>
17333
17334         New module 'tcgetsid'.
17335         * lib/tcgetsid.c: New file.
17336         * m4/tcgetsid.m4: New file.
17337         * modules/tcgetsid: New file.
17338         * modules/termios (Depends-on): Add c++defs, warn-on-use.
17339         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
17340         GNULIB_TCGETSID, HAVE_TCGETSID.
17341         * lib/termios.in.h: Include <sys/types.h>.
17342         (tcgetsid): New declaration.
17343         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
17344         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
17345         * doc/posix-functions/tcgetsid.texi: Mention the new module.
17346         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
17347
17348 2010-09-16  Bruno Haible  <bruno@clisp.org>
17349
17350         Tests for module 'termios'.
17351         * modules/termios-c++-tests: New file.
17352         * modules/termios-tests: New file.
17353         * tests/test-termios-c++.cc: New file.
17354         * tests/test-termios.c: New file.
17355
17356         New module 'termios'.
17357         * modules/termios: New file.
17358         * lib/termios.in.h: New file.
17359         * m4/termios_h.m4: New file.
17360         * doc/posix-headers/termios.texi: Mention the new module.
17361
17362 2010-09-16  Eric Blake  <eblake@redhat.com>
17363
17364         fdutimensat: add an atflag parameter
17365         * lib/fdutimensat.c (fdutimensat): Add new parameter.
17366         * lib/utimens.h (fdutimensat): Update prototype.
17367         * tests/test-fdutimensat.c: Adjust test to match.
17368         * NEWS: Document the change.
17369         Suggested by Paul Eggert.
17370
17371 2010-09-16  Bruno Haible  <bruno@clisp.org>
17372
17373         Fix typos in comments.
17374         * lib/striconveh.h: Fix typo in comment.
17375         * lib/login_tty.c (login_tty): Likewise.
17376
17377 2010-09-15  Bruno Haible  <bruno@clisp.org>
17378
17379         stdlib: clarify MirBSD WEXITSTATUS bug
17380         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
17381         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17382
17383 2010-09-15  Eric Blake  <eblake@redhat.com>
17384
17385         stdlib: work around MirBSD WEXITSTATUS bug
17386         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
17387         * modules/stdlib (Depends-on): Add sys_wait.
17388         * tests/test-sys_wait.c (main): Enhance test.
17389         * tests/test-stdlib.c (main): Likewise.
17390         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
17391
17392         docs: mention MacOS issue with WEXITSTATUS(constant)
17393         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
17394         issue.
17395         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17396
17397         strnlen: add tests
17398         * modules/strnlen-tests: New file.
17399         * tests/test-strnlen.c: Likewise.
17400
17401 2010-09-14  Bruno Haible  <bruno@clisp.org>
17402
17403         unistr/base: Avoid link errors when module 'libunistring' is also used.
17404         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
17405         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
17406         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
17407         Declare also when HAVE_LIBUNISTRING is set.
17408         Reported by Pádraig Brady <P@draigbrady.com>.
17409
17410 2010-09-14  Eric Blake  <eblake@redhat.com>
17411
17412         test-rawmemchr: make more robust
17413         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
17414         (Depends-on, configure.ac): Add needed prerequisites to use it.
17415         * modules/memchr-tests (Files, Depends-on, configure.ac):
17416         Likewise, to avoid implicit reliance on memchr module prereqs.
17417         * tests/test-memchr.c (main): Ensure proper masking.
17418         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
17419         reads.
17420
17421         memchr: detect glibc Alpha bug
17422         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
17423         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
17424         Alpha.
17425         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
17426         * tests/test-memchr.c (main): Enhance test.
17427         Reported by Nelson H. F. Beebe.
17428
17429 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17430
17431         fts, getcwd, glob: audit for dirfd returning -1
17432         * lib/fts.c (opendir): Remove #define; no longer used.
17433         (opendirat): New arg PDIR_FD.  All callers changed.
17434         (fts_build, _opendir2): Use new opendirat to avoid the need for
17435         dirfd, or for checking whether dirfd returns a negative value.
17436         Don't use opendir; always use openat followed by fdopendir.
17437         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
17438         it.
17439         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
17440         returns -1 here.
17441         * modules/fts (Depends-on): Remove dirfd.
17442         * modules/getcwd (Depends-on): Likewise.
17443
17444 2010-09-13  Eric Blake  <eblake@redhat.com>
17445
17446         float: fix broken MirBSD header
17447         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
17448         * doc/posix-headers/float.texi (float.h): Document it.
17449
17450 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17451
17452         fts: use O_NOFOLLOW to avoid race condition when opening a directory
17453         * lib/fts.c (opendirat): New arg extra_flags.
17454         (__opendir2): Use it to avoid following symlinks when opening
17455         a directory, if symlinks are not supposed to be followed.  See
17456         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
17457
17458         fdopendir: preserve argument fd before returning
17459         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
17460         (fdopendir_with_dup, fd_clone_opendir): New static functions.
17461         (fdopendir): Use them, arranging for FD to be open to the same
17462         directory that it was when it started.  (It might be temporarily
17463         closed while fdopendir is running, so this not thread- or
17464         signal-safe.)  Be careful to do the right thing even when file
17465         descriptors are scarce and dup fails with errno == EMFILE.  See
17466         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
17467
17468 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
17469
17470         regex: Pass the system regex if its only problem is 32-bit regoff_t.
17471         * NEWS: Document change.
17472         * m4/regex.m4: Disable test for regoff_t size.
17473
17474 2010-09-13  Jim Meyering  <meyering@redhat.com>
17475
17476         fts: don't operate on an invalid file descriptor after failed dup
17477         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
17478         negative file descriptor.
17479
17480 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17481
17482         savedir: add streamsavedir, deprecate fdsavedir
17483         * NEWS: Mention deprecation of fdsavedir.
17484         * lib/savedir.c (streamsavedir): New extern function, whose name
17485         ends in "savedir" to be consistent with the others.  This differs
17486         from savedirstream in that it doesn't close its argument.  The
17487         next version of GNU tar will use this instead of fdsavedir, to
17488         avoid some race conditions and conserve file descriptors.
17489         (savedirstream): Reimplement as a wrapper around streamsavedir.
17490         (fdsavedir): Add a comment deprecating this function.  As far as
17491         I know, only GNU tar used it, and GNU tar doesn't need it any more.
17492         * lib/savedir.h (streamsavedir): New decl.
17493         (fdsavedir): Add a comment deprecating this.
17494
17495 2010-09-10  Bruno Haible  <bruno@clisp.org>
17496
17497         langinfo: Fix last commit.
17498         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
17499         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
17500         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17501
17502 2010-09-10  Bruno Haible  <bruno@clisp.org>
17503
17504         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
17505         * lib/progreloc.c (O_EXEC): Define fallback.
17506
17507 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17508
17509         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
17510         * NEWS: Document recent changes to fcntl-h.
17511         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17512         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17513         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17514         Similarly for O_SEARCH; this last was already true, but not documented.
17515         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17516         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17517         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17518         Likewise.
17519         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17520         is zero, not whether it is defined.
17521         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17522         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17523         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17524
17525 2010-09-10  Bruno Haible  <bruno@clisp.org>
17526
17527         langinfo, nl_langinfo: Fix for IRIX 5.3.
17528         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17529         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17530         HAVE_LANGINFO_YESEXPR.
17531         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17532         HAVE_LANGINFO_YESEXPR.
17533         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17534         HAVE_LANGINFO_T_FMT_AMPM is 0.
17535         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17536         HAVE_LANGINFO_YESEXPR is 0.
17537         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17538         NOEXPR.
17539         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17540         * doc/posix-functions/nl_langinfo.texi: Likewise.
17541         Reported by Eric Blake.
17542
17543 2010-09-10  Bruno Haible  <bruno@clisp.org>
17544
17545         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17546         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17547         on FreeBSD 8.0 and OpenBSD 4.6.
17548         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17549         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17550         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17551         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17552         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17553         ac_includes_default.
17554         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17555
17556 2010-09-09  Eric Blake  <eblake@redhat.com>
17557
17558         strsignal: work around NetBSD bug
17559         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17560         * lib/string.in.h (includes): Likewise.
17561         * doc/posix-functions/strsignal.texi (strsignal): Document the
17562         bug.
17563         Reported by Nelson H. F. Beebe.
17564
17565         gnulib-tool: work with NetBSD /bin/sh
17566         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17567         (func_get_description, func_get_comment, func_get_status)
17568         (func_get_notice, func_get_applicability, func_get_filelist)
17569         (func_get_dependencies, func_get_autoconf_early_snippet)
17570         (func_get_autoconf_snippet, func_get_automake_snippet)
17571         (func_get_include_directive, func_get_link_directive)
17572         (func_get_license, func_get_maintainer, func_import): Avoid
17573         shell syntax errors from parsing syntax extensions.
17574
17575 2010-09-09  Bruno Haible  <bruno@clisp.org>
17576
17577         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17578         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17579         a reliable way to determine whether the 'alias' command works.
17580
17581 2010-09-08  Jim Meyering  <meyering@redhat.com>
17582
17583         init.sh: penalize a set-x-impaired shell; don't disqualify it
17584         * tests/init.sh: Too many shells corrupt application stderr when
17585         you set -x, so we can't afford to disqualify them, since at least
17586         on Irix-6.5, that would disqualify all bourne shells.
17587         Instead, use a two-pass approach.
17588         On the first pass, try to find a shell that meets the stricter
17589         condition that set -x does not corrupt stderr.
17590         If no shell meets the stricter condition, retest each candidate
17591         shell, but without that extra condition.  Finally, when
17592         VERBOSE=yes is requested and set -x might cause trouble, simply
17593         issue a warning and refrain from enabling debug output.
17594
17595 2010-09-08  Eric Blake  <eblake@redhat.com>
17596
17597         unsetenv: fix OpenBSD bug
17598         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17599         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17600         documentation.
17601         Reported by Jim Meyering.
17602
17603         strtod: work around IRIX 6.5 bug
17604         * lib/strtod.c (strtod): Reparse number on shorter string if
17605         exponent parse was invalid.
17606         * tests/test-strtod.c (main): Add check for "0x1p 2".
17607         Reported by Tom G. Christensen.
17608
17609         getopt: optimize previous patch
17610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17611         empty variable.  Speed up awk script.
17612         Reported by Paolo Bonzini.
17613
17614 2010-09-08  Jim Meyering  <meyering@redhat.com>
17615
17616         test.sh: disqualify shells for which set -x corrupts stderr
17617         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17618         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17619         appear in stderr output.  For example, this command:
17620             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17621         prints "P=1" on those two systems:
17622
17623 2010-09-08  Bruno Haible  <bruno@clisp.org>
17624
17625         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17626         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17627         commands, because some shells ignore redirections when there is an
17628         error in the command lookup.
17629         Reported by Eric Blake.
17630
17631 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17632
17633         * lib/regex.h: Fix a mention of `regex_compile' (should be
17634         `re_compile_pattern').
17635         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17636         (re_set_registers): Correct name of parameter in comment.
17637
17638         * doc/regex.texi: Add documentation for missing syntax flags.
17639         Remove commented-out documentation of defunct syntax option
17640         RE_NO_EMPTY_ALTS.
17641         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17642         Add documentation of re_set_registers.
17643         Document trick to re-use a pattern buffer by setting fastmap manually.
17644         Update documentation of struct re_pattern_buffer per public members.
17645         Uncomment documentation of equivalence class operators and
17646         collating symbol operators, since they are now implemented,
17647         Explain leftmost-longest matching in relation to alternatives.
17648         Tidy documentation of substring matching.
17649         Remove POSIX documentation, which is done better in
17650         glibc, and refer the reader there. Keep BSD API documentation, as
17651         that is not readily available elsewhere.
17652
17653 2010-09-07  Eric Blake  <eblake@redhat.com>
17654
17655         getopt: handle POSIXLY_CORRECT set but not exported
17656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17657         export state of POSIXLY_CORRECT, due to bash set -o posix.
17658         Reported by Dustin J. Mitchell.
17659
17660 2010-09-05  Bruno Haible  <bruno@clisp.org>
17661
17662         gnulib-tool: Highlight the changed options.
17663         * gnulib-tool (func_usage): Display the --import, --add-import,
17664         --remove-import explanations in bold font.
17665
17666 2010-09-06  Karl Berry  <karl@gnu.org>
17667
17668         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17669
17670 2010-09-05  Bruno Haible  <bruno@clisp.org>
17671
17672         uniwidth/width: Update comment.
17673         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17674         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17675
17676 2010-09-05  Bruno Haible  <bruno@clisp.org>
17677
17678         isinf, isnan: Relax license.
17679         * modules/isinf (License): Change from GPL to LGPL, with consent from
17680         Ben Pfaff.
17681         * modules/isnan (License): Likewise.
17682         Requested by Ludovic Courtès.
17683
17684 2010-09-04  Bruno Haible  <bruno@clisp.org>
17685
17686         gnulib-tool: Help migration from --import to --add-import or --update.
17687         * gnulib-tool: Emit a verbose error message when --import is used
17688         without any module name.
17689
17690 2010-09-04  Bruno Haible  <bruno@clisp.org>
17691
17692         Update doc about gnulib-tool.
17693         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17694         'gnulib-tool --update' in more detail.
17695         Reported by Eric Blake.
17696
17697 2010-09-04  Bruno Haible  <bruno@clisp.org>
17698
17699         gnulib-tool: Change --import. New options --add/remove-import.
17700         * gnulib-tool: New options --add-import, --remove-import.
17701         (func_usage): Document them.
17702         (have_associative): Define always.
17703         (func_import): In import mode, don't merge the specified settings with
17704         the cached settings. Implement remove-import mode.
17705         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17706         Explain when to use them versus --import.
17707         (Simple update): Use --add-import instead of --import.
17708         * NEWS: Mention the change.
17709
17710 2010-09-04  Bruno Haible  <bruno@clisp.org>
17711
17712         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17713         separate gnulib.mk.
17714
17715 2010-09-04  Bruno Haible  <bruno@clisp.org>
17716
17717         gnulib-tool: Don't talk about CVS any more.
17718         * gnulib-tool (func_usage, func_import): Write "version control"
17719         instead of CVS.
17720
17721 2010-09-04  Jim Meyering  <meyering@redhat.com>
17722
17723         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17724         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17725         false positives (whose names may be ill-chosen) when searching
17726         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17727         would cause a false-positive.
17728
17729         avoid coreutils "make distcheck" failure
17730         Coreutils tests with an absolute build directory name that contains
17731         a space.  Not quoting this directory name caused a failure.
17732         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17733         * tests/test-vc-list-files-cvs.sh: Likewise.
17734
17735 2010-09-04  Bruno Haible  <bruno@clisp.org>
17736
17737         gnulib-tool: Avoid error when run in a package without Makefile.am.
17738         * gnulib-tool: When collecting the m4dirs in a package that does not
17739         have a Makefile.am, eliminate those directories that contain no
17740         gnulib-cache.m4. Fix expression that counts these directories.
17741
17742 2010-09-04  Bruno Haible  <bruno@clisp.org>
17743
17744         update-copyright test: Improve output when perl is missing or too old.
17745         * tests/test-update-copyright.sh: Move test of Perl version down after
17746         the test whether Perl exists. Provide an explanation relating Perl's
17747         error message to Automake's SKIP: message.
17748
17749 2010-09-04  Bruno Haible  <bruno@clisp.org>
17750
17751         Don't augment PATH in TESTS_ENVIRONMENT.
17752         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17753         set abs_aux_dir instead of augmenting PATH.
17754         * modules/vc-list-files-tests (Makefile.am): Likewise.
17755         * tests/test-update-copyright.sh: Augment PATH here.
17756         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17757         path_prepend_.
17758         * tests/test-vc-list-files-git.sh: Likewise.
17759
17760 2010-09-04  Jim Meyering  <meyering@redhat.com>
17761
17762         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17763         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17764
17765 2010-09-04  Bruno Haible  <bruno@clisp.org>
17766
17767         strdup: Fix compilation error in C++ mode.
17768         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17769         the macro.
17770
17771 2010-09-04  Bruno Haible  <bruno@clisp.org>
17772
17773         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17774         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17775         macro into a function.
17776         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17777
17778 2010-09-04  Bruno Haible  <bruno@clisp.org>
17779
17780         Set PATH_SEPARATOR the same way autoconf does.
17781         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17782         the value of PATH_SEPARATOR the same way autoconf-generated configure
17783         scripts do.
17784         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17785         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17786
17787 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17788
17789         Set PATH_SEPARATOR the same way autoconf does.
17790         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17791         the same way autoconf-generated configure scripts do.
17792         * posix-modules: Likewise.
17793
17794 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17795
17796         hash: fix safe_hasher const typo
17797         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17798         const; otherwise, there is a type error later.
17799
17800 2010-09-02  Jim Meyering  <meyering@redhat.com>
17801
17802         test-update-copyright.sh: require perl 5.8.0
17803         * tests/test-update-copyright.sh: Require 5.8.0,
17804         which Tom G. Christensen has confirmed is adequate,
17805         while 5.6.1 is not.
17806
17807 2010-09-02  Eric Blake  <eblake@redhat.com>
17808
17809         tests: init.sh improvements for re-exec'ing with zsh
17810         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17811         -vx through shell re-exec.
17812         Reported by Tom G. Christensen.
17813
17814         wctype: fix typo in previous commit
17815         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17816         Reported by Ludovic Courtès.
17817
17818 2010-09-02  Jim Meyering  <meyering@redhat.com>
17819
17820         test-update-copyright.sh: skip test if Perl is too old
17821         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17822         Reported by Tom G. Christensen.
17823
17824 2010-09-02  Bruno Haible  <bruno@clisp.org>
17825
17826         wctype: Avoid compilation error on IRIX 6.5.30.
17827         * lib/wctype.in.h (iswblank): Declare with a replacement if
17828         REPLACE_ISWBLANK is set.
17829         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17830         declared. Set REPLACE_ISWBLANK.
17831         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17832         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17833         * doc/posix-headers/wctype.texi: Likewise.
17834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17835
17836 2010-09-01  Bruno Haible  <bruno@clisp.org>
17837
17838         New module 'socketlib'.
17839         * modules/socketlib: New file.
17840         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17841         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17842         * modules/sockets (Depends-on): Add socketlib.
17843         Suggested by Sam Steingold <sds@gnu.org>.
17844
17845 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17846
17847         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17848
17849         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17850         when one needs search access to a directory but not read access.
17851         On systems where it is available, it works in some cases where
17852         O_RDONLY does not, namely on directories that are searchable but
17853         not readable, and which need only to be searchable.  If O_SEARCH
17854         is not available, fall back to the traditional method of using
17855         O_RDONLY.
17856
17857         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17858         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17859         when opening a directory that needs only to be searchable.
17860         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17861         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17862         * lib/openat-proc.c (openat_proc_name): Likewise.
17863         * lib/openat.c (openat_needs_fchdir): Likewise.
17864         * lib/save-cwd.c (save_cwd): Likewise.
17865         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17866
17867 2010-08-28  Bruno Haible  <bruno@clisp.org>
17868
17869         New module 'host-cpu-c-abi'.
17870         * modules/host-cpu-c-abi: New file.
17871         * m4/host-cpu-c-abi.m4: New file, based on part of
17872         clisp/src/m4/general.m4.
17873         Requested by Sam Steingold <sds@gnu.org>.
17874
17875 2010-08-31  Eric Blake  <eblake@redhat.com>
17876         and Jim Meyering  <meyering@redhat.com>
17877
17878         hash: factor, and guard against misbehaving hasher function
17879         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17880         of table->hasher's return value.  Also protect against a hash value
17881         so large that adding it to table->bucket results in a NULL pointer.
17882         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17883         Use it in place of open-coded check-and-abort.
17884
17885 2010-08-30  Bruno Haible  <bruno@clisp.org>
17886
17887         hash: silence spurious clang warning
17888         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17889         Reported by Eric Blake.
17890
17891 2010-08-30  Eric Blake  <eblake@redhat.com>
17892
17893         strstr, memmem, strcasestr: avoid leaked shell message
17894         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17895         FreeBSD.
17896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17897         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17898
17899         tests: silence clang warning
17900         * tests/test-malloca.c (do_allocation): Avoid dead store.
17901
17902 2010-08-29  Bruno Haible  <bruno@clisp.org>
17903
17904         gettext: Fix recent mistake.
17905         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17906
17907 2010-08-29  Bruno Haible  <bruno@clisp.org>
17908
17909         selinux-h: Offer a --without-selinux option.
17910         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17911         --without-selinux was specified, skip all tests and define
17912         HAVE_SELINUX_SELINUX_H to 0.
17913         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17914         set LIB_SELINUX to empty.
17915         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17916         gl_LIBSELINUX. If --without-selinux was specified, replace
17917         selinux/context.h.
17918         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17919
17920 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17921             Bruno Haible  <bruno@clisp.org>
17922
17923         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17924         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17925         of HAVE_REALLOC.
17926         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17927         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17928         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17929         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17930
17931 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17932             Bruno Haible  <bruno@clisp.org>
17933
17934         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17935         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17936         HAVE_CALLOC.
17937         * lib/xmalloc.c: Update accordingly.
17938         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17939         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17940         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17941
17942 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17943             Bruno Haible  <bruno@clisp.org>
17944
17945         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17946         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17947         HAVE_MALLOC.
17948         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17949         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17950         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17951
17952 2010-08-29  Bruno Haible  <bruno@clisp.org>
17953
17954         Update modules list.
17955         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17956         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17957         (String handling <string.h>): Add astrxfrm.
17958         (File system functions): Add readlinkat.
17959
17960 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17961
17962         Tests for module 'realloc-gnu'.
17963         * modules/realloc-gnu-tests: New file.
17964         * tests/test-realloc-gnu.c: New file.
17965
17966         Tests for module 'calloc-gnu'.
17967         * modules/calloc-gnu-tests: New file.
17968         * tests/test-calloc-gnu.c: New file.
17969
17970         Tests for module 'malloc-gnu'.
17971         * modules/malloc-gnu-tests: New file.
17972         * tests/test-malloc-gnu.c: New file.
17973
17974 2010-08-28  Bruno Haible  <bruno@clisp.org>
17975
17976         Rename module 'realloc' -> 'realloc-gnu'.
17977         * modules/realloc-gnu: New file, copied from modules/realloc.
17978         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17979         obsolete.
17980         * modules/mgetgroups (Depends-on): Update.
17981         * doc/posix-functions/realloc.texi: Update.
17982         * NEWS: Mention the change.
17983
17984         Rename module 'calloc' -> 'calloc-gnu'.
17985         * modules/calloc-gnu: New file, copied from modules/calloc.
17986         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17987         obsolete.
17988         * doc/posix-functions/calloc.texi: Update.
17989         * NEWS: Mention the change.
17990
17991         Rename module 'malloc' -> 'malloc-gnu'.
17992         * modules/malloc-gnu: New file, copied from modules/malloc.
17993         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17994         obsolete.
17995         * modules/argp (Depends-on): Update.
17996         * modules/regex (Depends-on): Update.
17997         * doc/posix-functions/malloc.texi: Update.
17998         * NEWS: Mention the change.
17999
18000 2010-08-28  Eric Blake  <eblake@redhat.com>
18001
18002         pread, pwrite: add missing dependency
18003         * modules/pread (Depends-on): Add extensions.
18004         * modules/pwrite (Depends-on): Likewise.
18005
18006 2010-08-28  Bruno Haible  <bruno@clisp.org>
18007
18008         unistr/u*-strchr: Fix tests dependencies.
18009         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
18010         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
18011         Reported by Ian Beckwith <ianb@erislabs.net>.
18012
18013 2010-08-28  Bruno Haible  <bruno@clisp.org>
18014
18015         read-file: Don't occupy too much unused memory.
18016         * lib/read-file.c (fread_file): Shrink the buffer at the end.
18017
18018 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
18019             Eric Blake  <eblake@redhat.com>
18020             Bruno Haible  <bruno@clisp.org>
18021
18022         read-file: Avoid memory reallocations with regular files.
18023         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
18024         (fread_file): With regular files, use the remaining length as the
18025         initial buffer size.  Check against overflow.
18026         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
18027         sys_stat.
18028
18029 2010-08-28  Bruno Haible  <bruno@clisp.org>
18030
18031         ftello: Relax license.
18032         * modules/ftello (License): Relax to LGPLv2+.
18033         Reported by Eric Blake.
18034
18035 2010-08-28  Bruno Haible  <bruno@clisp.org>
18036
18037         Avoid relocwrapper link errors due to gnulib replacement functions.
18038         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
18039         function.
18040         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18041
18042 2010-08-28  Bruno Haible  <bruno@clisp.org>
18043
18044         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
18045         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
18046         defined.
18047         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
18048         Suggested by Eric Blake.
18049
18050 2010-08-28  Bruno Haible  <bruno@clisp.org>
18051
18052         sys_socket, netdb: Ensure socklen_t gets defined.
18053         * modules/sys_socket (Depends-on): Add socklen.
18054         * modules/netdb (Depends-on): Likewise.
18055         * modules/getaddrinfo (Depends-on): Remove socklen.
18056         * modules/getsockopt (Depends-on): Likewise.
18057         * modules/setsockopt (Depends-on): Likewise.
18058         * tests/test-sys_socket.c: Check that socklen_t is defined.
18059         * tests/test-netdb.c: Likewise.
18060         * m4/socklen.m4: Update comments.
18061         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18062
18063 2010-08-27  Eric Blake  <eblake@redhat.com>
18064
18065         login_tty: add missing dependency
18066         * modules/login_tty (Depends-on): Add pty.
18067
18068 2010-08-26  Eric Blake  <eblake@redhat.com>
18069
18070         lib-symbol-versions: fix m4 quoting
18071         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
18072         format for AC_LINK_IFELSE.
18073
18074         glob: fix compile test
18075         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
18076
18077         btowc: fix missing file
18078         * modules/btowc (Files): Also ship locale-fr.m4.
18079
18080         lseek: fix link test
18081         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
18082         AC_LINK_IFELSE.
18083
18084         include_next: silence autoconf 2.68 warning
18085         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
18086         AC_COMPILE_IFELSE as special.
18087         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
18088         autoconf < 2.68.
18089
18090         acl: fix compilation test
18091         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
18092         AC_COMPILE_IFELSE.
18093
18094 2010-08-26  Bruno Haible  <bruno@clisp.org>
18095
18096         Modernize AC_TRY_RUN invocations.
18097         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
18098         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18099         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
18100         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
18101         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18102         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18103         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18104         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18105         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18106         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18107         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18108         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18109         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18110         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18111         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18112         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18113         gl_MBRLEN_NUL_RETVAL): Likewise.
18114         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18115         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18116         Likewise.
18117         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18118         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18119         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18120         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18121         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18122         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18123         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
18124         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18125         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
18126         Likewise.
18127         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18128         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18129         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18130         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18131         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18132         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18133         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18134         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
18135         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18137
18138 2010-08-26  Bruno Haible  <bruno@clisp.org>
18139
18140         Modernize AC_TRY_LINK invocations.
18141         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
18142         AC_TRY_LINK.
18143         * m4/argp.m4 (gl_ARGP): Likewise.
18144         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
18145         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18146         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18147         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18148         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18149         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
18150         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
18151         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18152         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18153         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18154         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18155         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
18156         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
18157         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18158         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18159         * m4/hostent.m4 (gl_HOSTENT): Likewise.
18160         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18161         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
18162         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18163         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
18164         Likewise.
18165         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
18166         Likewise.
18167         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
18168         Likewise.
18169         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18170         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
18171         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
18172         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18173         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
18174         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18175         * m4/servent.m4 (gl_SERVENT): Likewise.
18176         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18177         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
18178         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
18179         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
18180         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18181         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18182         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18183         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18184         * modules/tsearch-tests (configure.ac): Likewise.
18185
18186 2010-08-26  Bruno Haible  <bruno@clisp.org>
18187
18188         Modernize AC_TRY_COMPILE invocations.
18189         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
18190         AC_TRY_COMPILE.
18191         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
18192         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
18193         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18194         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18195         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18196         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18197         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18198         * m4/lock.m4 (gl_LOCK): Likewise.
18199         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18200         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18201         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
18202         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18203         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18204         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
18205         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18206         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
18207         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18208         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18209         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18210         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18211         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
18212         extraneous semicolon.
18213
18214 2010-08-26  Jim Meyering  <meyering@redhat.com>
18215
18216         stat-time: relax license LGPL
18217         * modules/stat-time (License): Change from GPL to LGPL,
18218         with consent from all contributors, for use in libguile.
18219         Requested by Ludovic Courtès.
18220
18221 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
18222
18223         poll: return immediately on POLLHUP.
18224         * lib/poll.c (poll): Always set timeout before wait_timeout is
18225         computed.
18226
18227 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18228
18229         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
18230         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
18231         rmdir ("dir/.//"), unlinkat.
18232
18233 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18234
18235         stdbool: avoid spurious failure with modern xlc
18236         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18237
18238 2010-08-24  Bruno Haible  <bruno@clisp.org>
18239
18240         getloadavg: simplify code
18241         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
18242         gl_have_func. Update comments.
18243
18244 2010-08-24  Eric Blake  <eblake@redhat.com>
18245
18246         getloadavg: don't define SVR4 on cygwin
18247         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
18248         only define SVR4 when -lkvm is required.
18249         Reported by Yaakov Selkowitz.
18250
18251 2010-08-24  Bruno Haible  <bruno@clisp.org>
18252
18253         priv-set: fix comment
18254         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
18255
18256 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18257
18258         priv-set: fix comments
18259         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
18260         to match code, as suggested by David Bartley in:
18261         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
18262
18263 2010-08-23  Eric Blake  <eblake@redhat.com>
18264
18265         stdbool: avoid rejecting clang
18266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18267         * tests/test-stdbool.c: Enable more tests if using the system
18268         <stdbool.h> instead of the gnulib replacement.
18269         (main): Move xlc bug test to a runtime test for all compilers.
18270         Reported by Anders Kaseorg.
18271
18272         argz: fix shell quoting issue
18273         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
18274         Reported by Charles Wilson.
18275
18276 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
18277             Erik Faye-Lund <kusmabite@gmail.com>
18278
18279         poll, select: handle ERROR_BROKEN_PIPE.
18280         * lib/poll.c (win32_compute_revents): Return POLLHUP when
18281         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18282         * lib/select.c (win32_compute_revents): Do not mark a pipe
18283         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18284
18285 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
18286
18287         fts: allow compilation with C++
18288         * lib/fts_.h: Specify extern "C" linkage with C++.
18289
18290 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18291
18292         Fix gnulib-tool sed script de-commentation for AIX sed.
18293         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
18294         sed.
18295
18296 2010-08-17  Eric Blake  <eblake@redhat.com>
18297
18298         test-stddef: test for (some) offsetof bugs
18299         * tests/test-stddef.c: Enhance test to ensure correct type of
18300         offsetof.
18301         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
18302         that we are not fixing at this time.
18303
18304 2010-08-15  Bruno Haible  <bruno@clisp.org>
18305
18306         stpncpy: Allow stpncpy to be defined as a macro.
18307         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
18308         if it's already correctly declared.
18309         * lib/string.in.h (stpncpy): Undefine before redefining.
18310         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
18311
18312 2010-08-14  Bruno Haible  <bruno@clisp.org>
18313
18314         Rename module 'memxfrm' to 'amemxfrm'.
18315         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
18316         (amemxfrm): Renamed from memxfrm.
18317         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
18318         (amemxfrm): Renamed from memxfrm.
18319         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
18320         * NEWS: Mention the change.
18321         * MODULES.html.sh (String handling <string.h>): Update.
18322         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
18323         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
18324         * lib/unicase/u16-casexfrm.c: Likewise.
18325         * lib/unicase/u32-casexfrm.c: Likewise.
18326         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
18327         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
18328         * lib/uninorm/u16-normxfrm.c: Likewise.
18329         * lib/uninorm/u32-normxfrm.c: Likewise.
18330         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
18331         memxfrm.
18332         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
18333         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
18334         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
18335         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
18336         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
18337         Suggested by Paul Eggert.
18338
18339 2010-08-14  Bruno Haible  <bruno@clisp.org>
18340
18341         Tests for module 'astrxfrm'.
18342         * modules/astrxfrm-tests: New file.
18343         * tests/test-astrxfrm.c: New file.
18344
18345         New module 'astrxfrm'.
18346         * lib/astrxfrm.h: New file.
18347         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
18348         * modules/astrxfrm: New file.
18349
18350 2010-08-14  Reuben Thomas <rrt@sc3d.org>
18351
18352         regex: Tweak doc.
18353         * doc/regex.texi (Overview): Don't mention regex.c.
18354         (GNU Regular Expression Compiling): Likewise.
18355         (Match-end-of-line Operator): Mention 'not_eol'.
18356
18357 2010-08-14  Brian Gough  <bjg@gnu.org>
18358             Bruno Haible  <bruno@clisp.org>
18359
18360         git-merge-changelog: add doc relating to use with bzr and hg.
18361         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
18362
18363 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
18364
18365         pthread: fix pthread.h creation for srcdir != builddir
18366         * modules/pthread (Makefile.am): Fix the rule to work also in a
18367         non-srcdir build.
18368
18369 2010-08-13  Karl Berry  <karl@gnu.org>
18370
18371         * doc/regex.texi (Predefined Syntaxes): @smallexample.
18372         * doc/posix-*/*: force line break before @url of POSIX
18373         specifications.
18374         Suggested by Werner Lemberg.
18375
18376 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18377
18378         strtod: fix const diagnostic
18379         * lib/strtod.c (strtod): Don't assign const char * to char *,
18380         as this elicits a warning from GCC when warnings are enabled.
18381
18382 2010-08-10  Pádraig Brady <P@draigbrady.com>
18383         and Eric Blake  <eblake@redhat.com>
18384
18385         copy-acl: ignore ENOTSUP on HP-UX
18386         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
18387         so that it is available for HP-UX.
18388         * lib/copy-acl.c (qcopy_acl): Use it.
18389         Reported by Patrick M. Callahan.
18390
18391 2010-08-10  Eric Blake  <eblake@redhat.com>
18392
18393         open, chown: relax license
18394         * modules/open (License): Change to LGPLv2+, with consent by all
18395         authors, for use in augeas.
18396         * modules/chown (License): Likewise.
18397         * modules/lchown (Likewise): Likewise.
18398         Requested by Adam Stokes.
18399
18400 2010-08-09  Karl Berry  <karl@gnu.org>
18401
18402         * build-aux/ar-lib: new file, import from Automake.
18403         * config/srclist.txt: autocheck for updates.
18404
18405 2010-08-09  Eric Blake  <eblake@redhat.com>
18406
18407         readlinkat: adjust client modules
18408         * modules/areadlinkat (Depends-on): Use readlinkat, not
18409         symlinkat.
18410         * modules/areadlinkat-with-size (Depends-on): Likewise.
18411
18412         mknod: be more vocal about danger of running tests as root
18413         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
18414         root, since that is just asking for problems.
18415         Suggested by Bruno Haible, based on a report by Rainer Tammer.
18416
18417         readlinkat: split into its own module
18418         * modules/symlinkat: Split readlinkat...
18419         * modules/readlinkat: ...into separate module.
18420         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
18421         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
18422         * lib/symlinkat.c (readlinkat): Move...
18423         * lib/readlinkat.c: ...into new file.
18424         * modules/symlinkat-tests: Split readlinkat test...
18425         * modules/readlinkat-tests: ...into separate module.
18426         * tests/test-symlinkat.c: Split...
18427         * tests/test-readlinkat.c: ...into new file.
18428         * NEWS: Document the split.
18429         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18430         * lib/unistd.in.h (readlinkat): Likewise.
18431         Suggested by Bruno Haible.
18432
18433 2010-08-08  Bruno Haible  <bruno@clisp.org>
18434
18435         memxfrm: Speed up.
18436         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
18437         that usually only one call to strxfrm is necessary for each string
18438         part.
18439         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18440
18441 2010-08-07  Karl Berry  <karl@gnu.org>
18442
18443         * doc/posix-headers/limits.texi,
18444         * doc/posix-functions/malloc.texi,
18445         * doc/posix-functions/strsignal.texi: missing @item.
18446         * doc/ld-version-script.texi: spurious leading i.
18447         * doc/regex.texi (Interval Operators): no commas inside @var.
18448
18449 2010-08-01  Bruno Haible  <bruno@clisp.org>
18450
18451         Integrate the regex documentation.
18452         * doc/gnulib.texi: Define 'cn' index.
18453         (Regular expressions): New a chapter that includes regex.texi and
18454         regexprops-generic.texi.
18455         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
18456         syntax.
18457
18458         Whitespace cleanup.
18459         * doc/regex.texi: Remove trailing spaces.
18460
18461         Add regex documentation.
18462         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
18463         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
18464         Written by Kathy A. Hargreaves and Karl Berry.
18465
18466 2010-08-01  Bruno Haible  <bruno@clisp.org>
18467
18468         link: Update documentation.
18469         * doc/posix-functions/link.texi: Update regarding Solaris.
18470
18471 2010-07-31  Bruno Haible  <bruno@clisp.org>
18472
18473         Update modules list.
18474         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
18475         (String handling <string.h>): Add memcmp2, memxfrm.
18476         (Container data structures): Add xlist, xsublist, xoset.
18477         (Core language properties): Add alignof, unused-parameter.
18478         (Process control, Numeric conversion functions <stdlib.h>): Renamed
18479         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
18480         (Unibyte characters <ctype.h>): New section.
18481         (String handling <string.h>): New section.
18482         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
18483         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
18484         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
18485         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
18486         tan, tanh, tanl, y0, y1, yn.
18487         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
18488         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
18489         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
18490         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
18491         unlockpt, vdprintf, vdprintf-posix.
18492         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
18493         (File system functions): Add concat-filename, sys_file, sys_ioctl,
18494         xconcat-filename.
18495         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
18496         getdtablesize, pipe2, pipe2-safer.
18497         (Security): New section.
18498         (Networking functions): Add accept4.
18499         (Signal handling): Add sigpipe.
18500         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
18501         mbmemcasecoll.
18502         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
18503         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
18504         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
18505         pipe-filter-ii.
18506         (Misc): Add argp-version-etc, login_tty, parse-duration.
18507
18508 2010-07-31  Bruno Haible  <bruno@clisp.org>
18509
18510         Improve doc in MODULES.html.
18511         * modules/linkat (Description): Add the word "function".
18512         * modules/mkfifo (Description): Likewise.
18513         * modules/mknod (Description): Likewise.
18514         * modules/remove (Description): Likewise.
18515         * modules/renameat (Description): Likewise.
18516         * modules/stat (Description): Likewise.
18517         * modules/symlink (Description): Likewise.
18518         * modules/unlink (Description): Likewise.
18519
18520 2010-07-31  Bruno Haible  <bruno@clisp.org>
18521
18522         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18523         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18524         option --enable/disable-c++ instead of --enable/disable-cxx.
18525         * NEWS: Mention the change.
18526
18527 2010-07-31  Bruno Haible  <bruno@clisp.org>
18528
18529         readlink, areadlink: Relax test a bit.
18530         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18531         alternative to ENOTDIR.
18532         * tests/test-areadlink.h (test_areadlink): Likewise.
18533         Reported by Rainer Tammer.
18534
18535 2010-07-31  Bruno Haible  <bruno@clisp.org>
18536
18537         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18538         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18539         character, perform the search using U_STRCHR.
18540         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18541         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18542         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18543         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18544         Suggested by Paolo Bonzini.
18545
18546 2010-07-31  Bruno Haible  <bruno@clisp.org>
18547
18548         unistr/u*-strstr: Fix dependencies.
18549         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18550         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18551         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18552
18553 2010-07-31  Bruno Haible  <bruno@clisp.org>
18554
18555         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18556         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18557         the beginning of the loop.
18558         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18559         cases in 'switch' statement.
18560
18561         unistr/u8-strchr: Fix several bugs.
18562         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18563         the string. When not found, return NULL, not a pointer near the end.
18564
18565         More tests for unistr/u8-strchr.
18566         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18567         that the function does not read past the first occurrence of the byte
18568         being searched.
18569         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18570         * tests/unistr/test-u16-strchr.c (main): New function.
18571         * tests/unistr/test-u32-strchr.c (main): New function.
18572
18573 2010-07-31  Bruno Haible  <bruno@clisp.org>
18574
18575         posix-modules: Ignore backup files of documentation files.
18576         * posix-modules: grep only through files named *.texi.
18577
18578 2010-07-31  Bruno Haible  <bruno@clisp.org>
18579
18580         symlinkat: Fix documentation.
18581         * doc/posix-functions/readlinkat.texi: Fix module name.
18582
18583 2010-07-31  Bruno Haible  <bruno@clisp.org>
18584
18585         fchownat: Replace also when chown has the trailing slash bug.
18586         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18587         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18588         introduced on 2010-04-10.
18589         Reported by Rainer Tammer.
18590
18591 2010-07-31  Bruno Haible  <bruno@clisp.org>
18592
18593         linkat: Work around AIX 7.1 bug.
18594         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18595         whether linkat handles trailing slash correctly. If not, replace linkat
18596         and define LINKAT_TRAILING_SLASH_BUG.
18597         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18598         check whether (fd1,file1) points to a directory if file1 or file2 ends
18599         in a slash. Code taken from lib/link.c.
18600         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18601         Reported by Rainer Tammer.
18602
18603 2010-07-31  Bruno Haible  <bruno@clisp.org>
18604
18605         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18606         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18607         This disables an xlc optimization that was causing wrong test results.
18608         Reported by Rainer Tammer.
18609
18610 2010-07-31  Bruno Haible  <bruno@clisp.org>
18611
18612         iconv: Work around AIX 6.1..7.1 bug.
18613         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18614         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18615         cross-compiling, guess no on all versions of AIX.
18616         Reported by Rainer Tammer.
18617
18618 2010-07-31  Bruno Haible  <bruno@clisp.org>
18619
18620         readlink: Relax test a bit.
18621         * tests/test-readlink.h (test_readlink): Allow different errno value
18622         when readlink is called with a file name that ends in / and refers to
18623         a file.
18624         Suggested by Eric Blake.
18625         Reported by Rainer Tammer.
18626
18627 2010-07-31  Bruno Haible  <bruno@clisp.org>
18628
18629         copysign: Does not require -lm on glibc systems.
18630         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18631         gl_COMMON_DOUBLE_MATHFUNC.
18632         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18633
18634 2010-07-31  Bruno Haible  <bruno@clisp.org>
18635
18636         duplocale: Work around AIX 7.1 bug.
18637         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18638         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18639         * lib/duplocale.c (rpl_duplocale): Update comment.
18640         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18641         Reported by Rainer Tammer.
18642
18643 2010-07-30  Bruno Haible  <bruno@clisp.org>
18644
18645         dirfd: Avoid link error on AIX 7.1.
18646         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18647         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18648         exist, set REPLACE_DIRFD.
18649         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18650         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18651         * doc/posix-functions/dirfd.texi: Update.
18652         Reported by Rainer Tammer.
18653
18654 2010-07-30  Eric Blake  <eblake@redhat.com>
18655
18656         strtod: next round of AIX fixes
18657         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18658         exponent.
18659         * tests/test-strtod.c (main): Enhance tests.
18660         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18661         Reported by Rainer Tammer.
18662
18663         futimens: fix configure check
18664         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18665         Reported by Bruno Haible.
18666
18667 2010-07-30  Bruno Haible  <bruno@clisp.org>
18668
18669         getline: Update regarding AIX.
18670         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18671         Reported by Rainer Tammer.
18672
18673 2010-07-30  Bruno Haible  <bruno@clisp.org>
18674
18675         wcwidth: Drop replacement on AIX 7.
18676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18677         AIX 7.
18678         Reported by Rainer Tammer.
18679
18680 2010-07-30  Bruno Haible  <bruno@clisp.org>
18681
18682         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18683         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18684         a 'char *'.
18685         Reported by Rainer Tammer.
18686
18687 2010-07-30  Bruno Haible  <bruno@clisp.org>
18688
18689         unlink: Update regarding AIX.
18690         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18691         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18692         Reported by Rainer Tammer.
18693
18694 2010-07-30  Bruno Haible  <bruno@clisp.org>
18695
18696         symlink: Update regarding AIX.
18697         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18698         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18699         Reported by Rainer Tammer.
18700
18701 2010-07-30  Bruno Haible  <bruno@clisp.org>
18702
18703         strndup: Update regarding AIX.
18704         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18705         AIX 7.
18706         Reported by Rainer Tammer.
18707
18708 2010-07-30  Bruno Haible  <bruno@clisp.org>
18709
18710         stat: Update regarding AIX.
18711         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18712         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18713         Reported by Rainer Tammer.
18714
18715 2010-07-30  Bruno Haible  <bruno@clisp.org>
18716
18717         truncl: Fix autoconf test.
18718         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18719         whether truncl works.
18720         Reported by Rainer Tammer.
18721
18722 2010-07-30  Bruno Haible  <bruno@clisp.org>
18723
18724         round: Update regarding AIX.
18725         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18726         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18727         Reported by Rainer Tammer.
18728
18729 2010-07-30  Bruno Haible  <bruno@clisp.org>
18730
18731         rename: Update regarding AIX.
18732         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18733         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18734         Reported by Rainer Tammer.
18735
18736 2010-07-30  Bruno Haible  <bruno@clisp.org>
18737
18738         printf.m4: Update regarding AIX.
18739         * m4/printf.m4: Update comments regarding AIX.
18740         Reported by Rainer Tammer.
18741
18742 2010-07-30  Bruno Haible  <bruno@clisp.org>
18743
18744         iconv: Update regarding AIX.
18745         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18746         AIX 7.
18747         Reported by Rainer Tammer.
18748
18749 2010-07-30  Bruno Haible  <bruno@clisp.org>
18750
18751         getopt: Update regarding AIX.
18752         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18753         no on AIX.
18754         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18755         Reported by Rainer Tammer.
18756
18757 2010-07-30  Bruno Haible  <bruno@clisp.org>
18758
18759         ldexpl; Update regarding AIX.
18760         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18761         on AIX 7.
18762         Reported by Rainer Tammer.
18763
18764 2010-07-30  Bruno Haible  <bruno@clisp.org>
18765
18766         frexpl: Update regarding AIX.
18767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18768         on AIX 7.
18769         Reported by Rainer Tammer.
18770
18771 2010-07-30  Bruno Haible  <bruno@clisp.org>
18772
18773         open, fopen: Update regarding AIX.
18774         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18775         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18776         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18777         * doc/posix-functions/fopen.texi: Likewise.
18778         Reported by Rainer Tammer.
18779
18780 2010-07-30  Bruno Haible  <bruno@clisp.org>
18781
18782         chown: Update doc regarding AIX.
18783         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18784         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18785         Reported by Rainer Tammer.
18786
18787 2010-07-30  Eric Blake  <eblake@redhat.com>
18788
18789         strtod: fix bug in replacement function on AIX
18790         * lib/strtod.c (strtod): Special case broken "0x" parse in
18791         underlying strtod.
18792         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18793         * doc/posix-functions/strtod.texi (strtod): Likewise.
18794         Reported by Rainer Tammer.
18795
18796 2010-07-30  Bruno Haible  <bruno@clisp.org>
18797
18798         mbrlen: Fix cross-compilation guess for AIX.
18799         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18800         guess. Leftover from 2008-12-22.
18801
18802 2010-07-30  Bruno Haible  <bruno@clisp.org>
18803
18804         mbrtowc: Fix cross-compilation guess for AIX.
18805         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18806         guess. Leftover from 2008-12-21.
18807
18808 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18809
18810         init.sh: work around trap limitation of some shells
18811         * tests/init.sh (setup_): Move exit trap outside of shell function.
18812
18813 2010-07-29  Eric Blake  <eblake@redhat.com>
18814
18815         strtod: aid debugging
18816         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18817         understanding why strtod is rejected.
18818
18819 2010-07-28  Bruno Haible  <bruno@clisp.org>
18820
18821         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18822         * lib/unistr/u8-chr.c: Include <string.h>.
18823         * tests/unistr/test-u8-chr.c: Likewise.
18824         * tests/unistr/test-u16-chr.c: Likewise.
18825         * tests/unistr/test-u32-chr.c: Likewise.
18826         * tests/unistr/test-u8-strchr.c: Likewise.
18827         * tests/unistr/test-u16-strchr.c: Likewise.
18828         * tests/unistr/test-u32-strchr.c: Likewise.
18829         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18830         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18831         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18832         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18833
18834 2010-07-28  Bruno Haible  <bruno@clisp.org>
18835
18836         Use spaces for indentation, not tabs.
18837         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18838
18839 2010-07-27  Bruno Haible  <bruno@clisp.org>
18840
18841         mbspcasecmp: Fix function specification.
18842         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18843         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18844         Reported by Eric Blake <eblake@redhat.com>.
18845
18846 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18847
18848         timespec: use cast and not conditional, as truncation isn't possible
18849         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18850         instead of a conditional.  Comment about the situation in more detail.
18851         This undoes most of the 2009-10-29 patch.
18852
18853 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18854
18855         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18856         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18857         * lib/unistr/u8-strchr.c: Likewise.
18858         * modules/unistr/u8-chr: Depend on memchr.
18859
18860         unistr/u*-strchr: add tests
18861         * modules/unistr/u8-strchr-tests: New file.
18862         * modules/unistr/u16-strchr-tests: New file.
18863         * modules/unistr/u32-strchr-tests: New file.
18864         * tests/unistr/test-strchr.h: New file.
18865         * tests/unistr/test-u8-strchr.c: New file.
18866         * tests/unistr/test-u16-strchr.c: New file.
18867         * tests/unistr/test-u32-strchr.c: New file.
18868
18869         unistr/u*-chr: test multibyte sequences more
18870         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18871         test vector.
18872         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18873         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18874         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18875
18876         unistr/u*-chr: test multibyte sequences
18877         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18878
18879         unistr/u*-chr: prepare for multibyte tests
18880         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18881         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18882         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18883         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18884         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18885         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18886
18887 2010-07-18  Bruno Haible  <bruno@clisp.org>
18888
18889         unistr/u8-strchr: Optimize non-ASCII argument case.
18890         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18891         because the first byte often matches anyway.
18892         Reported by Pádraig Brady <P@draigbrady.com>.
18893
18894 2010-07-15  Karl Berry  <karl@gnu.org>
18895
18896         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18897
18898 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18899
18900         getcwd: on Solaris, work better if ancestors are inaccessible
18901         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18902         buffer and size, try again with a large buffer.  This works better
18903         on Solaris, since its getcwd succeeds even if the path to the root
18904         is inaccessible, and this is helpful in common cases such as .zfs
18905         hidden directories.  Problem reported by J Chapman Flack in
18906         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18907         Use system getcwd if it's declared, not merely if it's partly
18908         working; use the partly-working test only to avoid needless effort
18909         if the system getcwd fails.
18910         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18911         comment that was already obsolete and is now even more obsolete.
18912         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18913         now might call strdup.
18914
18915 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18916
18917         pthread: Add enough so that coreutils/src/sort.c compiles.
18918         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18919         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18920         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18921         Include <sys/types.h>, in case it defines pthread_t.
18922         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18923         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18924         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18925         (pthread_rwlockattr_t, pthread_spinlock_t):
18926         New typedefs, if HAVE_PTHREAD_T is not defined.
18927         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18928         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18929         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18930         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18931         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18932         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18933         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18934         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18935         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18936         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18937         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18938         New macros.
18939         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18940         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18941         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18942         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18943         (pthread_spin_unlock): New dummy functions.
18944         (pthread_create): Return EAGAIN; don't set errno.
18945         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18946         require AC_C_INLINE.
18947         * modules/pthread (Depends-on): Add sched, time.
18948         (pthread.h): Use AM_V_GEN.
18949
18950 2010-07-13  Bruno Haible  <bruno@clisp.org>
18951
18952         striconveh: Don't malloc memory if the result buffer is sufficient.
18953         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18954         buffer if its size is sufficient.
18955         Reported by Ludovic Courtès <ludo@gnu.org>.
18956
18957 2010-07-13  Bruno Haible  <bruno@clisp.org>
18958
18959         strtod: Add safety check.
18960         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18961
18962 2010-07-12  Bruno Haible  <bruno@clisp.org>
18963
18964         Unify tests that set gl_cv_func_ldexpl_no_libm.
18965         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18966         gl_FUNC_LDEXPL.
18967         (gl_FUNC_LDEXPL): Invoke it.
18968         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18969
18970 2010-07-12  Bruno Haible  <bruno@clisp.org>
18971
18972         Unify tests that set gl_cv_func_ldexp_no_libm.
18973         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18974         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18975         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18976         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18977         * modules/strtod (Files): Add m4/ldexp.m4.
18978
18979 2010-07-12  Bruno Haible  <bruno@clisp.org>
18980
18981         Unify tests that set gl_cv_func_frexpl_no_libm.
18982         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18983         gl_FUNC_FREXPL_NO_LIBM.
18984         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18985         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18986
18987 2010-07-12  Bruno Haible  <bruno@clisp.org>
18988
18989         Unify tests that set gl_cv_func_frexp_no_libm.
18990         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18991         gl_FUNC_FREXP_NO_LIBM.
18992         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18993         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18994
18995 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18996
18997         memcoll: clarify sizes versus lengths, document better, and tweak perf
18998         * lib/memcoll.c (strcoll_loop, memcoll0):
18999         Improve quality of descriptive comments.  Name variables
19000         consistently as to whether they are lengths (which do not include
19001         terminating null) versus sizes (which do).
19002         * lib/xmemcoll.c (xmemcoll0): Likewise.
19003         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
19004         returned when s1size == 0; this is easier to compile and saves
19005         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
19006
19007 2010-07-12  Bruno Haible  <bruno@clisp.org>
19008
19009         Tests for module '_Exit'.
19010         * modules/_Exit-tests: New file.
19011         * tests/test-_Exit.sh: New file.
19012         * tests/test-_Exit.c: New file.
19013
19014         New module '_Exit'.
19015         * lib/stdlib.in.h (__attribute__): New macro.
19016         (_Exit): New declaration.
19017         * lib/_Exit.c: New file.
19018         * m4/_Exit.m4: New file.
19019         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
19020         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
19021         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
19022         * modules/_Exit: New file.
19023         * tests/test-stdlib-c++.cc (_Exit): Check signature.
19024         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
19025
19026 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19027
19028         strtod: make it more-accurate typically, and don't require libm
19029         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
19030         Include limits.h.  Don't include string.h.
19031         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
19032         (locale_isspace): New function, so that no casts are needed to
19033         check whether *s is a space.
19034         (ldexp): Provide an unused dummy if not available.
19035         (scale_radix_exp, parse_number, underlying_strtod): New functions.
19036         (strtod): Use them.  This implementation prefers to use the
19037         underlying strtod if available, falling back on our own code
19038         only to fix known bugs.  This is more likely to produce an
19039         accurate result.  Also, it avoids the use of libm functions.
19040         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
19041         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
19042         was absent, but it caused a test failure with coreutils.
19043         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
19044         with libm.
19045         * modules/strtod (Makefile.am, Link): libm is no longer needed.
19046         * modules/strtod-tests (Makefile.am): Likewise.
19047
19048 2010-07-11  Pádraig Brady  <P@draigBrady.com>
19049             Bruno Haible  <bruno@clisp.org>
19050
19051         unistr/u8-strchr: Optimize ASCII argument case.
19052         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
19053
19054 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19055
19056         (x)memcoll: minor tweaks
19057         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
19058         is after the type that it qualifies.
19059         (memcoll0): Likewise.
19060         * lib/memcoll.h (memcoll0): Likewise.
19061         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
19062         * lib/xmemcoll.h (xmemcoll0): Likewise.
19063         * lib/memcoll.c (memcoll0): Correct the comment.  This function
19064         differs from memcoll in that the NUL byte is part of the argument.
19065         Omit the abort-checks, as performance is a real issue here.  Plus,
19066         the checks were wrong anyway (an off-by-one error).  Omit local
19067         variable 'diff', as it's a bit clearer that way.
19068         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
19069         no longer needed.
19070
19071 2010-07-08  Chen Guo <chenguo4@yahoo.com>
19072
19073         (x)memcoll: speedup when input is known to be NUL delimited
19074         * lib/memcoll.c: Include stdlib.
19075         (memcoll0): New function.
19076         (strcoll_loop): New function, refactored for use in both memcoll
19077         and memcoll0.
19078         * lib/memcoll.h (memcoll0): Add prototype.
19079         * lib/xmemcoll.c (xmemcoll0): New function.
19080         (collate_error): New function, refactored for use in both xmemcoll
19081         and xmemcoll0.
19082         * lib/xmemcoll.h (xmemcoll0): Add prototype.
19083         * m4/memcoll.m4: add inline invocation.
19084
19085 2010-07-06  Pádraig Brady  <P@draigBrady.com>
19086
19087         * build-aux/bootstrap: Remove any local translations
19088         from the translation project synchronization directory,
19089         so that local only translations are not distributed.
19090
19091 2010-07-04  Bruno Haible  <bruno@clisp.org>
19092
19093         fsusage: Clarify which code applies to which platforms.
19094         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
19095         platform.
19096         * lib/fsusage.c (get_fs_usage): Likewise.
19097
19098 2010-07-04  Bruno Haible  <bruno@clisp.org>
19099
19100         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
19101         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
19102         Reported by Martin Lambers <marlam@marlam.de>.
19103
19104 2010-07-04  Jim Meyering  <meyering@redhat.com>
19105
19106         hash: once again explicitly disallow insertion of NULL
19107         * lib/hash.c (hash_insert0): Reinstate just-removed test:
19108         inserting a NULL pointer cannot work with these functions.
19109         Add a comment with details.
19110         This reverts part of the 2010-07-01 commit, 5bef1a35
19111         "hash: extend module to deal with non-pointer keys".
19112
19113 2010-07-01  Bruno Haible  <bruno@clisp.org>
19114
19115         stdbool: Update doc.
19116         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
19117         Info from Christian Weisgerber <naddy@mips.inka.de>.
19118
19119 2010-07-01  Jim Meyering  <meyering@redhat.com>
19120
19121         hash: extend module to deal with non-pointer keys
19122         * lib/hash.c (hash_insert0): New interface, much like hash_insert
19123         but that allows insertion of non-pointer entries.
19124         Do not disallow an ENTRY value of NULL.
19125         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
19126         * lib/hash.h (hash_insert0): Declare.
19127
19128 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19129
19130         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
19131         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
19132         not present (i.e. with autoconf 2.59 and when using gettextize, not
19133         gnulib), require AC_GNU_SOURCE instead.
19134
19135 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
19136
19137         idpriv-drop: Fix tests.
19138         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
19139         not to the test-idpriv-droptemp program.
19140
19141 2010-06-29  Bruno Haible  <bruno@clisp.org>
19142
19143         string: Fix syntax error with g++ 2.96.
19144         * lib/string.in.h (__pure__): Remove definition.
19145         (_GL_ATTRIBUTE_PURE): New macro.
19146         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
19147         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
19148         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19149
19150 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
19151
19152         unitypes: Fix bug introduced on 2010-05-18.
19153         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
19154
19155 2010-06-22  Eric Blake  <eblake@redhat.com>
19156
19157         memmem: slight optimization
19158         * lib/str-two-way.h (critical_factorization): Update comments.
19159         Reduce work during factorization phase.
19160         Reported by Carlos Bueno <carlos@bueno.org>.
19161
19162 2010-06-21  Bruno Haible  <bruno@clisp.org>
19163
19164         Fix HAVE_CALLOC_POSIX misnomer.
19165         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
19166         !HAVE_CALLOC_POSIX.
19167         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
19168         HAVE_CALLOC_POSIX.
19169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
19170         instead of HAVE_CALLOC_POSIX.
19171         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
19172         HAVE_CALLOC_POSIX.
19173
19174         Use modern idiom for calloc() replacement.
19175         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
19176         AC_FUNC_CALLOC.
19177         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
19178         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
19179         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19180         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
19181         (gl_REPLACE_CALLOC): New macro.
19182
19183 2010-06-21  Bruno Haible  <bruno@clisp.org>
19184
19185         Fix HAVE_REALLOC_POSIX misnomer.
19186         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
19187         !HAVE_REALLOC_POSIX.
19188         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
19189         HAVE_REALLOC_POSIX.
19190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
19191         instead of HAVE_REALLOC_POSIX.
19192         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
19193         HAVE_REALLOC_POSIX.
19194
19195         Use modern idiom for realloc() replacement.
19196         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
19197         AC_FUNC_REALLOC.
19198         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
19199         Autoconf's AC_FUNC_REALLOC.
19200         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19201         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
19202         (gl_REPLACE_REALLOC): New macro.
19203         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19204
19205 2010-06-21  Bruno Haible  <bruno@clisp.org>
19206
19207         Fix HAVE_MALLOC_POSIX misnomer.
19208         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
19209         !HAVE_MALLOC_POSIX.
19210         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
19211         HAVE_MALLOC_POSIX.
19212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
19213         instead of HAVE_MALLOC_POSIX.
19214         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
19215         HAVE_MALLOC_POSIX.
19216
19217         Use modern idiom for malloc() replacement.
19218         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
19219         AC_FUNC_MALLOC.
19220         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
19221         Autoconf's AC_FUNC_MALLOC.
19222         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19223         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
19224         (gl_REPLACE_MALLOC): New macro.
19225         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19226
19227 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
19228
19229         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
19230         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
19231         This macro takes 3 arguments, not 4.
19232
19233 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
19234
19235         ipv6: fix detection under mingw
19236         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
19237         in6_addr.
19238
19239 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
19240
19241         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
19242         that strtod() works when cross-compiling to a glibc version known
19243         to work.
19244
19245 2010-06-15  Bruno Haible  <bruno@clisp.org>
19246
19247         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
19248
19249 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
19250
19251         select: Correct timeout.
19252         * lib/select.c (rpl_select): Compute wait_timeout correctly.
19253
19254 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19255
19256         git-version-gen: init shell var to avoid env var influence
19257         * build-aux/git-version-gen (v): Init shell var to empty.
19258
19259 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
19260
19261         priv-set: Don't assume that priv.h exists merely because getppriv does.
19262         See Jan Andersen's bug report about AIX 5L in
19263         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
19264         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
19265         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
19266         * lib/priv-set.h: Likewise.
19267         * tests/test-priv-set.c: Likewise.
19268
19269 2010-06-13  Bruno Haible  <bruno@clisp.org>
19270
19271         relocatable: Make it easier to test whether to install wrappers.
19272         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
19273         RELOCATABLE_VIA_WRAPPER.
19274
19275 2010-06-13  Bruno Haible  <bruno@clisp.org>
19276
19277         gnulib-tool: Display specified modules and dependencies differently.
19278         * gnulib-tool (func_show_module_list): New function.
19279         (func_import, func_create_testdir): Invoke it.
19280         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19281
19282 2010-06-13  Bruno Haible  <bruno@clisp.org>
19283
19284         gnulib-tool: Align code of func_import and func_create_testdir.
19285         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
19286         specified_modules.
19287
19288 2010-06-12  Jim Meyering  <meyering@redhat.com>
19289
19290         test-inttostr: avoid spurious failure on Solaris 9
19291         * tests/test-inttostr.c (main): Skip the test when snprintf fails
19292         to accept "%ju".  Reported by Bruno Haible.
19293
19294 2010-06-11  Jim Meyering  <meyering@redhat.com>
19295
19296         test-sys_socket: mark variables as used more readably
19297         * tests/test-sys_socket.c (main): Mark otherwise unused variables
19298         as "used" explicitly via (void) statement casts.  This is more
19299         readable than using them in an artificial return expression.
19300         Suggestion from Bruno Haible.
19301
19302 2010-06-11  Bruno Haible  <bruno@clisp.org>
19303
19304         Avoid some more warnings from "gcc -Wwrite-strings".
19305         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
19306         to 'const char *'.
19307         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
19308         * tests/test-c-strcasestr.c (main): Likewise.
19309         * tests/test-mbscasestr1.c (main): Likewise.
19310         * tests/test-mbscasestr2.c (main): Likewise.
19311         * tests/test-memmem.c (main): Likewise.
19312         * tests/test-strstr.c (main): Likewise.
19313         * tests/test-strcasestr.c (main): Likewise.
19314
19315 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19316
19317         init.sh: change framework_failure_ to fail with status 99, not 1
19318         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
19319         automake's parallel-tests rule that this is an unexpected failure,
19320         even if the test is listed in XFAIL_TESTS.
19321
19322 2010-06-11  Jim Meyering  <meyering@redhat.com>
19323
19324         test-inttostr: avoid warnings about 4-6KB literal strings
19325         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
19326         Include "macros.h", for its definition of ASSERT.
19327         (CK): s/assert/ASSERT/
19328         * modules/inttostr-tests (Files): Add macros.h.
19329
19330         init.sh: don't use $ME_ or skip_ before they are defined
19331         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
19332         their first uses.  Also hoist their companions: warn_, fail_,
19333         framework_failure_, $stderr_fileno.  Prompted by a patch from
19334         Stefano Lattarini.
19335
19336         test-sys_socket: avoid set-but-not-used warnings from gcc
19337         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
19338         avoid warning about set-but-not-used variables.
19339
19340         test-xvasprintf: avoid 'const' discard warnings
19341         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
19342         "const" when assigning from literal strings.
19343         (test_xasprintf): Add "void" in function argument list to placate
19344         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
19345
19346         tests: avoid compilation warnings in argmatch and exclude tests...
19347         in packages that define ARGMATCH_DIE_DECL, like coreutils.
19348         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
19349         Since it always exits, declare with the "noreturn" attribute.
19350         * tests/test-argmatch.c: Likewise.
19351
19352         tests: avoid 'const' discard warnings in mbsstr tests
19353         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
19354         * tests/test-mbsstr2.c (main): Likewise.
19355
19356         test-verify: avoid warning from gcc's -Wmissing-declarations
19357         * tests/test-verify.c (function): Declare to be static.
19358
19359         test-inttostr.c: include <string.h> for use of strcmp
19360         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
19361
19362         test-linkat: avoid failed assertion on "other" architectures
19363         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
19364         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
19365         sparc: https://bugs.launchpad.net/bugs/591968
19366
19367 2010-06-11  Jim Meyering  <meyering@redhat.com>
19368
19369         printf.m4: avoid autoconf's "Expanded Before Required" warning
19370         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
19371         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
19372         autoconf warning.
19373
19374 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
19375
19376         Replacement header templates are now named with ".in", not "_".
19377         * doc/gnulib-intro.texi: Correct.
19378
19379 2010-06-10  Jim Meyering  <meyering@redhat.com>
19380
19381         inttostr-tests: depend on snprintf, not snprintf-posix
19382         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
19383         snprintf-posix, to avoid this aclocal failure:
19384           missing file gnulib-tests/vasnprintf.c
19385           configure.ac:45: error: expected source file, required through \
19386           AC_LIBSOURCES, not found
19387
19388 2010-06-10  Jim Meyering  <meyering@redhat.com>
19389
19390         inttostr: add a new function, inttostr, and tests
19391         The namesake function was not available.  The existence of the
19392         template file, inttostr.c makes its addition nontrivial.
19393         * lib/anytostr.c: Rename from inttostr.c.
19394         (anytostr): Rename from inttostr.
19395         * lib/inttostr.c: New file.
19396         * modules/inttostr (Files): Add anytostr.c.
19397         (Makefile.am): Set lib_SOURCES instead of ...
19398         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
19399         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
19400         * lib/offtostr.c: Likewise.
19401         * lib/uinttostr.c: Likewise.
19402         * lib/umaxtostr.c: Likewise.
19403         * modules/inttostr-tests: New file.
19404         * tests/test-inttostr.c: New file.  Test these functions.
19405
19406 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
19407             Bruno Haible  <bruno@clisp.org>
19408
19409         Add "Extending Gnulib" chapter to manual.
19410         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
19411         chapter.
19412         (Extending Gnulib): New chapter.
19413         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
19414         chapter.
19415
19416 2010-06-09  Bruno Haible  <bruno@clisp.org>
19417
19418         Avoid relocwrapper link errors due to gnulib replacement functions.
19419         * lib/areadlink.c: Use the system's malloc, realloc functions.
19420         (areadlink): Set errno to ENOMEM explicitly.
19421         * modules/areadlink (Depends-on): Remove malloc-posix.
19422         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19423
19424 2010-06-09  Bruno Haible  <bruno@clisp.org>
19425
19426         Avoid relocwrapper link errors due to gnulib replacement functions.
19427         * lib/canonicalize-lgpl.c: Use the system's malloc function.
19428         * lib/malloca.c: Likewise.
19429         * lib/relocatable.c: Likewise.
19430         * lib/progreloc.c: Use the system's malloc, sprintf functions.
19431         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
19432         * lib/setenv.c: Use the system's malloc, realloc functions.
19433         * lib/strerror.c: Use the system's sprintf function.
19434         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19435
19436 2010-06-04  Bruno Haible  <bruno@clisp.org>
19437
19438         Prefer documented low-level autoconf macro names.
19439         * m4/lib-link.m4: Use m4_translit instead of translit.
19440         * m4/environ.m4: Likewise.
19441         * m4/mathfunc.m4: Likewise.
19442         * m4/onceonly.m4: Likewise.
19443         * m4/stdint.m4: Likewise.
19444         Suggested by Eric Blake.
19445
19446 2010-06-04  Martin Lambers  <marlam@marlam.de>
19447             Bruno Haible  <bruno@clisp.org>
19448
19449         havelib: Allow library names with '+' characters.
19450         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19451         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
19452
19453 2010-06-09  Bruno Haible  <bruno@clisp.org>
19454
19455         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
19456         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
19457         realloc failed.
19458
19459 2010-06-08  Peter Simons  <simons@cryp.to>
19460
19461         maint.mk: make the news-check rule more configurable
19462         * top/maint.mk (news-check-lines-spec): New variable.
19463         (news-check): Use "sed -n 1,10p" in place of "head".
19464
19465 2010-06-07  Jim Meyering  <meyering@redhat.com>
19466
19467         do-release-commit-and-tag: fix typo in --help
19468         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
19469
19470         regex: avoid new dead-code warning with gcc-4.6.0
19471         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
19472         if-block containing a while-loop.  It's been unused for at least
19473         5 years.
19474
19475 2010-06-05  Bruno Haible  <bruno@clisp.org>
19476
19477         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
19478         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
19479
19480 2010-06-04  Bruno Haible  <bruno@clisp.org>
19481
19482         Update to GNU gettext 0.18.1.
19483         * modules/gettext (configure.ac): Require gettext infrastructure from
19484         version 0.18.1.
19485
19486 2010-06-03  Bruno Haible  <bruno@clisp.org>
19487
19488         Don't use AC_LIBOBJ with file names in subdirectories.
19489         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
19490         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
19491         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
19492         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
19493         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
19494         gl_LIBUNISTRING_LIBSOURCE.
19495         (Makefile.am): Augment lib_SOURCES here, conditionally.
19496         * NEWS: Drop requirement for Automake option 'subdir-objects'.
19497
19498 2010-06-03  Bruno Haible  <bruno@clisp.org>
19499
19500         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
19501         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
19502         expansion does not end with a newline.
19503         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
19504         unnecessary newline.
19505
19506 2010-06-03  Bruno Haible  <bruno@clisp.org>
19507
19508         Reduce dependencies.
19509         * tests/test-quotearg.h: New file, extracted from
19510         tests/test-quotearg.c.
19511         * tests/test-quotearg-simple.c: New file, extracted from
19512         tests/test-quotearg.c.
19513         * tests/test-quotearg.c: Don't include <ctype.h>.
19514         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19515         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19516         use_quote_double_quotes, use_quotearg_colon): Moved to
19517         tests/test-quotearg.h.
19518         (results_g, flag_results, custom_quotes, custom_results): Moved
19519         to tests/test-quotearg-simple.c.
19520         (main): Moved the part that does not depend on gettext to
19521         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19522         performed.
19523         * modules/quotearg-simple: New file.
19524         * modules/quotearg-simple-tests: New file.
19525         * modules/quotearg (Depends-on): Add quotearg-simple.
19526         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19527         (Files): Add tests/test-quotearg.h.
19528         Reported by Paolo Bonzini.
19529
19530 2010-06-03  Bruno Haible  <bruno@clisp.org>
19531
19532         Reduce dependencies.
19533         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19534
19535 2010-06-03  Bruno Haible  <bruno@clisp.org>
19536
19537         time: Undefine more broken macros.
19538         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19539         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19540         Reported by Eric Blake.
19541
19542 2010-06-03  Bruno Haible  <bruno@clisp.org>
19543
19544         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19545         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19546         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19547         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19548         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19549         Reported by Ludovic Courtès <ludo@gnu.org>.
19550
19551 2010-06-02  Eric Blake  <eblake@redhat.com>
19552
19553         time: work with mingw + pthreads-win32 library
19554         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19555         if timespec is defined only in pthread.h.
19556         * modules/time (Makefile.am): Substitute it.
19557         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19558         <pthread.h>, when needed.
19559         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19560         from the library.
19561
19562 2010-05-31  Bruno Haible  <bruno@clisp.org>
19563
19564         Avoid expanding two macros in the wrong order.
19565         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19566         gl_LIBUNISTRING if it is defined.
19567         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19568         autoconf >= 2.64.
19569         Reported by Ludovic Courtès <ludo@gnu.org>.
19570
19571 2010-05-27  Jim Meyering  <meyering@redhat.com>
19572
19573         maint.mk: also prohibit "#undef" of always-defined symbols
19574         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19575         Allow more than one space before the symbol name.
19576         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19577         the regexp uses alternation.
19578
19579 2010-05-26  Eric Blake  <eblake@redhat.com>
19580
19581         maint.mk: avoid echo -e
19582         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19583         Convert all uses of echo -* to printf.
19584         Reported by Matthias Bolte.
19585
19586 2010-05-25  Bruno Haible  <bruno@clisp.org>
19587
19588         Update to GNU gettext 0.18, part 2.
19589         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19590         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19591
19592 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19593
19594         Add missing include in test-pwrite.c.
19595         * tests/test-pwrite.c: Include string.h, for strcmp.
19596
19597 2010-05-24  Bruno Haible  <bruno@clisp.org>
19598
19599         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19600
19601 2010-05-24  Bruno Haible  <bruno@clisp.org>
19602
19603         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19604         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19605         iconveh_error argument.
19606         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19607         U_STRCONV_TO_LOCALE.
19608         * lib/unistr/u16-strcoll.c: Likewise.
19609         * lib/unistr/u32-strcoll.c: Likewise.
19610         * modules/unistr/u8-strcoll (Depends-on): Add
19611         uniconv/u8-strconv-to-enc, localcharset. Remove
19612         uniconv/u8-strconv-to-locale.
19613         (configure.ac): Bump version number.
19614         * modules/unistr/u16-strcoll (Depends-on): Add
19615         uniconv/u16-strconv-to-enc, localcharset. Remove
19616         uniconv/u16-strconv-to-locale.
19617         (configure.ac): Bump version number.
19618         * modules/unistr/u32-strcoll (Depends-on): Add
19619         uniconv/u32-strconv-to-enc, localcharset. Remove
19620         uniconv/u32-strconv-to-locale.
19621         (configure.ac): Bump version number.
19622
19623 2010-05-24  Bruno Haible  <bruno@clisp.org>
19624
19625         Avoid a test failure on NetBSD 5.0.
19626         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19627         an iconv() bug.
19628
19629 2010-05-24  Bruno Haible  <bruno@clisp.org>
19630
19631         Adjust #include directive style.
19632         * modules/regex (Includes): Recommend to write <regex.h>.
19633
19634 2010-05-24  Bruno Haible  <bruno@clisp.org>
19635
19636         regex: Don't require alloca.
19637         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19638         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19639         only inside if (0).
19640
19641 2010-05-23  Jim Meyering  <meyering@redhat.com>
19642
19643         test-renameat.c: include <sys/stat.h>
19644         * tests/test-renameat.c: Include <sys/stat.h>; required for
19645         definition of S_IS* macros.
19646
19647 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19648
19649         Update maintainer documentation for 'relocatable-prog' module.
19650         * doc/relocatable-maint.texi: Update.
19651         Comments by Bruno Haible.
19652
19653 2010-05-23  Bruno Haible  <bruno@clisp.org>
19654
19655         git-merge-changelog: Enable --split-merged-entry by default.
19656         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19657         (usage): Don't mention this option any more.
19658         Reported by Ralf Wildenhues.
19659
19660 2010-05-23  Jim Meyering  <meyering@redhat.com>
19661
19662         test-pwrite: do not leave behind a test file named "out"
19663         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19664         The trivial-looking use of init.sh is really necessary.
19665         It ensures that the temporary file, "out", is created in
19666         a temporary directory, and removed upon termination.
19667         * tests/test-pwrite.sh: Re-add file.
19668         * modules/pwrite-tests: Reference it.
19669
19670 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19671
19672         Fix output redirection buglet in init.sh.
19673         * tests/init.sh: Fix redirection of stderr.
19674
19675 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19676
19677         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19678
19679 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19680
19681         * modules/valgrind-tests: New file.
19682         * m4/valgrind-tests.m4: New file.
19683         * doc/valgrind-tests.texi: New file.
19684         * doc/gnulib.texi (Running self-tests under valgrind): New
19685         section.
19686
19687 2010-05-19  Bruno Haible  <bruno@clisp.org>
19688
19689         Clean up dead code in recent commit.
19690         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19691         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19692         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19693         Suggested by Paolo Bonzini.
19694
19695 2010-05-19  Bruno Haible  <bruno@clisp.org>
19696
19697         Avoid valgrind error reports from libunistring.
19698         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19699         * modules/libunistring (Files): Add it.
19700         * modules/libunistring-optional (Files): Likewise.
19701
19702 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19703             Bruno Haible  <bruno@clisp.org>
19704
19705         New module 'libunistring-optional'.
19706         * modules/libunistring-optional: New file.
19707         * m4/libunistring-base.m4: New file.
19708         * m4/libunistring-optional.m4: New file.
19709         * lib/unicase.in.h: Renamed from lib/unicase.h.
19710         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19711         * lib/unictype.in.h: Renamed from lib/unictype.h.
19712         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19713         * lib/uniname.in.h: Renamed from lib/uniname.h.
19714         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19715         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19716         * lib/unistr.in.h: Renamed from lib/unistr.h.
19717         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19718         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19719         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19720         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19721         gl_LIBUNISTRING. If the library was found, determine the installed
19722         version and set LIBUNISTRING_VERSION.
19723         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19724         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19725         handle a configuration option --with-included-libunistring.
19726         * modules/libunistring (Files): Add m4/absolute-header.m4.
19727         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19728         Add m4/libunistring-base.m4.
19729         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19730         (Makefile.am): Build unicase.h from unicase.in.h.
19731         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19732         Add m4/libunistring-base.m4.
19733         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19734         (Makefile.am): Build uniconv.h from uniconv.in.h.
19735         * modules/unictype/base (Files): Use unictype.in.h instead of
19736         unictype.h. Add m4/libunistring-base.m4.
19737         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19738         (Makefile.am): Build unictype.h from unictype.in.h.
19739         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19740         Add m4/libunistring-base.m4.
19741         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19742         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19743         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19744         Add m4/libunistring-base.m4.
19745         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19746         (Makefile.am): Build uniname.h from uniname.in.h.
19747         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19748         Add m4/libunistring-base.m4.
19749         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19750         (Makefile.am): Build uninorm.h from uninorm.in.h.
19751         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19752         unistdio.h. Add m4/libunistring-base.m4.
19753         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19754         (Makefile.am): Build unistdio.h from unistdio.in.h.
19755         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19756         Add m4/libunistring-base.m4.
19757         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19758         (Makefile.am): Build unistr.h from unistr.in.h.
19759         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19760         Add m4/libunistring-base.m4.
19761         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19762         (Makefile.am): Build unitypes.h from unitypes.in.h.
19763         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19764         Add m4/libunistring-base.m4.
19765         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19766         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19767         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19768         uniwidth.h. Add m4/libunistring-base.m4.
19769         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19770         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19771         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19772         instead of augmenting lib_SOURCES.
19773         * modules/unicase/empty-suffix-context: Likewise.
19774         * modules/unicase/locale-language: Likewise.
19775         * modules/unicase/tolower: Likewise.
19776         * modules/unicase/totitle: Likewise.
19777         * modules/unicase/toupper: Likewise.
19778         * modules/unicase/u8-casecmp: Likewise.
19779         * modules/unicase/u8-casecoll: Likewise.
19780         * modules/unicase/u8-casefold: Likewise.
19781         * modules/unicase/u8-casexfrm: Likewise.
19782         * modules/unicase/u8-ct-casefold: Likewise.
19783         * modules/unicase/u8-ct-tolower: Likewise.
19784         * modules/unicase/u8-ct-totitle: Likewise.
19785         * modules/unicase/u8-ct-toupper: Likewise.
19786         * modules/unicase/u8-is-cased: Likewise.
19787         * modules/unicase/u8-is-casefolded: Likewise.
19788         * modules/unicase/u8-is-lowercase: Likewise.
19789         * modules/unicase/u8-is-titlecase: Likewise.
19790         * modules/unicase/u8-is-uppercase: Likewise.
19791         * modules/unicase/u8-prefix-context: Likewise.
19792         * modules/unicase/u8-suffix-context: Likewise.
19793         * modules/unicase/u8-tolower: Likewise.
19794         * modules/unicase/u8-totitle: Likewise.
19795         * modules/unicase/u8-toupper: Likewise.
19796         * modules/unicase/u16-casecmp: Likewise.
19797         * modules/unicase/u16-casecoll: Likewise.
19798         * modules/unicase/u16-casefold: Likewise.
19799         * modules/unicase/u16-casexfrm: Likewise.
19800         * modules/unicase/u16-ct-casefold: Likewise.
19801         * modules/unicase/u16-ct-tolower: Likewise.
19802         * modules/unicase/u16-ct-totitle: Likewise.
19803         * modules/unicase/u16-ct-toupper: Likewise.
19804         * modules/unicase/u16-is-cased: Likewise.
19805         * modules/unicase/u16-is-casefolded: Likewise.
19806         * modules/unicase/u16-is-lowercase: Likewise.
19807         * modules/unicase/u16-is-titlecase: Likewise.
19808         * modules/unicase/u16-is-uppercase: Likewise.
19809         * modules/unicase/u16-prefix-context: Likewise.
19810         * modules/unicase/u16-suffix-context: Likewise.
19811         * modules/unicase/u16-tolower: Likewise.
19812         * modules/unicase/u16-totitle: Likewise.
19813         * modules/unicase/u16-toupper: Likewise.
19814         * modules/unicase/u32-casecmp: Likewise.
19815         * modules/unicase/u32-casecoll: Likewise.
19816         * modules/unicase/u32-casefold: Likewise.
19817         * modules/unicase/u32-casexfrm: Likewise.
19818         * modules/unicase/u32-ct-casefold: Likewise.
19819         * modules/unicase/u32-ct-tolower: Likewise.
19820         * modules/unicase/u32-ct-totitle: Likewise.
19821         * modules/unicase/u32-ct-toupper: Likewise.
19822         * modules/unicase/u32-is-cased: Likewise.
19823         * modules/unicase/u32-is-casefolded: Likewise.
19824         * modules/unicase/u32-is-lowercase: Likewise.
19825         * modules/unicase/u32-is-titlecase: Likewise.
19826         * modules/unicase/u32-is-uppercase: Likewise.
19827         * modules/unicase/u32-prefix-context: Likewise.
19828         * modules/unicase/u32-suffix-context: Likewise.
19829         * modules/unicase/u32-tolower: Likewise.
19830         * modules/unicase/u32-totitle: Likewise.
19831         * modules/unicase/u32-toupper: Likewise.
19832         * modules/unicase/ulc-casecmp: Likewise.
19833         * modules/unicase/ulc-casecoll: Likewise.
19834         * modules/unicase/ulc-casexfrm: Likewise.
19835         * modules/uniconv/u8-conv-from-enc: Likewise.
19836         * modules/uniconv/u8-conv-to-enc: Likewise.
19837         * modules/uniconv/u8-strconv-from-enc: Likewise.
19838         * modules/uniconv/u8-strconv-from-locale: Likewise.
19839         * modules/uniconv/u8-strconv-to-enc: Likewise.
19840         * modules/uniconv/u8-strconv-to-locale: Likewise.
19841         * modules/uniconv/u16-conv-from-enc: Likewise.
19842         * modules/uniconv/u16-conv-to-enc: Likewise.
19843         * modules/uniconv/u16-strconv-from-enc: Likewise.
19844         * modules/uniconv/u16-strconv-from-locale: Likewise.
19845         * modules/uniconv/u16-strconv-to-enc: Likewise.
19846         * modules/uniconv/u16-strconv-to-locale: Likewise.
19847         * modules/uniconv/u32-conv-from-enc: Likewise.
19848         * modules/uniconv/u32-conv-to-enc: Likewise.
19849         * modules/uniconv/u32-strconv-from-enc: Likewise.
19850         * modules/uniconv/u32-strconv-from-locale: Likewise.
19851         * modules/uniconv/u32-strconv-to-enc: Likewise.
19852         * modules/uniconv/u32-strconv-to-locale: Likewise.
19853         * modules/unictype/bidicategory-byname: Likewise.
19854         * modules/unictype/bidicategory-name: Likewise.
19855         * modules/unictype/bidicategory-of: Likewise.
19856         * modules/unictype/bidicategory-test: Likewise.
19857         * modules/unictype/block-list: Likewise.
19858         * modules/unictype/block-test: Likewise.
19859         * modules/unictype/category-C: Likewise.
19860         * modules/unictype/category-Cc: Likewise.
19861         * modules/unictype/category-Cf: Likewise.
19862         * modules/unictype/category-Cn: Likewise.
19863         * modules/unictype/category-Co: Likewise.
19864         * modules/unictype/category-Cs: Likewise.
19865         * modules/unictype/category-L: Likewise.
19866         * modules/unictype/category-Ll: Likewise.
19867         * modules/unictype/category-Lm: Likewise.
19868         * modules/unictype/category-Lo: Likewise.
19869         * modules/unictype/category-Lt: Likewise.
19870         * modules/unictype/category-Lu: Likewise.
19871         * modules/unictype/category-M: Likewise.
19872         * modules/unictype/category-Mc: Likewise.
19873         * modules/unictype/category-Me: Likewise.
19874         * modules/unictype/category-Mn: Likewise.
19875         * modules/unictype/category-N: Likewise.
19876         * modules/unictype/category-Nd: Likewise.
19877         * modules/unictype/category-Nl: Likewise.
19878         * modules/unictype/category-No: Likewise.
19879         * modules/unictype/category-P: Likewise.
19880         * modules/unictype/category-Pc: Likewise.
19881         * modules/unictype/category-Pd: Likewise.
19882         * modules/unictype/category-Pe: Likewise.
19883         * modules/unictype/category-Pf: Likewise.
19884         * modules/unictype/category-Pi: Likewise.
19885         * modules/unictype/category-Po: Likewise.
19886         * modules/unictype/category-Ps: Likewise.
19887         * modules/unictype/category-S: Likewise.
19888         * modules/unictype/category-Sc: Likewise.
19889         * modules/unictype/category-Sk: Likewise.
19890         * modules/unictype/category-Sm: Likewise.
19891         * modules/unictype/category-So: Likewise.
19892         * modules/unictype/category-Z: Likewise.
19893         * modules/unictype/category-Zl: Likewise.
19894         * modules/unictype/category-Zp: Likewise.
19895         * modules/unictype/category-Zs: Likewise.
19896         * modules/unictype/category-and: Likewise.
19897         * modules/unictype/category-and-not: Likewise.
19898         * modules/unictype/category-byname: Likewise.
19899         * modules/unictype/category-name: Likewise.
19900         * modules/unictype/category-none: Likewise.
19901         * modules/unictype/category-of: Likewise.
19902         * modules/unictype/category-or: Likewise.
19903         * modules/unictype/category-test: Likewise.
19904         * modules/unictype/combining-class: Likewise.
19905         * modules/unictype/ctype-alnum: Likewise.
19906         * modules/unictype/ctype-alpha: Likewise.
19907         * modules/unictype/ctype-blank: Likewise.
19908         * modules/unictype/ctype-cntrl: Likewise.
19909         * modules/unictype/ctype-digit: Likewise.
19910         * modules/unictype/ctype-graph: Likewise.
19911         * modules/unictype/ctype-lower: Likewise.
19912         * modules/unictype/ctype-print: Likewise.
19913         * modules/unictype/ctype-punct: Likewise.
19914         * modules/unictype/ctype-space: Likewise.
19915         * modules/unictype/ctype-upper: Likewise.
19916         * modules/unictype/ctype-xdigit: Likewise.
19917         * modules/unictype/decimal-digit: Likewise.
19918         * modules/unictype/digit: Likewise.
19919         * modules/unictype/mirror: Likewise.
19920         * modules/unictype/numeric: Likewise.
19921         * modules/unictype/property-alphabetic: Likewise.
19922         * modules/unictype/property-ascii-hex-digit: Likewise.
19923         * modules/unictype/property-bidi-arabic-digit: Likewise.
19924         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19925         * modules/unictype/property-bidi-block-separator: Likewise.
19926         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19927         * modules/unictype/property-bidi-common-separator: Likewise.
19928         * modules/unictype/property-bidi-control: Likewise.
19929         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19930         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19931         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19932         * modules/unictype/property-bidi-european-digit: Likewise.
19933         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19934         * modules/unictype/property-bidi-left-to-right: Likewise.
19935         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19936         * modules/unictype/property-bidi-other-neutral: Likewise.
19937         * modules/unictype/property-bidi-pdf: Likewise.
19938         * modules/unictype/property-bidi-segment-separator: Likewise.
19939         * modules/unictype/property-bidi-whitespace: Likewise.
19940         * modules/unictype/property-byname: Likewise.
19941         * modules/unictype/property-combining: Likewise.
19942         * modules/unictype/property-composite: Likewise.
19943         * modules/unictype/property-currency-symbol: Likewise.
19944         * modules/unictype/property-dash: Likewise.
19945         * modules/unictype/property-decimal-digit: Likewise.
19946         * modules/unictype/property-default-ignorable-code-point: Likewise.
19947         * modules/unictype/property-deprecated: Likewise.
19948         * modules/unictype/property-diacritic: Likewise.
19949         * modules/unictype/property-extender: Likewise.
19950         * modules/unictype/property-format-control: Likewise.
19951         * modules/unictype/property-grapheme-base: Likewise.
19952         * modules/unictype/property-grapheme-extend: Likewise.
19953         * modules/unictype/property-grapheme-link: Likewise.
19954         * modules/unictype/property-hex-digit: Likewise.
19955         * modules/unictype/property-hyphen: Likewise.
19956         * modules/unictype/property-id-continue: Likewise.
19957         * modules/unictype/property-id-start: Likewise.
19958         * modules/unictype/property-ideographic: Likewise.
19959         * modules/unictype/property-ids-binary-operator: Likewise.
19960         * modules/unictype/property-ids-trinary-operator: Likewise.
19961         * modules/unictype/property-ignorable-control: Likewise.
19962         * modules/unictype/property-iso-control: Likewise.
19963         * modules/unictype/property-join-control: Likewise.
19964         * modules/unictype/property-left-of-pair: Likewise.
19965         * modules/unictype/property-line-separator: Likewise.
19966         * modules/unictype/property-logical-order-exception: Likewise.
19967         * modules/unictype/property-lowercase: Likewise.
19968         * modules/unictype/property-math: Likewise.
19969         * modules/unictype/property-non-break: Likewise.
19970         * modules/unictype/property-not-a-character: Likewise.
19971         * modules/unictype/property-numeric: Likewise.
19972         * modules/unictype/property-other-alphabetic: Likewise.
19973         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19974         * modules/unictype/property-other-grapheme-extend: Likewise.
19975         * modules/unictype/property-other-id-continue: Likewise.
19976         * modules/unictype/property-other-id-start: Likewise.
19977         * modules/unictype/property-other-lowercase: Likewise.
19978         * modules/unictype/property-other-math: Likewise.
19979         * modules/unictype/property-other-uppercase: Likewise.
19980         * modules/unictype/property-paired-punctuation: Likewise.
19981         * modules/unictype/property-paragraph-separator: Likewise.
19982         * modules/unictype/property-pattern-syntax: Likewise.
19983         * modules/unictype/property-pattern-white-space: Likewise.
19984         * modules/unictype/property-private-use: Likewise.
19985         * modules/unictype/property-punctuation: Likewise.
19986         * modules/unictype/property-quotation-mark: Likewise.
19987         * modules/unictype/property-radical: Likewise.
19988         * modules/unictype/property-sentence-terminal: Likewise.
19989         * modules/unictype/property-soft-dotted: Likewise.
19990         * modules/unictype/property-space: Likewise.
19991         * modules/unictype/property-terminal-punctuation: Likewise.
19992         * modules/unictype/property-test: Likewise.
19993         * modules/unictype/property-titlecase: Likewise.
19994         * modules/unictype/property-unassigned-code-value: Likewise.
19995         * modules/unictype/property-unified-ideograph: Likewise.
19996         * modules/unictype/property-uppercase: Likewise.
19997         * modules/unictype/property-variation-selector: Likewise.
19998         * modules/unictype/property-white-space: Likewise.
19999         * modules/unictype/property-xid-continue: Likewise.
20000         * modules/unictype/property-xid-start: Likewise.
20001         * modules/unictype/property-zero-width: Likewise.
20002         * modules/unictype/scripts: Likewise.
20003         * modules/unictype/syntax-c-ident: Likewise.
20004         * modules/unictype/syntax-c-whitespace: Likewise.
20005         * modules/unictype/syntax-java-ident: Likewise.
20006         * modules/unictype/syntax-java-whitespace: Likewise.
20007         * modules/unilbrk/u8-possible-linebreaks: Likewise.
20008         * modules/unilbrk/u8-width-linebreaks: Likewise.
20009         * modules/unilbrk/u16-possible-linebreaks: Likewise.
20010         * modules/unilbrk/u16-width-linebreaks: Likewise.
20011         * modules/unilbrk/u32-possible-linebreaks: Likewise.
20012         * modules/unilbrk/u32-width-linebreaks: Likewise.
20013         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
20014         * modules/unilbrk/ulc-width-linebreaks: Likewise.
20015         * modules/uniname/uniname: Likewise.
20016         * modules/uninorm/canonical-decomposition: Likewise.
20017         * modules/uninorm/composition: Likewise.
20018         * modules/uninorm/decomposing-form: Likewise.
20019         * modules/uninorm/decomposition: Likewise.
20020         * modules/uninorm/filter: Likewise.
20021         * modules/uninorm/nfc: Likewise.
20022         * modules/uninorm/nfd: Likewise.
20023         * modules/uninorm/nfkc: Likewise.
20024         * modules/uninorm/nfkd: Likewise.
20025         * modules/uninorm/u8-normalize: Likewise.
20026         * modules/uninorm/u8-normcmp: Likewise.
20027         * modules/uninorm/u8-normcoll: Likewise.
20028         * modules/uninorm/u8-normxfrm: Likewise.
20029         * modules/uninorm/u16-normalize: Likewise.
20030         * modules/uninorm/u16-normcmp: Likewise.
20031         * modules/uninorm/u16-normcoll: Likewise.
20032         * modules/uninorm/u16-normxfrm: Likewise.
20033         * modules/uninorm/u32-normalize: Likewise.
20034         * modules/uninorm/u32-normcmp: Likewise.
20035         * modules/uninorm/u32-normcoll: Likewise.
20036         * modules/uninorm/u32-normxfrm: Likewise.
20037         * modules/unistdio/u8-asnprintf: Likewise.
20038         * modules/unistdio/u8-asprintf: Likewise.
20039         * modules/unistdio/u8-snprintf: Likewise.
20040         * modules/unistdio/u8-sprintf: Likewise.
20041         * modules/unistdio/u8-u8-asnprintf: Likewise.
20042         * modules/unistdio/u8-u8-asprintf: Likewise.
20043         * modules/unistdio/u8-u8-snprintf: Likewise.
20044         * modules/unistdio/u8-u8-sprintf: Likewise.
20045         * modules/unistdio/u8-u8-vasnprintf: Likewise.
20046         * modules/unistdio/u8-u8-vasprintf: Likewise.
20047         * modules/unistdio/u8-u8-vsnprintf: Likewise.
20048         * modules/unistdio/u8-u8-vsprintf: Likewise.
20049         * modules/unistdio/u8-vasnprintf: Likewise.
20050         * modules/unistdio/u8-vasprintf: Likewise.
20051         * modules/unistdio/u8-vsnprintf: Likewise.
20052         * modules/unistdio/u8-vsprintf: Likewise.
20053         * modules/unistdio/u16-asnprintf: Likewise.
20054         * modules/unistdio/u16-asprintf: Likewise.
20055         * modules/unistdio/u16-snprintf: Likewise.
20056         * modules/unistdio/u16-sprintf: Likewise.
20057         * modules/unistdio/u16-u16-asnprintf: Likewise.
20058         * modules/unistdio/u16-u16-asprintf: Likewise.
20059         * modules/unistdio/u16-u16-snprintf: Likewise.
20060         * modules/unistdio/u16-u16-sprintf: Likewise.
20061         * modules/unistdio/u16-u16-vasnprintf: Likewise.
20062         * modules/unistdio/u16-u16-vasprintf: Likewise.
20063         * modules/unistdio/u16-u16-vsnprintf: Likewise.
20064         * modules/unistdio/u16-u16-vsprintf: Likewise.
20065         * modules/unistdio/u16-vasnprintf: Likewise.
20066         * modules/unistdio/u16-vasprintf: Likewise.
20067         * modules/unistdio/u16-vsnprintf: Likewise.
20068         * modules/unistdio/u16-vsprintf: Likewise.
20069         * modules/unistdio/u32-asnprintf: Likewise.
20070         * modules/unistdio/u32-asprintf: Likewise.
20071         * modules/unistdio/u32-snprintf: Likewise.
20072         * modules/unistdio/u32-sprintf: Likewise.
20073         * modules/unistdio/u32-u32-asnprintf: Likewise.
20074         * modules/unistdio/u32-u32-asprintf: Likewise.
20075         * modules/unistdio/u32-u32-snprintf: Likewise.
20076         * modules/unistdio/u32-u32-sprintf: Likewise.
20077         * modules/unistdio/u32-u32-vasnprintf: Likewise.
20078         * modules/unistdio/u32-u32-vasprintf: Likewise.
20079         * modules/unistdio/u32-u32-vsnprintf: Likewise.
20080         * modules/unistdio/u32-u32-vsprintf: Likewise.
20081         * modules/unistdio/u32-vasnprintf: Likewise.
20082         * modules/unistdio/u32-vasprintf: Likewise.
20083         * modules/unistdio/u32-vsnprintf: Likewise.
20084         * modules/unistdio/u32-vsprintf: Likewise.
20085         * modules/unistdio/ulc-asnprintf: Likewise.
20086         * modules/unistdio/ulc-asprintf: Likewise.
20087         * modules/unistdio/ulc-fprintf: Likewise.
20088         * modules/unistdio/ulc-snprintf: Likewise.
20089         * modules/unistdio/ulc-sprintf: Likewise.
20090         * modules/unistdio/ulc-vasnprintf: Likewise.
20091         * modules/unistdio/ulc-vasprintf: Likewise.
20092         * modules/unistdio/ulc-vfprintf: Likewise.
20093         * modules/unistdio/ulc-vsnprintf: Likewise.
20094         * modules/unistdio/ulc-vsprintf: Likewise.
20095         * modules/unistr/u8-check: Likewise.
20096         * modules/unistr/u8-chr: Likewise.
20097         * modules/unistr/u8-cmp: Likewise.
20098         * modules/unistr/u8-cmp2: Likewise.
20099         * modules/unistr/u8-cpy: Likewise.
20100         * modules/unistr/u8-cpy-alloc: Likewise.
20101         * modules/unistr/u8-endswith: Likewise.
20102         * modules/unistr/u8-mblen: Likewise.
20103         * modules/unistr/u8-mbsnlen: Likewise.
20104         * modules/unistr/u8-mbtouc: Likewise.
20105         * modules/unistr/u8-mbtouc-unsafe: Likewise.
20106         * modules/unistr/u8-mbtoucr: Likewise.
20107         * modules/unistr/u8-move: Likewise.
20108         * modules/unistr/u8-next: Likewise.
20109         * modules/unistr/u8-prev: Likewise.
20110         * modules/unistr/u8-set: Likewise.
20111         * modules/unistr/u8-startswith: Likewise.
20112         * modules/unistr/u8-stpcpy: Likewise.
20113         * modules/unistr/u8-stpncpy: Likewise.
20114         * modules/unistr/u8-strcat: Likewise.
20115         * modules/unistr/u8-strchr: Likewise.
20116         * modules/unistr/u8-strcmp: Likewise.
20117         * modules/unistr/u8-strcoll: Likewise.
20118         * modules/unistr/u8-strcpy: Likewise.
20119         * modules/unistr/u8-strcspn: Likewise.
20120         * modules/unistr/u8-strdup: Likewise.
20121         * modules/unistr/u8-strlen: Likewise.
20122         * modules/unistr/u8-strmblen: Likewise.
20123         * modules/unistr/u8-strmbtouc: Likewise.
20124         * modules/unistr/u8-strncat: Likewise.
20125         * modules/unistr/u8-strncmp: Likewise.
20126         * modules/unistr/u8-strncpy: Likewise.
20127         * modules/unistr/u8-strnlen: Likewise.
20128         * modules/unistr/u8-strpbrk: Likewise.
20129         * modules/unistr/u8-strrchr: Likewise.
20130         * modules/unistr/u8-strspn: Likewise.
20131         * modules/unistr/u8-strstr: Likewise.
20132         * modules/unistr/u8-strtok: Likewise.
20133         * modules/unistr/u8-to-u16: Likewise.
20134         * modules/unistr/u8-to-u32: Likewise.
20135         * modules/unistr/u8-uctomb: Likewise.
20136         * modules/unistr/u16-check: Likewise.
20137         * modules/unistr/u16-chr: Likewise.
20138         * modules/unistr/u16-cmp: Likewise.
20139         * modules/unistr/u16-cmp2: Likewise.
20140         * modules/unistr/u16-cpy: Likewise.
20141         * modules/unistr/u16-cpy-alloc: Likewise.
20142         * modules/unistr/u16-endswith: Likewise.
20143         * modules/unistr/u16-mblen: Likewise.
20144         * modules/unistr/u16-mbsnlen: Likewise.
20145         * modules/unistr/u16-mbtouc: Likewise.
20146         * modules/unistr/u16-mbtouc-unsafe: Likewise.
20147         * modules/unistr/u16-mbtoucr: Likewise.
20148         * modules/unistr/u16-move: Likewise.
20149         * modules/unistr/u16-next: Likewise.
20150         * modules/unistr/u16-prev: Likewise.
20151         * modules/unistr/u16-set: Likewise.
20152         * modules/unistr/u16-startswith: Likewise.
20153         * modules/unistr/u16-stpcpy: Likewise.
20154         * modules/unistr/u16-stpncpy: Likewise.
20155         * modules/unistr/u16-strcat: Likewise.
20156         * modules/unistr/u16-strchr: Likewise.
20157         * modules/unistr/u16-strcmp: Likewise.
20158         * modules/unistr/u16-strcoll: Likewise.
20159         * modules/unistr/u16-strcpy: Likewise.
20160         * modules/unistr/u16-strcspn: Likewise.
20161         * modules/unistr/u16-strdup: Likewise.
20162         * modules/unistr/u16-strlen: Likewise.
20163         * modules/unistr/u16-strmblen: Likewise.
20164         * modules/unistr/u16-strmbtouc: Likewise.
20165         * modules/unistr/u16-strncat: Likewise.
20166         * modules/unistr/u16-strncmp: Likewise.
20167         * modules/unistr/u16-strncpy: Likewise.
20168         * modules/unistr/u16-strnlen: Likewise.
20169         * modules/unistr/u16-strpbrk: Likewise.
20170         * modules/unistr/u16-strrchr: Likewise.
20171         * modules/unistr/u16-strspn: Likewise.
20172         * modules/unistr/u16-strstr: Likewise.
20173         * modules/unistr/u16-strtok: Likewise.
20174         * modules/unistr/u16-to-u32: Likewise.
20175         * modules/unistr/u16-to-u8: Likewise.
20176         * modules/unistr/u16-uctomb: Likewise.
20177         * modules/unistr/u32-check: Likewise.
20178         * modules/unistr/u32-chr: Likewise.
20179         * modules/unistr/u32-cmp: Likewise.
20180         * modules/unistr/u32-cmp2: Likewise.
20181         * modules/unistr/u32-cpy: Likewise.
20182         * modules/unistr/u32-cpy-alloc: Likewise.
20183         * modules/unistr/u32-endswith: Likewise.
20184         * modules/unistr/u32-mblen: Likewise.
20185         * modules/unistr/u32-mbsnlen: Likewise.
20186         * modules/unistr/u32-mbtouc: Likewise.
20187         * modules/unistr/u32-mbtouc-unsafe: Likewise.
20188         * modules/unistr/u32-mbtoucr: Likewise.
20189         * modules/unistr/u32-move: Likewise.
20190         * modules/unistr/u32-next: Likewise.
20191         * modules/unistr/u32-prev: Likewise.
20192         * modules/unistr/u32-set: Likewise.
20193         * modules/unistr/u32-startswith: Likewise.
20194         * modules/unistr/u32-stpcpy: Likewise.
20195         * modules/unistr/u32-stpncpy: Likewise.
20196         * modules/unistr/u32-strcat: Likewise.
20197         * modules/unistr/u32-strchr: Likewise.
20198         * modules/unistr/u32-strcmp: Likewise.
20199         * modules/unistr/u32-strcoll: Likewise.
20200         * modules/unistr/u32-strcpy: Likewise.
20201         * modules/unistr/u32-strcspn: Likewise.
20202         * modules/unistr/u32-strdup: Likewise.
20203         * modules/unistr/u32-strlen: Likewise.
20204         * modules/unistr/u32-strmblen: Likewise.
20205         * modules/unistr/u32-strmbtouc: Likewise.
20206         * modules/unistr/u32-strncat: Likewise.
20207         * modules/unistr/u32-strncmp: Likewise.
20208         * modules/unistr/u32-strncpy: Likewise.
20209         * modules/unistr/u32-strnlen: Likewise.
20210         * modules/unistr/u32-strpbrk: Likewise.
20211         * modules/unistr/u32-strrchr: Likewise.
20212         * modules/unistr/u32-strspn: Likewise.
20213         * modules/unistr/u32-strstr: Likewise.
20214         * modules/unistr/u32-strtok: Likewise.
20215         * modules/unistr/u32-to-u16: Likewise.
20216         * modules/unistr/u32-to-u8: Likewise.
20217         * modules/unistr/u32-uctomb: Likewise.
20218         * modules/uniwbrk/u8-wordbreaks: Likewise.
20219         * modules/uniwbrk/u16-wordbreaks: Likewise.
20220         * modules/uniwbrk/u32-wordbreaks: Likewise.
20221         * modules/uniwbrk/ulc-wordbreaks: Likewise.
20222         * modules/uniwbrk/wordbreak-property: Likewise.
20223         * modules/uniwidth/u8-strwidth: Likewise.
20224         * modules/uniwidth/u8-width: Likewise.
20225         * modules/uniwidth/u16-strwidth: Likewise.
20226         * modules/uniwidth/u16-width: Likewise.
20227         * modules/uniwidth/u32-strwidth: Likewise.
20228         * modules/uniwidth/u32-width: Likewise.
20229         * modules/uniwidth/width: Likewise.
20230         * modules/unicase/cased-tests (Makefile.am): Link all test programs
20231         with $(LIBUNISTRING).
20232         * modules/unicase/ignorable-tests: Likewise.
20233         * modules/unicase/locale-language-tests: Likewise.
20234         * modules/unicase/tolower-tests: Likewise.
20235         * modules/unicase/totitle-tests: Likewise.
20236         * modules/unicase/toupper-tests: Likewise.
20237         * modules/unicase/u8-casecmp-tests: Likewise.
20238         * modules/unicase/u8-casecoll-tests: Likewise.
20239         * modules/unicase/u8-casefold-tests: Likewise.
20240         * modules/unicase/u8-is-cased-tests: Likewise.
20241         * modules/unicase/u8-is-casefolded-tests: Likewise.
20242         * modules/unicase/u8-is-lowercase-tests: Likewise.
20243         * modules/unicase/u8-is-titlecase-tests: Likewise.
20244         * modules/unicase/u8-is-uppercase-tests: Likewise.
20245         * modules/unicase/u8-tolower-tests: Likewise.
20246         * modules/unicase/u8-totitle-tests: Likewise.
20247         * modules/unicase/u8-toupper-tests: Likewise.
20248         * modules/unicase/u16-casecmp-tests: Likewise.
20249         * modules/unicase/u16-casecoll-tests: Likewise.
20250         * modules/unicase/u16-casefold-tests: Likewise.
20251         * modules/unicase/u16-is-cased-tests: Likewise.
20252         * modules/unicase/u16-is-casefolded-tests: Likewise.
20253         * modules/unicase/u16-is-lowercase-tests: Likewise.
20254         * modules/unicase/u16-is-titlecase-tests: Likewise.
20255         * modules/unicase/u16-is-uppercase-tests: Likewise.
20256         * modules/unicase/u16-tolower-tests: Likewise.
20257         * modules/unicase/u16-totitle-tests: Likewise.
20258         * modules/unicase/u16-toupper-tests: Likewise.
20259         * modules/unicase/u32-casecmp-tests: Likewise.
20260         * modules/unicase/u32-casecoll-tests: Likewise.
20261         * modules/unicase/u32-casefold-tests: Likewise.
20262         * modules/unicase/u32-is-cased-tests: Likewise.
20263         * modules/unicase/u32-is-casefolded-tests: Likewise.
20264         * modules/unicase/u32-is-lowercase-tests: Likewise.
20265         * modules/unicase/u32-is-titlecase-tests: Likewise.
20266         * modules/unicase/u32-is-uppercase-tests: Likewise.
20267         * modules/unicase/u32-tolower-tests: Likewise.
20268         * modules/unicase/u32-totitle-tests: Likewise.
20269         * modules/unicase/u32-toupper-tests: Likewise.
20270         * modules/unicase/ulc-casecmp-tests: Likewise.
20271         * modules/unicase/ulc-casecoll-tests: Likewise.
20272         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
20273         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
20274         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
20275         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
20276         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
20277         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
20278         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
20279         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
20280         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
20281         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
20282         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
20283         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
20284         * modules/unictype/bidicategory-byname-tests: Likewise.
20285         * modules/unictype/bidicategory-name-tests: Likewise.
20286         * modules/unictype/bidicategory-of-tests: Likewise.
20287         * modules/unictype/bidicategory-test-tests: Likewise.
20288         * modules/unictype/block-list-tests: Likewise.
20289         * modules/unictype/block-of-tests: Likewise.
20290         * modules/unictype/block-test-tests: Likewise.
20291         * modules/unictype/category-C-tests: Likewise.
20292         * modules/unictype/category-Cc-tests: Likewise.
20293         * modules/unictype/category-Cf-tests: Likewise.
20294         * modules/unictype/category-Cn-tests: Likewise.
20295         * modules/unictype/category-Co-tests: Likewise.
20296         * modules/unictype/category-Cs-tests: Likewise.
20297         * modules/unictype/category-L-tests: Likewise.
20298         * modules/unictype/category-Ll-tests: Likewise.
20299         * modules/unictype/category-Lm-tests: Likewise.
20300         * modules/unictype/category-Lo-tests: Likewise.
20301         * modules/unictype/category-Lt-tests: Likewise.
20302         * modules/unictype/category-Lu-tests: Likewise.
20303         * modules/unictype/category-M-tests: Likewise.
20304         * modules/unictype/category-Mc-tests: Likewise.
20305         * modules/unictype/category-Me-tests: Likewise.
20306         * modules/unictype/category-Mn-tests: Likewise.
20307         * modules/unictype/category-N-tests: Likewise.
20308         * modules/unictype/category-Nd-tests: Likewise.
20309         * modules/unictype/category-Nl-tests: Likewise.
20310         * modules/unictype/category-No-tests: Likewise.
20311         * modules/unictype/category-P-tests: Likewise.
20312         * modules/unictype/category-Pc-tests: Likewise.
20313         * modules/unictype/category-Pd-tests: Likewise.
20314         * modules/unictype/category-Pe-tests: Likewise.
20315         * modules/unictype/category-Pf-tests: Likewise.
20316         * modules/unictype/category-Pi-tests: Likewise.
20317         * modules/unictype/category-Po-tests: Likewise.
20318         * modules/unictype/category-Ps-tests: Likewise.
20319         * modules/unictype/category-S-tests: Likewise.
20320         * modules/unictype/category-Sc-tests: Likewise.
20321         * modules/unictype/category-Sk-tests: Likewise.
20322         * modules/unictype/category-Sm-tests: Likewise.
20323         * modules/unictype/category-So-tests: Likewise.
20324         * modules/unictype/category-Z-tests: Likewise.
20325         * modules/unictype/category-Zl-tests: Likewise.
20326         * modules/unictype/category-Zp-tests: Likewise.
20327         * modules/unictype/category-Zs-tests: Likewise.
20328         * modules/unictype/category-and-not-tests: Likewise.
20329         * modules/unictype/category-and-tests: Likewise.
20330         * modules/unictype/category-byname-tests: Likewise.
20331         * modules/unictype/category-name-tests: Likewise.
20332         * modules/unictype/category-none-tests: Likewise.
20333         * modules/unictype/category-of-tests: Likewise.
20334         * modules/unictype/category-or-tests: Likewise.
20335         * modules/unictype/category-test-withtable-tests: Likewise.
20336         * modules/unictype/combining-class-tests: Likewise.
20337         * modules/unictype/ctype-alnum-tests: Likewise.
20338         * modules/unictype/ctype-alpha-tests: Likewise.
20339         * modules/unictype/ctype-blank-tests: Likewise.
20340         * modules/unictype/ctype-cntrl-tests: Likewise.
20341         * modules/unictype/ctype-digit-tests: Likewise.
20342         * modules/unictype/ctype-graph-tests: Likewise.
20343         * modules/unictype/ctype-lower-tests: Likewise.
20344         * modules/unictype/ctype-print-tests: Likewise.
20345         * modules/unictype/ctype-punct-tests: Likewise.
20346         * modules/unictype/ctype-space-tests: Likewise.
20347         * modules/unictype/ctype-upper-tests: Likewise.
20348         * modules/unictype/ctype-xdigit-tests: Likewise.
20349         * modules/unictype/decimal-digit-tests: Likewise.
20350         * modules/unictype/digit-tests: Likewise.
20351         * modules/unictype/mirror-tests: Likewise.
20352         * modules/unictype/numeric-tests: Likewise.
20353         * modules/unictype/property-alphabetic-tests: Likewise.
20354         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
20355         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
20356         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
20357         * modules/unictype/property-bidi-block-separator-tests: Likewise.
20358         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
20359         * modules/unictype/property-bidi-common-separator-tests: Likewise.
20360         * modules/unictype/property-bidi-control-tests: Likewise.
20361         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
20362         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
20363         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
20364         * modules/unictype/property-bidi-european-digit-tests: Likewise.
20365         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
20366         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
20367         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
20368         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
20369         * modules/unictype/property-bidi-pdf-tests: Likewise.
20370         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
20371         * modules/unictype/property-bidi-whitespace-tests: Likewise.
20372         * modules/unictype/property-byname-tests: Likewise.
20373         * modules/unictype/property-combining-tests: Likewise.
20374         * modules/unictype/property-composite-tests: Likewise.
20375         * modules/unictype/property-currency-symbol-tests: Likewise.
20376         * modules/unictype/property-dash-tests: Likewise.
20377         * modules/unictype/property-decimal-digit-tests: Likewise.
20378         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
20379         * modules/unictype/property-deprecated-tests: Likewise.
20380         * modules/unictype/property-diacritic-tests: Likewise.
20381         * modules/unictype/property-extender-tests: Likewise.
20382         * modules/unictype/property-format-control-tests: Likewise.
20383         * modules/unictype/property-grapheme-base-tests: Likewise.
20384         * modules/unictype/property-grapheme-extend-tests: Likewise.
20385         * modules/unictype/property-grapheme-link-tests: Likewise.
20386         * modules/unictype/property-hex-digit-tests: Likewise.
20387         * modules/unictype/property-hyphen-tests: Likewise.
20388         * modules/unictype/property-id-continue-tests: Likewise.
20389         * modules/unictype/property-id-start-tests: Likewise.
20390         * modules/unictype/property-ideographic-tests: Likewise.
20391         * modules/unictype/property-ids-binary-operator-tests: Likewise.
20392         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
20393         * modules/unictype/property-ignorable-control-tests: Likewise.
20394         * modules/unictype/property-iso-control-tests: Likewise.
20395         * modules/unictype/property-join-control-tests: Likewise.
20396         * modules/unictype/property-left-of-pair-tests: Likewise.
20397         * modules/unictype/property-line-separator-tests: Likewise.
20398         * modules/unictype/property-logical-order-exception-tests: Likewise.
20399         * modules/unictype/property-lowercase-tests: Likewise.
20400         * modules/unictype/property-math-tests: Likewise.
20401         * modules/unictype/property-non-break-tests: Likewise.
20402         * modules/unictype/property-not-a-character-tests: Likewise.
20403         * modules/unictype/property-numeric-tests: Likewise.
20404         * modules/unictype/property-other-alphabetic-tests: Likewise.
20405         * modules/unictype/property-other-default-ignorable-code-point-tests:
20406         Likewise.
20407         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
20408         * modules/unictype/property-other-id-continue-tests: Likewise.
20409         * modules/unictype/property-other-id-start-tests: Likewise.
20410         * modules/unictype/property-other-lowercase-tests: Likewise.
20411         * modules/unictype/property-other-math-tests: Likewise.
20412         * modules/unictype/property-other-uppercase-tests: Likewise.
20413         * modules/unictype/property-paired-punctuation-tests: Likewise.
20414         * modules/unictype/property-paragraph-separator-tests: Likewise.
20415         * modules/unictype/property-pattern-syntax-tests: Likewise.
20416         * modules/unictype/property-pattern-white-space-tests: Likewise.
20417         * modules/unictype/property-private-use-tests: Likewise.
20418         * modules/unictype/property-punctuation-tests: Likewise.
20419         * modules/unictype/property-quotation-mark-tests: Likewise.
20420         * modules/unictype/property-radical-tests: Likewise.
20421         * modules/unictype/property-sentence-terminal-tests: Likewise.
20422         * modules/unictype/property-soft-dotted-tests: Likewise.
20423         * modules/unictype/property-space-tests: Likewise.
20424         * modules/unictype/property-terminal-punctuation-tests: Likewise.
20425         * modules/unictype/property-test-tests: Likewise.
20426         * modules/unictype/property-titlecase-tests: Likewise.
20427         * modules/unictype/property-unassigned-code-value-tests: Likewise.
20428         * modules/unictype/property-unified-ideograph-tests: Likewise.
20429         * modules/unictype/property-uppercase-tests: Likewise.
20430         * modules/unictype/property-variation-selector-tests: Likewise.
20431         * modules/unictype/property-white-space-tests: Likewise.
20432         * modules/unictype/property-xid-continue-tests: Likewise.
20433         * modules/unictype/property-xid-start-tests: Likewise.
20434         * modules/unictype/property-zero-width-tests: Likewise.
20435         * modules/unictype/scripts-tests: Likewise.
20436         * modules/unictype/syntax-c-ident-tests: Likewise.
20437         * modules/unictype/syntax-c-whitespace-tests: Likewise.
20438         * modules/unictype/syntax-java-ident-tests: Likewise.
20439         * modules/unictype/syntax-java-whitespace-tests: Likewise.
20440         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
20441         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
20442         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
20443         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
20444         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
20445         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
20446         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
20447         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
20448         * modules/uniname/uniname-tests: Likewise.
20449         * modules/uninorm/canonical-decomposition-tests: Likewise.
20450         * modules/uninorm/compat-decomposition-tests: Likewise.
20451         * modules/uninorm/composition-tests: Likewise.
20452         * modules/uninorm/decomposing-form-tests: Likewise.
20453         * modules/uninorm/decomposition-tests: Likewise.
20454         * modules/uninorm/filter-tests: Likewise.
20455         * modules/uninorm/nfc-tests: Likewise.
20456         * modules/uninorm/nfd-tests: Likewise.
20457         * modules/uninorm/nfkc-tests: Likewise.
20458         * modules/uninorm/nfkd-tests: Likewise.
20459         * modules/uninorm/u8-normcmp-tests: Likewise.
20460         * modules/uninorm/u8-normcoll-tests: Likewise.
20461         * modules/uninorm/u16-normcmp-tests: Likewise.
20462         * modules/uninorm/u16-normcoll-tests: Likewise.
20463         * modules/uninorm/u32-normcmp-tests: Likewise.
20464         * modules/uninorm/u32-normcoll-tests: Likewise.
20465         * modules/unistdio/u8-asnprintf-tests: Likewise.
20466         * modules/unistdio/u8-vasnprintf-tests: Likewise.
20467         * modules/unistdio/u8-vasprintf-tests: Likewise.
20468         * modules/unistdio/u8-vsnprintf-tests: Likewise.
20469         * modules/unistdio/u8-vsprintf-tests: Likewise.
20470         * modules/unistdio/u16-asnprintf-tests: Likewise.
20471         * modules/unistdio/u16-vasnprintf-tests: Likewise.
20472         * modules/unistdio/u16-vasprintf-tests: Likewise.
20473         * modules/unistdio/u16-vsnprintf-tests: Likewise.
20474         * modules/unistdio/u16-vsprintf-tests: Likewise.
20475         * modules/unistdio/u32-asnprintf-tests: Likewise.
20476         * modules/unistdio/u32-vasnprintf-tests: Likewise.
20477         * modules/unistdio/u32-vasprintf-tests: Likewise.
20478         * modules/unistdio/u32-vsnprintf-tests: Likewise.
20479         * modules/unistdio/u32-vsprintf-tests: Likewise.
20480         * modules/unistdio/ulc-asnprintf-tests: Likewise.
20481         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
20482         * modules/unistdio/ulc-vasprintf-tests: Likewise.
20483         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
20484         * modules/unistdio/ulc-vsprintf-tests: Likewise.
20485         * modules/unistr/u8-check-tests: Likewise.
20486         * modules/unistr/u8-chr-tests: Likewise.
20487         * modules/unistr/u8-cmp-tests: Likewise.
20488         * modules/unistr/u8-cmp2-tests: Likewise.
20489         * modules/unistr/u8-cpy-alloc-tests: Likewise.
20490         * modules/unistr/u8-cpy-tests: Likewise.
20491         * modules/unistr/u8-mblen-tests: Likewise.
20492         * modules/unistr/u8-mbsnlen-tests: Likewise.
20493         * modules/unistr/u8-mbtouc-tests: Likewise.
20494         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
20495         * modules/unistr/u8-mbtoucr-tests: Likewise.
20496         * modules/unistr/u8-move-tests: Likewise.
20497         * modules/unistr/u8-next-tests: Likewise.
20498         * modules/unistr/u8-prev-tests: Likewise.
20499         * modules/unistr/u8-set-tests: Likewise.
20500         * modules/unistr/u8-stpcpy-tests: Likewise.
20501         * modules/unistr/u8-stpncpy-tests: Likewise.
20502         * modules/unistr/u8-strcat-tests: Likewise.
20503         * modules/unistr/u8-strcmp-tests: Likewise.
20504         * modules/unistr/u8-strcoll-tests: Likewise.
20505         * modules/unistr/u8-strcpy-tests: Likewise.
20506         * modules/unistr/u8-strdup-tests: Likewise.
20507         * modules/unistr/u8-strlen-tests: Likewise.
20508         * modules/unistr/u8-strmblen-tests: Likewise.
20509         * modules/unistr/u8-strmbtouc-tests: Likewise.
20510         * modules/unistr/u8-strncat-tests: Likewise.
20511         * modules/unistr/u8-strncmp-tests: Likewise.
20512         * modules/unistr/u8-strncpy-tests: Likewise.
20513         * modules/unistr/u8-strnlen-tests: Likewise.
20514         * modules/unistr/u8-to-u16-tests: Likewise.
20515         * modules/unistr/u8-to-u32-tests: Likewise.
20516         * modules/unistr/u8-uctomb-tests: Likewise.
20517         * modules/unistr/u16-check-tests: Likewise.
20518         * modules/unistr/u16-chr-tests: Likewise.
20519         * modules/unistr/u16-cmp-tests: Likewise.
20520         * modules/unistr/u16-cmp2-tests: Likewise.
20521         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20522         * modules/unistr/u16-cpy-tests: Likewise.
20523         * modules/unistr/u16-mblen-tests: Likewise.
20524         * modules/unistr/u16-mbsnlen-tests: Likewise.
20525         * modules/unistr/u16-mbtouc-tests: Likewise.
20526         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20527         * modules/unistr/u16-mbtoucr-tests: Likewise.
20528         * modules/unistr/u16-move-tests: Likewise.
20529         * modules/unistr/u16-next-tests: Likewise.
20530         * modules/unistr/u16-prev-tests: Likewise.
20531         * modules/unistr/u16-set-tests: Likewise.
20532         * modules/unistr/u16-stpcpy-tests: Likewise.
20533         * modules/unistr/u16-stpncpy-tests: Likewise.
20534         * modules/unistr/u16-strcat-tests: Likewise.
20535         * modules/unistr/u16-strcmp-tests: Likewise.
20536         * modules/unistr/u16-strcoll-tests: Likewise.
20537         * modules/unistr/u16-strcpy-tests: Likewise.
20538         * modules/unistr/u16-strdup-tests: Likewise.
20539         * modules/unistr/u16-strlen-tests: Likewise.
20540         * modules/unistr/u16-strmblen-tests: Likewise.
20541         * modules/unistr/u16-strmbtouc-tests: Likewise.
20542         * modules/unistr/u16-strncat-tests: Likewise.
20543         * modules/unistr/u16-strncmp-tests: Likewise.
20544         * modules/unistr/u16-strncpy-tests: Likewise.
20545         * modules/unistr/u16-strnlen-tests: Likewise.
20546         * modules/unistr/u16-to-u32-tests: Likewise.
20547         * modules/unistr/u16-to-u8-tests: Likewise.
20548         * modules/unistr/u16-uctomb-tests: Likewise.
20549         * modules/unistr/u32-check-tests: Likewise.
20550         * modules/unistr/u32-chr-tests: Likewise.
20551         * modules/unistr/u32-cmp-tests: Likewise.
20552         * modules/unistr/u32-cmp2-tests: Likewise.
20553         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20554         * modules/unistr/u32-cpy-tests: Likewise.
20555         * modules/unistr/u32-mblen-tests: Likewise.
20556         * modules/unistr/u32-mbsnlen-tests: Likewise.
20557         * modules/unistr/u32-mbtouc-tests: Likewise.
20558         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20559         * modules/unistr/u32-mbtoucr-tests: Likewise.
20560         * modules/unistr/u32-move-tests: Likewise.
20561         * modules/unistr/u32-next-tests: Likewise.
20562         * modules/unistr/u32-prev-tests: Likewise.
20563         * modules/unistr/u32-set-tests: Likewise.
20564         * modules/unistr/u32-stpcpy-tests: Likewise.
20565         * modules/unistr/u32-stpncpy-tests: Likewise.
20566         * modules/unistr/u32-strcat-tests: Likewise.
20567         * modules/unistr/u32-strcmp-tests: Likewise.
20568         * modules/unistr/u32-strcoll-tests: Likewise.
20569         * modules/unistr/u32-strcpy-tests: Likewise.
20570         * modules/unistr/u32-strdup-tests: Likewise.
20571         * modules/unistr/u32-strlen-tests: Likewise.
20572         * modules/unistr/u32-strmblen-tests: Likewise.
20573         * modules/unistr/u32-strmbtouc-tests: Likewise.
20574         * modules/unistr/u32-strncat-tests: Likewise.
20575         * modules/unistr/u32-strncmp-tests: Likewise.
20576         * modules/unistr/u32-strncpy-tests: Likewise.
20577         * modules/unistr/u32-strnlen-tests: Likewise.
20578         * modules/unistr/u32-to-u16-tests: Likewise.
20579         * modules/unistr/u32-to-u8-tests: Likewise.
20580         * modules/unistr/u32-uctomb-tests: Likewise.
20581         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20582         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20583         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20584         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20585         * modules/uniwidth/u8-strwidth-tests: Likewise.
20586         * modules/uniwidth/u8-width-tests: Likewise.
20587         * modules/uniwidth/u16-strwidth-tests: Likewise.
20588         * modules/uniwidth/u16-width-tests: Likewise.
20589         * modules/uniwidth/u32-strwidth-tests: Likewise.
20590         * modules/uniwidth/u32-width-tests: Likewise.
20591         * modules/uniwidth/width-tests: Likewise.
20592
20593 2010-05-18  Richard Jones  <rjones@redhat.com>
20594
20595         doc: users.txt: list hivex
20596         * users.txt: Add hivex.
20597
20598 2010-05-18  Richard Jones  <rjones@redhat.com>
20599
20600         doc: users.txt: list febootstrap
20601         * users.txt: Add febootstrap.
20602
20603 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20604
20605         bootstrap: fix an error when gnulib is not used as a git submodule
20606         * build-aux/bootstrap (gnulib_path): If its length is zero then
20607         assign "gnulib" to it.
20608         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20609
20610 2010-05-16  Bruno Haible  <bruno@clisp.org>
20611
20612         Avoid autoconf warnings about AM_ICONV.
20613         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20614         2.64.
20615
20616 2010-05-16  Bruno Haible  <bruno@clisp.org>
20617
20618         absolute-header: Make the macro usable in more situations.
20619         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20620         from gl_ABSOLUTE_HEADER.
20621         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20622
20623 2010-05-16  James Youngman  <jay@gnu.org>
20624
20625         doc: update users.txt
20626         * users.txt: Add CSSC.
20627
20628 2010-05-16  Jim Meyering  <meyering@redhat.com>
20629
20630         init.sh: fix an error in the previous change; add more comments
20631         * tests/init.sh: Compare exit code in loop against 9, not 2.
20632         Patch by Bruno Haible.
20633         Make the two tests more similar by adding an empty "then" clause.
20634         Add comments.
20635
20636         init.sh: avoid unnecessary shell re-exec
20637         * tests/init.sh: Improve the re-exec-required check to first test the
20638         current shell.  If it passes the test, do not search for a shell that
20639         does pass, and do not re-exec.  This test is particularly contorted to
20640         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20641         of $(...) evokes a syntax error and causes immediate shell exit with
20642         status 2.  Bruno Haible reported that the re-exec made it impossible
20643         to single-step through any init.sh-using script.
20644
20645 2010-05-16  Bruno Haible  <bruno@clisp.org>
20646
20647         Fix collision between gnulib's and libintl's printf replacements.
20648         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20649         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20650         (printf): When using GNU C, map the __printf__ function to rpl_printf
20651         via __asm__. When not using GNU C, define rpl_printf instead of
20652         __printf__.
20653         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20654         commit.
20655         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20656         commit.
20657         * m4/asm-underscore.m4: New file.
20658         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20659         * modules/stdio (Files): Add m4/asm-underscore.m4.
20660         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20661         Reported by Ben Pfaff.
20662
20663 2010-05-16  Bruno Haible  <bruno@clisp.org>
20664
20665         verify: Avoid skipping the test on openSUSE 11.0.
20666         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20667
20668 2010-05-13  Bruno Haible  <bruno@clisp.org>
20669
20670         Avoid useless warnings from G++.
20671         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20672         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20673         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20674
20675 2010-05-11  Jim Meyering  <meyering@redhat.com>
20676
20677         maint.mk: tweak preceding change
20678         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20679         regexps tighter by anchoring at EOL, and make the new group "shy"
20680         for slightly decreased overhead.
20681
20682 2010-05-11  Eric Blake  <eblake@redhat.com>
20683
20684         maint.mk: gnulib doesn't guarantee NSIG
20685         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20686
20687 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20688
20689         test-pwrite.c: Remove unused variable declaration.
20690         * tests/test-pwrite.c (main): Remove read_buf declaration.
20691
20692         Remove useless test-pwrite.sh file.
20693         * tests/test-pwrite.sh: Delete file.
20694         * modules/pwrite-tests: Remove references.
20695         Reported by Bruno Haible.
20696
20697 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20698
20699         init.sh: fix a typo
20700         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20701
20702 2010-05-10  Jim Meyering  <meyering@redhat.com>
20703
20704         maint.mk: avoid using a temporary file in the always-defined-macros check
20705         * top/maint.mk (.re-defmac): Remove rule.
20706         (gl_trap_): Remove definition.
20707         (sc_prohibit_always-defined_macros): Rewrite not to create and
20708         depend on a temporary file.  Instead, depend on GNU grep's ability
20709         to read a list of regular expressions from stdin when given "-f -".
20710
20711 2010-05-09  Bruno Haible  <bruno@clisp.org>
20712
20713         Update to GNU gettext 0.18, part 1.
20714         * m4/gettext.m4: Update to GNU gettext 0.18.
20715         * m4/intl.m4: Likewise.
20716         * m4/po.m4: Likewise.
20717         * modules/gettext (Files): Add m4/fcntl-o.m4.
20718         (configure.ac): Require gettext infrastructure from version 0.18.
20719
20720 2010-05-09  Jim Meyering  <meyering@redhat.com>
20721
20722         init.sh: enable MALLOC_PERTURB_
20723         * tests/init.sh: Enable glibc's malloc-perturbing option.
20724
20725         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20726         With my recent change in init.sh from the two-line form:
20727             -#   : ${srcdir=.}
20728             -#   . "$srcdir/init.sh"; path_prepend_ .
20729             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20730         I noticed that using the one-line form would cause this test
20731         to fail with a false-positive, or to stop working altogether,
20732         depending on whether help-version changed or all the tests did.
20733         * top/maint.mk (_hv_regex): Remove this definition.
20734         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20735         (_hv_regex_strong): Use a stronger regex to check for conformance.
20736         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20737         Give a separate diagnostic for lack of conforming use.
20738
20739         maint.mk: prohibit definition of symbols defined by gnulib
20740         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20741         definition of symbols defined by gnulib.
20742
20743 2010-05-09  Bruno Haible  <bruno@clisp.org>
20744
20745         acl: Avoid test failure on Cygwin-hosted mingw.
20746         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20747
20748 2010-05-09  Bruno Haible  <bruno@clisp.org>
20749
20750         error: Use system's fcntl function.
20751         * lib/error.c (fcntl): Undefine.
20752
20753 2010-05-09  Jim Meyering  <meyering@redhat.com>
20754
20755         verify: adjust formatting to be more consistent
20756         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20757         argument-list '('s, and after one comma.
20758
20759 2010-05-09  Bruno Haible  <bruno@clisp.org>
20760
20761         error: More reliable output on mingw.
20762         * lib/error.c: Include <windows.h>.
20763         (is_open): New function.
20764         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20765         defined.
20766
20767 2010-05-09  Bruno Haible  <bruno@clisp.org>
20768
20769         vasnprintf: Fix syntax errors in libintl build on mingw.
20770         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20771         pad_ourselves and prec_ourselves after use.
20772
20773 2010-05-08  Bruno Haible  <bruno@clisp.org>
20774
20775         * lib/config.charset: Update comments for Cygwin 1.7.
20776         * lib/localcharset.c: Likewise.
20777
20778 2010-05-07  Jim Meyering  <meyering@redhat.com>
20779
20780         init.sh: improve comments
20781         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20782         . "${srcdir=.}/init.sh"; path_prepend_ .
20783         Add a note about path_prepend_ and the alternative of using
20784         TESTS_ENVIRONMENT.
20785
20786 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20787
20788         exclude: Unescape hashed patterns in wildcard mode.
20789         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20790         to the hash list.
20791         * tests/test-exclude8.sh: New test case.
20792         * modules/exclude-tests: Add new test.
20793
20794 2010-05-05  Eric Blake  <eblake@redhat.com>
20795
20796         verify: automate tests
20797         * modules/verify-tests: New module.
20798         * tests/test-verify.sh: New file.
20799         * tests/test-verify.c: Guard each negative test with a unique id.
20800         Also avoid warning about unused left hand of comma expressions.
20801
20802 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20803
20804         Further improvements to verify.h, suggested by Eric Blake.
20805         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20806         the GL_* versions, to avoid collision with OpenGL.
20807         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20808         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20809         than testing merely whether it's defined.
20810
20811         Modify verify.h to pacify gcc -Wredundant_decls.
20812         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20813         These use the prefix "GL_" since they're likely to be useful elsewhere.
20814         We may need to break them out into a different .h file.
20815         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20816         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20817         of verify_function__.
20818
20819 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20820
20821         Tests for module pwrite.
20822         * modules/pwrite-tests: New file.
20823         * tests/test-pwrite.sh: New file.
20824         * tests/test-pwrite.c: New file.
20825
20826         New module pwrite.
20827         * lib/unistd.in.h (pwrite): New declaration.
20828         * lib/pwrite.c: New file, from glibc with modifications.
20829         * m4/pwrite.m4: New file.
20830         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20831         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20832         REPLACE_PWRITE.
20833         * modules/pwrite: New file.
20834         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20835         REPLACE_PWRITE.
20836         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20837         * doc/posix-functions/pwrite.texi: Mention the new module.
20838
20839 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20840
20841         pread: Update documentation.
20842         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20843
20844 2010-05-04  Eric Blake  <eblake@redhat.com>
20845
20846         docs: update cygwin progress
20847         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20848         this bug.
20849         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20850         Added in cygwin 1.7.2.
20851         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20852         Likewise.
20853         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20854         Likewise.
20855         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20856         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20857         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20858         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20859         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20860         Mention nproc module.
20861         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20862         bug in cygwin 1.7.5 addition.
20863         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20864         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20865         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20866         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20867         1.7.5.
20868         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20869         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20870         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20871         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20872         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20873         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20874         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20875         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20876         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20877         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20878         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20879         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20880         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20881         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20882         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20883         Likewise.
20884         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20885         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20886         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20887         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20888         Likewise.
20889         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20890         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20891         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20892         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20893         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20894         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20895         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20896         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20897         Likewise.
20898         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20899         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20900         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20901         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20902         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20903         Likewise.
20904         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20905         Likewise.
20906         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20907         Likewise.
20908         * doc/glibc-functions/xdrrec_endofrecord.texi
20909         (xdrrec_endofrecord): Likewise.
20910         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20911         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20912         Likewise.
20913         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20914         Likewise.
20915
20916 2010-05-04  Jim Meyering  <meyering@redhat.com>
20917
20918         gendocs.sh: make its "-s FILE" option more useful
20919         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20920         $PACKAGE to reflect the probably-different basename of "FILE".
20921
20922 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20923
20924         bootstrap: don't ignore download_po_files failure
20925         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20926         failure.
20927
20928 2010-05-03  Jim Meyering  <meyering@redhat.com>
20929
20930         maint.mk: allow to pass options to gendocs.sh
20931         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20932         (gendocs_options_): New overridable variable.
20933
20934         gnu-web-doc-update: don't ignore configure or build failure
20935         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20936
20937         announce-gen: backslash-escape '@'s in --help output
20938         * build-aux/announce-gen: Fix syntax errors.
20939
20940         maint.mk, announce-gen: allow project-specific announcement mail headers
20941         * top/maint.mk (translation_project_): Define default.
20942         (announcement_Cc_, announcement_mail_headers_): Likewise.
20943         (announcement): Invoke announce-gen with new --mail-headers option.
20944         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20945
20946         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20947         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20948         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20949         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20950         line in the "err2" output file when running "make check" in verbose
20951         mode (i.e., with set -x enabled).
20952
20953 2010-05-03  Bruno Haible  <bruno@clisp.org>
20954
20955         wctob: Fix for weird platforms.
20956         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20957         argument value.
20958
20959 2010-05-03  Jim Meyering  <meyering@redhat.com>
20960
20961         maint.mk: prohibit unwarranted use of <strings.h>
20962         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20963         strings.h in a file that does not also use strcasecmp, strncasecmp,
20964         ffs or ffsll.
20965
20966         maint.mk: remove obsolete comments
20967         * top/maint.mk: Remove stale, commented-out rules.
20968
20969 2010-05-02  Bruno Haible  <bruno@clisp.org>
20970
20971         wcwidth: Declare also when it's aliased.
20972         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20973         macro.
20974
20975 2010-05-02  Bruno Haible  <bruno@clisp.org>
20976
20977         Fix regression from 2010-04-25.
20978         * gnulib-tool (func_modules_transitive_closure): Check the status of
20979         all modules, not only of the tests that are of the form foo-tests where
20980         foo is a module.
20981
20982 2010-05-02  Bruno Haible  <bruno@clisp.org>
20983
20984         wctob: Work around nasty Cygwin 1.7.2 bug.
20985         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20986         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20987
20988 2010-05-01  Bruno Haible  <bruno@clisp.org>
20989
20990         fpurge: Sharper test.
20991         * tests/test-fpurge.c (main): Add one more ftell check.
20992         * modules/fpurge-tests (Depends-on): Add ftell.
20993         Suggested by Eric Blake.
20994
20995 2010-05-01  Bruno Haible  <bruno@clisp.org>
20996
20997         ftello: Another test.
20998         * tests/test-ftello3.c: New file.
20999         * modules/ftello-tests (Files): Add it.
21000         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21001         MOSTLYCLEANFILES.
21002
21003         ftell: Another test.
21004         * tests/test-ftell3.c: New file.
21005         * modules/ftell-tests (Files): Add it.
21006         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21007         MOSTLYCLEANFILES.
21008
21009 2010-05-01  Bruno Haible  <bruno@clisp.org>
21010
21011         ftell, ftello: Work around Solaris bug.
21012         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
21013         * lib/ftello.c: Include stdio-impl.h.
21014         (ftello): On Solaris, when _IOWRT is set, compute the result without
21015         looking at _IOREAD.
21016         * modules/ftello (Files): Add lib/stdio-impl.h.
21017         * doc/posix-functions/ftell.texi: Mention Solaris bug.
21018         * doc/posix-functions/ftello.texi: Likewise.
21019         Reported by Eric Blake.
21020
21021 2010-05-01  Bruno Haible  <bruno@clisp.org>
21022
21023         freading: Adapt to special meaning of _IOREAD flag on Solaris.
21024         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
21025         the _IOWRT flag is also set.
21026
21027 2010-05-01  Bruno Haible  <bruno@clisp.org>
21028
21029         Fix doc about a HP-UX stdio bug.
21030         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
21031         * doc/posix-functions/ftello.texi: Likewise.
21032
21033 2010-05-01  Bruno Haible  <bruno@clisp.org>
21034
21035         lseek test: Fix failure on Solaris.
21036         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
21037         output.
21038
21039 2010-04-30  Jim Meyering  <meyering@redhat.com>
21040
21041         bootstrap: don't ignore failure to generate po*/Makevars
21042         * build-aux/bootstrap (with_gettext): Don't ignore failure
21043         to create po/Makevars or runtime-po/Makevars.
21044
21045 2010-04-29  Eric Blake  <eblake@redhat.com>
21046
21047         headers: relax license to LGPLv2+
21048         * modules/fcntl-h (License): Relax license.
21049         * modules/getopt-posix (License): Likewise.
21050         * modules/locale (License): Likewise.
21051         * modules/math (License): Likewise.
21052         * modules/pty (License): Likewise.
21053         * modules/sched (License): Likewise.
21054         * modules/search (License): Likewise.
21055         * modules/spawn (License): Likewise.
21056         * modules/stdarg (License): Likewise.
21057         * modules/sysexits (License): Likewise.
21058
21059 2010-04-29  Jim Meyering  <meyering@redhat.com>
21060
21061         inttypes: relax license to LGPLv2+
21062         * modules/inttypes (License): Relax license.
21063
21064 2010-04-29  Simon Josefsson  <simon@josefsson.org>
21065
21066         * top/maint.mk (indent): Run twice to produce idempotent results.
21067
21068 2010-04-28  Bruno Haible  <bruno@clisp.org>
21069
21070         getdate: Generate getdate.c in the source directory.
21071         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
21072         MOSTLYCLEANFILES.
21073         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
21074
21075 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
21076
21077         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
21078         is not declared as a const *; avoid warnings in that case.
21079
21080 2010-04-28  Eric Blake  <eblake@redhat.com>
21081
21082         canonicalize-lgpl: avoid compiler warning
21083         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
21084         declaration' / 'extraneous semicolon' warning with some compilers.
21085         Reported by Andreas Gruenbacher.
21086
21087 2010-04-28  Jim Meyering  <meyering@redhat.com>
21088
21089         init.sh: ensure a more reliable exit status when exiting via trap
21090         * tests/init.sh (setup_): Don't rely on $? in signal handler.
21091         Inspired by patches from Dmitry V. Levin.
21092         Also trap on signal 3 (SIGQUIT).
21093
21094 2010-04-27  Bruno Haible  <bruno@clisp.org>
21095
21096         Update doc about utimes().
21097         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
21098         'utimens' module.
21099         Reported by Andreas Gruenbacher <agruen@suse.de>.
21100
21101 2010-04-27  Eric Blake  <eblake@redhat.com>
21102
21103         full-read, full-write: relax license
21104         * modules/full-read (License): Drop to LGPLv2+.
21105         * modules/full-write (License): Likewise.
21106         * modules/safe-read (License): Likewise.
21107         * modules/safe-write (License): Likewise.
21108
21109         pthread: mention library for linking
21110         * modules/pthread (Link): Mention $(LIB_PTHREAD).
21111
21112 2010-04-27  Jim Meyering  <meyering@redhat.com>
21113
21114         maint.mk: fix a bug introduced in last change
21115         * top/maint.mk (gl_assured_headers_): Now that all names are on
21116         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
21117         is not anchored to end of word, it should be adequate.
21118
21119         maint.mk: avoid side-effect in latest syntax-check
21120         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
21121         to run commands via $(shell...), and hence to incur cost only when
21122         the new rule is actually run.
21123
21124         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
21125         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
21126         and use that to create a regexp used to detect all #if HAVE_..._H uses.
21127         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
21128         (gl_assured_headers_, az_, AZ_): Define.
21129         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
21130
21131 2010-04-26  Jim Meyering  <jim@meyering.net>
21132             Bruno Haible  <bruno@clisp.org>
21133
21134         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
21135         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
21136         Prompted by an exchange with Gilles Espinasse.
21137
21138 2010-04-26  Jim Meyering  <meyering@redhat.com>
21139
21140         git-version-gen: aesthetic tweak
21141         * build-aux/git-version-gen: Use "$nl" rather than a literal,
21142         so that the command remains on a single line.
21143
21144 2010-04-26  Eric Blake  <eblake@redhat.com>
21145
21146         git-version-gen: allow use on EBCDIC hosts
21147         * build-aux/git-version-gen (dirty): Use literal rather than tying
21148         ourselves to ascii.
21149         Reported by Steve Goetze.
21150
21151 2010-04-25  Bruno Haible  <bruno@clisp.org>
21152
21153         netdb: Add support for GNULIB_POSIXCHECK.
21154         * lib/netdb.in.h: Include warn-on-use.h.
21155         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
21156         functions are used when GNULIB_POSIXCHECK is defined and the
21157         getaddrinfo module is not in use.
21158         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
21159         freeaddrinfo, gai_strerror, getnameinfo are declared.
21160         * modules/netdb (Depends-on): Add warn-on-use.
21161         (Makefile.am): Include warn-on-use.h in netdb.h.
21162
21163 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
21164
21165         build: avoid "make check" failure without .git/ directory
21166         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
21167         there is no .git/ directory.
21168
21169 2010-04-25  Bruno Haible  <bruno@clisp.org>
21170
21171         ptsname: Fix misuse of ttyname_r.
21172         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
21173         of errno.
21174
21175 2010-04-25  Bruno Haible  <bruno@clisp.org>
21176
21177         ttyname_r: Make it work on Solaris 10.
21178         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
21179         if the system function has the POSIX declaration. Test whether the
21180         function fails if the buffer is less than 128 bytes large.
21181         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
21182         system's ttyname_r function. Provide a reasonably large buffer.
21183         * modules/ttyname_r (Depends-on): Add extensions.
21184         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
21185
21186 2010-04-25  Bruno Haible  <bruno@clisp.org>
21187
21188         Use the 'extensions' module for some more functions on Solaris.
21189         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
21190         module.
21191         * doc/posix-functions/ctime_r.texi: Likewise.
21192         * doc/posix-functions/getgrgid_r.texi: Likewise.
21193         * doc/posix-functions/getgrnam_r.texi: Likewise.
21194         * doc/posix-functions/getpwnam_r.texi: Likewise.
21195         * doc/posix-functions/getpwuid_r.texi: Likewise.
21196         * doc/posix-functions/readdir_r.texi: Likewise.
21197         * doc/posix-functions/sigwait.texi: Likewise.
21198         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
21199         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
21200
21201 2010-04-25  Bruno Haible  <bruno@clisp.org>
21202
21203         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
21204         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
21205         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
21206         * lib/ttyname_r.c: Include <limits.h>.
21207         (ttyname_r): Define using the system's ttyname_r function, if it exists
21208         and not on Solaris.
21209         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
21210         set.
21211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
21212         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
21213         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
21214         Reported by Simon Josefsson.
21215
21216 2010-04-25  Bruno Haible  <bruno@clisp.org>
21217
21218         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
21219         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
21220         * doc/posix-functions/ctime_r.texi: Likewise.
21221         * doc/posix-functions/getgrgid_r.texi: Likewise.
21222         * doc/posix-functions/getgrnam_r.texi: Likewise.
21223         * doc/posix-functions/getlogin_r.texi: Likewise.
21224         * doc/posix-functions/getpwnam_r.texi: Likewise.
21225         * doc/posix-functions/getpwuid_r.texi: Likewise.
21226         * doc/posix-functions/readdir_r.texi: Likewise.
21227         * doc/posix-functions/sigwait.texi: Likewise.
21228         * doc/posix-functions/ttyname_r.texi: Likewise.
21229         Reported by Simon Josefsson.
21230
21231 2010-04-25  Bruno Haible  <bruno@clisp.org>
21232
21233         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
21234         * gnulib-tool (func_usage): Document that --with-*-tests options apply
21235         also to --create-testdir.
21236         (func_acceptable): Don't consider the status of *-tests modules here.
21237         (func_modules_transitive_closure): Consider it here, before including a
21238         test module.
21239         (func_import, func_create_testdir): Set inc_all_direct_tests,
21240         inc_all_indirect_tests.
21241         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
21242         --create-testdir and --create-megatestdir.
21243
21244 2010-04-25  Bruno Haible  <bruno@clisp.org>
21245
21246         gnulib-tool: Add --without-*-tests options.
21247         * gnulib-tool (func_usage): Document the --without-*-tests options.
21248         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
21249         excl_unportable_tests): New variables.
21250         Fail if they are specified with --import or --update.
21251         (func_acceptable): Respect the excl_*_tests variables.
21252         (func_import): Set the excl_*_tests variables to empty.
21253
21254 2010-04-25  Simon Josefsson  <simon@josefsson.org>
21255             Bruno Haible  <bruno@clisp.org>
21256
21257         Work around a MacOS X 10.4 bug with openpty.
21258         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21259         * tests/test-openpty.c (main): Close the master side explicitly.
21260
21261 2010-04-25  Bruno Haible  <bruno@clisp.org>
21262
21263         strnlen: Fix a C++ test error on MacOS X and Solaris.
21264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
21265         the function is not declared.
21266         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
21267         Simon Josefsson.
21268
21269 2010-04-24  Bruno Haible  <bruno@clisp.org>
21270
21271         Avoid a gcc warning.
21272         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
21273         of correct type for %08lx directive.
21274         Reported by Eric Blake.
21275
21276 2010-04-24  Bruno Haible  <bruno@clisp.org>
21277
21278         vasnprintf: Correct errno value in case of out-of-memory.
21279         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
21280         or sprintf. Use the errno value from SNPRINTF or sprintf.
21281         Reported by Ian Beckwith <ianb@erislabs.net>.
21282
21283 2010-04-24  Bruno Haible  <bruno@clisp.org>
21284
21285         ansi-c++-opt: Find correct compiler when cross-compiling.
21286         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
21287         AC_CHECK_PROGS.
21288         Reported by Simon Josefsson.
21289
21290 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
21291
21292         vc-list-files: Add support for subversion
21293         * build-aux/vc-list-files: Use "svn list" to generate the list of
21294         files controlled by subversion.
21295
21296 2010-04-23  Jim Meyering  <meyering@redhat.com>
21297
21298         vc-list-files tests: convert to use init.sh
21299         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
21300         path_prepend_.
21301         Use Exit, not exit.
21302         Use skip_ rather than open coding it.
21303         Remove trap set-up and compare definitions.
21304         * tests/test-vc-list-files-git.sh: Likewise.
21305         * modules/vc-list-files-tests (Files): Add tests/init.sh.
21306
21307 2010-04-22  Simon Josefsson  <simon@josefsson.org>
21308
21309         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
21310         backup files.
21311
21312 2010-04-21  Simon Josefsson  <simon@josefsson.org>
21313
21314         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
21315
21316 2010-04-20  Eric Blake  <eblake@redhat.com>
21317
21318         tests: be robust to ignored SIGPIPE
21319         * tests/test-select-in.sh: Consume all output.
21320         * tests/test-lseek.sh: Check correct exit status, while avoiding
21321         EPIPE.
21322
21323 2010-04-20  Simon Josefsson  <simon@josefsson.org>
21324             Bruno Haible  <bruno@clisp.org>
21325
21326         visibility: Don't use -fvisibility if it leads to a warning.
21327         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
21328         yes, don't pretend that visibility works if it leads to a warning.
21329         Reported by Mike Gran <spk121@yahoo.com>.
21330
21331 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
21332
21333         * build-aux/bootstrap: Use "git -h" for testing for supported options
21334         instead of "git --help".  The short-form option only shows a summary,
21335         and doesn't layout the full man page.  Grep for the full option name
21336         in the summary, too.
21337
21338 2010-04-19  Bruno Haible  <bruno@clisp.org>
21339
21340         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
21341         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
21342         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
21343         mention of RELOCATABLE_STRIP.
21344         Reported by Sylvain Beucler <beuc@beuc.net>.
21345
21346 2010-04-19  Bruno Haible  <bruno@clisp.org>
21347
21348         * lib/diffseq.h: Fix typo in comment.
21349         Reported by Eric Blake.
21350
21351 2010-04-19  Bruno Haible  <bruno@clisp.org>
21352
21353         ioctl: Move autoconf macro to a .m4 file.
21354         * m4/ioctl.m4: New file, extracted from modules/ioctl.
21355         * modules/ioctl (Files): Add it.
21356         (configure.ac): Simply invoke gl_FUNC_IOCTL.
21357         Reported by Ian Beckwith <ianb@erislabs.net>.
21358
21359 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
21360             Bruno Haible  <bruno@clisp.org>
21361
21362         diffseq: Accommodate use-case with abstract arrays.
21363         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
21364         is not defined.
21365         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
21366         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
21367
21368 2010-04-18  Bruno Haible  <bruno@clisp.org>
21369
21370         * doc/posix-headers/stdbool.texi: More precise wording.
21371
21372 2010-04-17  Jim Meyering  <meyering@redhat.com>
21373
21374         maint.mk: use gnu-style indentation in an embedded perl script
21375         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
21376         Rename variable: s/two/last_two_bytes/
21377
21378 2010-04-16  Eric Blake  <eblake@redhat.com>
21379
21380         test-stdbool: skip test that fails with Solaris CC
21381         * tests/test-stdbool.c (f): Skip test that causes compilation
21382         error under buggy C++ compiler.
21383         * lib/stdbool.in.h: Document the limitation.
21384         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
21385
21386         setenv: allow compilation with C++
21387         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
21388         register keyword.
21389
21390         stdint: allow test to pass with C++
21391         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
21392
21393         getopt: allow compilation with C++
21394         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
21395         struct.
21396         * lib/getopt.c (_getopt_internal_r): Use correct type.
21397         Reported by Dagobert Michelson, via Joel E. Denny.
21398
21399 2010-04-16  Bruno Haible  <bruno@clisp.org>
21400
21401         Override netdb.h always.
21402         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
21403         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
21404         Reported by Ludovic Courtès <ludo@gnu.org>.
21405
21406 2010-04-15  Bruno Haible  <bruno@clisp.org>
21407
21408         openpty: Fix mistake from 2010-03-21.
21409         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
21410         Reported by Simon Josefsson.
21411
21412 2010-04-15  Eric Blake  <eblake@redhat.com>
21413
21414         test-forkpty: fix expected signature
21415         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
21416         Reported by Simon Josefsson.
21417
21418 2010-04-15  Jim Meyering  <meyering@redhat.com>
21419
21420         maint.mk: texinfo_suffix_re_: correct the default regexp
21421         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
21422
21423         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
21424         make it configurable via texinfo_suffix_re_.
21425
21426 2010-04-14  Eric Blake  <eblake@redhat.com>
21427
21428         strtok_r: relax license to LGPLv2+
21429         * modules/strtok_r (License): Relax license.
21430         Reported by Matthias Bolte.
21431
21432 2010-04-14  Simon Josefsson  <simon@josefsson.org>
21433
21434         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
21435         version 1.4.4 by default instead of requiring the libgcrypt
21436         version used during build.  This makes it possible to use the
21437         application with older but still binary compatible libgcrypt
21438         versions.
21439
21440 2010-04-13  Eric Blake  <eblake@redhat.com>
21441
21442         getopt-gnu: match recent glibc fixes and posix ruling
21443         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
21444         '+' handling, when requesting extensions.
21445         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
21446         'W;' handling.
21447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
21448         * doc/posix-functions/getopt.texi (getopt): Document this.
21449         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21450         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21451         Likewise.
21452
21453         getopt: merge bug fixes from glibc
21454         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
21455         diagnostics.  Honor '+:' correctly.  Reject ';'.
21456
21457         getopt-posix: detect MacOS bug
21458         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
21459         optind when missing a required argument.
21460         * doc/posix-functions/getopt.texi (getopt): Document the bug.
21461         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21462         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21463         Likewise.
21464
21465         getopt-posix: avoid spurious failure on Solaris
21466         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
21467         an indicator that setting optind=1 is sufficient for reset.
21468
21469         getopt-posix: avoid spurious failure on FreeBSD
21470         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
21471         in POSIX mode, since the m4 test uses it.
21472
21473         gnulib-tool: silence warning on BSD sh
21474         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
21475
21476 2010-04-13  Jim Meyering  <meyering@redhat.com>
21477
21478         doc: users.txt: GNU patch now uses gnulib
21479         * users.txt: Add patch.
21480
21481 2010-04-12  Jim Meyering  <meyering@redhat.com>
21482
21483         maint.mk: generate more concise timing data for syntax-check rules
21484         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
21485         " done" from each line that reports a syntax-check test duration.
21486
21487 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
21488
21489         git-version-gen: use "git update-index..." rather than "git status"
21490         * build-aux/git-version-gen: Use git update-index --refresh, not
21491         "git status".  With some versions of git, "git status" would fail
21492         to update the index and result in an unwarranted "-dirty" suffix.
21493
21494 2010-04-11  Jim Meyering  <meyering@redhat.com>
21495
21496         openat: correct formatting (no semantic change)
21497         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
21498         Suggested by Bruno Haible.
21499
21500 2010-04-11  Bruno Haible  <bruno@clisp.org>
21501
21502         Stricter declaration checking in testdirs.
21503         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21504         If for_tests is true, augment AM_CPPFLAGS to define
21505         GNULIB_STRICT_CHECKING.
21506         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
21507         GNULIB_STRICT_CHECKING is defined, verify that the function is
21508         declared.
21509
21510 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
21511             Bruno Haible  <bruno@clisp.org>
21512
21513         libunistring: Improve configure output.
21514         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21515         Don't say "consider installing GNU libunistring" when checking again
21516         with libiconv.
21517
21518 2010-04-11  Bruno Haible  <bruno@clisp.org>
21519
21520         libunistring: Correct value of $LTLIBUNISTRING.
21521         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21522         correct the value of $LTLIBUNISTRING.
21523
21524 2010-04-11  Bruno Haible  <bruno@clisp.org>
21525
21526         havelib: Add static libraries to LIBS in the right order.
21527         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21528         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21529
21530 2010-04-11  Bruno Haible  <bruno@clisp.org>
21531
21532         libunistring: Detect libunistring also when it depends on libiconv.
21533         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21534         the second AC_LIB_HAVE_LINKFLAGS invocation.
21535
21536 2010-04-11  James Youngman  <jay@gnu.org>
21537
21538         close-stream: declare local scalars to be "const"
21539         * lib/close-stream.c (close_stream): Make boolean variables const
21540         to document the fact that we set but do not change them.
21541
21542 2010-04-11  Bruno Haible  <bruno@clisp.org>
21543
21544         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21545
21546 2010-04-11  Jim Meyering  <meyering@redhat.com>
21547
21548         maint.mk: don't include dist-check.mk
21549         * top/maint.mk: Remove bogus include directive.
21550
21551         maint.mk: improve empty-line-at-EOF check
21552         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21553         solution, rather than tail+Perl-based one.  The latter would read
21554         a few kilobytes from the end of each file, and did not handle empty
21555         files properly.
21556
21557         maint.mk: print the elapsed time for each syntax-check rule
21558         * top/maint.mk (sc_m_rules_): Save start time in a file.
21559         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21560         (local-check): Interpose the .z rules
21561
21562 2010-04-11  Jim Meyering  <meyering@redhat.com>
21563
21564         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21565         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21566         empty file with one that ends in an empty line.
21567
21568 2010-04-10  Bruno Haible  <bruno@clisp.org>
21569
21570         mkdir: Make it work on mingw64.
21571         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21572         * lib/mkdir.c: Update comment.
21573         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21574
21575 2010-04-10  Bruno Haible  <bruno@clisp.org>
21576
21577         Don't override improved macro from newer autoconf.
21578         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21579         autoconf >= 2.62.
21580         Reported by Joel E. Denny <jdenny@clemson.edu>.
21581
21582 2010-04-10  Jim Meyering  <meyering@redhat.com>
21583
21584         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21585         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21586
21587         maint.mk: correct a diagnostic
21588         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21589         in diagnostic; now use $prohibit.
21590
21591 2010-04-10  Bruno Haible  <address@hidden>
21592
21593         fchownat: Fix a C++ test error on Solaris 8.
21594         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21595         the function does not exist.
21596
21597 2010-04-10  Bruno Haible  <bruno@clisp.org>
21598
21599         vasnprintf: Add more tests.
21600         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21601         (test_function): Test converting an invalid wide string.
21602
21603         vasnprintf: Correct handling of unconvertible wide string arguments.
21604         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21605         VASNPRINTF.
21606         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21607         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21608         smaller than the expected maximum need for the directive. Set errno to
21609         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21610         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21612         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21613         * modules/vasnprintf (Files): Add m4/printf.m4.
21614         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21615
21616 2010-04-10  Bruno Haible  <bruno@clisp.org>
21617
21618         vasnprintf: Fix crash in %ls directive.
21619         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21620         string is passed as argument to %ls, with no precision and no width.
21621         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21622
21623 2010-04-10  Bruno Haible  <bruno@clisp.org>
21624
21625         vasnprintf: Fix multiple test failures on mingw.
21626         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21627         _snprintf, or snwprintf, not _snwprintf.
21628
21629 2010-04-10  Bruno Haible  <bruno@clisp.org>
21630
21631         write: Fix a C++ test error on mingw.
21632         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21633
21634 2010-04-10  Bruno Haible  <bruno@clisp.org>
21635
21636         vasnprintf test: Reduce code duplication.
21637         * tests/test-vasnprintf.c (test_function): New function, extracted from
21638         test_vasnprintf.
21639         (test_vasnprintf, test_asnprintf): Invoke it.
21640
21641 2010-04-10  Bruno Haible  <bruno@clisp.org>
21642
21643         strnlen: Fix warning in C++ mode on MacOS X.
21644         * lib/string.in.h (strnlen): Use the modern idiom.
21645         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21646         defining strnlen as a macro already in <config.h>.
21647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21648         REPLACE_STRNLEN.
21649         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21650         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21651
21652 2010-04-08  James Youngman  <jay@gnu.org>
21653
21654         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21655         the example.
21656
21657 2010-04-09  Jim Meyering  <meyering@redhat.com>
21658
21659         maint.mk: print better diagnostic when there is no $(_hv_file)
21660         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21661         announce that when $(_hv_file) (aka help-version) does not exist.
21662
21663         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21664         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21665         not try to interpret its random input bytes.  Jarno Rajahalme reported
21666         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21667         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21668         (mktempd_): Likewise, just in case.
21669
21670         ftruncate: add two years to projected module removal date: 2012
21671         * m4/ftruncate.m4: Adjust comments.
21672
21673         ftruncate: mark module as obsolete; even MinGW provides it, now
21674         * modules/ftruncate (Status): Obsolete.
21675         (Notice): Say that.
21676         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21677         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21678
21679 2010-04-08  Bruno Haible  <bruno@clisp.org>
21680
21681         Fix side effects from tests-related modules.
21682         * modules/dprintf-posix (Comment): New section.
21683         * modules/fprintf-posix (Comment): Likewise.
21684         * modules/obstack-printf-posix (Comment): Likewise.
21685         * modules/printf-posix (Comment): Likewise.
21686         * modules/snprintf-posix (Comment): Likewise.
21687         * modules/sprintf-posix (Comment): Likewise.
21688         * modules/vasnprintf-posix (Comment): Likewise.
21689         * modules/vasprintf-posix (Comment): Likewise.
21690         * modules/vdprintf-posix (Comment): Likewise.
21691         * modules/vfprintf-posix (Comment): Likewise.
21692         * modules/vprintf-posix (Comment): Likewise.
21693         * modules/vsnprintf-posix (Comment): Likewise.
21694         * modules/vsprintf-posix (Comment): Likewise.
21695         * modules/xprintf-posix (Comment): Likewise.
21696         * modules/xvasprintf-posix (Comment): Likewise.
21697         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21698         * modules/floorf-tests (Depends-on): Likewise.
21699         * modules/round-tests (Depends-on): Likewise.
21700         * modules/roundf-tests (Depends-on): Likewise.
21701         * modules/trunc-tests (Depends-on): Likewise.
21702         * modules/truncf-tests (Depends-on): Likewise.
21703         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21704         'fprintf-posix' module is not present.
21705         * tests/test-floorf2.c (check): Likewise.
21706         * tests/test-trunc2.c (check): Likewise.
21707         * tests/test-truncf2.c (check): Likewise.
21708         * tests/test-round2.c (equal): Likewise.
21709         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21710
21711 2010-04-07  Karl Berry  <karl@gnu.org>
21712
21713         * config/srclist.txt,
21714         * config/srclistvars.sh,
21715         * config/srclist-update: doc fixes.
21716
21717 2010-04-07  Jim Meyering  <meyering@redhat.com>
21718
21719         maint.mk: add a PATH crosschecking syntax-check rule
21720         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21721         Useful if you use a test like the one in help-version (coreutils,
21722         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21723         printed by prog --version.
21724
21725 2010-04-06  Bruno Haible  <bruno@clisp.org>
21726
21727         Fix link error on mingw.
21728         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21729         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21730
21731 2010-04-06  Bruno Haible  <bruno@clisp.org>
21732
21733         Assume rmdir exists.
21734         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21735
21736 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21737
21738         doc: update users.txt
21739         * users.txt: Add gcal.
21740
21741 2010-04-06  Jim Meyering  <meyering@redhat.com>
21742
21743         init.sh: simply unset TMPDIR rather than risking env -i
21744         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21745         although it probably works fine on all Unix-based systems, some
21746         systems (Cygwin?) cannot tolerate a totally cleared environment.
21747         Suggestion from Eric Blake.
21748
21749 2010-04-06  Jim Meyering  <meyering@redhat.com>
21750
21751         init.sh: portability fix: use env's POSIX-specified -i option not -u
21752         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21753         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21754
21755 2010-04-05  Bruno Haible  <bruno@clisp.org>
21756
21757         btowc: Work around Cygwin 1.7.2 bug.
21758         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21759         does not map NUL to 0.
21760         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21761
21762 2010-04-05  Bruno Haible  <bruno@clisp.org>
21763
21764         Make the multithread modules work on Cygwin 1.7.2.
21765         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21766         imported symbols can be declared weak, so that it returns "no" on
21767         Cygwin 1.7.2.
21768
21769 2010-04-05  Bruno Haible  <bruno@clisp.org>
21770
21771         Use the module 'strncat'.
21772         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21773
21774         Tests for module 'strncat'.
21775         * modules/strncat-tests: New file.
21776         * tests/test-strncat.c: New file.
21777
21778         New module 'strncat'.
21779         * lib/string.in.h (strncat): New declaration.
21780         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21781         * m4/strncat.m4: New file, based on m4/memchr.m4.
21782         * modules/strncat: New file.
21783         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21784         is declared.
21785         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21786         REPLACE_STRNCAT.
21787         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21788         REPLACE_STRNCAT.
21789         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21790         module.
21791         * tests/test-string-c++.cc: Check signature of strncat.
21792
21793 2010-04-05  Jim Meyering  <meyering@redhat.com>
21794
21795         xstrtoumax-tests: convert to use init.sh
21796         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21797         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21798         Use Exit, not exit.
21799         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21800
21801         xstrtoimax-tests: convert to use init.sh
21802         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21803         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21804         Use Exit, not exit.
21805         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21806
21807 2010-04-05  Bruno Haible  <bruno@clisp.org>
21808
21809         sys_socket: Avoid #define replacements in C++ mode.
21810         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21811         warning to the function if possible, rather than #defining the symbol
21812         to a dysfunctional alias.
21813
21814 2010-04-05  Bruno Haible  <bruno@clisp.org>
21815
21816         fseeko: Fix C++ test error on mingw.
21817         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21818         gl_FUNC_FSEEKO.
21819         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21820         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21821         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21822         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21823
21824 2010-04-05  Bruno Haible  <bruno@clisp.org>
21825
21826         duplocale: Improve test output.
21827         * tests/test-duplocale.c (main): Print reason for skipped test.
21828
21829 2010-04-05  Bruno Haible  <bruno@clisp.org>
21830
21831         Assume rmdir exists.
21832         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21833         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21834
21835 2010-04-05  Bruno Haible  <bruno@clisp.org>
21836
21837         Fix link error on Solaris 8 with cc.
21838         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21839
21840 2010-04-05  Bruno Haible  <bruno@clisp.org>
21841
21842         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21843         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21844
21845 2010-04-05  Bruno Haible  <bruno@clisp.org>
21846
21847         vasprintf: Update documentation.
21848         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21849
21850 2010-04-05  Bruno Haible  <bruno@clisp.org>
21851
21852         ptsname: Improve test.
21853         * tests/test-ptsname.c (main): Also try the various master names of BSD
21854         systems.
21855
21856 2010-04-05  Bruno Haible  <bruno@clisp.org>
21857
21858         memchr: Avoid a possible C++ test error.
21859         * lib/string.in.h (memchr): Provide declaration if function is missing.
21860         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21861         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21863         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21864
21865 2010-04-05  Bruno Haible  <bruno@clisp.org>
21866
21867         strtok_r: Improve idiom.
21868         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21869         AC_LIBOBJ is used.
21870
21871 2010-04-05  Bruno Haible  <bruno@clisp.org>
21872
21873         strdup: Improve idiom.
21874         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21875         AC_LIBOBJ is used.
21876         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21877         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21878         when AC_LIBOBJ is used.
21879
21880 2010-04-05  Bruno Haible  <bruno@clisp.org>
21881
21882         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21883         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21884         don't set REPLACE_MBSINIT to 1.
21885         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21886         don't set REPLACE_MBRTOWC to 1.
21887         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21888         exist, don't set REPLACE_MBSRTOWCS to 1.
21889         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21890         exist, don't set REPLACE_MBSNRTOWCS to 1.
21891         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21892         don't set REPLACE_WCRTOMB to 1.
21893         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21894         exist, don't set REPLACE_WCSRTOMBS to 1.
21895         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21896         exist, don't set REPLACE_WCSNRTOMBS to 1.
21897
21898 2010-04-05  Bruno Haible  <bruno@clisp.org>
21899
21900         ldexpl: Improve idiom.
21901         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21902         make sure to set HAVE_DECL_LDEXPL to 0.
21903
21904 2010-04-05  Jim Meyering  <meyering@redhat.com>
21905
21906         xstrtol-tests: convert to use init.sh
21907         * modules/xstrtol-tests (Files): Add tests/init.sh.
21908         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21909         Use Exit, not exit.
21910         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21911
21912         atexit-tests: convert to use init.sh
21913         * modules/atexit-tests (Files): Add tests/init.sh.
21914         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21915         Use Exit, not exit.
21916         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21917
21918         init.sh: fix typo
21919         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21920
21921         init.sh: make it easier for a test script to write to the tty, ...
21922         when using automake's parallel-tests mode.
21923         * tests/init.sh (stderr_fileno_): Define overridable variable.
21924         (warn_): New function, to use it.
21925         (fail_, skip_, framework_failure_): Use warn_.
21926
21927 2010-04-04  Bruno Haible  <bruno@clisp.org>
21928
21929         btowc: Avoid warning.
21930         * lib/btowc.c: Include <stdlib.h>.
21931         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21932
21933 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21934             Bruno Haible  <bruno@clisp.org>
21935
21936         wchar: Port to NetBSD 1.5.
21937         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21938         * lib/wctype.in.h (WEOF): Likewise.
21939
21940 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21941             Bruno Haible  <bruno@clisp.org>
21942
21943         Port extended stdio to NetBSD 1.5.
21944         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21945         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21946         older.
21947
21948 2010-04-04  Bruno Haible  <bruno@clisp.org>
21949
21950         string: Remove unused substitution.
21951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21952         HAVE_DECL_STRERROR.
21953         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21954
21955 2010-04-04  Bruno Haible  <bruno@clisp.org>
21956
21957         strtod: Avoid a possible C++ test error.
21958         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21959         set REPLACE_STRTOD.
21960
21961 2010-04-04  Bruno Haible  <bruno@clisp.org>
21962
21963         strerror: Update documentation.
21964         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21965
21966 2010-04-04  Bruno Haible  <bruno@clisp.org>
21967
21968         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21969         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21970         _GL_CXXALIAS_SYS_CAST.
21971
21972 2010-04-04  Bruno Haible  <bruno@clisp.org>
21973
21974         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21975         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21976         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21977         REPLACE_FREXPL to 1.
21978         * doc/posix-functions/frexpl.texi: Update documentation.
21979
21980 2010-04-04  Bruno Haible  <bruno@clisp.org>
21981
21982         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21983         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21984
21985 2010-04-04  Bruno Haible  <bruno@clisp.org>
21986
21987         Implement nanosleep for native Windows.
21988         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21989
21990 2010-04-04  Bruno Haible  <bruno@clisp.org>
21991
21992         math: Fix some C++ test errors on Solaris 8.
21993         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21994
21995 2010-04-04  Bruno Haible  <bruno@clisp.org>
21996
21997         math: Fix some C++ test errors on Cygwin.
21998         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21999         truncl): Provide declaration if the system does not have it.
22000         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
22001         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
22002         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
22003         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
22004         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
22005         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
22006         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
22007         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
22008         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
22009         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
22010         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
22011         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
22012         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
22013         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
22014         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
22015         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
22016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
22017         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22018         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22019         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
22020         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22021         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22022
22023 2010-04-04  Bruno Haible  <bruno@clisp.org>
22024
22025         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
22026         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22027         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22028         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
22029         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22030         * m4/isinf.m4 (gl_ISINF): Likewise.
22031         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22032
22033 2010-04-04  Bruno Haible  <bruno@clisp.org>
22034
22035         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
22036         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22037
22038 2010-04-04  Bruno Haible  <bruno@clisp.org>
22039
22040         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
22041         * modules/tmpfile (configure.ac): Update.
22042
22043         tmpfile: Fix C++ test error on mingw.
22044         * lib/stdio.in.h (tmpfile): New declaration.
22045         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
22046         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
22047         * modules/tmpfile (Depends-on): Add stdio.
22048         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
22049         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
22050         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
22051         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
22052         REPLACE_TMPFILE.
22053         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
22054
22055 2010-04-04  Bruno Haible  <bruno@clisp.org>
22056
22057         ioctl: Fix C++ test error on mingw.
22058         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
22059         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
22060         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
22061
22062 2010-04-03  Bruno Haible  <bruno@clisp.org>
22063
22064         wcwidth: Fix C++ test error on mingw.
22065         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
22066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
22067         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
22068
22069 2010-04-03  Bruno Haible  <bruno@clisp.org>
22070
22071         nanosleep: Fix C++ test error on mingw.
22072         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
22073         * lib/time.in.h (nanosleep): Use modern idiom.
22074         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
22075         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
22076         REPLACE_NANOSLEEP to 1.
22077         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
22078         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
22079
22080 2010-04-03  Bruno Haible  <bruno@clisp.org>
22081
22082         strptime: Fix C++ test error on mingw.
22083         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
22084         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
22085         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
22086         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
22087         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
22088         not REPLACE_STRPTIME.
22089         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
22090         REPLACE_STRPTIME.
22091
22092 2010-04-03  Bruno Haible  <bruno@clisp.org>
22093
22094         timegm: Fix C++ test error on mingw.
22095         * lib/time.in.h (timegm): Use modern idiom.
22096         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
22097         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
22098         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
22099         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
22100
22101 2010-04-03  Bruno Haible  <bruno@clisp.org>
22102
22103         timegm: Assume declaration if function exists.
22104         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
22105         if it exists. Don't clobber ac_cv_func_timegm.
22106
22107 2010-04-03  Bruno Haible  <bruno@clisp.org>
22108
22109         time_r: Fix C++ test error on mingw.
22110         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
22111         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
22112         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
22113         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
22114         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
22115
22116 2010-04-03  Bruno Haible  <bruno@clisp.org>
22117
22118         time_r: Minor updates.
22119         * modules/time_r (Description): Mention the provided functions.
22120         * lib/time_r.c: Don't include <string.h>.
22121         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
22122         * doc/posix-functions/localtime_r.texi: Likewise.
22123
22124 2010-04-03  Bruno Haible  <bruno@clisp.org>
22125
22126         time: Fix regression introduced on 2010-03-08.
22127         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
22128         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
22129
22130 2010-04-03  Jim Meyering  <meyering@redhat.com>
22131
22132         maint.mk: don't silently disable project-specific syntax-check rules
22133         * top/maint.mk (_prohibit_regexp): Define, to help people realize
22134         that they need to convert their project-specific syntax-check rules
22135         to use the new _sc_search_regexp.
22136
22137 2010-04-03  Bruno Haible  <bruno@clisp.org>
22138
22139         fchdir: Fix regression introduced on 2010-03-08.
22140         * lib/unistd.in.h (fchdir): Fix declaration.
22141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
22142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
22143         REPLACE_FCHDIR.
22144         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
22145         REPLACE_FCHDIR.
22146
22147 2010-04-03  Bruno Haible  <bruno@clisp.org>
22148
22149         getpagesize: Fix C++ test error on mingw.
22150         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
22151         system does not declare the function.
22152         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
22153         declared.
22154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22155         HAVE_DECL_GETPAGESIZE.
22156         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
22157
22158 2010-04-03  Bruno Haible  <bruno@clisp.org>
22159
22160         stdio: Make C++ tests work on mingw.
22161         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
22162         does not declare the function.
22163
22164 2010-04-03  Bruno Haible  <bruno@clisp.org>
22165
22166         ftello: Fix C++ test error on mingw.
22167         * lib/stdio.in.h (ftello): Use modern idiom.
22168         * lib/ftello.c (ftello): Renamed from rpl_ftello.
22169         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
22170         is missing and that it needs to be replaced.
22171         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
22172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
22173         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
22174
22175 2010-04-03  Bruno Haible  <bruno@clisp.org>
22176
22177         fseeko: Fix C++ test error on mingw.
22178         * lib/stdio.in.h (fseeko): Use modern idiom.
22179         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
22180         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
22181         is missing and that it needs to be replaced.
22182         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
22183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
22184         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
22185
22186 2010-04-03  Bruno Haible  <bruno@clisp.org>
22187
22188         mkstemp: Fix C++ test error on mingw.
22189         * lib/stdlib.in.h (mkstemp): Use modern idiom.
22190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
22191         function is missing and that it needs to be replaced.
22192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
22193         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
22194
22195 2010-04-03  Bruno Haible  <bruno@clisp.org>
22196
22197         stpncpy: Fix C++ test error on mingw.
22198         * lib/string.in.h (stpncpy): Use modern idiom.
22199         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
22200         function is missing and that it needs to be replaced.
22201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22202         REPLACE_STPNCPY.
22203         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
22204
22205 2010-04-03  Bruno Haible  <bruno@clisp.org>
22206
22207         sys_stat: Fix C++ test error on mingw.
22208         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
22209         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
22210
22211 2010-04-03  Bruno Haible  <bruno@clisp.org>
22212
22213         pty: Update doc.
22214         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
22215
22216 2010-04-03  Bruno Haible  <bruno@clisp.org>
22217
22218         unistd: Fix C++ test error on mingw.
22219         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
22220
22221 2010-04-03  Bruno Haible  <bruno@clisp.org>
22222
22223         Update doc regarding mingw.
22224         * doc/glibc-functions/openpty.texi: Update regarding mingw.
22225         * doc/glibc-functions/login_tty.texi: Likewise.
22226         * doc/glibc-functions/forkpty.texi: Likewise.
22227
22228 2010-04-03  Bruno Haible  <bruno@clisp.org>
22229
22230         stdlib: Avoid compilation failure of c-strtold on mingw.
22231         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22232
22233 2010-04-03  Bruno Haible  <bruno@clisp.org>
22234
22235         locale: Make C++ tests work on Cygwin and mingw.
22236         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
22237         cannot provide the function.
22238         Reported by Simon Josefsson.
22239
22240 2010-04-03  Bruno Haible  <bruno@clisp.org>
22241
22242         localename: Port to MacOS X 10.6.
22243         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
22244         memory layout of the locales in MacOS X 10.6 as well.
22245         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
22246
22247 2010-04-02  Bruno Haible  <bruno@clisp.org>
22248
22249         gnulib-tool: Ensure that long-running tests are executed last.
22250         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
22251         running tests after the one for the other tests.
22252
22253 2010-04-02  Bruno Haible  <bruno@clisp.org>
22254
22255         gnulib-tool: Ensure the tests in the main directory are executed first.
22256         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22257         start with the current directory.
22258
22259 2010-04-02  Bruno Haible  <bruno@clisp.org>
22260
22261         Tests for module 'havelib', moved here from GNU gettext.
22262         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
22263         modifications.
22264         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
22265         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
22266         with modifications.
22267         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
22268         modifications.
22269         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
22270         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
22271         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
22272         with modifications.
22273         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
22274         with modifications.
22275         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
22276         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
22277         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
22278         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
22279         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
22280         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
22281         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
22282         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
22283         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
22284         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
22285         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
22286         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
22287         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
22288         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
22289         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
22290         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
22291         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
22292         with modifications.
22293         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
22294         with modifications.
22295         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
22296         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
22297         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
22298         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
22299         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
22300         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
22301         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
22302         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
22303         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
22304         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
22305         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
22306         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
22307         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
22308         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
22309         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
22310         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
22311         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
22312         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
22313         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
22314         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
22315         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
22316         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
22317         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
22318         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
22319         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
22320         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
22321         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
22322         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
22323         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
22324         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
22325         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
22326         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
22327         * tests/havelib/rpathx/rpathx.c: New file, from
22328         gettext/autoconf-lib-link.
22329         * tests/havelib/rpathx/Makefile.am: New file, from
22330         gettext/autoconf-lib-link.
22331         * tests/havelib/rpathx/configure.ac: New file, from
22332         gettext/autoconf-lib-link with modifications.
22333         * tests/havelib/rpathy/rpathy.c: New file, from
22334         gettext/autoconf-lib-link.
22335         * tests/havelib/rpathy/Makefile.am: New file, from
22336         gettext/autoconf-lib-link.
22337         * tests/havelib/rpathy/configure.ac: New file, from
22338         gettext/autoconf-lib-link with modifications.
22339         * tests/havelib/rpathz/rpathz.c: New file, from
22340         gettext/autoconf-lib-link.
22341         * tests/havelib/rpathz/Makefile.am: New file, from
22342         gettext/autoconf-lib-link.
22343         * tests/havelib/rpathz/configure.ac: New file, from
22344         gettext/autoconf-lib-link with modifications.
22345         * tests/havelib/rpathlx/usex.c: New file, from
22346         gettext/autoconf-lib-link.
22347         * tests/havelib/rpathlx/Makefile.am: New file, from
22348         gettext/autoconf-lib-link.
22349         * tests/havelib/rpathlx/configure.ac: New file, from
22350         gettext/autoconf-lib-link with modifications.
22351         * tests/havelib/rpathly/usey.c: New file, from
22352         gettext/autoconf-lib-link.
22353         * tests/havelib/rpathly/Makefile.am: New file, from
22354         gettext/autoconf-lib-link.
22355         * tests/havelib/rpathly/configure.ac: New file, from
22356         gettext/autoconf-lib-link with modifications.
22357         * tests/havelib/rpathlz/usez.c: New file, from
22358         gettext/autoconf-lib-link.
22359         * tests/havelib/rpathlz/Makefile.am: New file, from
22360         gettext/autoconf-lib-link.
22361         * tests/havelib/rpathlz/configure.ac: New file, from
22362         gettext/autoconf-lib-link with modifications.
22363         * tests/havelib/rpathlyx/usey.c: New file, from
22364         gettext/autoconf-lib-link.
22365         * tests/havelib/rpathlyx/Makefile.am: New file, from
22366         gettext/autoconf-lib-link.
22367         * tests/havelib/rpathlyx/configure.ac: New file, from
22368         gettext/autoconf-lib-link with modifications.
22369         * tests/havelib/rpathlzyx/usez.c: New file, from
22370         gettext/autoconf-lib-link.
22371         * tests/havelib/rpathlzyx/Makefile.am: New file, from
22372         gettext/autoconf-lib-link.
22373         * tests/havelib/rpathlzyx/configure.ac: New file, from
22374         gettext/autoconf-lib-link with modifications.
22375         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
22376         with modifications.
22377
22378 2010-04-02  Bruno Haible  <bruno@clisp.org>
22379
22380         gnulib-tool: Create distributed built sources also for the tests.
22381         * gnulib-tool (func_create_testdir): Also generate distributed built
22382         sources in the tests directory.
22383
22384 2010-04-02  Bruno Haible  <bruno@clisp.org>
22385
22386         gnulib-tool: Obey user's environment variables.
22387         * gnulib-tool (func_create_testdir): When creating built sources,
22388         respect the environment variables for autoconf, automake, etc. given by
22389         the user.
22390
22391 2010-04-02  Bruno Haible  <bruno@clisp.org>
22392
22393         gnulib-tool: Provide the value of --m4-base to modules.
22394         * gnulib-tool (func_import, func_create_testdir): Emit a definition
22395         of gl_m4_base.
22396
22397 2010-04-02  Eric Blake  <eblake@redhat.com>
22398
22399         maint.mk: fix some fallout
22400         * NEWS: Document the incompatible change, and its effect on cfg.mk.
22401         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
22402
22403 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22404
22405         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
22406         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
22407         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
22408         (sc_cast_of_x_alloc_return_value): Likewise.
22409         (sc_cast_of_alloca_return_value): Likewise.
22410         (sc_space_tab): Likewise.
22411         (sc_prohibit_atoi_atof): Likewise.
22412         (sc_prohibit_magic_number_exit): Likewise.
22413         (sc_error_exit_success): Likewise.
22414         (sc_file_system): Likewise.
22415         (sc_prohibit_have_config_h): Likewise.
22416         (sc_require_config_h): Likewise.
22417         (sc_prohibit_HAVE_MBRTOWC): Likewise.
22418         (sc_obsolete_symbols): Likewise.
22419         (sc_changelog): Likewise.
22420         (sc_program_name): Likewise.
22421         (sc_the_the): Likewise.
22422         (sc_trailing_blank): Likewise.
22423         (sc_two_space_separator_in_usage): Likewise.
22424         (sc_useless_cpp_parens): Likewise.
22425         (sc_GPL_version): Likewise.
22426         (sc_GFDL_version): Likewise.
22427         (sc_texinfo_acronym): Likewise.
22428         (sc_prohibit_cvs_keyword): Likewise.
22429         (sc_prohibit_stat_st_blocks): Likewise.
22430         (sc_prohibit_S_IS_definition): Likewise.
22431         (sc_redundant_const): Likewise.
22432         (sc_makefile_TAB_only_indentation): Likewise.
22433         (sc_m4_quote_check): Likewise.
22434         (sc_makefile_path_separator_check): Likewise.
22435         (sc_copyright_check): Likewise.
22436         (sc_Wundef_boolean): Likewise.
22437         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22438
22439         maint.mk: match 0 or more whitespace-before-function-call '('
22440         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
22441         that have zero or two-and-more spaces between the function name
22442         and the open parenthesis.
22443         (sc_error_message_warn_fatal): Likewise.
22444         (sc_error_message_uppercase): Likewise.
22445         (sc_error_message_period): Likewise.
22446
22447 2010-03-31  Eric Blake  <eblake@redhat.com>
22448
22449         maint.mk: check for [ as well as test
22450         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
22451         Based on a libvirt report by Matthias Bolte.
22452
22453         gnumakefile: don't squelch _version output
22454         * top/GNUmakefile (_version): Create one-shot dependency rather
22455         than using $(shell) when version must be regenerated.
22456         (_autoreconf): Run verbosely, by default.
22457
22458         sys_time: avoid compiler warnings
22459         * lib/sys_time.in.h (includes): Ensure gcc pragma is
22460         unconditional, fixing regression from 2010-03-29.
22461         Reported by Simon Josefsson.
22462
22463 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22464
22465         maint.mk: s/_header_without_use/_sc_header_without_use/
22466         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
22467         (sc_prohibit_assert_without_use): Use the new name.
22468         (sc_prohibit_close_stream_without_use): Likewise.
22469         (sc_prohibit_getopt_without_use): Likewise.
22470         (sc_prohibit_quotearg_without_use): Likewise.
22471         (sc_prohibit_quote_without_use): Likewise.
22472         (sc_prohibit_long_options_without_use): Likewise.
22473         (sc_prohibit_inttostr_without_use): Likewise.
22474         (sc_prohibit_ignore_value_without_use): Likewise.
22475         (sc_prohibit_error_without_use): Likewise.
22476         (sc_prohibit_xalloc_without_use): Likewise.
22477         (sc_prohibit_hash_without_use): Likewise.
22478         (sc_prohibit_hash_pjw_without_use): Likewise.
22479         (sc_prohibit_safe_read_without_use): Likewise.
22480         (sc_prohibit_argmatch_without_use): Likewise.
22481         (sc_prohibit_canonicalize_without_use): Likewise.
22482         (sc_prohibit_root_dev_ino_without_use): Likewise.
22483         (sc_prohibit_openat_without_use): Likewise.
22484         (sc_prohibit_c_ctype_without_use): Likewise.
22485         (sc_prohibit_signal_without_use): Likewise.
22486         (sc_prohibit_intprops_without_use): Likewise.
22487
22488 2010-03-30  Eric Blake  <eblake@redhat.com>
22489
22490         maint: improve module indicators
22491         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
22492         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
22493         columns, and avoid extra macro expansion.
22494
22495         fdopendir: work around FreeBSD bug
22496         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22497         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
22498         * modules/dirent (Makefile.am): Substitute it.
22499         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
22500         declaration.
22501         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
22502         fix.
22503         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22504
22505 2010-03-29  Bruno Haible  <bruno@clisp.org>
22506
22507         Emit #pragma system_header after the inclusion guard, not before.
22508         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
22509         guard that spans the entire file, not before. This enables an
22510         optimization in GCC's preprocessor.
22511         * lib/ctype.in.h: Likewise.
22512         * lib/dirent.in.h: Likewise.
22513         * lib/errno.in.h: Likewise.
22514         * lib/float.in.h: Likewise.
22515         * lib/getopt.in.h: Likewise.
22516         * lib/iconv.in.h: Likewise.
22517         * lib/langinfo.in.h: Likewise.
22518         * lib/locale.in.h: Likewise.
22519         * lib/math.in.h: Likewise.
22520         * lib/netdb.in.h: Likewise.
22521         * lib/netinet_in.in.h: Likewise.
22522         * lib/pty.in.h: Likewise.
22523         * lib/sched.in.h: Likewise.
22524         * lib/se-selinux.in.h: Likewise.
22525         * lib/search.in.h: Likewise.
22526         * lib/spawn.in.h: Likewise.
22527         * lib/stdarg.in.h: Likewise.
22528         * lib/stdint.in.h: Likewise.
22529         * lib/string.in.h: Likewise.
22530         * lib/strings.in.h: Likewise.
22531         * lib/sys_file.in.h: Likewise.
22532         * lib/sys_ioctl.in.h: Likewise.
22533         * lib/sys_time.in.h: Likewise.
22534         * lib/sys_times.in.h: Likewise.
22535         * lib/sys_utsname.in.h: Likewise.
22536         * lib/sys_wait.in.h: Likewise.
22537         * lib/sysexits.in.h: Likewise.
22538         * lib/wctype.in.h: Likewise.
22539
22540 2010-03-28  James Youngman  <jay@gnu.org>
22541
22542         save-cwd: don't leak a file descriptor when the caller execs.
22543         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22544         saved file descriptor.
22545         * modules/save-cwd (Depends-on): Depend on cloexec.
22546
22547 2010-03-29  Bruno Haible  <bruno@clisp.org>
22548
22549         Remove vestiges of fts-lgpl module.
22550         * lib/fts_.h: Assume GNULIB_FTS is 1.
22551         * lib/fts.c: Likewise.
22552         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22553
22554 2010-03-28  Bruno Haible  <bruno@clisp.org>
22555
22556         Fix definition of tests witness macro.
22557         * gnulib-tool (func_import): Fix definition of witness macro.
22558
22559 2010-03-28  Bruno Haible  <bruno@clisp.org>
22560
22561         Fix ioctl's protoype on glibc systems.
22562         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22563         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22564         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22565         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22566         signature. If not, arrange to replace the ioctl function.
22567         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22568         REPLACE_IOCTL.
22569         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22570         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22571         Reported by Ludovic Courtès <ludo@gnu.org>.
22572
22573 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22574
22575         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22576         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22577         made it so grep -r --include=GLOB* ... did not work.
22578
22579 2010-03-26  Jim Meyering  <meyering@redhat.com>
22580             Eric Blake  <eblake@redhat.com>
22581
22582         maint.mk: prohibit use of test's -o and -a operators
22583         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22584
22585 2010-03-28  Bruno Haible  <bruno@clisp.org>
22586
22587         Remove unused GNULIB_XYZ macro definitions.
22588         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22589         invocation.
22590
22591 2010-03-28  Bruno Haible  <bruno@clisp.org>
22592
22593         Mark privileged tests modules.
22594         * modules/idpriv-drop-tests (Status): New section.
22595         * modules/idpriv-droptemp-tests (Status): New section.
22596
22597 2010-03-28  Bruno Haible  <bruno@clisp.org>
22598
22599         Split C++ tests into separate tests modules.
22600         * modules/dirent-c++-tests: New file, extracted from
22601         modules/dirent-tests.
22602         * modules/dirent-tests: Depend on it.
22603         * modules/fcntl-h-c++-tests: New file, extracted from
22604         modules/fcntl-h-tests.
22605         * modules/fcntl-h-tests: Depend on it.
22606         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22607         * modules/glob-tests: Depend on it.
22608         * modules/iconv-h-c++-tests: New file, extracted from
22609         modules/iconv-h-tests.
22610         * modules/iconv-h-tests: Depend on it.
22611         * modules/langinfo-c++-tests: New file, extracted from
22612         modules/langinfo-tests.
22613         * modules/langinfo-tests: Depend on it.
22614         * modules/locale-c++-tests: New file, extracted from
22615         modules/locale-tests.
22616         * modules/locale-tests: Depend on it.
22617         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22618         * modules/math-tests: Depend on it.
22619         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22620         * modules/pty-tests: Depend on it.
22621         * modules/search-c++-tests: New file, extracted from
22622         modules/search-tests.
22623         * modules/search-tests: Depend on it.
22624         * modules/signal-c++-tests: New file, extracted from
22625         modules/signal-tests.
22626         * modules/signal-tests: Depend on it.
22627         * modules/spawn-c++-tests: New file, extracted from
22628         modules/spawn-tests.
22629         * modules/spawn-tests: Depend on it.
22630         * modules/stdio-c++-tests: New file, extracted from
22631         modules/stdio-tests.
22632         * modules/stdio-tests: Depend on it.
22633         * modules/stdlib-c++-tests: New file, extracted from
22634         modules/stdlib-tests.
22635         * modules/stdlib-tests: Depend on it.
22636         * modules/string-c++-tests: New file, extracted from
22637         modules/string-tests.
22638         * modules/string-tests: Depend on it.
22639         * modules/sys_ioctl-c++-tests: New file, extracted from
22640         modules/sys_ioctl-tests.
22641         * modules/sys_ioctl-tests: Depend on it.
22642         * modules/sys_select-c++-tests: New file, extracted from
22643         modules/sys_select-tests.
22644         * modules/sys_select-tests: Depend on it.
22645         * modules/sys_socket-c++-tests: New file, extracted from
22646         modules/sys_socket-tests.
22647         * modules/sys_socket-tests: Depend on it.
22648         * modules/sys_stat-c++-tests: New file, extracted from
22649         modules/sys_stat-tests.
22650         * modules/sys_stat-tests: Depend on it.
22651         * modules/sys_time-c++-tests: New file, extracted from
22652         modules/sys_time-tests.
22653         * modules/sys_time-tests: Depend on it.
22654         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22655         * modules/time-tests: Depend on it.
22656         * modules/unistd-c++-tests: New file, extracted from
22657         modules/unistd-tests.
22658         * modules/unistd-tests: Depend on it.
22659         * modules/wchar-c++-tests: New file, extracted from
22660         modules/wchar-tests.
22661         * modules/wchar-tests: Depend on it.
22662         * modules/wctype-c++-tests: New file, extracted from
22663         modules/wctype-tests.
22664         * modules/wctype-tests: Depend on it.
22665         Reported by Simon Josefsson.
22666
22667 2010-03-28  Bruno Haible  <bruno@clisp.org>
22668
22669         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22670         * gnulib-tool (func_exists_module): New function, extracted from
22671         func_verify_module.
22672         (func_verify_module): Use it.
22673         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22674         'foo' only if 'foo' exists.
22675         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22676         module.
22677
22678 2010-03-28  Bruno Haible  <bruno@clisp.org>
22679
22680         gnulib-tool: Add support for special categories of tests.
22681         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22682         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22683         (func_usage): Document them.
22684         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22685         inc_unportable_tests, inc_all_tests): New variables.
22686         (func_acceptable): Consider these variables.
22687         (func_modules_transitive_closure): Make it work when the 'Status' field
22688         consists of multiple words.
22689         (func_import): Store and restore the values of inc_cxx_tests,
22690         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22691         inc_all_tests in gnulib-comp.m4.
22692         (func_create_testdir): Set inc_all_tests to true.
22693         * doc/gnulib.texi (Extra tests modules): New section.
22694         Suggested by Jim Meyering.
22695
22696 2010-03-28  Bruno Haible  <bruno@clisp.org>
22697
22698         ansi-c++-opt: Allow turning off the C++ build by default.
22699         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22700         gl_CXX_CHOICE_DEFAULT_NO is defined.
22701         Requested by Eric Blake.
22702
22703 2010-03-28  Bruno Haible  <bruno@clisp.org>
22704
22705         unistd: Avoid #define replacements in C++ mode.
22706         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22707         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22708         setsockopt, shutdown, select): In C++, attach a warning to the function
22709         if possible, rather than #defining the symbol to a dysfunctional alias.
22710         Reported by John W. Eaton <jwe@gnu.org>.
22711
22712 2010-03-28  Bruno Haible  <bruno@clisp.org>
22713
22714         Fix link errors on mingw.
22715         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22716         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22717         $(LIBSOCKET).
22718         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22719         $(LIBSOCKET).
22720
22721 2010-03-28  Bruno Haible  <bruno@clisp.org>
22722             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22723
22724         lib-ignore: Determine different options for different compilers.
22725         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22726         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22727         Add comments.
22728         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22729         * NEWS: Mention the change.
22730
22731 2010-03-27  Bruno Haible  <bruno@clisp.org>
22732
22733         Remove unused GNULIB_XYZ macro definitions.
22734         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22735         * modules/fseek (configure.ac): Likewise.
22736         * modules/ioctl (configure.ac): Likewise.
22737         * modules/open (configure.ac): Likewise.
22738         * modules/stdlib-safer (configure.ac): Likewise.
22739
22740 2010-03-27  Bruno Haible  <bruno@clisp.org>
22741
22742         Add a remark about certain modules.
22743         * modules/malloc (Comment): New section.
22744         * modules/realloc (Comment): Likewise.
22745         * modules/sigpipe (Comment): Likewise.
22746
22747 2010-03-27  Bruno Haible  <bruno@clisp.org>
22748
22749         Resolve conflict between the two kinds of module indicators.
22750         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22751         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22752         * modules/canonicalize (configure.ac): Invoke
22753         gl_MODULE_INDICATOR_FOR_TESTS.
22754         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22755         GNULIB_XYZ.
22756         * tests/test-dirent-c++.cc: Likewise.
22757         * tests/test-dirent-safer.c: Likewise.
22758         * tests/test-dup2.c: Likewise.
22759         * tests/test-fchdir.c: Likewise.
22760         * tests/test-fcntl-h-c++.cc: Likewise.
22761         * tests/test-getopt.c: Likewise.
22762         * tests/test-getopt.h: Likewise.
22763         * tests/test-langinfo-c++.cc: Likewise.
22764         * tests/test-locale-c++.cc: Likewise.
22765         * tests/test-math-c++.cc: Likewise.
22766         * tests/test-pty-c++.cc: Likewise.
22767         * tests/test-search-c++.cc: Likewise.
22768         * tests/test-signal-c++.cc: Likewise.
22769         * tests/test-spawn-c++.cc: Likewise.
22770         * tests/test-stdio-c++.cc: Likewise.
22771         * tests/test-stdlib-c++.cc: Likewise.
22772         * tests/test-string-c++.cc: Likewise.
22773         * tests/test-sys_ioctl-c++.cc: Likewise.
22774         * tests/test-sys_select-c++.cc: Likewise.
22775         * tests/test-sys_socket-c++.cc: Likewise.
22776         * tests/test-sys_stat-c++.cc: Likewise.
22777         * tests/test-sys_time-c++.cc: Likewise.
22778         * tests/test-time-c++.cc: Likewise.
22779         * tests/test-unistd-c++.cc: Likewise.
22780         * tests/test-wchar-c++.cc: Likewise.
22781         * tests/uninorm/test-u8-nfc.c: Likewise.
22782         * tests/uninorm/test-u8-nfd.c: Likewise.
22783         * tests/uninorm/test-u8-nfkc.c: Likewise.
22784         * tests/uninorm/test-u8-nfkd.c: Likewise.
22785         * tests/uninorm/test-u16-nfc.c: Likewise.
22786         * tests/uninorm/test-u16-nfd.c: Likewise.
22787         * tests/uninorm/test-u16-nfkc.c: Likewise.
22788         * tests/uninorm/test-u16-nfkd.c: Likewise.
22789         * tests/uninorm/test-u32-nfc.c: Likewise.
22790         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22791         * tests/uninorm/test-u32-nfd.c: Likewise.
22792         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22793         * tests/uninorm/test-u32-nfkc.c: Likewise.
22794         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22795         * tests/uninorm/test-u32-nfkd.c: Likewise.
22796         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22797         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22798
22799 2010-03-27  Bruno Haible  <bruno@clisp.org>
22800
22801         Distinguish two kinds of module indicators.
22802         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22803         gl_MODULE_INDICATOR.
22804         (gl_MODULE_INDICATOR): New macro.
22805         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22806         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22807         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22808         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22809         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22810         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22811         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22812         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22813         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22814         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22815         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22816         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22817         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22818         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22819         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22820         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22821         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22822         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22823         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22824         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22825         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22826         * modules/cloexec (configure.ac): Likewise.
22827         * modules/getopt-gnu (configure.ac): Likewise.
22828         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22829         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22830         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22831         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22832
22833 2010-03-27  Bruno Haible  <bruno@clisp.org>
22834
22835         New module description field 'Comment'.
22836         * gnulib-tool: New option --extract-comment.
22837         (func_usage): Document it.
22838         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22839         (func_get_comment): New function.
22840         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22841
22842 2010-03-27  Bruno Haible  <bruno@clisp.org>
22843
22844         Addendum to 2010-02-07 commit.
22845         * gnulib-tool (func_usage): Document --extract-applicability option.
22846
22847 2010-03-27  Bruno Haible  <bruno@clisp.org>
22848
22849         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22850         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22851         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22852         rather than link errors.
22853
22854 2010-03-27  Bruno Haible  <bruno@clisp.org>
22855
22856         Avoid side effects from tests-related modules on the compilation of lib.
22857         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22858         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22859         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22860         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22861         macro.
22862         (func_import): Define a witness macro. Assign it a value that depends
22863         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22864         tests-related modules.
22865         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22866         Reported by Jim Meyering.
22867
22868 2010-03-27  Bruno Haible  <bruno@clisp.org>
22869
22870         Factorize common .m4 code.
22871         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22872         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22873         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22874         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22875         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22876         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22877         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22878         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22879         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22880         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22881         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22882         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22883         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22884         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22885         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22886         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22887         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22888         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22890         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22891         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22892         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22893         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22894         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22895         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22896         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22897         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22898         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22899         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22900         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22901         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22902         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22903
22904 2010-03-27  Bruno Haible  <bruno@clisp.org>
22905
22906         Fix a compilation error on Cygwin with g++ >= 4.3.
22907         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22908         if it is undefined or if we alias it to chmod.
22909         (lstat): Don't warn about the use of this function if it is undefined
22910         or if we alias it to stat.
22911         Reported by Simon Josefsson.
22912
22913 2010-03-27  Bruno Haible  <bruno@clisp.org>
22914
22915         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22916         * modules/getlogin (configure.ac): Update.
22917
22918         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22919         * modules/getlogin_r (configure.ac): Update.
22920
22921         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22922         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22923         * modules/inet_ntop (configure.ac): Update.
22924
22925         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22926         * modules/inet_pton (configure.ac): Update.
22927
22928         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22929         * modules/mbslen (configure.ac): Update.
22930
22931         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22932         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22933         * modules/forkpty (configure.ac): Update.
22934         * modules/openpty (configure.ac): Update.
22935
22936 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22937
22938         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22939         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22940
22941 2010-03-25  Eric Blake  <eblake@redhat.com>
22942
22943         maint: use pragma consistently across replacement headers
22944         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22945         * lib/dirent.in.h (system_header): Likewise.
22946         * lib/errno.in.h (system_header): Likewise.
22947         * lib/float.in.h (system_header): Likewise.
22948         * lib/getopt.in.h (system_header): Likewise.
22949         * lib/iconv.in.h (system_header): Likewise.
22950         * lib/inttypes.in.h (system_header): Likewise.
22951         * lib/langinfo.in.h (system_header): Likewise.
22952         * lib/locale.in.h (system_header): Likewise.
22953         * lib/math.in.h (system_header): Likewise.
22954         * lib/netdb.in.h (system_header): Likewise.
22955         * lib/netinet_in.in.h (system_header): Likewise.
22956         * lib/pty.in.h (system_header): Likewise.
22957         * lib/sched.in.h (system_header): Likewise.
22958         * lib/se-selinux.in.h (system_header): Likewise.
22959         * lib/search.in.h (system_header): Likewise.
22960         * lib/spawn.in.h (system_header): Likewise.
22961         * lib/stdarg.in.h (system_header): Likewise.
22962         * lib/stdint.in.h (system_header): Likewise.
22963         * lib/string.in.h (system_header): Likewise.
22964         * lib/strings.in.h (system_header): Likewise.
22965         * lib/sys_file.in.h (system_header): Likewise.
22966         * lib/sys_ioctl.in.h (system_header): Likewise.
22967         * lib/sys_socket.in.h (system_header): Likewise.
22968         * lib/sys_times.in.h (system_header): Likewise.
22969         * lib/sys_utsname.in.h (system_header): Likewise.
22970         * lib/sys_wait.in.h (system_header): Likewise.
22971         * lib/sysexits.in.h (system_header): Likewise.
22972         * lib/unistd.in.h (system_header): Likewise.
22973         * lib/wctype.in.h (system_header): Likewise.
22974
22975         arpa/inet: fix mingw compilation warning
22976         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22977         Reported by Matthew Bolte.
22978
22979 2010-03-25  Bruno Haible  <bruno@clisp.org>
22980
22981         Avoid collision between gnulib wrapper and libintl wrapper.
22982         * lib/printf.c (printf): Don't define if a printf wrapper is already
22983         defined in intl/printf.c.
22984         Reported by Michel Boaventura <michel@michelboaventura.com>.
22985
22986 2010-03-25  Bruno Haible  <bruno@clisp.org>
22987
22988         Use ANSI C.
22989         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22990
22991 2010-03-25  Bruno Haible  <bruno@clisp.org>
22992
22993         Minor formatting changes.
22994         * lib/acosl.c: Insert space before function argument list.
22995         * lib/argz.c: Likewise.
22996         * lib/asinl.c: Likewise.
22997         * lib/expl.c: Likewise.
22998         * lib/gen-uni-tables.c: Likewise.
22999         * lib/gettext.h: Likewise.
23000         * lib/glthread/lock.h: Likewise.
23001         * lib/tanl.c: Likewise.
23002         * lib/uniname/uniname.c: Likewise.
23003         * tests/test-idpriv-drop.c: Likewise.
23004         * tests/test-idpriv-droptemp.c: Likewise.
23005         * tests/test-lock.c: Likewise.
23006         * tests/test-tls.c: Likewise.
23007         * lib/argp-help.c: Insert space before function-like macro argument
23008         list.
23009         * lib/memcmp.c: Likewise.
23010         * tests/test-base64.c: Likewise.
23011         * lib/localename.c: Insert space before sizeof's argument list.
23012         * lib/safe-alloc.h: Likewise.
23013         * lib/file-set.h: Insert space before macro argument list.
23014         * tests/test-argp.c: Likewise.
23015         * lib/argp-namefrob.h: Insert space before function parameter list.
23016         * lib/getaddrinfo.c: Likewise.
23017         * lib/netdb.in.h: Likewise.
23018         * lib/parse-duration.h: Likewise.
23019         * lib/parse-duration.c: Likewise.
23020         * lib/poll.c: Likewise.
23021         * lib/select.c: Likewise.
23022         * lib/trim.h: Likewise.
23023         * tests/test-usleep.c: Likewise.
23024         * lib/ldexpl.c: Insert space before function parameter list and before
23025         function argument list.
23026         * lib/logl.c: Likewise.
23027         * lib/sqrtl.c: Likewise.
23028         * lib/trim.c: Likewise.
23029         * lib/cosl.c: Use GNU style indentation. Insert space before function
23030         argument list.
23031         * lib/sinl.c: Likewise.
23032         * lib/tsearch.c: Insert space after 'for'.
23033         Reported by Jim Meyering.
23034
23035 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
23036
23037         * maint.mk (sc_Wundef_boolean): Check for the presence of the
23038         config header before grepping, as it's not present before
23039         autoreconf/configure are run.  Reported by Simon Josefsson.
23040
23041 2010-03-23  Bruno Haible  <bruno@clisp.org>
23042
23043         pt_chown: Make it work with automake < 1.11.
23044         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
23045         Reported by Simon Josefsson.
23046
23047 2010-03-23  Bruno Haible  <bruno@clisp.org>
23048
23049         pt_chown: Don't depend on GPLed modules.
23050         * lib/pt_chown.c: Don't include idpriv.h.
23051         (main): Don't drop privileges.
23052         * modules/pt_chown (Depends-on): Remove idpriv-drop.
23053         Reported by Simon Josefsson.
23054
23055 2010-03-24  Simon Josefsson  <simon@josefsson.org>
23056
23057         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
23058         suggestions from karl@freefriends.org (Karl Berry).
23059
23060 2010-03-22  Eric Blake  <eblake@redhat.com>
23061
23062         gethostname: further tweaks
23063         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
23064         are overriding gethostname.
23065         Suggested by Bruno Haible.
23066
23067 2010-03-21  Bruno Haible  <bruno@clisp.org>
23068
23069         Fix comments.
23070         * lib/forkpty.c (rpl_forkpty): Fix comment.
23071         * lib/openpty.c (rpl_openpty): Likewise.
23072         Reported by Eric Blake.
23073
23074 2010-03-22  Eric Blake  <eblake@redhat.com>
23075
23076         gethostname: fix build on mingw
23077         * lib/unistd.in.h (includes): Work around fact that mingw
23078         <winsock2.h> re-includes <unistd.h>, by avoiding any
23079         redeclarations if we are being included by <winsock2.h>.
23080         Reported by Matthias Bolte.
23081
23082 2010-03-21  Bruno Haible  <bruno@clisp.org>
23083
23084         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23085         * lib/forkpty.c (forkpty): New replacement function, from glibc with
23086         modifications.
23087         * lib/pty.in.h (forkpty): Update declaration. Add comments.
23088         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
23089         provide the replacement.
23090         * modules/forkpty (Depends-on): Add openpty, login_tty.
23091         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
23092         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
23093         * doc/glibc-functions/forkpty.texi: More supported platforms.
23094         * config/srclist.txt: Add forkpty.c (commented).
23095
23096 2010-03-21  Bruno Haible  <bruno@clisp.org>
23097
23098         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
23099         (Makefile.am): Verify that PTY_LIB is defined.
23100
23101         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
23102
23103 2010-03-21  Bruno Haible  <bruno@clisp.org>
23104
23105         Tests for module 'login_tty'.
23106         * modules/login_tty-tests: New file.
23107         * tests/test-login_tty.c: New file.
23108
23109         New module 'login_tty'.
23110         * lib/login_tty.c: New file.
23111         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
23112         * modules/login_tty: New file.
23113         * doc/glibc-functions/login_tty.texi: Mention the new module.
23114
23115 2010-03-21  Bruno Haible  <bruno@clisp.org>
23116
23117         login_tty: Documentation.
23118         * doc/glibc-functions/login_tty.texi: New file.
23119         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
23120
23121 2010-03-21  Bruno Haible  <bruno@clisp.org>
23122
23123         pty: Consistent macro naming.
23124         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
23125         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
23126         * modules/pty (configure.ac): Update.
23127
23128 2010-03-21  Bruno Haible  <bruno@clisp.org>
23129
23130         Tests for openpty: Make stricter.
23131         * tests/test-openpty.c (main): Add test of canonical processing and
23132         erase.
23133         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
23134
23135         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23136         * lib/openpty.c (openpty): New replacement function.
23137         * lib/pty.in.h: Include <termios.h>.
23138         (openpty): Update declaration. Add comments.
23139         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
23140         is not declared, arrange to provide the replacement. Check for _getpty
23141         and posix_openpt.
23142         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
23143         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
23144         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
23145         * modules/pty-tests (test_pty_c___LDADD): New variable.
23146         * doc/glibc-functions/openpty.texi: More supported platforms.
23147
23148 2010-03-21  Bruno Haible  <bruno@clisp.org>
23149
23150         setenv: Tweaks.
23151         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
23152         the test program.
23153         * doc/posix-functions/setenv.texi: Update platforms list.
23154
23155 2010-03-21  Bruno Haible  <bruno@clisp.org>
23156
23157         New module 'unlockpt'.
23158         * lib/unlockpt.c: New file, from glibc with modifications.
23159         * m4/unlockpt.m4: New file.
23160         * modules/unlockpt: New file.
23161         * lib/stdlib.in.h (unlockpt): New declaration.
23162         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
23163         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
23164         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
23165         HAVE_UNLOCKPT.
23166         * doc/posix-functions/unlockpt.texi: Mention the new module.
23167         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
23168         * config/srclist.txt: Add unlockpt.c (commented).
23169
23170 2010-03-21  Jim Meyering  <meyering@redhat.com>
23171
23172         maint.mk: prohibit inclusion of "intprops.h" without use
23173         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
23174
23175 2010-03-21  Bruno Haible  <bruno@clisp.org>
23176
23177         New module 'grantpt'.
23178         * lib/grantpt.c: New file, from glibc with modifications.
23179         * m4/grantpt.m4: New file.
23180         * modules/grantpt: New file.
23181         * lib/stdlib.in.h (grantpt): New declaration.
23182         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
23183         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
23184         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
23185         HAVE_GRANTPT.
23186         * doc/posix-functions/grantpt.texi: Mention the new module.
23187         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
23188         * config/srclist.txt: Add grantpt.c (commented).
23189
23190 2010-03-21  Bruno Haible  <bruno@clisp.org>
23191
23192         New module 'pt_chown'.
23193         * lib/pt_chown.c: New file, from glibc with modifications.
23194         * lib/pty-private.h: New file, from glibc with modifications.
23195         * modules/pt_chown: New file.
23196         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
23197
23198 2010-03-21  Bruno Haible  <bruno@clisp.org>
23199
23200         Tests for module 'ptsname'.
23201         * modules/ptsname-tests: New file.
23202         * tests/test-ptsname.c: New file.
23203
23204         New module 'ptsname'.
23205         * lib/ptsname.c: New file, from glibc with modifications.
23206         * m4/ptsname.m4: New file.
23207         * modules/ptsname: New file.
23208         * lib/stdlib.in.h (ptsname): New declaration.
23209         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
23210         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
23211         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
23212         HAVE_PTSNAME.
23213         * doc/posix-functions/ptsname.texi: Mention the new module.
23214         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
23215         * config/srclist.txt: Add ptsname.c (commented).
23216
23217 2010-03-21  Bruno Haible  <bruno@clisp.org>
23218
23219         Tests for module 'ttyname_r'.
23220         * modules/ttyname_r-tests: New file.
23221         * tests/test-ttyname_r.c: New file.
23222
23223         New module 'ttyname_r'.
23224         * lib/ttyname_r.c: New file.
23225         * m4/ttyname_r.m4: New file.
23226         * modules/ttyname_r: New file.
23227         * lib/unistd.in.h (ttyname_r): New declaration.
23228         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
23229         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
23230         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
23231         HAVE_TTYNAME_R.
23232         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
23233         * doc/posix-functions/ttyname_r.texi: Mention the new module.
23234
23235 2010-03-20  Bruno Haible  <bruno@clisp.org>
23236
23237         signal: Undefine macro definitions in C++ mode.
23238         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
23239         sigfillset): Undefine macro definitions from the system header in C++
23240         mode.
23241         Reported by John W. Eaton <jwe@gnu.org>.
23242
23243 2010-03-20  Bruno Haible  <bruno@clisp.org>
23244
23245         Ensure no #include statements inside extern "C" { ... }.
23246         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
23247         contain #include statements.
23248         * lib/time.in.h: Likewise.
23249
23250 2010-03-20  Bruno Haible  <bruno@clisp.org>
23251
23252         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
23253         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
23254         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
23255         Reported by John W. Eaton <jwe@gnu.org>.
23256
23257 2010-03-20  Bruno Haible  <bruno@clisp.org>
23258
23259         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
23260         Reported by Jim Meyering.
23261
23262 2010-03-20  Bruno Haible  <bruno@clisp.org>
23263
23264         pipe: Set errno upon failure.
23265         * lib/pipe.h: Specify that when -1 is returned, errno is set.
23266         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
23267         errno value in error message.
23268
23269 2010-03-20  Bruno Haible  <bruno@clisp.org>
23270             Jim Meyering  <meyering@redhat.com>
23271
23272         lchown: Avoid "unused variable" warning.
23273         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
23274
23275 2010-03-20  Bruno Haible  <bruno@clisp.org>
23276
23277         Work around unlink() bug on MacOS X 10.5.6.
23278         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
23279         attempting to unlink a parent directory.
23280         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
23281         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
23282         activate for the replacement function.
23283         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
23284
23285 2010-03-20  Bruno Haible  <bruno@clisp.org>
23286
23287         Fix link errors on Solaris 8.
23288         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
23289         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
23290
23291 2010-03-19  Jim Meyering  <meyering@redhat.com>
23292
23293         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
23294         The _LIBC implementation of build_range_exp correctly honors the
23295         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
23296         However, the non-_LIBC implementation would ignore that syntax-bit
23297         flag and return REG_ERANGE unconditionally.
23298         This change makes it honor that flag.
23299         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
23300         Make two pointer parameters "const".
23301         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
23302         (parse_bracket_exp): Update caller.
23303
23304         regex.m4: correct the reversed range endpoint ([b-a]) test
23305         * m4/regex.m4: When requiring that [b-a] evoke failure,
23306         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
23307         test pass once again for x86-based systems.
23308
23309 2010-03-19  Bruno Haible  <bruno@clisp.org>
23310
23311         scandir: Fix link error on Solaris 8.
23312         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
23313         macros.
23314
23315 2010-03-19  Bruno Haible  <bruno@clisp.org>
23316
23317         getusershell: Fix documentation.
23318         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
23319         module.
23320         * doc/glibc-functions/setusershell.texi: Likewise.
23321
23322         getusershell: Provide declaration, missing on Solaris 9.
23323         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
23324         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
23325         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
23326         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
23327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23328         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
23329         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
23330         HAVE_GETUSERSHELL.
23331         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
23332
23333 2010-03-19  Bruno Haible  <bruno@clisp.org>
23334
23335         wctype: Provide iswblank function.
23336         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
23337         exists and is fine.
23338         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
23339         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
23340         * tests/test-wctype.c (main): Re-enable the iswblank tests.
23341         * doc/posix-functions/iswblank.texi: Update.
23342
23343 2010-03-19  Bruno Haible  <bruno@clisp.org>
23344
23345         Tests of module 'pty' in C++ mode.
23346         * modules/pty-tests: New file.
23347         * tests/test-pty-c++.cc: New file.
23348         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23349
23350 2010-03-19  Eric Blake  <eblake@redhat.com>
23351
23352         logb: fix documentation
23353         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
23354         1.5 declaration bug.
23355
23356         forkpty, openpty: prefer glibc's const-safe prototype
23357         * lib/forkpty.c (rpl_forkpty): New file.
23358         * lib/openpty.c (rpl_openpty): Likewise.
23359         * modules/forkpty (Files): Distribute it.
23360         * modules/openpty (Files): Likewise.
23361         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
23362         check...
23363         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
23364         replacement for for non-const BSD signature.
23365         * modules/pty (Makefile.am): Substitute witnesses.
23366         * lib/pty.in.h (forkpty, openpty): Declare replacements.
23367         * tests/test-forkpty.c: Update signature check.
23368         * tests/test-openpty.c: Likewise.
23369         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
23370         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23371
23372         forkpty, openpty: split functions into new modules
23373         * modules/pty (Makefile.am): Substitute new witnesses.
23374         (Libraries): Move library detection...
23375         * modules/forkpty: ...into new module.
23376         * modules/openpty: Another new module.
23377         * modules/pty-tests: Rename and split...
23378         * modules/forkpty-tests: ...to this...
23379         * modules/openpty-tests: ...and this.
23380         * tests/test-pty.c: Rename and split...
23381         * tests/test-forkpty.c: ...to this...
23382         * tests/test-openpty.c: ...and this.
23383         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
23384         (gl_PTY): Split library searching...
23385         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
23386         (gl_FORKPTY, gl_OPENPTY): New macros.
23387         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
23388         * NEWS: Mention the split.
23389         * MODULES.html.sh (Misc): Document the modules.
23390         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
23391         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23392
23393         pty: improve replacement header
23394         * lib/pty.in.h: New file.
23395         * modules/pty (Files): Ship it.
23396         (Makefile.am): Always build replacement.
23397         * m4/pty.m4: Rename...
23398         * m4/pty_h.m4: ...to this.
23399         (gl_PTY): Modernize setting of witness macros; update check of
23400         forkpty to take proper advantage of cache.
23401         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
23402
23403         getopt: avoid compiler warning
23404         * lib/getopt.c (attribute_hidden): Remove unused macro.
23405
23406 2010-03-18  Bruno Haible  <bruno@clisp.org>
23407
23408         Fix link errors on Solaris 8.
23409         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
23410         * modules/search-tests (test_search_c___LDADD): Likewise.
23411         * modules/signal-tests (test_signal_c___LDADD): Likewise.
23412         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
23413         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
23414         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
23415         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
23416         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
23417         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
23418
23419 2010-03-18  Bruno Haible  <bruno@clisp.org>
23420
23421         Fix bug introduced on 2010-03-14.
23422         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
23423         (gl_SPAWN_H): Require it.
23424         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
23425         Reported by Simon Josefsson.
23426
23427 2010-03-18  Bruno Haible  <bruno@clisp.org>
23428
23429         Fix typo introduced on 2009-12-31.
23430         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
23431         posix_spawn_file_actions_adddup2.
23432
23433 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
23434         and Eric Blake  <eblake@redhat.com>
23435
23436         test-vc-list-files-git: make more robust
23437         * tests/test-vc-list-files-git.sh: Unset problematic environment
23438         variables.  Chain commands together.
23439
23440 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
23441
23442         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
23443         `AC_CHECK_DECL' invocation.
23444
23445 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
23446
23447         * lib/inttostr.c (inttostr): Make sure the invocation of verify
23448         appears before executable statements. Suggested by Petr Sumbera
23449         <Petr.Sumbera@Sun.COM>.
23450
23451 2010-03-14  Bruno Haible  <bruno@clisp.org>
23452
23453         * tests/test-flock.c (test_exclusive): Comment out a test that causes
23454         portability problems. Instead use a simpler test.
23455         (main): Check that invalid arguments are rejected only on Linux.
23456
23457 2010-03-14  Bruno Haible  <bruno@clisp.org>
23458
23459         Fix bug introduced on 2009-12-31.
23460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23461         gl_PREREQ_SYS_H_WINSOCK2 always.
23462         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
23463         SYS_SOCKET_H variable.
23464         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
23465         Update comments.
23466         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
23467         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23468         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23469         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23470         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23471
23472 2010-03-14  Bruno Haible  <bruno@clisp.org>
23473
23474         Fix values returned by sinl, cosl.
23475         * lib/trigl.h: Add specification comments.
23476         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
23477         that combines the values from the precomputed table with the values of
23478         the Chebyshev polynomials.
23479
23480 2010-03-14  Bruno Haible  <bruno@clisp.org>
23481
23482         Fix compilation error when modules 'posix_spawn[p]' are not used.
23483         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
23484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
23485
23486 2010-03-14  Bruno Haible  <bruno@clisp.org>
23487
23488         Fix compilation error on mingw when module 'time_r' is not used.
23489         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
23490         is 1.
23491         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
23492         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23493         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
23494         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
23495
23496 2010-03-14  Bruno Haible  <bruno@clisp.org>
23497
23498         Fix compilation error with Sun C.
23499         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
23500         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
23501         instead of GCC specific ULONG_LONG_MAX.
23502         * lib/xstrtoll.c: Likewise.
23503         * lib/xstrtoull.c: Likewise.
23504
23505 2010-03-13  Bruno Haible  <bruno@clisp.org>
23506
23507         Allow the user to disable C++ code and tests.
23508         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
23509         (gl_PROG_ANSI_CXX): Require it.
23510
23511 2010-03-13  Bruno Haible  <bruno@clisp.org>
23512
23513         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23514         cases.
23515
23516 2010-03-13  Bruno Haible  <bruno@clisp.org>
23517
23518         Test that gnulib does not break the standard C++ headers.
23519         * tests/test-locale-c++2.cc: New file.
23520         * modules/locale-tests (Files): Add it.
23521         (Makefile.am): Compile it for test-locale-c++.
23522         * tests/test-math-c++2.cc: New file.
23523         * modules/math-tests (Files): Add it.
23524         (Makefile.am): Compile it for test-math-c++.
23525         * tests/test-signal-c++2.cc: New file.
23526         * modules/signal-tests (Files): Add it.
23527         (Makefile.am): Compile it for test-signal-c++.
23528         * tests/test-stdio-c++2.cc: New file.
23529         * modules/stdio-tests (Files): Add it.
23530         (Makefile.am): Compile it for test-stdio-c++.
23531         * tests/test-stdlib-c++2.cc: New file.
23532         * modules/stdlib-tests (Files): Add it.
23533         (Makefile.am): Compile it for test-stdlib-c++.
23534         * tests/test-string-c++2.cc: New file.
23535         * modules/string-tests (Files): Add it.
23536         (Makefile.am): Compile it for test-string-c++.
23537         * tests/test-time-c++2.cc: New file.
23538         * modules/time-tests (Files): Add it.
23539         (Makefile.am): Compile it for test-time-c++.
23540         Reported by John W. Eaton <jwe@gnu.org>.
23541
23542 2010-03-13  Bruno Haible  <bruno@clisp.org>
23543
23544         * gnulib-tool (func_usage): Clarify which options are available for
23545         --create-testdir and --create-megatestdir.
23546
23547 2010-03-13  Bruno Haible  <bruno@clisp.org>
23548
23549         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23550         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23551         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23552         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23553         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23554         when appropriate.
23555         Reported by Jim Meyering.
23556
23557 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23558
23559         * gnulib-tool (func_import): Explain origin of code.
23560
23561 2010-03-12  Bruno Haible  <bruno@clisp.org>
23562
23563         Fix problem with automake's definition of CXXLINK.
23564         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23565         Reported by Simon Josefsson and Ludovic Courtès.
23566
23567 2010-03-12  Bruno Haible  <bruno@clisp.org>
23568
23569         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23570         stable releases.
23571
23572 2010-03-11  Bruno Haible  <bruno@clisp.org>
23573
23574         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23575         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23576         whether the system provides one variant or multiple variants of the
23577         function.
23578         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23579         C++ compilers.
23580         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23581         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23582         Reported by Jim Meyering.
23583
23584 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23585
23586         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23587
23588 2010-03-08  Bruno Haible  <bruno@clisp.org>
23589
23590         gnulib-tool: Add support for --libtool in --create-testdir.
23591         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23592         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23593
23594 2010-03-08  Eric Blake  <eblake@redhat.com>
23595
23596         gnulib-tool.texi: mention possibility of git submodule
23597         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23598         submodules.
23599         * doc/.gitignore: Ignore another generated file.
23600
23601 2010-03-08  Karl Berry  <karl@gnu.org>
23602
23603         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23604         of committing gnulib files while skipping others.
23605
23606 2010-03-07  Bruno Haible  <bruno@clisp.org>
23607
23608         Tests of module 'wctype' in C++ mode.
23609         * tests/test-wctype-c++.cc: New file.
23610         * modules/wctype-tests (Files): Add it and tests/signature.h.
23611         (Depends-on): Add ansi-c++-opt.
23612         (Makefile.am): Arrange to compile and run test-wctype-c++.
23613
23614         Tests of module 'wchar' in C++ mode.
23615         * tests/test-wchar-c++.cc: New file.
23616         * modules/wchar-tests (Files): Add it and tests/signature.h.
23617         (Depends-on): Add ansi-c++-opt.
23618         (Makefile.am): Arrange to compile and run test-wchar-c++.
23619         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23620         gl_MODULE_INDICATOR.
23621
23622         Tests of module 'unistd' in C++ mode.
23623         * tests/test-unistd-c++.cc: New file.
23624         * modules/unistd-tests (Files): Add it and tests/signature.h.
23625         (Depends-on): Add ansi-c++-opt.
23626         (Makefile.am): Arrange to compile and run test-unistd-c++.
23627         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23628         gl_MODULE_INDICATOR.
23629
23630         Tests of module 'time' in C++ mode.
23631         * tests/test-time-c++.cc: New file.
23632         * modules/time-tests (Files): Add it and tests/signature.h.
23633         (Depends-on): Add ansi-c++-opt.
23634         (Makefile.am): Arrange to compile and run test-time-c++.
23635         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23636
23637         Tests of module 'sys_time' in C++ mode.
23638         * tests/test-sys_time-c++.cc: New file.
23639         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23640         (Depends-on): Add ansi-c++-opt.
23641         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23642         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23643         gl_MODULE_INDICATOR.
23644
23645         Tests of module 'sys_stat' in C++ mode.
23646         * tests/test-sys_stat-c++.cc: New file.
23647         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23648         (Depends-on): Add ansi-c++-opt.
23649         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23650         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23651         gl_MODULE_INDICATOR.
23652
23653         Tests of module 'sys_socket' in C++ mode.
23654         * tests/test-sys_socket-c++.cc: New file.
23655         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23656         (Depends-on): Add ansi-c++-opt.
23657         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23658         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23659         gl_MODULE_INDICATOR.
23660
23661         Tests of module 'sys_select' in C++ mode.
23662         * tests/test-sys_select-c++.cc: New file.
23663         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23664         (Depends-on): Add ansi-c++-opt.
23665         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23666         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23667         gl_MODULE_INDICATOR.
23668
23669         Tests of module 'sys_ioctl' in C++ mode.
23670         * tests/test-sys_ioctl-c++.cc: New file.
23671         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23672         (Depends-on): Add ansi-c++-opt.
23673         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23674         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23675         gl_MODULE_INDICATOR.
23676
23677         Tests of module 'string' in C++ mode.
23678         * tests/test-string-c++.cc: New file.
23679         * modules/string-tests (Files): Add it and tests/signature.h.
23680         (Depends-on): Add ansi-c++-opt.
23681         (Makefile.am): Arrange to compile and run test-string-c++.
23682         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23683         gl_MODULE_INDICATOR.
23684
23685         Tests of module 'stdlib' in C++ mode.
23686         * tests/test-stdlib-c++.cc: New file.
23687         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23688         (Depends-on): Add ansi-c++-opt.
23689         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23690         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23691         gl_MODULE_INDICATOR.
23692
23693         Tests of module 'stdio' in C++ mode.
23694         * tests/test-stdio-c++.cc: New file.
23695         * modules/stdio-tests (Files): Add it and tests/signature.h.
23696         (Depends-on): Add ansi-c++-opt.
23697         (Makefile.am): Arrange to compile and run test-stdio-c++.
23698         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23699         gl_MODULE_INDICATOR.
23700
23701         Tests of module 'spawn' in C++ mode.
23702         * tests/test-spawn-c++.cc: New file.
23703         * modules/spawn-tests (Files): Add it and tests/signature.h.
23704         (Depends-on): Add ansi-c++-opt.
23705         (Makefile.am): Arrange to compile and run test-spawn-c++.
23706         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23707         gl_MODULE_INDICATOR.
23708
23709         Tests of module 'signal' in C++ mode.
23710         * tests/test-signal-c++.cc: New file.
23711         * modules/signal-tests (Files): Add it and tests/signature.h.
23712         (Depends-on): Add ansi-c++-opt.
23713         (Makefile.am): Arrange to compile and run test-signal-c++.
23714         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23715         gl_MODULE_INDICATOR.
23716
23717         Tests of module 'search' in C++ mode.
23718         * tests/test-search-c++.cc: New file.
23719         * modules/search-tests (Files): Add it and tests/signature.h.
23720         (Depends-on): Add ansi-c++-opt.
23721         (Makefile.am): Arrange to compile and run test-search-c++.
23722         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23723         gl_MODULE_INDICATOR.
23724
23725         Tests of module 'math' in C++ mode.
23726         * tests/test-math-c++.cc: New file.
23727         * modules/math-tests (Files): Add it and tests/signature.h.
23728         (Depends-on): Add ansi-c++-opt.
23729         (Makefile.am): Arrange to compile and run test-math-c++.
23730         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23731
23732         Tests of module 'locale' in C++ mode.
23733         * tests/test-locale-c++.cc: New file.
23734         * modules/locale-tests (Files): Add it and tests/signature.h.
23735         (Depends-on): Add ansi-c++-opt.
23736         (Makefile.am): Arrange to compile and run test-locale-c++.
23737         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23738         gl_MODULE_INDICATOR.
23739
23740         Tests of module 'langinfo' in C++ mode.
23741         * tests/test-langinfo-c++.cc: New file.
23742         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23743         (Depends-on): Add ansi-c++-opt.
23744         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23745         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23746         gl_MODULE_INDICATOR.
23747
23748         Tests of module 'iconv-h' in C++ mode.
23749         * tests/test-iconv-h-c++.cc: New file.
23750         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23751         (Depends-on): Add ansi-c++-opt.
23752         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23753
23754         Tests of module 'glob' in C++ mode.
23755         * tests/test-glob-c++.cc: New file.
23756         * modules/glob-tests (Files): Add it.
23757         (Depends-on): Add ansi-c++-opt.
23758         (Makefile.am): Arrange to compile and run test-glob-c++.
23759
23760         Tests of module 'fcntl-h' in C++ mode.
23761         * tests/test-fcntl-h-c++.cc: New file.
23762         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23763         (Depends-on): Add ansi-c++-opt.
23764         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23765         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23766         gl_MODULE_INDICATOR.
23767
23768         Tests of module 'dirent' in C++ mode.
23769         * tests/test-dirent-c++.cc: New file.
23770         * modules/dirent-tests (Files): Add it and tests/signature.h.
23771         (Depends-on): Add ansi-c++-opt.
23772         (Makefile.am): Arrange to compile and run test-dirent-c++.
23773         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23774         gl_MODULE_INDICATOR.
23775
23776         New module 'ansi-c++-opt'.
23777         * modules/ansi-c++-opt: New file.
23778         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23779
23780         Document C++ namespace mode.
23781         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23782
23783         wctype: Avoid #define replacements in C++ mode.
23784         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23785         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23786         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23787         In C++, define a namespaced alias symbol.
23788         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23789         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23790         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23791         rule.
23792
23793         wchar: Avoid #define replacements in C++ mode.
23794         * lib/wchar.in.h: Include c++defs.h.
23795         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23796         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23797         symbol.
23798         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23799         * modules/wchar (Depends-on): Add c++defs.
23800         (Makefile.am): Update wchar.h rule.
23801
23802         unistd: Avoid #define replacements in C++ mode.
23803         * lib/unistd.in.h: Include c++defs.h.
23804         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23805         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23806         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23807         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23808         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23809         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23810         symbol.
23811         (environ): Update.
23812         * modules/unistd (Depends-on): Add c++defs.
23813         (Makefile.am): Update unistd.h rule.
23814
23815         time: Avoid #define replacements in C++ mode.
23816         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23817         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23818         define a namespaced alias symbol.
23819         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23820         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23821         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23822         * modules/time (Depends-on): Add c++defs, warn-on-use.
23823         (Makefile.am): Update time.h rule.
23824         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23825         * modules/nanosleep (configure.ac): Likewise.
23826         * modules/strptime (configure.ac): Likewise.
23827         * modules/timegm (configure.ac): Likewise.
23828
23829         sys_time: Avoid #define replacements in C++ mode.
23830         * lib/sys_time.in.h: Include c++defs.h.
23831         (gettimeofday): In C++, define a namespaced alias symbol.
23832         * modules/sys_time (Depends-on): Add c++defs.
23833         (Makefile.am): Update sys/time.h rule.
23834
23835         sys_stat: Avoid #define replacements in C++ mode.
23836         * lib/sys_stat.in.h: Include c++defs.h.
23837         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23838         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23839         namespaced alias symbol.
23840         In C++, define a namespaced alias symbol.
23841         * modules/sys_stat (Depends-on): Add c++defs.
23842         (Makefile.am): Update sys/stat.h rule.
23843
23844         sys_socket: Avoid #define replacements in C++ mode.
23845         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23846         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23847         definitions also when the system has a <sys/socket.h>.
23848         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23849         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23850         In C++, define a namespaced alias symbol.
23851         * modules/sys_socket (Depends-on): Add c++defs.
23852         (Makefile.am): Update sys/socket.h rule.
23853
23854         sys_select: Avoid #define replacements in C++ mode.
23855         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23856         definitions also when the system has a <sys/select.h>.
23857         (select): In C++, define a namespaced alias symbol.
23858         * modules/sys_select (Depends-on): Add c++defs.
23859         (Makefile.am): Update sys/select.h rule.
23860
23861         sys_ioctl: Avoid #define replacements in C++ mode.
23862         * lib/sys_ioctl.in.h: Include c++defs.h.
23863         (ioctl): In C++, define a namespaced alias symbol.
23864         * modules/sys_ioctl (Depends-on): Add c++defs.
23865         (Makefile.am): Update sys/ioctl.h rule.
23866
23867         string: Avoid #define replacements in C++ mode.
23868         * lib/string.in.h: Include c++defs.h.
23869         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23870         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23871         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23872         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23873         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23874         * modules/string (Depends-on): Add c++defs.
23875         (Makefile.am): Update string.h rule.
23876
23877         stdlib: Avoid #define replacements in C++ mode.
23878         * lib/stdlib.in.h: Include c++defs.h.
23879         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23880         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23881         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23882         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23883         symbol.
23884         * modules/stdlib (Depends-on): Add c++defs.
23885         (Makefile.am): Update stdlib.h rule.
23886
23887         stdio: Avoid #define replacements in C++ mode.
23888         * lib/stdio.in.h: Include c++defs.h.
23889         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23890         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23891         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23892         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23893         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23894         namespaced alias symbol.
23895         * modules/stdio (Depends-on): Add c++defs.
23896         (Makefile.am): Update stdio.h rule.
23897
23898         spawn: Avoid #define replacements in C++ mode.
23899         * lib/spawn.in.h: Include c++defs.h.
23900         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23901         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23902         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23903         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23904         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23905         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23906         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23907         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23908         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23909         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23910         In C++, define a namespaced alias symbol.
23911         * modules/spawn (Depends-on): Add c++defs.
23912         (Makefile.am): Update spawn.h rule.
23913
23914         signal: Avoid #define replacements in C++ mode.
23915         * lib/signal.in.h: Include c++defs.h.
23916         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23917         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23918         namespaced alias symbol.
23919         * modules/signal (Depends-on): Add c++defs.
23920         (Makefile.am): Update signal.h rule.
23921
23922         search: Avoid #define replacements in C++ mode.
23923         * lib/search.in.h: Include c++defs.h.
23924         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23925         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23926         symbol.
23927         * modules/search (Depends-on): Add c++defs.
23928         (Makefile.am): Update search.h rule.
23929
23930         math: Avoid #define replacements in C++ mode.
23931         * lib/math.in.h: Include c++defs.h.
23932         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23933         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23934         trunc, truncl): In C++, define a namespaced alias symbol.
23935         * modules/math (Depends-on): Add c++defs.
23936         (Makefile.am): Update math.h rule.
23937
23938         locale: Avoid #define replacements in C++ mode.
23939         * lib/locale.in.h: Include c++defs.h.
23940         (duplocale): In C++, define a namespaced alias symbol.
23941         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23942         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23943         * modules/locale (Depends-on): Add c++defs.
23944         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23945
23946         langinfo: Avoid #define replacements in C++ mode.
23947         * lib/langinfo.in.h: Include c++defs.h.
23948         (nl_langinfo): In C++, define a namespaced alias symbol.
23949         * modules/langinfo (Depends-on): Add c++defs.
23950         (Makefile.am): Update langinfo.h rule.
23951
23952         iconv-h: Avoid #define replacements in C++ mode.
23953         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23954         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23955         symbol.
23956         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23957         whenever iconv is present.
23958         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23959         (Makefile.am): Update iconv.h rule.
23960
23961         glob: Avoid #define replacements in C++ mode.
23962         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23963         (_gl_glob_errfunc_fn): New type.
23964         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23965         symbol.
23966         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23967         (Makefile.am): Update glob.h rule.
23968
23969         fcntl-h: Avoid #define replacements in C++ mode.
23970         * lib/fcntl.in.h: Include c++defs.h.
23971         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23972         * modules/fcntl-h (Depends-on): Add c++defs.
23973         (Makefile.am): Update fcntl.h rule.
23974
23975         dirent: Avoid #define replacements in C++ mode.
23976         * lib/dirent.in.h: Include c++defs.h.
23977         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23978         namespaced alias symbol.
23979         (dirfd): Update declaration.
23980         * modules/dirent (Depends-on): Add c++defs.
23981         (Makefile.am): Update dirent.h rule.
23982
23983         ctype: Make it usable in C++ code.
23984         * lib/ctype.in.h: Include c++defs.h.
23985         (isblank): Declare as extern "C".
23986         * modules/ctype (Depends-on): Add c++defs.
23987         (Makefile.am): Update ctype.h rule.
23988
23989         New module 'c++defs'.
23990         * modules/c++defs: New file.
23991         * build-aux/c++defs.h: New file.
23992         Reported by John W. Eaton <jwe@gnu.org>.
23993
23994 2010-03-07  Bruno Haible  <bruno@clisp.org>
23995
23996         logb: Provide missing declaration for Cygwin.
23997         * lib/math.in.h (logb): New declaration.
23998         * m4/logb.m4: New file.
23999         * modules/logb (Files): Add m4/logb.m4.
24000         (Depends-on): Add math.
24001         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
24002         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
24003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
24004         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
24005         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
24006
24007 2010-03-07  Bruno Haible  <bruno@clisp.org>
24008
24009         Fix test-cond link error.
24010         * tests/test-cond.c: Include <stdio.h>.
24011
24012 2010-03-07  Bruno Haible  <bruno@clisp.org>
24013
24014         Fix test-dirent-safer link error.
24015         * modules/dirent-safer-tests (Makefile.am): Define
24016         test_dirent_safer_LDADD.
24017
24018 2010-03-07  Bruno Haible  <bruno@clisp.org>
24019
24020         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
24021         among default module list.
24022
24023 2010-03-07  Bruno Haible  <bruno@clisp.org>
24024
24025         Fix link error on platforms with GNU libiconv.
24026         * modules/unistr/u8-strcoll-tests (Makefile): Define
24027         test_u8_strcoll_LDADD.
24028         * modules/unistr/u16-strcoll-tests (Makefile): Define
24029         test_u16_strcoll_LDADD.
24030         * modules/unistr/u32-strcoll-tests (Makefile): Define
24031         test_u32_strcoll_LDADD.
24032
24033 2010-03-07  Bruno Haible  <bruno@clisp.org>
24034
24035         Use POSIX declarations for socket functions.
24036         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
24037         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
24038         rpl_sendto): Change declaration to match POSIX.
24039         * lib/connect.c (rpl_connect): Likewise.
24040         * lib/accept.c (rpl_accept): Likewise.
24041         * lib/bind.c (rpl_bind): Likewise.
24042         * lib/getpeername.c (rpl_getpeername): Likewise.
24043         * lib/getsockname.c (rpl_getsockname): Likewise.
24044         * lib/recv.c (rpl_recv): Likewise.
24045         * lib/send.c (rpl_send): Likewise.
24046         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24047         * lib/sendto.c (rpl_sendto): Likewise.
24048
24049 2010-03-06  Bruno Haible  <bruno@clisp.org>
24050
24051         Clarify access, euidaccess, faccessat.
24052         * doc/posix-functions/faccessat.texi: Mention security problem under
24053         "Other problems", not "Portability problems".
24054         * doc/posix-functions/access.texi: Likewise. Mention a related security
24055         problem.
24056         * doc/glibc-functions/euidaccess.texi: Mention security problems.
24057         * lib/euidaccess.c: Add comments about platforms.
24058         * lib/unistd.in.h (access, euidaccess): Add warnings.
24059
24060 2010-03-07  Bruno Haible  <bruno@clisp.org>
24061
24062         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
24063         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
24064         (POSIX_SPAWN_SETSCHEDULER): Likewise.
24065         (POSIX_SPAWN_USEVFORK): Define in a way that works when
24066         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24067         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
24068         declare when POSIX_SPAWN_SETSCHEDULER is zero.
24069         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
24070         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
24071         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
24072         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
24073         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
24074         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
24075         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
24076         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
24077         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
24078         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
24079         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
24080         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
24081         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
24082         Likewise.
24083         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
24084         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
24085         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
24086         Likewise.
24087         * tests/test-spawn.c (main): Make it work when
24088         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24089
24090 2010-03-07  Bruno Haible  <bruno@clisp.org>
24091
24092         Fix incorrect Makefile.am generation in German locale.
24093         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24094         Execute sed command with character range in C locale.
24095
24096 2010-03-06  Bruno Haible  <bruno@clisp.org>
24097
24098         Tests for module 'iconv-h'.
24099         * modules/iconv-h-tests: New file.
24100         * tests/test-iconv-h.c: New file.
24101
24102         New module 'iconv-h'.
24103         * modules/iconv-h: New file.
24104         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
24105         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
24106         (configure.ac): Remove gl_ICONV_H.
24107         (Makefile.am): Remove rule for iconv.h.
24108
24109 2010-03-06  Bruno Haible  <bruno@clisp.org>
24110
24111         More consistent naming of *.m4 files.
24112         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
24113         * modules/wctype (Files): Update.
24114
24115         More consistent naming of *.m4 files.
24116         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
24117         * modules/wchar (Files): Update.
24118
24119 2010-03-06  Jim Meyering  <meyering@redhat.com>
24120
24121         euidaccess: relax license to LGPLv2+
24122         * modules/euidaccess (License): Relax to LGPLv2+.
24123
24124 2010-03-06  Bruno Haible  <bruno@clisp.org>
24125
24126         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
24127         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
24128         (Makefile.am): Augment lib_SOURCES instead.
24129
24130 2010-03-04  Jim Meyering  <meyering@redhat.com>
24131
24132         utime: remove obsolete module
24133         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
24134         unnecessary for years, and has been marked as obsolete for 10 months.
24135         * modules/utime: Remove file.
24136         * lib/utime.c: Remove file.
24137         * m4/utime.m4: Remove file.
24138         * m4/utimes-null.m4: Remove file.
24139         * doc/posix-functions/utime.texi (utime): Remove reference to
24140         the module.  Move the sole "fixed by gnulib" item into the
24141         "problems not fixed by Gnulib" list.
24142         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
24143
24144 2010-03-05  Simon Josefsson  <simon@josefsson.org>
24145
24146         * modules/exit (License): Relax license to LGPLv2+.
24147         (Status): Mark as obsolete.
24148         * NEWS: Mention deprecated 'exit' module.
24149         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
24150         of now obsolete 'exit'.
24151
24152 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24153
24154         fts-lgpl: remove unused module
24155         * modules/fts-lgpl: Remove.
24156         * MODULES.html.sh (func_all_modules): Adjust.
24157         * check-module (find_included_lib_files): Adjust.
24158         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
24159
24160 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24161
24162         copy-acl: enhance Solaris ACL error handling
24163         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
24164         * lib/set-mode-acl.c (qset_acl): Likewise.
24165
24166 2010-03-02  Bruno Haible  <bruno@clisp.org>
24167
24168         spawn: Don't override the system defined values on FreeBSD 8.
24169         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
24170         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
24171         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
24172         if HAVE_POSIX_SPAWN is 1.
24173         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
24174
24175 2010-03-01  Bruno Haible  <bruno@clisp.org>
24176
24177         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
24178         regarding Automake.
24179
24180 2010-02-25  Bruno Haible  <bruno@clisp.org>
24181
24182         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
24183         * gnulib-tool: Define 'echo' as a function only before the ksh alias
24184         setting, not afterwards.
24185         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24186
24187 2010-02-24  Eric Blake  <eblake@redhat.com>
24188
24189         bootstrap, git-version-gen: use timestamp
24190         * build-aux/git-version-gen (scriptversion): Force UTC.
24191         * build-aux/bootstrap (scriptversion): New variable.
24192
24193         bootstrap: allow older git
24194         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
24195         older than 1.6.4.  Requested by the libvirt project.
24196
24197 2010-02-23  Eric Blake  <eblake@redhat.com>
24198
24199         warn-on-use: work with old autoconf
24200         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
24201         AS_VAR semantics of autoconf 2.60.
24202         Reported by Bruno Haible.
24203
24204         bootstrap: improve some comments
24205         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
24206         clarification comments.
24207
24208         gettimeofday: provide correct function
24209         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
24210         when replacement is declared, otherwise provide gettimeofday.
24211         Reported by Michael Goffioul.
24212
24213 2010-02-23  Jim Meyering  <meyering@redhat.com>
24214
24215         lib-ignore: relax license to "unlimited", not LGPLv2+
24216         * modules/lib-ignore (License): Relax to "unlimited".
24217
24218 2010-02-23  Jim Meyering  <meyering@redhat.com>
24219
24220         lib-ignore: relax license to LGPLv2+
24221         * modules/lib-ignore (License): Relax to LGPLv2+.
24222
24223 2010-02-22  Eric Blake  <eblake@redhat.com>
24224
24225         lseek: avoid bash 3.2 broken pipe bug
24226         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
24227         warning from bash 3.2.
24228         Reported by Ben Pfaff, with analysis from Bruno Haible.
24229
24230         bootstrap: support non-FSF copyright holder
24231         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
24232         bootstrap.conf override of COPYRIGHT_HOLDER.
24233         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
24234
24235         bootstrap: interoperate with gettext 0.14.1
24236         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
24237
24238         bootstrap: allow for alternate submodule location
24239         * build-aux/bootstrap (gnulib_path): New variable; use instead of
24240         hardcoding submodule location.
24241         (gnulib_mk): Allow direct use of Makefile.am.
24242
24243         bootstrap: use GNULIB_SRCDIR to reduce disk usage
24244         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
24245         rather than reconfiguring where the submodule points.
24246
24247         gettimeofday: restore support for platforms that lack function
24248         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
24249         replacement if function is missing.
24250         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
24251         * modules/sys_time (Makefile.am): Substitute it.
24252         * lib/sys_time.in.h (gettimeofday): Check it.
24253         Reported by Michael Goffioul.
24254
24255 2010-02-21  Bruno Haible  <bruno@clisp.org>
24256
24257         * lib/stdio.in.h (obstack_printf): Fix typo.
24258
24259 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
24260
24261         vc-list-files: use bzr ls's -R option
24262         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
24263         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
24264
24265 2010-02-21  Jim Meyering  <meyering@redhat.com>
24266
24267         init.sh: fix EXEEXT shims to work also for names like test-prog
24268         * tests/init.sh: Re-exec a better shell, when needed.
24269         If the current shell lacks support for posix $(...), an init.sh-using
24270         test will now try to find a shell that supports that.  If EXEEXT is
24271         nonempty, we also require support for hyphen-in-alias-name and shell
24272         substitutions like ${var#glob}.  Failure to find such a shell results
24273         in a skipped test.
24274
24275 2010-02-21  Bruno Haible  <bruno@clisp.org>
24276
24277         Really work around around "broken pipe" error message from bash 3.2.
24278         * gnulib-tool (func_reset_sigpipe): Remove function.
24279         (echo): In bash 3.2, define to a function that uses printf.
24280         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
24281
24282 2010-02-20  Bruno Haible  <bruno@clisp.org>
24283
24284         Restore support for automake 1.9.6 with autoconf 2.61.
24285         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
24286         Reported by James Youngman <jay@gnu.org>.
24287
24288 2010-02-20  Bruno Haible  <bruno@clisp.org>
24289
24290         Improve *printf warning condition.
24291         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
24292         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
24293         and the function is overridden due to SIGPIPE emulation.
24294
24295 2010-02-20  Bruno Haible  <bruno@clisp.org>
24296
24297         * lib/stdio.in.h: Tweak comments.
24298
24299 2010-02-19  Bruno Haible  <bruno@clisp.org>
24300
24301         Make it easier to find modules. New gnulib-tool option '--find'.
24302         * gnulib-tool: New option --find.
24303         (func_usage): Document it.
24304         (func_sanitize_modulelist): New function, extracted from
24305         func_all_modules.
24306         (func_all_modules): Invoke it.
24307         * doc/gnulib-tool.texi (Which modules?): New node.
24308
24309 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
24310
24311         * lib/sys_select.in.h: Provide select replacement even if
24312         sys/select.h exists on a system, for Interix.
24313
24314 2010-02-18  Jim Meyering  <meyering@redhat.com>
24315
24316         init.sh: don't use $(...) just yet
24317         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
24318         to accommodate e.g., Solaris' /bin/sh.
24319
24320 2010-02-17  Bruno Haible  <bruno@clisp.org>
24321
24322         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
24323         Reported by Ludovic Courtès <ludo@gnu.org>.
24324
24325 2010-02-16  Simon Josefsson  <simon@josefsson.org>
24326
24327         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
24328         linking with -lintl.
24329
24330 2010-02-17  Simon Josefsson  <simon@josefsson.org>
24331
24332         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
24333         if not provided by the system's netdb.h.  Reported by
24334         ludo@gnu.org (Ludovic Courtès).
24335
24336 2010-02-15  Jim Meyering  <meyering@redhat.com>
24337
24338         init.sh: improve portability and efficiency
24339         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
24340         "dummy" in a for loop.
24341         Use '!', not '^' to select the complement of a character set used
24342         in a "case" statement.
24343         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
24344         Suggestions from Eric Blake.
24345
24346         init.sh: automatically accommodate programs with the .exe suffix
24347         Automatically arrange for an invocation of "prog" to execute the
24348         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
24349         may use the simpler "prog", yet still work when built on a system
24350         that requires specifying the added suffix.
24351         Do this by constructing a function named "prog" that invokes
24352         "prog.exe" for each .exe file in selected directories.
24353         * tests/init.sh (find_exe_basenames_): New function.
24354         (create_exe_shim_functions_): New function.
24355         (path_prepend_): Use it.
24356
24357         maint.mk: mark syntax-check sc_*.m rules as .PHONY
24358         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
24359         "make -t syntax-check" doesn't create a ton of sc_*.m files.
24360
24361 2010-02-14  Jim Meyering  <meyering@redhat.com>
24362
24363         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
24364         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
24365         (sc_prohibit_hash_pjw_without_use): New rule.
24366
24367         maint.mk: allow the default upload destination dir to be overridden
24368         * top/maint.mk (upload_dest_dir_): Define with a default that
24369         preserves the status quo.
24370         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
24371         Reported by Peter Simons.
24372
24373         maint.mk: prohibit inclusion of "hash.h" without_use
24374         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
24375
24376 2010-02-10  Jim Meyering  <meyering@redhat.com>
24377
24378         maint.mk: prohibit inclusion of "ignore-value.h" without_use
24379         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
24380
24381 2010-02-09  Eric Blake  <ebb9@byu.net>
24382         and Bruno Haible  <bruno@clisp.org>
24383
24384         obstack-printf-posix: ensure declaration
24385         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
24386         extracted from gl_FUNC_OBSTACK_PRINTF.
24387         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
24388         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24389         Likewise.
24390         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
24391         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
24392         0.
24393
24394 2010-02-08  Bruno Haible  <bruno@clisp.org>
24395
24396         gnulib-tool: Fix typo in 2010-02-07 commit.
24397         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
24398         Reported by Eric Blake.
24399
24400 2010-02-07  Bruno Haible  <bruno@clisp.org>
24401
24402         gnulib-tool: Fix up caching patches.
24403         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
24404         option --no-cache. Use associative arrays when supported by the shell.
24405         (sed_comments): New variable.
24406         (modcache): Renamed from do_cache.
24407         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
24408         abbreviate unnecessarily.
24409         (have_associative): New variable.
24410         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
24411         way also for ksh and zsh.
24412         (func_init_sed_convert_to_cache_statements): New function, extracted
24413         from func_cache_lookup_module. Add support for associative arrays.
24414         Don't set the c_MODULE_cached variable here. Ignore all lines before
24415         the first field header. Remove only the final newline, not all trailing
24416         newlines. Support empty fields correctly. Limit the use of 'eval' to
24417         assignments.
24418         (func_get_description, func_get_status, func_get_notice,
24419         func_get_applicability, func_get_filelist, func_get_dependencies,
24420         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
24421         func_get_automake_snippet, func_get_include_directive,
24422         func_get_link_directive, func_get_license, func_get_maintainer):
24423         Update documentation. List the unoptimized code first. Add support for
24424         associative arrays. Limit the use of 'eval' to assignments.
24425         (func_get_applicability): Undo stylistic pessimisations.
24426         (func_get_automake_snippet, func_get_include_directive): Reduce code
24427         duplication.
24428         (func_modules_transitive_closure, func_modules_add_dummy,
24429         func_modules_notice, func_modules_to_filelist, func_add_file,
24430         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
24431         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
24432         func_create_testdir, func_create_megatestdir): Update documentation.
24433
24434 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24435
24436         * gnulib-tool (func_cache_lookup_module): Store the module name
24437         belonging to the cache variable; error out if two different
24438         module names map to the same cache variable name.
24439
24440 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24441
24442         gnulib-tool: Make caching optional.
24443         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
24444         Update matching short versions of --no-changelog.
24445         (func_usage): Update.
24446         (sed_extract_cache_prog): Renamed from ...
24447         (sed_extract_prog): ... this; revert to old extraction script.
24448         (func_get_description, func_get_status)
24449         (func_get_notice, func_get_applicability, func_get_filelist)
24450         (func_get_dependencies, func_get_autoconf_early_snippet)
24451         (func_get_autoconf_snippet, func_get_automake_snippet)
24452         (func_get_include_directive, func_get_link_directive)
24453         (func_get_license, func_get_maintainer): If $do_cache is false,
24454         use old, non-caching extraction scripts.
24455         Suggestion by Bruno Haible.
24456
24457 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24458
24459         gnulib-tool: cache module metainformation.
24460         * gnulib-tool (sed_extract_prog): Match newline before each
24461         header, and rewrite header to a shell variable suffix.
24462         (func_cache_var, func_cache_lookup_module): New functions,
24463         to turn a module name into a cache variable prefix, and to
24464         look up and cache module metainformation.
24465         (func_get_description, func_get_status)
24466         (func_get_notice, func_get_applicability, func_get_filelist)
24467         (func_get_dependencies, func_get_autoconf_early_snippet)
24468         (func_get_autoconf_snippet, func_get_automake_snippet)
24469         (func_get_include_directive, func_get_link_directive)
24470         (func_get_license, func_get_maintainer): Use
24471         func_cache_lookup_module.
24472
24473 2010-02-07  Bruno Haible  <bruno@clisp.org>
24474
24475         fnctl: Fix missing dependency.
24476         * modules/fcntl (Depends-on): Add getdtablesize.
24477         Reported by John W. Eaton <jwe@gnu.org>.
24478
24479 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24480
24481         Argp: fix recognition of short alias options.
24482
24483         * lib/argp-parse.c (convert_options): Fix improper use of
24484         `|' between character values.
24485         * tests/test-argp.c (group1_option): New alias option
24486         --read (-r).
24487         (group1_parser): Special handling for 'r'.
24488         (test15): New test case.
24489         (test_fun): Add test15.
24490         * tests/test-argp-2.sh: Update expected --help and --usage
24491         outputs.
24492
24493 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24494
24495         * tests/test-argp.c: Fix indentation.
24496
24497 2010-02-04  Eric Blake  <ebb9@byu.net>
24498
24499         gettimeofday: expose type of second argument
24500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
24501         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
24502         * tests/test-gettimeofday.c: Use it to silence warning.
24503         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
24504         the issue.
24505
24506 2010-02-03  Jim Meyering  <meyering@redhat.com>
24507
24508         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
24509         * lib/regcomp.c (TYPE_SIGNED): Define.
24510         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
24511
24512         regcomp.c: avoid a new -Wshadow warning
24513         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24514
24515 2010-02-01  Jim Meyering  <meyering@redhat.com>
24516
24517         removing useless parentheses in cpp #define directives
24518         For motivation, see commit c0221df4, "define STREQ(a,b)
24519         consistently, removing useless parentheses"
24520         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24521         * lib/mountlist.c (MNT_IGNORE): Likewise.
24522         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24523
24524 2010-02-01  Eric Blake  <ebb9@byu.net>
24525
24526         sys_time: use link-warning
24527         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24528         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24529         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24530         * modules/sys_time (Depends-on): Add warn-on-use.
24531         (Makefile.am): Always build replacement.
24532         (configure.ac): Update substitutions.
24533         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24534         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24535         bother with SYS_TIME_H.
24536         * modules/gettimeofday (configure.ac): Declare indicator.
24537         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24538         in use.
24539
24540         closein-tests: silence compiler warning
24541         * tests/test-closein.c (main): Ignore fread result.
24542         * modules/closein-tests (Depends-on): Add ignore-value.
24543
24544         tests: silence warning about system return
24545         * tests/test-areadlink-with-size.c (main): Ignore system result.
24546         * tests/test-areadlink.c (main): Likewise.
24547         * tests/test-areadlinkat-with-size.c (main): Likewise.
24548         * tests/test-areadlinkat.c (main): Likewise.
24549         * tests/test-canonicalize-lgpl.c (main): Likewise.
24550         * tests/test-canonicalize.c (main): Likewise.
24551         * tests/test-chown.c (main): Likewise.
24552         * tests/test-fchownat.c (main): Likewise.
24553         * tests/test-fdutimensat.c (main): Likewise.
24554         * tests/test-fstatat.c (main): Likewise.
24555         * tests/test-futimens.c (main): Likewise.
24556         * tests/test-lchown.c (main): Likewise.
24557         * tests/test-link.c (main): Likewise.
24558         * tests/test-linkat.c (main): Likewise.
24559         * tests/test-lstat.c (main): Likewise.
24560         * tests/test-mkdir.c (main): Likewise.
24561         * tests/test-mkdirat.c (main): Likewise.
24562         * tests/test-mkfifo.c (main): Likewise.
24563         * tests/test-mkfifoat.c (main): Likewise.
24564         * tests/test-mknod.c (main): Likewise.
24565         * tests/test-readlink.c (main): Likewise.
24566         * tests/test-remove.c (main): Likewise.
24567         * tests/test-rename.c (main): Likewise.
24568         * tests/test-renameat.c (main): Likewise.
24569         * tests/test-rmdir.c (main): Likewise.
24570         * tests/test-symlink.c (main): Likewise.
24571         * tests/test-symlinkat.c (main): Likewise.
24572         * tests/test-unlink.c (main): Likewise.
24573         * tests/test-unlinkat.c (main): Likewise.
24574         * tests/test-utimens.c (main): Likewise.
24575         * tests/test-utimensat.c (main): Likewise.
24576         * modules/areadlink-tests (Depends-on): Add ignore-value.
24577         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24578         * modules/areadlinkat-tests (Depends-on): Likewise.
24579         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24580         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24581         * modules/canonicalize-tests (Depends-on): Likewise.
24582         * modules/chown-tests (Depends-on): Likewise.
24583         * modules/fdutimensat-tests (Depends-on): Likewise.
24584         * modules/futimens-tests (Depends-on): Likewise.
24585         * modules/lchown-tests (Depends-on): Likewise.
24586         * modules/link-tests (Depends-on): Likewise.
24587         * modules/linkat-tests (Depends-on): Likewise.
24588         * modules/lstat-tests (Depends-on): Likewise.
24589         * modules/mkdir-tests (Depends-on): Likewise.
24590         * modules/mkfifo-tests (Depends-on): Likewise.
24591         * modules/mkfifoat-tests (Depends-on): Likewise.
24592         * modules/mknod-tests (Depends-on): Likewise.
24593         * modules/openat-tests (Depends-on): Likewise.
24594         * modules/readlink-tests (Depends-on): Likewise.
24595         * modules/remove-tests (Depends-on): Likewise.
24596         * modules/rename-tests (Depends-on): Likewise.
24597         * modules/renameat-tests (Depends-on): Likewise.
24598         * modules/rmdir-tests (Depends-on): Likewise.
24599         * modules/symlink-tests (Depends-on): Likewise.
24600         * modules/symlinkat-tests (Depends-on): Likewise.
24601         * modules/unlink-tests (Depends-on): Likewise.
24602         * modules/utimens-tests (Depends-on): Likewise.
24603         * modules/utimensat-tests (Depends-on): Likewise.
24604
24605 2010-01-31  Bruno Haible  <bruno@clisp.org>
24606
24607         Perform the same test for many <math.h> functions.
24608         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24609         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24610         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24611         of gl_MATHFUNC.
24612         * modules/acos (configure.ac): Likewise.
24613         * modules/asin (configure.ac): Likewise.
24614         * modules/atan (configure.ac): Likewise.
24615         * modules/atan2 (configure.ac): Likewise.
24616         * modules/cbrt (configure.ac): Likewise.
24617         * modules/copysign (configure.ac): Likewise.
24618         * modules/cos (configure.ac): Likewise.
24619         * modules/cosh (configure.ac): Likewise.
24620         * modules/erf (configure.ac): Likewise.
24621         * modules/erfc (configure.ac): Likewise.
24622         * modules/exp (configure.ac): Likewise.
24623         * modules/fmod (configure.ac): Likewise.
24624         * modules/hypot (configure.ac): Likewise.
24625         * modules/j0 (configure.ac): Likewise.
24626         * modules/j1 (configure.ac): Likewise.
24627         * modules/jn (configure.ac): Likewise.
24628         * modules/lgamma (configure.ac): Likewise.
24629         * modules/log (configure.ac): Likewise.
24630         * modules/log10 (configure.ac): Likewise.
24631         * modules/log1p (configure.ac): Likewise.
24632         * modules/pow (configure.ac): Likewise.
24633         * modules/remainder (configure.ac): Likewise.
24634         * modules/sin (configure.ac): Likewise.
24635         * modules/sinh (configure.ac): Likewise.
24636         * modules/tan (configure.ac): Likewise.
24637         * modules/tanh (configure.ac): Likewise.
24638         * modules/y0 (configure.ac): Likewise.
24639         * modules/y1 (configure.ac): Likewise.
24640         * modules/yn (configure.ac): Likewise.
24641         Suggested by Paolo Bonzini.
24642
24643 2010-01-31  Bruno Haible  <bruno@clisp.org>
24644
24645         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24646
24647 2010-01-31  Bruno Haible  <bruno@clisp.org>
24648
24649         Work around getdelim() bug on FreeBSD 8.0.
24650         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24651         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24652         not work.
24653         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24654         is 1.
24655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24656         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24657         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24658         a non-zero size.
24659         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24660
24661 2010-01-31  Bruno Haible  <bruno@clisp.org>
24662
24663         Work around getline() bug on FreeBSD 8.0.
24664         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24665         and a non-zero size.
24666         * tests/test-getline.c (main): Likewise.
24667         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24668         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24669
24670 2010-01-28  Eric Blake  <ebb9@byu.net>
24671
24672         regex: fix build failure
24673         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24674         platforms.
24675
24676 2010-01-28  Jim Meyering  <meyering@redhat.com>
24677
24678         regex: do not ignore memory allocation failure
24679         * lib/regex_internal.c (create_cd_newstate): Detect
24680         re_node_set_init_copy failure.   Extracted from glibc commit
24681         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24682
24683         regex: sync more white-space changes from libc
24684         * lib/regex_internal.c: White-space only changes.
24685         * lib/regexec.c: Likewise.
24686
24687         regex: add many uses of __attribute_warn_unused_result__
24688         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24689         * lib/regexec.c: Likewise.
24690         Extracted from a messy glibc commit.
24691
24692         regcomp.c: spelling and merge-artifact from glibc
24693         * lib/regcomp.c: Merge remainder of glibc's
24694         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24695
24696         regcomp.c: sync white-space changes from glibc
24697         * lib/regcomp.c: Merge to accommodate white space
24698         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24699
24700         regcomp.c: do not ignore internal return values
24701         * lib/regcomp.c: Do not ignore internal return values.
24702         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24703         but without its white-space changes and spelling fixes.
24704
24705         regex_internal.h: define __attribute_warn_unused_result__
24706         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24707
24708         maint: add a syntax-check rule to check for vulnerable Makefile.in
24709         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24710
24711 2010-01-27  Jim Meyering  <meyering@redhat.com>
24712
24713         ncftpput-ftp: clean up spaces
24714         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24715         Remove trailing blanks.
24716
24717 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24718
24719         * build-aux/git-version-gen: Fix copyright statement.
24720         * build-aux/gnupload: Likewise.
24721         * tests/test-arcfour.c: Likewise.
24722         * tests/test-arctwo.c: Likewise.
24723         * tests/test-count-one-bits.c: Likewise.
24724         * tests/test-crc.c: Likewise.
24725         * tests/test-des.c: Likewise.
24726         * tests/test-gc-arcfour.c: Likewise.
24727         * tests/test-gc-arctwo.c: Likewise.
24728         * tests/test-gc-des.c: Likewise.
24729         * tests/test-gc-hmac-md5.c: Likewise.
24730         * tests/test-gc-hmac-sha1.c: Likewise.
24731         * tests/test-gc-md2.c: Likewise.
24732         * tests/test-gc-md4.c: Likewise.
24733         * tests/test-gc-md5.c: Likewise.
24734         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24735         * tests/test-gc-rijndael.c: Likewise.
24736         * tests/test-gc-sha1.c: Likewise.
24737         * tests/test-gc.c: Likewise.
24738         * tests/test-gethostname.c: Likewise.
24739         * tests/test-gettimeofday.c: Likewise.
24740         * tests/test-hash.c: Likewise.
24741         * tests/test-hmac-md5.c: Likewise.
24742         * tests/test-hmac-sha1.c: Likewise.
24743         * tests/test-md2.c: Likewise.
24744         * tests/test-md4.c: Likewise.
24745         * tests/test-md5.c: Likewise.
24746         * tests/test-memchr.c: Likewise.
24747         * tests/test-memchr2.c: Likewise.
24748         * tests/test-memcmp.c: Likewise.
24749         * tests/test-memmem.c: Likewise.
24750         * tests/test-memrchr.c: Likewise.
24751         * tests/test-rawmemchr.c: Likewise.
24752         * tests/test-read-file.c: Likewise.
24753         * tests/test-rijndael.c: Likewise.
24754         * tests/test-sockets.c: Likewise.
24755         * tests/test-strchrnul.c: Likewise.
24756         * tests/test-strstr.c: Likewise.
24757         * tests/test-strtod.c: Likewise.
24758         * build-aux/ncftpput-ftp: Likewise.
24759
24760 2010-01-26  Eric Blake  <ebb9@byu.net>
24761
24762         ignore-value: update recommended header name
24763         * modules/ignore-value (Include): Only use <> for headers that
24764         exist in glibc.
24765
24766 2010-01-26  Jim Meyering  <meyering@redhat.com>
24767
24768         test-userspec.c: avoid compiler warnings
24769         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24770         and "initialization discards qualifiers..." warnings.
24771         Put the first "uid" in its own scope, and make char* members "const".
24772
24773 2010-01-25  Bruno Haible  <bruno@clisp.org>
24774
24775         gnulib-tool: Make warning diagnostics consistent.
24776         * gnulib-tool (func_warning): New function.
24777         Use it everywhere where gnulib-tool produces output to stderr and it is
24778         not a fatal error.
24779
24780 2010-01-25  Bruno Haible  <bruno@clisp.org>
24781
24782         Fix test dependencies.
24783         * modules/xstrtol-tests (Depends-on): Add inttypes.
24784         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24785
24786 2010-01-25 Pádraig Brady <P@draigBrady.com>
24787
24788         syntax-check: detect incorrect boolean macro values in config.h
24789         * modules/maintainer-makefile (configure.ac): Parameterize the location
24790         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24791         The logic is from Eric Blake and the location indicated by Jim Meyering.
24792         Note the more natural CONFIG_HEADER name is prohibited by automake
24793         for backwards compatibility reasons.
24794         * top/maint.mk (sc_Wundef_boolean): New rule.
24795
24796 2010-01-25  Jim Meyering  <meyering@redhat.com>
24797
24798         bootstrap: detect MacOS 10.6's shasum, too
24799         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24800         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24801
24802 2010-01-23  Jim Meyering  <meyering@redhat.com>
24803
24804         xstrtoll: new module
24805         * modules/xstrtoll: New file.
24806         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24807         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24808         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24809         ./configure fails if you use this module and lack "long long".
24810         * modules/xstrtoll-tests: New module.
24811         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24812         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24813         new init.sh-based test framework.
24814
24815 2010-01-24  Bruno Haible  <bruno@clisp.org>
24816
24817         Tests for module 'yn'.
24818         * modules/yn-tests: New file.
24819         * tests/test-yn.c: New file.
24820
24821         Tests for module 'y1'.
24822         * modules/y1-tests: New file.
24823         * tests/test-y1.c: New file.
24824
24825         Tests for module 'y0'.
24826         * modules/y0-tests: New file.
24827         * tests/test-y0.c: New file.
24828
24829         Tests for module 'tanh'.
24830         * modules/tanh-tests: New file.
24831         * tests/test-tanh.c: New file.
24832
24833         Tests for module 'tan'.
24834         * modules/tan-tests: New file.
24835         * tests/test-tan.c: New file.
24836
24837         Tests for module 'sqrt'.
24838         * modules/sqrt-tests: New file.
24839         * tests/test-sqrt.c: New file.
24840
24841         Tests for module 'sinh'.
24842         * modules/sinh-tests: New file.
24843         * tests/test-sinh.c: New file.
24844
24845         Tests for module 'sin'.
24846         * modules/sin-tests: New file.
24847         * tests/test-sin.c: New file.
24848
24849         Tests for module 'rint'.
24850         * modules/rint-tests: New file.
24851         * tests/test-rint.c: New file.
24852
24853         Tests for module 'remainder'.
24854         * modules/remainder-tests: New file.
24855         * tests/test-remainder.c: New file.
24856
24857         Tests for module 'pow'.
24858         * modules/pow-tests: New file.
24859         * tests/test-pow.c: New file.
24860
24861         Tests for module 'nextafter'.
24862         * modules/nextafter-tests: New file.
24863         * tests/test-nextafter.c: New file.
24864
24865         Tests for module 'modf'.
24866         * modules/modf-tests: New file.
24867         * tests/test-modf.c: New file.
24868
24869         Tests for module 'logb'.
24870         * modules/logb-tests: New file.
24871         * tests/test-logb.c: New file.
24872
24873         Tests for module 'log1p'.
24874         * modules/log1p-tests: New file.
24875         * tests/test-log1p.c: New file.
24876
24877         Tests for module 'log10'.
24878         * modules/log10-tests: New file.
24879         * tests/test-log10.c: New file.
24880
24881         Tests for module 'log'.
24882         * modules/log-tests: New file.
24883         * tests/test-log.c: New file.
24884
24885         Tests for module 'lgamma'.
24886         * modules/lgamma-tests: New file.
24887         * tests/test-lgamma.c: New file.
24888
24889         Tests for module 'ldexp'.
24890         * modules/ldexp-tests: New file.
24891         * tests/test-ldexp.c: New file.
24892
24893         Tests for module 'jn'.
24894         * modules/jn-tests: New file.
24895         * tests/test-jn.c: New file.
24896
24897         Tests for module 'j1'.
24898         * modules/j1-tests: New file.
24899         * tests/test-j1.c: New file.
24900
24901         Tests for module 'j0'.
24902         * modules/j0-tests: New file.
24903         * tests/test-j0.c: New file.
24904
24905         Tests for module 'hypot'.
24906         * modules/hypot-tests: New file.
24907         * tests/test-hypot.c: New file.
24908
24909         Tests for module 'fmod'.
24910         * modules/fmod-tests: New file.
24911         * tests/test-fmod.c: New file.
24912
24913         Tests for module 'fabs'.
24914         * modules/fabs-tests: New file.
24915         * tests/test-fabs.c: New file.
24916
24917         Tests for module 'exp'.
24918         * modules/exp-tests: New file.
24919         * tests/test-exp.c: New file.
24920
24921         Tests for module 'erfc'.
24922         * modules/erfc-tests: New file.
24923         * tests/test-erfc.c: New file.
24924
24925         Tests for module 'erf'.
24926         * modules/erf-tests: New file.
24927         * tests/test-erf.c: New file.
24928
24929         Tests for module 'cosh'.
24930         * modules/cosh-tests: New file.
24931         * tests/test-cosh.c: New file.
24932
24933         Tests for module 'cos'.
24934         * modules/cos-tests: New file.
24935         * tests/test-cos.c: New file.
24936
24937         Tests for module 'copysign'.
24938         * modules/copysign-tests: New file.
24939         * tests/test-copysign.c: New file.
24940
24941         Tests for module 'cbrt'.
24942         * modules/cbrt-tests: New file.
24943         * tests/test-cbrt.c: New file.
24944
24945         Tests for module 'atan2'.
24946         * modules/atan2-tests: New file.
24947         * tests/test-atan2.c: New file.
24948
24949         Tests for module 'atan'.
24950         * modules/atan-tests: New file.
24951         * tests/test-atan.c: New file.
24952
24953         Tests for module 'asin'.
24954         * modules/asin-tests: New file.
24955         * tests/test-asin.c: New file.
24956
24957         Tests for module 'acos'.
24958         * modules/acos-tests: New file.
24959         * tests/test-acos.c: New file.
24960
24961 2010-01-24  Bruno Haible  <bruno@clisp.org>
24962
24963         Fix tests for common <math.h> functions.
24964         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24965         code snippet that references the function pointer, rather than merely
24966         calling the function. Substitute the FUNC_LIBM variable.
24967         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24968         * modules/acos (configure.ac): Likewise.
24969         * modules/asin (configure.ac): Likewise.
24970         * modules/atan (configure.ac): Likewise.
24971         * modules/atan2 (configure.ac): Likewise.
24972         * modules/cbrt (configure.ac): Likewise.
24973         * modules/copysign (configure.ac): Likewise.
24974         * modules/cos (configure.ac): Likewise.
24975         * modules/cosh (configure.ac): Likewise.
24976         * modules/erf (configure.ac): Likewise.
24977         * modules/erfc (configure.ac): Likewise.
24978         * modules/exp (configure.ac): Likewise.
24979         * modules/fabs (configure.ac): Likewise.
24980         * modules/fmod (configure.ac): Likewise.
24981         * modules/hypot (configure.ac): Likewise.
24982         * modules/j0 (configure.ac): Likewise.
24983         * modules/j1 (configure.ac): Likewise.
24984         * modules/jn (configure.ac): Likewise.
24985         * modules/ldexp (configure.ac): Likewise.
24986         * modules/lgamma (configure.ac): Likewise.
24987         * modules/log (configure.ac): Likewise.
24988         * modules/log10 (configure.ac): Likewise.
24989         * modules/log1p (configure.ac): Likewise.
24990         * modules/logb (configure.ac): Likewise.
24991         * modules/modf (configure.ac): Likewise.
24992         * modules/nextafter (configure.ac): Likewise.
24993         * modules/pow (configure.ac): Likewise.
24994         * modules/remainder (configure.ac): Likewise.
24995         * modules/rint (configure.ac): Likewise.
24996         * modules/sin (configure.ac): Likewise.
24997         * modules/sinh (configure.ac): Likewise.
24998         * modules/tan (configure.ac): Likewise.
24999         * modules/tanh (configure.ac): Likewise.
25000         * modules/y0 (configure.ac): Likewise.
25001         * modules/y1 (configure.ac): Likewise.
25002         * modules/yn (configure.ac): Likewise.
25003
25004 2010-01-24  Bruno Haible  <bruno@clisp.org>
25005
25006         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
25007         * tests/test-acosl.c (x): New variable.
25008         (main): Store argument in x and fetch it from x.
25009         * tests/test-asinl.c (x): New variable.
25010         (main): Store argument in x and fetch it from x.
25011         * tests/test-atanl.c (x): New variable.
25012         (main): Store argument in x and fetch it from x.
25013         * tests/test-cosl.c (x): New variable.
25014         (main): Store argument in x and fetch it from x.
25015         * tests/test-expl.c (x): New variable.
25016         (main): Store argument in x and fetch it from x.
25017         * tests/test-logl.c (x): New variable.
25018         (main): Store argument in x and fetch it from x.
25019         * tests/test-sinl.c (x): New variable.
25020         (main): Store argument in x and fetch it from x.
25021         * tests/test-sqrtl.c (x): New variable.
25022         (main): Store argument in x and fetch it from x.
25023         * tests/test-tanl.c (x): New variable.
25024         (main): Store argument in x and fetch it from x.
25025
25026 2010-01-24  Bruno Haible  <bruno@clisp.org>
25027
25028         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
25029         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
25030         assignments to the initial TESTS_ENVIRONMENT.
25031         * doc/gnulib.texi (Unit test modules): Document it.
25032         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
25033         TESTS_ENVIRONMENT.
25034         * modules/btowc-tests (Makefile.am): Likewise.
25035         * modules/c-stack-tests (Makefile.am): Likewise.
25036         * modules/c-strcase-tests (Makefile.am): Likewise.
25037         * modules/copy-file-tests (Makefile.am): Likewise.
25038         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
25039         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
25040         * modules/mbrtowc-tests (Makefile.am): Likewise.
25041         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25042         * modules/mbscasestr-tests (Makefile.am): Likewise.
25043         * modules/mbschr-tests (Makefile.am): Likewise.
25044         * modules/mbscspn-tests (Makefile.am): Likewise.
25045         * modules/mbsinit-tests (Makefile.am): Likewise.
25046         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25047         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
25048         * modules/mbspbrk-tests (Makefile.am): Likewise.
25049         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25050         * modules/mbsrchr-tests (Makefile.am): Likewise.
25051         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
25052         * modules/mbsspn-tests (Makefile.am): Likewise.
25053         * modules/mbsstr-tests (Makefile.am): Likewise.
25054         * modules/nl_langinfo-tests (Makefile.am): Likewise.
25055         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
25056         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25057         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25058         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25059         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25060         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
25061         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25062         * modules/wcrtomb-tests (Makefile.am): Likewise.
25063         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
25064         * modules/wcsrtombs-tests (Makefile.am): Likewise.
25065         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
25066         assignments from TESTS_ENVIRONMENT.
25067         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
25068         augmentation.
25069         * modules/argp-version-etc-tests (Makefile.am): Likewise.
25070         * modules/atexit-tests (Makefile.am): Likewise.
25071         * modules/binary-io-tests (Makefile.am): Likewise.
25072         * modules/closein-tests (Makefile.am): Likewise.
25073         * modules/dprintf-posix-tests (Makefile.am): Likewise.
25074         * modules/exclude-tests (Makefile.am): Likewise.
25075         * modules/fflush-tests (Makefile.am): Likewise.
25076         * modules/fpending-tests (Makefile.am): Likewise.
25077         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25078         * modules/freadahead-tests (Makefile.am): Likewise.
25079         * modules/freadptr-tests (Makefile.am): Likewise.
25080         * modules/freadseek-tests (Makefile.am): Likewise.
25081         * modules/fseek-tests (Makefile.am): Likewise.
25082         * modules/fseeko-tests (Makefile.am): Likewise.
25083         * modules/ftell-tests (Makefile.am): Likewise.
25084         * modules/ftello-tests (Makefile.am): Likewise.
25085         * modules/idpriv-drop-tests (Makefile.am): Likewise.
25086         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
25087         * modules/lseek-tests (Makefile.am): Likewise.
25088         * modules/parse-duration-tests (Makefile.am): Likewise.
25089         * modules/perror-tests (Makefile.am): Likewise.
25090         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
25091         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
25092         * modules/pipe-tests (Makefile.am): Likewise.
25093         * modules/pread-tests (Makefile.am): Likewise.
25094         * modules/printf-posix-tests (Makefile.am): Likewise.
25095         * modules/select-tests (Makefile.am): Likewise.
25096         * modules/sigpipe-tests (Makefile.am): Likewise.
25097         * modules/tsearch-tests (Makefile.am): Likewise.
25098         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
25099         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
25100         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25101         * modules/uniwidth/width-tests (Makefile.am): Likewise.
25102         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
25103         * modules/version-etc-tests (Makefile.am): Likewise.
25104         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25105         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25106         * modules/xalloc-die-tests (Makefile.am): Likewise.
25107         * modules/xprintf-posix-tests (Makefile.am): Likewise.
25108         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25109         * modules/xstrtol-tests (Makefile.am): Likewise.
25110         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25111         * modules/yesno-tests (Makefile.am): Likewise.
25112         Suggested by Jim Meyering.
25113
25114 2010-01-24  Bruno Haible  <bruno@clisp.org>
25115
25116         More documentation.
25117         * doc/gnulib.texi (Writing modules): New chapter.
25118         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
25119         the new chapter.
25120
25121 2010-01-24  Jim Meyering  <meyering@redhat.com>
25122
25123         maint.mk: do not prepend "./" after filtering
25124         * top/maint.mk (_prepend_srcdir_prefix): New variable
25125         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
25126         "./" when $(srcdir) is ".".
25127
25128         define STREQ(a,b) consistently, removing useless parentheses
25129         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
25130         since the only risk is that "a" or "b" contains an unparenthesized
25131         comma, but if either did that, STREQ would have 3 or more arguments.
25132         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
25133         * lib/fts.c (STREQ): Remove unnecessary parentheses.
25134         * lib/hash-triple.c (STREQ): Likewise.
25135         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
25136         * lib/getugroups.c (STREQ): Likewise.
25137
25138 2010-01-23  Jim Meyering  <meyering@redhat.com>
25139
25140         maint.mk: fix syntax-check in a non-srcdir build directory
25141         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
25142         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
25143
25144 2010-01-22  Jim Meyering  <meyering@redhat.com>
25145
25146         userspec: add unit tests
25147         * tests/test-userspec.c: New file.
25148         * modules/userspec-tests: Likewise.
25149
25150 2010-01-21  Jim Meyering  <meyering@redhat.com>
25151
25152         maint.mk: handle source file names containing "." robustly
25153         * top/maint.mk (_dot_escaped_srcdir): Define.
25154         (VC_LIST): Use it in LHS of sed substitution.
25155
25156 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
25157
25158         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
25159         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
25160         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
25161         from a non-srcdir build.
25162
25163 2010-01-20  Eric Blake  <ebb9@byu.net>
25164
25165         warn-on-use: use instead of link-warning
25166         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
25167         * modules/unistd (Depends-on, Makefile.am): Likewise.
25168         * modules/arpa_inet (Depends-on): Replace link-warning with
25169         warn-on-use.
25170         (Makefile.am): Update rules accordingly.
25171         * modules/ctype (Depends-on, Makefile.am): Likewise.
25172         * modules/dirent (Depends-on, Makefile.am): Likewise.
25173         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
25174         * modules/inttypes (Depends-on, Makefile.am): Likewise.
25175         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25176         * modules/locale (Depends-on, Makefile.am): Likewise.
25177         * modules/math (Depends-on, Makefile.am): Likewise.
25178         * modules/search (Depends-on, Makefile.am): Likewise.
25179         * modules/signal (Depends-on, Makefile.am): Likewise.
25180         * modules/spawn (Depends-on, Makefile.am): Likewise.
25181         * modules/stdlib (Depends-on, Makefile.am): Likewise.
25182         * modules/string (Depends-on, Makefile.am): Likewise.
25183         * modules/strings (Depends-on, Makefile.am): Likewise.
25184         * modules/sys_file (Depends-on, Makefile.am): Likewise.
25185         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
25186         * modules/sys_select (Depends-on, Makefile.am): Likewise.
25187         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
25188         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
25189         * modules/sys_times (Depends-on, Makefile.am): Likewise.
25190         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25191         * modules/wchar (Depends-on, Makefile.am): Likewise.
25192         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
25193         should be poisoned.
25194         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
25195         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
25196         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
25197         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25198         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25199         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25200         * m4/math_h.m4 (gl_MATH_H): Likewise.
25201         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25202         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25203         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25204         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
25205         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25206         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
25207         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25208         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
25209         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25210         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25211         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25212         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25213         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25214         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25215         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25216         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25217         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
25218         GL_LINK_WARNING.
25219         * lib/ctype.in.h: Likewise.
25220         * lib/dirent.in.h: Likewise.
25221         * lib/fcntl.in.h: Likewise.
25222         * lib/inttypes.in.h: Likewise.
25223         * lib/langinfo.in.h: Likewise.
25224         * lib/locale.in.h: Likewise.
25225         * lib/math.in.h: Likewise.
25226         * lib/search.in.h: Likewise.
25227         * lib/signal.in.h: Likewise.
25228         * lib/spawn.in.h: Likewise.
25229         * lib/stdio.in.h: Likewise.
25230         * lib/stdlib.in.h: Likewise.
25231         * lib/string.in.h: Likewise.
25232         * lib/strings.in.h: Likewise.
25233         * lib/sys_file.in.h: Likewise.
25234         * lib/sys_ioctl.in.h: Likewise.
25235         * lib/sys_select.in.h: Likewise.
25236         * lib/sys_socket.in.h: Likewise.
25237         * lib/sys_stat.in.h: Likewise.
25238         * lib/sys_times.in.h: Likewise.
25239         * lib/sys_utsname.in.h: Likewise.
25240         * lib/unistd.in.h: Likewise.
25241         * lib/wchar.in.h: Likewise.
25242
25243 2010-01-20  Bruno Haible  <bruno@clisp.org>
25244
25245         Avoid duplicate -lm.
25246         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
25247         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
25248         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
25249         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
25250         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
25251         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
25252         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
25253         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
25254         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
25255         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
25256         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25257         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25258         Reported by Paolo Bonzini.
25259
25260 2010-01-19  Bruno Haible  <bruno@clisp.org>
25261
25262         langinfo, nl_langinfo: Relicense under LGPLv2+.
25263         * modules/langinfo (License): Change to LGPLv2+.
25264         * modules/nl_langinfo (License): Likewise.
25265         Patch by David Lutterkort <lutter@redhat.com>.
25266
25267 2010-01-19  Bruno Haible  <bruno@clisp.org>
25268
25269         Avoid compilation error with cc on OSF/1 5.1.
25270         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
25271         statement, not before.
25272         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25273
25274 2010-01-18  Bruno Haible  <bruno@clisp.org>
25275
25276         Avoid a link error due to the __printf__ symbol.
25277         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
25278         and 2.6.x.
25279         (__format__, __printf__): Remove definitions.
25280         * lib/argp-fmtstream.h: Likewise.
25281         * lib/argp.h: Likewise.
25282         * lib/error.h: Likewise.
25283         * lib/vasnprintf.h: Likewise.
25284         * lib/xprintf.h: Likewise.
25285         * lib/xvasprintf.h: Likewise.
25286         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25287
25288 2010-01-18  Bruno Haible  <bruno@clisp.org>
25289
25290         Tests for module 'tanl'.
25291         * modules/tanl-tests: New file.
25292         * tests/test-tanl.c: New file.
25293
25294         Tests for module 'sqrtl'.
25295         * modules/sqrtl-tests: New file.
25296         * tests/test-sqrtl.c: New file.
25297
25298         Tests for module 'sinl'.
25299         * modules/sinl-tests: New file.
25300         * tests/test-sinl.c: New file.
25301
25302         Tests for module 'logl'.
25303         * modules/logl-tests: New file.
25304         * tests/test-logl.c: New file.
25305
25306         Tests for module 'expl'.
25307         * modules/expl-tests: New file.
25308         * tests/test-expl.c: New file.
25309
25310         Tests for module 'cosl'.
25311         * modules/cosl-tests: New file.
25312         * tests/test-cosl.c: New file.
25313
25314         Tests for module 'atanl'.
25315         * modules/atanl-tests: New file.
25316         * tests/test-atanl.c: New file.
25317
25318         Tests for module 'asinl'.
25319         * modules/asinl-tests: New file.
25320         * tests/test-asinl.c: New file.
25321
25322         Tests for module 'acosl'.
25323         * modules/acosl-tests: New file.
25324         * tests/test-acosl.c: New file.
25325
25326         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25327         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25328         tanl): Use the standard gnulib idiom.
25329         * lib/cosl.c: Don't include trigl.c and sincosl.c.
25330         * lib/sinl.c: Likewise.
25331         * lib/tanl.c: Don't include trigl.c.
25332         (kernel_tanl): Make static.
25333         * lib/sincosl.c: Include trigl.h first.
25334         * lib/trigl.c: Likewise.
25335         * m4/acosl.m4: New file.
25336         * m4/asinl.m4: New file.
25337         * m4/atanl.m4: New file.
25338         * m4/cosl.m4: New file.
25339         * m4/expl.m4: New file.
25340         * m4/logl.m4: New file.
25341         * m4/sinl.m4: New file.
25342         * m4/sqrtl.m4: New file.
25343         * m4/tanl.m4: New file.
25344         * m4/mathl.m4: Remove file.
25345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
25346         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25347         Don't initialize GNULIB_MATHL.
25348         * modules/acosl: New file.
25349         * modules/asinl: New file.
25350         * modules/atanl: New file.
25351         * modules/cosl: New file.
25352         * modules/expl: New file.
25353         * modules/logl: New file.
25354         * modules/sinl: New file.
25355         * modules/sqrtl: New file.
25356         * modules/tanl: New file.
25357         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
25358         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
25359         substitute GNULIB_MATHL.
25360         * modules/mathl: Rewritten.
25361         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
25362         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
25363         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
25364         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
25365         * doc/posix-functions/expl.texi: Mention the 'expl' module.
25366         * doc/posix-functions/logl.texi: Mention the 'logl' module.
25367         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
25368         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
25369         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
25370
25371 2010-01-18  Bruno Haible  <bruno@clisp.org>
25372
25373         sqrt: Make gl_FUNC_SQRT requirable.
25374         * m4/sqrt.m4: New file.
25375         * modules/sqrt (Files): Add it.
25376         (configure.ac): Invoke gl_FUNC_SQRT.
25377
25378 2010-01-18  Bruno Haible  <bruno@clisp.org>
25379
25380         New modules for common <math.h> functions.
25381         * m4/mathfunc.m4: New file.
25382         * modules/acos: New file.
25383         * modules/asin: New file.
25384         * modules/atan: New file.
25385         * modules/atan2: New file.
25386         * modules/cbrt: New file.
25387         * modules/copysign: New file.
25388         * modules/cos: New file.
25389         * modules/cosh: New file.
25390         * modules/erf: New file.
25391         * modules/erfc: New file.
25392         * modules/exp: New file.
25393         * modules/fabs: New file.
25394         * modules/fmod: New file.
25395         * modules/hypot: New file.
25396         * modules/j0: New file.
25397         * modules/j1: New file.
25398         * modules/jn: New file.
25399         * modules/ldexp: New file.
25400         * modules/lgamma: New file.
25401         * modules/log: New file.
25402         * modules/log10: New file.
25403         * modules/log1p: New file.
25404         * modules/logb: New file.
25405         * modules/modf: New file.
25406         * modules/nextafter: New file.
25407         * modules/pow: New file.
25408         * modules/remainder: New file.
25409         * modules/rint: New file.
25410         * modules/sin: New file.
25411         * modules/sinh: New file.
25412         * modules/sqrt: New file.
25413         * modules/tan: New file.
25414         * modules/tanh: New file.
25415         * modules/y0: New file.
25416         * modules/y1: New file.
25417         * modules/yn: New file.
25418         * doc/posix-functions/acos.texi: Mention the 'acos' module.
25419         * doc/posix-functions/asin.texi: Mention the 'asin' module.
25420         * doc/posix-functions/atan.texi: Mention the 'atan' module.
25421         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
25422         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
25423         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
25424         * doc/posix-functions/cos.texi: Mention the 'cos' module.
25425         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
25426         * doc/posix-functions/erf.texi: Mention the 'erf' module.
25427         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
25428         * doc/posix-functions/exp.texi: Mention the 'exp' module.
25429         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
25430         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
25431         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
25432         * doc/posix-functions/j0.texi: Mention the 'j0' module.
25433         * doc/posix-functions/j1.texi: Mention the 'j1' module.
25434         * doc/posix-functions/jn.texi: Mention the 'jn' module.
25435         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
25436         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
25437         * doc/posix-functions/log.texi: Mention the 'log' module.
25438         * doc/posix-functions/log10.texi: Mention the 'log10' module.
25439         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
25440         * doc/posix-functions/logb.texi: Mention the 'logb' module.
25441         * doc/posix-functions/modf.texi: Mention the 'modf' module.
25442         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
25443         * doc/posix-functions/pow.texi: Mention the 'pow' module.
25444         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
25445         * doc/posix-functions/rint.texi: Mention the 'rint' module.
25446         * doc/posix-functions/sin.texi: Mention the 'sin' module.
25447         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
25448         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
25449         * doc/posix-functions/tan.texi: Mention the 'tan' module.
25450         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
25451         * doc/posix-functions/y0.texi: Mention the 'y0' module.
25452         * doc/posix-functions/y1.texi: Mention the 'y1' module.
25453         * doc/posix-functions/yn.texi: Mention the 'yn' module.
25454
25455 2010-01-18  Jim Meyering  <meyering@redhat.com>
25456
25457         ignore-value: relax license to LGPLv2+
25458         * modules/ignore-value (License): Relax to LGPLv2+.
25459
25460         getdate: don't leak when TZ contains two or more '"'s
25461         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
25462         double quote in TZ after the first one.
25463
25464         readtokens: do not leak internal token_lengths buffer
25465         * lib/readtokens.c (readtokens): Free the local, lengths,
25466         when the supplied "token_lengths" parameter is NULL.
25467
25468 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25469
25470         Fix a couple of missing LIBTHREAD link failures on AIX.
25471         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
25472         $(LIBTHREAD).
25473         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
25474
25475         Link test-poll against INET_PTON_LIB.
25476         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
25477         for inet_pton on Solaris 10.
25478
25479 2010-01-17  Bruno Haible  <bruno@clisp.org>
25480
25481         unistdio/*-sprintf: Fix typo in module description.
25482         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
25483         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
25484         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
25485         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
25486         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
25487         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
25488         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
25489         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25490
25491 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25492
25493         gnulib-tool: fix filelist for AIX, HP-UX ksh.
25494         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
25495         variables in shell case patterns, for AIX and HP-UX ksh.
25496
25497         Split large sed scripts, for HP-UX sed.
25498         * modules/stdio: Split sed scripts around 50 sed commands,
25499         to avoid HP-UX limit of 99 commands, in the near future.
25500         * modules/string: Likewise.
25501         * modules/unistd: Likewise.
25502
25503         gnulib-tool: avoid writing in the current directory.
25504         * gnulib-tool (func_emit_lib_Makefile_am)
25505         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
25506         not in the current directory, so concurrent gnulib-tool
25507         instances do not interfere.
25508
25509 2010-01-16  Jim Meyering  <meyering@redhat.com>
25510
25511         doc: update users.txt
25512         * users.txt: Add grep.
25513         (diffutils, gzip): Update URLs.
25514
25515 2010-01-12  Bruno Haible  <bruno@clisp.org>
25516
25517         posix_spawn: Avoid test failure on Cygwin.
25518         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25519         characters.
25520         Reported by Simon Josefsson.
25521
25522 2010-01-12  Bruno Haible  <bruno@clisp.org>
25523
25524         * tests/test-cond.c (main): When skipping the test, show the reason.
25525
25526 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25527
25528         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25529
25530 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25531
25532         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25533         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25534
25535 2010-01-12  Eric Blake  <ebb9@byu.net>
25536
25537         build: guarantee AS_VAR_IF
25538         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25539         (gl_AS_VAR_IF): Move...
25540         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25541         Reported by Simon Josefsson.
25542
25543 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25544
25545         * lib/stdio.in.h: Fix typo.
25546
25547 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25548
25549         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25550         libgpg-error.
25551
25552 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25553
25554         * tests/test-xalloc-die.sh: Use $EXEEXT.
25555
25556 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25557             Bruno Haible  <bruno@clisp.org>
25558
25559         getlogin, getlogin_r: Avoid test failure.
25560         * tests/test-getlogin.c: Include <stdio.h>.
25561         (main): Skip the test when the function fails because stdin is not a
25562         tty.
25563         * tests/test-getlogin_r.c: Include <stdio.h>.
25564         (main): Skip the test when the function fails because stdin is not a
25565         tty.
25566
25567 2010-01-11  Eric Blake  <ebb9@byu.net>
25568
25569         tests: avoid more large file warnings
25570         * tests/test-fflush.c: Avoid warning about ftell use.
25571         * tests/test-fseek.c: Avoid warning about fseek use.
25572
25573 2010-01-10  Bruno Haible  <bruno@clisp.org>
25574
25575         nproc: Work better on Linux when /proc and /sys are not mounted.
25576         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25577         as lower bound when, on glibc/Linux systems,
25578         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25579         Suggested by Pádraig Brady <P@draigbrady.com>.
25580         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25581
25582         nproc: Refactor.
25583         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25584         extracted from num_processors.
25585         (num_processors): Call it.
25586
25587 2010-01-11  Jim Meyering  <meyering@redhat.com>
25588
25589         utimecmp: avoid new warning from upcoming gcc-4.5.0
25590         * lib/utimecmp.c (BILLION): Define using #define rather than an
25591         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25592
25593 2010-01-11  Eric Blake  <ebb9@byu.net>
25594
25595         math: add portability warnings for classification macros
25596         * modules/math (Depends-on): Add warn-on-use.
25597         (Makefile.am): Provide new substitutions.
25598         * m4/math_h.m4 (gl_MATH_H): Require inline.
25599         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25600         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25601         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25602         implement warnings.
25603
25604         unistd: warn on use of environ without module
25605         * modules/unistd (Depends-on): Add warn-on-use.
25606         (Makefile.am): Provide new substitutions.
25607         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25608         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25609
25610         stdio: warn on suspicious uses
25611         * modules/stdio (Depends-on): Add warn-on-use.
25612         (Makefile.am): Provide new substitutions.
25613         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25614         fseeko.
25615         * lib/stdio.in.h (gets): Always warn on use.
25616         (fseek, ftell): Adjust when warnings are issued, and honor
25617         _GL_NO_LARGE_FILES as a way to silence the warning.
25618         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25619         any warning about large file offsets.
25620         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25621         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25622         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25623         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25624         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25625         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25626         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25627         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25628
25629         warn-on-use: new module
25630         * modules/warn-on-use: New file.
25631         * build-aux/warn-on-use.h: Likewise.
25632         * m4/warn-on-use.m4: Likewise.
25633         * MODULES.html.sh (Support for building): Mention it.
25634
25635 2010-01-10  Bruno Haible  <bruno@clisp.org>
25636
25637         Tests for module 'unistr/u32-strdup'.
25638         * modules/unistr/u32-strdup-tests: New file.
25639         * tests/unistr/test-u32-strdup.c: New file.
25640
25641         Tests for module 'unistr/u16-strdup'.
25642         * modules/unistr/u16-strdup-tests: New file.
25643         * tests/unistr/test-u16-strdup.c: New file.
25644
25645         Tests for module 'unistr/u8-strdup'.
25646         * modules/unistr/u8-strdup-tests: New file.
25647         * tests/unistr/test-u8-strdup.c: New file.
25648         * tests/unistr/test-strdup.h: New file.
25649
25650         Tests for module 'unistr/u32-strncmp'.
25651         * modules/unistr/u32-strncmp-tests: New file.
25652         * tests/unistr/test-u32-strncmp.c: New file.
25653
25654         Tests for module 'unistr/u16-strncmp'.
25655         * modules/unistr/u16-strncmp-tests: New file.
25656         * tests/unistr/test-u16-strncmp.c: New file.
25657
25658         Tests for module 'unistr/u8-strncmp'.
25659         * modules/unistr/u8-strncmp-tests: New file.
25660         * tests/unistr/test-u8-strncmp.c: New file.
25661         * tests/unistr/test-strncmp.h: New file.
25662
25663         Tests for module 'unistr/u32-strcoll'.
25664         * modules/unistr/u32-strcoll-tests: New file.
25665         * tests/unistr/test-u32-strcoll.c: New file.
25666
25667         Tests for module 'unistr/u16-strcoll'.
25668         * modules/unistr/u16-strcoll-tests: New file.
25669         * tests/unistr/test-u16-strcoll.c: New file.
25670
25671         Tests for module 'unistr/u8-strcoll'.
25672         * modules/unistr/u8-strcoll-tests: New file.
25673         * tests/unistr/test-u8-strcoll.c: New file.
25674
25675         Tests for module 'unistr/u32-strcmp'.
25676         * modules/unistr/u32-strcmp-tests: New file.
25677         * tests/unistr/test-u32-strcmp.c: New file.
25678         * tests/unistr/test-u32-strcmp.h: New file.
25679
25680         Tests for module 'unistr/u16-strcmp'.
25681         * modules/unistr/u16-strcmp-tests: New file.
25682         * tests/unistr/test-u16-strcmp.c: New file.
25683         * tests/unistr/test-u16-strcmp.h: New file.
25684
25685         Tests for module 'unistr/u8-strcmp'.
25686         * modules/unistr/u8-strcmp-tests: New file.
25687         * tests/unistr/test-u8-strcmp.c: New file.
25688         * tests/unistr/test-u8-strcmp.h: New file.
25689         * tests/unistr/test-strcmp.h: New file.
25690
25691         Tests for module 'unistr/u32-strncat'.
25692         * modules/unistr/u32-strncat-tests: New file.
25693         * tests/unistr/test-u32-strncat.c: New file.
25694
25695         Tests for module 'unistr/u16-strncat'.
25696         * modules/unistr/u16-strncat-tests: New file.
25697         * tests/unistr/test-u16-strncat.c: New file.
25698
25699         Tests for module 'unistr/u8-strncat'.
25700         * modules/unistr/u8-strncat-tests: New file.
25701         * tests/unistr/test-u8-strncat.c: New file.
25702         * tests/unistr/test-strncat.h: New file.
25703
25704         Tests for module 'unistr/u32-strcat'.
25705         * modules/unistr/u32-strcat-tests: New file.
25706         * tests/unistr/test-u32-strcat.c: New file.
25707
25708         Tests for module 'unistr/u16-strcat'.
25709         * modules/unistr/u16-strcat-tests: New file.
25710         * tests/unistr/test-u16-strcat.c: New file.
25711
25712         Tests for module 'unistr/u8-strcat'.
25713         * modules/unistr/u8-strcat-tests: New file.
25714         * tests/unistr/test-u8-strcat.c: New file.
25715         * tests/unistr/test-strcat.h: New file.
25716
25717         Tests for module 'unistr/u32-stpncpy'.
25718         * modules/unistr/u32-stpncpy-tests: New file.
25719         * tests/unistr/test-u32-stpncpy.c: New file.
25720
25721         Tests for module 'unistr/u16-stpncpy'.
25722         * modules/unistr/u16-stpncpy-tests: New file.
25723         * tests/unistr/test-u16-stpncpy.c: New file.
25724
25725         Tests for module 'unistr/u8-stpncpy'.
25726         * modules/unistr/u8-stpncpy-tests: New file.
25727         * tests/unistr/test-u8-stpncpy.c: New file.
25728         * tests/unistr/test-stpncpy.h: New file.
25729
25730         Tests for module 'unistr/u32-strncpy'.
25731         * modules/unistr/u32-strncpy-tests: New file.
25732         * tests/unistr/test-u32-strncpy.c: New file.
25733
25734         Tests for module 'unistr/u16-strncpy'.
25735         * modules/unistr/u16-strncpy-tests: New file.
25736         * tests/unistr/test-u16-strncpy.c: New file.
25737
25738         Tests for module 'unistr/u8-strncpy'.
25739         * modules/unistr/u8-strncpy-tests: New file.
25740         * tests/unistr/test-u8-strncpy.c: New file.
25741         * tests/unistr/test-strncpy.h: New file.
25742
25743         Tests for module 'unistr/u32-stpcpy'.
25744         * modules/unistr/u32-stpcpy-tests: New file.
25745         * tests/unistr/test-u32-stpcpy.c: New file.
25746
25747         Tests for module 'unistr/u16-stpcpy'.
25748         * modules/unistr/u16-stpcpy-tests: New file.
25749         * tests/unistr/test-u16-stpcpy.c: New file.
25750
25751         Tests for module 'unistr/u8-stpcpy'.
25752         * modules/unistr/u8-stpcpy-tests: New file.
25753         * tests/unistr/test-u8-stpcpy.c: New file.
25754         * tests/unistr/test-stpcpy.h: New file.
25755
25756         Tests for module 'unistr/u32-strcpy'.
25757         * modules/unistr/u32-strcpy-tests: New file.
25758         * tests/unistr/test-u32-strcpy.c: New file.
25759
25760         Tests for module 'unistr/u16-strcpy'.
25761         * modules/unistr/u16-strcpy-tests: New file.
25762         * tests/unistr/test-u16-strcpy.c: New file.
25763
25764         Tests for module 'unistr/u8-strcpy'.
25765         * modules/unistr/u8-strcpy-tests: New file.
25766         * tests/unistr/test-u8-strcpy.c: New file.
25767         * tests/unistr/test-strcpy.h: New file.
25768
25769         Tests for module 'unistr/u32-strnlen'.
25770         * modules/unistr/u32-strnlen-tests: New file.
25771         * tests/unistr/test-u32-strnlen.c: New file.
25772
25773         Tests for module 'unistr/u16-strnlen'.
25774         * modules/unistr/u16-strnlen-tests: New file.
25775         * tests/unistr/test-u16-strnlen.c: New file.
25776
25777         Tests for module 'unistr/u8-strnlen'.
25778         * modules/unistr/u8-strnlen-tests: New file.
25779         * tests/unistr/test-u8-strnlen.c: New file.
25780         * tests/unistr/test-strnlen.h: New file.
25781
25782         Tests for module 'unistr/u32-strlen'.
25783         * modules/unistr/u32-strlen-tests: New file.
25784         * tests/unistr/test-u32-strlen.c: New file.
25785
25786         Tests for module 'unistr/u16-strlen'.
25787         * modules/unistr/u16-strlen-tests: New file.
25788         * tests/unistr/test-u16-strlen.c: New file.
25789
25790         Tests for module 'unistr/u8-strlen'.
25791         * modules/unistr/u8-strlen-tests: New file.
25792         * tests/unistr/test-u8-strlen.c: New file.
25793
25794         Tests for module 'unistr/u32-prev'.
25795         * modules/unistr/u32-prev-tests: New file.
25796         * tests/unistr/test-u32-prev.c: New file.
25797
25798         Tests for module 'unistr/u16-prev'.
25799         * modules/unistr/u16-prev-tests: New file.
25800         * tests/unistr/test-u16-prev.c: New file.
25801
25802         Tests for module 'unistr/u8-prev'.
25803         * modules/unistr/u8-prev-tests: New file.
25804         * tests/unistr/test-u8-prev.c: New file.
25805
25806         Tests for module 'unistr/u32-next'.
25807         * modules/unistr/u32-next-tests: New file.
25808         * tests/unistr/test-u32-next.c: New file.
25809
25810         Tests for module 'unistr/u16-next'.
25811         * modules/unistr/u16-next-tests: New file.
25812         * tests/unistr/test-u16-next.c: New file.
25813
25814         Tests for module 'unistr/u8-next'.
25815         * modules/unistr/u8-next-tests: New file.
25816         * tests/unistr/test-u8-next.c: New file.
25817
25818         Tests for module 'unistr/u32-strmbtouc'.
25819         * modules/unistr/u32-strmbtouc-tests: New file.
25820         * tests/unistr/test-u32-strmbtouc.c: New file.
25821
25822         Tests for module 'unistr/u16-strmbtouc'.
25823         * modules/unistr/u16-strmbtouc-tests: New file.
25824         * tests/unistr/test-u16-strmbtouc.c: New file.
25825
25826         Tests for module 'unistr/u8-strmbtouc'.
25827         * modules/unistr/u8-strmbtouc-tests: New file.
25828         * tests/unistr/test-u8-strmbtouc.c: New file.
25829
25830         Tests for module 'unistr/u32-strmblen'.
25831         * modules/unistr/u32-strmblen-tests: New file.
25832         * tests/unistr/test-u32-strmblen.c: New file.
25833
25834         Tests for module 'unistr/u16-strmblen'.
25835         * modules/unistr/u16-strmblen-tests: New file.
25836         * tests/unistr/test-u16-strmblen.c: New file.
25837
25838         Tests for module 'unistr/u8-strmblen'.
25839         * modules/unistr/u8-strmblen-tests: New file.
25840         * tests/unistr/test-u8-strmblen.c: New file.
25841
25842         Tests for module 'unistr/u32-cpy-alloc'.
25843         * modules/unistr/u32-cpy-alloc-tests: New file.
25844         * tests/unistr/test-u32-cpy-alloc.c: New file.
25845
25846         Tests for module 'unistr/u16-cpy-alloc'.
25847         * modules/unistr/u16-cpy-alloc-tests: New file.
25848         * tests/unistr/test-u16-cpy-alloc.c: New file.
25849
25850         Tests for module 'unistr/u8-cpy-alloc'.
25851         * modules/unistr/u8-cpy-alloc-tests: New file.
25852         * tests/unistr/test-u8-cpy-alloc.c: New file.
25853         * tests/unistr/test-cpy-alloc.h: New file.
25854
25855         Tests for module 'unistr/u32-mbsnlen'.
25856         * modules/unistr/u32-mbsnlen-tests: New file.
25857         * tests/unistr/test-u32-mbsnlen.c: New file.
25858
25859         Tests for module 'unistr/u16-mbsnlen'.
25860         * modules/unistr/u16-mbsnlen-tests: New file.
25861         * tests/unistr/test-u16-mbsnlen.c: New file.
25862
25863         Tests for module 'unistr/u8-mbsnlen'.
25864         * modules/unistr/u8-mbsnlen-tests: New file.
25865         * tests/unistr/test-u8-mbsnlen.c: New file.
25866
25867         Tests for module 'unistr/u32-chr'.
25868         * modules/unistr/u32-chr-tests: New file.
25869         * tests/unistr/test-u32-chr.c: New file.
25870
25871         Tests for module 'unistr/u16-chr'.
25872         * modules/unistr/u16-chr-tests: New file.
25873         * tests/unistr/test-u16-chr.c: New file.
25874
25875         Tests for module 'unistr/u8-chr'.
25876         * modules/unistr/u8-chr-tests: New file.
25877         * tests/unistr/test-u8-chr.c: New file.
25878         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25879
25880         Tests for module 'unistr/u32-cmp2'.
25881         * modules/unistr/u32-cmp2-tests: New file.
25882         * tests/unistr/test-u32-cmp2.c: New file.
25883
25884         Tests for module 'unistr/u16-cmp2'.
25885         * modules/unistr/u16-cmp2-tests: New file.
25886         * tests/unistr/test-u16-cmp2.c: New file.
25887
25888         Tests for module 'unistr/u8-cmp2'.
25889         * modules/unistr/u8-cmp2-tests: New file.
25890         * tests/unistr/test-u8-cmp2.c: New file.
25891         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25892
25893         Tests for module 'unistr/u32-cmp'.
25894         * modules/unistr/u32-cmp-tests: New file.
25895         * tests/unistr/test-u32-cmp.c: New file.
25896
25897         Tests for module 'unistr/u16-cmp'.
25898         * modules/unistr/u16-cmp-tests: New file.
25899         * tests/unistr/test-u16-cmp.c: New file.
25900
25901         Tests for module 'unistr/u8-cmp'.
25902         * modules/unistr/u8-cmp-tests: New file.
25903         * tests/unistr/test-u8-cmp.c: New file.
25904         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25905
25906         Tests for module 'unistr/u32-set'.
25907         * modules/unistr/u32-set-tests: New file.
25908         * tests/unistr/test-u32-set.c: New file.
25909
25910         Tests for module 'unistr/u16-set'.
25911         * modules/unistr/u16-set-tests: New file.
25912         * tests/unistr/test-u16-set.c: New file.
25913
25914         Tests for module 'unistr/u8-set'.
25915         * modules/unistr/u8-set-tests: New file.
25916         * tests/unistr/test-u8-set.c: New file.
25917         * tests/unistr/test-set.h: New file.
25918
25919         Tests for module 'unistr/u32-move'.
25920         * modules/unistr/u32-move-tests: New file.
25921         * tests/unistr/test-u32-move.c: New file.
25922
25923         Tests for module 'unistr/u16-move'.
25924         * modules/unistr/u16-move-tests: New file.
25925         * tests/unistr/test-u16-move.c: New file.
25926
25927         Tests for module 'unistr/u8-move'.
25928         * modules/unistr/u8-move-tests: New file.
25929         * tests/unistr/test-u8-move.c: New file.
25930         * tests/unistr/test-move.h: New file.
25931
25932         Tests for module 'unistr/u32-cpy'.
25933         * modules/unistr/u32-cpy-tests: New file.
25934         * tests/unistr/test-u32-cpy.c: New file.
25935
25936         Tests for module 'unistr/u16-cpy'.
25937         * modules/unistr/u16-cpy-tests: New file.
25938         * tests/unistr/test-u16-cpy.c: New file.
25939
25940         Tests for module 'unistr/u8-cpy'.
25941         * modules/unistr/u8-cpy-tests: New file.
25942         * tests/unistr/test-u8-cpy.c: New file.
25943         * tests/unistr/test-cpy.h: New file.
25944
25945 2010-01-09  Bruno Haible  <bruno@clisp.org>
25946
25947         Tests for module 'unistr/u32-uctomb'.
25948         * modules/unistr/u32-uctomb-tests: New file.
25949         * tests/unistr/test-u32-uctomb.c: New file.
25950
25951         Tests for module 'unistr/u16-uctomb'.
25952         * modules/unistr/u16-uctomb-tests: New file.
25953         * tests/unistr/test-u16-uctomb.c: New file.
25954
25955         Tests for module 'unistr/u8-uctomb'.
25956         * modules/unistr/u8-uctomb-tests: New file.
25957         * tests/unistr/test-u8-uctomb.c: New file.
25958
25959         Tests for module 'unistr/u32-mbtoucr'.
25960         * modules/unistr/u32-mbtoucr-tests: New file.
25961         * tests/unistr/test-u32-mbtoucr.c: New file.
25962
25963         Tests for module 'unistr/u16-mbtoucr'.
25964         * modules/unistr/u16-mbtoucr-tests: New file.
25965         * tests/unistr/test-u16-mbtoucr.c: New file.
25966
25967         Tests for module 'unistr/u8-mbtoucr'.
25968         * modules/unistr/u8-mbtoucr-tests: New file.
25969         * tests/unistr/test-u8-mbtoucr.c: New file.
25970
25971         Tests for module 'unistr/u32-mbtouc'.
25972         * modules/unistr/u32-mbtouc-tests: New file.
25973         * tests/unistr/test-u32-mbtouc.c: New file.
25974
25975         Tests for module 'unistr/u16-mbtouc'.
25976         * modules/unistr/u16-mbtouc-tests: New file.
25977         * tests/unistr/test-u16-mbtouc.c: New file.
25978
25979         Tests for module 'unistr/u8-mbtouc'.
25980         * modules/unistr/u8-mbtouc-tests: New file.
25981         * tests/unistr/test-u8-mbtouc.c: New file.
25982
25983         Tests for module 'unistr/u32-mbtouc-unsafe'.
25984         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25985         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25986         * tests/unistr/test-u32-mbtouc.h: New file.
25987
25988         Tests for module 'unistr/u16-mbtouc-unsafe'.
25989         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25990         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25991         * tests/unistr/test-u16-mbtouc.h: New file.
25992
25993         Tests for module 'unistr/u8-mbtouc-unsafe'.
25994         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25995         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25996         * tests/unistr/test-u8-mbtouc.h: New file.
25997
25998         Tests for module 'unistr/u32-mblen'.
25999         * modules/unistr/u32-mblen-tests: New file.
26000         * tests/unistr/test-u32-mblen.c: New file.
26001
26002         Tests for module 'unistr/u16-mblen'.
26003         * modules/unistr/u16-mblen-tests: New file.
26004         * tests/unistr/test-u16-mblen.c: New file.
26005
26006         Tests for module 'unistr/u8-mblen'.
26007         * modules/unistr/u8-mblen-tests: New file.
26008         * tests/unistr/test-u8-mblen.c: New file.
26009
26010         Tests for module 'unistr/u32-to-u16'.
26011         * modules/unistr/u32-to-u16-tests: New file.
26012         * tests/unistr/test-u32-to-u16.c: New file.
26013
26014         Tests for module 'unistr/u32-to-u8'.
26015         * modules/unistr/u32-to-u8-tests: New file.
26016         * tests/unistr/test-u32-to-u8.c: New file.
26017
26018         Tests for module 'unistr/u16-to-u32'.
26019         * modules/unistr/u16-to-u32-tests: New file.
26020         * tests/unistr/test-u16-to-u32.c: New file.
26021
26022         Tests for module 'unistr/u16-to-u8'.
26023         * modules/unistr/u16-to-u8-tests: New file.
26024         * tests/unistr/test-u16-to-u8.c: New file.
26025
26026         Tests for module 'unistr/u8-to-u32'.
26027         * modules/unistr/u8-to-u32-tests: New file.
26028         * tests/unistr/test-u8-to-u32.c: New file.
26029
26030         Tests for module 'unistr/u8-to-u16'.
26031         * modules/unistr/u8-to-u16-tests: New file.
26032         * tests/unistr/test-u8-to-u16.c: New file.
26033
26034         Tests for module 'unistr/u32-check'.
26035         * modules/unistr/u32-check-tests: New file.
26036         * tests/unistr/test-u32-check.c: New file.
26037
26038         Tests for module 'unistr/u16-check'.
26039         * modules/unistr/u16-check-tests: New file.
26040         * tests/unistr/test-u16-check.c: New file.
26041
26042         Tests for module 'unistr/u8-check'.
26043         * modules/unistr/u8-check-tests: New file.
26044         * tests/unistr/test-u8-check.c: New file.
26045
26046         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
26047         (category_equals): New function.
26048         (main): Add more tests.
26049         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
26050
26051         * tests/unictype/test-bidi_byname.c (main): Add more tests.
26052
26053 2010-01-10  Bruno Haible  <bruno@clisp.org>
26054
26055         unistr/u*-strcoll: Try harder to distinguish different strings.
26056         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
26057         compare s1 and s2 to see if they are different.
26058
26059 2010-01-10  Bruno Haible  <bruno@clisp.org>
26060
26061         unistr/u*-stpncpy: Fix the return value.
26062         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
26063         description of the return value consistent with stpncpy in glibc.
26064         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
26065         written non-NUL unit.
26066
26067 2010-01-10  Bruno Haible  <bruno@clisp.org>
26068
26069         unistr/u*-next: Add missing dependencies.
26070         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
26071         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
26072         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
26073
26074 2010-01-10  Bruno Haible  <bruno@clisp.org>
26075
26076         unistr/u8-mbsnlen: Fix return value for incomplete character.
26077         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
26078         u8_mblen.
26079         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
26080         Remove unistr/u8-mblen.
26081         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
26082         u16_mblen.
26083         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
26084         Remove unistr/u16-mblen.
26085
26086 2010-01-10  Bruno Haible  <bruno@clisp.org>
26087
26088         wchar: Fix compilation error when <wchar.h> is used from coreutils.
26089         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
26090         Reported by Brian Gough <bjg@gnu.org> and
26091         Chris Clayton <chris2553@googlemail.com> via
26092         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
26093
26094 2010-01-09  Bruno Haible  <bruno@clisp.org>
26095
26096         unistr/u16-to-u32: Reject invalid input.
26097         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
26098         u16_mbtouc.
26099         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
26100         Remove unistr/u16-mbtouc.
26101
26102         unistr/u16-to-u8: Reject invalid input.
26103         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
26104         u16_mbtouc.
26105         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
26106         Remove unistr/u16-mbtouc.
26107
26108         unistr/u8-to-u32: Reject invalid input.
26109         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
26110         u8_mbtouc.
26111         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
26112         Remove unistr/u8-mbtouc.
26113
26114         unistr/u8-to-u16: Reject invalid input.
26115         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
26116         u8_mbtouc.
26117         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
26118         Remove unistr/u8-mbtouc.
26119
26120 2010-01-09  Bruno Haible  <bruno@clisp.org>
26121
26122         Tests for module 'getlogin'.
26123         * modules/getlogin-tests: New file.
26124         * tests/test-getlogin.c: New file.
26125
26126         New module 'getlogin'.
26127         * lib/unistd.in.h (getlogin): New declaration.
26128         * lib/getlogin.c: New file.
26129         * m4/getlogin.m4: New file.
26130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
26131         HAVE_GETLOGIN.
26132         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
26133         HAVE_GETLOGIN.
26134         * modules/getlogin: New file.
26135         * doc/posix-functions/getlogin.texi: Mention the new module.
26136         Reported by John W. Eaton <jwe@gnu.org>.
26137
26138 2010-01-09  Bruno Haible  <bruno@clisp.org>
26139
26140         getlogin_r: Support for native Windows.
26141         * lib/getlogin_r.c: Include <windows.h>
26142         (getlogin_r): Implement for native Windows.
26143         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
26144         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
26145         via John W. Eaton <jwe@gnu.org>.
26146
26147 2010-01-09  Bruno Haible  <bruno@clisp.org>
26148
26149         getlogin_r: Small fixes.
26150         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
26151         succeeds.
26152         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
26153         before testing whether getlogin_r is declared. No need to set
26154         HAVE_DECL_GETLOGIN_R to 1.
26155         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
26156
26157 2010-01-09  Bruno Haible  <bruno@clisp.org>
26158
26159         * lib/unistd.in.h (getlogin_r): Add comment.
26160
26161 2010-01-09  Bruno Haible  <bruno@clisp.org>
26162
26163         Tests for module 'getlogin_r'.
26164         * modules/getlogin_r-tests: New file.
26165         * tests/test-getlogin_r.c: New file.
26166
26167 2010-01-09  Jim Meyering  <meyering@redhat.com>
26168
26169         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
26170         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
26171         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
26172
26173 2010-01-08  Simon Josefsson  <simon@josefsson.org>
26174
26175         * lib/dup2.c (rpl_dup2): Improve comment.
26176
26177 2010-01-08  Eric Blake  <ebb9@byu.net>
26178
26179         maint.mk: allow packages to add makefile @@ exceptions
26180         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
26181         (sc_makefile_check): Rename...
26182         (sc_makefile_at_at_check): ...to this, and use hook.
26183
26184         dup2: work around mingw bug
26185         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
26186         Reported by Simon Josefsson.
26187
26188 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
26189
26190         glob: Fix C++ compilation.
26191         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
26192         C++.
26193
26194 2010-01-07  Bruno Haible  <bruno@clisp.org>
26195
26196         Fix indentation of wctype.in.h, broken since 2007-01-06.
26197         * lib/wctype.in.h: Fix indentation of preprocessor directives.
26198
26199 2010-01-07  Bruno Haible  <bruno@clisp.org>
26200
26201         mbslen: Avoid collision with system function.
26202         * lib/string.in.h [MirBSD]: Include <wchar.h>.
26203         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
26204         * m4/mbslen.m4: New file.
26205         * modules/mbslen (Files): Add it.
26206         (configure.ac): Invoke gl_MBSLEN.
26207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
26208         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
26209         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
26210         via Ian Beckwith <ianb@erislabs.net>.
26211
26212 2010-01-07  Bruno Haible  <bruno@clisp.org>
26213
26214         dirent: Document the last fix.
26215         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
26216
26217 2010-01-07  Bruno Haible  <bruno@clisp.org>
26218
26219         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
26220         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
26221         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
26222         va_list are defined.
26223         * doc/posix-headers/stdio.texi: Document the bug of missing types.
26224         Reported by Eric Blake.
26225
26226 2010-01-07  Bruno Haible  <bruno@clisp.org>
26227
26228         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
26229         * modules/xlist (Depends-on): Add 'list',
26230         * modules/xoset (Depends-on): Add 'oset'.
26231         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26232
26233 2010-01-07  Bruno Haible  <bruno@clisp.org>
26234
26235         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
26236         * doc/posix-functions/strncasecmp.texi: Likewise.
26237
26238 2010-01-07  Bruno Haible  <bruno@clisp.org>
26239
26240         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
26241
26242 2010-01-07  John W. Eaton  <jwe@octave.org>
26243
26244         wctype: allow C++ use
26245         * lib/wctype.in.h: Add extern "C" block for C++.
26246
26247 2010-01-06  Eric Blake  <ebb9@byu.net>
26248
26249         maint.mk: detect incorrect GFDL usage
26250         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
26251
26252 2010-01-06  Jim Meyering  <meyering@redhat.com>
26253         and Eric Blake  <ebb9@byu.net>
26254
26255         maint.mk: ignore multi-line copyright in NEWS
26256         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26257
26258 2010-01-06  Eric Blake  <ebb9@byu.net>
26259
26260         select: add missing dependency
26261         * modules/select-tests (Depends-on): Move sockets dependency...
26262         * modules/select (Depends-on): ...here.
26263         Reported by Ian Beckwith.
26264
26265         doc: regenerate INSTALL
26266         * doc/INSTALL: Reflect recent autoconf update.
26267         * doc/INSTALL.ISO: Likewise.
26268         * doc/INSTALL.UTF-8: Likewise.
26269
26270         pread: fix compilation on glibc
26271         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
26272         Reported by Ralf Wildenhues.
26273
26274         dirent: fix test failure
26275         * lib/dirent.in.h (includes): Guarantee ino_t.
26276         Reported by Ralf Wildenhues.
26277
26278 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26279
26280         linkat, renameat: avoid bad free
26281         * lib/at-func2.c (at_func2): Fix typo.
26282         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
26283
26284 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26285
26286         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
26287         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
26288         to avoid failure of symlink test later.
26289
26290 2010-01-06  Eric Blake  <ebb9@byu.net>
26291
26292         stdio, unistd: guarantee ssize_t
26293         * lib/unistd.in.h (includes): Ensure that types required by POSIX
26294         2008 are exposed when needed.
26295         * lib/stdio.in.h (includes): Likewise.
26296         Reported by Ralf Wildenhues.
26297
26298 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
26299
26300         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
26301         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
26302         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
26303
26304 2010-01-06  Jim Meyering  <meyering@redhat.com>
26305
26306         readtokens: this module *does* require xalloc.h
26307         It uses only functions that were omitted by the old syntax-check rule.
26308         * lib/readtokens.c: Include "xalloc.h" once again.
26309         * modules/readtokens (Depends-on): Add xalloc.
26310         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
26311
26312 2010-01-05  Eric Blake  <ebb9@byu.net>
26313
26314         maint: support 'make announcement' from a VPATH build
26315         * top/maint.mk (announcement): Look for correct NEWS file.
26316
26317 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
26318
26319         utimens (fdutimens): ignore a negative FD, per contract
26320         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
26321         when we have a valid file descriptor.  Otherwise, using a brand
26322         new glibc (with just-patched futimens that now fails with EBADF)
26323         would cause this function to fail with ENOSYS.
26324         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
26325         See also http://bugzilla.redhat.com/552320.
26326
26327 2010-01-05  Eric Blake  <ebb9@byu.net>
26328
26329         strcase: document what it provides
26330         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
26331         gnulib module.
26332         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
26333         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
26334
26335 2010-01-05  Jim Meyering  <meyering@redhat.com>
26336
26337         maint: remove useless inclusions of "xalloc.h"
26338         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
26339         * lib/readtokens.c: Likewise.
26340         * lib/same.c: Likewise.
26341         * modules/getloadavg (Depends-on): Remove xalloc.
26342         * modules/readtokens: Likewise.
26343         * modules/same: Likewise.
26344
26345         maint.mk: include 4 more function names in alloca.h-checking regexp
26346         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
26347         regexp.  Before, we would give a false-positive (saying alloca.h
26348         is included unnecessarily) when the only uses involved omitted symbols.
26349
26350         xalloc.h: use consistent formatting
26351         * lib/xalloc.h: Move declarations to start in the first column.
26352
26353 2010-01-05  Eric Blake  <ebb9@byu.net>
26354
26355         mkdir: avoid xalloc
26356         * lib/mkdir.c (includes): Drop unused header.
26357         Reported by John W. Eaton.
26358
26359 2010-01-04  Jim Meyering  <meyering@redhat.com>
26360
26361         nl_langinfo: avoid configure-time syntax error
26362         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
26363         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
26364         the empty string.  Don't let that provoke a shell syntax error.
26365
26366         regcomp, regexec, fnmatch: avoid array bounds read error
26367         * lib/regcomp.c (build_equiv_class): From glibc:
26368         Use only the low 24 bits of a findidx return value as an index
26369         into the weights array.  Patch by Ulrich Drepper:
26370         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
26371         * lib/regexec.c (check_node_accept_bytes): Likewise.
26372         * lib/fnmatch_loop.c (FCT): Likewise.
26373
26374         regcomp: skip collseq lookup when there are no rules
26375         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
26376         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
26377
26378         regcomp: recognize ill-formed { } expressions
26379         * lib/regcomp.c (parse_dup_op): From glibc:
26380         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
26381
26382         regcomp: fix typo in comment
26383         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
26384         s/satisfy/satisfies/.
26385
26386         regcomp: sync from glibc: remove dead store
26387         * lib/regcomp.c (duplicate_node_closure): Remove useless
26388         search_duplicated_node call and dead store.
26389
26390         regcomp: sync from glibc; always use nl_langinfo
26391         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
26392         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
26393         * modules/regex (Depends-on): Add nl_langinfo.
26394
26395 2010-01-04  Eric Blake  <ebb9@byu.net>
26396
26397         fdopendir: fix configure test
26398         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
26399
26400 2010-01-01  Bruno Haible  <bruno@clisp.org>
26401
26402         wchar: Remove unused configure check.
26403         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
26404
26405 2010-01-01  Eric Blake  <ebb9@byu.net>
26406
26407         headers: make check of system header explicit
26408         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
26409         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
26410         ourselves.
26411         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26412         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26413         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26414         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
26415         internals.
26416         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
26417         missing.
26418         Suggested by Bruno Haible.
26419
26420 2010-01-01  Jim Meyering  <meyering@redhat.com>
26421
26422         ChangeLog: tweak to eliminate unnecessary copyright line
26423         * ChangeLog: Remove a copyright line that was mistakenly updated
26424         by today's update-copyright run.  Reported by Eric Blake.
26425
26426         test-update-copyright: don't let envvar setting cause test failure
26427         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26428
26429 2010-01-01  Bruno Haible  <bruno@clisp.org>
26430
26431         localename: Avoid gcc warning.
26432         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
26433         function if it is not used.
26434
26435 2010-01-01  Jim Meyering  <meyering@redhat.com>
26436
26437         update nearly all FSF copyright year lists to include 2010
26438         Use the same procedure as for 2009, outlined in
26439         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
26440
26441         version-etc: set COPYRIGHT_YEAR to 2010
26442         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
26443
26444 2009-12-31  Eric Blake  <ebb9@byu.net>
26445
26446         doc: correct availability of cygwin 1.5.x getopt
26447         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
26448         variables.
26449         * doc/posix-functions/opterr.texi (opterr): Likewise.
26450         * doc/posix-functions/optind.texi (optind): Likewise.
26451         * doc/posix-functions/optopt.texi (optopt): Likewise.
26452         * doc/posix-functions/tzname.texi (tzname): Likewise.
26453
26454         openat: update maintainer
26455         * modules/openat (Maintainer): Add myself.
26456
26457         utimens: avoid shadowing warning
26458         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
26459         buffers into one, to avoid shadowing, as well as avoiding a
26460         redundant stat.
26461         Reported by Jim Meyering.
26462
26463         test-dup2: avoid compiler warning
26464         * tests/test-dup2.c (is_inheritable): Only define if used.
26465
26466 2010-01-01  Bruno Haible  <bruno@clisp.org>
26467
26468         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
26469         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
26470         defined, use wctomb instead of wcrtomb.
26471
26472 2010-01-01  Bruno Haible  <bruno@clisp.org>
26473
26474         iconv: Reject native Solaris iconv.
26475         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
26476         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
26477
26478 2009-12-31  Bruno Haible  <bruno@clisp.org>
26479
26480         * tests/test-signal.c (main): Remove test of 'SIG'.
26481
26482 2009-12-31  Bruno Haible  <bruno@clisp.org>
26483
26484         spawn: Fix incomplete fix.
26485         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26486         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26487         warnings for GNULIB_POSIXCHECK again.
26488         Reported by Eric Blake.
26489
26490 2009-12-31  Bruno Haible  <bruno@clisp.org>
26491
26492         Avoid namespace pollution on glibc systems.
26493         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
26494         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
26495         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
26496         glibc systems.
26497
26498 2009-12-31  Bruno Haible  <bruno@clisp.org>
26499
26500         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
26501         (gl_REPLACE_WCHAR_H): Turn into a no-op.
26502         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
26503         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
26504         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
26505         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
26506         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
26507
26508 2009-12-31  Bruno Haible  <bruno@clisp.org>
26509
26510         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26511         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26512         afterwards.
26513
26514 2009-12-31  Bruno Haible  <bruno@clisp.org>
26515
26516         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26517         SYS_UTSNAME_H.
26518
26519 2009-12-31  Bruno Haible  <bruno@clisp.org>
26520
26521         spawn: Fix misapplied patch.
26522         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26523         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26524         warnings for GNULIB_POSIXCHECK.
26525
26526 2009-12-31  Bruno Haible  <bruno@clisp.org>
26527
26528         times: Update after sys_times changed.
26529         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26530         * modules/times (Files): Add it.
26531         (configure.ac): Invoke gl_FUNC_TIMES.
26532
26533 2009-12-31  Bruno Haible  <bruno@clisp.org>
26534
26535         Use AC_C_INLINE where necessary.
26536         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26537         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26538         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26539         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26540         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26541         * m4/mbiter.m4 (gl_MBITER): Likewise.
26542         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26543         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26544         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26545         * modules/u64 (configure.ac): Likewise.
26546
26547 2009-12-31  Bruno Haible  <bruno@clisp.org>
26548
26549         Use AC_C_INLINE instead of module 'inline' where possible.
26550         * modules/inline (Description): Clarify purpose.
26551         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26552         * modules/count-one-bits (Depends-on): Remove inline.
26553         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26554         * modules/openat (Depends-on): Remove inline.
26555         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26556         instead of depending on module 'inline'.
26557         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26558         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26559         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26560         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26561         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26562         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26563         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26564         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26565         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26566         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26567         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26568         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26569         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26570         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26571         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26572         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26573         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26574         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26575         Likewise.
26576         * modules/unictype/property-ascii-hex-digit (Depends-on,
26577         configure.ac): Likewise.
26578         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26579         configure.ac): Likewise.
26580         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26581         configure.ac): Likewise.
26582         * modules/unictype/property-bidi-block-separator (Depends-on,
26583         configure.ac): Likewise.
26584         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26585         configure.ac): Likewise.
26586         * modules/unictype/property-bidi-common-separator (Depends-on,
26587         configure.ac): Likewise.
26588         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26589         Likewise.
26590         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26591         configure.ac): Likewise.
26592         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26593         configure.ac): Likewise.
26594         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26595         configure.ac): Likewise.
26596         * modules/unictype/property-bidi-european-digit (Depends-on,
26597         configure.ac): Likewise.
26598         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26599         configure.ac): Likewise.
26600         * modules/unictype/property-bidi-left-to-right (Depends-on,
26601         configure.ac): Likewise.
26602         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26603         configure.ac): Likewise.
26604         * modules/unictype/property-bidi-other-neutral (Depends-on,
26605         configure.ac): Likewise.
26606         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26607         Likewise.
26608         * modules/unictype/property-bidi-segment-separator (Depends-on,
26609         configure.ac): Likewise.
26610         * modules/unictype/property-bidi-whitespace (Depends-on,
26611         configure.ac): Likewise.
26612         * modules/unictype/property-combining (Depends-on, configure.ac):
26613         Likewise.
26614         * modules/unictype/property-composite (Depends-on, configure.ac):
26615         Likewise.
26616         * modules/unictype/property-currency-symbol (Depends-on,
26617         configure.ac): Likewise.
26618         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26619         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26620         Likewise.
26621         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26622         configure.ac): Likewise.
26623         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26624         Likewise.
26625         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26626         Likewise.
26627         * modules/unictype/property-extender (Depends-on, configure.ac):
26628         Likewise.
26629         * modules/unictype/property-format-control (Depends-on, configure.ac):
26630         Likewise.
26631         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26632         Likewise.
26633         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26634         Likewise.
26635         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26636         Likewise.
26637         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26638         Likewise.
26639         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26640         Likewise.
26641         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26642         Likewise.
26643         * modules/unictype/property-id-start (Depends-on, configure.ac):
26644         Likewise.
26645         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26646         Likewise.
26647         * modules/unictype/property-ids-binary-operator (Depends-on,
26648         configure.ac): Likewise.
26649         * modules/unictype/property-ids-trinary-operator (Depends-on,
26650         configure.ac): Likewise.
26651         * modules/unictype/property-ignorable-control (Depends-on,
26652         configure.ac): Likewise.
26653         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26654         Likewise.
26655         * modules/unictype/property-join-control (Depends-on, configure.ac):
26656         Likewise.
26657         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26658         Likewise.
26659         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26660         Likewise.
26661         * modules/unictype/property-logical-order-exception (Depends-on,
26662         configure.ac): Likewise.
26663         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26664         Likewise.
26665         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26666         * modules/unictype/property-non-break (Depends-on, configure.ac):
26667         Likewise.
26668         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26669         Likewise.
26670         * modules/unictype/property-numeric (Depends-on, configure.ac):
26671         Likewise.
26672         * modules/unictype/property-other-alphabetic (Depends-on,
26673         configure.ac): Likewise.
26674         * modules/unictype/property-other-default-ignorable-code-point
26675         (Depends-on, configure.ac): Likewise.
26676         * modules/unictype/property-other-grapheme-extend (Depends-on,
26677         configure.ac): Likewise.
26678         * modules/unictype/property-other-id-continue (Depends-on,
26679         configure.ac): Likewise.
26680         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26681         Likewise.
26682         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26683         Likewise.
26684         * modules/unictype/property-other-math (Depends-on, configure.ac):
26685         Likewise.
26686         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26687         Likewise.
26688         * modules/unictype/property-paired-punctuation (Depends-on,
26689         configure.ac): Likewise.
26690         * modules/unictype/property-paragraph-separator (Depends-on,
26691         configure.ac): Likewise.
26692         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26693         Likewise.
26694         * modules/unictype/property-pattern-white-space (Depends-on,
26695         configure.ac): Likewise.
26696         * modules/unictype/property-private-use (Depends-on, configure.ac):
26697         Likewise.
26698         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26699         Likewise.
26700         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26701         Likewise.
26702         * modules/unictype/property-radical (Depends-on, configure.ac):
26703         Likewise.
26704         * modules/unictype/property-sentence-terminal (Depends-on,
26705         configure.ac): Likewise.
26706         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26707         Likewise.
26708         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26709         * modules/unictype/property-terminal-punctuation (Depends-on,
26710         configure.ac): Likewise.
26711         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26712         Likewise.
26713         * modules/unictype/property-unassigned-code-value (Depends-on,
26714         configure.ac): Likewise.
26715         * modules/unictype/property-unified-ideograph (Depends-on,
26716         configure.ac): Likewise.
26717         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26718         Likewise.
26719         * modules/unictype/property-variation-selector (Depends-on,
26720         configure.ac): Likewise.
26721         * modules/unictype/property-white-space (Depends-on, configure.ac):
26722         Likewise.
26723         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26724         Likewise.
26725         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26726         Likewise.
26727         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26728         Likewise.
26729         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26730         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26731         Likewise.
26732
26733 2009-12-31  Bruno Haible  <bruno@clisp.org>
26734
26735         Remove unnecessary AC_C_INLINE invocation.
26736         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26737         since 2009-08-21.
26738
26739 2009-12-31  Jim Meyering  <meyering@redhat.com>
26740
26741         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26742         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26743         With this change, we can all remove the gpg_key_ID = ... definition
26744         from our respective cfg.mk files.
26745
26746         maint.mk: create announcement template in ~/, not in /tmp
26747         * top/maint.mk (emit_upload_commands): Adjust.
26748         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26749         Remove temporary file, .ci-msg.
26750
26751 2009-12-31  Eric Blake  <ebb9@byu.net>
26752
26753         link-warning: always build headers with link warnings
26754         * modules/arpa_inet (Makefile.am): Always build replacement
26755         header.
26756         * modules/ctype (Makefile.am): Likewise.
26757         * modules/dirent (Makefile.am): Likewise.
26758         * modules/inttypes (Makefile.am): Likewise.
26759         * modules/langinfo (Makefile.am): Likewise.
26760         * modules/locale (Makefile.am): Likewise.
26761         * modules/spawn (Makefile.am): Likewise.
26762         * modules/sys_file (Makefile.am): Likewise.
26763         * modules/sys_ioctl (Makefile.am): Likewise.
26764         * modules/sys_select (Makefile.am): Likewise.
26765         * modules/sys_socket (Makefile.am): Likewise.
26766         * modules/sys_times (Makefile.am): Likewise.
26767         * modules/sys_utsname (Makefile.am): Likewise.
26768         * modules/sys_wait (Makefile.am): Likewise.
26769         * modules/wchar (Makefile.am): Likewise.
26770         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26771         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26772         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26773         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26774         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26775         Likewise.
26776         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26777         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26778         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26779         Likewise.
26780         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26781         Likewise.
26782         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26783         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26784         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26785         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26786         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26787         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26788         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26789         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26790         (gl_WCHAR_H_DEFAULTS): Likewise.
26791
26792 2009-12-31  Eric Blake  <ebb9@byu.net>
26793
26794         signal, spawn: use link warnings
26795         * lib/signal.in.h (sigset_t): Make unconditional.
26796         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26797         (sigpending, sigprocmask, sigaction): Add link warnings.
26798         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26799         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26800         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26801         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26802         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26803         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26804         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26805         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26806         (posix_spawn_file_actions_destroy)
26807         (posix_spawn_file_actions_addopen)
26808         (posix_spawn_file_actions_addclose)
26809         (posix_spawn_file_actions_adddup2): Likewise.
26810         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26811         * tests/test-signal.c (main): Enhance test.
26812
26813         spawn: improve wrapper support
26814         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26815         (gl_SPAWN_H_DEFAULTS): New defaults.
26816         * modules/spawn (Makefile.am): Substitute them.
26817         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26818         Only declare if missing or broken.
26819
26820         sys_times, sys_utsname: use include_next
26821         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26822         header.
26823         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26824         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26825         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26826         * modules/sys_times (Depends-on): Add include_next.
26827         (Makefile.am): Substitute additional values.
26828         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26829         * lib/sys_times.in.h (includes): Include native header, if
26830         available.
26831         * lib/sys_utsname.in.h (includes): Likewise.
26832         * tests/test-sys_times.c (main): Enhance test.
26833
26834         fdutimensat: revert prior patch
26835         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26836         utimens.h.
26837         Reported by Bruno Haible.
26838
26839 2009-12-30  Eric Blake  <ebb9@byu.net>
26840
26841         sys_wait: drop link-warning dependency
26842         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26843         link-warning efforts.
26844         * lib/sys_wait.in.h: Likewise.
26845
26846         fdutimensat: remove bogus dependency
26847         * modules/fdutimensat (Depends-on): Drop inline.
26848
26849         unistd: fix typo
26850         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26851
26852 2009-12-30  Bruno Haible  <bruno@clisp.org>
26853
26854         Fix compilation error with Solaris cc.
26855         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26856         * lib/unicase/u16-is-invariant.c: Likewise.
26857         * lib/unicase/u32-is-invariant.c: Likewise.
26858         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26859
26860 2009-12-30  Bruno Haible  <bruno@clisp.org>
26861
26862         Fix test crash.
26863         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26864         locales.
26865         Reported by Simon Josefsson <simon@josefsson.org>.
26866
26867 2009-12-30  Bruno Haible  <bruno@clisp.org>
26868
26869         Fix compilation error on most platforms.
26870         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26871         Reported by Simon Josefsson <simon@josefsson.org>
26872         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26873
26874 2009-12-30  Eric Blake  <ebb9@byu.net>
26875
26876         futimens, utimensat: work around ntfs-3g bug
26877         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26878         a ctime bug is present, and expand workaround to cover ntfs-3g.
26879         * lib/utimens.c (fdutimens, lutimens): Likewise.
26880         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26881         (validate_timespec): Adjust return value.
26882         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26883         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26884         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26885
26886 2009-12-29  Eric Blake  <ebb9@byu.net>
26887
26888         link-warning: make usage consistent
26889         * modules/ctype (Depends-on): Add link-warning.
26890         (Makefile.am): Update rules accordingly.
26891         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26892         * modules/locale (Depends-on, Makefile.am): Likewise.
26893         * modules/sys_file (Makefile.am): Likewise.
26894         * modules/getopt-posix (Makefile.am): Delete unused link warning
26895         efforts.
26896         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26897         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26898         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26899         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26900
26901         stdio: remove unused variables
26902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26904         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26905
26906         tests: test more substitute headers
26907         * modules/ctype-tests: New file.
26908         * modules/dirent-tests: Likewise.
26909         * modules/spawn-tests: Likewise.
26910         * modules/sys_file-tests: Likewise.
26911         * modules/sys_ioctl-tests: Likewise.
26912         * modules/sys_wait-tests: Likewise.
26913         * tests/test-ctype.c: Likewise.
26914         * tests/test-dirent.c: Likewise.
26915         * tests/test-spawn.c: Likewise.
26916         * tests/test-sys_file.c: Likewise.
26917         * tests/test-sys_ioctl.c: Likewise.
26918         * tests/test-sys_wait.c: Likewise.
26919         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26920         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26921         whether or not flock is in use.
26922
26923         tests: remove License section from module
26924         * modules/arpa_inet-tests: Remove unneeded section.
26925         * modules/byteswap-tests: Likewise.
26926         * modules/ceilf-tests: Likewise.
26927         * modules/ceill-tests: Likewise.
26928         * modules/crypto/des-tests: Likewise.
26929         * modules/crypto/gc-arcfour-tests: Likewise.
26930         * modules/crypto/gc-arctwo-tests: Likewise.
26931         * modules/crypto/gc-des-tests: Likewise.
26932         * modules/crypto/gc-hmac-md5-tests: Likewise.
26933         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26934         * modules/crypto/gc-md2-tests: Likewise.
26935         * modules/crypto/gc-md4-tests: Likewise.
26936         * modules/crypto/gc-md5-tests: Likewise.
26937         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26938         * modules/crypto/gc-rijndael-tests: Likewise.
26939         * modules/crypto/gc-sha1-tests: Likewise.
26940         * modules/crypto/gc-tests: Likewise.
26941         * modules/crypto/md2-tests: Likewise.
26942         * modules/crypto/md4-tests: Likewise.
26943         * modules/fcntl-h-tests: Likewise.
26944         * modules/floorf-tests: Likewise.
26945         * modules/floorl-tests: Likewise.
26946         * modules/frexp-nolibm-tests: Likewise.
26947         * modules/frexp-tests: Likewise.
26948         * modules/frexpl-nolibm-tests: Likewise.
26949         * modules/frexpl-tests: Likewise.
26950         * modules/getaddrinfo-tests: Likewise.
26951         * modules/inttypes-tests: Likewise.
26952         * modules/isfinite-tests: Likewise.
26953         * modules/isinf-tests: Likewise.
26954         * modules/ldexpl-tests: Likewise.
26955         * modules/locale-tests: Likewise.
26956         * modules/math-tests: Likewise.
26957         * modules/netdb-tests: Likewise.
26958         * modules/netinet_in-tests: Likewise.
26959         * modules/printf-frexp-tests: Likewise.
26960         * modules/printf-frexpl-tests: Likewise.
26961         * modules/priv-set-tests: Likewise.
26962         * modules/random_r-tests: Likewise.
26963         * modules/round-tests: Likewise.
26964         * modules/roundf-tests: Likewise.
26965         * modules/roundl-tests: Likewise.
26966         * modules/search-tests: Likewise.
26967         * modules/select-tests: Likewise.
26968         * modules/signal-tests: Likewise.
26969         * modules/stdbool-tests: Likewise.
26970         * modules/stddef-tests: Likewise.
26971         * modules/stdint-tests: Likewise.
26972         * modules/stdio-tests: Likewise.
26973         * modules/stdlib-tests: Likewise.
26974         * modules/string-tests: Likewise.
26975         * modules/strings-tests: Likewise.
26976         * modules/sys_select-tests: Likewise.
26977         * modules/sys_socket-tests: Likewise.
26978         * modules/sys_stat-tests: Likewise.
26979         * modules/sys_time-tests: Likewise.
26980         * modules/sys_utsname-tests: Likewise.
26981         * modules/sysexits-tests: Likewise.
26982         * modules/time-tests: Likewise.
26983         * modules/trunc-tests: Likewise.
26984         * modules/truncf-tests: Likewise.
26985         * modules/truncl-tests: Likewise.
26986         * modules/tsearch-tests: Likewise.
26987         * modules/unistd-tests: Likewise.
26988         * modules/wchar-tests: Likewise.
26989         * modules/wctype-tests: Likewise.
26990
26991         tests: fix license on several tests
26992         * tests/test-des.c: Update to GPLv3+.
26993         * tests/test-flock.c: Likewise.
26994         * tests/test-fsync.c: Likewise.
26995         * tests/test-futimens.h: Likewise.
26996         * tests/test-gc-arcfour.c: Likewise.
26997         * tests/test-gc-arctwo.c: Likewise.
26998         * tests/test-gc-des.c: Likewise.
26999         * tests/test-gc-hmac-md5.c: Likewise.
27000         * tests/test-gc-hmac-sha1.c: Likewise.
27001         * tests/test-gc-md2.c: Likewise.
27002         * tests/test-gc-md4.c: Likewise.
27003         * tests/test-gc-md5.c: Likewise.
27004         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27005         * tests/test-gc-rijndael.c: Likewise.
27006         * tests/test-gc-sha1.c: Likewise.
27007         * tests/test-gc.c: Likewise.
27008         * tests/test-getcwd.c: Likewise.
27009         * tests/test-link.c: Likewise.
27010         * tests/test-link.h: Likewise.
27011         * tests/test-lutimens.h: Likewise.
27012         * tests/test-md2.c: Likewise.
27013         * tests/test-md4.c: Likewise.
27014         * tests/test-mkdir.h: Likewise.
27015         * tests/test-rename.c: Likewise.
27016         * tests/test-rename.h: Likewise.
27017         * tests/test-safe-alloc.c: Likewise.
27018         * tests/test-utimens-common.h: Likewise.
27019         * tests/test-utimens.h: Likewise.
27020
27021         maint: sync license texts
27022         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
27023         * doc/gpl-3.0.texi: Revert copyright year update.
27024         * doc/lgpl-3.0.texi: Likewise.
27025
27026 2009-12-29  Jim Meyering  <meyering@redhat.com>
27027
27028         update nearly all FSF copyright year lists to include 2009
27029         The files named by the following are exempted:
27030             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
27031               test -f "$dst" && { echo "$dst"; continue; }
27032               test -d "$dst" || continue
27033               echo "$dst"/$(basename "$src")
27034             done > exempt
27035             git ls-files tests/unictype >> exempt
27036         In the remaining files, convert to all-interval notation if
27037         - there is already at least one year interval like 2000-2003
27038         - the file is maintained by me
27039         - the file is in lib/uni*/, where that style already prevails
27040         Otherwise, use update-copyright's default.
27041
27042 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27043         and Eric Blake  <ebb9@byu.net>
27044
27045         tests: don't require debug system() to pass
27046         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
27047         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27048         * tests/test-unlink.h (test_unlink_func): Likewise.
27049         * tests/test-fstatat.c (main): ...into callers.
27050         * tests/test-lstat.c (main): Likewise.
27051         * tests/test-rmdir.c (main): Likewise.
27052         * tests/test-unlink.c (main): Likewise.
27053         * tests/test-unlinkat.c (main): Likewise.
27054         * tests/test-areadlink-with-size.c (main): Don't require a
27055         debug-only system call to pass, aiding cross-testing to mingw.
27056         * tests/test-areadlink.c (main): Likewise.
27057         * tests/test-areadlinkat-with-size.c (main): Likewise.
27058         * tests/test-areadlinkat.c (main): Likewise.
27059         * tests/test-canonicalize-lgpl.c (main): Likewise.
27060         * tests/test-canonicalize.c (main): Likewise.
27061         * tests/test-chown.c (main): Likewise.
27062         * tests/test-fchownat.c (main): Likewise.
27063         * tests/test-lchown.c (main): Likewise.
27064         * tests/test-fdutimensat.c (main): Likewise.
27065         * tests/test-futimens.c (main): Likewise.
27066         * tests/test-link.c (main): Likewise.
27067         * tests/test-linkat.c (main): Likewise.
27068         * tests/test-mkdir.c (main): Likewise.
27069         * tests/test-mkdirat.c (main): Likewise.
27070         * tests/test-mkfifo.c (main): Likewise.
27071         * tests/test-mkfifoat.c (main): Likewise.
27072         * tests/test-mknod.c (main): Likewise.
27073         * tests/test-readlink.c (main): Likewise.
27074         * tests/test-remove.c (main): Likewise.
27075         * tests/test-rename.c (main): Likewise.
27076         * tests/test-renameat.c (main): Likewise.
27077         * tests/test-symlink.c (main): Likewise.
27078         * tests/test-symlinkat.c (main): Likewise.
27079         * tests/test-utimens.c (main): Likewise.
27080         * tests/test-utimensat.c (main): Likewise.
27081
27082 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27083
27084         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
27085         on $(UNUSED_PARAMETER_H) to avoid build failure.
27086
27087 2009-12-28  Jim Meyering  <meyering@redhat.com>
27088
27089         update-copyright: you may specify a max. line length other than 72
27090         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27091
27092         maint: use consistent FSF copyright line syntax
27093         * lib/posixtm.c: Add missing comma in FSF copyright line.
27094         * lib/posixtm.h: Likewise.
27095         * lib/getugroups.c: Add missing ", Inc.".
27096
27097         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
27098         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
27099         FSF copyright line.  Remove trailing blanks.
27100
27101 2009-12-28  Eric Blake  <ebb9@byu.net>
27102
27103         test-dup2: reduce dependencies
27104         * modules/cloexec (Configure.ac): Set witness.
27105         * modules/dup2-tests (Depends-on): Drop cloexec.
27106         * tests/test-dup2.c (main): Skip portion of test if cloexec module
27107         not present.
27108         Suggested by Bruno Haible.
27109
27110 2009-12-26  Bruno Haible  <bruno@clisp.org>
27111
27112         Remove an unneeded dependency.
27113         * modules/fseterr (Depends-on): Remove dup2.
27114
27115 2009-12-26  Eric Blake  <ebb9@byu.net>
27116
27117         tests: use macros.h in more places
27118         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
27119         (ASSERT_STREAM): Provide default of stderr.
27120         * tests/test-dirent-safer.c: Include macros.h, using alternate
27121         stream for assertions.
27122         * tests/test-dup-safer.c: Likewise.
27123         * tests/test-freopen-safer.c: Likewise.
27124         * tests/test-getopt.c: Likewise.
27125         * tests/test-openat-safer.c: Likewise.
27126         * tests/test-pipe.c: Likewise.
27127         * tests/test-popen-safer.c: Likewise.
27128         * modules/dirent-safer-tests (Files): Include macros.h.
27129         * modules/unistd-safer-tests (Files): Likewise.
27130         * modules/freopen-safer-tests (Files): Likewise.
27131         * modules/getopt-posix-tests (Files): Likewise.
27132         * modules/openat-safer-tests (Files): Likewise.
27133         * modules/pipe-tests (Files): Likewise.
27134
27135 2009-12-26  Bruno Haible  <bruno@clisp.org>
27136
27137         javacomp: Portability fix.
27138         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
27139         that it also works on Solaris.
27140
27141 2009-12-26  Bruno Haible  <bruno@clisp.org>
27142
27143         localename: Fix storage allocation of gl_locale_name_thread's result.
27144         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
27145         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
27146         all platforms that have 'uselocale'.
27147         (gl_locale_name_thread_unsafe): New function, extracted from
27148         gl_locale_name_thread.
27149         (gl_locale_name_thread): Call struniq on all platforms that have
27150         'uselocale'.
27151         * tests/test-localename.c (test_locale_name_thread): Check that the
27152         resulting strings are permanently allocated.
27153         * modules/localename-tests (Depends-on): Add strdup.
27154
27155 2009-12-26  Bruno Haible  <bruno@clisp.org>
27156
27157         * tests/test-localename.c (categories): Fill in the strings.
27158
27159 2009-12-26  Jim Meyering  <meyering@redhat.com>
27160
27161         isdir: complete the removal of m4/isdir.m4
27162         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
27163
27164         isdir: clean up, since at least grep still uses it
27165         * lib/isdir.c: Include "isdir.h".
27166         (S_ISDIR): Remove now-unneeded definition.
27167         * modules/isdir (Files): Add lib/isdir.h.
27168         * lib/isdir.h: New file, with declaration.
27169         * m4/isdir.m4: Remove file -- unneeded.
27170
27171 2009-12-25  Bruno Haible  <bruno@clisp.org>
27172
27173         selinux-h: Make generated .h files standalone.
27174         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
27175         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
27176         * lib/se-selinux.in.h: Likewise.
27177         * modules/selinux-h (Depends-on): Add unused-parameter.
27178         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
27179         selinux/selinux.h and selinux/context.h.
27180         Suggested by Eric Blake.
27181
27182 2009-12-25  Bruno Haible  <bruno@clisp.org>
27183
27184         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
27185         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
27186         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
27187         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
27188         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
27189
27190 2009-12-24  Bruno Haible  <bruno@clisp.org>
27191
27192         openat: Fix warning.
27193         * lib/openat-proc.c: Include <unistd.h>.
27194
27195 2009-12-24  Bruno Haible  <bruno@clisp.org>
27196
27197         New module 'unused-parameter'.
27198         * build-aux/unused-parameter.h: New file, extracted from earlier
27199         gnulib-common.m4.
27200         * modules/unused-parameter: New file.
27201         * lib/unistr.h: Include unused-parameter.h.
27202         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
27203         _GL_UNUSED.
27204         * modules/unistr/base (Depends-on): Add unused-parameter.
27205
27206 2009-12-24  Bruno Haible  <bruno@clisp.org>
27207
27208         Add missing dependencies to 'extensions' module.
27209         * m4/extensions.m4: Add comment.
27210         * modules/accept4 (Depends-on): Add extensions.
27211         * modules/dup3 (Depends-on): Likewise.
27212         * modules/fcntl (Depends-on): Likewise.
27213         * modules/futimens (Depends-on): Likewise.
27214         * modules/mknod (Depends-on): Likewise.
27215         * modules/pipe2 (Depends-on): Likewise.
27216         * modules/stat-time (Depends-on): Likewise.
27217         * modules/strcasestr-simple (Depends-on): Likewise.
27218         * modules/strsignal (Depends-on): Likewise.
27219         * modules/utimensat (Depends-on): Likewise.
27220         * modules/localcharset (Depends-on): Likewise. Needed because of
27221         gl_FCNTL_O_FLAGS.
27222         * modules/wcrtomb (Depends-on): Likewise. Needed because of
27223         AC_TYPE_MBSTATE_T.
27224         * modules/wcsnrtombs (Depends-on): Likewise.
27225         * modules/wcsrtombs (Depends-on): Likewise.
27226
27227 2009-12-24  Bruno Haible  <bruno@clisp.org>
27228
27229         binary-io: Avoid gcc warning due to SET_BINARY.
27230         * lib/binary-io.h (SET_BINARY): Cast the result to void.
27231         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
27232
27233 2009-12-24  Bruno Haible  <bruno@clisp.org>
27234
27235         Avoid future namespace pollution on glibc systems.
27236         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
27237         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
27238         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
27239         glibc systems.
27240
27241 2009-12-24  Bruno Haible  <bruno@clisp.org>
27242
27243         Refactor common macros used in tests.
27244         * tests/macros.h: New file.
27245         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
27246         and/or <stdlib.h>, if appropriate.
27247         (ASSERT, SIZEOF): Remove macros.
27248         * tests/test-areadlink-with-size.c: Likewise.
27249         * tests/test-areadlinkat.c: Likewise.
27250         * tests/test-areadlinkat-with-size.c: Likewise.
27251         * tests/test-argmatch.c: Likewise.
27252         * tests/test-argv-iter.c: Likewise.
27253         * tests/test-array-mergesort.c: Likewise.
27254         * tests/test-array_list.c: Likewise.
27255         * tests/test-array_oset.c: Likewise.
27256         * tests/test-avltree_list.c: Likewise.
27257         * tests/test-avltree_oset.c: Likewise.
27258         * tests/test-avltreehash_list.c: Likewise.
27259         * tests/test-base64.c: Likewise.
27260         * tests/test-binary-io.c: Likewise.
27261         * tests/test-bitrotate.c: Likewise.
27262         * tests/test-btowc.c: Likewise.
27263         * tests/test-byteswap.c: Likewise.
27264         * tests/test-c-ctype.c: Likewise.
27265         * tests/test-c-stack.c: Likewise.
27266         * tests/test-c-strcasecmp.c: Likewise.
27267         * tests/test-c-strcasestr.c: Likewise.
27268         * tests/test-c-strncasecmp.c: Likewise.
27269         * tests/test-c-strstr.c: Likewise.
27270         * tests/test-canonicalize-lgpl.c: Likewise.
27271         * tests/test-canonicalize.c: Likewise.
27272         * tests/test-carray_list.c: Likewise.
27273         * tests/test-ceilf1.c: Likewise.
27274         * tests/test-ceilf2.c: Likewise.
27275         * tests/test-ceill.c: Likewise.
27276         * tests/test-chown.c: Likewise.
27277         * tests/test-cloexec.c: Likewise.
27278         * tests/test-copy-acl.c: Likewise.
27279         * tests/test-copy-file.c: Likewise.
27280         * tests/test-count-one-bits.c: Likewise.
27281         * tests/test-dprintf-posix.c: Likewise.
27282         * tests/test-dup2.c: Likewise.
27283         * tests/test-dup3.c: Likewise.
27284         * tests/test-duplocale.c: Likewise.
27285         * tests/test-fbufmode.c: Likewise.
27286         * tests/test-fchdir.c: Likewise.
27287         * tests/test-fchownat.c: Likewise.
27288         * tests/test-fcntl-safer.c: Likewise.
27289         * tests/test-fcntl.c: Likewise.
27290         * tests/test-fdopendir.c: Likewise.
27291         * tests/test-fdutimensat.c: Likewise.
27292         * tests/test-fflush2.c: Likewise.
27293         * tests/test-file-has-acl.c: Likewise.
27294         * tests/test-filevercmp.c: Likewise.
27295         * tests/test-flock.c: Likewise.
27296         * tests/test-floorf1.c: Likewise.
27297         * tests/test-floorf2.c: Likewise.
27298         * tests/test-floorl.c: Likewise.
27299         * tests/test-fnmatch.c: Likewise.
27300         * tests/test-fopen.h: Likewise.
27301         * tests/test-fpending.c: Likewise.
27302         * tests/test-fprintf-posix.c: Likewise.
27303         * tests/test-fpurge.c: Likewise.
27304         * tests/test-freadable.c: Likewise.
27305         * tests/test-freadahead.c: Likewise.
27306         * tests/test-freading.c: Likewise.
27307         * tests/test-freadptr.c: Likewise.
27308         * tests/test-freadptr2.c: Likewise.
27309         * tests/test-freadseek.c: Likewise.
27310         * tests/test-freopen.c: Likewise.
27311         * tests/test-frexp.c: Likewise.
27312         * tests/test-frexpl.c: Likewise.
27313         * tests/test-fseek.c: Likewise.
27314         * tests/test-fseeko.c: Likewise.
27315         * tests/test-fstatat.c: Likewise.
27316         * tests/test-fstrcmp.c: Likewise.
27317         * tests/test-fsync.c: Likewise.
27318         * tests/test-ftell.c: Likewise.
27319         * tests/test-ftello.c: Likewise.
27320         * tests/test-func.c: Likewise.
27321         * tests/test-futimens.c: Likewise.
27322         * tests/test-fwritable.c: Likewise.
27323         * tests/test-fwriting.c: Likewise.
27324         * tests/test-getcwd.c: Likewise.
27325         * tests/test-getdate.c: Likewise.
27326         * tests/test-getdelim.c: Likewise.
27327         * tests/test-getdtablesize.c: Likewise.
27328         * tests/test-getgroups.c: Likewise.
27329         * tests/test-getline.c: Likewise.
27330         * tests/test-getndelim2.c: Likewise.
27331         * tests/test-glob.c: Likewise.
27332         * tests/test-hash.c: Likewise.
27333         * tests/test-i-ring.c: Likewise.
27334         * tests/test-iconv-utf.c: Likewise.
27335         * tests/test-iconv.c: Likewise.
27336         * tests/test-idpriv-drop.c: Likewise.
27337         * tests/test-idpriv-droptemp.c: Likewise.
27338         * tests/test-inet_ntop.c: Likewise.
27339         * tests/test-inet_pton.c: Likewise.
27340         * tests/test-isblank.c: Likewise.
27341         * tests/test-isfinite.c: Likewise.
27342         * tests/test-isinf.c: Likewise.
27343         * tests/test-isnan.c: Likewise.
27344         * tests/test-isnand.h: Likewise.
27345         * tests/test-isnanf.h: Likewise.
27346         * tests/test-isnanl.h: Likewise.
27347         * tests/test-lchown.c: Likewise.
27348         * tests/test-ldexpl.c: Likewise.
27349         * tests/test-link.c: Likewise.
27350         * tests/test-linkat.c: Likewise.
27351         * tests/test-linked_list.c: Likewise.
27352         * tests/test-linkedhash_list.c: Likewise.
27353         * tests/test-localename.c: Likewise.
27354         * tests/test-lseek.c: Likewise.
27355         * tests/test-lstat.c: Likewise.
27356         * tests/test-mbmemcasecmp.c: Likewise.
27357         * tests/test-mbmemcasecoll.c: Likewise.
27358         * tests/test-mbrtowc.c: Likewise.
27359         * tests/test-mbscasecmp.c: Likewise.
27360         * tests/test-mbscasestr1.c: Likewise.
27361         * tests/test-mbscasestr2.c: Likewise.
27362         * tests/test-mbscasestr3.c: Likewise.
27363         * tests/test-mbscasestr4.c: Likewise.
27364         * tests/test-mbschr.c: Likewise.
27365         * tests/test-mbscspn.c: Likewise.
27366         * tests/test-mbsinit.c: Likewise.
27367         * tests/test-mbsncasecmp.c: Likewise.
27368         * tests/test-mbsnrtowcs.c: Likewise.
27369         * tests/test-mbspbrk.c: Likewise.
27370         * tests/test-mbspcasecmp.c: Likewise.
27371         * tests/test-mbsrchr.c: Likewise.
27372         * tests/test-mbsrtowcs.c: Likewise.
27373         * tests/test-mbsspn.c: Likewise.
27374         * tests/test-mbsstr1.c: Likewise.
27375         * tests/test-mbsstr2.c: Likewise.
27376         * tests/test-mbsstr3.c: Likewise.
27377         * tests/test-memchr.c: Likewise.
27378         * tests/test-memchr2.c: Likewise.
27379         * tests/test-memcmp.c: Likewise.
27380         * tests/test-memmem.c: Likewise.
27381         * tests/test-memrchr.c: Likewise.
27382         * tests/test-mkdir.c: Likewise.
27383         * tests/test-mkdirat.c: Likewise.
27384         * tests/test-mkfifo.c: Likewise.
27385         * tests/test-mkfifoat.c: Likewise.
27386         * tests/test-mknod.c: Likewise.
27387         * tests/test-nanosleep.c: Likewise.
27388         * tests/test-nl_langinfo.c: Likewise.
27389         * tests/test-obstack-printf.c: Likewise.
27390         * tests/test-open.c: Likewise.
27391         * tests/test-openat.c: Likewise.
27392         * tests/test-pipe-filter-gi1.c: Likewise.
27393         * tests/test-pipe-filter-gi2-main.c: Likewise.
27394         * tests/test-pipe-filter-ii1.c: Likewise.
27395         * tests/test-pipe-filter-ii2-main.c: Likewise.
27396         * tests/test-pipe2.c: Likewise.
27397         * tests/test-popen.h: Likewise.
27398         * tests/test-posixtm.c: Likewise.
27399         * tests/test-pread.c: Likewise.
27400         * tests/test-printf-frexp.c: Likewise.
27401         * tests/test-printf-frexpl.c: Likewise.
27402         * tests/test-printf-posix.c: Likewise.
27403         * tests/test-priv-set.c: Likewise.
27404         * tests/test-quotearg.c: Likewise.
27405         * tests/test-random_r.c: Likewise.
27406         * tests/test-rawmemchr.c: Likewise.
27407         * tests/test-rbtree_list.c: Likewise.
27408         * tests/test-rbtree_oset.c: Likewise.
27409         * tests/test-rbtreehash_list.c: Likewise.
27410         * tests/test-readlink.c: Likewise.
27411         * tests/test-remove.c: Likewise.
27412         * tests/test-rename.c: Likewise.
27413         * tests/test-renameat.c: Likewise.
27414         * tests/test-rmdir.c: Likewise.
27415         * tests/test-round1.c: Likewise.
27416         * tests/test-roundf1.c: Likewise.
27417         * tests/test-roundl.c: Likewise.
27418         * tests/test-safe-alloc.c: Likewise.
27419         * tests/test-sameacls.c: Likewise.
27420         * tests/test-set-mode-acl.c: Likewise.
27421         * tests/test-setenv.c: Likewise.
27422         * tests/test-sigaction.c: Likewise.
27423         * tests/test-signbit.c: Likewise.
27424         * tests/test-sleep.c: Likewise.
27425         * tests/test-snprintf-posix.c: Likewise.
27426         * tests/test-snprintf.c: Likewise.
27427         * tests/test-sprintf-posix.c: Likewise.
27428         * tests/test-stat-time.c: Likewise.
27429         * tests/test-stat.c: Likewise.
27430         * tests/test-strcasestr.c: Likewise.
27431         * tests/test-strchrnul.c: Likewise.
27432         * tests/test-strerror.c: Likewise.
27433         * tests/test-striconv.c: Likewise.
27434         * tests/test-striconveh.c: Likewise.
27435         * tests/test-striconveha.c: Likewise.
27436         * tests/test-strsignal.c: Likewise.
27437         * tests/test-strstr.c: Likewise.
27438         * tests/test-strtod.c: Likewise.
27439         * tests/test-strverscmp.c: Likewise.
27440         * tests/test-symlink.c: Likewise.
27441         * tests/test-symlinkat.c: Likewise.
27442         * tests/test-trunc1.c: Likewise.
27443         * tests/test-trunc2.c: Likewise.
27444         * tests/test-truncf1.c: Likewise.
27445         * tests/test-truncf2.c: Likewise.
27446         * tests/test-truncl.c: Likewise.
27447         * tests/test-uname.c: Likewise.
27448         * tests/test-unlink.c: Likewise.
27449         * tests/test-unlinkat.c: Likewise.
27450         * tests/test-unsetenv.c: Likewise.
27451         * tests/test-usleep.c: Likewise.
27452         * tests/test-utimens.c: Likewise.
27453         * tests/test-utimensat.c: Likewise.
27454         * tests/test-vasnprintf-posix.c: Likewise.
27455         * tests/test-vasnprintf-posix2.c: Likewise.
27456         * tests/test-vasnprintf.c: Likewise.
27457         * tests/test-vasprintf-posix.c: Likewise.
27458         * tests/test-vasprintf.c: Likewise.
27459         * tests/test-vdprintf-posix.c: Likewise.
27460         * tests/test-vfprintf-posix.c: Likewise.
27461         * tests/test-vprintf-posix.c: Likewise.
27462         * tests/test-vsnprintf-posix.c: Likewise.
27463         * tests/test-vsnprintf.c: Likewise.
27464         * tests/test-vsprintf-posix.c: Likewise.
27465         * tests/test-wcrtomb.c: Likewise.
27466         * tests/test-wcsnrtombs.c: Likewise.
27467         * tests/test-wcsrtombs.c: Likewise.
27468         * tests/test-wctype.c: Likewise.
27469         * tests/test-wcwidth.c: Likewise.
27470         * tests/test-xfprintf-posix.c: Likewise.
27471         * tests/test-xmemdup0.c: Likewise.
27472         * tests/test-xprintf-posix.c: Likewise.
27473         * tests/test-xvasprintf.c: Likewise.
27474         * tests/unicase/test-locale-language.c: Likewise.
27475         * tests/unicase/test-mapping-part1.h: Likewise.
27476         * tests/unicase/test-predicate-part1.h: Likewise.
27477         * tests/unicase/test-u8-casecmp.c: Likewise.
27478         * tests/unicase/test-u8-casecoll.c: Likewise.
27479         * tests/unicase/test-u8-casefold.c: Likewise.
27480         * tests/unicase/test-u8-is-cased.c: Likewise.
27481         * tests/unicase/test-u8-is-casefolded.c: Likewise.
27482         * tests/unicase/test-u8-is-lowercase.c: Likewise.
27483         * tests/unicase/test-u8-is-titlecase.c: Likewise.
27484         * tests/unicase/test-u8-is-uppercase.c: Likewise.
27485         * tests/unicase/test-u8-tolower.c: Likewise.
27486         * tests/unicase/test-u8-totitle.c: Likewise.
27487         * tests/unicase/test-u8-toupper.c: Likewise.
27488         * tests/unicase/test-u16-casecmp.c: Likewise.
27489         * tests/unicase/test-u16-casecoll.c: Likewise.
27490         * tests/unicase/test-u16-casefold.c: Likewise.
27491         * tests/unicase/test-u16-is-cased.c: Likewise.
27492         * tests/unicase/test-u16-is-casefolded.c: Likewise.
27493         * tests/unicase/test-u16-is-lowercase.c: Likewise.
27494         * tests/unicase/test-u16-is-titlecase.c: Likewise.
27495         * tests/unicase/test-u16-is-uppercase.c: Likewise.
27496         * tests/unicase/test-u16-tolower.c: Likewise.
27497         * tests/unicase/test-u16-totitle.c: Likewise.
27498         * tests/unicase/test-u16-toupper.c: Likewise.
27499         * tests/unicase/test-u32-casecmp.c: Likewise.
27500         * tests/unicase/test-u32-casecoll.c: Likewise.
27501         * tests/unicase/test-u32-casefold.c: Likewise.
27502         * tests/unicase/test-u32-is-cased.c: Likewise.
27503         * tests/unicase/test-u32-is-casefolded.c: Likewise.
27504         * tests/unicase/test-u32-is-lowercase.c: Likewise.
27505         * tests/unicase/test-u32-is-titlecase.c: Likewise.
27506         * tests/unicase/test-u32-is-uppercase.c: Likewise.
27507         * tests/unicase/test-u32-tolower.c: Likewise.
27508         * tests/unicase/test-u32-totitle.c: Likewise.
27509         * tests/unicase/test-u32-toupper.c: Likewise.
27510         * tests/unicase/test-ulc-casecmp.c: Likewise.
27511         * tests/unicase/test-ulc-casecoll.c: Likewise.
27512         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27513         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27514         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27515         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27516         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27517         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27518         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27519         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27520         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27521         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27522         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27523         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27524         * tests/unictype/test-bidi_byname.c: Likewise.
27525         * tests/unictype/test-bidi_name.c: Likewise.
27526         * tests/unictype/test-bidi_of.c: Likewise.
27527         * tests/unictype/test-bidi_test.c: Likewise.
27528         * tests/unictype/test-block_list.c: Likewise.
27529         * tests/unictype/test-block_of.c: Likewise.
27530         * tests/unictype/test-block_test.c: Likewise.
27531         * tests/unictype/test-categ_and.c: Likewise.
27532         * tests/unictype/test-categ_and_not.c: Likewise.
27533         * tests/unictype/test-categ_byname.c: Likewise.
27534         * tests/unictype/test-categ_name.c: Likewise.
27535         * tests/unictype/test-categ_none.c: Likewise.
27536         * tests/unictype/test-categ_of.c: Likewise.
27537         * tests/unictype/test-categ_or.c: Likewise.
27538         * tests/unictype/test-categ_test_withtable.c: Likewise.
27539         * tests/unictype/test-combining.c: Likewise.
27540         * tests/unictype/test-decdigit.c: Likewise.
27541         * tests/unictype/test-digit.c: Likewise.
27542         * tests/unictype/test-mirror.c: Likewise.
27543         * tests/unictype/test-numeric.c: Likewise.
27544         * tests/unictype/test-pr_byname.c: Likewise.
27545         * tests/unictype/test-pr_test.c: Likewise.
27546         * tests/unictype/test-predicate-part1.h: Likewise.
27547         * tests/unictype/test-scripts.c: Likewise.
27548         * tests/unictype/test-sy_c_ident.c: Likewise.
27549         * tests/unictype/test-sy_java_ident.c: Likewise.
27550         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27551         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27552         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27553         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27554         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27555         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27556         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27557         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27558         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27559         * tests/uninorm/test-compat-decomposition.c: Likewise.
27560         * tests/uninorm/test-composition.c: Likewise.
27561         * tests/uninorm/test-decomposing-form.c: Likewise.
27562         * tests/uninorm/test-decomposition.c: Likewise.
27563         * tests/uninorm/test-u8-nfc.c: Likewise.
27564         * tests/uninorm/test-u8-nfd.c: Likewise.
27565         * tests/uninorm/test-u8-nfkc.c: Likewise.
27566         * tests/uninorm/test-u8-nfkd.c: Likewise.
27567         * tests/uninorm/test-u8-normcmp.c: Likewise.
27568         * tests/uninorm/test-u8-normcoll.c: Likewise.
27569         * tests/uninorm/test-u16-nfc.c: Likewise.
27570         * tests/uninorm/test-u16-nfd.c: Likewise.
27571         * tests/uninorm/test-u16-nfkc.c: Likewise.
27572         * tests/uninorm/test-u16-nfkd.c: Likewise.
27573         * tests/uninorm/test-u16-normcmp.c: Likewise.
27574         * tests/uninorm/test-u16-normcoll.c: Likewise.
27575         * tests/uninorm/test-u32-nfc.c: Likewise.
27576         * tests/uninorm/test-u32-nfd.c: Likewise.
27577         * tests/uninorm/test-u32-nfkc.c: Likewise.
27578         * tests/uninorm/test-u32-nfkd.c: Likewise.
27579         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27580         * tests/uninorm/test-u32-normcmp.c: Likewise.
27581         * tests/uninorm/test-u32-normcoll.c: Likewise.
27582         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27583         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27584         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27585         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27586         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27587         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27588         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27589         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27590         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27591         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27592         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27593         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27594         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27595         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27596         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27597         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27598         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27599         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27600         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27601         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27602         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27603         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27604         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27605         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27606         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27607         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27608         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27609         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27610         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27611         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27612         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27613         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27614         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27615         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27616         * tests/uniwidth/test-u8-width.c: Likewise.
27617         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27618         * tests/uniwidth/test-u16-width.c: Likewise.
27619         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27620         * tests/uniwidth/test-u32-width.c: Likewise.
27621         * tests/uniwidth/test-uc_width.c: Likewise.
27622         * tests/uniwidth/test-uc_width2.c: Likewise.
27623         * modules/acl-tests (Files): Add tests/macros.h.
27624         * modules/areadlink-tests (Files): Likewise.
27625         * modules/areadlink-with-size-tests (Files): Likewise.
27626         * modules/areadlinkat-tests (Files): Likewise.
27627         * modules/areadlinkat-with-size-tests (Files): Likewise.
27628         * modules/argmatch-tests (Files): Likewise.
27629         * modules/argv-iter-tests (Files): Likewise.
27630         * modules/array-list-tests (Files): Likewise.
27631         * modules/array-mergesort-tests (Files): Likewise.
27632         * modules/array-oset-tests (Files): Likewise.
27633         * modules/avltree-list-tests (Files): Likewise.
27634         * modules/avltree-oset-tests (Files): Likewise.
27635         * modules/avltreehash-list-tests (Files): Likewise.
27636         * modules/base64-tests (Files): Likewise.
27637         * modules/binary-io-tests (Files): Likewise.
27638         * modules/bitrotate-tests (Files): Likewise.
27639         * modules/btowc-tests (Files): Likewise.
27640         * modules/byteswap-tests (Files): Likewise.
27641         * modules/c-ctype-tests (Files): Likewise.
27642         * modules/c-stack-tests (Files): Likewise.
27643         * modules/c-strcase-tests (Files): Likewise.
27644         * modules/c-strcasestr-tests (Files): Likewise.
27645         * modules/c-strstr-tests (Files): Likewise.
27646         * modules/canonicalize-lgpl-tests (Files): Likewise.
27647         * modules/canonicalize-tests (Files): Likewise.
27648         * modules/carray-list-tests (Files): Likewise.
27649         * modules/ceilf-tests (Files): Likewise.
27650         * modules/ceill-tests (Files): Likewise.
27651         * modules/chown-tests (Files): Likewise.
27652         * modules/cloexec-tests (Files): Likewise.
27653         * modules/copy-file-tests (Files): Likewise.
27654         * modules/count-one-bits-tests (Files): Likewise.
27655         * modules/dprintf-posix-tests (Files): Likewise.
27656         * modules/dup2-tests (Files): Likewise.
27657         * modules/dup3-tests (Files): Likewise.
27658         * modules/duplocale-tests (Files): Likewise.
27659         * modules/fbufmode-tests (Files): Likewise.
27660         * modules/fchdir-tests (Files): Likewise.
27661         * modules/fcntl-safer-tests (Files): Likewise.
27662         * modules/fcntl-tests (Files): Likewise.
27663         * modules/fdopendir-tests (Files): Likewise.
27664         * modules/fdutimensat-tests (Files): Likewise.
27665         * modules/fflush-tests (Files): Likewise.
27666         * modules/filevercmp-tests (Files): Likewise.
27667         * modules/flock-tests (Files): Likewise.
27668         * modules/floorf-tests (Files): Likewise.
27669         * modules/floorl-tests (Files): Likewise.
27670         * modules/fnmatch-tests (Files): Likewise.
27671         * modules/fopen-safer-tests (Files): Likewise.
27672         * modules/fopen-tests (Files): Likewise.
27673         * modules/fpending-tests (Files): Likewise.
27674         * modules/fprintf-posix-tests (Files): Likewise.
27675         * modules/fpurge-tests (Files): Likewise.
27676         * modules/freadable-tests (Files): Likewise.
27677         * modules/freadahead-tests (Files): Likewise.
27678         * modules/freading-tests (Files): Likewise.
27679         * modules/freadptr-tests (Files): Likewise.
27680         * modules/freadseek-tests (Files): Likewise.
27681         * modules/freopen-tests (Files): Likewise.
27682         * modules/frexp-nolibm-tests (Files): Likewise.
27683         * modules/frexp-tests (Files): Likewise.
27684         * modules/frexpl-nolibm-tests (Files): Likewise.
27685         * modules/frexpl-tests (Files): Likewise.
27686         * modules/fseek-tests (Files): Likewise.
27687         * modules/fseeko-tests (Files): Likewise.
27688         * modules/fstrcmp-tests (Files): Likewise.
27689         * modules/fsync-tests (Files): Likewise.
27690         * modules/ftell-tests (Files): Likewise.
27691         * modules/ftello-tests (Files): Likewise.
27692         * modules/func-tests (Files): Likewise.
27693         * modules/futimens-tests (Files): Likewise.
27694         * modules/fwritable-tests (Files): Likewise.
27695         * modules/fwriting-tests (Files): Likewise.
27696         * modules/getcwd-tests (Files): Likewise.
27697         * modules/getdate-tests (Files): Likewise.
27698         * modules/getdelim-tests (Files): Likewise.
27699         * modules/getdtablesize-tests (Files): Likewise.
27700         * modules/getgroups-tests (Files): Likewise.
27701         * modules/getline-tests (Files): Likewise.
27702         * modules/getndelim2-tests (Files): Likewise.
27703         * modules/glob-tests (Files): Likewise.
27704         * modules/hash-tests (Files): Likewise.
27705         * modules/i-ring-tests (Files): Likewise.
27706         * modules/iconv-tests (Files): Likewise.
27707         * modules/iconv_open-utf-tests (Files): Likewise.
27708         * modules/idpriv-drop-tests (Files): Likewise.
27709         * modules/idpriv-droptemp-tests (Files): Likewise.
27710         * modules/inet_ntop-tests (Files): Likewise.
27711         * modules/inet_pton-tests (Files): Likewise.
27712         * modules/isblank-tests (Files): Likewise.
27713         * modules/isfinite-tests (Files): Likewise.
27714         * modules/isinf-tests (Files): Likewise.
27715         * modules/isnan-tests (Files): Likewise.
27716         * modules/isnand-nolibm-tests (Files): Likewise.
27717         * modules/isnand-tests (Files): Likewise.
27718         * modules/isnanf-nolibm-tests (Files): Likewise.
27719         * modules/isnanf-tests (Files): Likewise.
27720         * modules/isnanl-nolibm-tests (Files): Likewise.
27721         * modules/isnanl-tests (Files): Likewise.
27722         * modules/lchown-tests (Files): Likewise.
27723         * modules/ldexpl-tests (Files): Likewise.
27724         * modules/link-tests (Files): Likewise.
27725         * modules/linkat-tests (Files): Likewise.
27726         * modules/linked-list-tests (Files): Likewise.
27727         * modules/linkedhash-list-tests (Files): Likewise.
27728         * modules/localename-tests (Files): Likewise.
27729         * modules/lseek-tests (Files): Likewise.
27730         * modules/lstat-tests (Files): Likewise.
27731         * modules/mbmemcasecmp-tests (Files): Likewise.
27732         * modules/mbmemcasecoll-tests (Files): Likewise.
27733         * modules/mbrtowc-tests (Files): Likewise.
27734         * modules/mbscasecmp-tests (Files): Likewise.
27735         * modules/mbscasestr-tests (Files): Likewise.
27736         * modules/mbschr-tests (Files): Likewise.
27737         * modules/mbscspn-tests (Files): Likewise.
27738         * modules/mbsinit-tests (Files): Likewise.
27739         * modules/mbsncasecmp-tests (Files): Likewise.
27740         * modules/mbsnrtowcs-tests (Files): Likewise.
27741         * modules/mbspbrk-tests (Files): Likewise.
27742         * modules/mbspcasecmp-tests (Files): Likewise.
27743         * modules/mbsrchr-tests (Files): Likewise.
27744         * modules/mbsrtowcs-tests (Files): Likewise.
27745         * modules/mbsspn-tests (Files): Likewise.
27746         * modules/mbsstr-tests (Files): Likewise.
27747         * modules/memchr-tests (Files): Likewise.
27748         * modules/memchr2-tests (Files): Likewise.
27749         * modules/memcmp-tests (Files): Likewise.
27750         * modules/memmem-tests (Files): Likewise.
27751         * modules/memrchr-tests (Files): Likewise.
27752         * modules/mkdir-tests (Files): Likewise.
27753         * modules/mkfifo-tests (Files): Likewise.
27754         * modules/mkfifoat-tests (Files): Likewise.
27755         * modules/mknod-tests (Files): Likewise.
27756         * modules/nanosleep-tests (Files): Likewise.
27757         * modules/nl_langinfo-tests (Files): Likewise.
27758         * modules/obstack-printf-tests (Files): Likewise.
27759         * modules/open-tests (Files): Likewise.
27760         * modules/openat-tests (Files): Likewise.
27761         * modules/pipe-filter-gi-tests (Files): Likewise.
27762         * modules/pipe-filter-ii-tests (Files): Likewise.
27763         * modules/pipe2-tests (Files): Likewise.
27764         * modules/popen-safer-tests (Files): Likewise.
27765         * modules/popen-tests (Files): Likewise.
27766         * modules/posixtm-tests (Files): Likewise.
27767         * modules/pread-tests (Files): Likewise.
27768         * modules/printf-frexp-tests (Files): Likewise.
27769         * modules/printf-frexpl-tests (Files): Likewise.
27770         * modules/printf-posix-tests (Files): Likewise.
27771         * modules/priv-set-tests (Files): Likewise.
27772         * modules/quotearg-tests (Files): Likewise.
27773         * modules/random_r-tests (Files): Likewise.
27774         * modules/rawmemchr-tests (Files): Likewise.
27775         * modules/rbtree-list-tests (Files): Likewise.
27776         * modules/rbtree-oset-tests (Files): Likewise.
27777         * modules/rbtreehash-list-tests (Files): Likewise.
27778         * modules/readlink-tests (Files): Likewise.
27779         * modules/remove-tests (Files): Likewise.
27780         * modules/rename-tests (Files): Likewise.
27781         * modules/renameat-tests (Files): Likewise.
27782         * modules/rmdir-tests (Files): Likewise.
27783         * modules/round-tests (Files): Likewise.
27784         * modules/roundf-tests (Files): Likewise.
27785         * modules/roundl-tests (Files): Likewise.
27786         * modules/safe-alloc-tests (Files): Likewise.
27787         * modules/setenv-tests (Files): Likewise.
27788         * modules/sigaction-tests (Files): Likewise.
27789         * modules/signbit-tests (Files): Likewise.
27790         * modules/sleep-tests (Files): Likewise.
27791         * modules/snprintf-posix-tests (Files): Likewise.
27792         * modules/snprintf-tests (Files): Likewise.
27793         * modules/sprintf-posix-tests (Files): Likewise.
27794         * modules/stat-tests (Files): Likewise.
27795         * modules/stat-time-tests (Files): Likewise.
27796         * modules/strcasestr-tests (Files): Likewise.
27797         * modules/strchrnul-tests (Files): Likewise.
27798         * modules/strerror-tests (Files): Likewise.
27799         * modules/striconv-tests (Files): Likewise.
27800         * modules/striconveh-tests (Files): Likewise.
27801         * modules/striconveha-tests (Files): Likewise.
27802         * modules/strsignal-tests (Files): Likewise.
27803         * modules/strstr-tests (Files): Likewise.
27804         * modules/strtod-tests (Files): Likewise.
27805         * modules/strverscmp-tests (Files): Likewise.
27806         * modules/symlink-tests (Files): Likewise.
27807         * modules/symlinkat-tests (Files): Likewise.
27808         * modules/trunc-tests (Files): Likewise.
27809         * modules/truncf-tests (Files): Likewise.
27810         * modules/truncl-tests (Files): Likewise.
27811         * modules/uname-tests (Files): Likewise.
27812         * modules/unicase/cased-tests (Files): Likewise.
27813         * modules/unicase/ignorable-tests (Files): Likewise.
27814         * modules/unicase/locale-language-tests (Files): Likewise.
27815         * modules/unicase/tolower-tests (Files): Likewise.
27816         * modules/unicase/totitle-tests (Files): Likewise.
27817         * modules/unicase/toupper-tests (Files): Likewise.
27818         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27819         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27820         * modules/unicase/u8-casefold-tests (Files): Likewise.
27821         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27822         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27823         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27824         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27825         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27826         * modules/unicase/u8-tolower-tests (Files): Likewise.
27827         * modules/unicase/u8-totitle-tests (Files): Likewise.
27828         * modules/unicase/u8-toupper-tests (Files): Likewise.
27829         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27830         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27831         * modules/unicase/u16-casefold-tests (Files): Likewise.
27832         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27833         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27834         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27835         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27836         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27837         * modules/unicase/u16-tolower-tests (Files): Likewise.
27838         * modules/unicase/u16-totitle-tests (Files): Likewise.
27839         * modules/unicase/u16-toupper-tests (Files): Likewise.
27840         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27841         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27842         * modules/unicase/u32-casefold-tests (Files): Likewise.
27843         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27844         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27845         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27846         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27847         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27848         * modules/unicase/u32-tolower-tests (Files): Likewise.
27849         * modules/unicase/u32-totitle-tests (Files): Likewise.
27850         * modules/unicase/u32-toupper-tests (Files): Likewise.
27851         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27852         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27853         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27854         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27855         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27856         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27857         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27858         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27859         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27860         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27861         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27862         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27863         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27864         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27865         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27866         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27867         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27868         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27869         * modules/unictype/block-list-tests (Files): Likewise.
27870         * modules/unictype/block-of-tests (Files): Likewise.
27871         * modules/unictype/block-test-tests (Files): Likewise.
27872         * modules/unictype/category-C-tests (Files): Likewise.
27873         * modules/unictype/category-Cc-tests (Files): Likewise.
27874         * modules/unictype/category-Cf-tests (Files): Likewise.
27875         * modules/unictype/category-Cn-tests (Files): Likewise.
27876         * modules/unictype/category-Co-tests (Files): Likewise.
27877         * modules/unictype/category-Cs-tests (Files): Likewise.
27878         * modules/unictype/category-L-tests (Files): Likewise.
27879         * modules/unictype/category-Ll-tests (Files): Likewise.
27880         * modules/unictype/category-Lm-tests (Files): Likewise.
27881         * modules/unictype/category-Lo-tests (Files): Likewise.
27882         * modules/unictype/category-Lt-tests (Files): Likewise.
27883         * modules/unictype/category-Lu-tests (Files): Likewise.
27884         * modules/unictype/category-M-tests (Files): Likewise.
27885         * modules/unictype/category-Mc-tests (Files): Likewise.
27886         * modules/unictype/category-Me-tests (Files): Likewise.
27887         * modules/unictype/category-Mn-tests (Files): Likewise.
27888         * modules/unictype/category-N-tests (Files): Likewise.
27889         * modules/unictype/category-Nd-tests (Files): Likewise.
27890         * modules/unictype/category-Nl-tests (Files): Likewise.
27891         * modules/unictype/category-No-tests (Files): Likewise.
27892         * modules/unictype/category-P-tests (Files): Likewise.
27893         * modules/unictype/category-Pc-tests (Files): Likewise.
27894         * modules/unictype/category-Pd-tests (Files): Likewise.
27895         * modules/unictype/category-Pe-tests (Files): Likewise.
27896         * modules/unictype/category-Pf-tests (Files): Likewise.
27897         * modules/unictype/category-Pi-tests (Files): Likewise.
27898         * modules/unictype/category-Po-tests (Files): Likewise.
27899         * modules/unictype/category-Ps-tests (Files): Likewise.
27900         * modules/unictype/category-S-tests (Files): Likewise.
27901         * modules/unictype/category-Sc-tests (Files): Likewise.
27902         * modules/unictype/category-Sk-tests (Files): Likewise.
27903         * modules/unictype/category-Sm-tests (Files): Likewise.
27904         * modules/unictype/category-So-tests (Files): Likewise.
27905         * modules/unictype/category-Z-tests (Files): Likewise.
27906         * modules/unictype/category-Zl-tests (Files): Likewise.
27907         * modules/unictype/category-Zp-tests (Files): Likewise.
27908         * modules/unictype/category-Zs-tests (Files): Likewise.
27909         * modules/unictype/category-and-not-tests (Files): Likewise.
27910         * modules/unictype/category-and-tests (Files): Likewise.
27911         * modules/unictype/category-byname-tests (Files): Likewise.
27912         * modules/unictype/category-name-tests (Files): Likewise.
27913         * modules/unictype/category-none-tests (Files): Likewise.
27914         * modules/unictype/category-of-tests (Files): Likewise.
27915         * modules/unictype/category-or-tests (Files): Likewise.
27916         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27917         * modules/unictype/combining-class-tests (Files): Likewise.
27918         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27919         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27920         * modules/unictype/ctype-blank-tests (Files): Likewise.
27921         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27922         * modules/unictype/ctype-digit-tests (Files): Likewise.
27923         * modules/unictype/ctype-graph-tests (Files): Likewise.
27924         * modules/unictype/ctype-lower-tests (Files): Likewise.
27925         * modules/unictype/ctype-print-tests (Files): Likewise.
27926         * modules/unictype/ctype-punct-tests (Files): Likewise.
27927         * modules/unictype/ctype-space-tests (Files): Likewise.
27928         * modules/unictype/ctype-upper-tests (Files): Likewise.
27929         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27930         * modules/unictype/decimal-digit-tests (Files): Likewise.
27931         * modules/unictype/digit-tests (Files): Likewise.
27932         * modules/unictype/mirror-tests (Files): Likewise.
27933         * modules/unictype/numeric-tests (Files): Likewise.
27934         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27935         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27936         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27937         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27938         Likewise.
27939         * modules/unictype/property-bidi-block-separator-tests (Files):
27940         Likewise.
27941         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27942         Likewise.
27943         * modules/unictype/property-bidi-common-separator-tests (Files):
27944         Likewise.
27945         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27946         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27947         Likewise.
27948         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27949         Likewise.
27950         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27951         Likewise.
27952         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27953         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27954         Likewise.
27955         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27956         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27957         Likewise.
27958         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27959         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27960         * modules/unictype/property-bidi-segment-separator-tests (Files):
27961         Likewise.
27962         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27963         * modules/unictype/property-byname-tests (Files): Likewise.
27964         * modules/unictype/property-combining-tests (Files): Likewise.
27965         * modules/unictype/property-composite-tests (Files): Likewise.
27966         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27967         * modules/unictype/property-dash-tests (Files): Likewise.
27968         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27969         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27970         Likewise.
27971         * modules/unictype/property-deprecated-tests (Files): Likewise.
27972         * modules/unictype/property-diacritic-tests (Files): Likewise.
27973         * modules/unictype/property-extender-tests (Files): Likewise.
27974         * modules/unictype/property-format-control-tests (Files): Likewise.
27975         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27976         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27977         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27978         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27979         * modules/unictype/property-hyphen-tests (Files): Likewise.
27980         * modules/unictype/property-id-continue-tests (Files): Likewise.
27981         * modules/unictype/property-id-start-tests (Files): Likewise.
27982         * modules/unictype/property-ideographic-tests (Files): Likewise.
27983         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27984         * modules/unictype/property-ids-trinary-operator-tests (Files):
27985         Likewise.
27986         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27987         * modules/unictype/property-iso-control-tests (Files): Likewise.
27988         * modules/unictype/property-join-control-tests (Files): Likewise.
27989         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27990         * modules/unictype/property-line-separator-tests (Files): Likewise.
27991         * modules/unictype/property-logical-order-exception-tests (Files):
27992         Likewise.
27993         * modules/unictype/property-lowercase-tests (Files): Likewise.
27994         * modules/unictype/property-math-tests (Files): Likewise.
27995         * modules/unictype/property-non-break-tests (Files): Likewise.
27996         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27997         * modules/unictype/property-numeric-tests (Files): Likewise.
27998         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27999         * modules/unictype/property-other-default-ignorable-code-point-tests
28000         (Files): Likewise.
28001         * modules/unictype/property-other-grapheme-extend-tests (Files):
28002         Likewise.
28003         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
28004         * modules/unictype/property-other-id-start-tests (Files): Likewise.
28005         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
28006         * modules/unictype/property-other-math-tests (Files): Likewise.
28007         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
28008         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
28009         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
28010         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
28011         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
28012         * modules/unictype/property-private-use-tests (Files): Likewise.
28013         * modules/unictype/property-punctuation-tests (Files): Likewise.
28014         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
28015         * modules/unictype/property-radical-tests (Files): Likewise.
28016         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
28017         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
28018         * modules/unictype/property-space-tests (Files): Likewise.
28019         * modules/unictype/property-terminal-punctuation-tests (Files):
28020         Likewise.
28021         * modules/unictype/property-test-tests (Files): Likewise.
28022         * modules/unictype/property-titlecase-tests (Files): Likewise.
28023         * modules/unictype/property-unassigned-code-value-tests (Files):
28024         Likewise.
28025         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
28026         * modules/unictype/property-uppercase-tests (Files): Likewise.
28027         * modules/unictype/property-variation-selector-tests (Files): Likewise.
28028         * modules/unictype/property-white-space-tests (Files): Likewise.
28029         * modules/unictype/property-xid-continue-tests (Files): Likewise.
28030         * modules/unictype/property-xid-start-tests (Files): Likewise.
28031         * modules/unictype/property-zero-width-tests (Files): Likewise.
28032         * modules/unictype/scripts-tests (Files): Likewise.
28033         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
28034         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
28035         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
28036         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
28037         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
28038         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
28039         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
28040         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
28041         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
28042         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
28043         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
28044         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
28045         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
28046         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
28047         * modules/uninorm/composition-tests (Files): Likewise.
28048         * modules/uninorm/decomposing-form-tests (Files): Likewise.
28049         * modules/uninorm/decomposition-tests (Files): Likewise.
28050         * modules/uninorm/filter-tests (Files): Likewise.
28051         * modules/uninorm/nfc-tests (Files): Likewise.
28052         * modules/uninorm/nfd-tests (Files): Likewise.
28053         * modules/uninorm/nfkc-tests (Files): Likewise.
28054         * modules/uninorm/nfkd-tests (Files): Likewise.
28055         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
28056         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
28057         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
28058         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
28059         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
28060         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
28061         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
28062         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28063         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
28064         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
28065         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
28066         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
28067         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28068         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
28069         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
28070         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
28071         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
28072         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28073         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
28074         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
28075         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
28076         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
28077         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28078         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
28079         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
28080         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
28081         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
28082         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
28083         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
28084         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
28085         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
28086         * modules/uniwidth/u8-width-tests (Files): Likewise.
28087         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
28088         * modules/uniwidth/u16-width-tests (Files): Likewise.
28089         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
28090         * modules/uniwidth/u32-width-tests (Files): Likewise.
28091         * modules/uniwidth/width-tests (Files): Likewise.
28092         * modules/unlink-tests (Files): Likewise.
28093         * modules/unsetenv-tests (Files): Likewise.
28094         * modules/usleep-tests (Files): Likewise.
28095         * modules/utimens-tests (Files): Likewise.
28096         * modules/utimensat-tests (Files): Likewise.
28097         * modules/vasnprintf-posix-tests (Files): Likewise.
28098         * modules/vasnprintf-tests (Files): Likewise.
28099         * modules/vasprintf-posix-tests (Files): Likewise.
28100         * modules/vasprintf-tests (Files): Likewise.
28101         * modules/vdprintf-posix-tests (Files): Likewise.
28102         * modules/vfprintf-posix-tests (Files): Likewise.
28103         * modules/vprintf-posix-tests (Files): Likewise.
28104         * modules/vsnprintf-posix-tests (Files): Likewise.
28105         * modules/vsnprintf-tests (Files): Likewise.
28106         * modules/vsprintf-posix-tests (Files): Likewise.
28107         * modules/wcrtomb-tests (Files): Likewise.
28108         * modules/wcsnrtombs-tests (Files): Likewise.
28109         * modules/wcsrtombs-tests (Files): Likewise.
28110         * modules/wctype-tests (Files): Likewise.
28111         * modules/wcwidth-tests (Files): Likewise.
28112         * modules/xmemdup0-tests (Files): Likewise.
28113         * modules/xprintf-posix-tests (Files): Likewise.
28114         * modules/xvasprintf-tests (Files): Likewise.
28115
28116 2009-12-24  Eric Blake  <ebb9@byu.net>
28117
28118         test-nanosleep: fix typo
28119         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
28120         patch.
28121         Reported by Bruno Haible.
28122
28123 2009-12-24  Bruno Haible  <bruno@clisp.org>
28124
28125         Reduce namespace pollution on glibc systems.
28126         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
28127         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
28128         systems.
28129         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
28130         <getopt.h> on glibc systems.
28131         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
28132         systems.
28133         * lib/fcntl.c: Include <unistd.h> here instead.
28134
28135 2009-12-24  Bruno Haible  <bruno@clisp.org>
28136
28137         * lib/stdlib.in.h (includes): Fix typo in today's commit.
28138
28139 2009-12-24  Eric Blake  <ebb9@byu.net>
28140
28141         tests: add signature checks
28142         * tests/signature.h (SIGNATURE_CHECK): New file.
28143         * modules/atexit-tests (Files): Use it.
28144         * modules/btowc-tests (Files): Likewise.
28145         * modules/canonicalize-lgpl-tests (Files): Likewise.
28146         * modules/ceilf-tests (Files): Likewise.
28147         * modules/ceill-tests (Files): Likewise.
28148         * modules/chown-tests (Files): Likewise.
28149         * modules/dprintf-posix-tests (Files): Likewise.
28150         * modules/dup2-tests (Files): Likewise.
28151         * modules/dup3-tests (Files): Likewise.
28152         * modules/duplocale-tests (Files): Likewise.
28153         * modules/fchdir-tests (Files): Likewise.
28154         * modules/fcntl-tests (Files): Likewise.
28155         * modules/fdopendir-tests (Files): Likewise.
28156         * modules/fflush-tests (Files): Likewise.
28157         * modules/flock-tests (Files): Likewise.
28158         * modules/floorf-tests (Files): Likewise.
28159         * modules/floorl-tests (Files): Likewise.
28160         * modules/fnmatch-tests (Files): Likewise.
28161         * modules/fopen-tests (Files): Likewise.
28162         * modules/fprintf-posix-tests (Files): Likewise.
28163         * modules/freopen-tests (Files): Likewise.
28164         * modules/frexp-nolibm-tests (Files): Likewise.
28165         * modules/frexp-tests (Files): Likewise.
28166         * modules/frexpl-nolibm-tests (Files): Likewise.
28167         * modules/frexpl-tests (Files): Likewise.
28168         * modules/fseek-tests (Files): Likewise.
28169         * modules/fseeko-tests (Files): Likewise.
28170         * modules/fsync-tests (Files): Likewise.
28171         * modules/ftell-tests (Files): Likewise.
28172         * modules/ftello-tests (Files): Likewise.
28173         * modules/futimens-tests (Files): Likewise.
28174         * modules/getaddrinfo-tests (Files): Likewise.
28175         * modules/getcwd-tests (Files): Likewise.
28176         * modules/getdelim-tests (Files): Likewise.
28177         * modules/getdtablesize-tests (Files): Likewise.
28178         * modules/getgroups-tests (Files): Likewise.
28179         * modules/gethostname-tests (Files): Likewise.
28180         * modules/getline-tests (Files): Likewise.
28181         * modules/getopt-posix-tests (Files): Likewise.
28182         * modules/gettimeofday-tests (Files): Likewise.
28183         * modules/glob-tests (Files): Likewise.
28184         * modules/iconv-tests (Files): Likewise.
28185         * modules/inet_ntop-tests (Files): Likewise.
28186         * modules/inet_pton-tests (Files): Likewise.
28187         * modules/isblank-tests (Files): Likewise.
28188         * modules/lchown-tests (Files): Likewise.
28189         * modules/ldexpl-tests (Files): Likewise.
28190         * modules/link-tests (Files): Likewise.
28191         * modules/linkat-tests (Files): Likewise.
28192         * modules/lseek-tests (Files): Likewise.
28193         * modules/lstat-tests (Files): Likewise.
28194         * modules/mbrtowc-tests (Files): Likewise.
28195         * modules/mbsinit-tests (Files): Likewise.
28196         * modules/mbsnrtowcs-tests (Files): Likewise.
28197         * modules/mbsrtowcs-tests (Files): Likewise.
28198         * modules/memchr-tests (Files): Likewise.
28199         * modules/memcmp-tests (Files): Likewise.
28200         * modules/memmem-tests (Files): Likewise.
28201         * modules/memrchr-tests (Files): Likewise.
28202         * modules/mkdir-tests (Files): Likewise.
28203         * modules/mkfifo-tests (Files): Likewise.
28204         * modules/mkfifoat-tests (Files): Likewise.
28205         * modules/mknod-tests (Files): Likewise.
28206         * modules/nanosleep-tests (Files): Likewise.
28207         * modules/nl_langinfo-tests (Files): Likewise.
28208         * modules/obstack-printf-tests (Files): Likewise.
28209         * modules/open-tests (Files): Likewise.
28210         * modules/openat-tests (Files): Likewise.
28211         * modules/perror-tests (Files): Likewise.
28212         * modules/pipe2-tests (Files): Likewise.
28213         * modules/poll-tests (Files): Likewise.
28214         * modules/popen-tests (Files): Likewise.
28215         * modules/posix_spawn-tests (Files): Likewise.
28216         * modules/posix_spawnp-tests (Files): Likewise.
28217         * modules/pread-tests (Files): Likewise.
28218         * modules/printf-posix-tests (Files): Likewise.
28219         * modules/pty-tests (Files): Likewise.
28220         * modules/random_r-tests (Files): Likewise.
28221         * modules/rawmemchr-tests (Files): Likewise.
28222         * modules/readlink-tests (Files): Likewise.
28223         * modules/remove-tests (Files): Likewise.
28224         * modules/rename-tests (Files): Likewise.
28225         * modules/renameat-tests (Files): Likewise.
28226         * modules/rmdir-tests (Files): Likewise.
28227         * modules/round-tests (Files): Likewise.
28228         * modules/roundf-tests (Files): Likewise.
28229         * modules/roundl-tests (Files): Likewise.
28230         * modules/select-tests (Files): Likewise.
28231         * modules/setenv-tests (Files): Likewise.
28232         * modules/sigaction-tests (Files): Likewise.
28233         * modules/sleep-tests (Files): Likewise.
28234         * modules/snprintf-posix-tests (Files): Likewise.
28235         * modules/snprintf-tests (Files): Likewise.
28236         * modules/sprintf-posix-tests (Files): Likewise.
28237         * modules/stat-tests (Files): Likewise.
28238         * modules/strcasestr-tests (Files): Likewise.
28239         * modules/strchrnul-tests (Files): Likewise.
28240         * modules/strerror-tests (Files): Likewise.
28241         * modules/strsignal-tests (Files): Likewise.
28242         * modules/strstr-tests (Files): Likewise.
28243         * modules/strtod-tests (Files): Likewise.
28244         * modules/strverscmp-tests (Files): Likewise.
28245         * modules/symlink-tests (Files): Likewise.
28246         * modules/symlinkat-tests (Files): Likewise.
28247         * modules/times-tests (Files): Likewise.
28248         * modules/trunc-tests (Files): Likewise.
28249         * modules/truncf-tests (Files): Likewise.
28250         * modules/truncl-tests (Files): Likewise.
28251         * modules/tsearch-tests (Files): Likewise.
28252         * modules/uname-tests (Files): Likewise.
28253         * modules/unlink-tests (Files): Likewise.
28254         * modules/unsetenv-tests (Files): Likewise.
28255         * modules/usleep-tests (Files): Likewise.
28256         * modules/utimensat-tests (Files): Likewise.
28257         * modules/vasprintf-tests (Files): Likewise.
28258         * modules/vdprintf-posix-tests (Files): Likewise.
28259         * modules/vfprintf-posix-tests (Files): Likewise.
28260         * modules/vprintf-posix-tests (Files): Likewise.
28261         * modules/vsnprintf-posix-tests (Files): Likewise.
28262         * modules/vsnprintf-tests (Files): Likewise.
28263         * modules/vsprintf-posix-tests (Files): Likewise.
28264         * modules/wcrtomb-tests (Files): Likewise.
28265         * modules/wcsnrtombs-tests (Files): Likewise.
28266         * modules/wcsrtombs-tests (Files): Likewise.
28267         * modules/wcwidth-tests (Files): Likewise.
28268         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
28269         * tests/test-isinf.c (isinf): Likewise.
28270         * tests/test-isnan.c (isnan): Likewise.
28271         * tests/test-signbit.c (signbit): Likewise.
28272         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
28273         declaration, either as macro or with correct signature.
28274         (select): Ensure function under test is declared with correct
28275         signature in correct header.
28276         * tests/test-atexit.c (atexit): Likewise.
28277         * tests/test-btowc.c (btowc): Likewise.
28278         * tests/test-canonicalize-lgpl.c (realpath)
28279         (canonicalize_file_name): Likewise.
28280         * tests/test-ceilf1.c (ceilf): Likewise.
28281         * tests/test-ceill.c (ceill): Likewise.
28282         * tests/test-chown.c (chown): Likewise.
28283         * tests/test-dprintf-posix.c (dprintf): Likewise.
28284         * tests/test-dup2.c (dup2): Likewise.
28285         * tests/test-dup3.c (dup3): Likewise.
28286         * tests/test-duplocale.c (duplocale): Likewise.
28287         * tests/test-fchdir.c (fchdir): Likewise.
28288         * tests/test-fchownat.c (fchownat): Likewise.
28289         * tests/test-fcntl.c (fcntl): Likewise.
28290         * tests/test-fdopendir.c (fdopendir): Likewise.
28291         * tests/test-fflush.c (fflush): Likewise.
28292         * tests/test-flock.c (flock): Likewise.
28293         * tests/test-floorf1.c (floorf): Likewise.
28294         * tests/test-floorl.c (floorl): Likewise.
28295         * tests/test-fnmatch.c (fnmatch): Likewise.
28296         * tests/test-fopen.c (fopen): Likewise.
28297         * tests/test-fprintf-posix.c (fprintf): Likewise.
28298         * tests/test-freopen.c (freopen): Likewise.
28299         * tests/test-frexp.c (frexp): Likewise.
28300         * tests/test-frexpl.c (frexpl): Likewise.
28301         * tests/test-fseek.c (fseek): Likewise.
28302         * tests/test-fseeko.c (fseeko): Likewise.
28303         * tests/test-fstatat.c (fstatat): Likewise.
28304         * tests/test-fsync.c (fsync): Likewise.
28305         * tests/test-ftell.c (ftell): Likewise.
28306         * tests/test-ftello.c (ftello): Likewise.
28307         * tests/test-futimens.c (futimens): Likewise.
28308         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
28309         (gai_strerror): Likewise.
28310         * tests/test-getcwd.c (getcwd): Likewise.
28311         * tests/test-getdelim.c (getdelim): Likewise.
28312         * tests/test-getdtablesize.c (getdtablesize): Likewise.
28313         * tests/test-getgroups.c (getgroups): Likewise.
28314         * tests/test-gethostname.c (gethostname): Likewise.
28315         * tests/test-getline.c (getline): Likewise.
28316         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
28317         Likewise.
28318         * tests/test-gettimeofday.c (gettimeofday): Likewise.
28319         * tests/test-glob.c (glob, globfree): Likewise.
28320         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
28321         * tests/test-inet_ntop.c (inet_ntop): Likewise.
28322         * tests/test-inet_pton.c (inet_pton): Likewise.
28323         * tests/test-isblank.c (isblank): Likewise.
28324         * tests/test-lchown.c (lchown): Likewise.
28325         * tests/test-ldexpl.c (ldexpl): Likewise.
28326         * tests/test-link.c (link): Likewise.
28327         * tests/test-linkat.c (linkat): Likewise.
28328         * tests/test-lseek.c (lseek): Likewise.
28329         * tests/test-lstat.c (lstat): Likewise.
28330         * tests/test-mbrtowc.c (mbrtowc): Likewise.
28331         * tests/test-mbsinit.c (mbsinit): Likewise.
28332         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
28333         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
28334         * tests/test-memchr.c (memchr): Likewise.
28335         * tests/test-memcmp.c (memcmp): Likewise.
28336         * tests/test-memmem.c (memmem): Likewise.
28337         * tests/test-memrchr.c (memrchr): Likewise.
28338         * tests/test-mkdir.c (mkdir): Likewise.
28339         * tests/test-mkdirat.c (mkdirat): Likewise.
28340         * tests/test-mkfifo.c (mkfifo): Likewise.
28341         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
28342         * tests/test-mknod.c (mknod): Likewise.
28343         * tests/test-nanosleep.c (nanosleep): Likewise.
28344         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
28345         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
28346         Likewise.
28347         * tests/test-open.c (open): Likewise.
28348         * tests/test-openat.c (openat): Likewise.
28349         * tests/test-perror.c (perror): Likewise.
28350         * tests/test-pipe2.c (pipe2): Likewise.
28351         * tests/test-poll.c (poll): Likewise.
28352         * tests/test-popen.c (popen, pclose): Likewise.
28353         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
28354         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
28355         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
28356         (posix_spawn_file_actions_destroy)
28357         (posix_spawn_file_actions_addclose)
28358         (posix_spawn_file_actions_addopen)
28359         (posix_spawn_file_actions_adddup2): Likewise.
28360         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
28361         * tests/test-pread.c (pread): Likewise.
28362         * tests/test-printf-posix.c (printf): Likewise.
28363         * tests/test-pty.c (openpty, forkpty): Likewise.
28364         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
28365         (random_r): Likewise.
28366         * tests/test-rawmemchr.c (rawmemchr): Likewise.
28367         * tests/test-readlink.c (readlink): Likewise.
28368         * tests/test-remove.c (remove): Likewise.
28369         * tests/test-rename.c (rename): Likewise.
28370         * tests/test-renameat.c (renameat): Likewise.
28371         * tests/test-rmdir.c (rmdir): Likewise.
28372         * tests/test-round1.c (round): Likewise.
28373         * tests/test-roundf1.c (roundf): Likewise.
28374         * tests/test-roundl.c (roundl): Likewise.
28375         * tests/test-setenv.c (setenv): Likewise.
28376         * tests/test-sigaction.c (sigaction): Likewise.
28377         * tests/test-sleep.c (sleep): Likewise.
28378         * tests/test-snprintf.c (snprintf): Likewise.
28379         * tests/test-sprintf-posix.c (sprintf): Likewise.
28380         * tests/test-stat.c (stat): Likewise.
28381         * tests/test-stpncpy.c (stpncpy): Likewise.
28382         * tests/test-strcasestr.c (strcasestr): Likewise.
28383         * tests/test-strchrnul.c (strchrnul): Likewise.
28384         * tests/test-strerror.c (strerror): Likewise.
28385         * tests/test-strsignal.c (strsignal): Likewise.
28386         * tests/test-strstr.c (strstr): Likewise.
28387         * tests/test-strtod.c (strtod): Likewise.
28388         * tests/test-strverscmp.c (strverscmp): Likewise.
28389         * tests/test-symlink.c (symlink): Likewise.
28390         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
28391         * tests/test-times.c (times): Likewise.
28392         * tests/test-trunc1.c (trunc): Likewise.
28393         * tests/test-truncf1.c (truncf): Likewise.
28394         * tests/test-truncl.c (truncl): Likewise.
28395         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
28396         Likewise.
28397         * tests/test-uname.c (uname): Likewise.
28398         * tests/test-unlink.c (unlink): Likewise.
28399         * tests/test-unlinkat.c (unlinkat): Likewise.
28400         * tests/test-unsetenv.c (unsetenv): Likewise.
28401         * tests/test-usleep.c (usleep): Likewise.
28402         * tests/test-utimensat.c (utimensat): Likewise.
28403         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
28404         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
28405         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
28406         * tests/test-vprintf-posix.c (vprintf): Likewise.
28407         * tests/test-vsnprintf.c (vsnprintf): Likewise.
28408         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
28409         * tests/test-wcrtomb.c (wcrtomb): Likewise.
28410         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
28411         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
28412         * tests/test-wcwidth.c (wcwidth): Likewise.
28413
28414         build: pull in conditional headers during GNULIB_POSIXCHECK
28415         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
28416         definitions from any conditionally-included headers.
28417         * lib/stdlib.in.h (includes): Likewise.
28418         * lib/unistd.in.h (includes): Likewise.
28419
28420 2009-12-24  Bruno Haible  <bruno@clisp.org>
28421
28422         * tests/test-argv-iter.c: Include header file being tested immediately
28423         after config.h.
28424         * tests/test-base64.c: Likewise.
28425         * tests/test-flock.c: Likewise.
28426         * tests/test-fsync.c: Likewise.
28427         * tests/test-getdate.c: Likewise.
28428         * tests/test-getndelim2.c: Likewise.
28429         * tests/test-isfinite.c: Likewise.
28430         * tests/test-isinf.c: Likewise.
28431         * tests/test-strerror.c: Likewise.
28432         * tests/test-strsignal.c: Likewise.
28433
28434 2009-12-23  Eric Blake  <ebb9@byu.net>
28435
28436         unistd: work around cygwin bug
28437         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
28438         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28439         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28440
28441 2009-12-23  Bruno Haible  <bruno@clisp.org>
28442
28443         localename: More tests.
28444         * tests/test-localename.c (SIZEOF): New macro.
28445         (categories): New variable.
28446         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
28447         test_locale_name_default): Add test w.r.t. thread locale.
28448         (test_locale_name_thread): New function.
28449         (main): Invoke it.
28450
28451         localename: Make aware of thread locale.
28452         * lib/localename.h (gl_locale_name_thread): New declaration.
28453         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
28454         behaviour with respect to thread locale.
28455         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
28456         <langinfo.h>, glthread/lock.h.
28457         (SIZE_BITS): New macro.
28458         (string_hash): New function.
28459         (struct hash_node): New type.
28460         (HASH_TABLE_SIZE): New macro.
28461         (struniq_hash_table, struniq_lock): New variables.
28462         (struniq): New function.
28463         (gl_locale_name_thread): New function.
28464         (gl_locale_name): Invoke it.
28465         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
28466         * modules/localename (Depends-on): Add lock.
28467         Reported by Mike Gran <spk121@yahoo.com>.
28468
28469 2009-12-23  Eric Blake  <ebb9@byu.net>
28470
28471         va-args: new module
28472         * modules/va-args: New file.
28473         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
28474         * MODULES.html.sh (Core language properties): Mention it.
28475
28476         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
28477         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
28478         named alias for __attribute__((__unused__)).
28479         * lib/chown.c: Update client.
28480         * lib/fchmodat.c: Likewise.
28481         * lib/fts.c: Likewise.
28482         * lib/getdate.y: Likewise.
28483         * lib/getgroups.c: Likewise.
28484         * lib/getopt.c: Likewise.
28485         * lib/getugroups.c: Likewise.
28486         * lib/mkdir.c: Likewise.
28487         * lib/mkfifo.c: Likewise.
28488         * lib/mkfifoat.c: Likewise.
28489         * lib/mknod.c: Likewise.
28490         * lib/mknodat.c: Likewise.
28491         * lib/readlink.c: Likewise.
28492         * lib/se-context.in.h: Likewise.
28493         * lib/se-selinux.in.h: Likewise.
28494         * lib/sockets.c: Likewise.
28495         * lib/symlink.c: Likewise.
28496         * lib/symlinkat.c: Likewise.
28497         * lib/unicodeio.c: Likewise.
28498         * lib/unistr.h: Likewise.
28499         * tests/test-areadlink.c: Likewise.
28500         * tests/test-areadlinkat.c: Likewise.
28501         * tests/test-filenamecat.c: Likewise.
28502         * tests/test-fseeko.c: Likewise.
28503         * tests/test-ftello.c: Likewise.
28504         * tests/test-getdate.c: Likewise.
28505         * tests/test-getgroups.c: Likewise.
28506         * tests/test-gethostname.c: Likewise.
28507         * tests/test-quotearg.c: Likewise.
28508         * tests/test-version-etc.c: Likewise.
28509         * tests/test-xalloc-die.c: Likewise.
28510         * tests/test-xfprintf-posix.c: Likewise.
28511         * tests/test-xprintf-posix.c: Likewise.
28512         * tests/test-xvasprintf.c: Likewise.
28513
28514         tests: avoid compiler warnings
28515         * tests/test-fcntl.c (main): Delete unused parameters.
28516         * tests/test-freopen-safer.c (main): Likewise.
28517         * tests/test-xalloc-die.c (main): Mark unused parameters.
28518         * tests/test-fseeko.c (main): Likewise.
28519         * tests/test-ftello.c (main): Likewise.
28520         * tests/test-nanosleep.c (main): Avoid declaration warning.
28521         * tests/test-sleep.c (main): Likewise.
28522         * tests/test-unsetenv.c (main): Silence warning about string
28523         literal.
28524         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28525
28526 2009-12-23  Bruno Haible  <bruno@clisp.org>
28527
28528         * tests/test-localename.c (test_locale_name): New function, extracted
28529         from main. Also test mixed situations.
28530         (test_locale_name_posix, test_locale_name_environ,
28531         test_locale_name_default): New functions.
28532         (main): Invoke them all.
28533         * modules/localename-tests (configure.ac): Test for newlocale.
28534
28535 2009-12-23  Bruno Haible  <bruno@clisp.org>
28536
28537         unistd: Ensure getcwd gets declared before being overridden.
28538         * lib/unistd.in.h: Conditionally include <io.h>.
28539
28540 2009-12-22  Bruno Haible  <bruno@clisp.org>
28541
28542         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28543         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28544         (gl_WCHAR_H): Invoke it.
28545         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28546         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28547         Reported by Karl Berry <karl@freefriends.org>.
28548
28549 2009-12-22  Eric Blake  <ebb9@byu.net>
28550
28551         math, unistd: avoid redundant includes
28552         * lib/math.in.h (isnan): No need to re-include <math.h>.
28553         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28554
28555         getsubopt: work around cygwin bug
28556         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28557         avoid conflicting with system getsubopt.
28558         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28559         bug.
28560
28561         getopt: synchronize from glibc
28562         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28563         parameter order.  Adjust all callers.
28564         (_getopt_internal_r, main): Adjust quoting in error messages.
28565         Drop considerations for outdated POSIX 1003.2 error message.
28566         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28567         callers.
28568         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28569
28570         test-getopt: test stderr behavior
28571         * modules/getopt-posix-tests (Depends-on): Add dup2.
28572         * tests/test-getopt.c (ASSERT): Avoid stderr.
28573         (main): Move stderr to a temporary file.
28574         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28575         Instead, add parameter to inform caller if output occurred.
28576         (test_getopt): Adjust all existing tests to expect silence, and
28577         add new tests of leading ":".
28578         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28579         glibc shortcomings with leading "-:" or "+:" in optstring.
28580         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28581         Likewise.
28582         * doc/posix-functions/getopt.texi (getopt): Likewise.
28583
28584         test-getopt: enhance test
28585         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28586         supports optind=0.
28587         * tests/test-getopt.c (OPTIND_MIN): Move...
28588         * tests/test-getopt.h (OPTIND_MIN): ...here.
28589         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28590         Require that optind=0 works, since modern BSD supports it in
28591         addition to optreset, and since coreutils expects it.
28592         (test_getopt_long_only): New test.
28593         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28594         glibc shortcomings with 'W;', and enforcement of optind=0.
28595         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28596         Likewise.
28597
28598 2009-12-21  Bruno Haible  <bruno@clisp.org>
28599
28600         localename: Improvements for MacOS X and Cygwin.
28601         * lib/localename.h (gl_locale_name_environ): New declaration.
28602         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28603         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28604         (gl_locale_name_posix): Invoke it.
28605         (gl_locale_name_default): Add comments. Use Windows native API also on
28606         Cygwin.
28607
28608 2009-12-21  Bruno Haible  <bruno@clisp.org>
28609
28610         Update list of Win32 locale ids.
28611         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28612         (LANG_SAMI): Renamed from LANG_SAAMI.
28613         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28614         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28615         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28616         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28617         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28618         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28619         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28620         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28621         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28622         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28623         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28624         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28625         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28626         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28627         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28628         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28629         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28630         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28631         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28632         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28633         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28634         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28635         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28636         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28637         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28638         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28639         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28640         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28641         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28642         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28643         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28644         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28645         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28646         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28647         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28648         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28649         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28650         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28651         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28652         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28653         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28654         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28655         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28656         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28657         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28658         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28659         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28660         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28661         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28662         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28663         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28664         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28665         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28666         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28667         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28668         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28669         Add more languages and countries for Sami, Sorbian. Add more countries
28670         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28671         for Pashto. Change country for Syriac, Tswana.
28672
28673 2009-12-21  Eric Blake  <ebb9@byu.net>
28674
28675         test-utimens: avoid spurious failure
28676         * tests/test-chown.h (nap): Factor...
28677         * tests/nap.h: ...into new file.
28678         * tests/test-lchown.h (nap): Avoid duplication.
28679         * tests/test-utimens-common.h (nap): Use shared implementation,
28680         necessary on file systems with 1-second resolution.
28681         * modules/chown-tests (Files): Include new file.
28682         * modules/fdutimensat-tests (Files): Likewise.
28683         * modules/futimens-tests (Files): Likewise.
28684         * modules/lchown-tests (Files): Likewise.
28685         * modules/openat-tests (Files): Likewise.
28686         * modules/utimens-tests (Files): Likewise.
28687         * modules/utimensat-tests (Files): Likewise.
28688
28689 2009-12-19  Eric Blake  <ebb9@byu.net>
28690
28691         futimens, utimensat: work around Linux bug
28692         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28693         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28694         * lib/utimensat.c (rpl_utimensat): Work around it.
28695         * lib/futimens.c (rpl_futimens): Adjust comment.
28696
28697         utimens: work around Linux ctime bug
28698         * lib/utimens.c (detect_ctime_bug): New helper function.
28699         (update_timespec): Differentiate between workaround needed for
28700         this bug vs. what is needed for systems that lack utimensat.
28701         (fdutimens, lutimens): Work around bug.
28702
28703         utimens: check for ctime update
28704         * tests/test-utimens-common.h (check_ctime): Define.
28705         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28706         * tests/test-futimens.h (test_futimens): Likewise.
28707         * tests/test-lutimens.h (test_lutimens): Likewise.
28708         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28709         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28710
28711 2009-12-19  Bruno Haible  <bruno@clisp.org>
28712
28713         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28714         * tests/test-dprintf-posix2.sh: New file.
28715         * tests/test-dprintf-posix2.c: New file.
28716         * modules/dprintf-posix-tests (Files): Add them.
28717         (configure.ac): Check for getrlimit and setrlimit.
28718         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28719
28720 2009-12-19  Bruno Haible  <bruno@clisp.org>
28721
28722         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28723         * tests/test-fprintf-posix3.sh: New file.
28724         * tests/test-fprintf-posix3.c: New file.
28725         * modules/fprintf-posix-tests (Files): Add them.
28726         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28727
28728 2009-12-19  Eric Blake  <ebb9@byu.net>
28729
28730         dirfd: fix prototype
28731         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28732         * lib/dirfd.c (dirfd): Likewise.
28733
28734         canonicalize: reduce memory usage
28735         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28736         allocation to size.
28737         Reported by Solar Designer <solar@openwall.com>.
28738
28739 2009-12-19  Bruno Haible  <bruno@clisp.org>
28740
28741         New module attribute 'Applicability'.
28742         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28743         * gnulib-tool: New option --extract-applicability.
28744         (func_usage): Document it.
28745         (sed_extract_prog): Recognize it.
28746         (func_get_applicability): New function.
28747         (func_import): Generalize handling of 'link-warning' module.
28748         * modules/link-warning (Applicability): New section.
28749         * modules/arg-nonnull (Applicability): New section.
28750         Repoted by Simon Josefsson <simon@josefsson.org>.
28751
28752 2009-12-19  Bruno Haible  <bruno@clisp.org>
28753
28754         fflush: tweak
28755         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28756         * lib/fseeko.c (rpl_fseeko): Likewise.
28757
28758 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28759
28760         * lib/gl_list.h: Fix typo in comment.
28761
28762 2009-12-16  Eric Blake  <ebb9@byu.net>
28763
28764         fcntl: use to simplify other modules
28765         * modules/cloexec (Depends-on): Add fcntl.
28766         * modules/fchdir (Depends-on): Likewise.
28767         * modules/fd-safer-flag (Depends-on): Likewise.
28768         * modules/unistd-safer (Depends-on): Likewise.
28769         * modules/dup3 (configure.ac): Set module indicator.
28770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28771         missing.
28772         * lib/fchdir.c (_gl_register_dup): Fix comment.
28773         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28774         * lib/dup-safer.c (dup_safer): Likewise.
28775         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28776         * lib/dup3.c (dup3): Likewise.
28777         * tests/test-fchdir.c (main): Enhance test.
28778         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28779
28780         fcntl: port portions of fcntl to mingw
28781         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28782         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28783         replacement for mingw.
28784         * modules/fcntl (Description): Update.
28785         (Depends-on): Add dup2.
28786         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28787         * modules/fcntl-h (Makefile.am): Substitute it.
28788         * lib/fcntl.in.h (fcntl): Update declaration.
28789         (F_DUPFD, F_GETFD): New macros, when needed.
28790         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28791         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28792         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28793         we now guarantee.
28794
28795         fcntl: work around cygwin bug in F_DUPFD
28796         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28797         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28798         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28799         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28800         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28801
28802         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28803         * modules/fcntl (Files): List new files.
28804         (configure.ac): Run a test.
28805         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28806         * lib/fcntl.c (rpl_fcntl): Likewise.
28807         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28808         (gl_FCNTL_H): Always replace fcntl.h.
28809         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28810         * lib/fcntl.in.h (fcntl): Declare replacement.
28811         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28812         needed, plus a witness.
28813         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28814         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28815         * tests/test-fcntl.c: New file.
28816         * modules/fcntl-tests: Likewise.
28817
28818         binary-io: avoid potential compilation warning
28819         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28820         directives.
28821
28822         fflush: avoid compilation error on NetBSD
28823         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28824         between off_t and fpos_t, since the latter is sometimes a struct.
28825         * lib/fseeko.c (rpl_fseeko): Likewise.
28826         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28827
28828 2009-12-15  Eric Blake  <ebb9@byu.net>
28829
28830         fcntl-h, stdio, sys_ioctl: fix declarations
28831         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28832         function must not take arguments.
28833         * lib/sys_ioctl.in.h (ioctl): Likewise.
28834         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28835         (open): Add a link warning.
28836
28837 2009-12-15  Jim Meyering  <meyering@redhat.com>
28838
28839         areadlink, areadlink-with-size: relax license to LGPLv2+
28840         * modules/areadlink (License): Relax to LGPLv2+.
28841         * modules/areadlink-with-size (License): Likewise.
28842
28843 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28844             Bruno Haible  <bruno@clisp.org>
28845
28846         *printf: Fix memory leak.
28847         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28848         * lib/vfprintf.c (vfprintf): Likewise.
28849         * lib/dprintf.c (dprintf): Likewise.
28850         * lib/vdprintf.c (vdprintf): Likewise.
28851
28852 2009-12-14  Eric Blake  <ebb9@byu.net>
28853
28854         accept4: adjust module dependencies
28855         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28856
28857         utimens: one more try at avoiding compiler warning
28858         * lib/utimens.c (lutimens): Lower scope of result.
28859
28860 2009-12-13  Bruno Haible  <bruno@clisp.org>
28861
28862         Move the malloc checking from module 'list' to new module 'xlist'.
28863         * modules/xlist: New file.
28864         * lib/gl_xlist.h: New file.
28865         * lib/gl_xlist.c: New file.
28866         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28867         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28868         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28869         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28870         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28871         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28872         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28873         gl_sortedlist_nx_add): New declarations.
28874         (struct gl_list_implementation): Rename and change methods accordingly.
28875         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28876         (gl_list_nx_create): Renamed from gl_list_create.
28877         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28878         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28879         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28880         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28881         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28882         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28883         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28884         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28885         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28886         gl_list_create_empty.
28887         (gl_list_nx_create): Renamed from gl_list_create.
28888         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28889         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28890         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28891         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28892         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28893         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28894         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28895         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28896         * lib/gl_array_list.c: Don't include xalloc.h.
28897         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28898         NULL upon out-of-memory.
28899         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28900         out-of-memory.
28901         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28902         Change return type to 'int'.
28903         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28904         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28905         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28906         upon out-of-memory.
28907         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28908         upon out-of-memory.
28909         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28910         upon out-of-memory.
28911         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28912         upon out-of-memory.
28913         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28914         out-of-memory.
28915         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28916         Update.
28917         (gl_array_list_implementation): Update.
28918         * lib/gl_carray_list.c: Don't include xalloc.h.
28919         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28920         Return NULL upon out-of-memory.
28921         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28922         out-of-memory.
28923         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28924         Change return type to 'int'.
28925         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28926         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28927         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28928         upon out-of-memory.
28929         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28930         upon out-of-memory.
28931         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28932         out-of-memory.
28933         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28934         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28935         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28936         Update.
28937         (gl_carray_list_implementation): Update.
28938         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28939         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28940         gl_linked_create_empty. Return NULL upon out-of-memory.
28941         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28942         out-of-memory.
28943         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28944         Change return type to 'int'. Return -1 upon out-of-memory.
28945         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28946         out-of-memory.
28947         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28948         upon out-of-memory.
28949         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28950         upon out-of-memory.
28951         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28952         NULL upon out-of-memory.
28953         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28954         upon out-of-memory.
28955         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28956         out-of-memory.
28957         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28958         Update.
28959         * lib/gl_linked_list.c: Don't include xalloc.h.
28960         (gl_linked_list_implementation): Update.
28961         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28962         (add_to_bucket): Change return type to 'int'.
28963         (gl_linkedhash_list_implementation): Update.
28964         * lib/gl_anytree_list1.h (free_subtree): New function.
28965         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28966         gl_tree_create_empty. Return NULL upon out-of-memory.
28967         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28968         Change return type to 'int'. Return -1 upon out-of-memory.
28969         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28970         out-of-memory.
28971         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28972         (gl_tree_remove_node): New function, moved here from
28973         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28974         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28975         Update.
28976         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28977         malloc, not xmalloc. Return NULL upon out-of-memory.
28978         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28979         out-of-memory.
28980         (gl_tree_remove_node_from_tree): New function, extracted from
28981         gl_tree_remove_node.
28982         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28983         upon out-of-memory.
28984         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28985         out-of-memory.
28986         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28987         upon out-of-memory.
28988         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28989         upon out-of-memory.
28990         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28991         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28992         not xmalloc. Return NULL upon out-of-memory.
28993         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28994         out-of-memory.
28995         (gl_tree_remove_node_from_tree): New function, extracted from
28996         gl_tree_remove_node.
28997         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28998         upon out-of-memory.
28999         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29000         out-of-memory.
29001         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29002         upon out-of-memory.
29003         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29004         upon out-of-memory.
29005         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29006         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
29007         gl_anytree_list1.h before gl_anyavltree_list2.h.
29008         (gl_avltree_list_implementation): Update.
29009         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
29010         gl_anytree_list1.h before gl_anyavltree_list2.h.
29011         (gl_rbtree_list_implementation): Update.
29012         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
29013         Change return type to 'int'. Return -1 upon out-of-memory. Use
29014         __builtin_expect.
29015         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
29016         (gl_avltreehash_list_implementation): Update.
29017         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
29018         (gl_rbtreehash_list_implementation): Update.
29019         * modules/array-list (Depends-on): Remove xalloc.
29020         * modules/carray-list (Depends-on): Likewise.
29021         * modules/linked-list (Depends-on): Likewise.
29022         * modules/linkedhash-list (Depends-on): Likewise.
29023         * modules/avltree-list (Depends-on): Likewise.
29024         * modules/rbtree-list (Depends-on): Likewise.
29025         * modules/avltreehash-list (Depends-on): Likewise.
29026         * modules/rbtreehash-list (Depends-on): Likewise.
29027
29028         * modules/xsublist: New file.
29029         * lib/gl_xsublist.h: New file.
29030         * lib/gl_xsublist.c: New file.
29031         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
29032         (gl_sublist_nx_create): New declaration.
29033         * lib/gl_sublist.c: Don't include xalloc.h.
29034         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
29035         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
29036         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
29037         Change return type to 'int'. Return -1 upon out-of-memory.
29038         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
29039         upon out-of-memory.
29040         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
29041         NULL upon out-of-memory.
29042         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
29043         upon out-of-memory.
29044         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
29045         NULL upon out-of-memory.
29046         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
29047         NULL upon out-of-memory.
29048         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
29049         upon out-of-memory.
29050         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
29051         (gl_sublist_list_implementation): Update.
29052         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
29053         upon out-of-memory.
29054         * modules/sublist (Depends-on): Remove xalloc.
29055
29056         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
29057         * tests/test-carray_list.c: Likewise.
29058         * tests/test-linked_list.c: Likewise.
29059         * tests/test-linkedhash_list.c: Likewise.
29060         * tests/test-avltree_list.c: Likewise.
29061         * tests/test-rbtree_list.c: Likewise.
29062         * tests/test-avltreehash_list.c: Likewise.
29063         * tests/test-rbtreehash_list.c: Likewise.
29064         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
29065         * modules/carray-list-tests (Makefile.am): Likewise.
29066         * modules/linked-list-tests (Makefile.am): Likewise.
29067         * modules/linkedhash-list-tests (Makefile.am): Likewise.
29068         * modules/avltree-list-tests (Makefile.am): Likewise.
29069         * modules/rbtree-list-tests (Makefile.am): Likewise.
29070         * modules/avltreehash-list-tests (Makefile.am): Likewise.
29071         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29072
29073         * NEWS: Mention the changes.
29074
29075         * lib/clean-temp.c: Include gl_xlist.h.
29076         * modules/clean-temp (Depends-on): Add xlist.
29077
29078         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
29079         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
29080
29081         * tests/test-array_oset.c: Include gl_xlist.h.
29082         * modules/array-oset-tests (Depends-on): Add xlist.
29083
29084         Reported by José E. Marchesi <jemarch@gnu.org>.
29085
29086 2009-12-13  Bruno Haible  <bruno@clisp.org>
29087
29088         Move the malloc checking from module 'oset' to new module 'xoset'.
29089         * modules/xoset: New file.
29090         * lib/gl_xoset.h: New file.
29091         * lib/gl_xoset.c: New file.
29092         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
29093         declarations.
29094         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
29095         (struct gl_oset_implementation): Rename and change methods accordingly.
29096         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
29097         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29098         'int'. Mark as __warn_unused_result__.
29099         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
29100         gl_oset_create_empty.
29101         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29102         'int'.
29103         * lib/gl_array_oset.c: Don't include xalloc.h.
29104         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
29105         malloc, not xmalloc.
29106         (grow): Change return type to 'int'. Don't call xalloc_die.
29107         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
29108         to 'int'.
29109         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
29110         'int'.
29111         (gl_array_oset_implementation): Update.
29112         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
29113         gl_tree_create_empty.
29114         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
29115         'int'.
29116         * lib/gl_avltree_oset.c: Don't include xalloc.h.
29117         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29118         xmalloc.
29119         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29120         not xmalloc.
29121         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29122         xmalloc.
29123         (gl_avltree_oset_implementation): Update.
29124         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
29125         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29126         xmalloc.
29127         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29128         not xmalloc.
29129         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29130         xmalloc.
29131         (gl_rbtree_oset_implementation): Update.
29132         * modules/array-oset (Depends-on): Remove xalloc.
29133         * modules/avltree-oset (Depends-on): Likewise.
29134         * modules/rbtree-oset (Depends-on): Likewise.
29135         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
29136         * tests/test-avltree_oset.c: Likewise.
29137         * tests/test-rbtree_oset.c: Likewise.
29138         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29139         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
29140         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29141         * NEWS: Mention the change.
29142
29143 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
29144
29145         maint.mk: allow a project to override release-prep commands
29146         * top/maint.mk (alpha, beta, stable): Move release-preparatory
29147         commands into a new rule.
29148         (release-prep): New rule.
29149         (release-prep-hook): New overridable variable.
29150
29151 2009-12-13  Bruno Haible  <bruno@clisp.org>
29152
29153         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
29154
29155 2009-12-13  Jim Meyering  <meyering@redhat.com>
29156
29157         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
29158         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
29159
29160 2009-12-12  Bruno Haible  <bruno@clisp.org>
29161
29162         duplocale: Tweak.
29163         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
29164
29165 2009-12-12  Karl Berry  <karl@gnu.org>
29166
29167         * config/srclist.txt (strtoll.c): tab changes, no more sync.
29168
29169 2009-12-12  Bruno Haible  <bruno@clisp.org>
29170
29171         * m4/po.m4: Undo incorrect untabification.
29172
29173 2009-12-12  Bruno Haible  <bruno@clisp.org>
29174
29175         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
29176         * modules/c-strtod (Depends-on): Add locale.
29177         * modules/c-strtold (Depends-on): Likewise.
29178
29179 2009-12-12  Bruno Haible  <bruno@clisp.org>
29180
29181         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
29182
29183 2009-12-11  Eric Blake  <ebb9@byu.net>
29184
29185         setenv: relax requirement in light of POSIX ruling
29186         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
29187         not NULL.
29188         * tests/test-setenv.c (main): Relax test.
29189         * tests/test-unsetenv.c (main): Likewise.
29190         * doc/posix-functions/setenv.texi (setenv): Document this.
29191         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29192
29193 2009-12-11  Bruno Haible  <bruno@clisp.org>
29194
29195         New module 'fd-safer-flag'.
29196         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
29197         * lib/dup-safer.c (dup_safer_flag): Remove function.
29198         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
29199         * lib/fd-safer.c (fd_safer_flag): Remove function.
29200         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
29201         * modules/cloexec (configure.ac): Drop indicator macro.
29202         * modules/fd-safer-flag: New file.
29203         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
29204         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
29205         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
29206
29207 2009-12-11  Bruno Haible  <bruno@clisp.org>
29208
29209         Tests for module 'nl_langinfo'.
29210         * modules/nl_langinfo-tests: New file.
29211         * tests/test-nl_langinfo.sh: New file.
29212         * tests/test-nl_langinfo.c: New file.
29213
29214         New module 'nl_langinfo'.
29215         * lib/nl_langinfo.c: New file.
29216         * m4/nl_langinfo.m4: New file.
29217         * modules/nl_langinfo: New file.
29218         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
29219
29220 2009-12-11  Bruno Haible  <bruno@clisp.org>
29221
29222         Tests for module 'langinfo'.
29223         * modules/langinfo-tests: New file.
29224         * tests/test-langinfo.c: New file.
29225
29226         New module 'langinfo'.
29227         * lib/langinfo.in.h: New file.
29228         * m4/langinfo_h.m4: New file.
29229         * modules/langinfo: New file.
29230         * doc/posix-headers/langinfo.texi: Mention the new module.
29231
29232 2009-12-11  Bruno Haible  <bruno@clisp.org>
29233
29234         * lib/config.charset: Untabify.
29235
29236 2009-12-11  Bruno Haible  <bruno@clisp.org>
29237
29238         * modules/unistd-safer (configure.ac): Drop indicator macro.
29239
29240 2009-12-11  Bruno Haible  <bruno@clisp.org>
29241
29242         Move pipe2-safer code to its own file.
29243         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
29244         * lib/pipe-safer.c (pipe2_safer): Remove function.
29245         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
29246         (Makefile.am): Add it to lib_SOURCES.
29247
29248 2009-12-10  Bruno Haible  <bruno@clisp.org>
29249
29250         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
29251
29252 2009-12-10  Bruno Haible  <bruno@clisp.org>
29253
29254         Declare which arguments expect non-NULL values, for GCC and clang.
29255         * build-aux/arg-nonnull.h: New file.
29256         * modules/arg-nonnull: New file.
29257         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29258         (inet_ntop, inet_pton): Use it.
29259         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
29260         (closedir, dirfd, opendir, scandir, alphasort): Use it.
29261         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
29262         (open, openat): Use it.
29263         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
29264         (fnmatch): Use it.
29265         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
29266         (getopt, getopt_long, getopt_long_only): Use it.
29267         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
29268         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
29269         Use it.
29270         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
29271         (iconv_open): Use it.
29272         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
29273         (strtoimax, strtoumax): Use it.
29274         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
29275         (duplocale): Use it.
29276         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
29277         (frexp, frexpl): Use it.
29278         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
29279         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
29280         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
29281         (tsearch, tfind, tdelete, twalk): Use it.
29282         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
29283         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29284         sigpending): Use it.
29285         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
29286         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29287         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29288         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29289         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29290         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29291         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29292         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29293         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29294         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29295         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29296         Use it.
29297         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
29298         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
29299         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
29300         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
29301         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
29302         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
29303         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
29304         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
29305         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
29306         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
29307         strtoull, unsetenv): Use it.
29308         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
29309         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29310         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29311         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29312         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29313         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
29314         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
29315         (strcasecmp, strncasecmp): Use it.
29316         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
29317         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
29318         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
29319         rpl_setsockopt): Use it.
29320         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
29321         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
29322         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
29323         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
29324         (gettimeofday): Use it.
29325         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
29326         (times): Use it.
29327         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
29328         (uname): Use it.
29329         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
29330         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
29331         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
29332         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
29333         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
29334         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
29335         unlinkat, write): Use it.
29336         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
29337         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
29338         * lib/argv-iter.h: Include arg-nonnull.h.
29339         (_ATTRIBUTE_NONNULL_): Remove macro.
29340         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
29341         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
29342         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
29343         optimization.
29344         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
29345         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
29346         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
29347         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
29348         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
29349         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
29350         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
29351         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
29352         * modules/arpa_inet (Depends-on): Add arg-nonnull.
29353         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
29354         * modules/dirent (Depends-on): Add arg-nonnull.
29355         (Makefile.am): Insert arg-nonnull.h into dirent.h.
29356         * modules/fcntl-h (Depends-on): Add arg-nonnull.
29357         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
29358         * modules/fnmatch (Depends-on): Add arg-nonnull.
29359         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
29360         * modules/getopt-posix (Depends-on): Add arg-nonnull.
29361         (Makefile.am): Insert arg-nonnull.h into getopt.h.
29362         * modules/glob (Depends-on): Add arg-nonnull.
29363         (Makefile.am): Insert arg-nonnull.h into glob.h.
29364         * modules/iconv_open (Depends-on): Add arg-nonnull.
29365         (Makefile.am): Insert arg-nonnull.h into iconv.h.
29366         * modules/inttypes (Depends-on): Add arg-nonnull.
29367         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
29368         * modules/locale (Depends-on): Add arg-nonnull.
29369         (Makefile.am): Insert arg-nonnull.h into locale.h.
29370         * modules/math (Depends-on): Add arg-nonnull.
29371         (Makefile.am): Insert arg-nonnull.h into math.h.
29372         * modules/netdb (Depends-on): Add arg-nonnull.
29373         (Makefile.am): Insert arg-nonnull.h into netdb.h.
29374         * modules/search (Depends-on): Add arg-nonnull.
29375         (Makefile.am): Insert arg-nonnull.h into search.h.
29376         * modules/signal (Depends-on): Add arg-nonnull.
29377         (Makefile.am): Insert arg-nonnull.h into signal.h.
29378         * modules/spawn (Depends-on): Add arg-nonnull.
29379         (Makefile.am): Insert arg-nonnull.h into spawn.h.
29380         * modules/stdio (Depends-on): Add arg-nonnull.
29381         (Makefile.am): Insert arg-nonnull.h into stdio.h.
29382         * modules/stdlib (Depends-on): Add arg-nonnull.
29383         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
29384         * modules/string (Depends-on): Add arg-nonnull.
29385         (Makefile.am): Insert arg-nonnull.h into string.h.
29386         * modules/strings (Depends-on): Add arg-nonnull.
29387         (Makefile.am): Insert arg-nonnull.h into strings.h.
29388         * modules/sys_socket (Depends-on): Add arg-nonnull.
29389         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
29390         * modules/sys_stat (Depends-on): Add arg-nonnull.
29391         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
29392         * modules/sys_time (Depends-on): Add arg-nonnull.
29393         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
29394         * modules/sys_times (Depends-on): Add arg-nonnull.
29395         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
29396         * modules/sys_utsname (Depends-on): Add arg-nonnull.
29397         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
29398         * modules/time (Depends-on): Add arg-nonnull.
29399         (Makefile.am): Insert arg-nonnull.h into time.h.
29400         * modules/unistd (Depends-on): Add arg-nonnull.
29401         (Makefile.am): Insert arg-nonnull.h into unistd.h.
29402         * modules/wchar (Depends-on): Add arg-nonnull.
29403         (Makefile.am): Insert arg-nonnull.h into wchar.h.
29404         * modules/argv-iter (Depends-on): Add arg-nonnull.
29405         * tests/test-canonicalize.c (null_ptr): New function.
29406         (main): Use it.
29407         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
29408         (main): Use it.
29409         * tests/test-memmem.c (null_ptr): New function.
29410         (main): Use it.
29411         Reported by Jim Meyering.
29412
29413 2009-12-10  Bruno Haible  <bruno@clisp.org>
29414
29415         Use spaces for indentation, not tabs.
29416         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29417         * m4/*.m4: Untabify.
29418         * build-aux/*.h: Untabify.
29419         * tests/**/*.[hc]: Untabify.
29420         * README: New section "Indent with spaces, not TABs", based on
29421         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
29422         * NEWS: Mention the change.
29423
29424 2009-12-10  Bruno Haible  <bruno@clisp.org>
29425
29426         pty test: Fix link error.
29427         * modules/pty-tests (Makefile.am): Add the default LDADD value to
29428         test_pty_LDADD.
29429
29430 2009-12-07  Simon Josefsson  <simon@josefsson.org>
29431
29432         * modules/pty: New file.
29433         * modules/pty-tests: New file.
29434         * m4/pty.m4: New file.
29435         * tests/test-pty.c: New file.
29436         * doc/glibc-headers/pty.texi: Modified.
29437         * doc/glibc-functions/forkpty.texi: Modified.
29438         * doc/glibc-functions/openpty.texi: Modified.
29439
29440 2009-12-10  Bruno Haible  <bruno@clisp.org>
29441
29442         Avoid syntax error in C++ mode.
29443         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
29444
29445 2009-12-10  Bruno Haible  <bruno@clisp.org>
29446
29447         Use sed with option -e.
29448         * gnulib-tool (func_version, func_emit_copyright_notice,
29449         func_emit_initmacro_end, func_import, func_create_testdir): Pass
29450         option -e to sed.
29451         * modules/link-warning (Makefile.am): Likewise.
29452
29453 2009-12-10  Jim Meyering  <meyering@redhat.com>
29454
29455         mgetgroups: do not write bytes beyond end of malloc'd buffer
29456         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
29457         username, we call getgroups with a one-element-shorter buffer,
29458         but still told it the length was original, max_n_groups.
29459
29460 2009-12-09  Eric Blake  <ebb9@byu.net>
29461
29462         cloexec: relax license
29463         * modules/cloexec (Maintainer): Add myself.
29464         (License): Use LGPL, not GPL.
29465
29466         link-warning: optimize generation
29467         * modules/link-warning (Makefile.am): Reduce process usage.
29468
29469 2009-12-09  Bruno Haible  <bruno@clisp.org>
29470
29471         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
29472         workaround was added on 2009-11-17.
29473
29474 2009-12-09  Jim Meyering  <meyering@redhat.com>
29475             Bruno Haible  <bruno@clisp.org>
29476
29477         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
29478         * modules/link-warning (Makefile.am): Make the comment-removing sed
29479         command more robust in the face of bootstrap-prepended comment lines.
29480
29481 2009-12-09  Bruno Haible  <bruno@clisp.org>
29482
29483         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
29484         most one group.
29485
29486 2009-12-09  Simon Josefsson <simon@josefsson.org>
29487             Bruno Haible  <bruno@clisp.org>
29488
29489         * build-aux/link-warning.h: Add copyright notice.
29490         * modules/link-warning (Makefile.am): Generate link-warning.h from
29491         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
29492         * NEWS: Mention change in link-warning module.
29493         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
29494         * modules/dirent (Makefile.am): Add dependency to dirent.h.
29495         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
29496         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
29497         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
29498         * modules/math (Makefile.am): Add dependency to math.h.
29499         * modules/search (Makefile.am): Add dependency to search.h.
29500         * modules/signal (Makefile.am): Add dependency to signal.h.
29501         * modules/spawn (Makefile.am): Add dependency to spawn.h.
29502         * modules/stdio (Makefile.am): Add dependency to stdio.h.
29503         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
29504         * modules/string (Makefile.am): Add dependency to string.h.
29505         * modules/strings (Makefile.am): Add dependency to strings.h.
29506         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
29507         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
29508         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
29509         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
29510         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
29511         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29512         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29513         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29514         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29515
29516 2009-12-09  Bruno Haible  <bruno@clisp.org>
29517
29518         fchdir: Optimize away rpl_fstat when possible.
29519         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29520         REPLACE_OPEN_DIRECTORY.
29521         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29522
29523 2009-12-09  Bruno Haible  <bruno@clisp.org>
29524
29525         * lib/fchdir.c: Update comment.
29526
29527 2009-12-09  Bruno Haible  <bruno@clisp.org>
29528
29529         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29530
29531 2009-12-08  Eric Blake  <ebb9@byu.net>
29532
29533         fchdir: avoid memory leak on re-registration.
29534         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29535
29536 2009-12-08  Jim Meyering  <meyering@redhat.com>
29537
29538         init.sh: avoid Solaris 10 /bin/sh portability problem
29539         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29540         sourced script:
29541           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29542           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29543           bar
29544         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29545         and two tests used that idiom.
29546         * tests/init.sh: Update suggested usage comments.
29547         (path_prepend_): New function, to be used in place
29548         of the --src-path=DIR option.
29549         (setup_): Move PATH-prepending code into path_prepend_.
29550         * tests/test-pread.sh: Adapt to new usage.
29551         * tests/test-xalloc-die.sh: Likewise.
29552
29553 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29554
29555         * doc/gnulib.texi (Glibc pty.h): Add.
29556         * doc/glibc-functions/forkpty.texi: Add.
29557         * doc/glibc-functions/openpty.texi: Add.
29558         Suggested by Bruno Haible.
29559
29560 2009-12-08  Eric Blake  <ebb9@byu.net>
29561
29562         fchdir: fix logic bugs
29563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29564         * tests/test-fchdir.c (main): Enhance test.
29565         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29566         is in use.
29567
29568         dup2: fix logic bugs
29569         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29570         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29571         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29572         exists.
29573         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29574
29575 2009-12-07  Eric Blake  <ebb9@byu.net>
29576
29577         unlink: fix m4 detection
29578         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29579
29580         unistd-safer: add unit test
29581         * modules/unistd-safer-tests: New file.
29582         * tests/test-dup-safer.c: Likewise.
29583         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29584         * tests/test-dup2.c (setmode): Likewise.
29585         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29586
29587         cloexec: preserve text vs. binary across dup_cloexec
29588         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29589         mode.
29590         * modules/dup2-tests (Depends-on): Add binary-io.
29591         * modules/cloexec-tests (Depends-on): Likewise.
29592         * tests/test-dup2.c (setmode, is_mode): New helpers.
29593         (main): Add tests that translation mode is preserved.
29594         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29595         Reported by Bruno Haible.
29596
29597         mgetgroups: reduce duplicate listings
29598         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29599         resulting array.
29600         * tests/test-chown.h (test_chown): Simplify client.
29601         * tests/test-lchown.h (test_lchown): Likewise.
29602
29603 2009-12-06  Bruno Haible  <bruno@clisp.org>
29604
29605         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29606         value.
29607
29608 2009-12-06  Bruno Haible  <bruno@clisp.org>
29609
29610         * lib/progname.c: Include stdio.h, stdlib.h.
29611         (set_program_name): Reject a NULL argument.
29612
29613 2009-12-05  Eric Blake  <ebb9@byu.net>
29614
29615         pipe2-safer: new module
29616         * modules/pipe2-safer: New file.
29617         * lib/unistd-safer.h (pipe2_safer): New prototype.
29618         * lib/unistd--.h (pipe2): New wrapper.
29619         * lib/pipe-safer.c (pipe2_safer): New function.
29620         * modules/pipe (Depends-on): Add pipe2-safer.
29621         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29622
29623         stdlib-safer: preserve cloexec flag for mkostemp[s]
29624         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29625         fd_safer_flag.
29626
29627         unistd-safer: allow preservation of cloexec status via flag
29628         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29629         prototypes.
29630         * lib/dup-safer.c (dup_safer_flag): New function.
29631         * lib/fd-safer.c (fd_safer_flag): Likewise.
29632         * modules/cloexec (configure.ac): Set witness.
29633
29634         test-dup2: enhance test
29635         * modules/dup2-tests (Depends-on): Add cloexec.
29636         * tests/test-dup2.c (main): Enhance test.
29637
29638         cloexec: add dup_cloexec
29639         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29640         header and comments.
29641         * lib/cloexec.c (set_cloexec_flag): Add comments.
29642         (dup_cloexec): New function, with mingw implementation borrowed
29643         from...
29644         * lib/w32spawn.h (dup_noinherit): ...here.
29645         * modules/execute (Depends-on): Add cloexec.
29646         * modules/pipe (Depends-on): Likewise.
29647         * modules/cloexec (Depends-on): Add dup2.
29648         * modules/cloexec-tests (Files): New file.
29649         * tests/test-cloexec.c: Likewise.
29650
29651         test-xalloc-die: fix test for mingw
29652         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29653         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29654         directory and .exe suffix off argv[0] output.
29655
29656         test-fseeko: fix test for mingw
29657         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29658         than undefining fseek, so test will pass on mingw.
29659
29660 2009-12-05  Bruno Haible  <bruno@clisp.org>
29661
29662         * lib/progname.h (set_program_name): Clarify specification.
29663         * lib/progname.c (set_program_name): Likewise.
29664         Reported by Jim Meyering.
29665
29666 2009-12-05  Jim Meyering  <meyering@redhat.com>
29667
29668         maint.mk: backslash-escape parens in default regexp
29669         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29670         backslash-escape the literal parentheses.
29671
29672         maint.mk: news-date-check: use grep -E
29673         * top/maint.mk (today): Define a Make variable, not a...
29674         (news-date-check): ...shell variable.
29675         (news-date-regexp): Use the Make variable.
29676         Use grep's -E option.  Change the failing diagnostic to mention
29677         the variable, $(news-date-regexp).
29678
29679 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29680
29681         maintainer-makefile: allow customization of NEWS entry format
29682         * top/maint.mk (news-date-regexp): New overridable variable.
29683         (news-date-check): Use it.
29684
29685 2009-12-04  Eric Blake  <ebb9@byu.net>
29686
29687         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29688         * lib/mgetgroups.h (xgetgroups): New prototype.
29689         * lib/mgetgroups.c (xgetgroups): New wrapper.
29690         (mgetgroups): Handle ENOSYS.
29691         * modules/mgetgroups (Depends-on): Add realloc.
29692         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29693
29694         mgetgroups: avoid argument promotion issues with -1
29695         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29696         for invalid gid_t.
29697         * tests/test-chown.h (getegid, test_chown): Likewise.
29698         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29699
29700 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29701
29702         exclude: Fix header file problems.
29703         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29704
29705 2009-12-01  Jim Meyering  <meyering@redhat.com>
29706
29707         fts: fts_open: do not let an empty string cause immediate failure
29708         This is required in support of GNU rm, for which the command
29709         "rm A '' B" must process and remove both A and B, in spite of
29710         the empty string argument.
29711         * lib/fts.c (fts_open): Do not let the presence of an empty string
29712         cause fts_open to fail immediately.  Most fts-using tools must be
29713         able to process all arguments, in order, and can be expected to
29714         diagnose such arguments themselves.
29715
29716 2009-11-30  Eric Blake  <ebb9@byu.net>
29717
29718         utimens: fix compilation error
29719         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29720         Declare variable at right scope.
29721
29722 2009-11-29  Jim Meyering  <meyering@redhat.com>
29723
29724         bootstrap: handle perl-5.11's changed --version output
29725         * build-aux/bootstrap (get_version): Handle perl separately,
29726         since perl-5.11's --version output is different.
29727
29728 2009-11-28  Jim Meyering  <meyering@redhat.com>
29729
29730         userspec: depend on the inttostr module, too
29731         * modules/userspec (Depends-on): Add inttostr.
29732
29733         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29734         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29735         number of MAXUID when it evaluates to (uid_t) -1.
29736         Likewise for group ID.  Reported by Matt McCutchen in
29737         <http://savannah.gnu.org/bugs/?28113>
29738
29739         userspec: reformat to use spaces, not TABs
29740         * lib/userspec.c: Expand TABs to spaces.
29741         Add Emacs' "indent-tabs-mode: nil" hint.
29742
29743 2009-11-27  Eric Blake  <ebb9@byu.net>
29744
29745         getopt-gnu: flush out another BSD bug
29746         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29747         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29748         flush out BSD bug.
29749         * tests/test-getopt.h (test_getopt): End lists with NULL.
29750         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29751         (test_getopt_long_posix): Enhance test.
29752         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29753         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29754         getopt-gnu.
29755         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29756         Likewise.
29757
29758 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29759
29760         * modules/idpriv-droptemp-tests (Notice): Fix text.
29761
29762 2009-11-27  Jim Meyering  <meyering@redhat.com>
29763
29764         test-xalloc-die: avoid spurious failure due to libtool argv difference
29765         In a libtool-enabled project, this test would fail due to a difference
29766         in the emitted program name, e.g.,
29767         -test-xalloc-die: memory exhausted
29768         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29769         Use program to avoid that.
29770         * modules/xalloc-die-tests (Depends-on): Add progname.
29771         * tests/test-xalloc-die.c: Include progname.h".
29772         (program_name): Remove decl.
29773         (main): Call set_program_name.
29774         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29775
29776 2009-11-26  Richard Jones  <rjones@redhat.com>
29777
29778         w32sock: leave win32 error in place.
29779         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29780
29781 2009-11-26  Eric Blake  <ebb9@byu.net>
29782
29783         init.sh: suggest to use skip_ and fail_ functions in comments
29784         * tests/init.sh: Add a sentence.
29785
29786 2009-11-25  Bruno Haible  <bruno@clisp.org>
29787
29788         init.sh: add documentation in comments
29789         * tests/init.sh: Add some developer and user documentation.
29790
29791 2009-11-26  Jim Meyering  <meyering@redhat.com>
29792
29793         init.sh: accommodate even those who specify bogus srcdir manually
29794         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29795         configure-time tests to be sanitized, so that there is no need to
29796         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29797         (with no double quotes) suffices.  However, since tests may be
29798         invoked manually, and since you may explicitly set srcdir to the
29799         name of a directory containing spaces, do quote its uses here.
29800         * tests/test-pread.sh: Likewise.
29801         Suggested by Bruno Haible.
29802
29803         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29804         * tests/test-pread.sh: Write no data into the pipe, because
29805         test-pread actually reads none.  This avoids a diagnostic,
29806         "bash: echo: write error: Broken pipe", that arises in the unusual
29807         event something is ignoring SIGPIPE, and might be interpreted
29808         as some sort of failure.  Reported by Bruno Haible.
29809
29810 2009-11-25  Jim Meyering  <meyering@redhat.com>
29811
29812         test-pread: cover failure with ESPIPE and EINVAL
29813         * tests/test-pread.c (main): Test for failure, too.
29814         * tests/test-pread.sh: Invoke with stdin on a pipe.
29815         Suggested by Eric Blake.
29816
29817         pread: improvement and fix
29818         * modules/pread (Depends-on): Depend on lseek, for portability to
29819         e.g., mingw.  Suggested by Eric Blake.
29820         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29821
29822         unistd.in.h: correct declaration of pread
29823         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29824         Reported by Richard W.M. Jones.
29825
29826         test-pread.sh: distribute the test script
29827         * modules/pread-tests (Files): Include test-pread.sh.
29828
29829         test-pread.sh: clean up
29830         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29831         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29832         That is unnecessary, since it's always ".".
29833         Suggestion from Eric Blake.
29834
29835         test-pread.sh: make executable
29836         * tests/test-pread.sh: Set executable bit.
29837         Reported by Eric Blake.
29838
29839         correct typo in test-pread.sh
29840         * tests/test-pread.sh: Add #! line.
29841
29842         test pread
29843         * tests/test-pread.c: New file.
29844         * tests/test-pread.sh: Likewise.
29845         * modules/pread-tests: Likewise.
29846
29847         pread: new module
29848         * modules/pread: New file.
29849         * lib/unistd.in.h (pread): Define/declare.
29850         * lib/pread.c (pread): New file.
29851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29852         * modules/unistd (Makefile.am): Substitute witnesses.
29853         * doc/posix-functions/pread.texi (pread): Update.
29854         * MODULES.html.sh: Add pread.
29855
29856 2009-11-25  Jim Meyering  <meyering@redhat.com>
29857
29858         tests/init.sh: new file to be used via most *.sh tests
29859         * tests/init.sh: New file.
29860
29861 2009-11-25  Eric Blake  <ebb9@byu.net>
29862
29863         utimens: work around older Linux failure with symlinks
29864         * lib/utimens.c (lutimensat_works_really): New variable.
29865         (fdutimens, lutimens): Use it to manage kernels that support
29866         nanosecond times on files, but not on symlinks.
29867         Reported by OndÅ™ej Vašík.
29868
29869         utimes: fix configure grammar
29870         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29871
29872 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29873
29874         regex: Fix fastmap for multibyte character ranges.
29875         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29876         characters when a multibyte character range is included.
29877
29878 2009-11-22  Andy Wingo  <wingo@pobox.com>
29879
29880         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29881         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29882
29883 2009-11-24  Bruno Haible  <bruno@clisp.org>
29884
29885         doc: Most *_l functions exist in MacOS X 10.5.
29886         * doc/posix-functions/duplocale.texi: Update platforms list.
29887         * doc/posix-functions/freelocale.texi: Likewise.
29888         * doc/posix-functions/newlocale.texi: Likewise.
29889         * doc/posix-functions/uselocale.texi: Likewise.
29890         * doc/posix-functions/isalnum_l.texi: Likewise.
29891         * doc/posix-functions/isalpha_l.texi: Likewise.
29892         * doc/posix-functions/isblank_l.texi: Likewise.
29893         * doc/posix-functions/iscntrl_l.texi: Likewise.
29894         * doc/posix-functions/isdigit_l.texi: Likewise.
29895         * doc/posix-functions/isgraph_l.texi: Likewise.
29896         * doc/posix-functions/islower_l.texi: Likewise.
29897         * doc/posix-functions/isprint_l.texi: Likewise.
29898         * doc/posix-functions/ispunct_l.texi: Likewise.
29899         * doc/posix-functions/isspace_l.texi: Likewise.
29900         * doc/posix-functions/isupper_l.texi: Likewise.
29901         * doc/posix-functions/iswalnum_l.texi: Likewise.
29902         * doc/posix-functions/iswalpha_l.texi: Likewise.
29903         * doc/posix-functions/iswblank_l.texi: Likewise.
29904         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29905         * doc/posix-functions/iswctype_l.texi: Likewise.
29906         * doc/posix-functions/iswdigit_l.texi: Likewise.
29907         * doc/posix-functions/iswgraph_l.texi: Likewise.
29908         * doc/posix-functions/iswlower_l.texi: Likewise.
29909         * doc/posix-functions/iswprint_l.texi: Likewise.
29910         * doc/posix-functions/iswpunct_l.texi: Likewise.
29911         * doc/posix-functions/iswspace_l.texi: Likewise.
29912         * doc/posix-functions/iswupper_l.texi: Likewise.
29913         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29914         * doc/posix-functions/isxdigit_l.texi: Likewise.
29915         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29916         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29917         * doc/posix-functions/strcoll_l.texi: Likewise.
29918         * doc/posix-functions/strfmon_l.texi: Likewise.
29919         * doc/posix-functions/strftime_l.texi: Likewise.
29920         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29921         * doc/posix-functions/strxfrm_l.texi: Likewise.
29922         * doc/posix-functions/tolower_l.texi: Likewise.
29923         * doc/posix-functions/toupper_l.texi: Likewise.
29924         * doc/posix-functions/towctrans_l.texi: Likewise.
29925         * doc/posix-functions/towlower_l.texi: Likewise.
29926         * doc/posix-functions/towupper_l.texi: Likewise.
29927         * doc/posix-functions/wcscoll_l.texi: Likewise.
29928         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29929         * doc/posix-functions/wctrans_l.texi: Likewise.
29930         * doc/posix-functions/wctype_l.texi: Likewise.
29931         * doc/glibc-functions/strptime_l.texi: Likewise.
29932         * doc/glibc-functions/strtod_l.texi: Likewise.
29933         * doc/glibc-functions/strtof_l.texi: Likewise.
29934         * doc/glibc-functions/strtol_l.texi: Likewise.
29935         * doc/glibc-functions/strtold_l.texi: Likewise.
29936         * doc/glibc-functions/strtoll_l.texi: Likewise.
29937         * doc/glibc-functions/strtoul_l.texi: Likewise.
29938         * doc/glibc-functions/strtoull_l.texi: Likewise.
29939         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29940         * doc/glibc-functions/wcstod_l.texi: Likewise.
29941         * doc/glibc-functions/wcstof_l.texi: Likewise.
29942         * doc/glibc-functions/wcstol_l.texi: Likewise.
29943         * doc/glibc-functions/wcstold_l.texi: Likewise.
29944         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29945         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29946         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29947
29948 2009-11-24  Bruno Haible  <bruno@clisp.org>
29949
29950         duplocale: Fix logic bug.
29951         * lib/duplocale.c: Don't include <langinfo.h>.
29952         (_NL_LOCALE_NAME): Remove macro.
29953         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29954         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29955
29956 2009-11-23  Jim Meyering  <meyering@redhat.com>
29957
29958         test-update-copyright: don't hard-code /usr/bin/perl
29959         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29960         perl to print the current year.  Gilles Espinasse reported that
29961         the replaced use of perl was hard-coded as /usr/bin/perl.
29962
29963 2009-11-23  Bruno Haible  <bruno@clisp.org>
29964
29965         duplocale: Add support for glibc 2.3.x.
29966         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29967
29968 2009-11-22  Bruno Haible  <bruno@clisp.org>
29969
29970         vasnprintf: Tiny optimization.
29971         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29972         MacOS X.
29973
29974 2009-11-22  Bruno Haible  <bruno@clisp.org>
29975
29976         Tests for module 'duplocale'.
29977         * modules/duplocale-tests: New file.
29978         * tests/test-duplocale.c: New file.
29979
29980         New module 'duplocale'.
29981         * m4/duplocale.m4: New file.
29982         * lib/locale.in.h (duplocale): New declaration.
29983         * lib/duplocale.c: New file.
29984         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29985         gl_LOCALE_H_DEFAULTS): New macros.
29986         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29987         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29988         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29989         REPLACE_DUPLOCALE.
29990         * modules/duplocale: New file.
29991         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29992
29993 2009-11-22  Bruno Haible  <bruno@clisp.org>
29994
29995         * modules/locale-tests (configure.ac): Test for newlocale function.
29996         * tests/test-locale.c: When the system has extended locale functions,
29997         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29998
29999         locale: Make locale_t available when possible.
30000         * lib/locale.in.h: Include <xlocale.h> when it exists.
30001         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
30002         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
30003         * modules/locale (Depends-on): Add extensions.
30004         (Makefile.am): Also substitute HAVE_XLOCALE_H.
30005         * doc/posix-headers/locale.texi: Document the problem with locale_t.
30006
30007 2009-11-22  Bruno Haible  <bruno@clisp.org>
30008
30009         Add comments.
30010         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
30011         invocation.
30012         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30013         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30014         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30015
30016 2009-11-22  Bruno Haible  <bruno@clisp.org>
30017
30018         error: account for the possibility of freopen (stdout).
30019         * lib/error.c: Include <unistd.h>.
30020         (flush_stdout): New function, extracted from error and error_at_line.
30021         Determine stdout's fd dynamically.
30022         (error, error_at_line): Invoke flush_stdout.
30023         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
30024         * modules/error (Depends-on): Add unistd.
30025
30026 2009-11-22  Bruno Haible  <bruno@clisp.org>
30027
30028         diffseq: Add comment.
30029         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
30030
30031 2009-11-22  Jim Meyering  <meyering@redhat.com>
30032
30033         c-stack: avoid defining an unused static function
30034         * lib/c-stack.c (find_stack_direction): Do not define this function
30035         when it will not be used.
30036
30037         diffseq: avoid spurious gcc warnings
30038         * lib/diffseq.h (IF_LINT2): Define.
30039         (compareseq): Use it to initialize two members of "part".
30040         This avoids two used-uninitialized warnings.
30041
30042 2009-11-21  Jim Meyering  <meyering@redhat.com>
30043
30044         c-stack: avoid "ignoring return value of `write'" warning
30045         * lib/c-stack.c: Include "ignore-value.h".
30046         (die): Explicitly ignore each write return value.
30047         * modules/c-stack (Depends-on): Add ignore-value.
30048
30049 2009-11-21  Bruno Haible  <bruno@clisp.org>
30050
30051         diffseq: reduce scope of variable 'best'.
30052         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
30053         variable, earlier used for two different purposes.
30054
30055 2009-11-21  Jim Meyering  <meyering@redhat.com>
30056
30057         diffseq: remove useless assignment to "best"
30058         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
30059         assignment.  At that point "best" is already guaranteed to be zero.
30060
30061 2009-11-20  Eric Blake  <ebb9@byu.net>
30062
30063         build: mention ftp redirector in release announcements
30064         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
30065         values that used to come from cfg.mk; mention FTP redirect URL.
30066         * build-aux/announce-gen: Mention the mirror list.
30067         Suggested by Karl Berry.
30068
30069         nanosleep: improve port to mingw
30070         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
30071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
30072         LIB_NANOSLEEP, but only when needed.
30073         * modules/select (Link): Document LIBSOCKET.
30074         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
30075         enough.
30076
30077         nanosleep: work around cygwin bug
30078         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
30079         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
30080         bug.
30081         (getnow): Delete, not needed.
30082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
30083         LIB_CLOCK_GETTIME.
30084         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
30085         clock-time, gettime.
30086         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
30087         bug.
30088         * modules/nanosleep-tests: New test.
30089         * tests/test-nanosleep.c: New file.
30090
30091         sleep: work around cygwin bug
30092         * lib/sleep.c (rpl_sleep): Work around the bug.
30093         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
30094         (gl_PREREQ_SLEEP): Delete unused macro.
30095         * modules/sleep (Depends-on): Add verify.
30096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30097         * modules/unistd (Makefile.am): Substitute witness.
30098         * lib/unistd.in.h (sleep): Update prototype.
30099         * doc/posix-functions/sleep.texi (sleep): Document the bug.
30100         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
30101         * modules/sleep-tests (Depends-on): Check for alarm.
30102
30103 2009-11-20  Jim Meyering  <meyering@redhat.com>
30104
30105         maint.mk: improve sc_prohibit_magic_number_exit
30106         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
30107         so it does not match uses like System.exit(1).
30108         Add comments showing how to correct all offenders.
30109
30110 2009-11-19  Eric Blake  <ebb9@byu.net>
30111
30112         xalloc-die-tests: add missing library
30113         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
30114
30115         test-xvasprintf: silence compiler warnings
30116         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
30117         empty string from gcc.
30118
30119 2009-11-19  Jim Meyering  <meyering@redhat.com>
30120
30121         xfreopen: new module, from coreutils
30122         * modules/xfreopen: New module.
30123         * lib/xfreopen.c: New file.
30124         * lib/xfreopen.h: New file.
30125         * MODULES.html.sh (File stream based Input/Output"): Add it.
30126
30127 2009-11-19  Eric Blake  <ebb9@byu.net>
30128
30129         manywarnings: depend on warnings
30130         * modules/manywarnings (Depends-on): Add warnings.
30131
30132         build: avoid compiler warnings
30133         * lib/select.c (rpl_select): Delete unused variable.
30134         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
30135
30136 2009-11-18  Eric Blake  <ebb9@byu.net>
30137
30138         tests: avoid false negative with --with-packager
30139         * tests/test-version-etc.sh: Discard packager information.
30140         * tests/test-argp-version-etc-1.sh: Likewise.
30141         Reported by Mike Frysinger.
30142
30143         utimens: fix regression on Solaris
30144         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
30145         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
30146         can only change fd timestamps via futimesat.  Instead, use an
30147         additional witness macro to avoid BSD bug.
30148         Reported by Jim Meyering.
30149
30150 2009-11-17  Eric Blake  <ebb9@byu.net>
30151
30152         usleep: use it to simplify tests
30153         * modules/stat-time-tests (Depends-on): Add usleep.
30154         (configure.ac): Drop usleep check.
30155         * modules/chown-tests (Depends-on, configure.ac): Likewise.
30156         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
30157         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
30158         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
30159         * modules/openat-tests (Depends-on, configure.ac): Likewise.
30160         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
30161         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
30162         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
30163         Likewise.
30164         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
30165         * tests/test-lchown.h (nap): Likewise.
30166         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
30167         * tests/test-stat-time.c (nap): Likewise.
30168         * tests/test-utimens-common.h (nap): Update comments.
30169
30170         usleep: new module
30171         * modules/usleep: New file.
30172         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
30173         * lib/usleep.c (usleep): Likewise.
30174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30175         * modules/unistd (Makefile.am): Substitute witnesses.
30176         * lib/unistd.in.h (usleep): Add declaration.
30177         * doc/pastposix-functions/usleep.texi (usleep): Document this.
30178         * MODULES.html.sh (Date and time): Likewise.
30179         * modules/usleep-tests (Depends-on): New test.
30180         * tests/test-usleep.c: New file.
30181
30182         chown: work around OpenBSD bug
30183         * lib/chown.c (rpl_chown): Work around the bug.
30184         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
30185         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
30186         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
30187         * modules/chown (Depends-on): Add stdbool.
30188         * modules/lchown (Depends-on): Likewise.
30189         * doc/posix-functions/chown.texi (chown): Document the bug.
30190         * doc/posix-functions/lchown.texi (lchown): Likewise.
30191         * tests/test-lchown.h (test_chown): Relax test.
30192
30193         mkstemp: avoid conflict with C++ keyword template
30194         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
30195         * lib/mkostemp.c (mkostemp): Likewise.
30196         * lib/mkostemps.c (mkostemps): Likewise.
30197         * lib/mkstemp.c (mkstemp): Likewise.
30198         * lib/mkstemps.c (mkstemps): Likewise.
30199
30200         xalloc-die-tests: optimize
30201         * tests/test-xalloc-die.sh: Reduce number of processes.
30202
30203 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30204
30205         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
30206         patch from ludo@gnu.org (Ludovic Courtès).
30207
30208 2009-11-17  Jim Meyering  <meyering@redhat.com>
30209
30210         version-etc: use proper license string
30211         * modules/version-etc (License): Use LGPL, not LGPLv3+.
30212         * modules/version-etc-fsf: Likewise.
30213
30214 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30215
30216         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
30217         printed to stdout.  Deal with EOL differences.
30218
30219 2009-11-17  Eric Blake  <ebb9@byu.net>
30220
30221         unsetenv: work around Solaris bug
30222         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
30223         * lib/unsetenv.c (rpl_unsetenv): Work around it.
30224         Reported by Jim Meyering.
30225
30226         vasnprintf: avoid compiler warnings
30227         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
30228         variables.
30229         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
30230
30231 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30232
30233         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
30234         settings since xalloc-die is no longer the self test,
30235         xalloc-die.sh is.
30236
30237 2009-11-17  Jim Meyering  <meyering@redhat.com>
30238
30239         test-xalloc-die.sh: make the code agree with the commit log
30240         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
30241         at the end, just in case you happen to have a test-xalloc-die
30242         program in some other PATH directory.
30243
30244         test-xalloc-die.sh: fix a portability bug
30245         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
30246         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
30247         Otherwise, argv[0] (as often seen in diagnostics) would be too
30248         system-dependent, sometimes with, and sometimes without the leading "./".
30249
30250         version-etc-fsf: relax license to LGPLv3+
30251         * modules/version-etc-fsf (License): Relax license.
30252
30253 2009-11-16  Eric Blake  <ebb9@byu.net>
30254
30255         xalloc-die-tests: avoid printing null pointer
30256         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30257         shell script.
30258         * tests/test-xalloc-die.c (program_name): Declare.
30259         * tests/test-xalloc-die.sh (tmpfiles): New file.
30260
30261         setenv, unsetenv: work around various bugs
30262         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
30263         (setenv) [HAVE_SETENV]: Work around bugs.
30264         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
30265         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
30266         for bugs.
30267         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
30268         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
30269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
30270         * modules/stdlib (Makefile.am): Update substitutions.
30271         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
30272         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
30273         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30274         * modules/setenv-tests: New test.
30275         * modules/unsetenv-tests: Likewise.
30276         * tests/test-setenv.c: New file.
30277         * tests/test-unsetenv.c: Likewise.
30278
30279 2009-11-16  Jim Meyering  <meyering@redhat.com>
30280
30281         version-etc: relax license to LGPLv3+
30282         * modules/version-etc (License): Relax license.
30283
30284         better AC_REQUIRE expanded-before-required-warning avoidance
30285         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
30286         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
30287         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
30288         which is no longer needed.
30289
30290 2009-11-16  Eric Blake  <ebb9@byu.net>
30291
30292         test-freading: clean up temporary file
30293         * tests/test-freading.c (main): Remove file on success, and use
30294         ASSERT more liberally.
30295         Reported by Jim Meyering.
30296
30297 2009-11-16  Jim Meyering  <meyering@redhat.com>
30298
30299         avoid new AC_REQUIRE expanded-before-required warnings
30300         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
30301         merely using it.
30302         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
30303         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
30304
30305 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30306
30307         * tests/test-xalloc-die.c: New file.
30308         * modules/xalloc-die-tests: New file.
30309         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
30310         XFAIL_TESTS so it can be appended by modules.
30311
30312 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30313
30314         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
30315         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
30316
30317 2009-11-14  Eric Blake  <ebb9@byu.net>
30318
30319         fnmatch: avoid compiler warning
30320         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
30321         to silence compiler warning about mismatch signedness in ?:.
30322         Reported by Robert Millan.
30323
30324         intprops: add double-inclusion guard
30325         * lib/intprops.h: Allow idempotent includes.
30326         Suggested by Bruce Korb.
30327
30328         openat: detect Solaris fchownat bug
30329         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
30330         penalizing glibc chownat when only lchownat is broken.
30331         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
30332         trailing slash bugs.
30333         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
30334         * modules/openat-tests (Files): Include more files.
30335         (Depends-on): Add mgetgroups, sleep, stat-time.
30336         (configure.ac): Add additional checks.
30337         (Makefile.am): Build new test.
30338         * tests/test-fchownat.c: New file.
30339
30340         lchown: detect Solaris and FreeBSD bug
30341         * lib/lchown.c (rpl_lchown): Work around bug.
30342         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
30343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30344         * modules/unistd (Makefile.am): Populate it.
30345         * lib/unistd.in.h (lchown): Update declaration.
30346         * doc/posix-functions/lchown.texi (lchown): Document the bug.
30347         * modules/lchown-tests: New file.
30348         * tests/test-lchown.h (test_lchown): Likewise.
30349         * tests/test-lchown.c (main): Likewise.
30350
30351         chown: detect Solaris and FreeBSD bug
30352         * lib/chown.c (rpl_chown): Work around bug.
30353         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
30354         (gl_PREREQ_CHOWN): Delete.
30355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30356         * modules/unistd (Makefile.am): Populate it.
30357         * lib/unistd.in.h (chown): Update declaration.
30358         * lib/lchown.c (chown): Update client.
30359         * modules/lchown (Depends-on): Add lstat.
30360         * doc/posix-functions/chown.texi (chown): Document the bug.
30361         * doc/posix-functions/getgroups.texi (getgroups): Document
30362         getgroups pitfall.
30363         * modules/chown-tests: New file.
30364         * tests/test-chown.h (test_chown): Likewise.
30365         * tests/test-chown.c (main): Likewise.
30366
30367 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
30368
30369         gnulib-tool: correctly detect absence of m4 directories
30370         * gnulib-tool: Avoid extra newline on data passed to wc -l.
30371
30372 2009-11-14  Jim Meyering  <meyering@redhat.com>
30373
30374         maint.mk: Prohibit inclusion of "xalloc.h" without use.
30375         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30376
30377 2009-11-14  John W. Eaton  <jwe@gnu.org>
30378
30379         strftime.h: wrap funtion declaration in extern "C" block
30380         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
30381
30382 2009-11-13  Eric Blake  <ebb9@byu.net>
30383
30384         getgroups: avoid compiler warning
30385         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
30386
30387         getgroups: work around FreeBSD bug
30388         * lib/getgroups.c (rpl_getgroups): Work around the bug.
30389         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
30390         * doc/posix-functions/getgroups.texi (getgroups): Document it.
30391         * tests/test-getgroups.c (main): Fix buffer overrun.
30392
30393         getgroups: avoid compilation failure
30394         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
30395         * modules/getgroups (Depends-on): Add stdint.
30396
30397 2009-11-13  Jim Meyering  <meyering@redhat.com>
30398
30399         test-getgroups: avoid compilation failure
30400         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
30401
30402 2009-11-13  Eric Blake  <ebb9@byu.net>
30403
30404         mgetgroups: new module, taken from coreutils
30405         * modules/mgetgroups: New file.
30406         * lib/mgetgroups.h: Likewise.
30407         * lib/mgetgroups.c (mgetgroups): Likewise.
30408         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
30409         * MODULES.html.sh (Users and groups): Mention it.
30410
30411         getgroups: don't expose GETGROUPS_T to user
30412         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
30413         an element at a time if GETGROUPS_T is wrong size.
30414         * lib/getugroups.h (getugroups): Change signature.
30415         * lib/unistd.in.h (getgroups): Likewise.
30416         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
30417         signature needs fixing.
30418         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
30419         AC_TYPE_GETGROUPS.
30420         * modules/group-member (Depends-on): Add getgroups.
30421         * lib/group-member.c (group_info, get_group_info): Use gid_t.
30422         (group_member): Rely on getgroups replacement.
30423         * lib/getugroups.c (getugroups): Use gid_t.
30424         * tests/test-getgroups.c (main): Likewise.
30425         * NEWS: Mention the signature change.
30426         * doc/posix-functions/getgroups.texi (getgroups): Mention the
30427         problem with signature.
30428         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
30429         GETGROUPS_T is still useful for setgroups.
30430
30431         getgroups, getugroups: provide stubs for mingw
30432         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
30433         * lib/getugroups.c (getugroups): Likewise.
30434         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
30435         function.  Modernize replacement scheme.
30436         (gl_PREREQ_GETGROUPS): Delete.
30437         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
30438         * modules/getgroups (configure.ac): Declare witness.
30439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30440         * modules/unistd (Depends-on): Substitute witness.
30441         * lib/unistd.in.h (getgroups): Declare replacement.
30442
30443         getgroups: avoid calling exit
30444         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
30445         drop xalloc.
30446         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
30447         dependencies.
30448         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
30449         exiting, in the rare case of malloc failure.
30450
30451         getgroups: fix logic error
30452         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
30453         has more than 20 groups.
30454         * modules/getgroups-tests: New test.
30455         * tests/test-getgroups.c: New file.
30456
30457 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30458
30459         * tests/test-base64.c: Improve.
30460
30461 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30462
30463         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
30464         Blake <ebb9@byu.net>.
30465
30466 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30467
30468         * tests/test-xvasprintf.c: Add %s%s related checks.
30469
30470 2009-11-12  Eric Blake  <ebb9@byu.net>
30471
30472         version-etc: match standards.texi style
30473         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
30474         and use <> only for URLs.
30475
30476 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
30477
30478         fts: do not fail on a submount during traversal
30479         * lib/fts.c (fts_build): Read the stat info again after opening
30480         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
30481         Original report at http://bugzilla.redhat.com/501848.
30482
30483 2009-11-12  Jim Meyering  <meyering@redhat.com>
30484
30485         bootstrap: sync from coreutils
30486         * build-aux/bootstrap (bootstrap_epilogue): New function.
30487         Use git_modules_config in one more place.  This make bootstrap's
30488         --gnulib-srcdir option more useful for testing.
30489
30490         bootstrap: generalize autoheader check
30491         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
30492         AC_CONFIG_HEADERS.
30493
30494 2009-11-11  Eric Blake  <ebb9@byu.net>
30495
30496         mkfifoat: use new modules for Solaris and BSD bugs
30497         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
30498         * lib/mkfifoat.c (mknodat): Split...
30499         * lib/mknodat.c (mknodat): ...into new file.
30500         * modules/mkfifoat (Files): Ship new file.
30501         (Depends-on): Add mkfifo, mknod.
30502         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
30503         (Depends-on): Add symlink.
30504         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
30505         redundant with test_mkfifo.h.
30506         (do_mkfifoat, do_mknodat): New helpers.
30507
30508         mknod: new module
30509         * modules/mknod: New file.
30510         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
30511         * lib/mknod.c (mknod): Likewise.
30512         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30513         defaults.
30514         * modules/sys_stat (Makefile.am): Substitute them.
30515         * lib/sys_stat.in.h (mknod): Declare replacement.
30516         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30517         Document it.
30518         * doc/posix-functions/mknod.texi (mknod): Likewise.
30519         * modules/mknod-tests: New test.
30520         * tests/test-mknod.c: Likewise.
30521
30522         mkfifo: new module
30523         * modules/mkfifo: New file.
30524         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30525         * lib/mkfifo.c (mkfifo): Likewise.
30526         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30527         defaults.
30528         * modules/sys_stat (Makefile.am): Substitute them.
30529         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30530         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30531         Document it.
30532         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30533         * modules/mkfifo-tests: New test.
30534         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30535         from test-mkfifoat.c.
30536         * tests/test-mkfifo.c: New file.
30537
30538         readlink: detect FreeBSD bug
30539         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30540         slash on symlink.
30541         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30542         * tests/test-readlink.h (test_readlink): Enhance test.
30543
30544         symlink: detect FreeBSD bug
30545         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30546         slash on symlink.
30547         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30548         * tests/test-symlink.h (test_symlink): Enhance test.
30549
30550 2009-11-10  Eric Blake  <ebb9@byu.net>
30551
30552         link: detect FreeBSD bug
30553         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30554         symlink.
30555         * doc/posix-functions/link.texi (link): Document the bug.
30556         * tests/test-link.h (test_link): Enhance test.
30557         * tests/test-linkat.c (main): Update caller.
30558
30559         unlink, remove: detect FreeBSD bug
30560         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30561         slash on symlink.
30562         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30563         * doc/posix-functions/remove.texi (remove): Likewise.
30564         * tests/test-unlink.h (test_unlink): Enhance test.
30565         * tests/test-remove.c (main): Likewise.
30566
30567 2009-11-09  Eric Blake  <ebb9@byu.net>
30568
30569         rename: detect FreeBSD bug
30570         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30571         slash on symlink.
30572         * modules/renameat-tests (Depends-on): Add filenamecat.
30573         * tests/test-rename.h (test_rename): Allow one more errno.
30574         * tests/test-renameat.c (main): Likewise.
30575         * doc/posix-functions/rename.texi (rename): Document the bug.
30576
30577         open: detect FreeBSD bug
30578         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30579         symlink.
30580         * doc/posix-functions/open.texi (open): Document the bug.
30581         * doc/posix-functions/utimes.texi (utimes): Likewise.
30582         * tests/test-open.h (test_open): Add parameters, and test symlink
30583         handling.
30584         * tests/test-open.c (main): Adjust caller.
30585         * tests/test-fcntl-safer.c (main): Likewise.
30586         * modules/open-tests (Depends-on): Add stdbool, symlink.
30587         * modules/fcntl-safer-tests (Depends-on): Likewise.
30588         * tests/test-openat.c (main): Add test-open tests.
30589
30590         stat: detect FreeBSD bug
30591         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30592         symlink.
30593         * doc/posix-functions/stat.texi (stat): Document the bug.
30594         * tests/test-stat.h (test_stat_func): Add argument.
30595         * tests/test-stat.c (main): Adjust caller.
30596         * tests/test-fstatat.c (main): Likewise.
30597         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30598         Reported by Jim Meyering.
30599
30600 2009-11-09  James Youngman  <jay@gnu.org>
30601
30602         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30603         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30604
30605 2009-11-08  Jim Meyering  <meyering@redhat.com>
30606
30607         utimens: remove invalid futimesat call
30608         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30609         It used the file descriptor of the target file as the DIR_FD
30610         parameter and NULL as the file name.  That caused failure with
30611         errno == EFAULT on FreeBSD-8.0-rc2
30612
30613 2009-11-07  Eric Blake  <ebb9@byu.net>
30614
30615         fflush, freadseek: use fseeko, not fseek
30616         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30617         (clear_ungetc_buffer): Avoid potential problems on large files.
30618         * lib/freadseek.c (freadseek): Likewise.
30619         * modules/freadseek (Depends-on): Add fseeko.
30620         * modules/fseek (configure.ac): Set a witness.
30621         * tests/test-fflush.c (main): Use fseeko.
30622         * tests/test-fpurge.c (fseek): Disable link warning.
30623         * tests/test-freadable.c (fseek): Likewise.
30624         * tests/test-freading.c (fseek): Likewise.
30625         * tests/test-fseeko.c (fseek): Likewise.
30626         * tests/test-ftell.c (fseek): Likewise.
30627         * tests/test-ftello.c (fseek): Likewise.
30628         * tests/test-fwritable.c (fseek): Likewise.
30629         * tests/test-fwriting.c (fseek): Likewise.
30630
30631 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30632
30633         * modules/memchr (Depends-on): Drop getpagesize dependency.
30634
30635 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30636
30637         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30638         Reported by Ludovic Courtès.
30639         * build-aux/pmccabe2html: Improve example usage.
30640         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30641
30642 2009-11-06  Jim Meyering  <meyering@redhat.com>
30643
30644         do-release-commit-and-tag: New module.
30645         Automate the release-commit and tag process.
30646         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30647         * modules/do-release-commit-and-tag: New file.
30648         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30649
30650 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30651
30652         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30653         because test-select.c uses inet_pton.
30654
30655 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30656
30657         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30658         GETADDRINFO_LIB.  Bump serial number.
30659         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30660         Suggested by Eric Blake <ebb9@byu.net>.
30661
30662 2009-11-05  Eric Blake  <ebb9@byu.net>
30663
30664         strtod: detect darwin bug
30665         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30666         Reported by Leo Davis.
30667
30668         freopen-safer: new module
30669         * modules/freopen-safer: New module.
30670         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30671         * lib/freopen-safer.c (freopen_safer): New file.
30672         * lib/stdio-safer.h (freopen_safer): New declaration.
30673         * lib/stdio--.h (freopen): New override.
30674         * MODULES.html.sh (File stream based Input/Output): Mention it.
30675         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30676         freopen-safer module.
30677         * doc/posix-functions/stderr.texi (stderr): Likewise.
30678         * doc/posix-functions/stdin.texi (stdin): Likewise.
30679         * doc/posix-functions/stdout.texi (stdout): Likewise.
30680         * modules/freopen-safer-tests: New test.
30681         * tests/test-reopen-safer.c: New file.
30682
30683 2009-11-05  Jim Meyering  <meyering@redhat.com>
30684
30685         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30686         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30687
30688 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30689
30690         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30691
30692 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30693
30694         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30695
30696 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30697
30698         Fix link error.
30699         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30700         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30701
30702 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30703
30704         * tests/test-func.c: Also test value of __func__.
30705
30706 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30707
30708         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30709         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30710
30711 2009-11-05  Bruno Haible  <bruno@clisp.org>
30712
30713         Fix link error.
30714         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30715         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30716         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30717
30718 2009-11-05  Bruno Haible  <bruno@clisp.org>
30719
30720         Tests for module 'inet_pton'.
30721         * modules/inet_pton-tests: New file.
30722         * tests/test-inet_pton.c: New file.
30723
30724 2009-11-05  Bruno Haible  <bruno@clisp.org>
30725
30726         Tests for module 'inet_ntop'.
30727         * modules/inet_ntop-tests: New file.
30728         * tests/test-inet_ntop.c: New file.
30729
30730 2009-11-04  Eric Blake  <ebb9@byu.net>
30731
30732         stdlib-safer: wrap all mkstemp variants
30733         * modules/mkostemp (configure.ac): Set witness.
30734         * modules/mkostemps (configure.ac): Likewise.
30735         * modules/mkstemps (configure.ac): Likewise.
30736         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30737         (mkstemps_safer): Wrap more functions.
30738         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30739         wrapping.
30740         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30741         (mkstemps_safer): Implement the wrappers.
30742
30743         mkstemps, mkostemps: new modules
30744         * modules/mkostemps: New module.
30745         * modules/mkstemps: Likewise.
30746         * lib/mkostemps.c (mkostemps): New file.
30747         * lib/mkstemps.c (mkstemps): Likewise.
30748         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30749         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30751         * modules/stdlib (Makefile.am): Substitute them.
30752         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30753         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30754         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30755         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30756         * MODULES.html.sh (File system functions): Mention them.
30757
30758         tempname: resync from glibc
30759         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30760         same values for __GT_FILE as glibc.  Abort even when assertions
30761         are disabled.
30762         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30763         match its value otherwise.  Allow idempotent inclusion.
30764         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30765         * lib/mkostemp.c (mkostemp): Likewise.
30766         * lib/mkstemp.c (mkstemp): Likewise.
30767         * lib/tmpfile.c (tmpfile): Likewise.
30768         * NEWS: Document this.
30769
30770         utimens: fix use of futimens on older Linux
30771         * lib/utimens.c (fdutimens): Use updated, rather than original,
30772         timespec to avoid bug in older Linux kernel.
30773         Reported by Simon Josefsson.
30774
30775 2009-11-04  Bruno Haible  <bruno@clisp.org>
30776
30777         Make num_processors more flexible and consistent.
30778         * lib/nproc.h (enum nproc_query): New type.
30779         (num_processors): Add a 'query' argument.
30780         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30781         (num_processors): Add a 'query' argument. Test the value of the
30782         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30783         mingw, count the number of CPUs available for the current process.
30784         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30785         Check for sched_getaffinity and sched_getaffinity_np.
30786         * modules/nproc (Depends-on): Add c-ctype, extensions.
30787         * NEWS: Mention the change.
30788
30789 2009-11-03  Bruno Haible  <bruno@clisp.org>
30790
30791         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30792
30793 2009-11-03  Jim Meyering  <meyering@redhat.com>
30794
30795         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30796         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30797         if it is defined.
30798
30799 2009-11-02  Eric Blake  <ebb9@byu.net>
30800
30801         mktime, timegm: share common declaration
30802         * lib/mktime-internal.h: New file.
30803         * lib/mktime.c: Use it rather than open-coding a declaration.
30804         * lib/timegm.c: Likewise.
30805         * modules/mktime (Files): Ship it.
30806         * modules/timegm (Files): Likewise.
30807         Suggested by Bruno Haible.
30808
30809         test-update-copyright: update test to match script changes
30810         * tests/test-update-copyright.sh: Avoid hard-coding perl
30811         location.  Don't update *.bak created by earlier runs.
30812
30813 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30814             Simon Josefsson  <simon@josefsson.org>
30815             Bruno Haible  <bruno@clisp.org>
30816
30817         Fix link error on Solaris 8.
30818         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30819         also in libnsl. Define also INET_PTON_LIB.
30820         * modules/inet_pton (Link): New section.
30821
30822 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30823             Bruno Haible  <bruno@clisp.org>
30824
30825         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30826         * modules/inet_ntop (Link): New section.
30827         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30828
30829 2009-11-02  Eric Blake  <ebb9@byu.net>
30830
30831         maint: avoid compiler warnings in m4 macros
30832         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30833         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30834
30835 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30836
30837         * m4/pmccabe2html.m4: Remove file.
30838         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30839         function.  Change maintainer.
30840         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30841         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30842         Courtès).
30843
30844 2009-10-31  Eric Blake  <ebb9@byu.net>
30845
30846         fseeko: fix m4 regression
30847         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30848         regression from 2009-10-27.
30849         Reported by Ralf Wildenhues.
30850
30851 2009-10-31  Jim Meyering  <meyering@redhat.com>
30852
30853         inttostr: aesthetics and improved (compile-time) safety
30854         Define inttype_is_signed rather than inttype_is_unsigned,
30855         since the sole use is via "#if inttype_is_signed".
30856         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30857         inttype_is_unsigned.
30858         * lib/offtostr.c (inttype_is_signed): Likewise.
30859         * lib/uinttostr.c (inttype_is_signed): Likewise.
30860         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30861         * lib/inttostr.c (inttostr): Use verify to cross-check the
30862         inttype_is_signed value and the signedness of the actual type.
30863         * modules/inttostr (Depends-on): Add verify.
30864
30865 2009-10-30  Eric Blake  <ebb9@byu.net>
30866
30867         build: avoid compiler warnings
30868         * lib/fchmodat.c (lchmod): Mark unused variables.
30869         * lib/getopt.c (_getopt_initialize): Likewise.
30870         * lib/mktime.c (__mktime_internal): Provide prototype.
30871         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30872         older gcc that do not understand #pragma GCC diagnostic.
30873         * lib/uinttostr.c (inttype_is_unsigned): Define.
30874         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30875
30876 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30877
30878         stat: fix compilation on AIX
30879         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30880         only see struct stat64.
30881
30882 2009-10-30  Eric Blake  <ebb9@byu.net>
30883
30884         exclude: make more robust
30885         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30886         rather than masking a coding bug.
30887         Suggested by Bruno Haible.
30888
30889 2009-10-30  Jim Meyering  <meyering@redhat.com>
30890
30891         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30892         Rather than putting #!/usr/bin/perl on the first line,
30893         start with a variant of what's recommended by "man perlrun" that
30894         invokes the first "perl" program from your shell's search path.
30895         * build-aux/gitlog-to-changelog: Replace #!... as above.
30896         Add a "Local Variables" perl mode setting.
30897         Prompted by a patch from Ludovic Courtès.
30898         Improved by Eric Blake.
30899         * build-aux/useless-if-before-free: Likewise.
30900         * build-aux/announce-gen: Likewise.
30901         * build-aux/update-copyright: Likewise.
30902
30903 2009-10-29  Eric Blake  <ebb9@byu.net>
30904
30905         filenamecat-lgpl: adjust clients
30906         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30907         filenamecat.
30908         * modules/renameat (Depends-on): Likewise.
30909
30910         filenamecat: split into filenamecat-lgpl
30911         * modules/filenamecat-lgpl: New module.
30912         * modules/filenamecat (Files): Move library-safe files into
30913         filenamecat-lgpl.
30914         (Depends-on): Add filenamecat-lgpl.
30915         (configure.ac): Declare witness.
30916         * lib/filenamecat.h (file_name_concat): Only declare when using
30917         GPL module.
30918         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30919         Move...
30920         * lib/filenamecat-lgpl.c: ...into new file.
30921         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30922         (gl_FILE_NAME_CONCAT): Use it.
30923         * MODULES.html.sh (File system functions): Mention new module.
30924
30925         argp: avoid memory leak
30926         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30927         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30928         base_name, since the latter malloc()s and can call exit().
30929         Leak introduced 2006-07-03.
30930
30931         dirname-lgpl: adjust clients that don't need full dirname
30932         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30933         * modules/filenamecat (Depends-on): Likewise.
30934         * modules/linkat (Depends-on): Likewise.
30935         * modules/mkancesdirs (Depends-on): Likewise.
30936         * modules/mkdir (Depends-on): Likewise.
30937         * modules/openat (Depends-on): Likewise.
30938         * modules/savewd (Depends-on): Likewise.
30939         * modules/rename (Depends-on): Likewise.
30940         (License): Relax license.
30941         * modules/mkdir-tests (Depends-on): Drop progname.
30942         (Makefile.am): Delete unneeded LDADD.
30943         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30944
30945         dirname: split into dirname-lgpl
30946         * modules/dirname-lgpl: New module.
30947         * modules/dirname (Files): Move library-safe files into
30948         dirname-lgpl.
30949         (Depends-on): Add dirname-lgpl.
30950         (configure.ac): Declare witness.
30951         * modules/double-slash-root (License): Relax license.
30952         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30953         module.
30954         * lib/dirname.c (dir_len, mdir_name): Move...
30955         * lib/dirname-lgpl.c: ...into new file.
30956         * lib/basename.c (last_component, base_len): Move...
30957         * lib/basename-lgpl.c: ...into new file.
30958         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30959         (gl_DIRNAME): Use it.
30960         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30961         Mention new module.
30962         * modules/dirname-tests (Depends-on): Add progname.
30963         * tests/test-dirname.c (program_name): Delete.
30964
30965         mkdir: make safe for libraries
30966         * modules/mkdir (Depends-on): Drop xalloc.
30967         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30968         exit.
30969
30970         tests: avoid some compiler warnings
30971         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30972         literals.
30973         * tests/test-memchr.c (main): Avoid type mismatch.
30974         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30975         * tests/test-base64.c (main): Likewise.
30976         * tests/test-getdelim.c (main): Likewise.
30977         * tests/test-gethostname.c (main): Likewise.
30978         * tests/test-getline.c (main): Likewise.
30979         * tests/test-netinet_in.c (main): Likewise.
30980         * tests/test-select.c (open_server_socket, main): Likewise.
30981         * tests/test-select-stdin.c (main): Likewise.
30982         * tests/test-sockets.c (main): Likewise.
30983         * tests/test-strsignal.c (main): Likewise.
30984         * tests/test-sys_select.c (main): Likewise.
30985         * tests/test-sys_socket.c (main): Likewise.
30986         * tests/test-u64.c (main): Likewise.
30987         * tests/test-xfprintf-posix.c (main): Likewise.
30988         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30989
30990         sockets: avoid compiler warning
30991         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30992
30993         maint: detect usage(1) and other suspicious exits
30994         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30995
30996 2009-10-29  Jim Meyering  <meyering@redhat.com>
30997
30998         timespec: long-to-int truncation could make timespec_cmp malfunction
30999         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
31000         a multiple of 2^32 nanoseconds as no difference.
31001
31002 2009-10-28  Jim Meyering  <meyering@redhat.com>
31003
31004         fprintftime: wrap macro code argument in "do {...} while(0)"
31005         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
31006         cpy macro must be a statement that can be followed by a semicolon.
31007         Now that the else clause contains a comment and is hence longer
31008         than one line, I require curly braces.  That in turn requires
31009         that we wrap this code block in the standard do...while(0).
31010
31011         fprintftime: remove stray semicolon from previous change
31012         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
31013
31014         fprintftime: avoid a warning about ignored fwrite return value
31015         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
31016         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
31017         that is unsafe.
31018         * modules/fprintftime (Depends-on): Add ignore-value.
31019
31020         exclude: avoid an unwarranted warning
31021         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
31022
31023 2009-10-27  Eric Blake  <ebb9@byu.net>
31024
31025         fseek: avoid compilation failure when fflush is replaced
31026         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
31027         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
31028         module is in use.
31029         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
31030         module is not in use; since REPLACE_FSEEK worked otherwise.
31031         (GNULIB_FTELLO): Likewise for ftell.
31032         Reported by Ian Beckwith and others.
31033
31034 2009-10-27  Bruno Haible  <bruno@clisp.org>
31035
31036         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
31037         Reported by Jim Meyering.
31038
31039 2009-10-27  Jim Meyering  <jim@meyering.net>
31040             Bruno Haible  <bruno@clisp.org>
31041
31042         Avoid warning despite dropping the return value of fwrite.
31043         * lib/unicodeio.c: Include ignore-value.h.
31044         (fwrite_success_callback): Explicitly ignore fwrite's return value.
31045         * modules/unicodeio (Depends-on): Add ignore-value.
31046
31047 2009-10-26  Eric Blake  <ebb9@byu.net>
31048
31049         areadlinkat: fix fallback path
31050         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
31051         pointer and zero.
31052
31053 2009-10-22  Pádraig Brady  <P@draigBrady.com>
31054
31055         Use a better IO block size for modern systems
31056         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
31057         * lib/md2.c: Likewise.
31058         * lib/md4.c: Likewise.
31059         * lib/md5.c: Likewise.
31060         * lib/sha1.c: Likewise.
31061         * lib/sha256.c: Likewise.
31062         * lib/sha512.c: Likewise.
31063
31064 2009-10-22  Eric Blake  <ebb9@byu.net>
31065
31066         tests: avoid several compiler warnings
31067         * tests/test-getcwd.c (main): Avoid buffer underflow.
31068         * tests/test-getdate.c (main): String literals are not safe with
31069         putenv, so use setenv.  Declare unused argument.
31070         * modules/getdate-tests (Depends-on): Add setenv.
31071         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
31072         problems with string literals in char *.
31073         * tests/test-hash.c (main): Avoid shadowing declaration.
31074         (insert_new): Treat string literals as char const *.
31075         * tests/test-getopt.h (test_getopt): Likewise.
31076         (getopt_loop): Alter types to minimize casting elsewhere.
31077         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
31078         (test_getopt_long_posix): Likewise.
31079         (do_getopt_long): Add wrapper to minimize casting.
31080         * tests/test-atexit.c (clear_temp_file): Use void.
31081         * tests/test-areadlink-with-size.c (main): Declare unused
31082         arguments.
31083         * tests/test-areadlink.c (main): Likewise.
31084         * tests/test-areadlinkat-with-size.c (main): Likewise.
31085         * tests/test-areadlinkat.c (main): Likewise.
31086         * tests/test-canonicalize-lgpl.c (main): Likewise.
31087         * tests/test-canonicalize.c (main): Likewise.
31088         * tests/test-dirent-safer.c (main): Likewise.
31089         * tests/test-dirname.c (main): Likewise.
31090         * tests/test-dup2.c (main): Likewise.
31091         * tests/test-fchdir.c (main): Likewise.
31092         * tests/test-fcntl-h.c (main): Likewise.
31093         * tests/test-fcntl-safer.c (main): Likewise.
31094         * tests/test-fdopendir.c (main): Likewise.
31095         * tests/test-fdutimensat.c (main): Likewise.
31096         * tests/test-fflush.c (main): Likewise.
31097         * tests/test-filenamecat.c (main): Likewise.
31098         * tests/test-filevercmp.c (main): Likewise.
31099         * tests/test-fopen-safer.c (main): Likewise.
31100         * tests/test-fopen.c (main): Likewise.
31101         * tests/test-fpending.c (main): Likewise.
31102         * tests/test-fpurge.c (main): Likewise.
31103         * tests/test-freading.c (main): Likewise.
31104         * tests/test-fstatat.c (main): Likewise.
31105         * tests/test-fsync.c (main): Likewise.
31106         * tests/test-futimens.c (main): Likewise.
31107         * tests/test-getndelim2.c (main): Likewise.
31108         * tests/test-gettimeofday.c (main): Likewise.
31109         * tests/test-getopt.c (main): Likewise.
31110         * tests/test-i-ring.c (main): Likewise.
31111         * tests/test-inttypes.c (main): Likewise.
31112         * tests/test-link.c (main): Likewise.
31113         * tests/test-lstat.c (main): Likewise.
31114         * tests/test-math.c (main): Likewise.
31115         * tests/test-md5.c (main): Likewise.
31116         * tests/test-memchr2.c (main): Likewise.
31117         * tests/test-memrchr.c (main): Likewise.
31118         * tests/test-mkdir.c (main): Likewise.
31119         * tests/test-mkdirat.c (main): Likewise.
31120         * tests/test-mkfifoat.c (main): Likewise.
31121         * tests/test-open.c (main): Likewise.
31122         * tests/test-openat-safer.c (main): Likewise.
31123         * tests/test-openat.c (main): Likewise.
31124         * tests/test-quotearg.c (main): Likewise.
31125         * tests/test-rawmemchr.c (main): Likewise.
31126         * tests/test-readlink.c (main): Likewise.
31127         * tests/test-remove.c (main): Likewise.
31128         * tests/test-rename.c (main): Likewise.
31129         * tests/test-renameat.c (main): Likewise.
31130         * tests/test-rmdir.c (main): Likewise.
31131         * tests/test-sha1.c (main): Likewise.
31132         * tests/test-signal.c (main): Likewise.
31133         * tests/test-sigaction.c (main): Likewise.
31134         * tests/test-stat.c (main): Likewise.
31135         * tests/test-stat-time.c (main): Likewise.
31136         * tests/test-stddef.c (main): Likewise.
31137         * tests/test-stdint.c (main): Likewise.
31138         * tests/test-stdio.c (main): Likewise.
31139         * tests/test-stdlib.c (main): Likewise.
31140         * tests/test-strchrnul.c (main): Likewise.
31141         * tests/test-strerror.c (main): Likewise.
31142         * tests/test-string.c (main): Likewise.
31143         * tests/test-strtod.c (main): Likewise.
31144         * tests/test-strverscmp.c (main): Likewise.
31145         * tests/test-symlink.c (main): Likewise.
31146         * tests/test-symlinkat.c (main): Likewise.
31147         * tests/test-sys_stat.c (main): Likewise.
31148         * tests/test-sys_time.c (main): Likewise.
31149         * tests/test-time.c (main): Likewise.
31150         * tests/test-unistd.c (main): Likewise.
31151         * tests/test-unlink.c (main): Likewise.
31152         * tests/test-unlinkat.c (main): Likewise.
31153         * tests/test-utimens.c (main): Likewise.
31154         * tests/test-utimensat.c (main): Likewise.
31155         * tests/test-version-etc.c (main): Likewise.
31156         * tests/test-wchar.c (main): Likewise.
31157         * tests/test-wctype.c (main): Likewise.
31158         * tests/test-xprintf-posix.c (main): Likewise.
31159         * tests/test-posixtm.c (main): Likewise.
31160         (STREQ): Delete unused macro.
31161         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
31162         shadowed variables.
31163         * tests/test-memchr.c (main): Likewise.
31164
31165 2009-10-21  Eric Blake  <ebb9@byu.net>
31166
31167         areadlinkat: avoid failure on older glibc
31168         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
31169         rather than mis-comparing 0 against FUNC_RESULT of char*.
31170
31171 2009-10-21  Bruno Haible  <bruno@clisp.org>
31172
31173         * modules/stpncpy (License): Relicense under LGPLv2+.
31174         Reported by David Lutterkort <lutter@redhat.com>.
31175
31176 2009-10-20  Eric Blake  <ebb9@byu.net>
31177
31178         utimensat: work around Solaris 9 bug
31179         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
31180         has trailing slash bugs.
31181         * tests/test-lutimens.h (test_lutimens): Enhance test.
31182         * tests/test-utimens.h (test_utimens): Likewise.
31183         * doc/posix-functions/utime.texi (utime): Enhance documentation.
31184         * doc/posix-functions/utimes.texi (utimes): Likewise.
31185         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31186         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
31187         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
31188         * doc/posix-functions/futimens.texi (futimens): Likewise.
31189
31190         fdutimensat: new module
31191         * modules/fdutimensat: New file.
31192         * lib/fdutimensat.c (fdutimensat): Likewise.
31193         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
31194         * MODULES.html.sh (File system functions): Mention module.
31195         * modules/fdutimensat-tests: New test.
31196         * tests/test-fdutimensat.c: Likewise.
31197
31198         doc: regenerate INSTALL
31199         * doc/INSTALL: Reflect recent autoconf update.
31200         * doc/INSTALL.ISO: Likewise.
31201         * doc/INSTALL.UTF-8: Likewise.
31202
31203 2009-10-20  Pádraig Brady  <P@draigBrady.com>
31204
31205         acl: warn if ACL support is not detected
31206         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
31207
31208 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
31209
31210         * lib/nproc.h: Add extern "C" block for C++.
31211
31212 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
31213             Bruno Haible  <bruno@clisp.org>
31214
31215         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
31216         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
31217         * doc/posix-functions/isalpha.texi: Likewise.
31218         * doc/posix-functions/isblank.texi: Likewise.
31219         * doc/posix-functions/iscntrl.texi: Likewise.
31220         * doc/posix-functions/isdigit.texi: Likewise.
31221         * doc/posix-functions/isgraph.texi: Likewise.
31222         * doc/posix-functions/islower.texi: Likewise.
31223         * doc/posix-functions/isprint.texi: Likewise.
31224         * doc/posix-functions/ispunct.texi: Likewise.
31225         * doc/posix-functions/isspace.texi: Likewise.
31226         * doc/posix-functions/isupper.texi: Likewise.
31227         * doc/posix-functions/isxdigit.texi: Likewise.
31228
31229 2009-10-18  Bruno Haible  <bruno@clisp.org>
31230
31231         Tests for module 'isblank'.
31232         * modules/isblank-tests: New file.
31233         * tests/test-isblank.c: New file.
31234
31235         New module 'isblank'.
31236         * lib/isblank.c: New file.
31237         * m4/isblank.m4: New file.
31238         * modules/isblank: New file.
31239         * doc/posix-functions/isblank.texi: Mention the new module.
31240
31241 2009-10-18  Bruno Haible  <bruno@clisp.org>
31242
31243         New module 'ctype'.
31244         * lib/ctype.in.h: New file.
31245         * m4/ctype.m4: New file.
31246         * modules/ctype: New file.
31247         * doc/posix-headers/ctype.texi: Mention the new module.
31248
31249 2009-10-18  Jim Meyering  <meyering@redhat.com>
31250
31251         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
31252         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
31253         right after its initialization, rather than farther down.
31254         Keeping these in close proximity makes it easier to ensure
31255         that each such variable is initialized.  E.g.,
31256
31257             LIB_CLOCK_GETTIME=
31258             AC_SUBST([LIB_CLOCK_GETTIME])
31259
31260         This change also increments these serial numbers.
31261         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
31262         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31264
31265 2009-10-18  Bruno Haible  <bruno@clisp.org>
31266
31267         Don't let environment variables perturb build.
31268         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
31269         (gl_PREREQ_GETHRXTIME): ... not here.
31270
31271 2009-10-18  Bruno Haible  <bruno@clisp.org>
31272
31273         Avoid symlink attack in localcharset module.
31274         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
31275         (O_NOFOLLOW): Define fallback.
31276         (get_charset_aliases): Don't open the file if it is a symbolic link.
31277         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
31278         gl_FCNTL_H.
31279         (gl_FCNTL_H): Require it.
31280         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
31281         * modules/localcharset (Files): Add m4/fcntl_h.m4.
31282         Reported by Fergal Glynn <fglynn@veracode.com>.
31283
31284 2009-10-18  Bruno Haible  <bruno@clisp.org>
31285
31286         Implement nproc for mingw.
31287         * lib/nproc.c: Include <windows.h>
31288         (num_processors): On native Windows platforms, try GetSystemInfo.
31289
31290 2009-10-18  Bruno Haible  <bruno@clisp.org>
31291
31292         Implement nproc for IRIX.
31293         * lib/nproc.c: Include <sys/sysmp.h>.
31294         (num_processors): On IRIX systems, try sysmp.
31295         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
31296
31297 2009-10-18  Bruno Haible  <bruno@clisp.org>
31298
31299         Implement nproc for HP-UX.
31300         * lib/nproc.c: Include <sys/pstat.h>
31301         (num_processors): On HP-UX systems, try pstat_getdynamic.
31302         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
31303         pstat_getdynamic.
31304
31305 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
31306             Bruno Haible  <bruno@clisp.org>
31307
31308         Implement nproc for NetBSD, OpenBSD.
31309         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
31310         (ARRAY_SIZE): New macro.
31311         (num_processors): On BSD systems, try sysctl of HW_NCPU.
31312         * m4/nproc.m4: New file.
31313         * modules/nproc (Files): Add m4/nproc.m4.
31314         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
31315         (Makefile.am): Instead, augment lib_SOURCES.
31316
31317 2009-10-18  Bruno Haible  <bruno@clisp.org>
31318
31319         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
31320         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
31321         sys/param.h.
31322
31323 2009-10-16  Eric Blake  <ebb9@byu.net>
31324
31325         utimensat: new module
31326         * modules/utimensat: New file.
31327         * lib/utimensat.c (utimensat): Likewise.
31328         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31329         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
31330         so we can work around Linux bugs.
31331         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31332         * modules/sys_stat (Makefile.am): Substitute them.
31333         * lib/sys_stat.in.h (utimensat): Declare it.
31334         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31335         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31336         * modules/utimensat-tests: New test.
31337         * tests/test-utimensat.c: Likewise.
31338
31339         utimens: let lutimens work on non-symlinks
31340         * lib/utimens.c (lutimens): Fall back to utimens rather than
31341         failing with ENOSYS, when file is not a symlink.
31342         (utimens): Reduce redirection.
31343         * tests/test-lutimens.h (test_lutimens): Update test to cover
31344         non-symlinks.
31345         * tests/test-utimens.h (test_utimens): Update test to cover
31346         symlinks.
31347         * tests/test-utimens.c (main): Update caller.
31348
31349         utimens: cache whether utimensat syscall works
31350         * lib/utimens.c (utimensat_works_really): New cache variable.
31351         (fdutimens, lutimens): Use it to avoid failing syscall.
31352
31353         test-stat-time, test-utimens: improve portability
31354         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
31355         ext4 on alpha, and for cygwin.
31356         * tests/test-utimens-common.h: New file.
31357         (nap): Factor delays into single function.
31358         * tests/test-lutimens.h (test_lutimens): Use new header.
31359         * tests/test-futimens.h (test_futimens): Likewise.
31360         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
31361         timestamps to occur from same machine, as was done previously for
31362         test_utimens.
31363         * modules/utimens-tests (Files): Ship new file.
31364         * modules/futimens-tests (Files): Likewise.
31365         Reported in part by Jim Meyering.
31366
31367         sys_stat: sort replacement declarations
31368         * lib/sys_stat.in.h: Sort declarations.
31369         * lib/futimens.c (futimens): Fix typo.
31370
31371 2009-10-15  Jim Meyering  <meyering@redhat.com>
31372
31373         don't let environment settings perturb build
31374         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
31375         could cause a configure-time and/or build-time malfunction.
31376         Typically, a configure-time function-in-library test is performed
31377         via code like this:
31378
31379           LIB_VAR=
31380           AC_SUBST([LIB_VAR])
31381           prefix_saved_LIBS=$LIBS
31382             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
31383                        [test "$ac_cv_search_FUNC" = "none required" ||
31384                         LIB_VAR=$ac_cv_search_FUNC])
31385           LIBS=$prefix_saved_LIBS
31386
31387         However, in each of the files affected by this change, the LIB_VAR=
31388         initialization was omitted.  Thus, when set in the environment, its
31389         value would propagate into generated Makefiles when FUNC is not found
31390         in LIB_NAME.
31391         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
31392         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31394
31395 2009-10-14  Eric Blake  <ebb9@byu.net>
31396
31397         fchdir: avoid infinite recursion in mingw
31398         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
31399         recursing.
31400
31401         test-stat-time: port to mingw
31402         * tests/test-stat-time.c (force_unlink): Return a value.
31403         (test_ctime) [W32]: Fix compilation error.
31404         (nap): Don't call usleep with too large an argument.  Use
31405         force_unlink.
31406         * doc/pastposix-functions/usleep.texi (usleep): Document the
31407         portability issue.
31408
31409 2009-10-13  Jim Meyering  <meyering@redhat.com>
31410
31411         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
31412         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
31413         * modules/pipe-filter-ii: Likewise.
31414         * modules/sys_socket-tests: Likewise.
31415         * modules/tsearch-tests: Likewise.
31416         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
31417         (check): Depend on it.
31418
31419 2009-10-12  Eric Blake  <ebb9@byu.net>
31420
31421         utimens-tests: port to NFS file systems
31422         * tests/test-utimens.h (test_utimens): Refactor utimecmp
31423         comparisons to avoid spurious failures from timestamp drift
31424         between NFS machines.
31425
31426 2009-10-12  Eric Blake  <ebb9@byu.net>
31427
31428         stat-time-tests: minor cleanups
31429         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
31430         * tests/test-stat-time.c (nap): Separate assignment from call.
31431         Suggested by Paolo Bonzini and Bruno Haible.
31432
31433         sys_stat: guarantee struct timespec
31434         * lib/sys_stat.in.h (includes): Always include <time.h>
31435         * modules/sys_stat (Depends-on): Add time.
31436         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
31437         mode_t permission values.
31438         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
31439         get at subsecond timestamps.
31440
31441 2009-10-10  Eric Blake  <ebb9@byu.net>
31442
31443         futimens: new module
31444         * modules/futimens: New file.
31445         * lib/futimens.c (futimens): Likewise.
31446         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
31447         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
31448         we can work around Linux bugs.
31449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31450         * modules/sys_stat (Makefile.am): Substitute them.
31451         * lib/sys_stat.in.h (futimens): Declare it.
31452         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31453         * doc/posix-functions/futimens.texi (futimens): Likewise.
31454         * modules/futimens-tests: New test.
31455         * tests/test-futimens.c: Likewise.
31456
31457         utimens: introduce fdutimens
31458         * lib/utimens.h (fdutimens): New prototype.
31459         * lib/utimens.c (gl_futimens): Move guts...
31460         (fdutimens): ...to new interface.
31461         * tests/test-utimens.c (do_fdutimens): Use it.
31462
31463         utimens: add UTIME_NOW and UTIME_OMIT support
31464         * lib/utimens.c (validate_timespec, update_timespec): New helper
31465         functions.
31466         (gl_futimens, lutimens): Use them.
31467         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
31468         stdbool, sys_stat.
31469         (Link): Mention resulting library dependency.
31470         * modules/utimecmp (Link): Likewise.
31471         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
31472         (Makefile.am): Pick up library dependency.
31473         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
31474         definition.
31475         * tests/test-sys_stat.c: Test the definitions.
31476         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
31477         * NEWS: Document library dependency.
31478
31479         utimecmp: support symlink timestamps
31480         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
31481         hashing when possible.  Use pathconf when available.
31482         (SYSCALL_RESOLUTION): Recognize tighter resolution.
31483         * modules/utimecmp (Depends-on): Add lstat.
31484
31485         utimens: add lutimens interface
31486         * lib/utimens.c (lutimens): New function.
31487         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
31488         * lib/utimens.h (lutimens): Declare new interface.
31489         * tests/test-utimens.c (main): Enhance test.
31490         * tests/test-lutimens.h (test_lutimens): New file.
31491         * modules/utimens-tests (Files): Distribute it.
31492         (Depends-on): Add symlink.
31493         (configure.ac): Check for usleep.
31494
31495         utimens: validate futimens usage
31496         * lib/utimens.c (gl_futimens): Require valid fd up front, using
31497         fewer syscalls on failure later on.  Avoid compiler warning on
31498         mingw.
31499         * modules/utimens (Depends-on): Add dup2.
31500
31501         utimens: add test
31502         * modules/utimens-tests: New test.
31503         * tests/test-utimens.h: New file.
31504         * tests/test-futimens.h: Likewise.
31505         * tests/test-utimens.c: Likewise.
31506
31507         doc: mention timestamp portability issues
31508         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
31509         instead.
31510         * doc/posix-functions/utime.texi (utime): Likewise.
31511         * doc/posix-functions/utimes.texi (utimes): Likewise.
31512         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31513         instead.
31514         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31515         module.
31516         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31517         Mention weakness with symlink timestamps.
31518         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31519         to utimensat/futimens instead.
31520         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31521
31522         test-dup2: enhance test
31523         * tests/test-dup2.c (main): Also check AT_FDCWD.
31524
31525         test-stat-time: avoid more spurious failures
31526         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31527         xfs; and avoid race if the two timestamps cross quantization edge.
31528
31529         relocatable: prefer 'file system' over 'filesystem'
31530         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31531         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31532         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31533         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31534         * lib/relocatable.c (compute_curr_prefix): Likewise.
31535
31536 2009-10-10  Jim Meyering  <meyering@redhat.com>
31537
31538         stat-time-tests: check for the usleep function
31539         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31540
31541 2009-10-10  Bruno Haible  <bruno@clisp.org>
31542
31543         * modules/xnanosleep: Put the Link section after the Include section.
31544
31545 2009-10-09  Eric Blake  <ebb9@byu.net>
31546
31547         dup2: work around FreeBSD 6.1 bug
31548         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31549         * doc/posix-functions/dup2.texi (dup2): Document it.
31550         Reported by Nelson H. F. Beebe and Jim Meyering.
31551
31552         test-stat-time: port to buggy NFS clients
31553         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31554         (test_ctime): Also skip test if mtime and ctime are skewed.
31555
31556         maint: prefer 'file system' over 'filesystem'
31557         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31558         * doc/posix-functions/lstat.texi (lstat): Likewise.
31559         * lib/file-has-acl.c (file_has_acl): Likewise.
31560         * lib/fwriteerror.c [TEST]: Likewise.
31561         * tests/test-areadlink.h (test_areadlink): Likewise.
31562         * tests/test-areadlinkat-with-size.c (main): Likewise.
31563         * tests/test-areadlinkat.c (main): Likewise.
31564         * tests/test-canonicalize-lgpl.c (main): Likewise.
31565         * tests/test-canonicalize.c (main): Likewise.
31566         * tests/test-fstatat.c (main): Likewise.
31567         * tests/test-linkat.c (main): Likewise.
31568         * tests/test-lstat.h (test_lstat_func): Likewise.
31569         * tests/test-mkdir.h (test_mkdir): Likewise.
31570         * tests/test-readlink.h (test_readlink): Likewise.
31571         * tests/test-remove.c (main): Likewise.
31572         * tests/test-rename.h (test_rename): Likewise.
31573         * tests/test-renameat.c (main): Likewise.
31574         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31575         * tests/test-symlink.h (test_symlink): Likewise.
31576         * tests/test-symlinkat.c (main): Likewise.
31577         * tests/test-unlink.h (test_unlink_func): Likewise.
31578         * tests/test-unlinkat.c (main): Likewise.
31579
31580         maint: make realtime library usage explicit
31581         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31582         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31583         * modules/settime (Link): Likewise.
31584         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31585
31586         test-stat-time: speed up execution
31587         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31588         warning on mingw.
31589         (nap): New helper function.
31590         (prepare_test): Use it to reduce sleep time.
31591         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31592         execution.
31593         * modules/stat-time-tests (configure.ac): Check for usleep.
31594
31595 2009-10-09  Jim Meyering  <meyering@redhat.com>
31596
31597         selinux-h: always use getfilecon wrappers
31598         * lib/getfilecon.c: New file.
31599         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31600         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31601         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31602         (fgetfilecon): Provide a stub.
31603         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31604         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31605         file unconditionally.
31606         When <selinux/selinux.h> is found, arrange to use wrappers.
31607         * modules/selinux-h (Files): Add getfilecon.c.
31608         (Makefile.am): Substitute include-next-related bits
31609         into the now-always-generated selinux/selinux.h file.
31610         * doc/glibc-functions/lgetfilecon.texi: New file.
31611         * doc/glibc-functions/fgetfilecon.texi: New file.
31612         * doc/glibc-functions/getfilecon.texi: New file.
31613         * doc/glibc-functions/getfilecon-desc.texi: New file.
31614         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31615         which to pull in the new files.
31616         * MODULES.html.sh (Misc): Add selinux-h.
31617
31618 2009-10-08  Jim Meyering  <meyering@redhat.com>
31619
31620         unistd: fix comment typo
31621         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31622
31623 2009-10-08  Eric Blake  <ebb9@byu.net>
31624
31625         areadlink: use SIZE_MAX consistently
31626         * modules/areadlink (Depends-on): Add stdint.
31627         * modules/areadlink-with-size (Depends-on): Likewise.
31628         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31629         gives NULL; drop sys/types, since unistd gives size_t; and add
31630         stdint for SIZE_MAX.
31631         (SIZE_MAX): Rely on headers.
31632         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31633         and add stdint.
31634         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31635         (SIZE_MAX): Likewise.
31636         (INITIAL_BUF_SIZE): Turn into enum.
31637         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31638
31639 2009-10-08  Jim Meyering  <meyering@redhat.com>
31640
31641         areadlinkat: avoid compilation failure
31642         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31643         Fix typo in comment.
31644
31645 2009-10-07  Eric Blake  <ebb9@byu.net>
31646
31647         areadlinkat-with-size: new module
31648         * modules/areadlinkat-with-size: New module.
31649         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31650         * lib/areadlink.h (areadlinkat): Declare it.
31651         * MODULES.html.sh (File system functions): Mention it.
31652         * modules/areadlinkat-with-size-tests: New test.
31653         * tests/test-areadlinkat-with-size.c: New file.
31654
31655         xreadlinkat: new module
31656         * modules/xreadlinkat: New module.
31657         * lib/xreadlinkat.c (xreadlinkat): New file.
31658         * lib/xreadlink.h (xreadlinkat): Declare it.
31659         * MODULES.html.sh (File system functions): Mention it.
31660
31661         areadlinkat: new module
31662         * lib/at-func.c (FUNC_FAIL): New define.
31663         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31664         * modules/areadlinkat: New module.
31665         * lib/linkat.c (areadlinkat): Move...
31666         * lib/areadlinkat.c (areadlinkat): ...to new file.
31667         * lib/areadlink.h (areadlinkat): Declare it.
31668         * modules/linkat (Depends-on): Add areadlinkat.
31669         * MODULES.html.sh (File system functions): Mention it.
31670         * modules/areadlinkat-tests: New test.
31671         * tests/test-areadlinkat.c: New file.
31672
31673         areadlink, areadlink-with-size: add tests
31674         * modules/areadlink-tests: New test.
31675         * modules/areadlink-with-size-tests: Likewise.
31676         * tests/test-areadlink.h: New file.
31677         * tests/test-areadlink.c: Likewise.
31678         * tests/test-areadlink-with-size.c: Likewise.
31679
31680         maint: minor cleanups
31681         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31682         _UNUSED_PARAMETER_ instead.
31683         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31684         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31685         * modules/linkat-tests (Files): Distribute test-link.h.
31686
31687         openat, utimens: whitespace cleanup
31688         * lib/openat.c: Prefer space throughout, rather than mix of 8
31689         spaces vs. tabs.
31690         * lib/at-func.c: Likewise.
31691         * lib/utimens.c: Likewise.
31692
31693         openat: avoid using wrong fd
31694         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31695         working directory chooses same fd.
31696         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31697
31698         mkdir, mkdirat: fix cygwin 1.5.x bug
31699         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31700         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31701         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31702         bug.
31703         (gl_PREREQ_MKDIR): Delete unused macro.
31704         * modules/mkdir (Files): Track file rename.
31705         (configure.ac): Update macro name.
31706         * modules/openat (Depends-on): Add mkdir.
31707         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31708
31709         mkdir, mkdirat: add tests
31710         * modules/mkdir-tests: New test.
31711         * tests/test-mkdir.h: New file.
31712         * tests/test-mkdir.c: Likewise.
31713         * tests/test-mkdirat.c: Likewise.
31714         * modules/openat-tests (Files): Add new files.
31715         (Makefile.am): Run new test.
31716
31717 2009-10-06  Eric Blake  <ebb9@byu.net>
31718
31719         doc: tweak *at function documentation
31720         * doc/posix-functions/faccessat.texi (faccessat): Mention
31721         known issue with replacement.
31722         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31723         * doc/posix-functions/linkat.texi (linkat): Likewise.
31724         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31725         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31726         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31727         * doc/posix-functions/renameat.texi (renameat): Likewise.
31728         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31729
31730         openat: fix GNU/Hurd bug in unlinkat
31731         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31732         broken.
31733         * doc/posix-functions/unlink.texi (unlink): Document this.
31734         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31735
31736         fdopendir: fix GNU/Hurd bug
31737         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31738         allowing non-directory fds.
31739         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31740         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31741         * modules/dirent (Makefile.am): Substitute it.
31742         * lib/dirent.in.h (fdopendir): Declare replacement.
31743         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31744         * tests/test-fdopendir.c (main): Test something other than
31745         /dev/null, since on Hurd that behaves like a directory.
31746
31747         test-symlink: port to GNU/Hurd
31748         * tests/test-symlink.h (test_symlink): Relax expected errno.
31749
31750         doc: tweak more cygwin information
31751         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31752         now compatible with glibc.
31753         * doc/posix-functions/getopt.texi (getopt): Likewise.
31754
31755         getopt-gnu: add another test
31756         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31757         guarantee behavior relied on by m4.
31758         * tests/test-getopt.c (main): Use it.
31759         * modules/getopt-posix-tests (Depends-on): Add setenv.
31760         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31761
31762         getopt: fix compilation on darwin
31763         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31764         include.
31765         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31766         Reported by Ludovic Courtès.
31767
31768 2009-10-06  Bruno Haible  <bruno@clisp.org>
31769
31770         * modules/size_max (Description): Discourage its use.
31771         Reported by Simon Josefsson.
31772
31773 2009-10-06  Jim Meyering  <meyering@redhat.com>
31774
31775         linkat: avoid compilation failure
31776         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31777
31778 2009-10-05  Eric Blake  <ebb9@byu.net>
31779
31780         linkat: support Linux 2.6.17
31781         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31782         linkat on Linux, but allow cache variable override.
31783         * lib/linkat.c (rpl_linkat): Define override.
31784         * modules/linkat (Depends-on): Add symlinkat.
31785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31786         * modules/unistd (Makefile.am): Substitute it.
31787         * lib/unistd.in.h (linkat): Declare replacement.
31788         Reported by Pádraig Brady.
31789
31790         quotearg: port test to systems with C.UTF-8 locale
31791         * tests/test-quotearg.c (struct result_strings): Add another
31792         member, differentiating between C.ASCII and C.UTF-8 handling.
31793         (compare_strings): Add parameter.
31794         (main): Adjust all callers.
31795
31796         getopt: avoid clash with FreeBSD _getopt_internal
31797         * lib/getopt.in.h (_getopt_internal): Override the name.
31798         * lib/getopt_int.h (includes): Pick up any overrides.
31799         Reported by Reuben Thomas.
31800
31801         hash: allow C89 compilation
31802         * lib/hash.c (check_tuning): Move declaration before statement.
31803         Reported by Reuben Thomas.
31804
31805 2009-10-05  Karl Berry  <karl@gnu.org>
31806
31807         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31808
31809 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31810             Bruno Haible  <bruno@clisp.org>
31811
31812         * lib/uname.c (uname): Use a table-driven algorithm to compute
31813         Windows NT versions.
31814
31815 2009-10-04  Bruno Haible  <bruno@clisp.org>
31816
31817         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31818         program_invocation_short_name.
31819         * modules/progname (configure.ac): Test for presence of
31820         program_invocation_short_name.
31821         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31822
31823 2009-10-04  Bruno Haible  <bruno@clisp.org>
31824
31825         * lib/progname.c (set_program_name): Fix comment.
31826         Reported by Jim Meyering.
31827
31828 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31829             Bruno Haible  <bruno@clisp.org>
31830
31831         * lib/uname.c: Include <string.h>.
31832         (uname): Do only one call to GetVersionEx in the common case.
31833
31834 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31835             Bruno Haible  <bruno@clisp.org>
31836
31837         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31838         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31839         (uname): Add support for Windows CE and various non-x86 CPU types.
31840
31841 2009-10-03  Bruno Haible  <bruno@clisp.org>
31842
31843         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31844         invocation to tests/configure.ac.
31845         Reported by Ian Beckwith <ianb@erislabs.net>.
31846
31847 2009-10-02  Eric Blake  <ebb9@byu.net>
31848
31849         fchdir: avoid compiler warning
31850         * lib/fchdir.c (canonicalize_file_name)
31851         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31852
31853         test-open: support mingw errno values
31854         * tests/test-open.h (test_open): Relax test.
31855         * tests/test-fopen.h (test_fopen): Likewise.
31856         * tests/test-openat-safer.c (main): Likewise.
31857
31858         open: fix opening directory on mingw
31859         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31860
31861         test-open: on GNU/Hurd, /dev/null is a directory
31862         * tests/test-fopen.h (main): Rename...
31863         (test_fopen): ...to this.  Use a guaranteed non-directory when
31864         confirming open behavior on trailing slash.
31865         * tests/test-openat-safer.c (main): Likewise.
31866         * tests/test-open.h (main): Likewise....
31867         (test_open): ...to this.
31868         * tests/test-fopen.c (main): Adjust caller.
31869         * tests/test-fopen-safer.c (main): Likewise.
31870         * tests/test-open.c (main): Likewise.
31871         * tests/test-fcntl-safer.c (main): Likewise.
31872         Reported by Samuel Thibault.
31873
31874         rename, fchdir: don't ignore chdir failure
31875         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31876         * lib/rename.c (rpl_rename) [W32]: Likewise.
31877         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31878         an empty destination directory if source cannot be renamed,
31879         although there is still possibility for failure.
31880         * doc/posix-functions/rename.texi (rename): Document the race.
31881         Reported by Jim Meyering.
31882
31883         maint: cleanup whitespace in recent commits
31884         * lib/rename.c (rpl_rename): Remove tabs.
31885         * tests/test-link.h (test_link): Likewise.
31886         * lib/fchdir.c (get_name): Likewise.
31887         Reported by Jim Meyering.
31888
31889 2009-10-02  Ben Pfaff  <blp@gnu.org>
31890
31891         relocatable-prog-wrapper: Add missing dependency on
31892         double-slash-root.
31893         * modules/relocatable-prog-wrapper: Add dependency.
31894         Reported by Ian Beckwith <ianb@erislabs.net>.
31895
31896 2009-10-02  Eric Blake  <ebb9@byu.net>
31897
31898         renameat: fix Solaris bugs
31899         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31900         needed fixing.
31901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31902         * modules/stdio (Makefile.am): Substitute it.
31903         * lib/stdio.in.h (renameat): Declare replacement.
31904         * lib/renameat.c (rpl_renameat): Implement fix.
31905
31906         renameat: new module
31907         * modules/renameat: New file.
31908         * lib/renameat.c (renameat): Likewise.
31909         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31911         * modules/stdio (Makefile.am): Substitute them.
31912         * lib/stdio.in.h (renameat): Declare it.
31913         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31914         * doc/posix-functions/renameat.texi (renameat): Likewise.
31915         * modules/renameat-tests: New test.
31916         * tests/test-renameat.c: Likewise.
31917
31918         rename: fix mingw bugs
31919         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31920         directory overwrite bugs.
31921
31922         rename: fix another cygwin 1.5 bug
31923         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31924         checks.
31925         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31926         unnecessary cygwin workarounds.  Also work around bug with moving
31927         full directory onto an empty one.
31928         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31929
31930         rename-dest-slash: merge into rename module
31931         * modules/rename-dest-slash (Status): Mark obsolete.
31932         (Depends-on): Add rename.
31933         (Files): Let rename do it all.
31934         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31935         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31936         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31937         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31938         * lib/rename.c (rpl_rename): Update comments.
31939
31940         rename: fix cygwin 1.5.x bugs
31941         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31942         * lib/rename.c (rpl_rename): Work around them.
31943         * modules/rename (Depends-on): Add same-inode.
31944
31945         rename: fix Solaris 10 bug
31946         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31947         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31948         was the only bug.
31949
31950         rename: fix Solaris 9 bug
31951         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31952         on non-directory.  Avoid calling exit.
31953         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31954         strdup.
31955         * modules/rename-tests (Depends-on): Drop lstat.
31956         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31957         (gl_PREREQ_RENAME): Delete unused macro.
31958
31959         rename-dest-slash: fix NetBSD bug
31960         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31961         links.
31962         * modules/rename-dest-slash (Depends-on): Add same-inode.
31963
31964         rename-tests: new test, exposes several platform bugs
31965         * modules/rename-tests: New file.
31966         * tests/test-rename.h: Likewise.
31967         * tests/test-rename.c: Likewise.
31968         * doc/posix-functions/rename.texi (rename): Improve documentation,
31969         including bugs that will eventually be fixed in gnulib.
31970
31971 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31972
31973         * lib/uname.c: Include <stdlib.h>
31974         (uname): Assume version info is available.
31975
31976 2009-10-02  Jim Meyering  <meyering@redhat.com>
31977
31978         gnu-web-doc-update: correct --help output
31979         * build-aux/gnu-web-doc-update: Make --help output relevant.
31980
31981         gnu-web-doc-update: add standard options
31982         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31983
31984         gnu-web-doc-update: New module.
31985         Use this script to automatically update the on-line web documentation
31986         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31987         * modules/gnu-web-doc-update: New file, from coreutils.
31988         * build-aux/gnu-web-doc-update: New script.
31989
31990 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31991
31992         link: LoadLibrary is not needed.
31993         * lib/link.c: Use GetModuleHandle.
31994
31995 2009-10-01  Eric Blake  <ebb9@byu.net>
31996
31997         getopt: bump serial number
31998         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31999         change.
32000
32001         tests: tighten link, rmdir, and remove tests
32002         * tests/test-link.h (includes): No need to use <config.h> here.
32003         Clean up if directory hard link was created, otherwise test for
32004         trailing '.'.
32005         * tests/test-linkat.c (main): Simplify.
32006         * tests/test-remove.c (main): Enhance test for trailing '.'.
32007         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32008
32009 2009-10-01  Jim Meyering  <meyering@redhat.com>
32010
32011         maint.mk: requiring "make major" was annoying, for a "minor" release.
32012         What is intended is "stable", to contrast with alpha and beta,
32013         so require "make stable", not "make major".
32014         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
32015         (get_tool_versions): Likewise.
32016         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
32017
32018 2009-09-30  Ben Pfaff  <blp@gnu.org>
32019
32020         Fix broken build of replacement for Windows tmpfile().
32021         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
32022         flags argument added along with the 'mkostemp' module.
32023
32024 2009-09-28  Bruno Haible  <bruno@clisp.org>
32025
32026         Avoid identifier clash with POSIX function 'remove' defined as a macro.
32027         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
32028         to 'remove_elt'.
32029         (gl_list_remove): Update.
32030         * lib/gl_list.c (gl_list_remove): Update.
32031         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
32032         to 'remove_elt'.
32033         (gl_oset_remove): Update.
32034         * lib/gl_list.c (gl_oset_remove): Update.
32035         Reported by Eric Blake.
32036
32037 2009-09-28  Eric Blake  <ebb9@byu.net>
32038
32039         doc: mention yet more cygwin 1.7 status
32040         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
32041         cygwin.
32042         * doc/glibc-functions/execvpe.texi (execvpe): New file.
32043         * doc/gnulib.texi (Glibc unistd.h): Mention it.
32044
32045         argp: fix test failure
32046         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
32047         that are not upper-case.  Pass correct range to tolower.
32048
32049 2009-09-27  Jim Meyering  <meyering@redhat.com>
32050
32051         test-yesno: work around sparc-dash here-document infelicity
32052         Without this change, the literal \177 byte in a here document
32053         would make dash 0.5.5.1-3 access uninitialized memory.
32054         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
32055         Instead, use a marker, "@", and filter through tr to create the desired
32056         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
32057
32058 2009-09-27  Bruno Haible  <bruno@clisp.org>
32059
32060         Disable untested support for new flavours of ACLs on AIX.
32061         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
32062         progress.
32063         * lib/set-mode-acl.c (qset_acl): Likewise.
32064
32065 2008-12-07  Bruno Haible  <bruno@clisp.org>
32066
32067         Add support for new flavours of ACLs on AIX. (Untested.)
32068         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
32069         (file_has_acl): Add support for newer AIX.
32070         * lib/set-mode-acl.c (qset_acl): Likewise.
32071         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
32072         Rainer Tammer <tammer@tammer.net>.
32073
32074 2009-09-26  Eric Blake  <ebb9@byu.net>
32075
32076         argp: fix compilation of getopt
32077         * lib/getopt.in.h (includes): Use different guard than glibc.
32078         Reported by Sergey Poznyakoff.
32079
32080         doc: mention more cygwin 1.7 status
32081         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
32082         bug.
32083         * doc/posix-functions/execl.texi (execl): Likewise.
32084         * doc/posix-functions/execle.texi (execle): Likewise.
32085         * doc/posix-functions/execlp.texi (execlp): Likewise.
32086         * doc/posix-functions/execv.texi (execv): Likewise.
32087         * doc/posix-functions/execve.texi (execve): Likewise.
32088         * doc/posix-functions/execvp.texi (execvp): Likewise.
32089         * doc/glibc-functions/canonicalize_file_name.texi
32090         (canonicalize_file_name): Cygwin 1.7 now provides this.
32091         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
32092         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
32093         on AT_SYMLINK_NOFOLLOW.
32094
32095 2009-09-24  Eric Blake  <ebb9@byu.net>
32096
32097         test-linkat: make test more robust
32098         * tests/test-linkat.c (main): Avoid collision with EEXIST.
32099
32100         getopt: fix inclusion guards for cygwin
32101         * modules/getopt-posix (Depends-on): Add include-next.
32102         (Makefile.am): Substitute more items in replacement header.
32103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
32104         <getopt.h>.
32105         * lib/getopt.in.h (includes): Use split inclusion guard, and
32106         prefer <getopt.h> over include <unistd.h> when one is present.
32107         (option): Also override name of 'struct option'.
32108
32109         same-inode: revert prior change; it is not yet ready
32110         * NEWS: Undo mention of this change.
32111         * lib/same-inode.h (same-inode.h): Undo tri-state change.
32112         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32113         * lib/cycle-check.c (cycle_check): Likewise.
32114         * lib/same.c (same_name): Likewise.
32115         * lib/at-func2.c (at_func2): Likewise.
32116
32117 2009-09-23  Eric Blake  <ebb9@byu.net>
32118
32119         linkat: new module
32120         * modules/linkat: New file.
32121         * lib/at-func2.c (at_func2): Likewise.
32122         * lib/linkat.c (linkat): Likewise.
32123         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
32124         * lib/openat-priv.h (at_func2): Add declaration.
32125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32126         * modules/unistd (Makefile.am): Substitute them.
32127         * lib/unistd.in.h (linkat): Declare it.
32128         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32129         * doc/posix-functions/linkat.texi (linkat): Likewise.
32130         * doc/posix-functions/link.texi (link): Tweak wording.
32131         * tests/test-link.c (main): Move guts...
32132         * tests/test-link.h (test_link): ...into new file.
32133         * modules/linkat-tests: New test.
32134         * tests/test-linkat.c: Likewise.
32135         * modules/link-tests (Files): Ship new file.
32136         (Depends-on): Add stdbool.
32137
32138         dirname: add library-safe mdir_name
32139         * lib/dirname.h (mdir_name): New prototype.
32140         * lib/dirname.c (dir_name): Move guts...
32141         (mdir_name): ...to new function that avoids xalloc_die.
32142
32143         fchdir: another mingw fix
32144         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
32145         * lib/fchdir.c (get_name): New helper method; skips canonicalize
32146         on mingw (where it has not yet been ported), and make it optional
32147         elsewhere.
32148         (_gl_register_fd): Use it.
32149
32150         same-inode: make SAME_INODE tri-state, to port to mingw
32151         * NEWS: Mention this change.
32152         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
32153         st_ino always being 0.
32154         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32155         * lib/cycle-check.c (cycle_check): Likewise.
32156         * lib/same.c (same_name): Likewise.
32157
32158         lstat: avoid mingw compilation error
32159         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
32160         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
32161         lstat ourselves.
32162         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
32163         was adequate.
32164         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
32165         the checks for lstat.
32166         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
32167
32168         link: fix test failure on Solaris 9
32169         * lib/link.c (rpl_link): Don't assume link will catch bogus
32170         trailing slash on source.
32171
32172         test-symlinkat: enhance test
32173         * tests/test-readlink.c (main): Move guts...
32174         * tests/test-readlink.h (test_readlink): ...into new file.
32175         * tests/test-symlink.c (main): Move guts...
32176         * tests/test-symlink.h (test_symlink): ...into new file.
32177         * tests/test-symlinkat.c (main): Use new files for further
32178         coverage.
32179         (do_symlink, do_readlink): New helper functions.
32180         * modules/symlink-tests (Files): Ship new file.
32181         (Depends-on): Add stdbool.
32182         * modules/readlink-tests (Files): Ship new file.
32183         (Depends-on): Add stdbool.
32184         * modules/symlinkat-tests (Files): Use new files.
32185
32186 2009-09-23  Eric Blake  <ebb9@byu.net>
32187
32188         readlink: document portability issue with symlink length
32189         * doc/posix-functions/lstat.texi (lstat): Mention that some file
32190         systems have bogus st_size on symlinks, and mention the
32191         areadlink-with-size module.
32192         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32193         * doc/posix-functions/readlink.texi (readlink): Mention the
32194         areadlink module, and ERANGE failure.
32195         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32196         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
32197
32198         readlink: fix Solaris 9 bug with trailing slash
32199         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
32200         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
32201         * doc/posix-functions/readlink.texi (readlink): Document this.
32202         * modules/readlink-tests: New test.
32203         * tests/test-readlink.c: Likewise.
32204
32205         readlink: fix cygwin 1.5.x bug with return type
32206         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
32207         * lib/unistd.in.h (readlink): Use ssize_t.
32208         * lib/readlink.c (readlink): Likewise.
32209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32210         * modules/unistd (Makefile.am): Substitute it.
32211         * lib/unistd.in.h (readlink): Declare replacement.
32212         * doc/posix-functions/readlink.texi (readlink): Document this.
32213
32214         symlink: use throughout gnulib
32215         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
32216         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
32217         symlink is not used.
32218         * modules/symlinkat (Depends-on): Add symlink.
32219         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32220         * modules/canonicalize-tests (Depends-on): Likewise.
32221         * modules/lstat-tests (Depends-on): Likewise.
32222         * modules/openat-tests (Depends-on): Likewise.
32223         * modules/remove-tests (Depends-on): Likewise.
32224         * modules/rmdir-tests (Depends-on): Likewise.
32225         * modules/unlink-tests (Depends-on): Likewise.
32226         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
32227         * tests/test-canonicalize.c (symlink): Likewise.
32228         * tests/test-fstatat.c (symlink): Likewise.
32229         * tests/test-lstat.c (symlink): Likewise.
32230         * tests/test-remove.c (symlink): Likewise.
32231         * tests/test-rmdir.c (symlink): Likewise.
32232         * tests/test-unlink.c (symlink): Likewise.
32233         * tests/test-unlinkat.c (symlink): Likewise.
32234
32235         symlink: new module, for Solaris 9 bug
32236         * modules/symlink: New file.
32237         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
32238         * lib/symlink.c: Likewise.
32239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32240         * modules/unistd (Makefile.am): Substitute them.
32241         * lib/unistd.in.h (symlink): Declare replacement.
32242         * MODULES.html.sh (File system functions): Mention it.
32243         * doc/posix-functions/symlink.texi (symlink): Likewise.
32244         * modules/symlink-tests: New test.
32245         * tests/test-symlink.c: Likewise.
32246
32247 2009-09-23  Bruno Haible  <bruno@clisp.org>
32248
32249         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
32250         when needed.
32251         Test case: gnulib-tool --import --with-tests atexit inttypes.
32252         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
32253
32254 2009-09-23  Bruno Haible  <bruno@clisp.org>
32255
32256         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32257         subcommand, not in a subshell.
32258
32259 2009-09-22  Eric Blake  <ebb9@byu.net>
32260
32261         unistd: sort replacement declarations
32262         * lib/unistd.in.h: Sort declarations.
32263
32264         open, openat: minor optimization
32265         * lib/open.c (open): If open succeeded, len is non-zero.
32266         * lib/openat.c (rpl_openat): Likewise.
32267
32268         link-follow: ensure correct result
32269         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
32270         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
32271         distinguish between possible failures.
32272
32273 2009-09-21  Eric Blake  <ebb9@byu.net>
32274
32275         fts: avoid compiler warning
32276         * lib/fts.c (dirent_inode_sort_may_be_useful)
32277         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
32278
32279 2009-09-19  Bruno Haible  <bruno@clisp.org>
32280
32281         * lib/progreloc.c (canonicalize_file_name): New declaration.
32282
32283 2009-09-19  Eric Blake  <ebb9@byu.net>
32284
32285         link: fix quoting
32286         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
32287
32288         openat: fix openat bugs on Solaris 9
32289         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
32290         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
32291         * modules/openat (Depends-on): Add open.
32292         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
32293         * modules/fcntl-h (Makefile.am): Substitute it.
32294         * lib/fcntl.in.h (openat): Declare replacement.
32295         * doc/posix-functions/openat.texi (openat): Document this.
32296
32297         openat: move fstatat and unlinkat into correct files
32298         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
32299         compiled.
32300         * lib/openat.c (fstatat, unlinkat): Move...
32301         * lib/fstatat.c (fstatat): ...into correct files.
32302         * lib/unlinkat.c (unlinkat): Likewise.
32303
32304         openat: fix unlinkat bugs on Solaris 9
32305         * lib/unlinkat.c (unlinkat): New file.
32306         * modules/openat (Depends-on): Add unlink.
32307         (Files): Distribute it.
32308         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
32309         trailing slash behavior is broken.
32310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32311         * modules/unistd (Makefile.am): Substitute it.
32312         * lib/unistd.in.h (unlinkat): Declare replacement.
32313         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
32314
32315         openat: fix fstatat bugs on Solaris 9
32316         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
32317         stat.
32318         * doc/posix-functions/fstatat.texi (fstatat): Document this.
32319
32320         test-unlinkat: enhance test, to expose Solaris 9 bug
32321         * tests/test-unlink.c (main): Factor guts...
32322         * tests/test-unlink.h (test_rmdir_func): ...into new file.
32323         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
32324         * tests/test-rmdir.c (main): Adjust caller.
32325         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
32326         (unlinker): New helper function.
32327         (rmdirat): Enhance check.
32328         * modules/rmdir-tests (Depends-on): Add stdbool.
32329         * modules/unlink-tests (Depends-on): Likewise.
32330         (Files): Add test-unlink.h.
32331         * modules/openat-tests (Files): Likewise.
32332         (Depends-on): Add unlinkdir.
32333
32334         test-fstatat: new test, to expose Solaris 9 bugs
32335         * tests/test-stat.c (main): Factor guts...
32336         * tests/test-stat.h (test_stat_func): ...into new file.
32337         * tests/test-lstat.c (main): Factor guts...
32338         * tests/test-lstat.h (test_lstat_func): ...into new file.
32339         * tests/test-fstatat.c: New file.
32340         * modules/stat-tests (Files): Add test-stat.h.
32341         * modules/lstat-tests (Files): Add test-lstat.h.
32342         (Depends-on): Add stdbool.
32343         * modules/openat-tests (Depends-on): Add pathmax.
32344         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
32345         (Makefile.am): Run new test.
32346
32347         remove: new module, for mingw and Solaris 9 bugs
32348         * modules/remove: New file.
32349         * lib/remove.c: Likewise.
32350         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
32351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32352         * modules/stdio (Makefile.am): Use them.
32353         * lib/stdio.in.h (remove): Declare replacement.
32354         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32355         * doc/posix-functions/remove.texi (remove): Likewise.
32356         * modules/remove-tests: New test.
32357         * tests/test-remove.c: Likewise.
32358
32359         unlink: new module, for Solaris 9 bug
32360         * modules/unlink: New file.
32361         * lib/unlink.c: Likewise.
32362         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
32363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32364         * modules/unistd (Makefile.am): Use them.
32365         * lib/unistd.in.h (stat): Declare replacement.
32366         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32367         * doc/posix-functions/unlink.texi (unlink): Likewise.
32368         * modules/unlink-tests: New test.
32369         * tests/test-unlink.c: Likewise.
32370
32371         lstat: fix Solaris 9 bug
32372         * lib/lstat.c (lstat): Also check for trailing slash on
32373         non-symlink, non-directories.  Use stat module to simplify logic.
32374         * doc/posix-functions/lstat.texi (lstat): Document it.
32375         * modules/lstat-tests (Depends-on): Add errno, same-inode.
32376         (configure.ac): Check for symlink.
32377         * tests/test-lstat.c (main): Add more tests.
32378
32379         stat: add as dependency to other modules
32380         * modules/chown (Depends-on): Add stat.
32381         * modules/euidaccess (Depends-on): Likewise.
32382         * modules/fchdir (Depends-on): Likewise.
32383         * modules/isdir (Depends-on): Likewise.
32384         * modules/link (Depends-on): Likewise.
32385         * modules/lstat (Depends-on): Likewise.
32386         * modules/mkdir-p (Depends-on): Likewise.
32387         * modules/modechange (Depends-on): Likewise.
32388         * modules/open (Depends-on): Likewise.
32389         * modules/readlink (Depends-on): Likewise.
32390         * modules/same (Depends-on): Likewise.
32391
32392         stat: fix Solaris 9 bug
32393         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
32394         slash.
32395         * lib/stat.c (rpl_stat): Work around it.
32396         * doc/posix-functions/stat.texi (stat): Update documentation.
32397
32398         stat: new module, for mingw bug
32399         * modules/stat: New file.
32400         * lib/stat.c: Likewise.
32401         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32402         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32403         * modules/sys_stat (Makefile.am): Use them.
32404         * lib/sys_stat.in.h (stat): Declare replacement.
32405         * lib/openat.c (fstatat): Deal with lstat and stat being function
32406         macros.
32407         * modules/openat (Depends-on): Add inline.
32408         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32409         * doc/posix-functions/stat.texi (stat): Likewise.
32410         * modules/stat-tests: New test.
32411         * tests/test-stat.c: Likewise.
32412
32413 2009-09-19  Jim Meyering  <meyering@redhat.com>
32414
32415         syntax-check: detect unnecessary inclusion of canonicalize.h
32416         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
32417
32418 2009-09-19  Eric Blake  <ebb9@byu.net>
32419
32420         canonicalize-lgpl: adjust clients to use correct header
32421         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32422         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
32423         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
32424         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
32425         * lib/progreloc.c (includes): Likewise.
32426
32427 2009-09-19  Jim Meyering  <meyering@redhat.com>
32428
32429         test-posixtm.c: correct a comment
32430         * tests/test-posixtm.c: Correct first-line comment.
32431         Spotted by Eric Blake.
32432
32433 2009-09-16  Jim Meyering  <meyering@redhat.com>
32434
32435         posixtm-tests: make T const-correct; add a test case
32436         * tests/test-posixtm.c (T): Declare const.
32437         Add a test for -(2^31+1).
32438         Remove useless can-succeed-only-in-2002 test.
32439
32440         posixtm-tests: adjust the sole failing test
32441         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
32442         expected output matches what mktime now produces.  Cross-checked via
32443         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
32444
32445         posixtm: move #ifdef'd tests into a new module
32446         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
32447         * tests/test-posixtm.c: ... this new file.
32448         * modules/posixtm-tests: New module.
32449
32450 2009-09-19  Eric Blake  <ebb9@byu.net>
32451
32452         openat: simplify use of at-func.c
32453         * lib/at-func.c (includes): Include prerequisites here, to
32454         simplify requirements on client files.
32455         * lib/openat-priv.h: Add double-inclusion guard.
32456         * lib/faccessat.c (includes): Simplify.
32457         * lib/fchmodat.c (includes): Likewise.
32458         * lib/fchownat.c (includes): Likewise.
32459         * lib/mkdirat.c (includes): Likewise.
32460         * lib/mkfifoat.c (includes): Likewise.
32461         * lib/symlinkat.c (includes): Likewise.
32462
32463         openat: allow return of fd 0
32464         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
32465         * modules/save-cwd (Depends-on): Replace fcntl-safer with
32466         unistd-safer.
32467         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
32468         <fcntl.h>; this module does not leak fds.
32469         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
32470         must be allowed to return 0, leaving openat_safer to add the
32471         safety.
32472         (openat_permissive): Avoid writing to just-opened fd 2 if
32473         restoring the current directory fails.
32474         * lib/openat-die.c (openat_restore_fail): Add comment.
32475         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
32476         (save_cwd): Guarantee safe fd, but without use of open_safer.
32477         * tests/test-openat.c: New test.
32478         * modules/openat-tests (Files, Makefile.am): Distribute and build
32479         new file.
32480
32481         relocatable-prog-wrapper: fix build
32482         * modules/relocatable-prog-wrapper (Files): Update name of
32483         canonicalize m4 file, broken on 2009-09-17.
32484         Reported by emad hajjar <aleppos@hotmail.com>.
32485
32486 2009-09-19  Bruno Haible  <bruno@clisp.org>
32487
32488         * lib/safe-alloc.h: Use the standard header with GPL copyright.
32489         * lib/safe-alloc.c: Likewise.
32490         Reported by Ian Beckwith <ianb@erislabs.net>.
32491
32492 2009-09-18  Bruno Haible  <bruno@clisp.org>
32493
32494         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
32495         Reported by <erobles@sensacd.com.mx>.
32496
32497 2009-09-17  Eric Blake  <ebb9@byu.net>
32498
32499         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
32500         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
32501         slashes when checking if last component is missing.
32502         * tests/test-canonicalize.c (main): Test this.
32503
32504         canonicalize, canonicalize-lgpl: honor // if distinct from /
32505         * modules/canonicalize (Files): Add double-slash-root.m4.
32506         * modules/canonicalize-lgpl (Files): Likewise.
32507         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32508         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
32509         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
32510         fallback definition.
32511         (canonicalize_filename_mode): Use it to protect //.
32512         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32513         (__realpath): Likewise.
32514         * tests/test-canonicalize.c (main): Test this.
32515         * tests/test-canonicalize-lgpl.c (main): Likewise.
32516         * modules/canonicalize-tests (Depends-on): Add same-inode.
32517         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32518
32519         canonicalize-lgpl: fix glibc bug with trailing slash
32520         * m4/canonicalize-lgpl.m4: Move contents...
32521         * m4/canonicalize.m4: ...here.
32522         (gl_CANONICALIZE_LGPL): Factor realpath check...
32523         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32524         glibc 2.3.5 bug, fixed 2005-04-27.
32525         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32526         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32527         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32528         * modules/canonicalize-lgpl (Files): Manage file rename.
32529         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32530         * modules/stdlib (Makefile.am): Substitute witness.
32531         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32532         is needed.
32533         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32534         replacement is required.
32535         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32536         * doc/glibc-functions/canonicalize_file_name.texi
32537         (canonicalize_file_name): Document this.
32538         * doc/posix-functions/realpath.texi (realpath): Likewise.
32539
32540         canonicalize-lgpl: reject non-directory with trailing slash
32541         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32542         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32543         catches failures in glibc 2.3.5.
32544         * tests/test-canonicalize.c (main): Likewise.
32545
32546         canonicalize-lgpl: use native realpath if it works
32547         * lib/canonicalize-lgpl.c (realpath): Guard with
32548         FUNC_REALPATH_WORKS.
32549         * lib/stdlib.in.h (realpath): Make declaration optional based on
32550         HAVE_REALPATH.
32551         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32552         native realpath works.
32553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32554         * modules/stdlib (Makefile.am): Substitute witness.
32555
32556         canonicalize, canonicalize-lgpl: use <stdlib.h>
32557         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32558         (Include): Mention <stdlib.h>.
32559         (configure.ac): Mention functions we provide.
32560         * modules/canonicalize (configure.ac): Likewise.
32561         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32562         realpath if canonicalize_file_name is missing.
32563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32564         * modules/stdlib (Makefile.am): Substitute witnesses.
32565         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32566         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32567         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32568         * NEWS: Document this.
32569         * doc/glibc-functions/canonicalize_file_name.texi
32570         (canonicalize_file_name): Likewise.
32571         * doc/posix-functions/realpath.texi (realpath): Likewise.
32572         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32573
32574         test-canonicalize: consolidate into single C program
32575         * tests/test-canonicalize.sh: Delete; move setup into...
32576         * tests/test-canonicalize.c (main): ...the program, making it
32577         easier to run in debugger.  Add some tests.
32578         * modules/canonicalize-tests (Files): Remove unused file.
32579         (Depends-on): Add progname.
32580         (configure.ac, Makefile.am): Simplify.
32581
32582         test-canonicalize-lgpl: consolidate into single C program
32583         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32584         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32585         easier to run in debugger.  Add some tests.
32586         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32587         (configure.ac, Makefile.am): Simplify.
32588
32589         canonicalize: avoid resolvepath
32590         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32591         unnecessary checks.
32592         * lib/canonicalize.c (includes): Simplify.
32593         (canonicalize_file_name): Drop resolvepath implementation.
32594         * modules/canonicalize (Depends-on): Drop filenamecat.
32595
32596         canonicalize: don't lose errno
32597         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32598         over calls to free.
32599
32600         canonicalize: simplify errno handling
32601         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32602         assignment.
32603
32604         canonicalize, canonicalize-lgpl: update module dependencies
32605         * modules/canonicalize (Depends-on): Add extensions, lstat,
32606         pathmax, stdlib.
32607         (Files): Drop pathmax.h.
32608         (configure.ac): Adjust macro name.
32609         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32610         lstat, stdlib, sys_stat.
32611         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32612         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32613         extensions.
32614         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32615         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32616         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32617         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32618         declaration, if available.
32619         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32620         we can rely on the readlink module.
32621         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32622         (includes): Use <unistd.h> unconditionally.
32623
32624 2009-09-17  Eric Blake  <ebb9@byu.net>
32625
32626         maint: make Include sections of modules consistent
32627         * modules/alloca: Use only header name; no need to list #include.
32628         * modules/alloca-opt: Likewise.
32629         * modules/arpa_inet: Likewise.
32630         * modules/canon-host: Likewise.
32631         * modules/configmake: Likewise.
32632         * modules/dirent: Likewise.
32633         * modules/eealloc: Likewise.
32634         * modules/environ: Likewise.
32635         * modules/fchdir: Likewise.
32636         * modules/fcntl: Likewise.
32637         * modules/fcntl-h: Likewise.
32638         * modules/gethrxtime: Likewise.
32639         * modules/gettime: Likewise.
32640         * modules/ignore-value: Likewise.
32641         * modules/inet_ntop: Likewise.
32642         * modules/inet_pton: Likewise.
32643         * modules/inttypes: Likewise.
32644         * modules/isnand-nolibm: Likewise.
32645         * modules/isnanf-nolibm: Likewise.
32646         * modules/mbchar: Likewise.
32647         * modules/mbfile: Likewise.
32648         * modules/mbiter: Likewise.
32649         * modules/mbuiter: Likewise.
32650         * modules/netdb: Likewise.
32651         * modules/netinet_in: Likewise.
32652         * modules/nproc: Likewise.
32653         * modules/pagealign_alloc: Likewise.
32654         * modules/poll: Likewise.
32655         * modules/printf-frexp: Likewise.
32656         * modules/pthread: Likewise.
32657         * modules/putenv: Likewise.
32658         * modules/random_r: Likewise.
32659         * modules/relocatable-prog: Likewise.
32660         * modules/search: Likewise.
32661         * modules/select: Likewise.
32662         * modules/selinux-h: Likewise.
32663         * modules/settime: Likewise.
32664         * modules/signal: Likewise.
32665         * modules/size_max: Likewise.
32666         * modules/socklen: Likewise.
32667         * modules/ssize_t: Likewise.
32668         * modules/stdarg: Likewise.
32669         * modules/stdbool: Likewise.
32670         * modules/stddef: Likewise.
32671         * modules/stdint: Likewise.
32672         * modules/stdio: Likewise.
32673         * modules/stdlib: Likewise.
32674         * modules/string: Likewise.
32675         * modules/strings: Likewise.
32676         * modules/sys_file: Likewise.
32677         * modules/sys_ioctl: Likewise.
32678         * modules/sys_select: Likewise.
32679         * modules/sys_socket: Likewise.
32680         * modules/sys_stat: Likewise.
32681         * modules/sys_time: Likewise.
32682         * modules/sys_times: Likewise.
32683         * modules/sys_utsname: Likewise.
32684         * modules/sys_wait: Likewise.
32685         * modules/sysexits: Likewise.
32686         * modules/time: Likewise.
32687         * modules/times: Likewise.
32688         * modules/tmpfile: Likewise.
32689         * modules/trim: Likewise.
32690         * modules/unistd: Likewise.
32691         * modules/wchar: Likewise.
32692         * modules/wctype: Likewise.
32693
32694 2009-09-17  Bruno Haible  <bruno@clisp.org>
32695
32696         Make getdate.y compile on QNX and NetBSD 5 / i386.
32697         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32698         TIME_T_FITS_IN_LONG_INT.
32699         * lib/getdate.y (long_time_t): New type.
32700         (relative_time): Change type of 'seconds' field to long_time_t.
32701         (get_date): Update types of local variables. Check against overflow
32702         during conversion from long_time_t to time_t.
32703         Reported by Matt Kraai <kraai@ftbfs.org>
32704         and Hasso Tepper <hasso@netbsd.org>.
32705
32706 2009-09-17  Bruno Haible  <bruno@clisp.org>
32707
32708         * modules/COPYING: Update copyright years.
32709         * modules/README: Likeiwse.
32710         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32711         Reported by Ian Beckwith <ianb@erislabs.net>.
32712
32713 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32714
32715         * users.txt: Update references for gnuit package.
32716
32717 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32718
32719         * m4/getdelim.m4: Fix typo in copyright line.
32720
32721 2009-09-17  Bruno Haible  <bruno@clisp.org>
32722
32723         * lib/atoll.c: Use the standard header with GPL copyright.
32724         * lib/argz.in.h: Likewise.
32725         * lib/glob.c: Likewise.
32726         * lib/glob-libc.h: Likewise.
32727         * lib/random_r.c: Likewise.
32728         * lib/siglist.h: Likewise.
32729         * lib/strsignal.c: Likewise.
32730         Reported by Ian Beckwith <ianb@erislabs.net>.
32731
32732 2009-09-17  Eric Blake  <ebb9@byu.net>
32733
32734         rmdir: ensure correct dependency order
32735         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32736
32737 2009-09-17  Bruno Haible  <bruno@clisp.org>
32738
32739         Disable assertion that fails on NetBSD 5 / i386.
32740         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32741         Reported by Sam Steingold <sds@gnu.org>
32742         and Hasso Tepper <hasso@netbsd.org>.
32743
32744 2009-09-16  Eric Blake  <ebb9@byu.net>
32745
32746         unlinkdir: port to mingw
32747         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32748         on which no one can unlink a directory.
32749
32750         stdlib: sort witness names
32751         * modules/stdlib (Makefile.am): Sort replacements.
32752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32753         * lib/stdlib.in.h: Likewise.
32754
32755         parse-duration-tests: avoid link failure
32756         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32757         LIBINTL.
32758         Reported by Tom G. Christensen.
32759
32760         openat-tests: ensure unlinkat behaves like rmdir
32761         * tests/test-rmdir.c (main): Factor guts...
32762         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32763         * modules/rmdir-tests (Files): Ship new file.
32764         * modules/openat-tests: New test.
32765         * tests/test-unlinkat.c: Likewise.
32766
32767         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32768         * modules/rmdir-errno (Status, Notice): Now obsolete.
32769
32770         rmdir: work around cygwin 1.5.x and mingw bugs
32771         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32772         * lib/rmdir.c (rmdir): Work around it.
32773         * modules/rmdir (Status, Notice): No longer obsolete.
32774         (Files): Add dos.m4.
32775         (Depends-on): Add unistd.
32776         (configure.ac): Set witnesses.
32777         (License): Relax to LGPLv2+.
32778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32779         * modules/unistd (Makefile.am): Substitute witnesses.
32780         * lib/unistd.in.h (rmdir): Declare replacement.
32781         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32782         * modules/rmdir-tests: New tests.
32783         * tests/test-rmdir.c: Likewise.
32784
32785 2009-09-15  Eric Blake  <ebb9@byu.net>
32786
32787         fchdir: improve use of replacement functions
32788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32789         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32790         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32791         REPLACE_CLOSEDIR.
32792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32793         * modules/sys_stat (Makefile.am): Substitute correct witness.
32794         * modules/dirent (Makefile.am): Likewise.
32795         * modules/unistd (Makefile.am): Likewise.
32796         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32797         * lib/unistd.in.h (dup): Likewise.
32798         * lib/sys_stat.in.h (fstat): Likewise.
32799
32800         maint: ignore gnulib-tool temp files
32801         * .gitignore: Ignore files created during gnulib-tool --test.
32802
32803 2009-09-13  Jim Meyering  <meyering@redhat.com>
32804
32805         posixtm: don't reject a time that specify "60" as the number of seconds
32806         * lib/posixtm.c (posixtime): The code to reject invalid dates
32807         would also reject a time specified with the .60 suffix.
32808         But POSIX allows that, in order to accommodate leap seconds.
32809         So don't reject it.
32810         (main): Adjust tests accordingly.
32811         * modules/posixtm (Depends-on): Add stpcpy.
32812
32813 2009-09-11  Jim Meyering  <meyering@redhat.com>
32814
32815         announce-gen: include [$release_type] in emitted Subject:
32816         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32817         e.g., [stable] in the emitted Subject: line.
32818
32819 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32820
32821         Remove obsolete macros from several modules.
32822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32823         obsolete Autoconf macros with their modern counterparts.
32824         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32825         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32827         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32828         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32829         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32831         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32832         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32833         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32834         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32835         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32836         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32837         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32838         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32839         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32840         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32841         * m4/time_r.m4 (gl_TIME_R): Likewise.
32842         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32843         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32844         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32845
32846         Fix copyright header in build-aux scripts.
32847         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32848         recommendation.
32849         * build-aux/ncftpput-ftp: Likewise.
32850         * build-aux/update-copyright: Likewise.
32851
32852 2009-09-09  Eric Blake  <ebb9@byu.net>
32853
32854         test-link: allow Linux choice of errno
32855         * tests/test-link.c (main): Relax test for alternate error.
32856
32857         strndup: fix improper m4 caching
32858         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32859         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32860         (gl_PREREQ_STRNDUP): Delete.
32861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32862         * modules/string (Makefile.am): Substitute it.
32863         * lib/string.in.h (strndup): Modernize prototype.
32864
32865         getcwd: port to mingw
32866         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32867         different from the POSIX assumptions made throughout the getcwd
32868         module; fortunately, the mingw getcwd does not need replacement.
32869         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32870         * modules/getcwd-tests: New test.
32871         * tests/test-getcwd.c: Likewise.
32872
32873         link: fix platform bugs
32874         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32875         * lib/link.c (link): Work around them.  Fix related mingw bug.
32876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32877         * modules/unistd (Makefile.am): Substitute it.
32878         * lib/unistd.in.h (link): Declare replacement.
32879         * doc/posix-functions/link.texi (link): Document this.
32880         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32881
32882         test-link: consolidate into single C program, test more cases
32883         * tests/test-link.sh: Delete.
32884         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32885         at least Cygwin and Solaris.
32886         * modules/link-tests (Files): Remove unused file.
32887         (Depends-on): Add errno, sys_stat.
32888         (Makefile.am): Simplify.
32889
32890 2009-09-08  Bruno Haible  <bruno@clisp.org>
32891
32892         Work around towlower, towupper bug on mingw.
32893         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32894         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32895         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32896         * doc/posix-functions/towupper.texi: Likewise.
32897         Reported by Eric Blake.
32898
32899 2009-09-08  Jim Meyering  <meyering@redhat.com>
32900
32901         build: don't try to run autoheader if we don't use it
32902         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32903         is not used in configure.ac.
32904
32905 2009-09-08  Eric Blake  <ebb9@byu.net>
32906
32907         euidaccess: fix compilation error
32908         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32909
32910         rawmemchr: relax license
32911         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32912         okay.
32913         Reported by Jim Meyering.
32914
32915         mkfifoat: new module
32916         * modules/mkfifoat: New file.
32917         * lib/mkfifoat.c: Likewise.
32918         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32919         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32920         * modules/sys_stat (Makefile.am): Use them.
32921         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32922         * MODULES.html.sh (File system functions): Mention module.
32923         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32924         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32925         * modules/mkfifoat-tests: New test.
32926         * tests/test-mkfifoat.c: Likewise.
32927
32928         strchrnul: relax license
32929         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32930         okay.
32931         Reported by Jim Meyering.
32932
32933 2009-09-08  Eric Blake  <ebb9@byu.net>
32934
32935         fstatat: fix compilation on Solaris
32936         * lib/fstatat.c (includes): Add fcntl.h.
32937         Reported by Pádraig Brady.
32938
32939 2009-09-07  Eric Blake  <ebb9@byu.net>
32940
32941         rename: modernize replacement
32942         * modules/rename (Depends-on): Add stdio.
32943         (configure.ac): Declare witness.
32944         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32945         stdio take care of replacement.
32946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32947         * modules/stdio (Makefile.am): Substitute them.
32948         * lib/stdio.in.h (rename): Declare replacement.
32949         * lib/rename.c (includes): Allow cross-compilation to non-windows
32950         machines.
32951         * doc/posix-functions/rename.texi (rename): Improve
32952         documentation.
32953
32954         stdio: sort witness names
32955         * modules/stdio (Makefile.am): Sort replacements.
32956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32957         * lib/stdio.in.h: Likewise.
32958
32959         getcwd: minor cleanups
32960         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32961         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32962
32963         openat: provide more convenience names
32964         * modules/faccessat (configure.ac): Add C witness.
32965         * lib/unistd.in.h (readlinkat): Fix typo.
32966         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32967         convenience wrappers.
32968         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32969         wrappers in syntax checks.
32970
32971 2009-09-06  Eric Blake  <ebb9@byu.net>
32972
32973         doc: fix comments in recent patches
32974         * lib/faccessat.c: Mention correct function.
32975         * lib/fchmodat.c: Likewise.
32976         * lib/fchownat.c: Likewise.
32977         * lib/symlinkat.c: Likewise.
32978         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32979         constants.
32980
32981         faccessat, symlinkat: continue cleanup of previous patch
32982         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32983         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32984         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32986         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32987         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32988         set.
32989
32990 2009-09-06  Bruno Haible  <bruno@clisp.org>
32991
32992         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32993         (fstatat): Declare if GNULIB_FSTATAT is set.
32994         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32995         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32996         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32997         * modules/fcntl-h (Files): Remove m4/openat.m4.
32998         * modules/sys_stat (Files): Remove m4/openat.m4.
32999         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
33000         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
33001         * modules/unistd (Files): Remove m4/openat.m4.
33002         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
33003         GNULIB_OPENAT.
33004         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
33005         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
33006         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
33007         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
33008         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
33009         gl_OPENAT_DEFAULTS.
33010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
33011         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
33012         Don't require gl_OPENAT_DEFAULTS.
33013         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
33014         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
33015         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
33016         (gl_OPENAT_DEFAULTS): Remove macro.
33017
33018 2009-09-06  Bruno Haible  <bruno@clisp.org>
33019
33020         * modules/openat (configure.ac): Remove unneeded witness.
33021
33022 2009-09-06  Bruno Haible  <bruno@clisp.org>
33023
33024         Set errno to ENOSYS when a function is entirely unsupported.
33025         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
33026         EOPNOTSUPP.
33027         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33028         * modules/chown (Depends-on): Remove errno.
33029
33030 2009-09-06  Bruno Haible  <bruno@clisp.org>
33031
33032         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
33033
33034 2009-09-06  Bruno Haible  <bruno@clisp.org>
33035
33036         * lib/sys_stat.in.h: Fix preprocessor command indentation.
33037
33038 2009-09-06  Ben Pfaff  <blp@gnu.org>
33039             Bruno Haible  <bruno@clisp.org>
33040
33041         Work around a glibc bug in strtok_r.
33042         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
33043         Undefine if UNDEFINE_STRTOK_R is set.
33044         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
33045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33046         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
33047         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
33048         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
33049         UNDEFINE_STRTOK_R.
33050         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
33051
33052 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33053
33054         exclude: minor fix
33055         * lib/exclude.c: Include wctype.h
33056
33057 2009-09-06  Akim Demaille  <demaille@gostai.com>
33058
33059         bootstrap: improve error message
33060         * build-aux/bootstrap (find_tool): Upon failure, report the list
33061         of candidates.
33062         Honor the initial value of the envvar.
33063
33064 2009-09-05  Eric Blake  <ebb9@byu.net>
33065
33066         symlinkat: new module
33067         * modules/symlinkat: New file.
33068         * lib/symlinkat.c: Likewise.
33069         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
33070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33071         * modules/unistd (Makefile.am): Use them.
33072         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
33073         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
33074         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
33075         * MODULES.html.sh (File system functions): Mention module.
33076         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33077         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33078         * modules/symlinkat-tests: New test.
33079         * tests/test-symlinkat.c: Likewise.
33080
33081         test-openat-safer: add more checks
33082         * tests/test-openat-safer.c (main): Check more code paths.
33083
33084 2009-09-05  Jim Meyering  <meyering@redhat.com>
33085
33086         syntax-check: detect unnecessary inclusion of openat.h
33087         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
33088
33089 2009-09-05  Bruno Haible  <bruno@clisp.org>
33090
33091         Support towlower, towupper.
33092         * doc/posix-functions/towlower.texi: Mention module wctype.
33093         * doc/posix-functions/towupper.texi: Likewise.
33094         * lib/wctype.in.h (towlower, towupper): New functions.
33095         * tests/test-wctype.c: Include stdio.h, stdlib.h.
33096         (ASSERT): New macro.
33097         (e): New variable.
33098         (main): Test also towlower, towupper. Test WEOF argument.
33099         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33100
33101 2009-09-05  Bruno Haible  <bruno@clisp.org>
33102
33103         Fix conversion behaviour when the input is invalid.
33104         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
33105         mark occurring in first pass of indirect conversion.
33106         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
33107         input.
33108         Found by clang's static analyzer.
33109
33110 2009-09-05  Bruno Haible  <bruno@clisp.org>
33111
33112         * tests/test-striconveh.c (main): Test indirect conversion on platforms
33113         where direct conversion is possible.
33114
33115 2009-09-04  Eric Blake  <ebb9@byu.net>
33116
33117         openat: fail with ENOENT on empty name
33118         * lib/openat-proc.c (openat_proc_name): Special-case the empty
33119         buffer.
33120
33121         link-follow: fix logic bug in prior patch
33122         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
33123         reversed sense of yes and no in prior patch.  Avoid confusing
33124         compilation failure with desired semantics.
33125
33126         link-follow: accomodate mingw and cross-compilation
33127         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
33128         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
33129         cross-compilation results to -1, to make linkat easier to
33130         implement when cross-compiling.  Trivially support mingw.
33131         * modules/link-follow (configure.ac): Call new name.
33132         * NEWS: Mention this.
33133
33134 2009-09-03  Eric Blake  <ebb9@byu.net>
33135
33136         faccessat: compile replacement
33137         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
33138         needed.
33139
33140         fts: fix compilation error
33141         * lib/fts.c (includes): Re-add "openat.h", for
33142         openat_needs_fchdir.
33143
33144         faccessat: new module
33145         * modules/faccessat: New file.
33146         * lib/faccessat.c: Likewise.
33147         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33149         * modules/unistd (Makefile.am): Use it.
33150         * lib/unistd.in.h (faccessat): Declare it.
33151         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
33152         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
33153         * MODULES.html.sh (File system functions): Mention it.
33154         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
33155         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33156
33157         euidaccess: prefer POSIX over non-standard implementation
33158         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
33159         * lib/euidaccess.c (euidaccess): Use it if available.
33160
33161         openat: make template easier to use
33162         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
33163         AT_FUNC_F2 to be undefined.
33164         (VALIDATE_FLAG): New macro; use it to reject bad flags.
33165         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
33166         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
33167         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
33168         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
33169         Likewise.
33170         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
33171         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
33172         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
33173         Likewise.
33174
33175         openat: declare in POSIX headers
33176         * NEWS: Mention this.
33177         * modules/openat (configure.ac): Declare witnesses.
33178         (Depends-on): Add fcntl-h, sys_stat, unistd.
33179         (Include): Mention correct headers.
33180         * modules/fcntl-h (Depends-on): Add link-warning.
33181         (Files): Add openat.m4.
33182         (Makefile.am): Substitute witnesses.
33183         * modules/sys_stat (Files, Makefile.am): Likewise.
33184         * modules/unistd (Files, Makefile.am): Likewise.
33185         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
33186         (gl_OPENAT_DEFAULTS): New macro.
33187         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
33188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
33189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
33190         (SYS_STAT_H): Remove unused variable.
33191         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
33192         * lib/fcntl--.h (includes): Remove unneeded header.
33193         * lib/openat-safer.c (includes): Likewise.
33194         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
33195         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
33196         appropriate headers.
33197         (__OPENAT_PREFIX): Delete.
33198         * lib/fcntl.in.h (openat): Provide declaration.
33199         (AT_FDCWD): Fix Solaris bug.
33200         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
33201         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
33202         * lib/fchmodat.c (includes):  Adjust to find declaration.
33203         * lib/fchownat.c (includes): Likewise.
33204         * lib/mkdirat.c (includes): Likewise.
33205         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
33206         still visible.
33207
33208 2009-09-02  Eric Blake  <ebb9@byu.net>
33209
33210         errno: use consistently
33211         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
33212         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
33213         * lib/canonicalize.c (ELOOP): Likewise.
33214         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
33215         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
33216         * lib/lchown.c (EOPNOTSUPP): Likewise.
33217         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
33218         * lib/savewd.c (ESTALE): Likewise.
33219         * lib/settime.c (ENOSYS): Likewise.
33220         * lib/utimens.c (ENOSYS): Likewise.
33221         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
33222         * lib/chdir-safer.c (ELOOP): Likewise.
33223         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
33224         * modules/c-stack (Depends-on): Add errno.
33225         * modules/canonicalize (Depends-on): Likewise.
33226         * modules/chdir-safer (Depends-on): Likewise.
33227         * modules/fdopendir (Depends-on): Likewise.
33228         * modules/inet_ntop (Depends-on): Likewise.
33229         * modules/inet_pton (Depends-on): Likewise.
33230         * modules/lchown (Depends-on): Likewise.
33231         * modules/openat (Depends-on): Likewise.
33232         * modules/savewd (Depends-on): Likewise.
33233         * modules/settime (Depends-on): Likewise.
33234         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
33235
33236         fts: avoid leaking fds
33237         * modules/fts (Depends-on): Add cloexec.
33238         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
33239         flag.
33240
33241         fts: make directory fds more robust
33242         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
33243         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
33244
33245         backupfile, chdir-long, fts, savedir: make safer
33246         * lib/backupfile.c (includes): Use "dirent--.h", since
33247         numbered_backup can write to stderr during readdir.
33248         * lib/savedir.c (includes): Likewise.
33249         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
33250         emulation can write to stderr on failure.
33251         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
33252         * lib/getcwd.c: Document why opendir_safer is unused.
33253         * lib/glob.c: Likewise.
33254         * lib/scandir.c: Likewise.
33255         * lib/openat-proc.c: Likewise, for open_safer.
33256         * modules/backupfile (Depends-on): Add dirent-safer.
33257         * modules/savedir (Depends-on): Likewise.
33258         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33259         * modules/chdir-long (Depends-on): Add openat-safer.
33260
33261         openat-safer: new module
33262         * modules/openat-safer: New file.
33263         * lib/openat-safer.c: Likewise.
33264         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
33265         * lib/fcntl-safer.h (openat_safer): Declare.
33266         * lib/fcntl--.h (openat): Override.
33267         * MODULES.html.sh (File descriptor based I/O): Mention it.
33268         * lib/openat.h: Add double-inclusion guards.
33269         * lib/openat.c (includes): Only include "fcntl-safer.h", not
33270         "fcntl--.h", so we can implement openat.
33271         * modules/openat-safer-tests: New test.
33272         * tests/test-openat-safer.c: New file.
33273
33274         dirent-safer: new module
33275         * modules/dirent-safer: New file.
33276         * lib/dirent--.h: Likewise.
33277         * lib/dirent-safer.h: Likewise.
33278         * lib/opendir-safer.c: Likewise.
33279         * m4/dirent-safer.m4: Likewise.
33280         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
33281         * modules/dirent-safer-tests: New test.
33282         * tests/test-dirent-safer.c: New file.
33283         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
33284
33285         fdopendir: optimize on mingw
33286         * lib/unistd.in.h (_gl_directory_name): New prototype.
33287         * lib/fchdir.c (_gl_directory_name): Implement it.
33288         (fchdir): Use it to simplify implementation.
33289         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
33290         fchdir, when available, to avoid calling [f]chdir().
33291
33292         fdopendir: split into its own module
33293         * lib/openat.c (fdopendir): Move...
33294         * lib/fdopendir.c: ...into new file.
33295         * modules/fdopendir: New module.
33296         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
33297         * modules/openat (Depends-on): Add fdopendir.
33298         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
33299         fdopendir here.
33300         * modules/savedir (Depends-on): Only need fdopendir, not full
33301         openat.
33302         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
33303         * lib/openat.h (fdopendir): Drop prototype.
33304         * lib/dirent.in.h (fdopendir): Provide prototype.
33305         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
33306         * modules/dirent (Makefile.am): Substitute them.
33307         * MODULES.html.sh (File system functions): Mention it.
33308         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
33309         * modules/fdopendir-tests: New file.
33310         * tests/test-fdopendir.c: Likewise.
33311
33312         fchdir: use more consistent macro convention
33313         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
33314         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
33315         REPLACE_FCHDIR, rather than relying on config.h macros.
33316         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
33317         inside a single make-time REPLACE_FCHDIR block, rather than using
33318         the config.h FCHDIR_REPLACEMENT.
33319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
33320         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
33321         Manage fstat replacement.
33322         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
33323         REPLACE_FCHDIR.
33324         * modules/sys_stat (Files): Add m4/unistd_h.m4.
33325         (Makefile.am): Substitute REPLACE_FCHDIR.
33326         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
33327         FCHDIR_REPLACEMENT.
33328         * lib/dup-safer.c (dup_safer): Likewise.
33329         * lib/dup2.c (rpl_dup2): Likewise.
33330         * lib/dup3.c (rpl_dup3): Likewise.
33331         * lib/open.c (rpl_open): Likewise.
33332
33333         fchdir: simplify error handling, and support dup3
33334         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
33335         stdbool, malloc-posix, realloc-posix.
33336         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
33337         (ensure_dirs_slot): Return false on allocation failure.
33338         (rpl_dup2): Delete.
33339         (_gl_register_dup): New function.
33340         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
33341         (_gl_register_fd): Close fd on allocation failure.
33342         * lib/fcntl.in.h (_gl_register_fd): Update signature.
33343         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
33344         prototype.
33345         (rpl_dup2_fchdir): Delete prototype.
33346         * lib/open.c (open): Update caller.
33347         * lib/dup2.c (dup2): Track fchdir metadata.
33348         * lib/dup3.c (dup3): Likewise.
33349         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
33350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
33351
33352 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33353
33354         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
33355         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
33356         don't pass arguments to AC_OUTPUT.
33357
33358 2009-09-02  Bruno Haible  <bruno@clisp.org>
33359
33360         * modules/mkdtemp (License): Relicense under LGPLv2+.
33361         Reported by Paolo Bonzini.
33362
33363 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33364
33365         Replace uses of obsolete autoconf macros in Jim's modules.
33366         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
33367         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
33368         can evoke a warning from autoconf when run with -Wobsolete
33369         enabled.  They were declared obsolete for good reasons (see
33370         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
33371         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
33372         should not continue using the deprecated macros.
33373         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
33374         obsolete Autoconf macros with modern counterparts.
33375         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33376         * m4/dos.m4 (gl_AC_DOS): Likewise.
33377         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
33378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
33379         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
33380         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
33381         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
33382         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
33383         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33384         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
33385         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33386         Likewise.
33387         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
33388         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33389         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
33390         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
33391         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33392         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33393
33394 2009-09-01  Eric Blake  <ebb9@byu.net>
33395
33396         fchdir: fix off-by-one bug in previous patch
33397         * lib/fchdir.c (rpl_fstat): Use correct bounds.
33398         (_gl_unregister_fd): Delete useless if.
33399
33400 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
33401
33402         maint.mk: sort the list of syntax-check rules
33403         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
33404         easier to get a sense of progress when the rules are run sequentially
33405         and take a long time.
33406
33407 2009-09-01  Simon Josefsson  <simon@josefsson.org>
33408
33409         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
33410         * modules/netinet_in: Likewise.
33411         * modules/sys_file: Likewise.
33412         * modules/sys_ioctl: Likewise.
33413         * modules/sys_select: Likewise.
33414         * modules/sys_socket: Likewise.
33415         * modules/sys_stat: Likewise.
33416         * modules/sys_time: Likewise.
33417         * modules/sys_times: Likewise.
33418         * modules/sys_utsname: Likewise.
33419         * modules/sys_wait: Likewise.
33420
33421 2009-09-01  Jim Meyering  <meyering@redhat.com>
33422
33423         fts: help ensure that return values are not ignored
33424         * lib/fts_.h (__GNUC_PREREQ): Define.
33425         (__attribute_warn_unused_result__): Define.
33426         (fts_children, fts_close, fts_open, fts_read): Declare with
33427         __attribute_warn_unused_result__.
33428
33429         fts: fts_close now fails also when closing a dir file descriptor fails
33430         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
33431         and propagate to caller, along with errno.
33432
33433         announce-gen: correct formatting in --help output
33434         * build-aux/announce-gen (usage): Move the one-line description in
33435         --help output "up", to where it belongs, just after Usage:.
33436
33437 2009-08-31  Eric Blake  <ebb9@byu.net>
33438
33439         fchdir: port to mingw
33440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
33441         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
33442         opened, then use a substitute.
33443         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
33444         replacement.
33445         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
33446         (_gl_register_fd): No need to check stat if open already filters
33447         all directories.
33448         (fchdir): Fix error condition to match POSIX.
33449         * modules/fchdir (Depends-on): Add sys_stat.
33450         * doc/posix-functions/open.texi (open): Document the limitation.
33451         * modules/fchdir-tests: New file.
33452         * tests/test-fchdir.c: Likewise.
33453
33454         canonicalize: allow cross-testing from cygwin to mingw
33455         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
33456         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
33457         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
33458         Likewise.
33459         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
33460         target does not support symlinks.
33461         * tests/test-canonicalize-lgpl.sh: Likewise.
33462
33463         chown: avoid compilation warning on mingw
33464         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
33465         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
33466         mingw.
33467         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33468         * modules/chown (Depends-on): Add errno.
33469
33470 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33471
33472         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
33473         command.
33474
33475 2009-08-31  Jim Meyering  <meyering@redhat.com>
33476
33477         canonicalize: remove useless initialization
33478         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
33479         initialization of local, "end".
33480
33481 2009-08-30  Bruno Haible  <bruno@clisp.org>
33482
33483         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
33484         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
33485         ENOSYS.
33486
33487 2009-08-30  Bruno Haible  <bruno@clisp.org>
33488
33489         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
33490         /usr/xpg4/bin/tr when it exists.
33491         * tests/test-pipe-filter-gi1.sh: Likewise.
33492
33493 2009-08-30  Bruno Haible  <bruno@clisp.org>
33494
33495         Work around deficient /usr/bin/id program on Solaris.
33496         * tests/test-file-has-acl.sh (ID): New variable.
33497         * tests/test-set-mode-acl.sh (ID): Likewise.
33498         * tests/test-copy-acl.sh (ID): Likewise.
33499         * tests/test-copy-file.sh (ID): Likewise.
33500
33501 2009-08-30  Bruno Haible  <bruno@clisp.org>
33502
33503         New module 'xstriconveh'.
33504         * lib/xstriconveh.h: New file.
33505         * lib/xstriconveh.c: New file.
33506         * modules/xstriconveh: New file.
33507
33508 2009-08-30  Bruno Haible  <bruno@clisp.org>
33509
33510         Make it easier to use mem_cd_iconveh.
33511         * lib/striconveh.h (iconveh_t): New type.
33512         (iconveh_open, iconveh_close): New declarations.
33513         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33514         with a single 'const iconveh_t *' argument.
33515         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33516         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33517         with a single 'const iconveh_t *' argument.
33518         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33519         * tests/test-striconveh.c (main): Update.
33520         * NEWS: Mention the change.
33521
33522 2009-08-30  Bruno Haible  <bruno@clisp.org>
33523
33524         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33525         problem.
33526
33527 2009-08-30  Bruno Haible  <bruno@clisp.org>
33528
33529         Work around iconv_open problem on Solaris.
33530         * lib/iconv_open-solaris.gperf: New file.
33531         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33532         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33533         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33534         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33535         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33536         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33537
33538 2009-08-29  Jim Meyering  <meyering@redhat.com>
33539
33540         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33541         * top/maint.mk (cvs-check): Remove target; it was just an alias
33542         to the better-named vc-diff-check.
33543         (maintainer-distcheck): Remove rule.  It was used only from
33544         the (alpha/beta/major) target, and all of its commands but one
33545         were coreutils-specific.
33546         (vc-dist): Remove rule.
33547         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33548         Run vc-diff-check, not vc-dist.
33549         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33550
33551 2009-08-27  Bruno Haible  <bruno@clisp.org>
33552
33553         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33554         of 0.
33555
33556 2009-08-27  Bruno Haible  <bruno@clisp.org>
33557
33558         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33559         compilers.
33560         * doc/func.texi: Document the SunPRO C bug.
33561
33562 2009-08-27  Bruno Haible  <bruno@clisp.org>
33563
33564         Fix link error on Solaris.
33565         * tests/test-parse-duration.c (xstrdup): Remove function.
33566
33567 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33568
33569         ignore-value: handle pointer types, too
33570         * lib/ignore-value.h (__attribute__): Remove definition.
33571         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33572         of a more concise and more-often effective "(void) i" statement.
33573         (ignore_ptr): New function to suppress warnings from functions that
33574         return pointers, and to make it explicit that one function doesn't
33575         handle all cases.
33576
33577 2009-08-25  Bruno Haible  <bruno@clisp.org>
33578
33579         dup2: work around a Linux bug.
33580         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33581         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33582         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33583         Reported by Simon Josefsson.
33584
33585 2009-08-25  Jim Meyering  <meyering@redhat.com>
33586
33587         libguestfs uses gnulib
33588         * users.txt: Add libguestfs.
33589
33590 2009-08-24  Eric Blake  <ebb9@byu.net>
33591
33592         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33593         * lib/pipe2.c (includes): Add binary-io.h.
33594         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33595
33596 2009-08-24  Bruno Haible  <bruno@clisp.org>
33597
33598         Tolerate declared but missing accept4 syscall.
33599         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33600         available.
33601         * lib/sys_socket.in.h (accept4): If the function is already present,
33602         override it.
33603         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33604         * modules/accept4 (Makefile.am): Compile accept4.c always.
33605         Reported by Paolo Bonzini and Eric Blake.
33606
33607 2009-08-23  Bruno Haible  <bruno@clisp.org>
33608
33609         New module 'accept4'.
33610         * lib/sys_socket.in.h (accept4): New declaration.
33611         * lib/accept4.c: New file.
33612         * m4/accept4.m4: New file.
33613         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33614         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33615         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33616         HAVE_ACCEPT4.
33617         * modules/accept4: New file.
33618         * doc/glibc-functions/accept4.texi: Mention the new module.
33619
33620 2009-08-24  Jim Meyering  <meyering@redhat.com>
33621
33622         progname: also set global program_invocation_name, when possible
33623         Before this change, a libtool-enabled program that calls glibc's
33624         error function would report the program name as
33625         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33626         * modules/progname (configure.ac): Check for a declaration of
33627         program_invocation_name.
33628         * lib/progname.c:  Include <errno.h>.
33629         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33630         Set program_invocation_name.
33631
33632 2009-08-23  Bruno Haible  <bruno@clisp.org>
33633
33634         * lib/dup3.c: Include <string.h>.
33635
33636 2009-08-23  Bruno Haible  <bruno@clisp.org>
33637
33638         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33639         * lib/pipe2.c (pipe2): Likewise.
33640         Suggested by Eric Blake.
33641
33642 2009-08-23  Bruno Haible  <bruno@clisp.org>
33643
33644         Tolerate declared but missing dup3 syscall.
33645         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33646         * lib/unistd.in.h (dup3): If the function is already present,
33647         override it.
33648         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33649         * modules/dup3 (Makefile.am): Compile dup3.c always.
33650         Reported by Paolo Bonzini.
33651
33652 2009-08-23  Bruno Haible  <bruno@clisp.org>
33653
33654         Tolerate declared but missing pipe2 syscall.
33655         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33656         available.
33657         * lib/unistd.in.h (pipe2): If the function is already present,
33658         override it.
33659         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33660         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33661         Reported by Paolo Bonzini.
33662
33663 2009-08-23  Bruno Haible  <bruno@clisp.org>
33664
33665         * lib/pipe2.c (pipe2): Move #ifs inside function.
33666
33667 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33668
33669         quotearg: document limitations of quote_these_too
33670         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33671         those limitations are created.
33672         * lib/quotearg.h (set_char_quoting): Document that digits and
33673         letters that are special after backslash are not permitted.
33674         (quotearg_char): Cross-reference set_char_quoting documentation.
33675
33676 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33677
33678         quotearg: implement custom_quoting_style
33679         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33680         right_quote fields.
33681         (set_custom_quoting): New public function.
33682         (quotearg_buffer_restyled): Add left_quote and right_quote
33683         arguments, handle them very much like locale quoting, and update
33684         all uses.
33685         (quotearg_n_custom): New public function.
33686         (quotearg_n_custom_mem): New public function.
33687         (quotearg_custom): New public function.
33688         (quotearg_custom_mem): New public function.
33689         * lib/quotearg.h: Prototype and document new public functions.
33690         (enum quoting_style): For escape_quoting_style and
33691         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33692         ignored even though they're otherwise like c_quoting_style.
33693         Add custom_quoting_style member and document with comparison to
33694         clocale_quoting_style.
33695         * tests/test-quotearg.c (custom_quotes): New array.
33696         (custom_results): New array.
33697         (main): Extend to test custom quoting.
33698
33699 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33700
33701         quotearg: fix right quote escaping when it's in quote_these_too
33702         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33703         quote, be sure to prepend only one backslash.
33704         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33705         (main): Test it.
33706
33707 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33708
33709         quotearg-tests: test escaping of embedded locale quotes
33710         * tests/test-quotearg.c (struct result_strings): Add member for
33711         new input.
33712         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33713         (inputs): Add new input.
33714         (results_g): Add expected results.
33715         (flag_results): Likewise.
33716         (locale_results): Likewise.
33717         (compare_strings): Check those.
33718
33719 2009-08-23  Bruno Haible  <bruno@clisp.org>
33720
33721         Tests for module 'dup3'.
33722         * modules/dup3-tests: New file.
33723         * tests/test-dup3.c: New file.
33724
33725         New module 'dup3'.
33726         * lib/unistd.in.h (dup3): New declaration.
33727         * lib/dup3.c: New file.
33728         * m4/dup3.m4: New file.
33729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33730         HAVE_DUP3.
33731         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33732         * modules/dup3: New file.
33733         * doc/glibc-functions/dup3.texi: Mention the new module.
33734
33735 2009-08-23  Bruno Haible  <bruno@clisp.org>
33736
33737         Tweak the dup2 test.
33738         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33739         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33740         the test file is still empty. Fix argument order of lseek.
33741
33742 2009-08-23  Bruno Haible  <bruno@clisp.org>
33743
33744         Avoid test link errors when the modules getopt-gnu, gettext are used.
33745         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33747
33748 2009-08-23  Bruno Haible  <bruno@clisp.org>
33749
33750         Fix getdtablesize() on mingw.
33751         * lib/getdtablesize.c (getdtablesize): Implement differently.
33752         * lib/unistd.in.h (getdtablesize): Improve comment.
33753
33754 2009-08-23  Bruno Haible  <bruno@clisp.org>
33755
33756         New module 'mkostemp'.
33757         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33758         * lib/stdlib.in.h (mksotemp): New declaration.
33759         * lib/mkostemp.c: New file, from glibc with modifications.
33760         * lib/tempname.h (GT_FILE): Remove outdated comment.
33761         (gen_tempname): Add flags argument.
33762         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33763         (__GT_FILE): Map to 1.
33764         (small_open, large_open): Remove macros.
33765         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33766         * lib/mkstemp.c (mkstemp): Update.
33767         * lib/mkdtemp.c (mkdtemp): Likewise.
33768         * m4/mkostemp.m4: New file.
33769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33770         HAVE_MKOSTEMP.
33771         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33772         HAVE_MKOSTEMP.
33773         * modules/mkostemp: New file, based on modules/mkstemp.
33774         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33775         * NEWS: Mention the change.
33776
33777 2009-08-23  Bruno Haible  <bruno@clisp.org>
33778
33779         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33780         Reported by Eric Blake.
33781
33782 2009-08-23  Bruno Haible  <bruno@clisp.org>
33783
33784         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33785         Reported by Eric Blake.
33786
33787 2009-08-23  Bruno Haible  <bruno@clisp.org>
33788
33789         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33790         * modules/pipe2 (Depends-on): Likewise.
33791
33792 2009-08-23  Eric Blake  <ebb9@byu.net>
33793
33794         fcntl-h: add O_TTY_INIT support
33795         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33796         * tests/test-fcntl-h.c (o): Test it.
33797         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33798
33799         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33800         * modules/fcntl: Move <fcntl.h> header replacement...
33801         * modules/fcntl-h: ...to new name, so as not to collide with
33802         like-named function.
33803         * tests/test-fcntl.c: Rename...
33804         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33805         * modules/fcntl-tests: Rename...
33806         * modules/fcntl-h-tests: ...to this.  Update test file name.
33807         * modules/chdir-long (Depends-on): Update clients.
33808         * modules/chdir-safer (Depends-on): Likewise.
33809         * modules/fcntl-safer (Depends-on): Likewise.
33810         * modules/fts (Depends-on): Likewise.
33811         * modules/mkancesdirs (Depends-on): Likewise.
33812         * modules/mkdir-p (Depends-on): Likewise.
33813         * modules/open (Depends-on): Likewise.
33814         * modules/savewd (Depends-on): Likewise.
33815         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33816         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33817
33818 2009-08-22  Bruno Haible  <bruno@clisp.org>
33819
33820         * modules/binary-io (License): Relicense under LGPL.
33821         * modules/pipe2 (License): Likewise.
33822
33823 2009-08-22  Bruno Haible  <bruno@clisp.org>
33824
33825         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33826         return value.
33827         * lib/pipe-filter-gi.c (filter_init): Likewise.
33828         Reported by Eric Blake.
33829
33830 2009-08-22  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33833         * modules/pipe (Depends-on): Add pipe2.
33834
33835 2009-08-22  Bruno Haible  <bruno@clisp.org>
33836
33837         Tests for module 'pipe2'.
33838         * modules/pipe2-tests: New file.
33839         * tests/test-pipe2.c: New file.
33840
33841         New module 'pipe2'.
33842         * lib/unistd.in.h (pipe2): New declaration.
33843         * lib/pipe2.c: New file.
33844         * m4/pipe2.m4: New file.
33845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33846         HAVE_PIPE2.
33847         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33848         * modules/pipe2: New file.
33849         * doc/glibc-functions/pipe2.texi: Mention the new module.
33850
33851 2009-08-22  Bruno Haible  <bruno@clisp.org>
33852
33853         Reference some new glibc functions.
33854         * doc/glibc-functions/accept4.texi: New file.
33855         * doc/glibc-functions/dup3.texi: New file.
33856         * doc/glibc-functions/mkostemp.texi: New file.
33857         * doc/glibc-functions/pipe2.texi: New file.
33858         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33859         (Glibc sys/socket.h): Refer to accept4.
33860         (Glibc unistd.h): Refer to dup3, pipe2.
33861         Reported by Eric Blake.
33862
33863 2009-08-22  Jim Meyering  <meyering@redhat.com>
33864             Bruno Haible  <bruno@clisp.org>
33865
33866         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33867         This makes it so packages using automake-1.11's silent-rules option
33868         can print e.g., a single "GEN    configmake.h" line, rather than
33869         the 30+ statements that perform the job.  If you want to see the
33870         actual commands, you can still run "make V=1".
33871         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33872         so that make output is abbreviated when those variables are defined
33873         appropriately.
33874         * modules/argz: Likewise.
33875         * modules/arpa_inet: Likewise.
33876         * modules/byteswap: Likewise.
33877         * modules/configmake: Likewise.
33878         * modules/dirent: Likewise.
33879         * modules/errno: Likewise.
33880         * modules/fcntl: Likewise.
33881         * modules/float: Likewise.
33882         * modules/fnmatch: Likewise.
33883         * modules/getopt-posix: Likewise.
33884         * modules/glob: Likewise.
33885         * modules/iconv_open: Likewise.
33886         * modules/inttypes: Likewise.
33887         * modules/localcharset: Likewise.
33888         * modules/locale: Likewise.
33889         * modules/math: Likewise.
33890         * modules/netdb: Likewise.
33891         * modules/netinet_in: Likewise.
33892         * modules/poll: Likewise.
33893         * modules/posix_spawnp-tests: Likewise.
33894         * modules/sched: Likewise.
33895         * modules/search: Likewise.
33896         * modules/selinux-h: Likewise.
33897         * modules/signal: Likewise.
33898         * modules/spawn: Likewise.
33899         * modules/stdarg: Likewise.
33900         * modules/stdbool: Likewise.
33901         * modules/stddef: Likewise.
33902         * modules/stdint: Likewise.
33903         * modules/stdio: Likewise.
33904         * modules/stdlib: Likewise.
33905         * modules/string: Likewise.
33906         * modules/strings: Likewise.
33907         * modules/sys_file: Likewise.
33908         * modules/sys_ioctl: Likewise.
33909         * modules/sys_select: Likewise.
33910         * modules/sys_socket: Likewise.
33911         * modules/sys_stat: Likewise.
33912         * modules/sys_time: Likewise.
33913         * modules/sys_times: Likewise.
33914         * modules/sys_utsname: Likewise.
33915         * modules/sys_wait: Likewise.
33916         * modules/sysexits: Likewise.
33917         * modules/time: Likewise.
33918         * modules/unistd: Likewise.
33919         * modules/wchar: Likewise.
33920         * modules/wctype: Likewise.
33921
33922 2009-08-22  Jim Meyering  <meyering@redhat.com>
33923
33924         announce-gen: detect write failure
33925         * build-aux/announce-gen: Add Coda at end.
33926         Remove equivalent-but-more-verbose block at top.
33927
33928 2009-08-19  Akim Demaille  <demaille@gostai.com>
33929
33930         bootstrap: --help to stdout.
33931         * bootstrap (usage): Don't send --help to stderr.
33932         Use a here doc instead of a long string.
33933
33934 2009-08-21  Eric Blake  <ebb9@byu.net>
33935
33936         test-popen-safer: split from test-popen
33937         * tests/test-popen.c (main): Move...
33938         * tests/test-popen.h: ...into new file.
33939         * tests/test-popen-safer2.c: New file.
33940         * modules/popen-tests (Files): Add test-popen.h.
33941         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33942         Suggested by Bruno Haible.
33943
33944         test-fcntl-safer: split from test-open
33945         * tests/test-open.c (main): Move...
33946         * tests/test-open.h: ...into new file.
33947         * tests/test-fcntl-safer.c: New file.
33948         * modules/open-tests (Files): Add test-open.h.
33949         * modules/fcntl-safer-tests: New file.
33950         Suggested by Bruno Haible.
33951
33952         test-fopen-safer: split from test-fopen
33953         * tests/test-fopen.c (main): Move...
33954         * tests/test-fopen.h: ...into new file.
33955         * tests/test-fopen-safer.c: New file.
33956         * modules/fopen-tests (Files): Add test-fopen.h.
33957         * modules/fopen-safer-tests: New file.
33958         Suggested by Bruno Haible.
33959
33960 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33961
33962         popen-safer: test O_CLOEXEC at run-time.
33963         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33964
33965 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33966
33967         fcntl: move more flags to the header
33968         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33969         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33970         * lib/fcntl.in.h: Do both things here.
33971
33972 2009-08-21  Jim Meyering  <meyering@redhat.com>
33973
33974         consistently remove $@-t before redirecting to it
33975         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33976         * modules/alloca-opt: Likewise.
33977         * modules/byteswap: Likewise.
33978         * modules/fnmatch: Likewise.
33979         * modules/getopt-posix: Likewise.
33980         * modules/glob: Likewise.
33981         * modules/poll: Likewise.
33982         * modules/posix_spawnp-tests: Likewise.
33983         * modules/sys_socket: Likewise.
33984         * modules/sysexits: Likewise.
33985
33986 2009-08-21  Eric Blake  <ebb9@byu.net>
33987
33988         popen: simplify access to original popen
33989         * lib/popen.c (rpl_popen): No need to worry about popen being a
33990         macro.
33991         Reported by Bruno Haible.
33992
33993 2009-08-20  Eric Blake  <ebb9@byu.net>
33994
33995         build: avoid some compiler warnings
33996         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33997         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33998         type.
33999         (new_exclude_segment, excluded_file_pattern_p)
34000         (excluded_file_name_p): Reduce scope.
34001         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
34002         old-style declaration.
34003
34004 2009-08-20  Simon Josefsson  <simon@josefsson.org>
34005
34006         * tests/test-exclude1.sh: Handle Windows EOL.
34007         * tests/test-exclude2.sh: Likewise.
34008         * tests/test-exclude3.sh: Likewise.
34009         * tests/test-exclude4.sh: Likewise.
34010         * tests/test-exclude5.sh: Likewise.
34011         * tests/test-exclude6.sh: Likewise.
34012         * tests/test-exclude7.sh: Likewise.
34013
34014 2009-08-19  Akim Demaille  <demaille@gostai.com>
34015
34016         bootstrap: find sha1sum when named gsha1sum.
34017         * bootstrap (find_tool): New.
34018         ($SHA1SUM): New.
34019         Use it.
34020
34021 2009-08-20  Jim Meyering  <meyering@redhat.com>
34022
34023         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
34024         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
34025         expression that converts "." in a file name to "\." in the resulting
34026         regexp.  Start with a dummy statement, so that prior shell variable
34027         definitions are expanded portably.  Reported by Simon Josefsson.
34028
34029 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
34030
34031         Fix polling for writeability of a screen buffer.
34032         * lib/poll.c: Distinguish input and screen buffers for the
34033         Win32 implementation.
34034         * lib/select.c: Likewise.
34035
34036 2009-08-19  Eric Blake  <ebb9@byu.net>
34037
34038         popen-safer: prevent popen from clobbering std descriptors
34039         * modules/popen-safer: New file.
34040         * lib/popen-safer.c: Likewise.
34041         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
34042         * lib/stdio--.h (popen): Provide override.
34043         * lib/stdio-safer.h (popen_safer): Provide declaration.
34044         * tests/test-popen.c (includes): Partially test this.
34045         * modules/popen-safer-tests: New file, for more tests.
34046         * tests/test-popen-safer.c: Likewise.
34047         * MODULES.html.sh (file stream based Input/Output): Mention it.
34048
34049         tests: test some of the *-safer modules
34050         * modules/fopen-safer (Depends-on): Add fopen.
34051         * modules/fcntl-safer (Depends-on): Add fcntl.
34052         * modules/stdlib-safer (Depends-on): Add stdlib.
34053         (configure.ac): Set indicator.
34054         * modules/unistd-safer (configure.ac): Likewise.
34055         * modules/tmpfile-safer (configure.ac): Likewise.
34056         (Depends-on): Add tmpfile.
34057         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
34058         active.
34059         * tests/test-fopen.c (includes): Test safer versions when they are
34060         in use.
34061         * tests/test-open.c (includes): Likewise.
34062
34063         popen: fix cygwin 1.5 bug when stdin closed
34064         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
34065         * modules/popen: New file.
34066         * modules/popen-tests: Likewise.
34067         * tests/test-popen.c: Likewise.
34068         * m4/popen.m4: Likewise.
34069         * lib/popen.c: Likewise.
34070         * lib/stdio.in.h (popen): New declaration.
34071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
34072         * modules/stdio (Makefile.am): Likewise.
34073         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
34074
34075 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
34076
34077         maint.mk: give full control over update-copyright exclusions
34078         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
34079         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
34080         (update-copyright): Don't force inclusion of top-level
34081         ChangeLog.  Don't force exclusion of all COPYING files, but make
34082         them the default exclusion instead.
34083
34084 2009-08-16  Bruno Haible  <bruno@clisp.org>
34085
34086         Fix test failures on Solaris 10.
34087         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
34088         tests when Solaris iconv() is used.
34089         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34090         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34091         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34092         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34093         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34094
34095 2009-08-16  Bruno Haible  <bruno@clisp.org>
34096
34097         Fix test failures on Solaris 10.
34098         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
34099         'tr' program and pass it as first argument.
34100         * tests/test-pipe-filter-gi1.sh: Likewise.
34101         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
34102         program as first argument.
34103         * tests/test-pipe-filter-gi1.c (main): Likewise.
34104
34105 2009-08-16  Eric Blake  <ebb9@byu.net>
34106
34107         fpurge: fix previous commits
34108         * modules/fpurge (Makefile.am): Make replacement conditional,
34109         partially reverting 2007-04-29 change; missed in previous
34110         attempt.
34111         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
34112         is missing.
34113
34114 2009-08-16  Bruno Haible  <bruno@clisp.org>
34115
34116         Clarify fpurge's effect on the file position.
34117         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
34118         * tests/test-fpurge.c (main): Make a second pass for checking the file
34119         position.
34120
34121 2009-08-16  Bruno Haible  <bruno@clisp.org>
34122
34123         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
34124         declaration of fpurge is missing.
34125         * tests/test-fpurge.c (main): Check that the file has not more contents
34126         than expected. Close the file before removing it.
34127
34128 2009-08-15  Eric Blake  <ebb9@byu.net>
34129
34130         fpurge: don't wrap working cygwin implementation
34131         * lib/fpurge.c (fpurge): Fix comment typo.
34132         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
34133         1.7 to avoid replacement.
34134         * tests/test-fpurge.c (main): Enhance test.
34135
34136 2009-08-15  Eric Blake  <ebb9@byu.net>
34137         and Jim Meyering  <meyering@redhat.com>
34138
34139         test-update-copyright: skip if perl is insufficient
34140         * tests/test-update-copyright.sh: Failure to run maintainer tool
34141         should not cause testsuite failure on cygwin 1.5.
34142
34143 2009-08-14  Eric Blake  <ebb9@byu.net>
34144
34145         doc: mention more functions added in cygwin 1.7.0
34146         * doc/posix-headers/limits.texi (limits.h): Update for recent
34147         cygwin additions.
34148         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
34149         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34150         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
34151         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
34152         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
34153
34154 2009-08-14  Eric Blake  <ebb9@byu.net>
34155
34156         maint.mk: simplify update-copyright rule
34157         * top/maint.mk (update-copyright-local): Delete, and document how
34158         to do it in cfg.mk instead.
34159         (update-copyright-exclude-regexp): Delete, and document how to do
34160         it in .x-update-copyright instead.
34161         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
34162         exclude ChangeLog.
34163
34164 2009-08-14  Bruno Haible  <bruno@clisp.org>
34165
34166         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
34167
34168 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34169
34170         maint.mk: support update-copyright-env
34171         * top/maint.mk (update-copyright-env): Define place-holder.
34172         (update-copyright): Expand $(update-copyright-env) before
34173         invoking update-copyright.
34174
34175 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34176
34177         update-copyright: implement forced reformatting
34178         * build-aux/update-copyright: Implement and document
34179         UPDATE_COPYRIGHT_FORCE.
34180         * tests/test-update-copyright.sh: Test it.
34181
34182 2009-08-14  Eric Blake  <ebb9@byu.net>
34183         and Bruno Haible  <bruno@clisp.org>
34184
34185         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
34186         * tests/test-locale.c: Revert previous patch related to NULL.
34187         * tests/test-stdio.c: Likewise.
34188         * tests/test-stdlib.c: Likewise.
34189         * tests/test-string.c: Likewise.
34190         * tests/test-unistd.c: Likewise.
34191         * modules/time-tests (Depends-on): Add verify.
34192         * modules/wchar-tests (Depends-on): Likewise.
34193         * tests/test-time.c: Test for NULL compliance.
34194         * tests/test-wchar.c: Likewise.
34195         * modules/locale (Depends-on): Add stddef.
34196         * modules/stdio (Depends-on): Likewise.
34197         * modules/stdlib (Depends-on): Likewise.
34198         * modules/string (Depends-on): Likewise.
34199         * modules/time (Depends-on): Likewise.
34200         * modules/unistd (Depends-on): Likewise.
34201         * modules/wchar (Depends-on): Likewise.
34202         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
34203         * lib/stdlib.in.h (includes): Likewise.
34204         * lib/string.in.h (includes): Likewise.
34205         * lib/time.in.h (includes): Likewise.
34206         * lib/unistd.in.h (includes): Likewise.
34207         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
34208         replaced.
34209         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34210         * m4/stddef_h.m4: New file.
34211         * modules/stddef: Likewise.
34212         * lib/stddef.in.h: Likewise.
34213         * modules/stddef-tests: Likewise.
34214         * tests/test-stddef.c: Likewise.
34215         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
34216         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
34217         * doc/posix-headers/locale.texi (locale.h): Likewise.
34218         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
34219         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
34220         * doc/posix-headers/string.texi (string.h): Likewise.
34221         * doc/posix-headers/time.texi (time.h): Likewise.
34222         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
34223         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
34224
34225 2009-08-14  Eric Blake  <ebb9@byu.net>
34226
34227         doc: improve git diff of texinfo files
34228         * .gitattributes: Add rule for *.texi files, with hint on how to
34229         use it.
34230         Copied from m4, and based on a report by Bruno Haible.
34231
34232 2009-08-14  Bruno Haible  <bruno@clisp.org>
34233
34234         Disable multithread support by default on Cygwin 1.5.x for real.
34235         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
34236
34237 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34238
34239         update-copyright: much ado about intervals
34240         * build-aux/update-copyright: Implement and document
34241         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
34242         of copyright year intervals.
34243         Also, document UPDATE_COPYRIGHT_YEAR.
34244         * tests/test-update-copyright.sh: Test it.
34245
34246         update-copyright: convert 2-digit to 4-digit years
34247         * build-aux/update-copyright: Implement and document.
34248         * tests/test-update-copyright.sh: Update.
34249
34250 2009-08-14  Jim Meyering  <meyering@redhat.com>
34251
34252         test-exclude: avoid coreutils "make check" failure
34253         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
34254         just as in test-argmatch.c.
34255
34256 2009-08-13  Eric Blake  <ebb9@byu.net>
34257
34258         test-dup2: fix bad assumption
34259         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
34260         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
34261
34262         test-version-etc: fix CRLF portability issue
34263         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
34264         recognize \r.
34265         * tests/test-argp-version-etc-1.sh: Likewise.
34266
34267         getopt: update client modules
34268         * modules/argp (Depends-on): Use getopt-gnu.
34269         * modules/git-merge-changelog (Depends-on): Likewise.
34270         * modules/long-options (Depends-on): Likewise.
34271         * modules/xstrtol (Depends-on): Likewise.
34272
34273 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34274
34275         * tests/test-version-etc.sh: Don't fail on different
34276         project/version.  Don't fail on CRLF differences.  Rewrite to use
34277         multiple -e instead of multiple sed forks, suggested by Eric Blake
34278         <ebb9@byu.net>.
34279         * tests/test-argp-version-etc-1.sh: Likewise.
34280
34281 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34282
34283         * tests/test-version-etc.sh: Don't fail on different
34284         project/version.
34285
34286 2009-08-12  Bruno Haible  <bruno@clisp.org>
34287
34288         Tests for modules 'getopt-posix', 'getopt-gnu'.
34289         * modules/getopt-posix-tests: New file.
34290         * tests/test-getopt.c: New file.
34291         * tests/test-getopt.h: New file.
34292         * tests/test-getopt_long.h: New file.
34293
34294         New modules 'getopt-posix', 'getopt-gnu'.
34295         * modules/getopt-gnu: New file, renamed from modules/getopt.
34296         * modules/getopt-posix: New file.
34297         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
34298         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
34299         (gl_GETOPT): Remove macro.
34300         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
34301         Disable the test against BSD systems that declare optreset. Test
34302         against mingw bug. Test against lack of support of optional arguments
34303         on many platforms.
34304         * doc/glibc-headers/getopt.texi: Update module name and list of
34305         relevant platforms.
34306         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
34307         'getopt-gnu' and more portability problems.
34308         * NEWS: Mention the changes.
34309
34310 2009-08-12  Bruno Haible  <bruno@clisp.org>
34311
34312         Ensure that optarg etc. get declared by <unistd.h>.
34313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
34314         AC_USE_SYSTEM_EXTENSIONS.
34315         * modules/getopt (Depends-on): Add 'extensions'.
34316
34317 2009-08-12  Bruno Haible  <bruno@clisp.org>
34318
34319         Avoid test link errors.
34320         * modules/pipe-filter-ii-tests (Makefile.am): Define
34321         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
34322         * modules/pipe-filter-gi-tests (Makefile.am): Define
34323         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
34324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34325
34326 2009-08-12  Bruno Haible  <bruno@clisp.org>
34327
34328         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
34329         gl_GETOPT_SUBSTITUTE before.
34330         (gl_GETOPT): Use it.
34331         * m4/argp.m4 (gl_ARGP): Update.
34332         Reported by Sergey Poznyakoff.
34333
34334         * m4/getopt.m4: Reorder macros.
34335         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
34336         (gl_GETOPT_SUBSTITUTE): Remove macro.
34337
34338 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34339
34340         Minor improvement in gitlog-to-changelog
34341
34342         * build-aux/gitlog-to-changelog: New option `--format' makes
34343         output format string configurable.
34344
34345 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34346
34347         Optimize exclude: use hash tables for non-wildcard patterns.
34348
34349         * lib/exclude.c: Include hash.h and mbuiter.h
34350         (struct exclude_pattern, exclude_segment): New data types.
34351         (struct exclude): Rewrite.
34352         (fnmatch_pattern_has_wildcards): New function.
34353         (new_exclude_segment, free_exclude_segment): New functions.
34354         (excluded_file_pattern_p, excluded_file_name_p): New functions.
34355         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
34356         * lib/exclude.h (is_fnmatch_pattern): New prototype.
34357         * modules/exclude: Depend on hash and mbuiter.
34358
34359         * modules/exclude-tests: New file.
34360         * tests/test-exclude.c: New file.
34361         * tests/test-exclude1.sh: New file.
34362         * tests/test-exclude2.sh: New file.
34363         * tests/test-exclude3.sh: New file.
34364         * tests/test-exclude4.sh: New file.
34365         * tests/test-exclude5.sh: New file.
34366         * tests/test-exclude6.sh: New file.
34367         * tests/test-exclude7.sh: New file.
34368
34369 2009-08-12  Bruno Haible  <bruno@clisp.org>
34370
34371         Ensure that getopt() gets declared by <unistd.h>.
34372         * lib/unistd.in.h: Conditionally include getopt.h.
34373         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
34374         Set GNULIB_UNISTD_H_GETOPT.
34375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34376         GNULIB_UNISTD_H_GETOPT.
34377         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
34378
34379 2009-08-12  Bruno Haible  <bruno@clisp.org>
34380
34381         Clarify logic.
34382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
34383         gl_replace_getopt instead of GETOPT_H.
34384
34385 2009-08-12  Bruno Haible  <bruno@clisp.org>
34386
34387         * m4/getopt.m4: Add comments.
34388
34389 2009-08-12  Bruno Haible  <bruno@clisp.org>
34390
34391         Disable multithread support by default on Cygwin 1.5.x.
34392         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
34393         set gl_use_threads=no if not specified otherwise.
34394
34395 2009-08-11  Bruno Haible  <bruno@clisp.org>
34396
34397         Avoid compilation error on NetBSD 5.0.
34398         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
34399         * tests/test-stdio.c: Likewise.
34400         * tests/test-stdlib.c: Likewise.
34401         * tests/test-string.c: Likewise.
34402         * tests/test-unistd.c: Likewise.
34403         Reported by Greg Troxel <gdt@ir.bbn.com>
34404         at <https://savannah.gnu.org/support/?106973>.
34405
34406 2009-08-11  Bruno Haible  <bruno@clisp.org>
34407
34408         * modules/dup2-tests (Depends-on): Remove close.
34409
34410         Undo 2009-07-19 commit.
34411         * modules/acl-tests (Depends-on): Remove close.
34412         * modules/binary-io-tests (Depends-on): Likewise.
34413         * modules/closein-tests (Depends-on): Likewise.
34414         * modules/flock-tests (Depends-on): Likewise.
34415         * modules/fsync-tests (Depends-on): Likewise.
34416         * modules/lseek-tests (Depends-on): Likewise.
34417         * modules/pipe-tests (Depends-on): Likewise.
34418         * modules/posix_spawn-tests (Depends-on): Likewise.
34419         * modules/posix_spawnp-tests (Depends-on): Likewise.
34420         * modules/stat-time-tests (Depends-on): Likewise.
34421         * modules/yesno-tests (Depends-on): Likewise.
34422
34423 2009-08-10  Bruno Haible  <bruno@clisp.org>
34424
34425         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
34426
34427 2009-08-10  Bruno Haible  <bruno@clisp.org>
34428
34429         Fix a gcc warning.
34430         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
34431
34432 2009-08-10  Bruno Haible  <bruno@clisp.org>
34433
34434         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
34435         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
34436         not only the first time.
34437         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
34438         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
34439         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
34440         is 1, not only the the first time.
34441
34442 2009-08-10  Bruno Haible  <bruno@clisp.org>
34443
34444         Make it possible to use module 'gethostname' without module 'close'.
34445         * lib/unistd.in.h (close): Evoke a link error only if
34446         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34448         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34449         * modules/unistd (Makefile.am): Substitute
34450         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34451         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
34452         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34453         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34454         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34455         * modules/sys_ioctl (Makefile.am): Substitute
34456         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34457         * modules/socket (configure.ac): On native Windows, set
34458         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
34459         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34460         Reported by Sam Steingold <sds@gnu.org>.
34461
34462 2009-08-10  Bruno Haible  <bruno@clisp.org>
34463
34464         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
34465         * modules/ioctl (configure.ac): Likewise.
34466
34467 2009-08-10  Bruno Haible  <bruno@clisp.org>
34468
34469         Avoid collision between gnulib wrapper and libintl wrapper.
34470         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
34471         already defined in intl/printf.c.
34472         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
34473         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
34474
34475 2009-08-09  Bruno Haible  <bruno@clisp.org>
34476
34477         Make <sys/select.h> really self-contained, also on Solaris 10.
34478         * lib/sys_select.in.h: Include <string.h>.
34479         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
34480         Solaris 10 problem.
34481         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
34482         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
34483         Reported by Jim Meyering.
34484
34485 2009-08-09  Bruno Haible  <bruno@clisp.org>
34486
34487         Avoid warnings from 'aclocal' that are due to a use of macro name
34488         AM_XGETTEXT_OPTION that is not defined in automake.
34489         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
34490         automake.
34491         * modules/error (configure.ac): Likewise.
34492         * modules/propername (configure.ac): Likewise.
34493         * modules/vasprintf (configure.ac): Likewise.
34494         * modules/verror (configure.ac): Likewise.
34495         * modules/xprintf (configure.ac): Likewise.
34496         * modules/xvasprintf (configure.ac): Likewise.
34497
34498 2009-08-08  Bruno Haible  <bruno@clisp.org>
34499
34500         Avoid compilation error in C++ mode.
34501         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
34502         Reported by Sam Steingold <sds@gnu.org>.
34503
34504 2009-08-08  Bruno Haible  <bruno@clisp.org>
34505
34506         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
34507         for the various Unix platforms.
34508         * doc/posix-headers/limits.texi: Update platforms list regarding
34509         HOST_NAME_MAX.
34510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34511
34512 2009-08-07  Jim Meyering  <meyering@redhat.com>
34513
34514         selinux-at: fix typo in a comment
34515         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34516         Spotted by Paolo Bonzini.
34517
34518         selinux-at: remove redundant m4 code, add documentation
34519         * modules/selinux-at (configure.ac): Remove redundant code.
34520         LIB_SELINUX is already set via the dependent module, selinux-h.
34521         (Include): Add quotes around selinux-at.h.
34522         * lib/selinux-at.h: Add documentation.
34523         Reported by Bruno Haible in
34524         http://marc.info/?l=gnulib-bug&m=124958988300749
34525
34526 2009-08-07  Bruno Haible  <bruno@clisp.org>
34527
34528         Avoid link error on MacOS X 10.3 and 10.4.
34529         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34530         on non-ELF systems.
34531         * lib/argp-pv.c (argp_program_version): Likewise.
34532         Reported by Simon Josefsson.
34533
34534 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34535
34536         * tests/test-version-etc.sh: Use $EXEEXT.
34537
34538 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34539
34540         update-copyright: update documentation to point to maint.mk
34541         * build-aux/update-copyright: Here.
34542
34543 2009-08-06  Jim Meyering  <meyering@redhat.com>
34544
34545         maint.mk: support update-copyright-local
34546         * top/maint.mk (update-copyright-local): Define place-holder.
34547         (update-copyright): Depend on $(update-copyright-local).
34548
34549 2009-08-06  Jim Meyering  <meyering@redhat.com>
34550
34551         selinux-at: new module
34552         Initially written for coreutils, this module will soon be
34553         used by findutils, too.
34554         * MODULES.html.sh [Misc]: Add selinux-at.
34555         * lib/selinux-at.h: New file, from coreutils.
34556         * lib/selinux-at.c: Likewise.
34557         * modules/selinux-at: Likewise.
34558         (License): Change from LGPL to GPL, since it depends
34559         on the GPL'd openat module.
34560
34561         doc: update README
34562         * README: Remove references to cogito.
34563         Remove cvs-repo-updating instructions from 2007.
34564         Don't imply that CVS is better if you have limited disk space.
34565
34566 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34567
34568         update-copyright: support C-style comments
34569         * build-aux/update-copyright: Implement and document.
34570         * tests/test-update-copyright.sh: Test.
34571
34572 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34573
34574         update-copyright: support omitted "(C)"
34575         * build-aux/update-copyright: Implement and document.  Also,
34576         allow variable whitespace before "(C)".
34577         * tests/test-update-copyright.sh: Test.
34578
34579 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34580
34581         update-copyright: don't trip on non-FSF copyright statements
34582         * build-aux/update-copyright: Fix so that the first correctly
34583         formatted FSF copyright statement is recognized no matter what
34584         appears before it.  Update documentation.
34585         * tests/test-update-copyright.sh: Test that.
34586
34587 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34588
34589         update-copyright: clean up code a little
34590         * build-aux/update-copyright: Append "_re" to the name of any
34591         variable holding a regular expression.
34592         Replace "old" and "new" with "stmt" in variable names.
34593         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34594         handled correctly.
34595         Format code more consistently.
34596
34597 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34598
34599         update-copyright-tests: improve portability
34600         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34601         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34602
34603 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34604
34605         update-copyright: support @copyright{} and &copy;
34606         * build-aux/update-copyright: Implement and document.
34607         * tests/test-update-copyright.sh: Test.
34608
34609 2009-08-04  Jim Meyering  <meyering@redhat.com>
34610
34611         update-copyright-tests: correctly test EOL=\r\n handling
34612         * tests/test-update-copyright.sh: Put \r at the end of some lines
34613         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34614
34615         maint.mk: make update-copyright exclusion list more configurable
34616         * top/maint.mk (update-copyright): Default to excluding COPYING,
34617         but allow an override, in case someone does want to update that file.
34618
34619         maint.mk: don't update copyright date in COPYING
34620         * top/maint.mk (update-copyright): Exclude COPYING.
34621
34622         maint.mk: add a copyright-updating rule
34623         * top/maint.mk (update-copyright): New rule.
34624         Derived from coreutils/Makefile.am.
34625
34626         update-copyright: rename some variables
34627         * build-aux/update-copyright: Rename a few variables for clarity.
34628         Tweak syntax.  List Joel E. Denny as coauthor.
34629
34630 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34631
34632         update-copyright: fix bug for 2-digit last year and add tests
34633         * build-aux/update-copyright: Fix bug.
34634         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34635         specified.
34636         * modules/update-copyright-tests: New
34637         * tests/test-update-copyright.sh: New.
34638
34639 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34640
34641         update-copyright: handle leading tabs in line prefix
34642         * build-aux/update-copyright: Count leading tabs as 8 spaces
34643         when computing margin.  This helps with the formatting of
34644         ChangeLogs, for example.
34645         Fix documentation a little.
34646
34647 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34648
34649         update-copyright: support EOL=\r\n
34650         * build-aux/update-copyright: Implement that.
34651
34652 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34653
34654         update-copyright: automatically format copyright statements
34655         * build-aux/update-copyright: Implement that.
34656         Also, be a little more predictable and safer by always failing
34657         when the full copyright format is not perfectly recognized as an
34658         unbroken whole.  Discussed at
34659         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34660         Rewrite documentation.
34661
34662 2009-08-03  Bruno Haible  <bruno@clisp.org>
34663
34664         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34665
34666 2009-08-02  Bruno Haible  <bruno@clisp.org>
34667
34668         Tests for module 'uname'.
34669         * modules/uname-tests: New file.
34670         * tests/test-uname.c: New file.
34671
34672         New module 'uname'.
34673         * lib/uname.c: New file.
34674         * m4/uname.m4: New file.
34675         * modules/uname: New file.
34676         * doc/posix-functions/uname.texi: Mention the new module.
34677
34678 2009-08-02  Bruno Haible  <bruno@clisp.org>
34679
34680         Tests for module 'sys_utsname'.
34681         * modules/sys_utsname-tests: New file.
34682         * tests/test-sys_utsname.c: New file.
34683
34684         New module 'sys_utsname'.
34685         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34686         * m4/sys_utsname_h.m4: New file.
34687         * modules/sys_utsname: New file.
34688         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34689
34690 2009-08-02  Bruno Haible  <bruno@clisp.org>
34691
34692         Implicitly initialize the sockets library.
34693         * lib/gethostname.c: Include sockets.h.
34694         (rpl_gethostname): Invoke gl_sockets_startup.
34695         * lib/socket.c: Include sockets.h.
34696         (rpl_socket): Invoke gl_sockets_startup.
34697         * modules/gethostname (Depends-on): Add sockets.
34698         * modules/socket (Depends-on): Likewise.
34699         * tests/test-poll.c: Don't include sockets.h.
34700         (main): Don't invoke gl_sockets_startup.
34701         * tests/test-select.c: Don't include sockets.h.
34702         (main): Don't invoke gl_sockets_startup.
34703
34704 2009-08-02  Bruno Haible  <bruno@clisp.org>
34705
34706         Allow multiple calls to gl_sockets_startup.
34707         * lib/sockets.c (initialized_sockets_version): New variable.
34708         (gl_sockets_startup): Do nothing if already called for this or a higher
34709         version.
34710         (gl_sockets_cleanup): Reset initialized_sockets_version.
34711
34712 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34713
34714         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34715         different project/version.
34716
34717 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34718             Bruno Haible  <bruno@clisp.org>
34719
34720         Tests for module 'pipe-filter-gi'.
34721         * modules/pipe-filter-gi-tests: New file.
34722         * tests/test-pipe-filter-gi1.sh: New file.
34723         * tests/test-pipe-filter-gi1.c: New file.
34724         * tests/test-pipe-filter-gi2.sh: New file.
34725         * tests/test-pipe-filter-gi2-main.c: New file.
34726         * tests/test-pipe-filter-gi2-child.c: New file.
34727
34728         New module 'pipe-filter-gi'.
34729         * lib/pipe-filter-gi.c: New file.
34730         * modules/pipe-filter-gi: New file.
34731
34732 2009-08-02  Bruno Haible  <bruno@clisp.org>
34733             Paolo Bonzini  <bonzini@gnu.org>
34734
34735         Tests for module 'pipe-filter-ii'.
34736         * modules/pipe-filter-ii-tests: New file.
34737         * tests/test-pipe-filter-ii1.sh: New file.
34738         * tests/test-pipe-filter-ii1.c: New file.
34739         * tests/test-pipe-filter-ii2.sh: New file.
34740         * tests/test-pipe-filter-ii2-main.c: New file.
34741         * tests/test-pipe-filter-ii2-child.c: New file.
34742
34743         New module 'pipe-filter-ii'.
34744         * lib/pipe-filter.h: New file.
34745         * lib/pipe-filter-ii.c: New file.
34746         * lib/pipe-filter-aux.h: New file.
34747         * modules/pipe-filter-ii: New file.
34748
34749 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34750
34751         * lib/gc-libgcrypt.c: Change copyright to FSF.
34752         * lib/gc-gnulib.c: Likewise.
34753
34754 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34755
34756         * lib/gethostname.c: Include limits.h.
34757
34758 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34759             Bruno Haible  <bruno@clisp.org>
34760
34761         Ensure HOST_NAME_MAX as part of the gethostname module.
34762         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34763         define also HOST_NAME_MAX.
34764         * tests/test-gethostname.c: Include <limits.h>.
34765         (main): Check also HOST_NAME_MAX.
34766         * doc/posix-headers/limits.texi: Document the mingw problem.
34767
34768 2009-08-02  Bruno Haible  <bruno@clisp.org>
34769
34770         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34771         Add comments.
34772
34773 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34774
34775         * lib/gethostname.c: Add Windows wrapper.
34776         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34777         * modules/gethostname: Depend on sys_socket & errno, for also
34778         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34779         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34780
34781 2009-07-31  Jim Meyering  <meyering@redhat.com>
34782
34783         getloadavg: fix symbol name in comment
34784         * lib/getloadavg.c: Correct a typo I introduced when adding
34785         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34786         Matt Kraai spotted the problem.
34787
34788 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34789
34790         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34791         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34792         code also if ! defined N_NAME_POINTER.
34793         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34794         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34795         but the n_name member is a 12-byte array.
34796
34797 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34798
34799         update-copyright: generalize comment handling
34800         * build-aux/update-copyright: Handle copyright statements
34801         within more comment styles.
34802         Document usage.
34803         Report any file with an external copyright holder or parse failure.
34804
34805 2009-07-29  Jim Meyering  <meyering@redhat.com>
34806
34807         mktime: correct setting of REPLACE_MKTIME
34808         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34809
34810         update-copyright: new module
34811         * modules/update-copyright: New file.
34812         * build-aux/update-copyright: New file.
34813         * MODULES.html.sh (maint+release support): Add update-copyright.
34814
34815 2009-07-27  Bruno Haible  <bruno@clisp.org>
34816
34817         Fix compilation error when <ctime> is used and mktime is replaced.
34818         * lib/time.in.h (mktime): New declaration.
34819         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34820         REPLACE_MKTIME instead of defining mktime in config.h.
34821         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34822         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34823         Reported by Ross McFarland <rwmcfa1@neces.com>.
34824
34825 2009-07-27  Bruno Haible  <bruno@clisp.org>
34826
34827         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34828         Reported by Matt Kraai <mkraai@beckman.com>.
34829
34830 2009-07-25  Jim Meyering  <meyering@redhat.com>
34831
34832         maint.mk: avoid warnings about missing files
34833         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34834         diagnostic when .prev-version does not exist.
34835         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34836         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34837         nonexistent cfg.mk.
34838         Suggestions from Simon Josefsson.
34839
34840 2009-07-25  Bruno Haible  <bruno@clisp.org>
34841
34842         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34843         defined as macros. Needed on QNX 6.4.1.
34844         Reported by Matt Kraai <mkraai@beckman.com>.
34845
34846 2009-07-23  Jim Meyering  <meyering@redhat.com>
34847
34848         maint.mk: invoke "make dist" with a working value of XZ_OPT
34849         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34850
34851 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34852
34853         Make fseeko.c compile on QNX.
34854         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34855
34856 2009-07-22  Peter Simons  <simons@cryp.to>
34857
34858         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34859         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34860         * lib/md4.h: Likewise.
34861         * lib/md5.h: Likewise.
34862         * lib/sha1.h: Likewise.
34863         * lib/sha256.h: Likewise.
34864         * lib/sha512.h: Likewise.
34865
34866         tests-sha1: don't assign literal string to 'char *' variable
34867         * tests/test-sha1.c (main): Declare locals with "const" to match
34868         attributes of the right hand side.
34869
34870 2009-07-21  Eric Blake  <ebb9@byu.net>
34871
34872         dup2: fix more mingw problems
34873         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34874         fd to itself.
34875         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34876         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34877         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34878         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34879         care of mingw bugs.
34880
34881 2009-07-21  Jim Meyering  <meyering@redhat.com>
34882
34883         vc-list-files: avoid failure when /bin/sh is dash
34884         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34885         On some Debian based systems, /bin/sh is a symlink to dash, and running
34886         this command would omit the "/" following each 'tests' prefix:
34887           dash -x build-aux/vc-list-files -C . tests
34888         That is because bash and dash work differently:
34889           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34890           bash ok
34891           dash odd
34892
34893 2009-07-21  Eric Blake  <ebb9@byu.net>
34894
34895         dup2-tests: test previous patch
34896         * modules/dup2-tests: New file.
34897         * tests/test-dup2.c: Likewise.
34898         * tests/test-open.c (main): Avoid unspecified behavior.
34899         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34900         test.
34901
34902         dup2: work around mingw and cygwin 1.5 bug
34903         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34905         * modules/unistd (Makefile.am): Substitute it.
34906         * lib/unistd.in.h (dup2): Declare the replacement.
34907         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34908         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34909         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34910         * modules/execute (Depends-on): Add dup2.
34911         * modules/fseterr (Depends-on): Likewise.
34912         * modules/pipe (Depends-on): Likewise.
34913         * modules/posix_spawn-internal (Depends-on): Likewise.
34914
34915 2009-07-21  Bruno Haible  <bruno@clisp.org>
34916
34917         * modules/.gitattributes: New file.
34918
34919 2009-07-20  Bruno Haible  <bruno@clisp.org>
34920
34921         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34922         (main): Use it.
34923
34924 2009-07-20  Eric Blake  <ebb9@byu.net>
34925
34926         test-pipe: make a bit more robust.
34927         * tests/test-pipe.c (myerr): Allow error messages regardless of
34928         what we do to stderr.
34929         (test_pipe): Rearrange to avoid deadlock.
34930         (child_main): Try a larger read, to ensure we avoided deadlock.
34931         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34932         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34933         if misused.
34934
34935 2009-07-19  Jim Meyering  <meyering@redhat.com>
34936
34937         fts: avoid false-positive cycle-detection
34938         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34939         for each new command line argument.
34940
34941 2009-07-19  Bruno Haible  <bruno@clisp.org>
34942
34943         Fix build error on mingw with the modules sys_select and unistd.
34944         * modules/acl-tests (Depends-on): Add close.
34945         * modules/binary-io-tests (Depends-on): Likewise.
34946         * modules/closein-tests (Depends-on): Likewise.
34947         * modules/flock-tests (Depends-on): Likewise.
34948         * modules/fsync-tests (Depends-on): Likewise.
34949         * modules/lseek-tests (Depends-on): Likewise.
34950         * modules/pipe-tests (Depends-on): Likewise.
34951         * modules/posix_spawn-tests (Depends-on): Likewise.
34952         * modules/posix_spawnp-tests (Depends-on): Likewise.
34953         * modules/stat-time-tests (Depends-on): Likewise.
34954         * modules/yesno-tests (Depends-on): Likewise.
34955
34956 2009-07-19  Bruno Haible  <bruno@clisp.org>
34957
34958         Unify conditionals.
34959         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34960         macros, not at the compiler macros.
34961         * lib/pipe.c: Likewise.
34962         * lib/execute.c: Likewise.
34963         * lib/spawni.c: Likewise.
34964
34965 2009-07-19  Bruno Haible  <bruno@clisp.org>
34966
34967         Fix handling of closed stdin/stdout/stderr on mingw.
34968         * lib/w32spawn.h: Include unistd.h.
34969         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34970         file descriptor with O_NOINHERIT flag.
34971         (fd_safer_noinherit): New function, based on fd-safer.c.
34972         (dup_safer_noinherit): New function, based on dup-safer.c.
34973         (undup_safer_noinherit): New function.
34974         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34975         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34976         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34977         instead of fd_safer.
34978         * tests/test-pipe.c: Include <windows.h>.
34979         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34980         result.
34981
34982         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34983         from main.
34984         (test_pipe): Pass an extra argument for disambiguation.
34985         (main): Invoke parent_main or child_main.
34986
34987         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34988         consistently.
34989
34990 2009-07-18  Eric Blake  <ebb9@byu.net>
34991
34992         test-pipe: fix mingw build
34993         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34994
34995 2009-07-18  Bruno Haible  <bruno@clisp.org>
34996
34997         * modules/pipe-tests (Makefile.am): Fix typo.
34998
34999 2009-07-18  Eric Blake  <ebb9@byu.net>
35000
35001         error: fix mingw build
35002         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
35003         Reported by Bruno Haible.
35004
35005         error: avoid undefined use of stdout
35006         * lib/error.c (error, error_at_line): Check that fd 1 is open
35007         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
35008         is handling faults and the close_stdout module wants to report the
35009         detection of closed stdout as an error.
35010
35011 2009-07-17  Eric Blake  <ebb9@byu.net>
35012
35013         pipe: be robust in face of closed fds
35014         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
35015         should cause child to misbehave.
35016         * modules/pipe-tests: New module.
35017         * tests/test-pipe.c: New file.
35018         * tests/test-pipe.sh: New file.
35019         Reported by Akim Demaille.
35020
35021 2009-07-14  Bruno Haible  <bruno@clisp.org>
35022
35023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
35024         Reported by anonymous kc.
35025
35026 2009-07-07  Jim Meyering  <meyering@redhat.com>
35027
35028         maint.mk: don't look for translatable strings in *.m4 or *.mk
35029         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
35030         when searching for translatable strings.
35031
35032 2009-07-05  Jim Meyering  <meyering@redhat.com>
35033
35034         remove superfluous parentheses in STREQ definition
35035         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
35036         * lib/getugroups.c (STREQ): Likewise.
35037         * lib/fnmatch.c (STREQ): Likewise.
35038         Spotted by Bruno Haible.
35039
35040 2009-07-04  Jim Meyering  <meyering@redhat.com>
35041
35042         argv-iter: new module
35043         * MODULES.html.sh: Add argv-iter.
35044         * lib/argv-iter.c, lib/argv-iter.h: New files.
35045         * modules/argv-iter: New file.
35046         * modules/argv-iter-tests: New file.
35047         * tests/test-argv-iter.c: Test it.
35048
35049 2009-07-04  Bruno Haible  <bruno@clisp.org>
35050
35051         Fix assertion.
35052         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
35053         contains more exact copies of a given entry than file2, leave the extra
35054         copies unpaired rather than aborting.
35055         Reported by Eric Blake.
35056
35057 2009-07-02  Bruno Haible  <bruno@clisp.org>
35058
35059         Speedup git-merge-changelog for git cherry-pick.
35060         * lib/git-merge-changelog.c (struct entries_mapping): New type.
35061         (entries_mapping_get): New function, extracted from compute_mapping.
35062         (entries_mapping_reverse_get): New function.
35063         (compute_mapping): Add a 'full' argument. Return the result in a
35064         'struct entries_mapping'.
35065         (main): Update. Access the mappings through entries_mapping_get.
35066         Reported by Eric Blake.
35067
35068 2009-07-02  Bruno Haible  <bruno@clisp.org>
35069
35070         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
35071         best_i.
35072
35073 2009-07-02  Bruno Haible  <bruno@clisp.org>
35074
35075         Speed up approximate search for matching ChangeLog entries.
35076         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
35077         argument. Call fstrcmp_bounded instead of fstrcmp.
35078         (compute_mapping, try_split_merged_entry, main): Update callers.
35079
35080 2009-07-02  Bruno Haible  <bruno@clisp.org>
35081
35082         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
35083
35084 2009-06-30  Bruno Haible  <bruno@clisp.org>
35085
35086         Reduce the number of uc_is_cased calls.
35087         * lib/unicase.h (casing_suffix_context_t): Add
35088         'first_char_except_ignorable' field.
35089         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
35090         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
35091         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
35092         Update initializer.
35093         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
35094         case-ignorable characters.
35095         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
35096         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
35097         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
35098         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
35099         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
35100
35101 2009-06-30  Bruno Haible  <bruno@clisp.org>
35102
35103         Tests for module 'unicase/ignorable'.
35104         * modules/unicase/ignorable-tests: New file.
35105         * tests/unicase/test-ignorable.c: New file, generated by
35106         gen-uni-tables.
35107
35108         Tests for module 'unicase/cased'.
35109         * modules/unicase/cased-tests: New file.
35110         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
35111         * tests/unicase/test-predicate-part1.h: New file, derived from
35112         tests/unictype/test-predicate-part1.h.
35113         * tests/unicase/test-predicate-part2.h: New file, same as
35114         tests/unictype/test-predicate-part2.h.
35115
35116         Fix evaluation of "Before C" condition of FINAL_SIGMA.
35117         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
35118         (output_casing_properties): New function.
35119         (main): Call it.
35120         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
35121         * lib/unicase/cased.c: Include unictype/bitmap.h.
35122         (uc_is_cased): Define through a bitmap lookup.
35123         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
35124         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
35125         (uc_is_case_ignorable): Define through a bitmap lookup.
35126         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
35127         lib/unictype/bitmap.h.
35128         (Depends-on): Add inline. Clean up.
35129         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
35130         lib/unictype/bitmap.h.
35131         (Depends-on): Add inline. Clean up.
35132         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
35133         recognition.
35134         * tests/unicase/test-u16-tolower.c (main): Likewise.
35135         * tests/unicase/test-u32-tolower.c (main): Likewise.
35136
35137 2009-06-30  Bruno Haible  <bruno@clisp.org>
35138
35139         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
35140         * lib/unicase/u16-casemap.c: Likewise.
35141         * lib/unicase/u32-casemap.c: Likewise.
35142
35143 2009-06-29  Bruno Haible  <bruno@clisp.org>
35144
35145         Define u32_casefold as a wrapper around u32_ct_casefold.
35146         * lib/unicase/u32-casefold.c: Update.
35147         * modules/unicase/u32-casefold (Depends-on): Add
35148         unicase/u32-ct-casefold, unicase/empty-prefix-context,
35149         unicase/empty-suffix-context. Clean up.
35150
35151         Define u16_casefold as a wrapper around u16_ct_casefold.
35152         * lib/unicase/u16-casefold.c: Update.
35153         * modules/unicase/u16-casefold (Depends-on): Add
35154         unicase/u16-ct-casefold, unicase/empty-prefix-context,
35155         unicase/empty-suffix-context. Clean up.
35156
35157         Define u8_casefold as a wrapper around u8_ct_casefold.
35158         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
35159         * lib/unicase/u8-casefold.c: Update.
35160         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
35161         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35162
35163         Define u32_totitle as a wrapper around u32_ct_totitle.
35164         * lib/unicase/u32-totitle.c: Update.
35165         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
35166         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35167
35168         Define u16_totitle as a wrapper around u16_ct_totitle.
35169         * lib/unicase/u16-totitle.c: Update.
35170         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
35171         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35172
35173         Define u8_totitle as a wrapper around u8_ct_totitle.
35174         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
35175         functions.
35176         (FUNC): Delegate to U_CT_TOTITLE.
35177         * lib/unicase/u8-totitle.c: Update.
35178         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
35179         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35180
35181         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
35182         invocation.
35183         * modules/unicase/u32-tolower (Depends-on): Add
35184         unicase/empty-prefix-context, unicase/empty-suffix-context.
35185
35186         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
35187         invocation.
35188         * modules/unicase/u16-tolower (Depends-on): Add
35189         unicase/empty-prefix-context, unicase/empty-suffix-context.
35190
35191         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
35192         * modules/unicase/u8-tolower (Depends-on): Add
35193         unicase/empty-prefix-context, unicase/empty-suffix-context.
35194
35195         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
35196         invocation.
35197         * modules/unicase/u32-toupper (Depends-on): Add
35198         unicase/empty-prefix-context, unicase/empty-suffix-context.
35199
35200         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
35201         invocation.
35202         * modules/unicase/u16-toupper (Depends-on): Add
35203         unicase/empty-prefix-context, unicase/empty-suffix-context.
35204
35205         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
35206         * modules/unicase/u8-toupper (Depends-on): Add
35207         unicase/empty-prefix-context, unicase/empty-suffix-context.
35208
35209         New module 'unicase/u32-ct-casefold'.
35210         * lib/unicase/u32-ct-casefold.c: New file.
35211         * modules/unicase/u32-ct-casefold: New file.
35212
35213         New module 'unicase/u16-ct-casefold'.
35214         * lib/unicase/u16-ct-casefold.c: New file.
35215         * modules/unicase/u16-ct-casefold: New file.
35216
35217         New module 'unicase/u8-ct-casefold'.
35218         * lib/unicase/u8-ct-casefold.c: New file.
35219         * lib/unicase/u-ct-casefold.h: New file, derived from
35220         lib/unicase/u-casefold.h.
35221         * modules/unicase/u8-ct-casefold: New file.
35222
35223         New module 'unicase/u32-ct-totitle'.
35224         * lib/unicase/u32-ct-totitle.c: New file.
35225         * modules/unicase/u32-ct-totitle: New file.
35226
35227         New module 'unicase/u16-ct-totitle'.
35228         * lib/unicase/u16-ct-totitle.c: New file.
35229         * modules/unicase/u16-ct-totitle: New file.
35230
35231         New module 'unicase/u8-ct-totitle'.
35232         * lib/unicase/u8-ct-totitle.c: New file.
35233         * lib/unicase/u-ct-totitle.h: New file, derived from
35234         lib/unicase/u-totitle.h.
35235         * modules/unicase/u8-ct-totitle: New file.
35236
35237         New module 'unicase/u32-ct-tolower'.
35238         * lib/unicase/u32-ct-tolower.c: New file.
35239         * modules/unicase/u32-ct-tolower: New file.
35240
35241         New module 'unicase/u16-ct-tolower'.
35242         * lib/unicase/u16-ct-tolower.c: New file.
35243         * modules/unicase/u16-ct-tolower: New file.
35244
35245         New module 'unicase/u8-ct-tolower'.
35246         * lib/unicase/u8-ct-tolower.c: New file.
35247         * modules/unicase/u8-ct-tolower: New file.
35248
35249         New module 'unicase/u32-ct-toupper'.
35250         * lib/unicase/u32-ct-toupper.c: New file.
35251         * modules/unicase/u32-ct-toupper: New file.
35252
35253         New module 'unicase/u16-ct-toupper'.
35254         * lib/unicase/u16-ct-toupper.c: New file.
35255         * modules/unicase/u16-ct-toupper: New file.
35256
35257         New module 'unicase/u8-ct-toupper'.
35258         * lib/unicase/u8-ct-toupper.c: New file.
35259         * modules/unicase/u8-ct-toupper: New file.
35260
35261         Add context arguments to u*_casemap functions.
35262         * lib/unicase/unicasemap.h: Include unicase.h.
35263         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
35264         suffix_context arguments.
35265         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
35266         functions.
35267         (FUNC): Add prefix_context and suffix_context arguments. Use
35268         uc_is_cased and uc_is_case_ignorable.
35269         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
35270         * lib/unicase/u16-casemap.c: Likewise.
35271         * lib/unicase/u32-casemap.c: Likewise.
35272         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
35273         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35274         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
35275         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35276         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
35277         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35278
35279         New module 'unicase/u32-suffix-context'.
35280         * lib/unicase/u32-suffix-context.c: New file.
35281         * modules/unicase/u32-suffix-context: New file.
35282
35283         New module 'unicase/u16-suffix-context'.
35284         * lib/unicase/u16-suffix-context.c: New file.
35285         * modules/unicase/u16-suffix-context: New file.
35286
35287         New module 'unicase/u8-suffix-context'.
35288         * lib/unicase/u8-suffix-context.c: New file.
35289         * lib/unicase/u-suffix-context.h: New file.
35290         * modules/unicase/u8-suffix-context: New file.
35291
35292         New module 'unicase/empty-suffix-context'.
35293         * lib/unicase/empty-suffix-context.c: New file.
35294         * modules/unicase/empty-suffix-context: New file.
35295
35296         New module 'unicase/u32-prefix-context'.
35297         * lib/unicase/u32-prefix-context.c: New file.
35298         * modules/unicase/u32-prefix-context: New file.
35299
35300         New module 'unicase/u16-prefix-context'.
35301         * lib/unicase/u16-prefix-context.c: New file.
35302         * modules/unicase/u16-prefix-context: New file.
35303
35304         New module 'unicase/u8-prefix-context'.
35305         * lib/unicase/u8-prefix-context.c: New file.
35306         * lib/unicase/u-prefix-context.h: New file.
35307         * lib/unicase/context.h: New file.
35308         * modules/unicase/u8-prefix-context: New file.
35309
35310         New module 'unicase/empty-prefix-context'.
35311         * lib/unicase/empty-prefix-context.c: New file.
35312         * modules/unicase/empty-prefix-context: New file.
35313
35314         New module 'unicase/ignorable'.
35315         * lib/unicase/ignorable.c: New file.
35316         * modules/unicase/ignorable: New file.
35317
35318         New module 'unicase/cased'.
35319         * lib/unicase/caseprop.h: New file.
35320         * lib/unicase/cased.c: New file.
35321         * modules/unicase/cased: New file.
35322
35323         New functions for case mapping of substrings.
35324         * lib/unicase.h (casing_prefix_context_t): New type.
35325         (unicase_empty_prefix_context): New variable.
35326         (u8_casing_prefix_context, u16_casing_prefix_context,
35327         u32_casing_prefix_context, u8_casing_prefixes_context,
35328         u16_casing_prefixes_context, u32_casing_prefixes_context): New
35329         declarations.
35330         (casing_suffix_context_t): New type.
35331         (unicase_empty_suffix_context): New variable.
35332         (u8_casing_suffix_context, u16_casing_suffix_context,
35333         u32_casing_suffix_context, u8_casing_suffixes_context,
35334         u16_casing_suffixes_context, u32_casing_suffixes_context,
35335         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
35336         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
35337         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
35338         declarations.
35339
35340 2009-06-28  Jim Meyering  <meyering@redhat.com>
35341
35342         boostrap: indent only with spaces
35343         * build-aux/bootstrap: Indent only with spaces, never TABs.
35344
35345         bootstrap: split long lines
35346         * build-aux/bootstrap: Keep line length < 80.
35347
35348         bootstrap: sync from coreutils
35349         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
35350         just as autoreconf does.  Verify a list of prerequisite
35351         package-name,version-number pairs if defined in bootstrap.conf.
35352         Refer to README-prereq, if prerequisites are not satisfied.
35353
35354 2009-06-27  Eric Blake  <ebb9@byu.net>
35355
35356         tests: add test for bogus NULL definition
35357         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
35358         * tests/test-stdlib.c: Likewise.
35359         * tests/test-string.c: Likewise.
35360         * tests/test-locale.c: Likewise.
35361         * tests/test-unistd.c: Likewise.
35362         * modules/stdio-tests (Depends-on): Add verify.
35363         * modules/stdlib-tests (Depends-on): Likewise.
35364         * modules/string-tests (Depends-on): Likewise.
35365         * modules/locale-tests (Depends-on): Likewise.
35366         * modules/unistd-tests (Depends-on): Likewise.
35367
35368 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
35369
35370         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
35371         self-explaining comment.
35372         * m4/selinux-selinux-h: Update serial.
35373         (gl_LIBSELINUX): New macro, adding a warning for missing development
35374         packages to code extracted from...
35375         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
35376         Add warning for missing development packages here, too.
35377
35378 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
35379
35380         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
35381
35382 2009-06-25  Eric Blake  <ebb9@byu.net>
35383
35384         version-etc: fix regression
35385         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
35386         gcc.
35387         (version_etc): Use it, to catch bugs with trailing NULL.
35388         * lib/version-etc.c (version_etc_arn): Delete unused argument.
35389         (version_etc_va): Fix logic bug.
35390         * modules/version-etc-tests: Add test.
35391         * tests/test-version-etc.c: New file.
35392         * tests/test-version-etc.sh: Likewise.
35393
35394 2009-06-25  Sam Steingold  <sds@gnu.org>
35395
35396         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
35397         mbtowc declaration.
35398
35399 2009-06-25  Eric Blake  <ebb9@byu.net>
35400
35401         fpurge: migrate into <stdio.h>
35402         * lib/fpurge.h: Delete...
35403         * lib/stdio.in.h (fpurge): ...and declare here, instead.
35404         * lib/fpurge.c (fpurge): Change declaring header.
35405         * modules/fpurge (Files): Drop deleted file.
35406         (Depends-on): Add stdio.
35407         (configure.ac): Set witness.
35408         * modules/stdio (Makefile.am): Support fpurge macros.
35409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35410         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
35411         * lib/fflush.c: Update client.
35412         * tests/test-fpurge.c: Likewise.
35413         * NEWS: Mention the change.
35414
35415 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35416
35417         * lib/argp-version-etc.c (program_authors): Add const
35418         qualifier.
35419         * lib/version-etc.c: Fix typos in the comments.
35420         * modules/argp-version-etc: Depends on version-etc.
35421
35422 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35423
35424         argp-version-etc: new module.
35425
35426         * lib/argp-version-etc.c: New file.
35427         * lib/argp-version-etc.h: New file.
35428         * modules/argp-version-etc: New file.
35429         * modules/argp-version-etc-tests: New file.
35430         * tests/test-argp-version-etc.c: New test.
35431         * tests/test-argp-version-etc-1.sh: New test.
35432
35433 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35434
35435         Provide additional interfaces and documentation for version-etc
35436         module.
35437
35438         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
35439         interfaces.
35440         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
35441         prototypes.
35442
35443 2009-06-24  Bruno Haible  <bruno@clisp.org>
35444
35445         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
35446         HAVE_LIB${NAME} macro.
35447         Reported by Sam Steingold <sds@gnu.org>.
35448
35449 2009-06-23  Simon Josefsson  <simon@josefsson.org>
35450
35451         * modules/hash-tests (test_hash_LDADD): Link to libintl when
35452         needed.
35453
35454 2009-06-21  Bruno Haible  <bruno@clisp.org>
35455
35456         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
35457         work.
35458         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
35459         together with LIB${NAME}, LTLIB${NAME}.
35460         Reported by Sam Steingold <sds@gnu.org>.
35461
35462 2009-06-20  Jim Meyering  <meyering@redhat.com>
35463
35464         tests: make sc_require_test_exit_idiom more generic
35465         * top/maint.mk (Exit_witness_file): New overridable variable.
35466         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
35467         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
35468
35469 2009-06-19  Jim Meyering  <meyering@redhat.com>
35470
35471         hash: reverse order of src/dst parameters in an internal interface
35472         * lib/hash.c (transfer_entries): Reverse order of parameters to
35473         put DST before SRC.  Adjust callers.
35474
35475         tests: test-hash: avoid wholesale duplication
35476         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
35477         Instead, use a loop and add a single conditional.
35478
35479         tests: test-hash: allow seed selection via a command line argument
35480         * tests/test-hash.c (get_seed): New function.
35481         (main): Use it.
35482
35483 2009-06-19  Eric Blake  <ebb9@byu.net>
35484
35485         hash: avoid memory leak on allocation failure
35486         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
35487         failure.  Factor repeated algorithm...
35488         (transfer_entries): ...into new helper routine.
35489         (hash_delete): React to hash_rehash return value.
35490
35491         hash: reduce memory pressure in hash_rehash no-op case
35492         * lib/hash.c (next_prime): Avoid overflow.
35493         (hash_initialize): Factor bucket size computation...
35494         (compute_bucket_size): ...into new helper function.
35495         (hash_rehash): Use new function and open coding to reduce memory
35496         pressure, and avoid a memory leak in USE_OBSTACK code.
35497         Reported by Jim Meyering.
35498
35499 2009-06-18  Eric Blake  <ebb9@byu.net>
35500
35501         hash: make rotation more obvious
35502         * modules/hash (Depends-on): Add bitrotate and stdint.
35503         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
35504         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
35505         (SIZE_MAX): Rely on headers for definition.
35506         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
35507         (raw_hasher): Use rotr_sz.
35508         Suggested by Jim Meyering.
35509
35510         hash: fix memory leak in last patch
35511         * lib/hash.c (hash_rehash): Avoid memory leak.
35512
35513         hash: avoid no-op rehashing
35514         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35515
35516         hash: provide default callback functions
35517         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35518         (hash_initialize): Use them as defaults.
35519         * tests/test-hash.c (main): Test this.
35520
35521         hash: minor optimization
35522         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35523         when possible.
35524         (hash_initialize): Document this promise.
35525         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35526         * tests/test-hash.c (hash_compare_strings): Test this.
35527
35528 2009-06-18  Bruno Haible  <bruno@clisp.org>
35529
35530         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35531         going to be replaced anyway.
35532
35533 2009-06-18  Bruno Haible  <bruno@clisp.org>
35534
35535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35536         in one place.
35537         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35538         be replaced anyway.
35539
35540 2009-06-18  Eric Blake  <ebb9@byu.net>
35541
35542         hash: check for resize before insertion
35543         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35544         threshold before insertion, so that a pathological hash_rehash
35545         that fills every bucket can still trigger another rehash.
35546
35547 2009-06-18  Jim Meyering  <meyering@redhat.com>
35548
35549         hash-tests: add a loop around the small tests
35550         * tests/test-hash.c (main): Repeat small tests with selected
35551         small initial table sizes.
35552
35553 2009-06-17  Eric Blake  <ebb9@byu.net>
35554
35555         hash: minor cleanups
35556         * lib/hash.h (hash_entry): Make opaque, by moving...
35557         * lib/hash.c (hash_entry): ...here.
35558         (hash_insert): Clarify restrictions on what can be inserted.
35559         (hash_get_next): Clarify when it is safe to remove an element
35560         during traversal.
35561         (check_tuning): Skip verification when tuning is known safe.
35562         (hash_initialize): Clarify restrictions on tuning.
35563
35564 2009-06-17  Jim Meyering  <jim@meyering.net>
35565         and Eric Blake  <ebb9@byu.net>
35566
35567         hash-tests: new module
35568         * modules/hash-tests: New file.
35569         * tests/test-hash.c: New file.
35570
35571 2009-06-17  Eric Blake  <ebb9@byu.net>
35572
35573         strstr-simple: document new module
35574         * MODULES.html.sh: Document new module.
35575
35576         strstr, strcasestr: replace on platforms with broken memchr
35577         * modules/strstr: Split into...
35578         * modules/strstr-simple: ...new module that does not care about
35579         performance, but does care about glibc bug.
35580         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35581         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35582         if platform memchr is broken, per Debian bug 521737.
35583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35584         memchr.
35585         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35586         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35587         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35588         * modules/mountlist (Depends-on): Add strstr-simple.
35589         * modules/gen-uni-tables (Depends-on): Likewise.
35590         * modules/argz (Depends-on): Add strstr.
35591
35592 2009-06-17  Bruno Haible  <bruno@clisp.org>
35593
35594         * modules/posix_spawn-internal (Depends-on): Add errno.
35595
35596 2009-06-17  Bruno Haible  <bruno@clisp.org>
35597
35598         Define missing ESTALE on Interix 3.5.
35599         * lib/errno.in.h (ESTALE): Assign a value if missing.
35600         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35601         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35602         missing.
35603         * doc/posix-headers/errno.texi: Mention the Interix bug.
35604         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35605
35606 2009-06-15  Eric Blake  <ebb9@byu.net>
35607
35608         memchr, memchr2: add valgrind exception
35609         * lib/memchr.valgrind: New file.
35610         * lib/memchr2.valgrind: New file.
35611         * modules/memchr (Files): Distribute valgrind file.
35612         * modules/memchr2 (Files): Likewise.
35613
35614         docs: memchr is no longer obsolete
35615         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35616         * lib/string.in.h (memchr): Simplify logic.
35617
35618 2009-06-14  Jim Meyering  <meyering@redhat.com>
35619
35620         link-follow: fix the "checking..." message to not mention trailing slash
35621         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35622         never considered trailing slashes.
35623
35624 2009-06-14  Bruno Haible  <bruno@clisp.org>
35625
35626         * m4/memchr.m4: Mention also the bug on IA-64.
35627         * doc/posix-functions/memchr.texi: Likewise.
35628
35629 2009-06-12  Eric Blake  <ebb9@byu.net>
35630
35631         memchr: detect broken x86_64 and alpha implementations
35632         * modules/memchr-tests (Depends-on): Move mmap detection...
35633         * modules/memchr (Depends-on): ...here.
35634         (configure.ac): Set indicator.
35635         * lib/string.in.h (memchr): Declare replacement.
35636         * modules/string (Makefile.am): Trigger replacement.
35637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35638         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35639         bugs.
35640         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35641         * modules/getpagesize (License): Relax license.
35642
35643 2009-06-11  Bruno Haible  <bruno@clisp.org>
35644
35645         * lib/idpriv.h: Add more references.
35646
35647 2009-06-08  Bruno Haible  <bruno@clisp.org>
35648
35649         Tests for module 'idpriv-droptemp'.
35650         * modules/idpriv-droptemp-tests: New file.
35651         * tests/test-idpriv-droptemp.sh: New file.
35652         * tests/test-idpriv-droptemp.su.sh: New file.
35653         * tests/test-idpriv-droptemp.c: New file.
35654
35655         New module 'idpriv-droptemp'.
35656         * lib/idpriv-droptemp.c: New file.
35657         * modules/idpriv-droptemp: New file.
35658
35659 2009-06-08  Bruno Haible  <bruno@clisp.org>
35660
35661         Tests for module 'idpriv-drop'.
35662         * modules/idpriv-drop-tests: New file.
35663         * tests/test-idpriv-drop.sh: New file.
35664         * tests/test-idpriv-drop.su.sh: New file.
35665         * tests/test-idpriv-drop.c: New file.
35666
35667         New module 'idpriv-drop'.
35668         * lib/idpriv.h: New file.
35669         * lib-idpriv-drop.c: New file.
35670         * m4/idpriv.m4: New file.
35671         * modules/idpriv-drop: New file.
35672
35673 2009-06-08  Bruno Haible  <bruno@clisp.org>
35674
35675         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35676         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35677         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35678         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35679         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35680         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35681         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35682
35683 2009-06-08  Eric Blake  <ebb9@byu.net>
35684
35685         test-strstr: use memory fence, when possible
35686         * tests/test-strstr.c (main): Use memory fence, in order to be
35687         more likely to trigger Debian bug 521737.
35688         * modules/strstr-tests (Files): Pull in additional files.
35689
35690         memchr: no longer obsolete, for wider field testing
35691         * modules/memchr (Status, Notice): Delete, this module is no
35692         longer obsolete.
35693         * modules/vasnprintf (Depends-on): Add memchr.
35694
35695 2009-06-07  Jim Meyering  <meyering@redhat.com>
35696
35697         hash: declare some functions with the warn_unused_result attribute
35698         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35699
35700 2009-06-07  Bruno Haible  <bruno@clisp.org>
35701
35702         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35703         Reported by Eric Blake.
35704
35705 2009-06-06  Eric Blake  <ebb9@byu.net>
35706
35707         test-alignof: fix typo with long double
35708         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35709         compiler error.
35710
35711 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35712
35713         Escape non-texinfo { and }s.
35714         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35715         markup error.
35716
35717 2009-06-04  Jim Meyering  <meyering@redhat.com>
35718
35719         gitlog-to-changelog: don't infloop on an empty commit log
35720         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35721         Reported by Boris Petersen <transacid@centerim.org>.
35722
35723 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35724
35725         version-etc: extend for packagers
35726         Add three new configure options, intended for packagers:
35727           --with-packager="packager name"
35728           --with-packager-version="packager-specific version"
35729           --with-packager-bug-reports="packager bug reporting"
35730         An example with coreutils:
35731           $ ./configure \
35732             --with-packager=Gentoo \
35733             --with-packager-bug-report=http://bugs.gentoo.org/ \
35734             --with-packager-version="patchset 1.6"
35735           $ ./src/ls --version | head -n2
35736           ls (GNU coreutils) 7.1-dirty
35737           Packaged by Gentoo (patchset 1.6)
35738         Note that the bug reporting info via --help doesn't show up because
35739         coreutils uses its own custom emit_bug_reporting_address() implementation
35740         in src/system.h.  If it didn't, it'd look like:
35741           $ ./src/ls --help | tail -n4
35742           Report bugs to <bug-coreutils@gnu.org>.
35743           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35744           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35745           General help using GNU software: <http://www.gnu.org/gethelp/>.
35746         * lib/version-etc.c: Print new information, if provided.
35747         * m4/version-etc.m4: New file.
35748         * modules/version-etc (Files): Add m4/version-etc.m4.
35749         (configure.ac): Add gl_VERSION_ETC.
35750
35751 2009-05-31  Bruno Haible  <bruno@clisp.org>
35752
35753         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35754         and 'int64_t'.
35755         * modules/alignof-tests (Dependencies): Add stdint.
35756         Reported by Eric Blake.
35757
35758 2009-05-31  Bruno Haible  <bruno@clisp.org>
35759
35760         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35761         restriction due to compiler bugs.
35762         Reported by Eric Blake.
35763
35764 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35765             Bruno Haible  <bruno@clisp.org>
35766
35767         Fix test-alignof failure.
35768         * lib/alignof.h (alignof_slot): New macro.
35769         (alignof_type): New macro, with the same semantics as the previous
35770         'alignof'.
35771         (alignof): Alias to alignof_slot.
35772         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35773         check that the results are usable as constant expressions.
35774
35775 2009-05-31  Bruno Haible  <bruno@clisp.org>
35776
35777         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35778         * tests/test-memchr.c (main): Check that memchr does not read past the
35779         first occurrence of the byte.
35780         * tests/test-strstr.c (main): Update comment.
35781         Suggested by Eric Blake.
35782
35783 2009-05-30  Bruno Haible  <bruno@clisp.org>
35784
35785         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35786         detail how to use dumpbin.
35787         Reported by David Byron <dbyron@dbyron.com>.
35788
35789 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35790
35791         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35792
35793 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35794
35795         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35796
35797 2009-05-28  Bruno Haible  <bruno@clisp.org>
35798
35799         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35800         build-aux/ files.
35801
35802 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35803
35804         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35805
35806 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35807
35808         * gnulib-tool (sed_transform_main_lib_file)
35809         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35810         regexps.
35811
35812 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35813
35814         * tests/test-strstr.c: Add another self-test.
35815         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35816         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35817
35818 2009-05-23  Bruno Haible  <bruno@clisp.org>
35819
35820         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35821         change.
35822
35823 2009-05-21  Bruno Haible  <bruno@clisp.org>
35824
35825         Simplify use of mode_t varargs.
35826         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35827         uses 'mode_t' or 'int'.
35828         * lib/openat.c (openat): Likewise.
35829         * lib/open-safer.c (open_safer): Likewise.
35830         * m4/mode_t.m4: New file.
35831         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35832         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35833         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35834         * modules/open (Files): Add m4/mode_t.m4.
35835         * modules/openat (Files): Likewise.
35836         * modules/fcntl-safer (Files): Likewise.
35837         Suggested by Eric Blake.
35838
35839 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35840
35841         * doc/glibc-functions/fallocate.texi: New file.
35842         * doc/gnulib.texi: Include it.
35843
35844 2009-05-21  Eric Blake  <ebb9@byu.net>
35845             Bruno Haible  <bruno@clisp.org>
35846
35847         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35848         invocations.
35849         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35850
35851 2009-05-21  Eric Blake  <ebb9@byu.net>
35852             Bruno Haible  <bruno@clisp.org>
35853
35854         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35855         include_next. Fix of 2008-11-20 commit.
35856         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35857         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35858         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35859         NEXT_MATH_H.
35860         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35861         instead of NEXT_MATH_H.
35862
35863 2009-05-21  Bruno Haible  <bruno@clisp.org>
35864
35865         Avoid redefinition warnings for SIZE_MAX.
35866         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35867         Reported by Simon Josefsson.
35868
35869 2009-05-21  Bruno Haible  <bruno@clisp.org>
35870
35871         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35872         AC_CACHE_VAL.
35873
35874 2009-05-20  Bruno Haible  <bruno@clisp.org>
35875
35876         Make zeroptr.h work on mingw.
35877         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35878         mprotect.
35879         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35880         * modules/memchr2-tests (configure.ac): Likewise.
35881         * modules/memcmp-tests (configure.ac): Likewise.
35882         * modules/memmem-tests (configure.ac): Likewise.
35883         * modules/memrchr-tests (configure.ac): Likewise.
35884         Reported by Simon Josefsson.
35885
35886 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35887
35888         * tests/test-glob.c: Include string.h for strcmp prototype.
35889
35890 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35891
35892         * modules/getdelim (Depends-on): Add explicit stdint, although it
35893         was implicitly already pulled in via realloc-posix.
35894         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35895
35896 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35897
35898         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35899         G. Christensen" <tgc@jupiterrise.com>.
35900         * m4/sys_socket_h.m4: Check for sa_family_t.
35901         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35902         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35903         * tests/test-sys_socket.c: Check that sa_family_t works.
35904
35905 2009-05-18  Eric Blake  <ebb9@byu.net>
35906
35907         maint.mk: allow gnulib_dir in VPATH build
35908         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35909
35910 2009-05-15  Jim Meyering  <meyering@redhat.com>
35911
35912         maint.mk: Give gnulib_dir a default definition.
35913         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35914         Thus, most packages no longer need to specify this variable in cfg.mk
35915
35916 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35917
35918         rename.m4: fix typos that would make non-mingw cross-configure fail
35919         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35920
35921 2009-05-13  Eric Blake  <ebb9@byu.net>
35922
35923         mmap-anon: avoid out-of-order autoconf expansion
35924         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35925         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35926         * modules/memchr-tests (Depends-on): Add extensions.
35927         * modules/memchr2-tests (Depends-on): Add extensions.
35928         * modules/memcmp-tests (Depends-on): Add extensions.
35929         * modules/memmem-tests (Depends-on): Add extensions.
35930         * modules/memrchr-tests (Depends-on): Add extensions.
35931
35932 2009-05-13  Bruno Haible  <bruno@clisp.org>
35933
35934         Make some tests ISO C 99 compliant.
35935         * tests/zerosize-ptr.h: New file.
35936         * tests/test-memchr.c: Include zerosize-ptr.h.
35937         (main): Use a zero-size object pointer instead of NULL.
35938         * tests/test-memchr2.c: Include zerosize-ptr.h.
35939         (main): Use a zero-size object pointer instead of NULL.
35940         * tests/test-memcmp.c: Include zerosize-ptr.h.
35941         (main): Use a zero-size object pointer instead of NULL.
35942         * tests/test-memmem.c: Include zerosize-ptr.h.
35943         (main): Use a zero-size object pointer instead of NULL.
35944         * tests/test-memrchr.c: Include zerosize-ptr.h.
35945         (main): Use a zero-size object pointer instead of NULL.
35946         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35947         m4/mmap-anon.m4.
35948         (Depends-on): Add getpagesize.
35949         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35950         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35951         m4/mmap-anon.m4.
35952         (Depends-on): Add getpagesize.
35953         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35954         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35955         m4/mmap-anon.m4.
35956         (Depends-on): Add getpagesize.
35957         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35958         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35959         m4/mmap-anon.m4.
35960         (Depends-on): Add getpagesize.
35961         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35962         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35963         m4/mmap-anon.m4.
35964         (Depends-on): Add getpagesize.
35965         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35966
35967 2009-05-12  Bruno Haible  <bruno@clisp.org>
35968
35969         Tests for module 'alignof'.
35970         * modules/alignof-tests: New file.
35971         * tests/test-alignof.c: New file.
35972
35973 2009-05-12  Bruno Haible  <bruno@clisp.org>
35974
35975         Fix alignof macro.
35976         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35977         vendor compilers that are always correct.
35978
35979 2009-05-12  Bruno Haible  <bruno@clisp.org>
35980
35981         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35982         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35983         not whether its fully works.
35984
35985 2009-05-12  Bruno Haible  <bruno@clisp.org>
35986
35987         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35988
35989 2009-05-12  Jim Meyering  <meyering@redhat.com>
35990
35991         * top/maint.mk: Adjust backslash alignment.
35992
35993 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35994
35995         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35996
35997 2009-05-11  Eric Blake  <ebb9@byu.net>
35998
35999         argp: avoid undefined behavior
36000         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
36001         macros.
36002
36003 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36004
36005         * tests/test-vc-list-files-git.sh: Do git config of user.email and
36006         user.name to prevent git commit from complaining.
36007
36008 2009-05-10  Bruno Haible  <bruno@clisp.org>
36009
36010         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
36011         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
36012         it rewrites every file name only once.
36013         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
36014
36015 2009-05-08  Bruno Haible  <bruno@clisp.org>
36016
36017         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
36018         instead of 'max'.
36019
36020 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36021
36022         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
36023         sockaddr_storage test.
36024
36025 2009-05-07  Simon Josefsson  <simon@josefsson.org>
36026
36027         * modules/sys_socket (Makefile.am): Substitute
36028         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
36029         * m4/sys_socket_h.m4: Check for sockaddr_storage.
36030         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
36031         * tests/test-sys_socket.c: Check sockaddr_storage.
36032
36033 2009-05-08  Bruno Haible  <bruno@clisp.org>
36034
36035         New module 'alignof'.
36036         * lib/alignof.h: New file.
36037         * modules/alignof: New file.
36038
36039 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36040             Bruno Haible  <bruno@clisp.org>
36041
36042         Fix test-file-has-acl on FreeBSD.
36043         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
36044         mask is implicitly added.
36045         * tests/test-file-has-acl.c: Include <signal.h>.
36046         (main): Terminate the test after 5 seconds.
36047         * modules/acl-tests (configure.ac): Check for alarm function.
36048
36049 2009-05-04  Bruno Haible  <bruno@clisp.org>
36050
36051         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
36052         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
36053         * modules/errno (configure.ac): Drop AC_REQUIRE.
36054         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
36055         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
36056
36057 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36058
36059         * modules/glob-tests: New module.
36060         * tests/test-glob.c: Add.
36061
36062 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36063
36064         * modules/fnmatch-tests: New module.
36065         * tests/test-fnmatch.c: Add.
36066
36067 2009-05-04  Eric Blake  <ebb9@byu.net>
36068
36069         maint: make the new no-submodule-changes rule VPATH-safe
36070         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
36071
36072 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36073             Bruno Haible  <bruno@clisp.org>
36074
36075         acl: Fix infinite loop on FreeBSD.
36076         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
36077         of return value from acl_get_entry.
36078         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
36079         Likewise.
36080
36081 2009-05-03  Bruno Haible  <bruno@clisp.org>
36082
36083         * lib/acl-internal.h (acl_entries): Clarify return value.
36084         * lib/acl_entries.c (acl_entries): Likewise.
36085
36086 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36087
36088         Bug fix in acl module.
36089         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
36090
36091 2009-05-03  Bruno Haible  <bruno@clisp.org>
36092
36093         Create gperf-generated file in the source dir, not in the build dir.
36094         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
36095         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
36096         * modules/unicase/locale-language (unicase/locale-languages.h):
36097         Likewise.
36098         * modules/unicase/special-casing (unicase/special-casing-table.h):
36099         Likewise.
36100         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
36101         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
36102         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
36103         Reported by Ralf Wildenhues.
36104
36105 2009-05-03  Bruno Haible  <bruno@clisp.org>
36106
36107         * modules/fnmatch (Description, configure.ac): Taken from
36108         fnmatch-posix.
36109         * modules/fnmatch-posix: Turn into a symbolic reference to the
36110         'fnmatch' module, and deprecate.
36111         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
36112
36113 2009-05-03  Bruno Haible  <bruno@clisp.org>
36114
36115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
36116         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
36117         Reported by Ralf Wildenhues.
36118
36119 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36120
36121         * m4/fnmatch.m4: Fix fnmatch re-define.
36122
36123 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36124
36125         priv-set: new module and tests; adapt write-any-file
36126         * lib/priv-set.c: New file.
36127         * lib/priv-set.h: New file.
36128         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
36129         * lib/write-any-file.c: Simplify by using priv-set module.
36130         * m4/priv-set.m4: New file.
36131         * modules/priv-set: New file.
36132         * modules/unlinkdir: Add dependency on priv-set module.
36133         * modules/write-any-file: Likewise.
36134
36135         Tests for module 'priv-set'.
36136         * modules/priv-set-tests: New file.
36137         * tests/test-priv-set.c: New file.
36138
36139 2009-05-03  Jim Meyering  <meyering@redhat.com>
36140             Bruno Haible  <bruno@clisp.org>
36141
36142         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
36143         use the converted UTF-8 variant of the name instead.
36144
36145 2009-05-03  Jim Meyering  <meyering@redhat.com>
36146
36147         tests: tighten some getdate tests
36148         * tests/test-getdate.c (main): Tighten tests: require equality,
36149         not just greater than.  Set TZ envvar to UTC0.
36150
36151 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
36152
36153         getdate: correctly interpret "next monday" when run on a Monday
36154         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
36155         that e.g., "next tues" (when run on a tuesday) results in a date
36156         that is one week in the future, and not today's date.
36157         I.e., add a week when the wday is the same as the current one.
36158         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
36159         and earlier by Martin Bernreuther and Jan Minář.
36160         * tests/test-getdate.c (main): Check that "next DAY" is always in
36161         the future and that "last DAY" is always in the past.
36162
36163 2009-05-02  Jim Meyering  <meyering@redhat.com>
36164
36165         build: ensure that a release build fails when a submodule is unclean
36166         * top/maint.mk (no-submodule-changes): New rule.
36167         (alpha beta major): Depend on it.
36168
36169 2009-05-02  Bruno Haible  <bruno@clisp.org>
36170
36171         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
36172         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
36173         shell variable gl_fnmatch_required to detect which variant is
36174         requested.
36175         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
36176         gl_FUNC_FNMATCH_POSIX.
36177         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
36178         exclude fnmatch-posix.
36179
36180 2009-05-02  Bruno Haible  <bruno@clisp.org>
36181
36182         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
36183         * modules/mbsrtowcs (License): Change to LGPLv2+.
36184         * modules/strnlen1 (License): Likewise.
36185         Reported by Simon Josefsson.
36186
36187 2009-05-02  Bruno Haible  <bruno@clisp.org>
36188
36189         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
36190         "cross".
36191         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
36192         gnulib-tool was called with option --source-base=lib.
36193
36194 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36195
36196         Use automake *-local hooks without commands, for extensibility.
36197         * modules/localcharset (Makefile.am): Rename install-exec-local
36198         rule to install-exec-localcharset, and make it a prerequisite of
36199         install-exec-local.  Likewise, rename the uninstall-local rule to
36200         uninstall-localcharset, and make it a prerequisite of the former.
36201
36202 2009-05-01  Bruno Haible  <bruno@clisp.org>
36203
36204         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
36205         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36206         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
36207         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
36208         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
36209         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36210         m4/locale-zh.m4, m4/codeset.m4.
36211
36212         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36213         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
36214         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36215         m4/locale-zh.m4.
36216
36217         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
36218         REPLACE_WCRTOMB if mbstate_t must be replaced.
36219         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
36220         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
36221
36222 2009-05-01  Bruno Haible  <bruno@clisp.org>
36223
36224         Avoid compiler warnings when redefining macros defined by <libintl.h>.
36225         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
36226         dngettext, dcngettext, textdomain, bindtextdomain,
36227         bind_textdomain_codeset): Undefine before redefining.
36228
36229 2009-04-30  Bruno Haible  <bruno@clisp.org>
36230
36231         Fix bug introduced on 2009-04-25.
36232         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
36233         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
36234         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
36235         is defined.
36236         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
36237         is defined.
36238         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
36239         is defined.
36240         Reported by Elbert_Pol <elbert.pol@gmail.com>.
36241
36242 2009-04-28  Bruno Haible  <bruno@clisp.org>
36243
36244         Comment tweaks.
36245         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
36246         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
36247         * lib/unicase.h (u*_casexfrm): Likewise.
36248         Reported by Paolo Bonzini.
36249
36250 2009-04-28  Bruno Haible  <bruno@clisp.org>
36251
36252         Fix a compilation error.
36253         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
36254         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36255         Reported by Jim Meyering.
36256
36257 2009-04-27  Bruno Haible  <bruno@clisp.org>
36258
36259         New module 'libunistring'.
36260         * modules/libunistring: New file.
36261         * m4/libunistring.m4: New file.
36262         * MODULES.html.sh (Unicode string functions): Add it.
36263
36264 2009-04-27  Eric Blake  <ebb9@byu.net>
36265
36266         maint.mk: allow package-specific header to provide <config.h>
36267         * top/maint.mk (sc_require_config_h): New variable.
36268         (sc_require_config_h, sc_require_config_h_first): Use it.
36269
36270 2009-04-27  Simon Josefsson  <simon@josefsson.org>
36271
36272         * top/maint.mk (sc_avoid_if_before_free): Except
36273         useless-if-before-free script.
36274
36275 2009-04-27  Eric Blake  <ebb9@byu.net>
36276
36277         maintainer-makefile: depend on all required helper scripts
36278         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
36279         useless-if-before-free.
36280         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
36281         version, rather than assuming gnulib checkout is available.
36282         Reported by Simen Josefsson.
36283
36284 2009-04-26  Bruno Haible  <bruno@clisp.org>
36285
36286         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
36287         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
36288         "../" or "..".
36289
36290 2009-04-26  Bruno Haible  <bruno@clisp.org>
36291
36292         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
36293         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
36294         AC_LIB_HAVE_LINKFLAGS.
36295
36296 2009-04-26  Bruno Haible  <bruno@clisp.org>
36297
36298         Simplify calling convention of u*_conv_from_encoding.
36299         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
36300         u32_conv_from_encoding): Expect a resultbuf argument and return the
36301         result directly as a pointer.
36302         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
36303         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
36304         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
36305         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
36306         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
36307         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36308         Update.
36309         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
36310         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
36311         * lib/vasnprintf.c (VASNPRINTF): Update.
36312         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
36313         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
36314         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
36315         * NEWS: Mention the change.
36316
36317 2009-04-26  Bruno Haible  <bruno@clisp.org>
36318
36319         Simplify calling convention of u*_conv_to_encoding.
36320         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36321         u32_conv_to_encoding): Expect a resultbuf argument and return the
36322         result directly as a pointer.
36323         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36324         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
36325         freeing scaled_offsets if mem_iconveha failed.
36326         * lib/unicase/u-casexfrm.h (FUNC): Update.
36327         * lib/uninorm/u-normxfrm.h (FUNC): Update.
36328         * lib/vasnprintf.c (VASNPRINTF): Update.
36329         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
36330         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
36331         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
36332         * NEWS: Mention the change.
36333
36334 2009-04-26  Bruno Haible  <bruno@clisp.org>
36335
36336         Avoid test failures on AIX and OSF/1.
36337         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
36338         malloc(0).
36339         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36340         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36341         Likewise.
36342         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
36343         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
36344         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
36345         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
36346         * doc/posix-functions/malloc.texi: Document the portability problem
36347         related to malloc(0).
36348
36349 2009-04-26  Bruno Haible  <bruno@clisp.org>
36350
36351         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
36352         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
36353         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
36354
36355 2009-04-25  Bruno Haible  <bruno@clisp.org>
36356
36357         Avoid link error when creating a namespace clean library.
36358         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
36359         as macro with arguments if already defined as an alias.
36360         * lib/signbitf.c (gl_signbitf): Don't undefine.
36361         * lib/signbitd.c (gl_signbitd): Don't undefine.
36362         * lib/signbitl.c (gl_signbitl): Don't undefine.
36363
36364 2009-04-25  Jim Meyering  <meyering@redhat.com>
36365
36366         vc-list-files: fix another quoting bug
36367         * build-aux/vc-list-files: Avoid sed backslash expansion
36368         of pathological directory names.
36369
36370 2009-04-25  Eric Blake  <ebb9@byu.net>
36371
36372         vc-list-files: fix shell quoting error
36373         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
36374         timestamp.
36375
36376 2009-04-25  Jim Meyering  <meyering@redhat.com>
36377
36378         vc-list-files: restore lost functionality with subdir argument
36379         * build-aux/vc-list-files: When given a non-"." sub-directory
36380         argument, substitute the $dir/ prefix back onto each resulting name.
36381         Otherwise, coreutils' root_tests check would fail.
36382
36383 2009-04-24  Eric Blake  <ebb9@byu.net>
36384
36385         vc-list-files: ignore git symlinks
36386         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
36387         than ls-files, to ignore git symlinks.
36388
36389         maint.mk: import improvements from m4
36390         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
36391         (move_if_change): Delete unused macro.
36392         (news-date-check, vc-diff-check): Support VPATH builds.
36393         (announcement): Likewise.  Split --bootstrap-tools list...
36394         (boostrap-tools): ...into separate list, which can be overridden
36395         in cfg.mk.
36396         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
36397         requiring dependency on useless-if-before-free module.
36398         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
36399         Support VPATH builds.
36400
36401 2009-04-24  Jim Meyering  <meyering@redhat.com>
36402
36403         maint.mk: remove coreutils-specific rules and variables
36404         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
36405         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
36406         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
36407
36408         maint.mk: remove obsolete rule
36409         * top/maint.mk (rel-check): Remove rule.
36410         (WGET, WGETFLAGS): Remove now-unused variables.
36411
36412 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36413
36414         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
36415         consistency.
36416
36417         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
36418         '$(PATH_SEPARATOR)' instead of ':'.
36419
36420 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36421
36422         * lib/getopt1.c (main): Use 'const' for static array.
36423
36424 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36425
36426         * top/maint.mk: Sync with coreutils.
36427         * NEWS: Explain incompatibilities.
36428
36429 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36430             Bruno Haible  <bruno@clisp.org>
36431
36432         Fix cross-compilation results.
36433         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
36434         statement, as third argument of AC_TRY_RUN.
36435         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36436         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
36437         Likewise.
36438         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36439         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36440         Likewise.
36441         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36442         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
36443         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
36444
36445 2009-04-20  Bruno Haible  <bruno@clisp.org>
36446
36447         Avoid test failure on mingw.
36448         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
36449
36450 2009-04-20  Bruno Haible  <bruno@clisp.org>
36451
36452         Avoid compilation error on mingw.
36453         * modules/localename-tests (Depends-on): Add locale.
36454
36455 2009-04-19  Bruno Haible  <bruno@clisp.org>
36456
36457         Support for building a shared library on Windows platforms.
36458         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
36459         (main): Test the presence of UNINORM_NFC here.
36460         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
36461         (main): Test the presence of UNINORM_NFD here.
36462         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
36463         (main): Test the presence of UNINORM_NFKC here.
36464         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
36465         (main): Test the presence of UNINORM_NFKD here.
36466
36467 2009-04-19  Bruno Haible  <bruno@clisp.org>
36468
36469         Avoid a compiler warning.
36470         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
36471         Change type of variable 'sequence'.
36472
36473 2009-04-19  Bruno Haible  <bruno@clisp.org>
36474
36475         * modules/configmake (Makefile.am): When the contents of configmake.h
36476         does not change, arrange to preserve its modification time.
36477
36478 2009-04-17  Simon Josefsson  <simon@josefsson.org>
36479
36480         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
36481         gettext domain.
36482
36483 2009-04-16  Jim Meyering  <meyering@redhat.com>
36484
36485         useless-if-before-free: improve conversion code
36486         * build-aux/useless-if-before-free: Adjust code-in-comment to match
36487         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
36488
36489 2009-04-14  Bruno Haible  <bruno@clisp.org>
36490
36491         * modules/fcntl (Depends-on): Add extensions.
36492         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
36493
36494 2009-04-12  Ben Pfaff  <blp@gnu.org>
36495
36496         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
36497         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
36498
36499 2009-03-20  Ben Pfaff  <blp@gnu.org>
36500
36501         Make rename replace existing destinations on Windows.
36502         * m4/rename.m4: Add test for Mingw.
36503         * lib/rename.c: Add rename replacement that uses MoveFileEx with
36504         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
36505         * doc/posix-functions/rename.texi: Document.
36506
36507 2009-04-10  Bruno Haible  <bruno@clisp.org>
36508
36509         New include file "iconveh.h".
36510         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
36511         * lib/striconveh.h: Include it.
36512         (enum iconv_ilseq_handler): Remove definition.
36513         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36514         striconveh.h.
36515         * lib/striconveha.c: Include striconveh.h.
36516         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36517         * modules/striconveh (Files): Add lib/iconveh.h.
36518         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36519         lib/striconveh.h.
36520
36521 2009-04-10  Bruno Haible  <bruno@clisp.org>
36522
36523         * lib/uniconv.h: Update comment.
36524
36525 2009-04-10  Bruno Haible  <bruno@clisp.org>
36526
36527         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36528         always.
36529         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36530         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36531         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36532         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36533         "unistring-notinline.h", so that the function gets defined always.
36534         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36535         * lib/unistr/u8-uctomb.c: Likewise.
36536         * lib/unistr/u16-mbtouc.c: Likewise.
36537         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36538         * lib/unistr/u16-uctomb.c: Likewise.
36539         * lib/unistr/u32-mbtouc.c: Likewise.
36540         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36541         * lib/unistr/u32-uctomb.c: Likewise.
36542
36543 2009-04-10  Bruno Haible  <bruno@clisp.org>
36544
36545         Mark 'utime' obsolete.
36546         * modules/utime (Status, Notice): New sections.
36547         Suggested by Jim Meyering.
36548
36549         Fix cross-compile guess for utime test.
36550         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36551         autoconf.
36552         * doc/posix-functions/utime.texi: Give more precisions.
36553         Reported by Jan <ipif@ymail.com>.
36554
36555 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36556
36557         filevercmp: correct today's change
36558         * lib/filevercmp.c: Also handle coreutils' test inputs.
36559         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36560
36561         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36562         for reporting it.
36563         * lib/filevercmp.c: Special handle for "", "." and "..".
36564         * tests/test-filevercmp.c: Enlarge the set suite.
36565
36566 2009-04-07  Jim Meyering  <meyering@redhat.com>
36567
36568         useless-if-before-free: show how to remove braced useless free, too
36569         * build-aux/useless-if-before-free: still only in a comment, though.
36570
36571 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36572
36573         maint.mk: import changes to syntax-check macros from coreutils
36574         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36575         Use them in the relevant macros.
36576
36577 2009-04-06  Bruno Haible  <bruno@clisp.org>
36578
36579         Fix unportable use of bit-fields.
36580         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36581         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36582         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36583
36584 2009-04-06  Bruno Haible  <bruno@clisp.org>
36585
36586         Avoid test failures on AIX and OSF/1.
36587         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36588         that malloc(0) = NULL.
36589         * tests/unicase/test-u8-tolower.c (check): Likewise.
36590         * tests/unicase/test-u8-totitle.c (check): Likewise.
36591         * tests/unicase/test-u8-toupper.c (check): Likewise.
36592         * tests/unicase/test-u16-casefold.c (check): Likewise.
36593         * tests/unicase/test-u16-tolower.c (check): Likewise.
36594         * tests/unicase/test-u16-totitle.c (check): Likewise.
36595         * tests/unicase/test-u16-toupper.c (check): Likewise.
36596         * tests/unicase/test-u32-casefold.c (check): Likewise.
36597         * tests/unicase/test-u32-tolower.c (check): Likewise.
36598         * tests/unicase/test-u32-totitle.c (check): Likewise.
36599         * tests/unicase/test-u32-toupper.c (check): Likewise.
36600         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36601         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36602         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36603         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36604         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36605         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36606         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36607         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36608         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36609         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36610         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36611         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36612
36613 2009-04-05  Bruno Haible  <bruno@clisp.org>
36614
36615         Work around an autoconf limitation.
36616         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36617         comment line if it would be longer than 3 KB.
36618
36619 2009-04-05  Bruno Haible  <bruno@clisp.org>
36620
36621         Avoid test failure with libiconv-1.13.
36622         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36623         of the expected test results.
36624
36625 2009-04-05  Bruno Haible  <bruno@clisp.org>
36626
36627         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36628         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36629         that it should be installed.
36630
36631 2009-04-05  Bruno Haible  <bruno@clisp.org>
36632
36633         * gnulib-tool: New option --copy-file.
36634         (func_usage): Document it.
36635         (func_dest_tmpfilename): Moved out of func_import.
36636         (func_add_file, func_update_file): New functions, extracted from
36637         func_import.
36638         (func_import): Update.
36639
36640 2009-04-05  Karl Berry  <karl@gnu.org>
36641
36642         * README: prominently mention gnulib-tool.
36643         Rearrange sections so getting the code is near the top.
36644
36645 2009-04-05  Bruno Haible  <bruno@clisp.org>
36646
36647         * lib/unicase.h: Mention u*_cmp2.
36648         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36649         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36650         * lib/unicase/ulc-casecmp.c: Likewise.
36651         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36652         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36653         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36654         unistr/u8-cmp.
36655         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36656         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36657         unistr/u16-cmp.
36658         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36659         unistr/u32-cmp.
36660
36661         * lib/uninorm.h: Mention u*_cmp2.
36662         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36663         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36664         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36665         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36666         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36667         unistr/u8-cmp.
36668         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36669         unistr/u16-cmp.
36670         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36671         unistr/u32-cmp.
36672
36673         New module 'unistr/u32-cmp2'.
36674         * lib/unistr/u32-cmp2.c: New file.
36675         * modules/unistr/u32-cmp2: New file.
36676
36677         New module 'unistr/u16-cmp2'.
36678         * lib/unistr/u16-cmp2.c: New file.
36679         * modules/unistr/u16-cmp2: New file.
36680
36681         New module 'unistr/u8-cmp2'.
36682         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36683         * lib/unistr/u8-cmp2.c: New file.
36684         * lib/unistr/u-cmp2.h: New file.
36685         * modules/unistr/u8-cmp2: New file.
36686
36687 2009-04-05  Bruno Haible  <bruno@clisp.org>
36688
36689         * lib/unictype.h (uc_property_is_valid): New macro.
36690         * tests/unictype/test-pr_byname.c (main): Use it.
36691
36692         * lib/unistr.h: Doc fixes.
36693         * lib/uniconv.h: Doc fixes.
36694         * lib/unictype.h: Doc fixes.
36695
36696 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36697
36698         Port coreutils 7.2 to Solaris 8.
36699
36700         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36701         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36702         for Solaris 8.  This is a bit of a hack, as it means it's the
36703         caller's responsibility to add -lnsl if needed, but most likely it
36704         won't be needed since only getaddrinfo uses this and getaddrinfo
36705         isn't needed on Solaris 8.
36706
36707         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36708         problem to Solaris 8 encountered with coreutils 7.2, which
36709         resulted in a message "fnmatch.c:292: warning: passing argument 4
36710         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36711         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36712
36713 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36714
36715         * m4/ld-version-script.m4: Add FIXME comment.
36716
36717 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36718
36719         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36720         SOVERSION variable.
36721
36722 2009-04-02  Bruno Haible  <bruno@clisp.org>
36723
36724         * Makefile (info, html, dvi, pdf): Combine the rules.
36725         Suggested by Jim Meyering.
36726
36727 2009-04-01  Bruno Haible  <bruno@clisp.org>
36728
36729         * Makefile (info, html, dvi, pdf): New targets.
36730         Reported by Reuben Thomas <rrt@sc3d.org>.
36731
36732 2009-04-01  Bruno Haible  <bruno@clisp.org>
36733
36734         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36735         can be put into PATH.
36736         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36737
36738 2009-04-01  Bruno Haible  <bruno@clisp.org>
36739
36740         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36741
36742 2009-04-01  Bruno Haible  <bruno@clisp.org>
36743
36744         Rename module 'visibility'.
36745         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36746         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36747         * doc/gnulib.texi: Update.
36748         * MODULES.html.sh (Misc): Update.
36749         * NEWS: Mention the change.
36750
36751 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36752
36753         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36754         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36755         Eric Blake <ebb9@byu.net> for review.
36756         * MODULES.html.sh: Add lib-msvc-compat.
36757         * doc/gnulib.texi: Link to new section.
36758         * m4/ld-output-def.m4: New file.
36759         * doc/ld-output-def.texi: New file.
36760
36761 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36762
36763         Rename ld-version-script to lib-symbol-versions.  Suggested by
36764         Bruno Haible <bruno@clisp.org>.
36765         * modules/ld-version-script: Renamed to lib-symbol-versions.
36766         * doc/ld-version-script.texi: Fix module name.
36767         * MODULES.html.sh: Add lib-symbol-versions.
36768
36769 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36770
36771         * modules/u64-tests: New file.
36772         * tests/test-u64.c: New file.
36773
36774 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36775
36776         * MODULES.html.sh: Mention u64.
36777         * modules/u64: New module.
36778         * modules/crypto/sha512: Depend on u64 module instead of providing
36779         u64.h.
36780
36781 2009-03-27  Eric Blake  <ebb9@byu.net>
36782
36783         test-strerror: make debugging EAI_SYSTEM easier
36784         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36785         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36786         failure was EAI_SYSTEM.
36787
36788 2009-03-25  Bruno Haible  <bruno@clisp.org>
36789
36790         Fix a problem with --enable-relocatable on Solaris 7.
36791         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36792         since 2008-02-24.
36793
36794 2009-03-25  Eric Blake  <ebb9@byu.net>
36795
36796         test-sockets: avoid gcc warning
36797         * tests/test-sockets.c (main): Silence compiler warning.
36798
36799 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36800
36801         New modules nproc, pthread, contributed by Glen Lenker.
36802
36803         * MODULES.html.sh: Add pthread, nproc.
36804         * lib/nproc.c: New file.
36805         * lib/nproc.h: New file.
36806         * lib/pthread.in.h: New file.
36807         * m4/pthread.m4: New file.
36808         * modules/nproc: New file.
36809         * modules/pthread: New file.
36810
36811 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36812
36813         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36814         New variable.
36815
36816 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36817
36818         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36819         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36820         * tests/test-filevercmp.c: Add tests for backup suffixes.
36821
36822 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36823
36824         * modules/stdlib (Depends-on): Add stdint, needed when defining
36825         struct random_data on, for example, HP-UX 10.20.  Reported by
36826         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36827
36828 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36829
36830         * lib/readline.c (readline): Call fflush on stdout after printing
36831         prompt.
36832
36833 2009-03-20  Bruno Haible  <bruno@clisp.org>
36834
36835         Remove dependency from 'close' module to -lws2_32 on native Windows.
36836         * lib/close-hook.h: New file.
36837         * lib/close-hook.c: New file.
36838         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36839         w32sock.h.
36840         (_gl_close_fd_maybe_socket): Remove function.
36841         (rpl_close): Invoke execute_all_close_hooks instead of
36842         _gl_close_fd_maybe_socket.
36843         * lib/sockets.c: Include close-hook.h, w32sock.h.
36844         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36845         (close_sockets_hook): New variable.
36846         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36847         (gl_sockets_cleanup): Unregister it.
36848         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36849         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36850         * modules/close-hook: New file.
36851         * modules/close (Files): Remove lib/w32sock.h.
36852         (Depends-on): Add close-hook.
36853         (Link): Remove section.
36854         * modules/sockets (Files): Add lib/w32sock.h.
36855         (Depends-on): Add close-hook.
36856         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36857         invocation.
36858         * NEWS: Mention that LIB_CLOSE is gone.
36859
36860 2009-03-23  Eric Blake  <ebb9@byu.net>
36861
36862         signal-tests: test previous patch
36863         * tests/test-signal.c: New file.
36864         * modules/signal-tests: Likewise.
36865
36866         signal.h: always support 'volatile sig_atomic_t'
36867         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36868         (gl_SIGNAL_H_DEFAULTS): Add a default.
36869         * modules/signal (Makefile.am): Substitute if needed.
36870         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36871         users can blindly add volatile.
36872         * doc/posix-headers/signal.texi (signal.h): Document it.
36873         Reported by Matthew Woehlke.
36874
36875 2009-03-23  Jim Meyering  <meyering@redhat.com>
36876
36877         pathmax: PATH_MAX: use pathconf only when available
36878         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36879         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36880         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36881         This avoids a link failure in a PSP cross-compilation environment
36882         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36883
36884         * lib/vasnprintf.c (divide): Fix typo in comment.
36885
36886 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36887
36888         * gnulib-tool (func_filter_filelist): Fix comment.
36889
36890 2009-03-20  Bruno Haible  <bruno@clisp.org>
36891
36892         Make sockets.h self-contained.
36893         * lib/sockets.c: Include sockets.h first.
36894         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36895
36896 2009-03-19  Eric Blake  <ebb9@byu.net>
36897
36898         doc: mention more functions added in cygwin 1.7.0
36899         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36900         addition.
36901         * doc/posix-functions/log2f.texi: Likewise.
36902
36903 2009-03-19  Jim Meyering  <meyering@redhat.com>
36904
36905         fsusage: avoid syntax error due to statement-before-declaration
36906         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36907         after all declarations.  Reported by Matthew Woehlke in
36908         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36909
36910 2009-03-18  Eric Blake  <ebb9@byu.net>
36911
36912         build-aux/compile: sync from automake
36913         * build-aux/compile: New file, from automake.
36914         * config/srclist.txt: Mention build-aux/compile.
36915
36916 2009-03-17  Bruno Haible  <bruno@clisp.org>
36917
36918         * lib/git-merge-changelog.c: Fix typo in comment.
36919         Reported by Reuben Thomas <rrt@sc3d.org>.
36920
36921 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36922
36923         * m4/regex.m4: update and improve help for
36924         --without-included-regex.
36925
36926 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36927
36928         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36929         failure on missing include files.
36930
36931 2009-03-17  Eric Blake  <ebb9@byu.net>
36932
36933         doc: mention more functions added in cygwin 1.7.0
36934         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36935         addition.
36936         * doc/posix-functions/fwscanf.texi: Likewise.
36937         * doc/posix-functions/swprintf.texi: Likewise.
36938         * doc/posix-functions/swscanf.texi: Likewise.
36939         * doc/posix-functions/vfwprintf.texi: Likewise.
36940         * doc/posix-functions/vfwscanf.texi: Likewise.
36941         * doc/posix-functions/vswprintf.texi: Likewise.
36942         * doc/posix-functions/vswscanf.texi: Likewise.
36943         * doc/posix-functions/vwprintf.texi: Likewise.
36944         * doc/posix-functions/vwscanf.texi: Likewise.
36945         * doc/posix-functions/wcscasecmp.texi: Likewise.
36946         * doc/posix-functions/wcsdup.texi: Likewise.
36947         * doc/posix-functions/wcsftime.texi: Likewise.
36948         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36949         * doc/posix-functions/wprintf.texi: Likewise.
36950         * doc/posix-functions/wscanf.texi: Likewise.
36951         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36952
36953 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36954
36955         maint.mk: really add $(AM_MAKEFLAGS)
36956         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36957         was inadvertently omitted in the last commit.
36958         Spotted by Bruno Haible.
36959
36960         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36961         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36962         $(AM_MAKEFLAGS)' rather than plain `make'.
36963
36964         gnulib-tool: execute $MAKE not make
36965         * gnulib-tool: Default $MAKE to 'make'.
36966         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36967         than make.  Initialize $MAKE in the do-autobuild script.
36968
36969         gnulib-tool: use $MAKE not make in generated files
36970         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36971         make, in generated files.  Initialize $MAKE in the do-autobuild
36972         script.
36973
36974         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36975
36976         GNUmakefile: disable parallelism only for multiple, recursive targets
36977         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36978         additions in the Makefile.
36979         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36980         by Automake.
36981         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36982         are listed on the command line and at least one of them is
36983         listed in $(ALL_RECURSIVE_TARGETS).
36984
36985 2009-03-14  Bruno Haible  <bruno@clisp.org>
36986
36987         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36988         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36989         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36990         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36991         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36992         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36993         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36994         unistr/u8-uctomb.
36995         * modules/unistr/u8-strchr (Depends-on): Likewise.
36996         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36997         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36998         unistr/u16-uctomb.
36999         * modules/unistr/u16-strchr (Depends-on): Likewise.
37000         * modules/unistr/u16-strrchr (Depends-on): Likewise.
37001
37002 2009-03-12  Bruno Haible  <bruno@clisp.org>
37003
37004         Work around select() bug on Interix 3.5.
37005         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
37006         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
37007         * m4/select.m4: New file.
37008         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
37009         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
37010         * modules/select (Files): Add m4/select.m4.
37011         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
37012         * modules/nanosleep (Depends-on): Add select.
37013         * modules/poll (Depends-on): Likewise.
37014         * doc/posix-functions/select.texi: Mention the Interix bug.
37015         Reported by Markus Duft <mduft@gentoo.org>.
37016
37017         * lib/select.c: Renamed from lib/winsock-select.c.
37018         * modules/select (Files): Add lib/select.c, remove
37019         lib/winsock-select.c.
37020         (configure.ac): Update.
37021
37022 2009-03-12  Jim Meyering  <meyering@redhat.com>
37023
37024         avoid gcc warnings about unused macro definitions
37025         * lib/readtokens.c (STREQ): Remove unused definition.
37026         * lib/xmalloc.c (SIZE_MAX): Likewise.
37027         * lib/openat-die.c (N_): Likewise.
37028         * lib/mountlist.c (SIZE_MAX): Remove definition.
37029         Instead, include <stdint.h>.
37030         * lib/readutmp.c: Likewise.
37031         * modules/readutmp (Depends-on): Add stdint.
37032         * modules/mountlist (Depends-on): Add stdint.
37033         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
37034
37035 2009-03-10  Bruno Haible  <bruno@clisp.org>
37036
37037         Tests for module 'mbmemcasecoll'.
37038         * modules/mbmemcasecoll-tests: New file.
37039         * tests/test-mbmemcasecoll1.sh: New file.
37040         * tests/test-mbmemcasecoll2.sh: New file.
37041         * tests/test-mbmemcasecoll3.sh: New file.
37042         * tests/test-mbmemcasecoll.c: New file.
37043
37044         New module 'mbmemcasecoll'.
37045         * lib/mbmemcasecoll.h: New file.
37046         * lib/mbmemcasecoll.c: New file.
37047         * modules/mbmemcasecoll: New file.
37048
37049         * tests/test-mbmemcasecmp.h: New file, extracted from
37050         tests/test-mbmemcasecmp.c.
37051         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
37052         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
37053         (main): Update.
37054         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
37055
37056 2009-03-09  Bruno Haible  <bruno@clisp.org>
37057
37058         Tests for module 'mbmemcasecmp'.
37059         * modules/mbmemcasecmp-tests: New file.
37060         * tests/test-mbmemcasecmp1.sh: New file.
37061         * tests/test-mbmemcasecmp2.sh: New file.
37062         * tests/test-mbmemcasecmp3.sh: New file.
37063         * tests/test-mbmemcasecmp.c: New file.
37064
37065         New module 'mbmemcasecmp'.
37066         * lib/mbmemcasecmp.h: New file.
37067         * lib/mbmemcasecmp.c: New file.
37068         * modules/mbmemcasecmp: New file.
37069
37070 2009-03-09  Bruno Haible  <bruno@clisp.org>
37071
37072         Tests for module 'unicase/ulc-casecoll'.
37073         * modules/unicase/ulc-casecoll-tests: New file.
37074         * tests/unicase/test-ulc-casecoll1.sh: New file.
37075         * tests/unicase/test-ulc-casecoll2.sh: New file.
37076         * tests/unicase/test-ulc-casecoll.c: New file.
37077
37078         New module 'unicase/ulc-casecoll'.
37079         * lib/unicase.h (ulc_casecoll): New declaration.
37080         * lib/unicase/ulc-casecoll.c: New file.
37081         * modules/unicase/ulc-casecoll: New file.
37082
37083         New module 'unicase/ulc-casexfrm'.
37084         * lib/unicase.h (ulc_casexfrm): New declaration.
37085         * lib/unicase/ulc-casexfrm.c: New file.
37086         * modules/unicase/ulc-casexfrm: New file.
37087
37088 2009-03-09  Bruno Haible  <bruno@clisp.org>
37089
37090         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
37091         invocations.
37092
37093         * m4/mbscasecmp.m4: Remove file.
37094         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
37095         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
37096
37097         * m4/mbscasestr.m4: Remove file.
37098         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
37099         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
37100
37101         * m4/mbschr.m4: Remove file.
37102         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
37103         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
37104
37105         * m4/mbscspn.m4: Remove file.
37106         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
37107         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
37108
37109         * m4/mbslen.m4: Remove file.
37110         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
37111         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
37112
37113         * m4/mbsncasecmp.m4: Remove file.
37114         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
37115         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
37116
37117         * m4/mbsnlen.m4: Remove file.
37118         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
37119         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
37120
37121         * m4/mbspbrk.m4: Remove file.
37122         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
37123         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
37124
37125         * m4/mbspcasecmp.m4: Remove file.
37126         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
37127         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
37128
37129         * m4/mbsrchr.m4: Remove file.
37130         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
37131         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
37132
37133         * m4/mbssep.m4: Remove file.
37134         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
37135         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
37136
37137         * m4/mbsspn.m4: Remove file.
37138         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
37139         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
37140
37141         * m4/mbsstr.m4: Remove file.
37142         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
37143         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
37144
37145         * m4/mbstok_r.m4: Remove file.
37146         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
37147         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
37148
37149         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
37150
37151         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
37152         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
37153
37154         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
37155
37156 2009-03-08  Bruno Haible  <bruno@clisp.org>
37157
37158         Tests for module 'unicase/ulc-casecmp'.
37159         * modules/unicase/ulc-casecmp-tests: New file.
37160         * tests/unicase/test-ulc-casecmp1.sh: New file.
37161         * tests/unicase/test-ulc-casecmp2.sh: New file.
37162         * tests/unicase/test-ulc-casecmp.c: New file.
37163
37164         New module 'unicase/ulc-casecmp'.
37165         * lib/unicase.h (ulc_casecmp): New declaration.
37166         * lib/unicase/ulc-casecmp.c: New file.
37167         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
37168         'const SRC_UNIT *'.
37169         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
37170         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
37171         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
37172         * modules/unicase/ulc-casecmp: New file.
37173
37174         Tests for module 'unicase/u32-is-cased'.
37175         * modules/unicase/u32-is-cased-tests: New file.
37176         * tests/unicase/test-u32-is-cased.c: New file.
37177
37178         Tests for module 'unicase/u16-is-cased'.
37179         * modules/unicase/u16-is-cased-tests: New file.
37180         * tests/unicase/test-u16-is-cased.c: New file.
37181
37182         Tests for module 'unicase/u8-is-cased'.
37183         * modules/unicase/u8-is-cased-tests: New file.
37184         * tests/unicase/test-u8-is-cased.c: New file.
37185         * tests/unicase/test-is-cased.h: New file.
37186
37187         New module 'unicase/u32-is-cased'.
37188         * lib/unicase/u32-is-cased.c: New file.
37189         * modules/unicase/u32-is-cased: New file.
37190
37191         New module 'unicase/u16-is-cased'.
37192         * lib/unicase/u16-is-cased.c: New file.
37193         * modules/unicase/u16-is-cased: New file.
37194
37195         New module 'unicase/u8-is-cased'.
37196         * lib/unicase/u8-is-cased.c: New file.
37197         * lib/unicase/u-is-cased.h: New file.
37198         * modules/unicase/u8-is-cased: New file.
37199
37200         Tests for module 'unicase/u32-is-casefolded'.
37201         * modules/unicase/u32-is-casefolded-tests: New file.
37202         * tests/unicase/test-u32-is-casefolded.c: New file.
37203
37204         Tests for module 'unicase/u16-is-casefolded'.
37205         * modules/unicase/u16-is-casefolded-tests: New file.
37206         * tests/unicase/test-u16-is-casefolded.c: New file.
37207
37208         Tests for module 'unicase/u8-is-casefolded'.
37209         * modules/unicase/u8-is-casefolded-tests: New file.
37210         * tests/unicase/test-u8-is-casefolded.c: New file.
37211         * tests/unicase/test-is-casefolded.h: New file.
37212
37213         New module 'unicase/u32-is-casefolded'.
37214         * lib/unicase/u32-is-casefolded.c: New file.
37215         * modules/unicase/u32-is-casefolded: New file.
37216
37217         New module 'unicase/u16-is-casefolded'.
37218         * lib/unicase/u16-is-casefolded.c: New file.
37219         * modules/unicase/u16-is-casefolded: New file.
37220
37221         New module 'unicase/u8-is-casefolded'.
37222         * lib/unicase/u8-is-casefolded.c: New file.
37223         * modules/unicase/u8-is-casefolded: New file.
37224
37225         Tests for module 'unicase/u32-is-titlecase'.
37226         * modules/unicase/u32-is-titlecase-tests: New file.
37227         * tests/unicase/test-u32-is-titlecase.c: New file.
37228
37229         Tests for module 'unicase/u16-is-titlecase'.
37230         * modules/unicase/u16-is-titlecase-tests: New file.
37231         * tests/unicase/test-u16-is-titlecase.c: New file.
37232
37233         Tests for module 'unicase/u8-is-titlecase'.
37234         * modules/unicase/u8-is-titlecase-tests: New file.
37235         * tests/unicase/test-u8-is-titlecase.c: New file.
37236         * tests/unicase/test-is-titlecase.h: New file.
37237
37238         New module 'unicase/u32-is-titlecase'.
37239         * lib/unicase/u32-is-titlecase.c: New file.
37240         * modules/unicase/u32-is-titlecase: New file.
37241
37242         New module 'unicase/u16-is-titlecase'.
37243         * lib/unicase/u16-is-titlecase.c: New file.
37244         * modules/unicase/u16-is-titlecase: New file.
37245
37246         New module 'unicase/u8-is-titlecase'.
37247         * lib/unicase/u8-is-titlecase.c: New file.
37248         * modules/unicase/u8-is-titlecase: New file.
37249
37250         Tests for module 'unicase/u32-is-lowercase'.
37251         * modules/unicase/u32-is-lowercase-tests: New file.
37252         * tests/unicase/test-u32-is-lowercase.c: New file.
37253
37254         Tests for module 'unicase/u16-is-lowercase'.
37255         * modules/unicase/u16-is-lowercase-tests: New file.
37256         * tests/unicase/test-u16-is-lowercase.c: New file.
37257
37258         Tests for module 'unicase/u8-is-lowercase'.
37259         * modules/unicase/u8-is-lowercase-tests: New file.
37260         * tests/unicase/test-u8-is-lowercase.c: New file.
37261         * tests/unicase/test-is-lowercase.h: New file.
37262
37263         New module 'unicase/u32-is-lowercase'.
37264         * lib/unicase/u32-is-lowercase.c: New file.
37265         * modules/unicase/u32-is-lowercase: New file.
37266
37267         New module 'unicase/u16-is-lowercase'.
37268         * lib/unicase/u16-is-lowercase.c: New file.
37269         * modules/unicase/u16-is-lowercase: New file.
37270
37271         New module 'unicase/u8-is-lowercase'.
37272         * lib/unicase/u8-is-lowercase.c: New file.
37273         * modules/unicase/u8-is-lowercase: New file.
37274
37275         Tests for module 'unicase/u32-is-uppercase'.
37276         * modules/unicase/u32-is-uppercase-tests: New file.
37277         * tests/unicase/test-u32-is-uppercase.c: New file.
37278
37279         Tests for module 'unicase/u16-is-uppercase'.
37280         * modules/unicase/u16-is-uppercase-tests: New file.
37281         * tests/unicase/test-u16-is-uppercase.c: New file.
37282
37283         Tests for module 'unicase/u8-is-uppercase'.
37284         * modules/unicase/u8-is-uppercase-tests: New file.
37285         * tests/unicase/test-u8-is-uppercase.c: New file.
37286         * tests/unicase/test-is-uppercase.h: New file.
37287
37288         New module 'unicase/u32-is-uppercase'.
37289         * lib/unicase/u32-is-uppercase.c: New file.
37290         * modules/unicase/u32-is-uppercase: New file.
37291
37292         New module 'unicase/u16-is-uppercase'.
37293         * lib/unicase/u16-is-uppercase.c: New file.
37294         * modules/unicase/u16-is-uppercase: New file.
37295
37296         New module 'unicase/u8-is-uppercase'.
37297         * lib/unicase/u8-is-uppercase.c: New file.
37298         * modules/unicase/u8-is-uppercase: New file.
37299
37300         New module 'unicase/u32-is-invariant'.
37301         * lib/unicase/u32-is-invariant.c: New file.
37302         * modules/unicase/u32-is-invariant: New file.
37303
37304         New module 'unicase/u16-is-invariant'.
37305         * lib/unicase/u16-is-invariant.c: New file.
37306         * modules/unicase/u16-is-invariant: New file.
37307
37308         New module 'unicase/u8-is-invariant'.
37309         * lib/unicase/u8-is-invariant.c: New file.
37310         * lib/unicase/invariant.h: New file.
37311         * lib/unicase/u-is-invariant.h: New file.
37312         * modules/unicase/u8-is-invariant: New file.
37313
37314         Tests for module 'unicase/u32-casecoll'.
37315         * modules/unicase/u32-casecoll-tests: New file.
37316         * tests/unicase/test-u32-casecoll.c: New file.
37317
37318         Tests for module 'unicase/u16-casecoll'.
37319         * modules/unicase/u16-casecoll-tests: New file.
37320         * tests/unicase/test-u16-casecoll.c: New file.
37321
37322         Tests for module 'unicase/u8-casecoll'.
37323         * modules/unicase/u8-casecoll-tests: New file.
37324         * tests/unicase/test-u8-casecoll.c: New file.
37325
37326         New module 'unicase/u32-casecoll'.
37327         * lib/unicase/u32-casecoll.c: New file.
37328         * modules/unicase/u32-casecoll: New file.
37329
37330         New module 'unicase/u16-casecoll'.
37331         * lib/unicase/u16-casecoll.c: New file.
37332         * modules/unicase/u16-casecoll: New file.
37333
37334         New module 'unicase/u8-casecoll'.
37335         * lib/unicase/u8-casecoll.c: New file.
37336         * lib/unicase/u-casecoll.h: New file.
37337         * modules/unicase/u8-casecoll: New file.
37338
37339         New module 'unicase/u32-casexfrm'.
37340         * lib/unicase/u32-casexfrm.c: New file.
37341         * modules/unicase/u32-casexfrm: New file.
37342
37343         New module 'unicase/u16-casexfrm'.
37344         * lib/unicase/u16-casexfrm.c: New file.
37345         * modules/unicase/u16-casexfrm: New file.
37346
37347         New module 'unicase/u8-casexfrm'.
37348         * lib/unicase/u8-casexfrm.c: New file.
37349         * lib/unicase/u-casexfrm.h: New file.
37350         * modules/unicase/u8-casexfrm: New file.
37351
37352         Tests for module 'unicase/u32-casecmp'.
37353         * modules/unicase/u32-casecmp-tests: New file.
37354         * tests/unicase/test-u32-casecmp.c: New file.
37355
37356         Tests for module 'unicase/u16-casecmp'.
37357         * modules/unicase/u16-casecmp-tests: New file.
37358         * tests/unicase/test-u16-casecmp.c: New file.
37359
37360         Tests for module 'unicase/u8-casecmp'.
37361         * modules/unicase/u8-casecmp-tests: New file.
37362         * tests/unicase/test-u8-casecmp.c: New file.
37363         * tests/unicase/test-casecmp.h: New file.
37364
37365         New module 'unicase/u32-casecmp'.
37366         * lib/unicase/u32-casecmp.c: New file.
37367         * modules/unicase/u32-casecmp: New file.
37368
37369         New module 'unicase/u16-casecmp'.
37370         * lib/unicase/u16-casecmp.c: New file.
37371         * modules/unicase/u16-casecmp: New file.
37372
37373         New module 'unicase/u8-casecmp'.
37374         * lib/unicase/u8-casecmp.c: New file.
37375         * lib/unicase/u-casecmp.h: New file.
37376         * modules/unicase/u8-casecmp: New file.
37377
37378         Tests for module 'unicase/u32-casefold'.
37379         * modules/unicase/u32-casefold-tests: New file.
37380         * tests/unicase/test-u32-casefold.c: New file.
37381
37382         Tests for module 'unicase/u16-casefold'.
37383         * modules/unicase/u16-casefold-tests: New file.
37384         * tests/unicase/test-u16-casefold.c: New file.
37385
37386         Tests for module 'unicase/u8-casefold'.
37387         * modules/unicase/u8-casefold-tests: New file.
37388         * tests/unicase/test-u8-casefold.c: New file.
37389
37390         New module 'unicase/u32-casefold'.
37391         * lib/unicase/u32-casefold.c: New file.
37392         * modules/unicase/u32-casefold: New file.
37393
37394         New module 'unicase/u16-casefold'.
37395         * lib/unicase/u16-casefold.c: New file.
37396         * modules/unicase/u16-casefold: New file.
37397
37398         New module 'unicase/u8-casefold'.
37399         * lib/unicase/u8-casefold.c: New file.
37400         * lib/unicase/u-casefold.h: New file.
37401         * modules/unicase/u8-casefold: New file.
37402
37403         New module 'unicase/tocasefold'.
37404         * lib/unicase/casefold.h: New file.
37405         * lib/unicase/tocasefold.c: New file.
37406         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
37407         * modules/unicase/tocasefold: New file.
37408
37409         Tests for module 'unicase/u32-totitle'.
37410         * modules/unicase/u32-totitle-tests: New file.
37411         * tests/unicase/test-u32-totitle.c: New file.
37412
37413         Tests for module 'unicase/u16-totitle'.
37414         * modules/unicase/u16-totitle-tests: New file.
37415         * tests/unicase/test-u16-totitle.c: New file.
37416
37417         Tests for module 'unicase/u8-totitle'.
37418         * modules/unicase/u8-totitle-tests: New file.
37419         * tests/unicase/test-u8-totitle.c: New file.
37420
37421         New module 'unicase/u32-totitle'.
37422         * lib/unicase/u32-totitle.c: New file.
37423         * modules/unicase/u32-totitle: New file.
37424
37425         New module 'unicase/u16-totitle'.
37426         * lib/unicase/u16-totitle.c: New file.
37427         * modules/unicase/u16-totitle: New file.
37428
37429         New module 'unicase/u8-totitle'.
37430         * lib/unicase/u8-totitle.c: New file.
37431         * lib/unicase/u-totitle.h: New file.
37432         * modules/unicase/u8-totitle: New file.
37433
37434         Tests for module 'unicase/u32-tolower'.
37435         * modules/unicase/u32-tolower-tests: New file.
37436         * tests/unicase/test-u32-tolower.c: New file.
37437
37438         Tests for module 'unicase/u16-tolower'.
37439         * modules/unicase/u16-tolower-tests: New file.
37440         * tests/unicase/test-u16-tolower.c: New file.
37441
37442         Tests for module 'unicase/u8-tolower'.
37443         * modules/unicase/u8-tolower-tests: New file.
37444         * tests/unicase/test-u8-tolower.c: New file.
37445
37446         New module 'unicase/u32-tolower'.
37447         * lib/unicase/u32-tolower.c: New file.
37448         * modules/unicase/u32-tolower: New file.
37449
37450         New module 'unicase/u16-tolower'.
37451         * lib/unicase/u16-tolower.c: New file.
37452         * modules/unicase/u16-tolower: New file.
37453
37454         New module 'unicase/u8-tolower'.
37455         * lib/unicase/u8-tolower.c: New file.
37456         * modules/unicase/u8-tolower: New file.
37457
37458         Tests for module 'unicase/u32-toupper'.
37459         * modules/unicase/u32-toupper-tests: New file.
37460         * tests/unicase/test-u32-toupper.c: New file.
37461
37462         Tests for module 'unicase/u16-toupper'.
37463         * modules/unicase/u16-toupper-tests: New file.
37464         * tests/unicase/test-u16-toupper.c: New file.
37465
37466         Tests for module 'unicase/u8-toupper'.
37467         * modules/unicase/u8-toupper-tests: New file.
37468         * tests/unicase/test-u8-toupper.c: New file.
37469
37470         New module 'unicase/u32-toupper'.
37471         * lib/unicase/u32-toupper.c: New file.
37472         * modules/unicase/u32-toupper: New file.
37473
37474         New module 'unicase/u16-toupper'.
37475         * lib/unicase/u16-toupper.c: New file.
37476         * modules/unicase/u16-toupper: New file.
37477
37478         New module 'unicase/u8-toupper'.
37479         * lib/unicase/u8-toupper.c: New file.
37480         * modules/unicase/u8-toupper: New file.
37481
37482         New module 'unicase/u32-casemap'.
37483         * lib/unicase/u32-casemap.c: New file.
37484         * modules/unicase/u32-casemap: New file.
37485
37486         New module 'unicase/u16-casemap'.
37487         * lib/unicase/u16-casemap.c: New file.
37488         * modules/unicase/u16-casemap: New file.
37489
37490         New module 'unicase/u8-casemap'.
37491         * lib/unicase/unicasemap.h: New file.
37492         * lib/unicase/u8-casemap.c: New file.
37493         * lib/unicase/u-casemap.h: New file.
37494         * modules/unicase/u8-casemap: New file.
37495
37496         New module 'unicase/special-casing'.
37497         * lib/unicase/special-casing.h: New file.
37498         * lib/unicase/special-casing.c: New file.
37499         * lib/unicase/special-casing-table.gperf: New file, generated by
37500         gen-uni-tables.c.
37501         * modules/unicase/special-casing: New file.
37502
37503         Tests for module 'unicase/locale-language'.
37504         * modules/unicase/locale-language-tests: New file.
37505         * tests/unicase/test-locale-language.sh: New file.
37506         * tests/unicase/test-locale-language.c: New file.
37507
37508         New module 'unicase/locale-language'.
37509         * lib/unicase/locale-language.c: New file.
37510         * lib/unicase/locale-languages.gperf: New file.
37511         * modules/unicase/locale-language: New file.
37512
37513         Generate more tables for case conversion and case folding.
37514         * lib/gen-uni-tables.c (SCC_*): New enum items.
37515         (struct special_casing_rule): New type.
37516         (casing_rules, num_casing_rules, allocated_casing_rules): New
37517         variables.
37518         (add_casing_rule, fill_casing_rules): New functions.
37519         (struct casefold_rule): New type.
37520         (casefolding_rules, num_casefolding_rules,
37521         allocated_casefolding_rules): New variables.
37522         (fill_casefolding_rules): New function.
37523         (unicode_casefold): New variable.
37524         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37525         sort_casing_rules, output_casing_rules): New functions.
37526         (main): Accept to more arguments: SpecialCasing.txt and
37527         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37528         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37529         Output mapping for casefolding.
37530
37531         * lib/unicase.h: Include stdbool.h, uninorm.h.
37532         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37533         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37534         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37535         arguments.
37536         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37537         resultp arguments.
37538         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37539         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37540         resultp arguments.
37541         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37542         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37543         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37544         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37545         declarations.
37546         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37547
37548 2009-03-08  Bruno Haible  <bruno@clisp.org>
37549
37550         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37551         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37552         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37553         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37554
37555 2009-03-07  Bruno Haible  <bruno@clisp.org>
37556
37557         Adjust u*_normcmp, u*_normcoll API.
37558         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37559         u16_normcoll, u32_normcoll): Change failure conventions.
37560         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37561         errno and return -1.
37562         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37563
37564 2009-03-07  Bruno Haible  <bruno@clisp.org>
37565
37566         Tests for module 'uninorm/u32-normcoll'.
37567         * modules/uninorm/u32-normcoll-tests: New file.
37568         * tests/uninorm/test-u32-normcoll.c: New file.
37569
37570         Tests for module 'uninorm/u16-normcoll'.
37571         * modules/uninorm/u16-normcoll-tests: New file.
37572         * tests/uninorm/test-u16-normcoll.c: New file.
37573
37574         Tests for module 'uninorm/u8-normcoll'.
37575         * modules/uninorm/u8-normcoll-tests: New file.
37576         * tests/uninorm/test-u8-normcoll.c: New file.
37577
37578 2009-03-07  Bruno Haible  <bruno@clisp.org>
37579
37580         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37581         tests/uninorm/test-u32-normcmp.c.
37582         * tests/uninorm/test-u32-normcmp.c: Include it.
37583         (test_nonascii): New function, extracted from main. Add some more
37584         tests.
37585         (main): Invoke test_ascii and test_nonascii.
37586         * modules/uninorm/u32-normcmp-tests (Files): Add
37587         tests/uninorm/test-u32-normcmp.h.
37588         (Depends-on): Remove uninorm/u32-normcmp.
37589
37590         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37591         tests/uninorm/test-u16-normcmp.c.
37592         * tests/uninorm/test-u16-normcmp.c: Include it.
37593         (test_nonascii): New function, extracted from main. Add some more
37594         tests.
37595         (main): Invoke test_ascii and test_nonascii.
37596         * modules/uninorm/u16-normcmp-tests (Files): Add
37597         tests/uninorm/test-u16-normcmp.h.
37598         (Depends-on): Remove uninorm/u16-normcmp.
37599
37600         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37601         tests/uninorm/test-u8-normcmp.c.
37602         * tests/uninorm/test-u8-normcmp.c: Include it.
37603         (test_nonascii): New function, extracted from main. Add some more
37604         tests.
37605         (main): Invoke test_ascii and test_nonascii.
37606         * modules/uninorm/u8-normcmp-tests (Files): Add
37607         tests/uninorm/test-u8-normcmp.h.
37608         (Depends-on): Remove uninorm/u8-normcmp.
37609
37610 2009-03-07  Bruno Haible  <bruno@clisp.org>
37611
37612         New module 'uninorm/u32-normcoll'.
37613         * lib/uninorm/u32-normcoll.c: New file.
37614         * modules/uninorm/u32-normcoll: New file.
37615
37616         New module 'uninorm/u16-normcoll'.
37617         * lib/uninorm/u16-normcoll.c: New file.
37618         * modules/uninorm/u16-normcoll: New file.
37619
37620         New module 'uninorm/u8-normcoll'.
37621         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37622         declarations.
37623         * lib/uninorm/u8-normcoll.c: New file.
37624         * lib/uninorm/u-normcoll.h: New file.
37625         * modules/uninorm/u8-normcoll: New file.
37626
37627         New module 'uninorm/u32-normxfrm'.
37628         * lib/uninorm/u32-normxfrm.c: New file.
37629         * modules/uninorm/u32-normxfrm: New file.
37630
37631         New module 'uninorm/u16-normxfrm'.
37632         * lib/uninorm/u16-normxfrm.c: New file.
37633         * modules/uninorm/u16-normxfrm: New file.
37634
37635         New module 'uninorm/u8-normxfrm'.
37636         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37637         declarations.
37638         * lib/uninorm/u8-normxfrm.c: New file.
37639         * lib/uninorm/u-normxfrm.h: New file.
37640         * modules/uninorm/u8-normxfrm: New file.
37641
37642 2009-03-07  Bruno Haible  <bruno@clisp.org>
37643
37644         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37645         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37646         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37647
37648 2009-03-07  Bruno Haible  <bruno@clisp.org>
37649
37650         New module 'memxfrm'.
37651         * lib/memxfrm.h: New file.
37652         * lib/memxfrm.c: New file.
37653         * modules/memxfrm: New file.
37654
37655 2009-03-07  Bruno Haible  <bruno@clisp.org>
37656
37657         New module 'memcmp2'.
37658         * lib/memcmp2.h: New file.
37659         * lib/memcmp2.c: New file.
37660         * modules/memcmp2: New file.
37661
37662 2009-03-07  Bruno Haible  <bruno@clisp.org>
37663
37664         Tests for module 'uninorm/decomposing-form'.
37665         * modules/uninorm/decomposing-form-tests: New file.
37666         * tests/uninorm/test-decomposing-form.c: New file.
37667
37668         New module 'uninorm/decomposing-form'.
37669         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37670         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37671         Add 'decomposing_variant' field.
37672         * lib/uninorm/decomposing-form.c: New file.
37673         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37674         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37675         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37676         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37677         * modules/uninorm/decomposing-form: New file.
37678         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37679         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37680
37681 2009-03-07  Bruno Haible  <bruno@clisp.org>
37682
37683         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37684         strings.
37685
37686 2009-03-06  Bruno Haible  <bruno@clisp.org>
37687
37688         Tests for module 'uninorm/u32-normcmp'.
37689         * tests/uninorm/test-u32-normcmp.c: New file.
37690         * modules/uninorm/u32-normcmp-tests: New file.
37691
37692         Tests for module 'uninorm/u16-normcmp'.
37693         * tests/uninorm/test-u16-normcmp.c: New file.
37694         * modules/uninorm/u16-normcmp-tests: New file.
37695
37696         Tests for module 'uninorm/u8-normcmp'.
37697         * tests/uninorm/test-u8-normcmp.c: New file.
37698         * modules/uninorm/u8-normcmp-tests: New file.
37699
37700         New module 'uninorm/u32-normcmp'.
37701         * lib/uninorm/u32-normcmp.c: New file.
37702         * modules/uninorm/u32-normcmp: New file.
37703
37704         New module 'uninorm/u16-normcmp'.
37705         * lib/uninorm/u16-normcmp.c: New file.
37706         * modules/uninorm/u16-normcmp: New file.
37707
37708         New module 'uninorm/u8-normcmp'.
37709         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37710         declarations.
37711         * lib/uninorm/u8-normcmp.c: New file.
37712         * lib/uninorm/u-normcmp.h: New file.
37713         * modules/uninorm/u8-normcmp: New file.
37714
37715 2009-03-06  Bruno Haible  <bruno@clisp.org>
37716
37717         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37718         Reported by Eric Blake.
37719
37720 2009-03-06  Eric Blake  <ebb9@byu.net>
37721             Bruno Haible  <bruno@clisp.org>
37722
37723         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37724         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37725         condition.
37726         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37727         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37728         condition.
37729         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37730
37731 2009-03-06  Eric Blake  <ebb9@byu.net>
37732
37733         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37734         to avoid compiler warnings.
37735         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37736
37737 2009-03-05  Bruno Haible  <bruno@clisp.org>
37738
37739         * tests/test-ftell.c (main): Disable test beyond end of file on
37740         FreeMiNT.
37741         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37742
37743 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37744
37745         * lib/filevercmp.c: Move hidden files up in ordering.
37746         * tests/test-filevercmp.c: Add tests for hidden files.
37747
37748 2009-03-04  Bruno Haible  <bruno@clisp.org>
37749
37750         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37751         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37752         AM_CFLAGS.
37753         Reported by Simon Josefsson.
37754
37755 2009-03-03  Bruno Haible  <bruno@clisp.org>
37756
37757         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37758         Reported by Simon Josefsson.
37759
37760         * doc/ld-version-script.texi: Update node reference.
37761
37762 2009-03-03  Bruno Haible  <bruno@clisp.org>
37763
37764         * modules/visibility (License): Change to 'unlimited'.
37765         Suggested by Simon Josefsson.
37766
37767 2009-03-03  Jim Meyering  <meyering@redhat.com>
37768
37769         unlinkdir: cannot_unlink_dir may modify process state
37770         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37771         it's neither thread-safe nor appropriate for use in a library.
37772
37773 2009-03-03  Eric Blake  <ebb9@byu.net>
37774
37775         test-closein: silence test under Darwin
37776         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37777         care if it dies from EPIPE or EBADF.
37778
37779 2009-03-03  Bruno Haible  <bruno@clisp.org>
37780
37781         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37782         earlier.
37783         * doc/visibility.texi: Fix @node and @section.
37784
37785 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37786
37787         * doc/gnulib.texi: Link to sections for ld version script and
37788         visibility.
37789         * doc/visibility.texi: Add @node and @section.
37790         * modules/ld-version-script: New module.
37791         * m4/ld-version-script.m4: New file.
37792         * doc/ld-version-script.texi: New file.
37793
37794 2009-03-02  David Lutterkort  <lutter@redhat.com>
37795
37796         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37798
37799 2009-03-02  Bruno Haible  <bruno@clisp.org>
37800
37801         * doc/visibility.texi: Mention libtool's -export-symbols option.
37802
37803 2009-03-02  Jim Meyering  <meyering@redhat.com>
37804
37805         announce-gen: new option: --no-print-checksums
37806         * build-aux/announce-gen (usage): Describe it.
37807         (print_checksums): Print a newline here, not in the [*] footnote.
37808         (main): Honor it.
37809
37810 2009-03-01  Bruno Haible  <bruno@clisp.org>
37811
37812         Use socklen_t in the native Windows replacements prototypes.
37813         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37814         instead of 'int'.
37815         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37816         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37817         * modules/getsockopt (Depends-on): Add socklen.
37818         * modules/setsockopt (Depends-on): Add socklen.
37819
37820 2009-03-01  Bruno Haible  <bruno@clisp.org>
37821
37822         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37823         least 4.2.
37824
37825 2009-03-01  Eric Blake  <ebb9@byu.net>
37826             Bruno Haible  <bruno@clisp.org>
37827
37828         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37829         error messages.
37830         * lib/wait-process.c (wait_subprocess): Omit error message about
37831         deadly signal sent to the child of termsigp != NULL.
37832
37833 2009-03-01  Eric Blake  <ebb9@byu.net>
37834
37835         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37836
37837 2009-03-01  Bruno Haible  <bruno@clisp.org>
37838
37839         Avoid a gcc warning.
37840         * tests/test-sched.c (b): Make global.
37841         Reported by Eric Blake.
37842
37843 2009-01-19  Martin Lambers  <marlam@marlam.de>
37844
37845         Provide POSIX semantics for socket timeout options on W32.
37846         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37847         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37848         * modules/setsockopt: Depend on sys_time module for struct timeval.
37849         * modules/getsockopt: Depend on sys_time module for struct timeval.
37850
37851 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37852
37853         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37854         __USE_GNU, for consistency with netdb.in.h.
37855         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37856
37857 2009-03-01  Bruno Haible  <bruno@clisp.org>
37858
37859         More support for FreeMiNT.
37860         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37861         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37862
37863 2009-03-01  Bruno Haible  <bruno@clisp.org>
37864
37865         More support for FreeMiNT.
37866         * lib/fpurge.c (fpurge): Correct last commit.
37867         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37868
37869 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37870
37871         Fix unportable awk script in vc-list-files.
37872         * build-aux/vc-list-files: In the replacement awk script, use
37873         substr with a second argument of 1, not zero.
37874         Report by Simon Josefsson.
37875
37876 2009-02-28  Bruno Haible  <bruno@clisp.org>
37877
37878         More support for FreeMiNT.
37879         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37880         to FreeMiNT today.
37881         * lib/fwriting.c (fwriting): Likewise.
37882         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37883
37884 2009-02-28  Bruno Haible  <bruno@clisp.org>
37885
37886         * tests/test-freadseek.c (main): Disable test beyond end of file on
37887         FreeMiNT.
37888         * tests/test-ftello.c (main): Likewise.
37889         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37890
37891 2009-02-28  Bruno Haible  <bruno@clisp.org>
37892
37893         Add tentative support for FreeMiNT.
37894         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37895         * lib/fpurge.c (fpurge): Likewise.
37896         * lib/freadable.c (freadable): Likewise.
37897         * lib/freading.c (freading): Likewise.
37898         * lib/freadptr.c (freadptr): Likewise.
37899         * lib/freadseek.c (freadptrinc): Likewise.
37900         * lib/fseeko.c (rpl_fseeko): Likewise.
37901         * lib/fseterr.c (fseterr): Likewise.
37902         * lib/fwritable.c (fwritable): Likewise.
37903         * lib/fwriting.c (fwriting): Likewise.
37904         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37905         Hourihane.
37906         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37907
37908 2009-02-28  Bruno Haible  <bruno@clisp.org>
37909
37910         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37911         SIGCHLD.
37912         Reported by Jim Meyering.
37913
37914 2009-02-28  Bruno Haible  <bruno@clisp.org>
37915
37916         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37917         Mention the results of these tests on various platforms.
37918         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37919         order.
37920         * doc/posix-functions/printf.texi: Likewise.
37921         * doc/posix-functions/snprintf.texi: Likewise.
37922         * doc/posix-functions/sprintf.texi: Likewise.
37923         * doc/posix-functions/vfprintf.texi: Likewise.
37924         * doc/posix-functions/vprintf.texi: Likewise.
37925         * doc/posix-functions/vsnprintf.texi: Likewise.
37926         * doc/posix-functions/vsprintf.texi: Likewise.
37927         * doc/glibc-functions/obstack_printf.texi: Likewise.
37928         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37929
37930 2009-02-28  Bruno Haible  <bruno@clisp.org>
37931
37932         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37933         Reported by Loïc Minier <lool@dooz.org>.
37934
37935 2009-02-27  Bruno Haible  <bruno@clisp.org>
37936
37937         * gnulib-tool (func_import): Make the sed expression used to create the
37938         sed script for updating the .gitignore file POSIX compliant.
37939         Reported by Eric Blake.
37940
37941 2009-02-27  Bruno Haible  <bruno@clisp.org>
37942
37943         * gnulib-tool (sed): Don't alias as "sed --posix".
37944         Reported by Eric Blake.
37945
37946 2009-02-27  Bruno Haible  <bruno@clisp.org>
37947
37948         Avoid test link errors.
37949         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37950         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37951         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37952         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37954
37955 2009-02-27  Bruno Haible  <bruno@clisp.org>
37956
37957         Avoid spurious "(cached)" in configure output.
37958         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37959         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37960         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37961         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37962         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37963         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37964         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37965         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37966         Reported by Eric Blake.
37967
37968 2009-02-27  Eric Blake  <ebb9@byu.net>
37969
37970         printf: fix regression in previous patch
37971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37972
37973 2009-02-27  Bruno Haible  <bruno@clisp.org>
37974
37975         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37976         value.
37977         * lib/stdint.in.h: Likewise.
37978         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37979
37980 2009-02-27  Eric Blake  <ebb9@byu.net>
37981
37982         doc: mention more functions added in cygwin 1.7.0
37983         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37984         addition.
37985         * doc/posix-functions/open_wmemstream.texi: Likewise.
37986         * doc/posix-functions/wcsnlen.texi: Likewise.
37987         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37988         * doc/posix-functions/wcstod.texi: Likewise.
37989         * doc/posix-functions/wcstof.texi: Likewise.
37990         * doc/posix-functions/wcstoimax.texi: Likewise.
37991         * doc/posix-functions/wcstok.texi: Likewise.
37992         * doc/posix-functions/wcstoumax.texi: Likewise.
37993
37994         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37995         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37996         * doc/posix-functions/fprintf.texi: Update.
37997         * doc/posix-functions/printf.texi: Update.
37998         * doc/posix-functions/snprintf.texi: Update.
37999         * doc/posix-functions/sprintf.texi: Update.
38000         * doc/posix-functions/vfprintf.texi: Update.
38001         * doc/posix-functions/vprintf.texi: Update.
38002         * doc/posix-functions/vsnprintf.texi: Update.
38003         * doc/posix-functions/vsprintf.texi: Update.
38004         * doc/glibc-functions/obstack_printf.texi: Update.
38005         * doc/glibc-functions/obstack_vprintf.texi: Update.
38006
38007 2009-02-26  Eric Blake  <ebb9@byu.net>
38008
38009         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
38010         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
38011         compilation bug by using runtime conversion.
38012         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
38013         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
38014         * modules/ceill-tests (Files): Use nan.h.
38015         * modules/floorl-tests (Files): Likewise.
38016         * modules/frexpl-tests (Files): Likewise.
38017         * modules/isnanl-tests (Files): Likewise.
38018         * modules/ldexpl-tests (Files): Likewise.
38019         * modules/roundl-tests (Files): Likewise.
38020         * modules/truncl-tests (Files): Likewise.
38021         * tests/test-ceill.c (main): Use a working NaN.
38022         * tests/test-floorl.c (main): Likewise.
38023         * tests/test-frexpl.c (main): Likewise.
38024         * tests/test-isnan.c (test_long_double): Likewise.
38025         * tests/test-isnanl.h (main): Likewise.
38026         * tests/test-ldexpl.h (main): Likewise.
38027         * tests/test-roundl.h (main): Likewise.
38028         * tests/test-truncl.h (main): Likewise.
38029         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
38030
38031 2009-02-26  Eric Blake  <ebb9@byu.net>
38032             Bruno Haible  <bruno@clisp.org>
38033
38034         Work around a *printf bug with %ls on Solaris.
38035         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
38036         precision is specified, sprintf stops converting the wide string
38037         argument when the number of bytes that have been produced by this
38038         conversion equals or exceeds the precision.
38039         * doc/posix-functions/fprintf.texi: Update.
38040         * doc/posix-functions/printf.texi: Update.
38041         * doc/posix-functions/snprintf.texi: Update.
38042         * doc/posix-functions/sprintf.texi: Update.
38043         * doc/posix-functions/vfprintf.texi: Update.
38044         * doc/posix-functions/vprintf.texi: Update.
38045         * doc/posix-functions/vsnprintf.texi: Update.
38046         * doc/posix-functions/vsprintf.texi: Update.
38047         * doc/glibc-functions/obstack_printf.texi: Update.
38048         * doc/glibc-functions/obstack_vprintf.texi: Update.
38049
38050 2009-02-26  Eric Blake  <ebb9@byu.net>
38051
38052         stdlib: favor compiler check of random.h
38053         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
38054         to avoid an ObjC random.h installed by Swarm.
38055
38056 2009-02-26  Bruno Haible  <bruno@clisp.org>
38057
38058         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
38059         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
38060         Reported by Gary V. Vaughan <gary@gnu.org>.
38061
38062 2009-02-26  Bruno Haible  <bruno@clisp.org>
38063
38064         Fix *printf behaviour regarding the %ls directive.
38065         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
38066         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
38067         NEED_PRINTF_DIRECTIVE_LS.
38068         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
38069         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38071         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
38072         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
38073         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
38074         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38076         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38079         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
38080         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38081         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38082         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38083         * doc/posix-functions/fprintf.texi: Update.
38084         * doc/posix-functions/printf.texi: Update.
38085         * doc/posix-functions/snprintf.texi: Update.
38086         * doc/posix-functions/sprintf.texi: Update.
38087         * doc/posix-functions/vfprintf.texi: Update.
38088         * doc/posix-functions/vprintf.texi: Update.
38089         * doc/posix-functions/vsnprintf.texi: Update.
38090         * doc/posix-functions/vsprintf.texi: Update.
38091         * doc/glibc-functions/obstack_printf.texi: Update.
38092         * doc/glibc-functions/obstack_vprintf.texi: Update.
38093         Reported by Eric Blake.
38094
38095 2009-02-25  Bruno Haible  <bruno@clisp.org>
38096
38097         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
38098         with known value.
38099         Reported by Gary V. Vaughan <gary@gnu.org>.
38100
38101 2009-02-25  Bruno Haible  <bruno@clisp.org>
38102
38103         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
38104         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
38105         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
38106         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
38107         Reported by Gary V. Vaughan <gary@gnu.org>.
38108
38109 2009-02-25  Bruno Haible  <bruno@clisp.org>
38110
38111         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
38112         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
38113         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
38114         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
38115         Reported by Gary V. Vaughan <gary@gnu.org>.
38116
38117 2009-02-25  Eric Blake  <ebb9@byu.net>
38118
38119         tests: skip fseek/ftell tests if ungetc is broken
38120         * m4/ungetc.m4: New file.
38121         * modules/fseek-tests: Split test, so ungetc dependency is
38122         separate from rest of test.
38123         * modules/fseeko-tests: Likewise.
38124         * modules/ftell-tests: Likewise.
38125         * modules/ftello-tests: Likewise.
38126         * tests/test-fseek.c (main): Isolate ungetc dependency.
38127         * tests/test-fseeko.c (main): Likewise.
38128         * tests/test-ftell.c (main): Likewise.
38129         * tests/test-ftello.c (main): Likewise.
38130         * tests/test-fseek2.sh: New file.
38131         * tests/test-fseeko2.sh: Likewise.
38132         * tests/test-ftell2.sh: Likewise.
38133         * tests/test-ftello2.sh: Likewise.
38134
38135 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
38136
38137         test-getaddrinfo: fix usage of skip return code 77
38138         * tests/test-gettaddrinfo.c: Return skip code 77 only
38139         for first occurance of skip (4x77 is not 77)
38140
38141 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
38142
38143         strtod: avoid C99 decl-after-statement
38144         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
38145
38146 2009-02-24  Eric Blake  <ebb9@byu.net>
38147
38148         strtod: detect HP-UX 11.31 bug
38149         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
38150         Reported by Gary V. Vaughan.
38151
38152 2009-02-23  Bruno Haible  <bruno@clisp.org>
38153
38154         Fix invalid read past end of memory block.
38155         * lib/vasnprintf.c (DCHAR_SET): Define.
38156         (local_wcslen): Define only when needed.
38157         (local_strnlen, local_wcsnlen): New functions.
38158         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
38159         directives that involve a conversion ourselves.
38160         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
38161         wcsnlen, mbrtowc, wcrtomb.
38162         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
38163         * tests/test-vasprintf-posix.c (test_function): Likewise.
38164         * tests/test-snprintf-posix.h (test_function): Likewise.
38165         * tests/test-sprintf-posix.h (test_function): Likewise.
38166         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38167
38168 2009-02-22  Bruno Haible  <bruno@clisp.org>
38169
38170         Implement new clarified decomposition of Hangul syllables.
38171         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
38172         of type LTV, return only a pairwise decomposition.
38173         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
38174         Likewise.
38175         * tests/uninorm/test-decomposition.c (main): Updated expected result.
38176         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
38177         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
38178
38179 2009-02-22  Bruno Haible  <bruno@clisp.org>
38180
38181         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
38182         zero-length results and shrink excess allocated memory.
38183         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
38184         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
38185         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
38186         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
38187         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
38188         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
38189         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
38190         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
38191         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
38192         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
38193         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
38194         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
38195
38196 2009-02-21  Bruno Haible  <bruno@clisp.org>
38197
38198         * doc/gnulib.texi: Include safe-alloc.texi earlier.
38199         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
38200         spaces after a period. Put a space between a macro name and its
38201         argument list. Trivial rewordings.
38202         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
38203         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
38204         (main): Return 0 explicitly.
38205
38206 2009-02-21  Bruno Haible  <bruno@clisp.org>
38207
38208         Tests for module 'uninorm/filter'.
38209         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
38210         * modules/uninorm/filter-tests: New file.
38211
38212         New module 'uninorm/filter'.
38213         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
38214         uninorm_filter_flush, uninorm_filter_free): New declarations.
38215         * lib/uninorm/uninorm-filter.c: New file.
38216         * modules/uninorm/filter: New file.
38217
38218 2009-02-21  Bruno Haible  <bruno@clisp.org>
38219
38220         Tests for module 'uninorm/nfkc'.
38221         * tests/uninorm/test-nfkc.c: New file.
38222         * tests/uninorm/test-u8-nfkc.c: New file.
38223         * tests/uninorm/test-u16-nfkc.c: New file.
38224         * tests/uninorm/test-u32-nfkc.c: New file.
38225         * tests/uninorm/test-u32-nfkc-big.sh: New file.
38226         * tests/uninorm/test-u32-nfkc-big.c: New file.
38227         * modules/uninorm/nfkc-tests: New file.
38228
38229         New module 'uninorm/nfkc'.
38230         * lib/uninorm/nfkc.c: New file.
38231         * modules/uninorm/nfkc: New file.
38232
38233         Tests for module 'uninorm/nfkd'.
38234         * tests/uninorm/test-nfkd.c: New file.
38235         * tests/uninorm/test-u8-nfkd.c: New file.
38236         * tests/uninorm/test-u16-nfkd.c: New file.
38237         * tests/uninorm/test-u32-nfkd.c: New file.
38238         * tests/uninorm/test-u32-nfkd-big.sh: New file.
38239         * tests/uninorm/test-u32-nfkd-big.c: New file.
38240         * modules/uninorm/nfkd-tests: New file.
38241
38242         New module 'uninorm/nfkd'.
38243         * lib/uninorm/nfkd.c: New file.
38244         * modules/uninorm/nfkd: New file.
38245
38246         Tests for module 'uninorm/nfc'.
38247         * tests/uninorm/test-nfc.c: New file.
38248         * tests/uninorm/test-u8-nfc.c: New file.
38249         * tests/uninorm/test-u16-nfc.c: New file.
38250         * tests/uninorm/test-u32-nfc.c: New file.
38251         * tests/uninorm/test-u32-nfc-big.sh: New file.
38252         * tests/uninorm/test-u32-nfc-big.c: New file.
38253         * modules/uninorm/nfc-tests: New file.
38254
38255         New module 'uninorm/nfc'.
38256         * lib/uninorm/nfc.c: New file.
38257         * modules/uninorm/nfc: New file.
38258
38259         Tests for module 'uninorm/nfd'.
38260         * tests/uninorm/test-nfd.c: New file.
38261         * tests/uninorm/test-u8-nfd.c: New file.
38262         * tests/uninorm/test-u16-nfd.c: New file.
38263         * tests/uninorm/test-u32-nfd.c: New file.
38264         * tests/uninorm/test-u32-nfd-big.sh: New file.
38265         * tests/uninorm/test-u32-nfd-big.c: New file.
38266         * tests/uninorm/test-u32-normalize-big.h: New file.
38267         * tests/uninorm/test-u32-normalize-big.c: New file.
38268         * tests/uninorm/NormalizationTest.txt: New file, created from
38269         Unicode 5.1.0 NormalizationTest.txt.
38270         * modules/uninorm/nfd-tests: New file.
38271
38272         New module 'uninorm/nfd'.
38273         * lib/uninorm/nfd.c: New file.
38274         * modules/uninorm/nfd: New file.
38275
38276         New module 'uninorm/u32-normalize'.
38277         * lib/uninorm/u32-normalize.c: New file.
38278         * modules/uninorm/u32-normalize: New file.
38279
38280         New module 'uninorm/u16-normalize'.
38281         * lib/uninorm/u16-normalize.c: New file.
38282         * modules/uninorm/u16-normalize: New file.
38283
38284         New module 'uninorm/u8-normalize'.
38285         * lib/uninorm/u8-normalize.c: New file.
38286         * lib/uninorm/normalize-internal.h: New file.
38287         * lib/uninorm/u-normalize-internal.h: New file.
38288         * modules/uninorm/u8-normalize: New file.
38289
38290         New module 'uninorm/decompose-internal'.
38291         * lib/uninorm/decompose-internal.c: New file.
38292         * modules/uninorm/decompose-internal: New file.
38293
38294         Tests for module 'uninorm/composition'.
38295         * tests/uninorm/test-composition.c: New file.
38296         * modules/uninorm/composition-tests: New file.
38297
38298         New module 'uninorm/composition'.
38299         * lib/uninorm/composition.c: New file.
38300         * lib/uninorm/composition-table.gperf: New file, generated by
38301         gen-uni-tables.
38302         * modules/uninorm/composition: New file.
38303
38304         Tests for module 'uninorm/compat-decomposition'.
38305         * tests/uninorm/test-compat-decomposition.c: New file.
38306         * modules/uninorm/compat-decomposition-tests: New file.
38307
38308         New module 'uninorm/compat-decomposition'.
38309         * lib/uninorm/decompose-internal.h: New file.
38310         * lib/uninorm/compat-decomposition.c: New file.
38311         * modules/uninorm/compat-decomposition: New file.
38312
38313         Tests for module 'uninorm/canonical-decomposition'.
38314         * tests/uninorm/test-canonical-decomposition.c: New file.
38315         * modules/uninorm/canonical-decomposition-tests: New file.
38316
38317         New module 'uninorm/canonical-decomposition'.
38318         * lib/uninorm/canonical-decomposition.c: New file.
38319         * modules/uninorm/canonical-decomposition: New file.
38320
38321         Tests for module 'uninorm/decomposition'.
38322         * tests/uninorm/test-decomposition.c: New file.
38323         * modules/uninorm/decomposition-tests: New file.
38324
38325         New module 'uninorm/decomposition'.
38326         * lib/uninorm/decomposition.c: New file.
38327         * modules/uninorm/decomposition: New file.
38328
38329         New module 'uninorm/decomposition-table'.
38330         * lib/uninorm/decomposition-table.h: New file.
38331         * lib/uninorm/decomposition-table.c: New file.
38332         * lib/uninorm/decomposition-table1.h: New file, generated by
38333         gen-uni-tables.
38334         * lib/uninorm/decomposition-table2.h: New file, generated by
38335         gen-uni-tables.
38336         * modules/uninorm/decomposition-table: New file.
38337
38338         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
38339         (UC_DECOMP_*): New enumeration items.
38340         (get_decomposition): New function.
38341         (struct decomp_table): New type.
38342         (output_decomposition, output_decomposition_tables): New functions.
38343         (unicode_composition_exclusions): New variable.
38344         (fill_composition_exclusions, debug_output_composition_tables): New
38345         functions.
38346         (main): Accept one more argument. Invoke fill_composition_exclusions.
38347         Output decomposition and composition tables.
38348
38349         New module 'uninorm/base'.
38350         * lib/uninorm.h: New file.
38351         * lib/unictype.h: Update comment.
38352         * modules/uninorm/base: New file.
38353
38354 2009-02-21  David Lutterkort  <lutter@redhat.com>
38355
38356         Tests for module 'safe-alloc'.
38357         * tests/test-safe-alloc.c: New file.
38358         * modules/safe-alloc-tests: New file.
38359
38360         New module 'safe-alloc'.
38361         * lib/safe-alloc.h: New file.
38362         * lib/safe-alloc.c: New file.
38363         * m4/safe-alloc.m4: New file.
38364         * modules/safe-alloc: New file.
38365         * doc/safe-alloc.texi: New file.
38366         * doc/gnulib.texi: Include it.
38367         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
38368         safe-alloc.
38369
38370 2009-02-18  Bruno Haible  <bruno@clisp.org>
38371
38372         Fix link error on non-glibc systems.
38373         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
38374         variable.
38375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38376
38377 2009-02-18  Jim Meyering  <meyering@redhat.com>
38378
38379         fts: avoid used-uninitialized error due to recent change
38380         * lib/fts.c (fts_read): Guard uses of the new member,
38381         parent->fts_n_dirs_remaining, since it's not relevant for
38382         the parent of a directory specified on the command-line.
38383
38384 2009-02-17  James Youngman  <jay@gnu.org>
38385             Bruno Haible  <bruno@clisp.org>
38386
38387         * m4/include_next.m4: Reformulate comment.
38388
38389 2009-02-16  Jim Meyering  <meyering@redhat.com>
38390
38391         fts: add #if guards so that the fts_lgpl module still builds
38392         * lib/fts.c: Guard just-added hash-table-using parts with
38393         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
38394         Reported by Simon Josefsson.
38395
38396 2009-02-15  Bruno Haible  <bruno@clisp.org>
38397
38398         * modules/array-mergesort-tests: New file.
38399         * tests/test-array-mergesort.c: New file.
38400
38401         New module 'array-mergesort'.
38402         * modules/array-mergesort: New file.
38403         * lib/array-mergesort.h: New file.
38404
38405 2009-02-15  Bruno Haible  <bruno@clisp.org>
38406
38407         Fix 2009-02-07 commit.
38408         * lib/gen-uni-tables.c (output_predicate, output_category,
38409         output_combclass, output_bidi_category, output_decimal_digit,
38410         output_digit, output_numeric, output_mirror, output_scripts,
38411         output_ident_category, output_simple_mapping): Fix format directives.
38412         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
38413
38414 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
38415
38416         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
38417         fixes are available from IBM.
38418
38419 2009-02-13  Jim Meyering  <meyering@redhat.com>
38420
38421         fts: arrange not to stat non-directories in more cases
38422         This makes GNU find (when it doesn't need to stat each file)
38423         *much* more efficient at traversing reiserfs file systems.
38424         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
38425         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
38426         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
38427         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
38428         (leaf_optimization_applies): New function.
38429         (LCO_hash, LCO_compare): New helper functions.
38430         (link_count_optimize_ok): New function.
38431         (fts_stat): Initialize new member (if dir).
38432         (fts_read): Decrement parent's fts_n_dirs_remaining count if
38433         we've just stat'ed a directory.  Skip the stat call when possible.
38434         ---
38435         Note this AFS-related exchange:
38436         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
38437         and note find's pioctl call in find/fstype.c.
38438         But that is necessary only if you want to enable the
38439         optimization for AFS, and for now, I don't.
38440
38441         fts: move a function definition "up" (no semantic change)
38442         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
38443         "up" to precede upcoming use of a related function.
38444
38445 2009-02-11  Jim Meyering  <meyering@redhat.com>
38446
38447         fts: correct internal computation of nlinks (optimization-related)
38448         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
38449         whether the current entry is a directory, so don't test it.
38450
38451 2009-02-10  Bruno Haible  <bruno@clisp.org>
38452
38453         Tests for module 'uniwbrk/ulc-wordbreaks'.
38454         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
38455         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
38456         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
38457
38458         Tests for module 'uniwbrk/u32-wordbreaks'.
38459         * modules/uniwbrk/u32-wordbreaks-tests: New file.
38460         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
38461
38462         Tests for module 'uniwbrk/u16-wordbreaks'.
38463         * modules/uniwbrk/u16-wordbreaks-tests: New file.
38464         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
38465
38466         Tests for module 'uniwbrk/u8-wordbreaks'.
38467         * modules/uniwbrk/u8-wordbreaks-tests: New file.
38468         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
38469
38470 2009-02-10  Bruno Haible  <bruno@clisp.org>
38471
38472         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
38473         property.
38474         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
38475         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
38476         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
38477
38478 2009-02-10  Simon Josefsson  <simon@josefsson.org>
38479
38480         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
38481         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
38482
38483 2009-02-10  Bruno Haible  <bruno@clisp.org>
38484
38485         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
38486         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
38487         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
38488         * lib/unilbrk/u8-possible-linebreaks.c: Update.
38489         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
38490         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
38491
38492 2009-02-09  Simon Josefsson  <simon@josefsson.org>
38493
38494         * lib/sockets.h (gl_fd_to_handle): New function.
38495
38496         * tests/test-sockets.c: Call gl_fd_to_handle.
38497
38498 2009-02-09  Bruno Haible  <bruno@clisp.org>
38499
38500         * doc/havelib.texi: Document the conventions on bi-arch systems.
38501
38502 2009-02-08  Bruno Haible  <bruno@clisp.org>
38503
38504         Document the AC_LIB_LINKFLAGS macro.
38505         * doc/havelib.texi: New file, mostly written on 2005-05-24.
38506         * doc/gnulib.texi: Include it.
38507
38508 2009-02-08  Bruno Haible  <bruno@clisp.org>
38509
38510         Fix wrong order of sections, compared to TOC.
38511         * doc/gnulib.texi: Include relocatable-maint.texi after the
38512         "Regular expressions" node, not before.
38513
38514 2009-02-08  Bruno Haible  <bruno@clisp.org>
38515
38516         Tests for module 'unicase/totitle'.
38517         * modules/unicase/totitle-tests: New file.
38518
38519         Tests for module 'unicase/tolower'.
38520         * modules/unicase/tolower-tests: New file.
38521
38522         Tests for module 'unicase/toupper'.
38523         * modules/unicase/toupper-tests: New file.
38524         * tests/unicase/test-mapping-part1.h: New file.
38525         * tests/unicase/test-mapping-part2.h: New file.
38526
38527         New module 'unicase/totitle'.
38528         * modules/unicase/totitle: New file.
38529         * lib/unicase/totitle.c: New file.
38530
38531         New module 'unicase/tolower'.
38532         * modules/unicase/tolower: New file.
38533         * lib/unicase/tolower.c: New file.
38534
38535         New module 'unicase/toupper'.
38536         * modules/unicase/toupper: New file.
38537         * lib/unicase/toupper.c: New file.
38538         * lib/unicase/simple-mapping.h: New file.
38539
38540         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38541         (mapping_table): New structure.
38542         (output_simple_mapping): New function.
38543         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38544         * modules/gen-uni-tables (Description): Update.
38545         * lib/unicase/toupper.h: New file, automatically generated by
38546         gen-uni-tables.
38547         * lib/unicase/tolower.h: New file, automatically generated by
38548         gen-uni-tables.
38549         * lib/unicase/totitle.h: New file, automatically generated by
38550         gen-uni-tables.
38551         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38552         gen-uni-tables.
38553         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38554         gen-uni-tables.
38555         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38556         gen-uni-tables.
38557
38558         New module 'unicase/base'.
38559         * modules/unicase/base: New file.
38560         * lib/unicase.h: New file.
38561
38562 2009-02-08  Bruno Haible  <bruno@clisp.org>
38563
38564         New module 'uniwbrk/ulc-wordbreaks'.
38565         * modules/uniwbrk/ulc-wordbreaks: New file.
38566         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38567
38568         New module 'uniwbrk/u32-wordbreaks'.
38569         * modules/uniwbrk/u32-wordbreaks: New file.
38570         * lib/uniwbrk/u32-wordbreaks.c: New file.
38571
38572         New module 'uniwbrk/u16-wordbreaks'.
38573         * modules/uniwbrk/u16-wordbreaks: New file.
38574         * lib/uniwbrk/u16-wordbreaks.c: New file.
38575
38576         New module 'uniwbrk/u8-wordbreaks'.
38577         * modules/uniwbrk/u8-wordbreaks: New file.
38578         * lib/uniwbrk/u8-wordbreaks.c: New file.
38579         * lib/uniwbrk/u-wordbreaks.h: New file.
38580
38581         New module 'uniwbrk/table'.
38582         * modules/uniwbrk/table: New file.
38583         * lib/uniwbrk/wbrktable.h: New file.
38584         * lib/uniwbrk/wbrktable.c: New file.
38585
38586         New module 'uniwbrk/wordbreak-property'.
38587         * modules/uniwbrk/wordbreak-property: New file.
38588         * lib/uniwbrk/wordbreak-property.c: New file.
38589
38590         * lib/gen-uni-tables.c (WBP_*): New enum items.
38591         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38592         (unicode_org_wbp): New variable.
38593         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38594         New functions.
38595         (wbp_table): New structure.
38596         (output_wbp, output_wbrk_tables): New functions.
38597         (main): Accept additional argument. Invoke fill_org_wbp,
38598         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38599         output_wbrk_tables.
38600         * modules/gen-uni-tables (Description): Update.
38601         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38602         gen-uni-tables.
38603
38604         New module 'uniwbrk/base'.
38605         * modules/uniwbrk/base: New file.
38606         * lib/uniwbrk.h: New file.
38607
38608 2009-02-08  Bruno Haible  <bruno@clisp.org>
38609
38610         Update to Unicode 5.1.0.
38611         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38612         U+2185..U+2188.
38613         (is_property_default_ignorable_code_point): Don't include characters
38614         of category Cc or Cs and not-a-characters.
38615         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38616         U+0D79, U+109E, U+109F, U+A60C.
38617         * lib/unictype/bidi_of.h: Regenerated.
38618         * lib/unictype/blocks.h: Regenerated.
38619         * lib/unictype/categ_C.h: Regenerated.
38620         * lib/unictype/categ_Cf.h: Regenerated.
38621         * lib/unictype/categ_Cn.h: Regenerated.
38622         * lib/unictype/categ_L.h: Regenerated.
38623         * lib/unictype/categ_Ll.h: Regenerated.
38624         * lib/unictype/categ_Lm.h: Regenerated.
38625         * lib/unictype/categ_Lo.h: Regenerated.
38626         * lib/unictype/categ_Lu.h: Regenerated.
38627         * lib/unictype/categ_M.h: Regenerated.
38628         * lib/unictype/categ_Mc.h: Regenerated.
38629         * lib/unictype/categ_Me.h: Regenerated.
38630         * lib/unictype/categ_Mn.h: Regenerated.
38631         * lib/unictype/categ_N.h: Regenerated.
38632         * lib/unictype/categ_Nd.h: Regenerated.
38633         * lib/unictype/categ_Nl.h: Regenerated.
38634         * lib/unictype/categ_No.h: Regenerated.
38635         * lib/unictype/categ_P.h: Regenerated.
38636         * lib/unictype/categ_Pd.h: Regenerated.
38637         * lib/unictype/categ_Pe.h: Regenerated.
38638         * lib/unictype/categ_Pf.h: Regenerated.
38639         * lib/unictype/categ_Pi.h: Regenerated.
38640         * lib/unictype/categ_Po.h: Regenerated.
38641         * lib/unictype/categ_Ps.h: Regenerated.
38642         * lib/unictype/categ_S.h: Regenerated.
38643         * lib/unictype/categ_Sk.h: Regenerated.
38644         * lib/unictype/categ_Sm.h: Regenerated.
38645         * lib/unictype/categ_So.h: Regenerated.
38646         * lib/unictype/categ_of.h: Regenerated.
38647         * lib/unictype/combining.h: Regenerated.
38648         * lib/unictype/ctype_alnum.h: Regenerated.
38649         * lib/unictype/ctype_alpha.h: Regenerated.
38650         * lib/unictype/ctype_graph.h: Regenerated.
38651         * lib/unictype/ctype_lower.h: Regenerated.
38652         * lib/unictype/ctype_print.h: Regenerated.
38653         * lib/unictype/ctype_punct.h: Regenerated.
38654         * lib/unictype/ctype_upper.h: Regenerated.
38655         * lib/unictype/decdigit.h: Regenerated.
38656         * lib/unictype/digit.h: Regenerated.
38657         * lib/unictype/mirror.h: Regenerated.
38658         * lib/unictype/numeric.h: Regenerated.
38659         * lib/unictype/pr_alphabetic.h: Regenerated.
38660         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38661         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38662         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38663         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38664         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38665         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38666         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38667         * lib/unictype/pr_combining.h: Regenerated.
38668         * lib/unictype/pr_dash.h: Regenerated.
38669         * lib/unictype/pr_decimal_digit.h: Regenerated.
38670         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38671         * lib/unictype/pr_deprecated.h: Regenerated.
38672         * lib/unictype/pr_diacritic.h: Regenerated.
38673         * lib/unictype/pr_extender.h: Regenerated.
38674         * lib/unictype/pr_format_control.h: Regenerated.
38675         * lib/unictype/pr_grapheme_base.h: Regenerated.
38676         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38677         * lib/unictype/pr_grapheme_link.h: Regenerated.
38678         * lib/unictype/pr_id_continue.h: Regenerated.
38679         * lib/unictype/pr_id_start.h: Regenerated.
38680         * lib/unictype/pr_ideographic.h: Regenerated.
38681         * lib/unictype/pr_ignorable_control.h: Regenerated.
38682         * lib/unictype/pr_lowercase.h: Regenerated.
38683         * lib/unictype/pr_math.h: Regenerated.
38684         * lib/unictype/pr_numeric.h: Regenerated.
38685         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38686         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38687         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38688         * lib/unictype/pr_other_id_continue.h: Regenerated.
38689         * lib/unictype/pr_other_lowercase.h: Regenerated.
38690         * lib/unictype/pr_other_math.h: Regenerated.
38691         * lib/unictype/pr_punctuation.h: Regenerated.
38692         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38693         * lib/unictype/pr_soft_dotted.h: Regenerated.
38694         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38695         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38696         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38697         * lib/unictype/pr_uppercase.h: Regenerated.
38698         * lib/unictype/pr_xid_continue.h: Regenerated.
38699         * lib/unictype/pr_xid_start.h: Regenerated.
38700         * lib/unictype/pr_zero_width.h: Regenerated.
38701         * lib/unictype/scripts.h: Regenerated.
38702         * lib/unictype/scripts_byname.gperf: Regenerated.
38703         * lib/unictype/sy_java_ident.h: Regenerated.
38704         * lib/unilbrk/lbrkprop1.h: Regenerated.
38705         * lib/unilbrk/lbrkprop2.h: Regenerated.
38706         * tests/unictype/test-categ_C.c: Regenerated.
38707         * tests/unictype/test-categ_Cf.c: Regenerated.
38708         * tests/unictype/test-categ_Cn.c: Regenerated.
38709         * tests/unictype/test-categ_L.c: Regenerated.
38710         * tests/unictype/test-categ_Ll.c: Regenerated.
38711         * tests/unictype/test-categ_Lm.c: Regenerated.
38712         * tests/unictype/test-categ_Lo.c: Regenerated.
38713         * tests/unictype/test-categ_Lu.c: Regenerated.
38714         * tests/unictype/test-categ_M.c: Regenerated.
38715         * tests/unictype/test-categ_Mc.c: Regenerated.
38716         * tests/unictype/test-categ_Me.c: Regenerated.
38717         * tests/unictype/test-categ_Mn.c: Regenerated.
38718         * tests/unictype/test-categ_N.c: Regenerated.
38719         * tests/unictype/test-categ_Nd.c: Regenerated.
38720         * tests/unictype/test-categ_Nl.c: Regenerated.
38721         * tests/unictype/test-categ_No.c: Regenerated.
38722         * tests/unictype/test-categ_P.c: Regenerated.
38723         * tests/unictype/test-categ_Pd.c: Regenerated.
38724         * tests/unictype/test-categ_Pe.c: Regenerated.
38725         * tests/unictype/test-categ_Pf.c: Regenerated.
38726         * tests/unictype/test-categ_Pi.c: Regenerated.
38727         * tests/unictype/test-categ_Po.c: Regenerated.
38728         * tests/unictype/test-categ_Ps.c: Regenerated.
38729         * tests/unictype/test-categ_S.c: Regenerated.
38730         * tests/unictype/test-categ_Sk.c: Regenerated.
38731         * tests/unictype/test-categ_Sm.c: Regenerated.
38732         * tests/unictype/test-categ_So.c: Regenerated.
38733         * tests/unictype/test-ctype_alnum.c: Regenerated.
38734         * tests/unictype/test-ctype_alpha.c: Regenerated.
38735         * tests/unictype/test-ctype_graph.c: Regenerated.
38736         * tests/unictype/test-ctype_lower.c: Regenerated.
38737         * tests/unictype/test-ctype_print.c: Regenerated.
38738         * tests/unictype/test-ctype_punct.c: Regenerated.
38739         * tests/unictype/test-ctype_upper.c: Regenerated.
38740         * tests/unictype/test-decdigit.h: Regenerated.
38741         * tests/unictype/test-digit.h: Regenerated.
38742         * tests/unictype/test-numeric.h: Regenerated.
38743         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38744         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38745         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38746         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38747         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38748         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38749         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38750         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38751         * tests/unictype/test-pr_combining.c: Regenerated.
38752         * tests/unictype/test-pr_dash.c: Regenerated.
38753         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38754         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38755         * tests/unictype/test-pr_deprecated.c: Regenerated.
38756         * tests/unictype/test-pr_diacritic.c: Regenerated.
38757         * tests/unictype/test-pr_extender.c: Regenerated.
38758         * tests/unictype/test-pr_format_control.c: Regenerated.
38759         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38760         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38761         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38762         * tests/unictype/test-pr_id_continue.c: Regenerated.
38763         * tests/unictype/test-pr_id_start.c: Regenerated.
38764         * tests/unictype/test-pr_ideographic.c: Regenerated.
38765         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38766         * tests/unictype/test-pr_lowercase.c: Regenerated.
38767         * tests/unictype/test-pr_math.c: Regenerated.
38768         * tests/unictype/test-pr_numeric.c: Regenerated.
38769         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38770         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38771         Regenerated.
38772         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38773         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38774         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38775         * tests/unictype/test-pr_other_math.c: Regenerated.
38776         * tests/unictype/test-pr_punctuation.c: Regenerated.
38777         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38778         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38779         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38780         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38781         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38782         * tests/unictype/test-pr_uppercase.c: Regenerated.
38783         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38784         * tests/unictype/test-pr_xid_start.c: Regenerated.
38785         * tests/unictype/test-pr_zero_width.c: Regenerated.
38786
38787         Update to Unicode 5.1.0.
38788         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38789         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38790         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38791         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38792         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38793         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38794         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38795         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38796         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38797         (nonspacing_table_ind): Update.
38798         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38799
38800         Update to Unicode 5.1.0.
38801         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38802         code transform.
38803         * lib/uniname/uniname.c (unicode_character_name,
38804         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38805         * lib/uniname/uninames.h: Regenerated.
38806         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38807
38808 2009-02-07  Bruno Haible  <bruno@clisp.org>
38809
38810         Merge gen-ctype and gen-lbrk into a single program.
38811         * lib/gen-uni-tables.c: New file, incorporating
38812         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38813         Add directory prefixes to the names of the generated files.
38814         * lib/unictype/gen-ctype.c: Remove file.
38815         * lib/unilbrk/gen-lbrk.c: Remove file.
38816         * modules/gen-uni-tables: New file.
38817         * modules/unictype/gen-ctype: Remove file.
38818         * modules/unilbrk/gen-lbrk: Remove file.
38819
38820 2009-02-07  Bruno Haible  <bruno@clisp.org>
38821
38822         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38823
38824         New module 'unistr/u32-strcoll'.
38825         * modules/unistr/u32-strcoll: New file.
38826         * lib/unistr/u32-strcoll.c: New file.
38827
38828         New module 'unistr/u16-strcoll'.
38829         * modules/unistr/u16-strcoll: New file.
38830         * lib/unistr/u16-strcoll.c: New file.
38831
38832         New module 'unistr/u8-strcoll'.
38833         * modules/unistr/u8-strcoll: New file.
38834         * lib/unistr/u8-strcoll.c: New file.
38835         * lib/unistr/u-strcoll.h: New file.
38836
38837 2009-02-07  Bruno Haible  <bruno@clisp.org>
38838
38839         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38840         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38841         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38842         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38843         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38844         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38845
38846 2009-02-07  Bruno Haible  <bruno@clisp.org>
38847
38848         Make 64-bit clean.
38849         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38850         output_combclass, output_bidi_category, output_decimal_digit,
38851         output_digit, output_numeric, output_mirror, output_scripts,
38852         output_ident_category): Use proper width specifier in format strings.
38853
38854 2009-02-07  Bruno Haible  <bruno@clisp.org>
38855
38856         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38857         failure behaviour.
38858
38859 2009-02-07  Jim Meyering  <meyering@redhat.com>
38860
38861         regex: avoid compilation failure with upcoming gcc-4.4
38862         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38863         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38864         "... error: integer overflow in preprocessor expression".
38865
38866 2009-02-05  Ben Pfaff  <blp@gnu.org>
38867
38868         Fix link errors on Windows when close module is used.
38869         * modules/close: Add $(LIB_CLOSE) to Link section.
38870         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38871         $(LIB_CLOSE) on Windows.
38872
38873 2009-02-05  Jim Meyering  <meyering@redhat.com>
38874
38875         still avoid unused-parameter warnings, but do it cleanly
38876         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38877         (get_fs_usage): Cast to void instead.
38878         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38879         (dev_from_mount_options, read_file_system_list): Cast to void.
38880         Prompted by Bruno Haible.
38881
38882 2009-02-04  Jim Meyering  <meyering@redhat.com>
38883
38884         fsusage.c: correct copyright year
38885         * lib/fsusage.c: Reflect year in which the change is pushed into
38886
38887         avoid misc. warnings
38888         * lib/fsusage.c (UNUSED_PARAM): Define.
38889         (get_fs_usage): Mark parameter "disk" as unused.
38890         * lib/getugroups.c (getgrent): Use "void" in prototype.
38891         * lib/mountlist.c: Mark unused parameters.
38892         (read_file_system_list): Declare a local with "const".
38893         * lib/nanosleep.c (getnow): Declare static.
38894         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38895
38896         dirfd: set errno upon failure
38897         * lib/dirfd.c: Include <errno.h>.
38898         Set errno to ENOTSUP when returning -1.
38899         * modules/dirfd (Depends-on): Add errno.
38900         Suggested by John Kodis <kodis@comcast.net>.
38901
38902 2009-02-01  Bruno Haible  <bruno@clisp.org>
38903
38904         Don't assume sizeof (long) >= sizeof (void *).
38905         * lib/memcmp.c: Include stdint.h.
38906         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38907         srcp2 to 'const byte *'.
38908         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38909         types to uintptr_t.
38910         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38911         * modules/memcmp (Depends-on): Add stdint.
38912         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38913
38914 2009-01-30  Eric Blake  <ebb9@byu.net>
38915
38916         fix more require-before-expand issues
38917         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38918         expand, AC_PROG_AWK.
38919         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38920
38921 2009-01-28  Eric Blake  <ebb9@byu.net>
38922
38923         version-etc: use consistent URL formatting
38924         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38925         Improve formatting.  Use fputs for string without %.
38926
38927 2009-01-28  Jim Meyering  <meyering@redhat.com>
38928
38929         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38930         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38931         "underquoted definition of NAME" from autoconf-2.59.
38932
38933 2009-01-28  Bruno Haible  <bruno@clisp.org>
38934
38935         * doc/gnulib.texi: Add "Obsolete modules" to index.
38936
38937 2009-01-28  Jim Meyering  <meyering@redhat.com>
38938
38939         useless-if-before-free: recognize more variants
38940         * build-aux/useless-if-before-free: Also recognize e.g.,
38941         if (NULL != p) free (p);
38942
38943 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38944
38945         test-getaddrinfo: skip (don't fail) this test when there's no network
38946         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38947         on the presumption that it means you lack network access.
38948
38949 2009-01-26  Jim Meyering  <meyering@redhat.com>
38950
38951         fflush: avoid warnings on modern systems
38952         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38953         pos and result, into scopes where they're used.
38954
38955 2009-01-26  Eric Blake  <ebb9@byu.net>
38956
38957         Silence warning reintroduced by recent extensions patch.
38958         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38959         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38960         autoconf.
38961
38962         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38963         * m4/00gnulib.m4: New file.
38964         * gnulib-tool (func_get_filelist): Always use it.
38965         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38966         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38967
38968 2009-01-25  Bruno Haible  <bruno@clisp.org>
38969
38970         Make test-quotearg work on MacOS X and AIX.
38971         * tests/test-quotearg.sh: New file.
38972         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38973         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38974         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38975         include <libintl.h>.
38976         (fake_locale): Remove variable.
38977         (gettext, dgettext, dcgettext): Remove functions.
38978         (main): Instead of setting a fake locale, set a real locale. Call
38979         textdomain and bindtextdomain.
38980         * modules/quotearg-tests (Files): Add the new files.
38981         (Depends-on): Add gettext, setenv, unsetenv.
38982         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38983         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38984         Augment TESTS_ENVIRONMENT.
38985
38986 2009-01-25  Bruno Haible  <bruno@clisp.org>
38987
38988         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38989         fr_FR.ISO8859-1 locale on MacOS X.
38990         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38991         ja_JP.eucJP locale on MacOS X.
38992         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38993         zh_CN.GB18030 locale on MacOS X.
38994
38995 2009-01-25  Bruno Haible  <bruno@clisp.org>
38996
38997         Avoid link errors on MacOS X 10.3.
38998         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38999         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39000
39001 2009-01-25  Bruno Haible  <bruno@clisp.org>
39002
39003         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39004         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
39005         * modules/pipe (Files): Remove m4/posix_spawn.m4.
39006         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39007         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
39008         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39009         posix_spawnattr_init, posix_spawnattr_setsigmask,
39010         posix_spawnattr_setflags, posix_spawnattr_destroy.
39011
39012         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39013         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
39014         * modules/execute (Files): Remove m4/posix_spawn.m4.
39015         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39016         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39017         posix_spawnattr_init, posix_spawnattr_setsigmask,
39018         posix_spawnattr_setflags, posix_spawnattr_destroy.
39019
39020 2009-01-25  Bruno Haible  <bruno@clisp.org>
39021
39022         * lib/glthread/threadlib.c: Include <stdlib.h>.
39023
39024 2009-01-25  Bruno Haible  <bruno@clisp.org>
39025
39026         * lib/glthread/threadlib.c (dummy): New declaration.
39027
39028 2009-01-25  Bruno Haible  <bruno@clisp.org>
39029
39030         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
39031         multibyte characters also for the GB18030 encoding. Don't crash when
39032         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
39033
39034 2009-01-25  Bruno Haible  <bruno@clisp.org>
39035
39036         Avoid redefining 'struct random_data' on OSF/1 5.1.
39037         * lib/stdlib.in.h: Include <random.h> if it exists.
39038         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
39039         HAVE_RANDOM_H. Include <random.h> when testing whether
39040         'struct random_data' exists.
39041         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
39042
39043 2009-01-25  Bruno Haible  <bruno@clisp.org>
39044
39045         Don't install charset.alias on MacOS X >= 10.3.
39046         * lib/localcharset.c (DARWIN7): New macro.
39047         (get_charset_aliases): Hardcode the result for Darwin7.
39048         * modules/localcharset (install-exec-local): Don't install
39049         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
39050
39051 2009-01-25  Bruno Haible  <bruno@clisp.org>
39052
39053         Don't install charset.alias on mingw and Cygwin.
39054         * modules/localcharset (install-exec-local): Don't install
39055         charset.alias on mingw and Cygwin, if the file does not yet exist.
39056         The result for these platforms is hardcoded in localcharset.c.
39057
39058 2009-01-25  Bruno Haible  <bruno@clisp.org>
39059
39060         Make it possible again to use AC_GNU_SOURCE together with gnulib.
39061         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
39062         before requiring AC_USE_SYSTEM_EXTENSIONS.
39063
39064 2009-01-25  Jim Meyering  <meyering@redhat.com>
39065
39066         c-strtod: avoid warnings
39067         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
39068         "assignment discards qualifiers from pointer target type" warnings.
39069
39070 2009-01-24  Bruno Haible  <bruno@clisp.org>
39071
39072         Add support for non-UTF-8 locales on MacOS X.
39073         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
39074         canonical encodings. For Darwin 7 and newer, don't map traditional
39075         encodings to UTF-8.
39076         Reported by Vincent Lefevre <vincent@vinc17.org>
39077         at <http://savannah.gnu.org/bugs/?25235>.
39078
39079 2009-01-24  Bruno Haible  <bruno@clisp.org>
39080
39081         * doc/gnulib.texi (Obsolete modules): New section.
39082         Reported by Mike Frysinger <vapier@gentoo.org>.
39083
39084 2009-01-24  Bruno Haible  <bruno@clisp.org>
39085
39086         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
39087         (%.dvi): New rule.
39088
39089 2009-01-24  Bruno Haible  <bruno@clisp.org>
39090
39091         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
39092         Reported by Eric Blake.
39093
39094 2009-01-24  Bruno Haible  <bruno@clisp.org>
39095
39096         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
39097         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
39098         Reported by Gary V. Vaughan <gary@gnu.org>.
39099
39100 2009-01-24  Bruno Haible  <bruno@clisp.org>
39101
39102         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
39103
39104 2009-01-23  Bruno Haible  <bruno@clisp.org>
39105
39106         Make c-strtod, c-strtold usable in libraries.
39107         * lib/c-strtod.c: Include string.h instead of xalloc.h.
39108         (C_STRTOD): Call strdup instead of xstrdup.
39109         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
39110         * modules/c-strtold (Depends-on): Likewise.
39111         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
39112         * NEWS: Mention the change.
39113         Reported by Michael Gold <mgold@ncf.ca>.
39114
39115 2009-01-23  Jim Meyering  <meyering@redhat.com>
39116
39117         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
39118         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
39119         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
39120
39121 2009-01-23  Simon Josefsson  <simon@josefsson.org>
39122
39123         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
39124         GNU CoreUtils.
39125         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
39126         * modules/version-etc (Description): Update.
39127
39128 2009-01-22  Bruno Haible  <bruno@clisp.org>
39129
39130         Cache the C locale object.
39131         * lib/c-strtod.c (c_locale_cache): New variable.
39132         (c_locale): New function.
39133         (C_STRTOD): Use it, and don't call freelocale.
39134         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
39135         Suggested by Paolo Bonzini.
39136
39137 2009-01-21  Bruno Haible  <bruno@clisp.org>
39138
39139         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
39140         conditions other than overflow.
39141
39142 2009-01-21  Bruno Haible  <bruno@clisp.org>
39143
39144         * lib/c-strtod.c: Include errno.h.
39145         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
39146         value from STRTOD_L and STRTOD.
39147
39148 2009-01-21  Bruno Haible  <bruno@clisp.org>
39149         and Jim Meyering  <meyering@redhat.com>
39150
39151         nanosleep: skip configure test (fail it) for apple universal builds
39152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
39153         universal builds, assume that nanosleep does not work.
39154         * modules/nanosleep (Depends-on): Add multiarch.
39155
39156         mktime: skip configure test (fail it) for apple universal builds
39157         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
39158         universal builds, assume that mktime does not work.
39159         * modules/mktime (Depends-on): Add multiarch.
39160
39161 2009-01-21  Eric Blake  <ebb9@byu.net>
39162
39163         multiarch: avoid expand-before-require warning
39164         * modules/multiarch (configure.ac): Require, rather than expand,
39165         gl_MULTIARCH.
39166         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
39167         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
39168         enforce that all clients require it.  Partial reversion of
39169         2008-12-29 patch.
39170
39171         error: avoid expand-before-require warning
39172         * modules/errno (configure.ac): Require, rather than expand,
39173         gl_HEADER_ERRNO_H.
39174         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
39175         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
39176         enforce that all clients require it.
39177
39178         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
39179         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
39180         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
39181         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
39182
39183 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
39184
39185         Revert:
39186         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39187
39188         regex: do not depend on obsolete modules.
39189         * modules/regex: Remove memcmp and memmove.
39190
39191 2009-01-20  Bruno Haible  <bruno@clisp.org>
39192
39193         Make the 'link' module link on Windows NT 4.
39194         * lib/link.c (_WIN32_WINNT): Don't define.
39195         (CreateHardLinkFuncType): New type.
39196         (CreateHardLinkFunc, initialized): New variables.
39197         (initialize): New function.
39198         (link): Invoke CreateHardLink indirectly through the function pointer.
39199
39200 2009-01-20  Bruno Haible  <bruno@clisp.org>
39201
39202         Fix compilation failure on mingw.
39203         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
39204
39205 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
39206
39207         * doc/c-strtod.texi: Mention a couple of restrictions.
39208
39209 2009-01-20  Jim Meyering  <meyering@redhat.com>
39210
39211         gettimeofday: move more declarations out of functions
39212         * lib/gettimeofday.c: Move extern declarations of tzset and
39213         gmtime out of containing functions.  Prompted by Bruno Haible.
39214
39215 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39216
39217         regex: do not depend on obsolete modules.
39218         * modules/regex: Remove memcmp and memmove.
39219
39220 2009-01-19  Bruno Haible  <bruno@clisp.org>
39221
39222         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39223         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
39224         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39225         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
39226         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
39227
39228 2009-01-19  Bruno Haible  <bruno@clisp.org>
39229
39230         * tests/test-link.c: Include <errno.h>.
39231         (main): Exit with code 77 when a hard link cannot be created due to
39232         the file system.
39233         * tests/test-link.sh: Skip test when a hard link cannot be created due
39234         to the file system.
39235         Suggested by Eric Blake.
39236
39237 2009-01-19  Martin Lambers  <marlam@marlam.de>
39238
39239         * modules/link-tests: New file.
39240         * tests/test-link.sh: New file.
39241         * tests/test-link.c: New file.
39242
39243 2009-01-19  Eric Blake  <ebb9@byu.net>
39244
39245         doc: mention another function added in cygwin 1.7.0
39246         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
39247         Another new function in cygwin 1.7.
39248
39249 2009-01-19  Bruno Haible  <bruno@clisp.org>
39250
39251         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39252         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
39253         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
39254         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39255         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39256         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39257         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39258         * m4/md4.m4 (gl_MD4): Likewise.
39259         * m4/md5.m4 (gl_MD5): Likewise.
39260         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
39261         * m4/sha1.m4 (gl_SHA1): Likewise.
39262         * m4/sha256.m4 (gl_SHA256): Likewise.
39263         * m4/sha512.m4 (gl_SHA512): Likewise.
39264
39265 2009-01-19  Bruno Haible  <bruno@clisp.org>
39266
39267         * modules/uniname/uniname-tests (Depends-on): Add progname.
39268         * tests/uniname/test-uninames.c: Include progname.h.
39269         (main): Call set_program_name.
39270
39271         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
39272         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
39273         (main): Call set_program_name.
39274
39275         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
39276         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
39277         (main): Call set_program_name.
39278
39279         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
39280         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
39281         (main): Call set_program_name.
39282
39283         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
39284         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
39285         (main): Call set_program_name.
39286
39287         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
39288         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
39289         (main): Call set_program_name.
39290
39291         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
39292         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
39293         (main): Call set_program_name.
39294
39295         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
39296         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
39297         (main): Call set_program_name.
39298
39299         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
39300         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
39301         (main): Call set_program_name.
39302
39303 2009-01-19  Eric Blake  <ebb9@byu.net>
39304
39305         test-unistd: test previous patch
39306         * tests/test-unistd.c: Test *_FILENO macros.
39307
39308         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
39309         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39310         Guarantee a definition.
39311         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
39312         * modules/unistd-safer (Depends-on): Add dependency on unistd.
39313         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
39314         * lib/dup-safer.c (STDERR_FILENO): Likewise.
39315         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39316         Likewise.
39317         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
39318         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
39319         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39320         Likewise.
39321         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
39322         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
39323         (STDERR_FILENO): Likewise.
39324         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
39325         (STDERR_FILENO): Likewise.
39326         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
39327         (STDERR_FILENO): Likewise.
39328         Reported by Elbert Pol.
39329
39330 2009-01-19  Eric Blake  <ebb9@byu.net>
39331
39332         doc: mention more functions added in cygwin 1.7.0
39333         * doc/posix-functions/abort.texi (abort): Update wording related
39334         to cygwin.
39335         * doc/posix-functions/daylight.texi (daylight): Likewise.
39336         * doc/posix-functions/optarg.texi (optarg): Likewise.
39337         * doc/posix-functions/optarg.texi (opterr): Likewise.
39338         * doc/posix-functions/optarg.texi (optind): Likewise.
39339         * doc/posix-functions/optarg.texi (optopt): Likewise.
39340         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
39341         worked in 1.5.x, and was withdrawn in 1.7.
39342         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
39343         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
39344         cygwin versions.
39345         * doc/posix-functions/perror.texi (perror): Likewise.
39346         * doc/posix-functions/printf.texi (printf): Likewise.
39347         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
39348         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
39349         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39350         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39351         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39352         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
39353         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39354         Likewise.
39355         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39356         Likewise.
39357         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
39358         this function.
39359         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
39360         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
39361         Likewise.
39362         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
39363         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
39364         * doc/posix-functions/confstr.texi (confstr): Likewise.
39365         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
39366         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
39367         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
39368         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
39369         * doc/posix-functions/fputws.texi (fputws): Likewise.
39370         * doc/posix-functions/fwide.texi (fwide): Likewise.
39371         * doc/posix-functions/getwc.texi (getwc): Likewise.
39372         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
39373         * doc/posix-functions/putwc.texi (putwc): Likewise.
39374         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
39375         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
39376         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
39377         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
39378         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
39379         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
39380         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
39381         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
39382         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
39383         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
39384         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
39385
39386 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39387
39388         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
39389         * lib/ioctl.c: Include <sys/ioctl.h>.
39390
39391 2009-01-19  Simon Josefsson  <simon@josefsson.org>
39392
39393         * modules/getdate-tests (Depends-on): Add progname.
39394         * tests/test-getdate.c: Use progname module, to avoid link errors
39395         on non-glibc systems.
39396
39397 2009-01-18  Simon Josefsson  <simon@josefsson.org>
39398
39399         * modules/filenamecat-tests (Depends-on): Add progname.
39400         * modules/fstrcmp-tests (Depends-on): Likewise.
39401
39402         * tests/test-filenamecat.c: Use progname module, to avoid link
39403         errors on non-glibc systems.
39404         * tests/test-fstrcmp.c: Likewise.
39405
39406 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39407
39408         gettimeofday: avoid warning: nested extern declaration of 'localtime'
39409         * lib/gettimeofday.c: Move extern declaration out of function.
39410
39411 2009-01-18  Bruno Haible  <bruno@clisp.org>
39412
39413         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
39414         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
39415         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
39416
39417 2009-01-18  Bruno Haible  <bruno@clisp.org>
39418
39419         * lib/strftime.c (MEMPCPY): Remove unused macro.
39420         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
39421
39422 2009-01-18  Martin Lambers  <marlam@marlam.de>
39423
39424         New module 'link'.
39425         * lib/unistd.in.h (link): New declaration.
39426         * lib/link.c: New file.
39427         * m4/link.m4: New file.
39428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
39429         HAVE_LINK.
39430         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
39431         * modules/link: New file.
39432         * doc/posix-functions/link.texi: Mention the new module.
39433
39434 2009-01-18  Bruno Haible  <bruno@clisp.org>
39435
39436         * tests/test-avltree_list.c (main): Call set_program_name.
39437         * tests/test-avltree_oset.c (main): Likewise.
39438         * tests/test-obstack-printf.c: Include progname.h.
39439         (main): Call set_program_name.
39440         * tests/test-quotearg.c: Include progname.h.
39441         (main): Call set_program_name.
39442         * tests/test-xmemdup0.c: Include progname.h.
39443         (main): Call set_program_name.
39444
39445 2009-01-18  Bruno Haible  <bruno@clisp.org>
39446
39447         New module 'alphasort'.
39448         * lib/dirent.in.h (alphasort): New declaration.
39449         * lib/alphasort.c: New file, from glibc with modifications.
39450         * m4/alphasort.m4: New file.
39451         * modules/alphasort: New file.
39452         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
39453         HAVE_ALPHASORT.
39454         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
39455         HAVE_ALPHASORT.
39456         * doc/posix-functions/alphasort.texi: Mention the new module and the
39457         portability problems.
39458
39459 2009-01-18  Bruno Haible  <bruno@clisp.org>
39460
39461         New module 'scandir'.
39462         * lib/dirent.in.h (scandir): New declaration.
39463         * lib/scandir.c: New file, from glibc with modifications.
39464         * m4/scandir.m4: New file.
39465         * modules/scandir: New file.
39466         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
39467         HAVE_SCANDIR.
39468         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
39469         HAVE_SCANDIR.
39470         * doc/posix-functions/scandir.texi: Mention the new module and the
39471         portability problems.
39472
39473 2009-01-17  Bruno Haible  <bruno@clisp.org>
39474
39475         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
39476         Update documentation.
39477         (func_remove_suffix): Escape all dots in the suffix. Update
39478         documentation.
39479         (func_filter_filelist): Update documentation.
39480         Reported by Ralf Wildenhues.
39481
39482 2009-01-17  Bruno Haible  <bruno@clisp.org>
39483
39484         * modules/dprintf-posix-tests: New file.
39485         * tests/test-dprintf-posix.sh: New file.
39486         * tests/test-dprintf-posix.c: New file.
39487
39488         New modules 'dprintf', 'dprintf-posix'.
39489         * lib/stdio.in.h (dprintf): New declaration.
39490         * lib/dprintf.c: New file.
39491         * m4/dprintf.m4: New file.
39492         * m4/dprintf-posix.m4: New file.
39493         * modules/dprintf: New file.
39494         * modules/dprintf-posix: New file.
39495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
39496         HAVE_DPRINTF, REPLACE_DPRINTF.
39497         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
39498         HAVE_DPRINTF, REPLACE_DPRINTF.
39499         * doc/posix-functions/dprintf.texi: Mention the new modules.
39500
39501 2009-01-17  Bruno Haible  <bruno@clisp.org>
39502
39503         * modules/vdprintf-posix-tests: New file.
39504         * tests/test-vdprintf-posix.sh: New file.
39505         * tests/test-vdprintf-posix.c: New file.
39506
39507         New modules 'vdprintf', 'vdprintf-posix'.
39508         * lib/stdio.in.h (vdprintf): New declaration.
39509         * lib/vdprintf.c: New file.
39510         * m4/vdprintf.m4: New file.
39511         * m4/vdprintf-posix.m4: New file.
39512         * modules/vdprintf: New file.
39513         * modules/vdprintf-posix: New file.
39514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39515         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39516         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39517         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39518         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39519
39520 2009-01-17  Bruno Haible  <bruno@clisp.org>
39521
39522         Fix replacement of fopen on mingw.
39523         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39524         mingw.
39525
39526 2009-01-17  Bruno Haible  <bruno@clisp.org>
39527
39528         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39529         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39530
39531 2009-01-17  Bruno Haible  <bruno@clisp.org>
39532
39533         Avoid test-fflush2.sh failure on mingw.
39534         * tests/test-fflush2.c: Include binary-io.h.
39535         (main): Put standard input into binary mode.
39536         * modules/fflush-tests (Depends-on): Add binary-io.
39537
39538 2009-01-17  Bruno Haible  <bruno@clisp.org>
39539
39540         * lib/wchar.in.h: In another particular situation, include only the
39541         system's <wchar.h> file.
39542         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39543         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39544         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39545
39546 2009-01-17  Bruno Haible  <bruno@clisp.org>
39547
39548         Support for stripping executables in --enable-relocatable.
39549         * build-aux/install-reloc: Expect one more argument, or an environment
39550         variable RELOC_STRIP_PROG. If set, strip the destination program and
39551         its wrapper.
39552         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39553         RELOC_STRIP_PROG.
39554         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39555         to set RELOCATABLE_STRIP.
39556         * NEWS: Mention the new Makefile requirement.
39557
39558 2009-01-17  Bruno Haible  <bruno@clisp.org>
39559
39560         * build-aux/install-reloc: Remove debugging information left over by
39561         C compiler on MacOS X.
39562
39563 2009-01-17  Bruno Haible  <bruno@clisp.org>
39564
39565         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39566         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39567         _NSGetExecutablePath.
39568
39569 2009-01-16  Jim Meyering  <meyering@redhat.com>
39570
39571         strerror: avoid warnings about discarding "const"
39572         * lib/strerror.c (rpl_strerror): Instead of returning a const
39573         string from each and every "case", use a variable, and add a single
39574         cast after the switch.
39575
39576 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39577
39578         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39579
39580 2009-01-16  Bruno Haible  <bruno@clisp.org>
39581
39582         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39583         array initializer syntax that also works in C++ mode.
39584         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39585
39586 2009-01-16  Jim Meyering  <meyering@redhat.com>
39587
39588         poll: suppress a warning
39589         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39590         to ignore "...unsigned expression < 0 is always false" warnings.
39591
39592 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39593
39594         poll: remove declarations of unused variables
39595         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39596         sockbuf and optlen.
39597
39598 2009-01-15  Bruno Haible  <bruno@clisp.org>
39599
39600         Make fflush-after-ungetc POSIX compliant on BSD systems.
39601         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39602         (clear_ungetc_buffer): Implement also for other systems.
39603         (rpl_fflush): On glibc systems, invoke
39604         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39605         clear_ungetc_buffer after fetching the stream's position, not before.
39606
39607 2009-01-15  Bruno Haible  <bruno@clisp.org>
39608
39609         Make fflush-after-ungetc POSIX compliant on glibc systems.
39610         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39611         after ungetc.
39612         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39613         (rpl_fflush): On glibc systems, simply call the system's fflush
39614         function after clearing the ungetc buffer.
39615         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39616         Instead, lseek only to the end of file, then use the system's fseeko
39617         for the rest. On glibc systems, reset the EOF indicator bit.
39618
39619 2009-01-15  Jim Meyering  <meyering@redhat.com>
39620
39621         openmp.m4: revert quote-adding change, for portability to older autoconf
39622         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39623         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39624         Simon Josefsson noticed the problem when using autoconf-2.61.
39625
39626 2009-01-15  Bruno Haible  <bruno@clisp.org>
39627
39628         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39629         * tests/test-fflush2.c (ASSERT): Always fail.
39630         (main): Add two tests for fflush() after ungetc(), taking into account
39631         the Austin Group's clarification.
39632         Suggested by Eric Blake.
39633
39634 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39635
39636         mktime.m4: remove K&R-style function prototypes
39637         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39638         for the Sun C++ compiler.
39639
39640 2009-01-14  Bruno Haible  <bruno@clisp.org>
39641
39642         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39643         while including <wchar.h>.
39644         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39645         the system's <wchar.h> file.
39646         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39647
39648 2009-01-14  Bruno Haible  <bruno@clisp.org>
39649
39650         * m4/csharp.m4: Don't mention gettext on the serial number line.
39651         * m4/csharpexec.m4: Likewise.
39652         * m4/eaccess.m4: Likewise.
39653         * m4/javaexec.m4: Likewise.
39654         * m4/sig_atomic_t.m4: Likewise.
39655         * m4/tmpdir.m4: Likewise.
39656         * m4/intldir.m4: Bump gettext version.
39657         * m4/lib-ld.m4: Likewise.
39658
39659 2009-01-14  Bruno Haible  <bruno@clisp.org>
39660
39661         * lib/progname.c (set_program_name): Add more comments.
39662         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39663
39664 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39665
39666         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39667         were sys/stat.h does not define it.
39668
39669 2009-01-14  Jim Meyering  <meyering@redhat.com>
39670
39671         many *.m4 files: improve m4 quoting
39672         99% of this change was performed by running the following commands:
39673         git ls-files | grep '\.m4$' | xargs perl -pi \
39674           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39675           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39676           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39677           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39678         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39679         The remainder were to add Copyright dates, increment serial numbers,
39680         undo some changes in comments, exclude m4/intl.m4, and add quotes
39681         around the "1" in ",1" where the unusual spacing prohibited the
39682         above regexps from doing the job.  For more details, see
39683         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39684         * m4/acl.m4: Modified.
39685         * m4/afs.m4: Likewise.
39686         * m4/alloca.m4: Likewise.
39687         * m4/argp.m4: Likewise.
39688         * m4/argz.m4: Likewise.
39689         * m4/atexit.m4: Likewise.
39690         * m4/bison-i18n.m4: Likewise.
39691         * m4/bison.m4: Likewise.
39692         * m4/byteswap.m4: Likewise.
39693         * m4/c-stack.m4: Likewise.
39694         * m4/c-strtod.m4: Likewise.
39695         * m4/calloc.m4: Likewise.
39696         * m4/canonicalize-lgpl.m4: Likewise.
39697         * m4/chown.m4: Likewise.
39698         * m4/clock_time.m4: Likewise.
39699         * m4/codeset.m4: Likewise.
39700         * m4/copy-file.m4: Likewise.
39701         * m4/csharp.m4: Likewise.
39702         * m4/csharpcomp.m4: Likewise.
39703         * m4/csharpexec.m4: Likewise.
39704         * m4/d-ino.m4: Likewise.
39705         * m4/d-type.m4: Likewise.
39706         * m4/dirfd.m4: Likewise.
39707         * m4/double-slash-root.m4: Likewise.
39708         * m4/eaccess.m4: Likewise.
39709         * m4/eealloc.m4: Likewise.
39710         * m4/environ.m4: Likewise.
39711         * m4/errno_h.m4: Likewise.
39712         * m4/euidaccess.m4: Likewise.
39713         * m4/execute.m4: Likewise.
39714         * m4/fatal-signal.m4: Likewise.
39715         * m4/fchdir.m4: Likewise.
39716         * m4/fcntl_h.m4: Likewise.
39717         * m4/fileblocks.m4: Likewise.
39718         * m4/filenamecat.m4: Likewise.
39719         * m4/findprog.m4: Likewise.
39720         * m4/flexmember.m4: Likewise.
39721         * m4/fnmatch.m4: Likewise.
39722         * m4/fopen.m4: Likewise.
39723         * m4/fpending.m4: Likewise.
39724         * m4/fprintf-posix.m4: Likewise.
39725         * m4/free.m4: Likewise.
39726         * m4/frexp.m4: Likewise.
39727         * m4/frexpl.m4: Likewise.
39728         * m4/fsusage.m4: Likewise.
39729         * m4/ftruncate.m4: Likewise.
39730         * m4/gc-camellia.m4: Likewise.
39731         * m4/gc-random.m4: Likewise.
39732         * m4/gc.m4: Likewise.
39733         * m4/getaddrinfo.m4: Likewise.
39734         * m4/getcwd-abort-bug.m4: Likewise.
39735         * m4/getcwd-path-max.m4: Likewise.
39736         * m4/getdate.m4: Likewise.
39737         * m4/getdomainname.m4: Likewise.
39738         * m4/getgroups.m4: Likewise.
39739         * m4/gethostname.m4: Likewise.
39740         * m4/gethrxtime.m4: Likewise.
39741         * m4/getline.m4: Likewise.
39742         * m4/getloadavg.m4: Likewise.
39743         * m4/getndelim2.m4: Likewise.
39744         * m4/getpass.m4: Likewise.
39745         * m4/gettext.m4: Likewise.
39746         * m4/gettime.m4: Likewise.
39747         * m4/gettimeofday.m4: Likewise.
39748         * m4/gnulib-common.m4: Likewise.
39749         * m4/group-member.m4: Likewise.
39750         * m4/host-os.m4: Likewise.
39751         * m4/iconv.m4: Likewise.
39752         * m4/iconv_open.m4: Likewise.
39753         * m4/inet_ntop.m4: Likewise.
39754         * m4/inet_pton.m4: Likewise.
39755         * m4/inline.m4: Likewise.
39756         * m4/intldir.m4: Likewise.
39757         * m4/intlmacosx.m4: Likewise.
39758         * m4/intmax.m4: Likewise.
39759         * m4/intmax_t.m4: Likewise.
39760         * m4/inttypes.m4: Likewise.
39761         * m4/inttypes_h.m4: Likewise.
39762         * m4/inttypes-pri.m4: Likewise.
39763         * m4/isapipe.m4: Likewise.
39764         * m4/isnand.m4: Likewise.
39765         * m4/isnanf.m4: Likewise.
39766         * m4/isnanl.m4: Likewise.
39767         * m4/javacomp.m4: Likewise.
39768         * m4/javaexec.m4: Likewise.
39769         * m4/jm-winsz1.m4: Likewise.
39770         * m4/jm-winsz2.m4: Likewise.
39771         * m4/lchown.m4: Likewise.
39772         * m4/lcmessage.m4: Likewise.
39773         * m4/ldexpl.m4: Likewise.
39774         * m4/lib-ld.m4: Likewise.
39775         * m4/lib-link.m4: Likewise.
39776         * m4/libsigsegv.m4: Likewise.
39777         * m4/link-follow.m4: Likewise.
39778         * m4/localcharset.m4: Likewise.
39779         * m4/locale-fr.m4: Likewise.
39780         * m4/locale-ja.m4: Likewise.
39781         * m4/locale-tr.m4: Likewise.
39782         * m4/locale-zh.m4: Likewise.
39783         * m4/lock.m4: Likewise.
39784         * m4/longlong.m4: Likewise.
39785         * m4/ls-mntd-fs.m4: Likewise.
39786         * m4/lstat.m4: Likewise.
39787         * m4/malloc.m4: Likewise.
39788         * m4/mathl.m4: Likewise.
39789         * m4/mbrtowc.m4: Likewise.
39790         * m4/mbstate_t.m4: Likewise.
39791         * m4/mbswidth.m4: Likewise.
39792         * m4/memchr.m4: Likewise.
39793         * m4/memcmp.m4: Likewise.
39794         * m4/memcpy.m4: Likewise.
39795         * m4/memmem.m4: Likewise.
39796         * m4/memmove.m4: Likewise.
39797         * m4/mempcpy.m4: Likewise.
39798         * m4/memrchr.m4: Likewise.
39799         * m4/memset.m4: Likewise.
39800         * m4/minmax.m4: Likewise.
39801         * m4/mkdir-slash.m4: Likewise.
39802         * m4/mkdtemp.m4: Likewise.
39803         * m4/mktime.m4: Likewise.
39804         * m4/mmap-anon.m4: Likewise.
39805         * m4/mountlist.m4: Likewise.
39806         * m4/nanosleep.m4: Likewise.
39807         * m4/nls.m4: Likewise.
39808         * m4/nocrash.m4: Likewise.
39809         * m4/open.m4: Likewise.
39810         * m4/openat.m4: Likewise.
39811         * m4/openmp.m4: Likewise.
39812         * m4/pathmax.m4: Likewise.
39813         * m4/perl.m4: Likewise.
39814         * m4/physmem.m4: Likewise.
39815         * m4/pipe.m4: Likewise.
39816         * m4/po.m4: Likewise.
39817         * m4/poll.m4: Likewise.
39818         * m4/posixtm.m4: Likewise.
39819         * m4/posixver.m4: Likewise.
39820         * m4/printf-frexp.m4: Likewise.
39821         * m4/printf-frexpl.m4: Likewise.
39822         * m4/printf-posix.m4: Likewise.
39823         * m4/printf-posix-rpl.m4: Likewise.
39824         * m4/printf.m4: Likewise.
39825         * m4/progtest.m4: Likewise.
39826         * m4/putenv.m4: Likewise.
39827         * m4/readline.m4: Likewise.
39828         * m4/readlink.m4: Likewise.
39829         * m4/readutmp.m4: Likewise.
39830         * m4/realloc.m4: Likewise.
39831         * m4/regex.m4: Likewise.
39832         * m4/relocatable.m4: Likewise.
39833         * m4/relocatable-lib.m4: Likewise.
39834         * m4/rename-dest-slash.m4: Likewise.
39835         * m4/rename.m4: Likewise.
39836         * m4/rmdir-errno.m4: Likewise.
39837         * m4/rmdir.m4: Likewise.
39838         * m4/roundf.m4: Likewise.
39839         * m4/roundl.m4: Likewise.
39840         * m4/rpmatch.m4: Likewise.
39841         * m4/save-cwd.m4: Likewise.
39842         * m4/selinux-selinux-h.m4: Likewise.
39843         * m4/setenv.m4: Likewise.
39844         * m4/settime.m4: Likewise.
39845         * m4/sig2str.m4: Likewise.
39846         * m4/sig_atomic_t.m4: Likewise.
39847         * m4/signalblocking.m4: Likewise.
39848         * m4/signbit.m4: Likewise.
39849         * m4/sigpipe.m4: Likewise.
39850         * m4/sockets.m4: Likewise.
39851         * m4/sockpfaf.m4: Likewise.
39852         * m4/st_dm_mode.m4: Likewise.
39853         * m4/stat-time.m4: Likewise.
39854         * m4/stdbool.m4: Likewise.
39855         * m4/stdint.m4: Likewise.
39856         * m4/stdint_h.m4: Likewise.
39857         * m4/stpcpy.m4: Likewise.
39858         * m4/stpncpy.m4: Likewise.
39859         * m4/strcase.m4: Likewise.
39860         * m4/strchrnul.m4: Likewise.
39861         * m4/strcspn.m4: Likewise.
39862         * m4/strdup.m4: Likewise.
39863         * m4/strftime.m4: Likewise.
39864         * m4/strndup.m4: Likewise.
39865         * m4/strnlen.m4: Likewise.
39866         * m4/strpbrk.m4: Likewise.
39867         * m4/strptime.m4: Likewise.
39868         * m4/strsep.m4: Likewise.
39869         * m4/strtod.m4: Likewise.
39870         * m4/strtoimax.m4: Likewise.
39871         * m4/strtok_r.m4: Likewise.
39872         * m4/strtol.m4: Likewise.
39873         * m4/strtoll.m4: Likewise.
39874         * m4/strtoul.m4: Likewise.
39875         * m4/strtoull.m4: Likewise.
39876         * m4/strtoumax.m4: Likewise.
39877         * m4/strverscmp.m4: Likewise.
39878         * m4/threadlib.m4: Likewise.
39879         * m4/timegm.m4: Likewise.
39880         * m4/tm_gmtoff.m4: Likewise.
39881         * m4/tmpdir.m4: Likewise.
39882         * m4/tmpfile.m4: Likewise.
39883         * m4/tzset.m4: Likewise.
39884         * m4/uintmax_t.m4: Likewise.
39885         * m4/unlinkdir.m4: Likewise.
39886         * m4/unlocked-io.m4: Likewise.
39887         * m4/uptime.m4: Likewise.
39888         * m4/userspec.m4: Likewise.
39889         * m4/utimbuf.m4: Likewise.
39890         * m4/utime.m4: Likewise.
39891         * m4/utimes-null.m4: Likewise.
39892         * m4/utimes.m4: Likewise.
39893         * m4/vararrays.m4: Likewise.
39894         * m4/vasnprintf.m4: Likewise.
39895         * m4/vfprintf-posix.m4: Likewise.
39896         * m4/vprintf-posix.m4: Likewise.
39897         * m4/wait-process.m4: Likewise.
39898         * m4/wchar_t.m4: Likewise.
39899         * m4/wint_t.m4: Likewise.
39900         * m4/write-any-file.m4: Likewise.
39901         * m4/yield.m4: Likewise.
39902
39903 2009-01-13  Bruno Haible  <bruno@clisp.org>
39904
39905         Avoid test-copy-file.sh failures when ACL support insufficient.
39906         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39907         TESTS_ENVIRONMENT.
39908         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39909         Reported by Jim Meyering.
39910
39911 2009-01-13  Bruno Haible  <bruno@clisp.org>
39912
39913         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39914         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39915         * modules/unistdio/u8-printf-parse (Files): Likewise.
39916         * modules/unistdio/u32-printf-parse (Files): Likewise.
39917         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39918
39919 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39920
39921         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39922         and m4/inttypes_h.m4 too.
39923
39924 2009-01-12  Eric Blake  <ebb9@byu.net>
39925
39926         tests: IRIX 6.2 cc can't compile -0.0 into .data
39927         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39928         rather than at compile-time.
39929         * tests/test-floorl.c (minus_zero): Likewise.
39930         * tests/test-frexpl.c (minus_zero): Likewise.
39931         * tests/test-isnan.c (minus_zerol): Likewise.
39932         * tests/test-isnanl.h (minus_zero): Likewise.
39933         * tests/test-ldexpl.c (minus_zero): Likewise.
39934         * tests/test-roundl.c (minus_zero): Likewise.
39935         * tests/test-signbit.c (minus_zerol): Likewise.
39936         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39937         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39938         * tests/test-truncl.c (minus_zero): Likewise.
39939         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39940         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39941         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39942
39943 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39944
39945         regex: fix glibc bug 9697
39946         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39947         handling.
39948
39949 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39950
39951         regex: fix glibc bug 697
39952         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39953         being NULL also if there are no backreferences.
39954
39955 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39956
39957         regex: merge glibc changes
39958         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39959         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39960         re_string_skip_chars, re_string_reconstruct): Likewise.
39961         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39962
39963 2009-01-07  Jim Meyering  <meyering@redhat.com>
39964
39965         poll: filter through cppi
39966         * lib/poll.c: Indent cpp directives to reflect nesting.
39967
39968 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39969
39970         poll: don't return uninitialized
39971         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39972
39973 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39974
39975         avoid compile failure on AIX 6.1
39976         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39977         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39978
39979 2009-01-04  Jim Meyering  <meyering@redhat.com>
39980
39981         remove duplicate inclusion of <stdio.h>
39982         * tests/test-fprintf-posix.c: Likewise.
39983         * tests/test-printf-posix.c: Likewise.
39984         * tests/test-snprintf-posix.c: Likewise.
39985         * tests/test-sprintf-posix.c: Likewise.
39986         * tests/test-vasprintf-posix.c: Likewise.
39987         * tests/test-vfprintf-posix.c: Likewise.
39988         * tests/test-vprintf-posix.c: Likewise.
39989         * tests/test-vsnprintf-posix.c: Likewise.
39990         * tests/test-vsprintf-posix.c: Likewise.
39991
39992 2009-01-03  Jim Meyering  <meyering@redhat.com>
39993
39994         gnulib-tool: fix sed-based filtering
39995         * gnulib-tool (func_filter_filelist): Remove extra backslash
39996         in sed_fff_filter definition.
39997
39998 2009-01-02  Jim Meyering  <meyering@redhat.com>
39999
40000         strftime: avoid compilation failure on Solaris 2.6
40001         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
40002         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
40003         Don't #define mbrlen or mbsinit, since now they're guaranteed to
40004         be available.  Reported by Tom G. Christensen.  Details in
40005         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
40006
40007 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40008             Bruno Haible  <bruno@clisp.org>
40009
40010         Speed up gnulib-tool by doing more string processing through shell
40011         built-ins.
40012         * gnulib-tool (fast_func_append): New variable.
40013         (func_remove_prefix, func_remove_suffix): New functions.
40014         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
40015         (func_filter_filelist): New function.
40016         (func_get_dependencies): Use func_remove_suffix instead of sed.
40017         (func_get_automake_snippet): Use func_filter_filelist instead of a
40018         subshell and sed invocation.
40019
40020 2009-01-01  Bruno Haible  <bruno@clisp.org>
40021
40022         Fix a security bug.
40023         * gnulib-tool (func_import, import, update): Don't allow the characters
40024         '"', '$', '`', '\' in macro arguments that become part of commands that
40025         are evaluated.
40026
40027 2009-01-01  Bruno Haible  <bruno@clisp.org>
40028
40029         * gnulib-tool (func_reset_sigpipe): Add more comments.
40030
40031 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40032
40033         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
40034         func_emit_tests_Makefile_am, func_import): Abort loops early if we
40035         already know the answer.
40036
40037 2009-01-01  Jim Meyering  <meyering@redhat.com>
40038
40039         * lib/version-etc.c (version_etc_va): Update copyright year.
40040
40041 2008-12-30  Bruno Haible  <bruno@clisp.org>
40042
40043         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
40044         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
40045         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
40046
40047 2008-12-29  Eric Blake  <ebb9@byu.net>
40048
40049         multiarch: avoid autoconf AC_REQUIRE bug
40050         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
40051         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
40052         2.63 and older.
40053         Reported by Bruno Haible, and analyzed in
40054         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
40055
40056 2008-12-29  Bruno Haible  <bruno@clisp.org>
40057
40058         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
40059         files in subdirectories correctly.
40060         Reported by Ralf Wildenhues.
40061
40062 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40063
40064         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
40065         rather than 'join FILE -', for Solaris join.
40066
40067 2008-12-29  Bruno Haible  <bruno@clisp.org>
40068
40069         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
40070         quoting.
40071         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40072         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40073         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40074         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
40075         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40076         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40077         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40078         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40079         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40080         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40081         * m4/nls.m4 (AM_NLS): Likewise.
40082         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
40083         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40084         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40085         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40086         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40087         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40088         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
40089         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40090         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40091         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40092         * m4/xsize.m4 (gl_XSIZE): Likewise.
40093         Suggested by Jim Meyering.
40094
40095 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40096
40097         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
40098         * lib/parse-duration.c: use a switch instead of cascading if's.
40099
40100 2008-12-29  Eric Blake  <ebb9@byu.net>
40101
40102         wchar.h: supply WEOF on Irix 5.3
40103         * lib/wchar.in.h (wint_t): Also supply WEOF.
40104         * lib/wctype.in.h (wint_t): Likewise.
40105         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
40106         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
40107         Reported by Tom G. Christensen.
40108
40109 2008-12-26  Bruno Haible  <bruno@clisp.org>
40110
40111         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
40112         i486, i586, i686.
40113
40114 2008-12-26  Bruno Haible  <bruno@clisp.org>
40115
40116         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
40117
40118 2008-12-26  Bruno Haible  <bruno@clisp.org>
40119
40120         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
40121         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
40122         not __STDC_CONSTANT_MACROS.
40123         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40124
40125 2008-12-25  Bruno Haible  <bruno@clisp.org>
40126
40127         Add support for universal builds to vasnprintf.
40128         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
40129         universal builds, guess no.
40130         * modules/vasnprintf-posix (Depends-on): Add multiarch.
40131         * modules/vasprintf-posix (Depends-on): Likewise.
40132         * modules/fprintf-posix (Depends-on): Likewise.
40133         * modules/vfprintf-posix (Depends-on): Likewise.
40134         * modules/snprintf-posix (Depends-on): Likewise.
40135         * modules/vsnprintf-posix (Depends-on): Likewise.
40136         * modules/sprintf-posix (Depends-on): Likewise.
40137         * modules/vsprintf-posix (Depends-on): Likewise.
40138         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40139         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40140         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40141         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40142         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40143         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40144         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40145
40146         Add support for universal builds to <inttypes.h>.
40147         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
40148         _SCNu64_PREFIX): In Apple
40149         universal builds, define directly, using _LP64.
40150         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
40151         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
40152         * modules/inttypes (Depends-on): Add multiarch.
40153         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40154
40155         Add support for universal builds to <stdint.h>.
40156         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
40157         universal builds, define directly, using _LP64.
40158         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
40159         Apple universal builds, don't test for the size and suffix of ptrdiff_t
40160         and size_t.
40161         * modules/stdint (Depends-on): Add multiarch.
40162         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40163
40164         New module 'multiarch'.
40165         * modules/multiarch: New file.
40166         * m4/multiarch.m4: New file.
40167
40168 2008-12-25  Bruno Haible  <bruno@clisp.org>
40169
40170         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
40171
40172 2008-12-25  Bruno Haible  <bruno@clisp.org>
40173
40174         * modules/btowc (License): Relicense under LGPLv2+.
40175         * modules/mbsinit (License): Likewise.
40176         * modules/mbrtowc (License): Likewise.
40177         * modules/wcrtomb (License): Likewise.
40178         * modules/streq (License): Likewise.
40179         Reported by David Lutterkort <lutter@redhat.com>.
40180
40181 2008-12-23  Bruno Haible  <bruno@clisp.org>
40182
40183         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
40184
40185 2008-12-23  Bruno Haible  <bruno@clisp.org>
40186
40187         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
40188         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
40189         GETADDRINFO_LIB, not in LIBS.
40190         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
40191         * modules/canon-host (Link): Likewise.
40192         * NEWS: Mention the change.
40193         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
40194         GETADDRINFO_LIB.
40195
40196 2008-12-22  Bruno Haible  <bruno@clisp.org>
40197
40198         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
40199         * doc/posix-functions/iswalpha_l.texi: Likewise.
40200         * doc/posix-functions/iswblank_l.texi: Likewise.
40201         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40202         * doc/posix-functions/iswctype_l.texi: Likewise.
40203         * doc/posix-functions/iswdigit_l.texi: Likewise.
40204         * doc/posix-functions/iswgraph_l.texi: Likewise.
40205         * doc/posix-functions/iswlower_l.texi: Likewise.
40206         * doc/posix-functions/iswprint_l.texi: Likewise.
40207         * doc/posix-functions/iswpunct_l.texi: Likewise.
40208         * doc/posix-functions/iswspace_l.texi: Likewise.
40209         * doc/posix-functions/iswupper_l.texi: Likewise.
40210         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40211         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
40212         * doc/posix-functions/open_wmemstream.texi: Likewise.
40213         * doc/posix-functions/swscanf.texi: Likewise.
40214         * doc/posix-functions/towctrans_l.texi: Likewise.
40215         * doc/posix-functions/towlower.texi: Likewise.
40216         * doc/posix-functions/towlower_l.texi: Likewise.
40217         * doc/posix-functions/towupper.texi: Likewise.
40218         * doc/posix-functions/towupper_l.texi: Likewise.
40219         * doc/posix-functions/vfwprintf.texi: Likewise.
40220         * doc/posix-functions/vfwscanf.texi: Likewise.
40221         * doc/posix-functions/vswscanf.texi: Likewise.
40222         * doc/posix-functions/vwprintf.texi: Likewise.
40223         * doc/posix-functions/vwscanf.texi: Likewise.
40224         * doc/posix-functions/wcpcpy.texi: Likewise.
40225         * doc/posix-functions/wcpncpy.texi: Likewise.
40226         * doc/posix-functions/wcscasecmp.texi: Likewise.
40227         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
40228         * doc/posix-functions/wcscoll_l.texi: Likewise.
40229         * doc/posix-functions/wcsdup.texi: Likewise.
40230         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40231         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
40232         * doc/posix-functions/wcsnlen.texi: Likewise.
40233         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40234         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40235         * doc/posix-functions/wctrans_l.texi: Likewise.
40236         * doc/posix-functions/wctype_l.texi: Likewise.
40237         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
40238         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
40239         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
40240         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
40241         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
40242         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
40243         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
40244         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
40245         * doc/glibc-functions/wcschrnul.texi: Likewise.
40246         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40247         * doc/glibc-functions/wcstod_l.texi: Likewise.
40248         * doc/glibc-functions/wcstof_l.texi: Likewise.
40249         * doc/glibc-functions/wcstol_l.texi: Likewise.
40250         * doc/glibc-functions/wcstold_l.texi: Likewise.
40251         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40252         * doc/glibc-functions/wcstoq.texi: Likewise.
40253         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40254         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40255         * doc/glibc-functions/wcstouq.texi: Likewise.
40256         * doc/glibc-functions/wmempcpy.texi: Likewise.
40257
40258 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40259             Eric Blake  <ebb9@byu.net>
40260             Paolo Bonzini  <bonzini@gnu.org>
40261             Bruno Haible  <bruno@clisp.org>
40262
40263         Make c-stack work on Haiku.
40264         * lib/c-stack.c (SA_ONSTACK): Define fallback.
40265         (c_stack_action): Use SA_ONSTACK flag.
40266
40267 2008-12-22  Bruno Haible  <bruno@clisp.org>
40268
40269         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
40270
40271 2008-12-22  Bruno Haible  <bruno@clisp.org>
40272
40273         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
40274         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
40275         being overridden.
40276         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
40277         New macros.
40278         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
40279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
40280         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
40281         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
40282
40283 2008-12-22  Bruno Haible  <bruno@clisp.org>
40284
40285         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
40286         from test code.
40287
40288 2008-12-22  Eric Blake  <ebb9@byu.net>
40289
40290         Avoid gcc warnings on cygwin.
40291         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
40292         Avoid unused variable.
40293         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
40294         Likewise.
40295
40296 2008-12-22  Bruno Haible  <bruno@clisp.org>
40297
40298         Remove HAVE_MBRTOWC conditionals.
40299         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
40300         (mbscasecmp): Assume mbrtowc function.
40301         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
40302         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
40303         * lib/mbschr.c: Include mbuiter.h unconditionally.
40304         (mbschr): Assume mbrtowc function.
40305         * lib/mbscspn.c: Include mbuiter.h unconditionally.
40306         (mbscspn): Assume mbrtowc function.
40307         * lib/mbslen.c: Include mbuiter.h unconditionally.
40308         (mbslen): Assume mbrtowc function.
40309         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
40310         (mbsncasecmp): Assume mbrtowc function.
40311         * lib/mbsnlen.c: Include mbiter.h unconditionally.
40312         (mbsnlen): Assume mbrtowc function.
40313         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
40314         (mbspbrk): Assume mbrtowc function.
40315         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
40316         (mbspcasecmp): Assume mbrtowc function.
40317         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
40318         (mbsrchr): Assume mbrtowc function.
40319         * lib/mbssep.c: Include mbuiter.h unconditionally.
40320         (mbssep): Assume mbrtowc function.
40321         * lib/mbsspn.c: Include mbuiter.h unconditionally.
40322         (mbsspn): Assume mbrtowc function.
40323         * lib/mbsstr.c: Include mbuiter.h unconditionally.
40324         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
40325         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
40326         (mbstok_r): Assume mbrtowc function.
40327         * lib/propername.c: Include mbuiter.h unconditionally.
40328         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
40329         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
40330         (trim2): Assume mbrtowc function.
40331         * lib/mbswidth.c (mbsinit): Remove fallback definition.
40332         (mbsnwidth): Assume mbrtowc function.
40333         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
40334         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
40335         fallback definitions.
40336         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
40337
40338 2008-12-22  Bruno Haible  <bruno@clisp.org>
40339
40340         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
40341
40342 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
40343
40344         * modules/regex: Request emulations for the mb*/wc* functions we need.
40345         * m4/regex.m4: Don't look for those functions here.
40346         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
40347
40348 2008-12-22  Bruno Haible  <bruno@clisp.org>
40349
40350         * modules/fnmatch (Depends-on): Remove duplicated dependency.
40351
40352 2008-12-21  Bruno Haible  <bruno@clisp.org>
40353
40354         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
40355         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
40356         (Include): Remove conditionalization.
40357         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
40358         (Include): Remove conditionalization.
40359         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
40360         (Include): Remove conditionalization.
40361         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
40362         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40363         * NEWS: Mention the change.
40364         Reported by Alan Hourihane <alanh@fairlite.co.uk>
40365         via Sergey Poznyakoff <gray@gnu.org.ua>.
40366
40367 2008-12-21  Bruno Haible  <bruno@clisp.org>
40368
40369         * MODULES.html.sh (Extended multibyte and wide character utilities
40370         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
40371         wcrtomb, wcsrtombs.
40372         (Support for systems lacking POSIX:2008): Add accept, bind, close,
40373         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
40374         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
40375         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
40376
40377 2008-12-21  Bruno Haible  <bruno@clisp.org>
40378
40379         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
40380
40381 2008-12-21  Bruno Haible  <bruno@clisp.org>
40382
40383         * modules/wcsnrtombs-tests: New file.
40384         * tests/test-wcsnrtombs1.sh: New file.
40385         * tests/test-wcsnrtombs2.sh: New file.
40386         * tests/test-wcsnrtombs3.sh: New file.
40387         * tests/test-wcsnrtombs4.sh: New file.
40388         * tests/test-wcsnrtombs.c: New file.
40389
40390         New module 'wcsnrtombs'.
40391         * lib/wchar.in.h (wcsnrtombs): New declaration.
40392         * lib/wcsnrtombs.c: New file.
40393         * lib/wcsrtombs-state.c: New file.
40394         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
40395         (internal_state): Remove variable.
40396         * m4/wcsnrtombs.m4: New file.
40397         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
40398         compilation units.
40399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
40400         HAVE_WCSNRTOMBS.
40401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
40402         HAVE_WCSNRTOMBS.
40403         * modules/wcsnrtombs: New file.
40404         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
40405         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
40406
40407 2008-12-21  Bruno Haible  <bruno@clisp.org>
40408
40409         * modules/wcsrtombs-tests: New file.
40410         * tests/test-wcsrtombs1.sh: New file.
40411         * tests/test-wcsrtombs2.sh: New file.
40412         * tests/test-wcsrtombs3.sh: New file.
40413         * tests/test-wcsrtombs4.sh: New file.
40414         * tests/test-wcsrtombs.c: New file.
40415
40416         New module 'wcsrtombs'.
40417         * lib/wchar.in.h (wcsrtombs): New declaration.
40418         * lib/wcsrtombs.c: New file.
40419         * m4/wcsrtombs.m4: New file.
40420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
40421         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40422         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
40423         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40424         * modules/wcsrtombs: New file.
40425         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
40426         bugs.
40427
40428 2008-12-21  Bruno Haible  <bruno@clisp.org>
40429
40430         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
40431         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
40432         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
40433         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
40434         if not correct.
40435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
40436         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
40437         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40438         m4/locale-zh.m4, m4/codeset.m4.
40439         * doc/posix-functions/wcrtomb.texi: Document the bug.
40440
40441 2008-12-21  Bruno Haible  <bruno@clisp.org>
40442
40443         Work around a btowc() bug on IRIX 6.5.
40444         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
40445         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
40446         REPLACE_WTOBC if not.
40447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
40448         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
40449         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
40450
40451 2008-12-21  Bruno Haible  <bruno@clisp.org>
40452
40453         * modules/wcrtomb-tests: New file.
40454         * tests/test-wcrtomb.sh: New file.
40455         * tests/test-wcrtomb.c: New file.
40456
40457         New module 'wcrtomb'.
40458         * lib/wchar.in.h (wcrtomb): New declaration.
40459         * lib/wcrtomb.c: New file.
40460         * m4/wcrtomb.m4: New file.
40461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
40462         HAVE_WCRTOMB.
40463         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
40464         HAVE_WCRTOMB.
40465         * modules/wcrtomb: New file.
40466         * doc/posix-functions/wcrtomb.texi: Mention the new module.
40467
40468 2008-12-21  Bruno Haible  <bruno@clisp.org>
40469
40470         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
40471         * modules/mbsrtowcs (Files): Likewise.
40472         * modules/wctob (Files): Likewise.
40473         * modules/c-strcase-tests (Files): Likewise.
40474         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40475         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40476         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40477         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40478         * modules/vasnprintf-posix-tests (Files): Likewise.
40479
40480 2008-12-21  William Pursell  <bill.pursell@gmail.com>
40481
40482         gitlog-to-changelog: pass all command-line arguments to git-log
40483         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
40484         it is sometimes convenient to filter the commits in various ways.
40485         gitlog-to-changelog only allows --since to specify a start date,
40486         but git-log itself supports many other filtering mechanisms.
40487         At the moment, I want to filter by branch name.  Rather than
40488         adding a --branch option to gitlog-to-changelog, it seems more
40489         flexible to simply pass all options directly to git-log and let
40490         git do the work.  Notice that this effectively makes --since a
40491         redundant option for gitlog-to-changelog, but removing it would
40492         require current usage to change since calls would then require
40493         an additional '--'.
40494
40495 2008-12-21  Bruno Haible  <bruno@clisp.org>
40496
40497         * modules/mbsnrtowcs-tests: New file.
40498         * tests/test-mbsnrtowcs1.sh: New file.
40499         * tests/test-mbsnrtowcs2.sh: New file.
40500         * tests/test-mbsnrtowcs3.sh: New file.
40501         * tests/test-mbsnrtowcs4.sh: New file.
40502         * tests/test-mbsnrtowcs.c: New file.
40503
40504         New module 'mbsnrtowcs'.
40505         * lib/wchar.in.h (mbsnrtowcs): New declaration.
40506         * lib/mbsnrtowcs.c: New file.
40507         * lib/mbsrtowcs-state.c: New file.
40508         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
40509         (internal_state): Remove variable.
40510         * m4/mbsnrtowcs.m4: New file.
40511         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40512         compilation units.
40513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40514         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40515         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40516         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40517         * modules/mbsnrtowcs: New file.
40518         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40519         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40520         portability problem.
40521
40522 2008-12-21  Bruno Haible  <bruno@clisp.org>
40523
40524         Work around mbsrtowcs bug.
40525         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40526         (gl_FUNC_MBSRTOWCS): Invoke it.
40527         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40528         m4/locale-zh.m4.
40529         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40530
40531 2008-12-21  Bruno Haible  <bruno@clisp.org>
40532
40533         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40534
40535 2008-12-21  Bruno Haible  <bruno@clisp.org>
40536
40537         Update doc for AIX.
40538         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40539         16-bit wchar_t type.
40540         * doc/posix-functions/btowc.texi: Likewise.
40541         * doc/posix-functions/fgetwc.texi: Likewise.
40542         * doc/posix-functions/fgetws.texi: Likewise.
40543         * doc/posix-functions/fputwc.texi: Likewise.
40544         * doc/posix-functions/fputws.texi: Likewise.
40545         * doc/posix-functions/fwide.texi: Likewise.
40546         * doc/posix-functions/fwprintf.texi: Likewise.
40547         * doc/posix-functions/fwscanf.texi: Likewise.
40548         * doc/posix-functions/getwchar.texi: Likewise.
40549         * doc/posix-functions/getwc.texi: Likewise.
40550         * doc/posix-functions/iswalnum.texi: Likewise.
40551         * doc/posix-functions/iswalpha.texi: Likewise.
40552         * doc/posix-functions/iswblank.texi: Likewise.
40553         * doc/posix-functions/iswcntrl.texi: Likewise.
40554         * doc/posix-functions/iswctype.texi: Likewise.
40555         * doc/posix-functions/iswdigit.texi: Likewise.
40556         * doc/posix-functions/iswgraph.texi: Likewise.
40557         * doc/posix-functions/iswlower.texi: Likewise.
40558         * doc/posix-functions/iswprint.texi: Likewise.
40559         * doc/posix-functions/iswpunct.texi: Likewise.
40560         * doc/posix-functions/iswspace.texi: Likewise.
40561         * doc/posix-functions/iswupper.texi: Likewise.
40562         * doc/posix-functions/iswxdigit.texi: Likewise.
40563         * doc/posix-functions/mbrtowc.texi: Likewise.
40564         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40565         * doc/posix-functions/mbstowcs.texi: Likewise.
40566         * doc/posix-functions/mbtowc.texi: Likewise.
40567         * doc/posix-functions/putwchar.texi: Likewise.
40568         * doc/posix-functions/putwc.texi: Likewise.
40569         * doc/posix-functions/swprintf.texi: Likewise.
40570         * doc/posix-functions/tolower.texi: Likewise.
40571         * doc/posix-functions/toupper.texi: Likewise.
40572         * doc/posix-functions/towctrans.texi: Likewise.
40573         * doc/posix-functions/ungetwc.texi: Likewise.
40574         * doc/posix-functions/vswprintf.texi: Likewise.
40575         * doc/posix-functions/wcrtomb.texi: Likewise.
40576         * doc/posix-functions/wcscat.texi: Likewise.
40577         * doc/posix-functions/wcschr.texi: Likewise.
40578         * doc/posix-functions/wcscmp.texi: Likewise.
40579         * doc/posix-functions/wcscoll.texi: Likewise.
40580         * doc/posix-functions/wcscpy.texi: Likewise.
40581         * doc/posix-functions/wcscspn.texi: Likewise.
40582         * doc/posix-functions/wcsftime.texi: Likewise.
40583         * doc/posix-functions/wcslen.texi: Likewise.
40584         * doc/posix-functions/wcsncat.texi: Likewise.
40585         * doc/posix-functions/wcsncmp.texi: Likewise.
40586         * doc/posix-functions/wcsncpy.texi: Likewise.
40587         * doc/posix-functions/wcspbrk.texi: Likewise.
40588         * doc/posix-functions/wcsrchr.texi: Likewise.
40589         * doc/posix-functions/wcsrtombs.texi: Likewise.
40590         * doc/posix-functions/wcsspn.texi: Likewise.
40591         * doc/posix-functions/wcsstr.texi: Likewise.
40592         * doc/posix-functions/wcstod.texi: Likewise.
40593         * doc/posix-functions/wcstof.texi: Likewise.
40594         * doc/posix-functions/wcstoimax.texi: Likewise.
40595         * doc/posix-functions/wcstok.texi: Likewise.
40596         * doc/posix-functions/wcstold.texi: Likewise.
40597         * doc/posix-functions/wcstoll.texi: Likewise.
40598         * doc/posix-functions/wcstol.texi: Likewise.
40599         * doc/posix-functions/wcstombs.texi: Likewise.
40600         * doc/posix-functions/wcstoull.texi: Likewise.
40601         * doc/posix-functions/wcstoul.texi: Likewise.
40602         * doc/posix-functions/wcstoumax.texi: Likewise.
40603         * doc/posix-functions/wcswidth.texi: Likewise.
40604         * doc/posix-functions/wcsxfrm.texi: Likewise.
40605         * doc/posix-functions/wctob.texi: Likewise.
40606         * doc/posix-functions/wctomb.texi: Likewise.
40607         * doc/posix-functions/wctrans.texi: Likewise.
40608         * doc/posix-functions/wctype.texi: Likewise.
40609         * doc/posix-functions/wcwidth.texi: Likewise.
40610         * doc/posix-functions/wmemchr.texi: Likewise.
40611         * doc/posix-functions/wmemcmp.texi: Likewise.
40612         * doc/posix-functions/wmemcpy.texi: Likewise.
40613         * doc/posix-functions/wmemmove.texi: Likewise.
40614         * doc/posix-functions/wmemset.texi: Likewise.
40615         * doc/posix-functions/wprintf.texi: Likewise.
40616         * doc/posix-functions/wscanf.texi: Likewise.
40617
40618 2008-12-21  Bruno Haible  <bruno@clisp.org>
40619
40620         Update doc for HP-UX 11.11.
40621         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40622         in HP-UX version 11.00, not in all versions of HP-UX 11.
40623         * doc/posix-functions/fwide.texi: Likewise.
40624         * doc/posix-functions/fwprintf.texi: Likewise.
40625         * doc/posix-functions/fwscanf.texi: Likewise.
40626         * doc/posix-functions/inet_ntop.texi: Likewise.
40627         * doc/posix-functions/inet_pton.texi: Likewise.
40628         * doc/posix-functions/mbrlen.texi: Likewise.
40629         * doc/posix-functions/mbrtowc.texi: Likewise.
40630         * doc/posix-functions/mbsinit.texi: Likewise.
40631         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40632         * doc/posix-functions/swprintf.texi: Likewise.
40633         * doc/posix-functions/swscanf.texi: Likewise.
40634         * doc/posix-functions/towctrans.texi: Likewise.
40635         * doc/posix-functions/vfwprintf.texi: Likewise.
40636         * doc/posix-functions/vswprintf.texi: Likewise.
40637         * doc/posix-functions/vwprintf.texi: Likewise.
40638         * doc/posix-functions/wcrtomb.texi: Likewise.
40639         * doc/posix-functions/wcsrtombs.texi: Likewise.
40640         * doc/posix-functions/wcsstr.texi: Likewise.
40641         * doc/posix-functions/wctob.texi: Likewise.
40642         * doc/posix-functions/wctrans.texi: Likewise.
40643         * doc/posix-functions/wmemchr.texi: Likewise.
40644         * doc/posix-functions/wmemcmp.texi: Likewise.
40645         * doc/posix-functions/wmemcpy.texi: Likewise.
40646         * doc/posix-functions/wmemmove.texi: Likewise.
40647         * doc/posix-functions/wmemset.texi: Likewise.
40648         * doc/posix-functions/wprintf.texi: Likewise.
40649         * doc/posix-functions/wscanf.texi: Likewise.
40650
40651 2008-12-21  Bruno Haible  <bruno@clisp.org>
40652
40653         Work around a portability problem.
40654         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40655         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40656
40657 2008-12-20  Bruno Haible  <bruno@clisp.org>
40658
40659         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40660         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40661         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40663         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40664
40665         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40666         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40667         set.
40668         (GNULIB_defined_mbstate_t): New macro.
40669         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40670         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40671         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40672         reuses the system's mbrtowc function but works around the bugs.
40673         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40674         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40675         macros.
40676         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40677         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40678         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40679         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40680         REPLACE_MBSINIT if mbsinit needs to be overridden.
40681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40682         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40683         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40684         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40685         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40686         m4/locale-zh.m4.
40687         (Depends): Add mbsinit.
40688         * modules/mbsinit (Depends): Add mbrtowc.
40689         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40690
40691 2008-12-20  Bruno Haible  <bruno@clisp.org>
40692
40693         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40694         so that there are no conversion errors on AIX.
40695         * tests/test-mbsrtowcs.c (main): LIkewise.
40696
40697 2008-12-20  Bruno Haible  <bruno@clisp.org>
40698
40699         Work around wctob bug on Solaris <= 9.
40700         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40701         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40703         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40704         * modules/wctob (Files): Add m4/locale-fr.m4.
40705         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40706
40707 2008-12-20  Bruno Haible  <bruno@clisp.org>
40708
40709         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40710         /dev/null.
40711         * tests/test-select-in.sh: Likewise.
40712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40713
40714 2008-12-20  Bruno Haible  <bruno@clisp.org>
40715
40716         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40717         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40718         Cygwin 1.5.x.
40719
40720 2008-12-20  Bruno Haible  <bruno@clisp.org>
40721
40722         Ensure mbstate_t is defined on HP-UX 11.11.
40723         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40724         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40725         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40726         AC_USE_SYSTEM_EXTENSIONS.
40727         * modules/fnmatch (Depends-on): Add extensions.
40728         * modules/mbrlen (Depends-on): Likewise.
40729         * modules/mbrtowc (Depends-on): Likewise.
40730         * modules/mbsinit (Depends-on): Likewise.
40731         * modules/mbsrtowcs (Depends-on): Likewise.
40732         * modules/mbswidth (Depends-on): Likewise.
40733         * modules/quotearg (Depends-on): Likewise.
40734         * modules/strftime (Depends-on): Likewise.
40735
40736 2008-12-20  Bruno Haible  <bruno@clisp.org>
40737
40738         Ensure wctob is declared on IRIX 6.5.
40739         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40740         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40741         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40743         of HAVE_WCTOB.
40744         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40745         HAVE_WCTOB.
40746         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40747
40748 2008-12-19  Bruno Haible  <bruno@clisp.org>
40749
40750         * modules/mbsrtowcs-tests: New file.
40751         * tests/test-mbsrtowcs1.sh: New file.
40752         * tests/test-mbsrtowcs2.sh: New file.
40753         * tests/test-mbsrtowcs3.sh: New file.
40754         * tests/test-mbsrtowcs4.sh: New file.
40755         * tests/test-mbsrtowcs.c: New file.
40756
40757         New module 'mbsrtowcs'.
40758         * lib/wchar.in.h (mbsrtowcs): New declaration.
40759         * lib/mbsrtowcs.c: New file.
40760         * m4/mbsrtowcs.m4: New file.
40761         * modules/mbsrtowcs: New file.
40762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40763         HAVE_MBSRTOWCS.
40764         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40765         HAVE_MBSRTOWCS.
40766         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40767
40768 2008-12-19  Bruno Haible  <bruno@clisp.org>
40769
40770         New module 'mbrlen'.
40771         * lib/wchar.in.h (mbrlen): New declaration.
40772         * lib/mbrlen.c: New file.
40773         * m4/mbrlen.m4: New file.
40774         * modules/mbrlen: New file.
40775         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40776         HAVE_MBRLEN.
40777         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40778         HAVE_MBRLEN.
40779         * doc/posix-functions/mbrlen.texi: Document the new module.
40780
40781 2008-12-19  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40784         * modules/mbrtowc (Depends-on): Add verify.
40785         Suggested by Paul Eggert.
40786
40787 2008-12-18  Bruno Haible  <bruno@clisp.org>
40788
40789         * modules/mbsinit-tests: New file.
40790         * tests/test-mbsinit.sh: New file.
40791         * tests/test-mbsinit.c: New file.
40792
40793 2008-12-18  Bruno Haible  <bruno@clisp.org>
40794
40795         * modules/mbrtowc-tests: New file.
40796         * tests/test-mbrtowc1.sh: New file.
40797         * tests/test-mbrtowc2.sh: New file.
40798         * tests/test-mbrtowc3.sh: New file.
40799         * tests/test-mbrtowc4.sh: New file.
40800         * tests/test-mbrtowc.c: New file.
40801
40802         New module 'mbrtowc'.
40803         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40804         mbsinit and mbrtowc.
40805         (mbrtowc): New declaration.
40806         * lib/mbrtowc.c: New file.
40807         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40808         * modules/mbrtowc: New file.
40809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40810         HAVE_MBRTOWC.
40811         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40812         HAVE_MBRTOWC.
40813         * doc/posix-functions/mbrtowc.texi: Document the new module.
40814
40815 2008-12-18  Bruno Haible  <bruno@clisp.org>
40816
40817         New module 'wctob'.
40818         * lib/wchar.in.h (wctob): New declaration.
40819         * lib/wctob.c: New file.
40820         * m4/wctob.m4: New file.
40821         * modules/wctob: New file.
40822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40823         HAVE_WCTOB.
40824         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40825         * doc/posix-functions/wctob.texi: Document the new module.
40826
40827 2008-12-18  Bruno Haible  <bruno@clisp.org>
40828
40829         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40830         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40831
40832 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40833
40834         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40835         G. Christensen" <tgc@jupiterrise.com>.
40836
40837         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40838         G. Christensen" <tgc@jupiterrise.com>.
40839
40840         * lib/flock.c: Need to include string.h.  Reported by "Tom
40841         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40842         <ebb9@byu.net>.
40843
40844 2008-12-18  Bruno Haible  <bruno@clisp.org>
40845
40846         * m4/locale-ja.m4: New file, from GNU gettext.
40847
40848 2008-12-17  Bruno Haible  <bruno@clisp.org>
40849
40850         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40851         Suggested by Eric Blake.
40852
40853 2008-12-17  Bruno Haible  <bruno@clisp.org>
40854
40855         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40856
40857 2008-12-17  Bruno Haible  <bruno@clisp.org>
40858
40859         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40860         * modules/mbsinit (Depends-on): Add verify.
40861         Suggested by Paul Eggert.
40862
40863 2008-12-17  Bruno Haible  <bruno@clisp.org>
40864
40865         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40866         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40867         gl_FUNC_MBRTOWC.
40868         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40869         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40870         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40871         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40872         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40873         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40874         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40875         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40876         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40877         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40878         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40879         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40880         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40881         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40882         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40883         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40884         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40885         * modules/trim (configure.ac): Likewise.
40886
40887 2008-12-17  Bruno Haible  <bruno@clisp.org>
40888
40889         * modules/btowc-tests: New file.
40890         * tests/test-btowc1.sh: New file.
40891         * tests/test-btowc2.sh: New file.
40892         * tests/test-btowc.c: New file.
40893
40894         New module 'btowc'.
40895         * lib/wchar.in.h (btowc): New declaration.
40896         * lib/btowc.c: New file.
40897         * m4/btowc.m4: New file.
40898         * modules/btowc: New file.
40899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40900         HAVE_BTOWC.
40901         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40902         * doc/posix-functions/btowc.texi: Document the new module.
40903
40904 2008-12-17  Bruno Haible  <bruno@clisp.org>
40905
40906         New module 'mbsinit'.
40907         * lib/wchar.in.h (mbsinit): New declaration.
40908         * lib/mbsinit.c: New file.
40909         * m4/mbsinit.m4: New file.
40910         * modules/mbsinit: New file.
40911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40912         HAVE_MBSINIT.
40913         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40914         HAVE_MBSINIT.
40915         * doc/posix-functions/mbsinit.texi: Document the new module.
40916
40917 2008-12-16  Bruno Haible  <bruno@clisp.org>
40918
40919         * lib/unistd.in.h: Add comment.
40920         * tests/test-environ.c: Don't include <stdlib.h>.
40921
40922 2008-12-16  Bruno Haible  <bruno@clisp.org>
40923
40924         * lib/parse-duration.h (parse_duration): Document return value
40925         convention.
40926         * lib/parse-duration.c: Include specification header first. Add
40927         comments.
40928         (_): Remove macro.
40929         (parse_year_month_day, parse_hour_minute_second): Move side effects
40930         outside of strchr call.
40931         (parse_non_iso8601): Move side effects outside of isspace call.
40932         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40933         call.
40934
40935 2008-12-16  Bruno Haible  <bruno@clisp.org>
40936
40937         * tests/test-parse-duration.sh: Produce no output when the test
40938         succeeds.
40939
40940 2008-12-16  Bruno Haible  <bruno@clisp.org>
40941
40942         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40943         expressions.
40944
40945 2008-12-15  Bruno Haible  <bruno@clisp.org>
40946
40947         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40948         * doc/glibc-functions/flistxattr.texi: Likewise.
40949         * doc/glibc-functions/fopencookie.texi: Likewise.
40950         * doc/glibc-functions/fremovexattr.texi: Likewise.
40951         * doc/glibc-functions/fsetxattr.texi: Likewise.
40952         * doc/glibc-functions/getxattr.texi: Likewise.
40953         * doc/glibc-functions/lgetxattr.texi: Likewise.
40954         * doc/glibc-functions/listxattr.texi: Likewise.
40955         * doc/glibc-functions/llistxattr.texi: Likewise.
40956         * doc/glibc-functions/lremovexattr.texi: Likewise.
40957         * doc/glibc-functions/lsetxattr.texi: Likewise.
40958         * doc/glibc-functions/removexattr.texi: Likewise.
40959         * doc/glibc-functions/setxattr.texi: Likewise.
40960         * doc/posix-functions/open_memstream.texi: Likewise.
40961
40962 2008-12-15  Eric Blake  <ebb9@byu.net>
40963
40964         Update doc for cygwin 1.7.
40965         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40966         functions.
40967         * doc/posix-functions/fchmodat.texi: Likewise.
40968         * doc/posix-functions/fchownat.texi: Likewise.
40969         * doc/posix-functions/fdopendir.texi: Likewise.
40970         * doc/posix-functions/fmemopen.texi: Likewise.
40971         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40972         * doc/posix-functions/fstatat.texi: Likewise.
40973         * doc/posix-functions/futimens.texi: Likewise.
40974         * doc/posix-functions/gai_strerror.texi: Likewise.
40975         * doc/posix-functions/getaddrinfo.texi: Likewise.
40976         * doc/posix-functions/getnameinfo.texi: Likewise.
40977         * doc/posix-functions/if_freenameindex.texi: Likewise.
40978         * doc/posix-functions/if_indextoname.texi: Likewise.
40979         * doc/posix-functions/if_nameindex.texi: Likewise.
40980         * doc/posix-functions/if_nametoindex.texi: Likewise.
40981         * doc/posix-functions/insque.texi: Likewise.
40982         * doc/posix-functions/linkat.texi: Likewise.
40983         * doc/posix-functions/llrint.texi: Likewise.
40984         * doc/posix-functions/llrintf.texi: Likewise.
40985         * doc/posix-functions/llrintl.texi: Likewise.
40986         * doc/posix-functions/lockf.texi: Likewise.
40987         * doc/posix-functions/lrintl.texi: Likewise.
40988         * doc/posix-functions/mkdirat.texi: Likewise.
40989         * doc/posix-functions/mkfifoat.texi: Likewise.
40990         * doc/posix-functions/mknodat.texi: Likewise.
40991         * doc/posix-functions/mq_close.texi: Likewise.
40992         * doc/posix-functions/mq_getattr.texi: Likewise.
40993         * doc/posix-functions/mq_notify.texi: Likewise.
40994         * doc/posix-functions/mq_open.texi: Likewise.
40995         * doc/posix-functions/mq_receive.texi: Likewise.
40996         * doc/posix-functions/mq_send.texi: Likewise.
40997         * doc/posix-functions/mq_setattr.texi: Likewise.
40998         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40999         * doc/posix-functions/mq_timedsend.texi: Likewise.
41000         * doc/posix-functions/mq_unlink.texi: Likewise.
41001         * doc/posix-functions/open_memstream.texi: Likewise.
41002         * doc/posix-functions/openat.texi: Likewise.
41003         * doc/posix-functions/posix_fadvise.texi: Likewise.
41004         * doc/posix-functions/posix_fallocate.texi: Likewise.
41005         * doc/posix-functions/posix_madvise.texi: Likewise.
41006         * doc/posix-functions/posix_memalign.texi: Likewise.
41007         * doc/posix-functions/posix_openpt.texi: Likewise.
41008         * doc/posix-functions/readlinkat.texi: Likewise.
41009         * doc/posix-functions/remque.texi: Likewise.
41010         * doc/posix-functions/renameat.texi: Likewise.
41011         * doc/posix-functions/rintl.texi: Likewise.
41012         * doc/posix-functions/sem_unlink.texi: Likewise.
41013         * doc/posix-functions/shm_open.texi: Likewise.
41014         * doc/posix-functions/shm_unlink.texi: Likewise.
41015         * doc/posix-functions/signgam.texi: Likewise.
41016         * doc/posix-functions/sigset.texi: Likewise.
41017         * doc/posix-functions/stpcpy.texi: Likewise.
41018         * doc/posix-functions/stpncpy.texi: Likewise.
41019         * doc/posix-functions/strerror.texi: Likewise.
41020         * doc/posix-functions/strtod.texi: Likewise.
41021         * doc/posix-functions/symlinkat.texi: Likewise.
41022         * doc/posix-functions/unlinkat.texi: Likewise.
41023         * doc/posix-functions/utimensat.texi: Likewise.
41024         * doc/glibc-functions/bindresvport.texi: Likewise.
41025         * doc/glibc-functions/dn_expand.texi: Likewise.
41026         * doc/glibc-functions/exp10.texi: Likewise.
41027         * doc/glibc-functions/exp10f.texi: Likewise.
41028         * doc/glibc-functions/fgetxattr.texi: Likewise.
41029         * doc/glibc-functions/flistxattr.texi: Likewise.
41030         * doc/glibc-functions/fopencookie.texi: Likewise.
41031         * doc/glibc-functions/freeifaddrs.texi: Likewise.
41032         * doc/glibc-functions/fremovexattr.texi: Likewise.
41033         * doc/glibc-functions/fsetxattr.texi: Likewise.
41034         * doc/glibc-functions/getifaddrs.texi: Likewise.
41035         * doc/glibc-functions/getxattr.texi: Likewise.
41036         * doc/glibc-functions/lgetxattr.texi: Likewise.
41037         * doc/glibc-functions/listxattr.texi: Likewise.
41038         * doc/glibc-functions/llistxattr.texi: Likewise.
41039         * doc/glibc-functions/lremovexattr.texi: Likewise.
41040         * doc/glibc-functions/lsetxattr.texi: Likewise.
41041         * doc/glibc-functions/pow10.texi: Likewise.
41042         * doc/glibc-functions/pow10f.texi: Likewise.
41043         * doc/glibc-functions/rcmd_af.texi: Likewise.
41044         * doc/glibc-functions/removexattr.texi: Likewise.
41045         * doc/glibc-functions/res_init.texi: Likewise.
41046         * doc/glibc-functions/res_mkquery.texi: Likewise.
41047         * doc/glibc-functions/res_query.texi: Likewise.
41048         * doc/glibc-functions/res_querydomain.texi: Likewise.
41049         * doc/glibc-functions/res_send.texi: Likewise.
41050         * doc/glibc-functions/rresvport_af.texi: Likewise.
41051         * doc/glibc-functions/setxattr.texi: Likewise.
41052         * doc/glibc-functions/strcasestr.texi: Likewise.
41053
41054 2008-12-15  Bruno Haible  <bruno@clisp.org>
41055
41056         Fix compilation error on OSF/1 4.0.
41057         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
41058         <sys/time.h>, simply delegate to the system header.
41059         Reported by Daniel Richard G. <oss@teragram.com>.
41060
41061 2008-12-15  Bruno Haible  <bruno@clisp.org>
41062
41063         * doc/posix-functions/openat.texi: Mention the 'openat' module.
41064         * doc/posix-functions/fchmodat.texi: Likewise.
41065         * doc/posix-functions/fchownat.texi: Likewise.
41066         * doc/posix-functions/fdopendir.texi: Likewise.
41067         * doc/posix-functions/fstatat.texi: Likewise.
41068         * doc/posix-functions/mkdirat.texi: Likewise.
41069         * doc/posix-functions/unlinkat.texi: Likewise.
41070
41071 2008-12-14  Bruno Haible  <bruno@clisp.org>
41072
41073         Update doc for POSIX:2008.
41074         * doc/posix-functions/faccessat.texi: New file.
41075         * doc/posix-functions/fchmodat.texi: New file.
41076         * doc/posix-functions/fchownat.texi: New file.
41077         * doc/posix-functions/fdopendir.texi: New file.
41078         * doc/posix-functions/fstatat.texi: New file.
41079         * doc/posix-functions/futimens.texi: New file.
41080         * doc/posix-functions/linkat.texi: New file.
41081         * doc/posix-functions/mkdirat.texi: New file.
41082         * doc/posix-functions/mkfifoat.texi: New file.
41083         * doc/posix-functions/mknodat.texi: New file.
41084         * doc/posix-functions/open_wmemstream.texi: New file.
41085         * doc/posix-functions/openat.texi: New file.
41086         * doc/posix-functions/psiginfo.texi: New file.
41087         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
41088         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
41089         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
41090         * doc/posix-functions/readlinkat.texi: New file.
41091         * doc/posix-functions/renameat.texi: New file.
41092         * doc/posix-functions/strerror_l.texi: New file.
41093         * doc/posix-functions/symlinkat.texi: New file.
41094         * doc/posix-functions/unlinkat.texi: New file.
41095         * doc/posix-functions/utimensat.texi: New file.
41096         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41097
41098 2008-12-14  Bruno Haible  <bruno@clisp.org>
41099
41100         Update doc for POSIX:2008.
41101         * doc/posix-functions/alphasort.texi: Renamed from
41102         doc/glibc-functions/alphasort.texi.
41103         * doc/posix-functions/dirfd.texi: Renamed from
41104         doc/glibc-functions/dirfd.texi.
41105         * doc/posix-functions/dprintf.texi: Renamed from
41106         doc/glibc-functions/dprintf.texi.
41107         * doc/posix-functions/duplocale.texi: Renamed from
41108         doc/glibc-functions/duplocale.texi.
41109         * doc/posix-functions/fexecve.texi: Renamed from
41110         doc/glibc-functions/fexecve.texi.
41111         * doc/posix-functions/fmemopen.texi: Renamed from
41112         doc/glibc-functions/fmemopen.texi.
41113         * doc/posix-functions/freelocale.texi: Renamed from
41114         doc/glibc-functions/freelocale.texi.
41115         * doc/posix-functions/getdate_err.texi: Renamed from
41116         doc/glibc-functions/getdate_err.texi.
41117         * doc/posix-functions/isalnum_l.texi: Renamed from
41118         doc/glibc-functions/isalnum_l.texi.
41119         * doc/posix-functions/isalpha_l.texi: Renamed from
41120         doc/glibc-functions/isalpha_l.texi.
41121         * doc/posix-functions/isblank_l.texi: Renamed from
41122         doc/glibc-functions/isblank_l.texi.
41123         * doc/posix-functions/iscntrl_l.texi: Renamed from
41124         doc/glibc-functions/iscntrl_l.texi.
41125         * doc/posix-functions/isdigit_l.texi: Renamed from
41126         doc/glibc-functions/isdigit_l.texi.
41127         * doc/posix-functions/isgraph_l.texi: Renamed from
41128         doc/glibc-functions/isgraph_l.texi.
41129         * doc/posix-functions/islower_l.texi: Renamed from
41130         doc/glibc-functions/islower_l.texi.
41131         * doc/posix-functions/isprint_l.texi: Renamed from
41132         doc/glibc-functions/isprint_l.texi.
41133         * doc/posix-functions/ispunct_l.texi: Renamed from
41134         doc/glibc-functions/ispunct_l.texi.
41135         * doc/posix-functions/isspace_l.texi: Renamed from
41136         doc/glibc-functions/isspace_l.texi.
41137         * doc/posix-functions/isupper_l.texi: Renamed from
41138         doc/glibc-functions/isupper_l.texi.
41139         * doc/posix-functions/iswalnum_l.texi: Renamed from
41140         doc/glibc-functions/iswalnum_l.texi.
41141         * doc/posix-functions/iswalpha_l.texi: Renamed from
41142         doc/glibc-functions/iswalpha_l.texi.
41143         * doc/posix-functions/iswblank_l.texi: Renamed from
41144         doc/glibc-functions/iswblank_l.texi.
41145         * doc/posix-functions/iswcntrl_l.texi: Renamed from
41146         doc/glibc-functions/iswcntrl_l.texi.
41147         * doc/posix-functions/iswctype_l.texi: Renamed from
41148         doc/glibc-functions/iswctype_l.texi.
41149         * doc/posix-functions/iswdigit_l.texi: Renamed from
41150         doc/glibc-functions/iswdigit_l.texi.
41151         * doc/posix-functions/iswgraph_l.texi: Renamed from
41152         doc/glibc-functions/iswgraph_l.texi.
41153         * doc/posix-functions/iswlower_l.texi: Renamed from
41154         doc/glibc-functions/iswlower_l.texi.
41155         * doc/posix-functions/iswprint_l.texi: Renamed from
41156         doc/glibc-functions/iswprint_l.texi.
41157         * doc/posix-functions/iswpunct_l.texi: Renamed from
41158         doc/glibc-functions/iswpunct_l.texi.
41159         * doc/posix-functions/iswspace_l.texi: Renamed from
41160         doc/glibc-functions/iswspace_l.texi.
41161         * doc/posix-functions/iswupper_l.texi: Renamed from
41162         doc/glibc-functions/iswupper_l.texi.
41163         * doc/posix-functions/iswxdigit_l.texi: Renamed from
41164         doc/glibc-functions/iswxdigit_l.texi.
41165         * doc/posix-functions/isxdigit_l.texi: Renamed from
41166         doc/glibc-functions/isxdigit_l.texi.
41167         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
41168         doc/glibc-functions/mbsnrtowcs.texi.
41169         * doc/posix-functions/mkdtemp.texi: Renamed from
41170         doc/glibc-functions/mkdtemp.texi.
41171         * doc/posix-functions/newlocale.texi: Renamed from
41172         doc/glibc-functions/newlocale.texi.
41173         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
41174         doc/glibc-functions/nl_langinfo_l.texi.
41175         * doc/posix-functions/open_memstream.texi: Renamed from
41176         doc/glibc-functions/open_memstream.texi.
41177         * doc/posix-functions/opterr.texi: Renamed from
41178         doc/glibc-functions/opterr.texi.
41179         * doc/posix-functions/optind.texi: Renamed from
41180         doc/glibc-functions/optind.texi.
41181         * doc/posix-functions/optopt.texi: Renamed from
41182         doc/glibc-functions/optopt.texi.
41183         * doc/posix-functions/psignal.texi: Renamed from
41184         doc/glibc-functions/psignal.texi.
41185         * doc/posix-functions/scandir.texi: Renamed from
41186         doc/glibc-functions/scandir.texi.
41187         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
41188         doc/glibc-functions/sched_get_priority_min.texi.
41189         * doc/posix-functions/signgam.texi: Renamed from
41190         doc/glibc-functions/signgam.texi.
41191         * doc/posix-functions/stpcpy.texi: Renamed from
41192         doc/glibc-functions/stpcpy.texi.
41193         * doc/posix-functions/stpncpy.texi: Renamed from
41194         doc/glibc-functions/stpncpy.texi.
41195         * doc/posix-functions/strcasecmp_l.texi: Renamed from
41196         doc/glibc-functions/strcasecmp_l.texi.
41197         * doc/posix-functions/strcoll_l.texi: Renamed from
41198         doc/glibc-functions/strcoll_l.texi.
41199         * doc/posix-functions/strfmon_l.texi: Renamed from
41200         doc/glibc-functions/strfmon_l.texi.
41201         * doc/posix-functions/strftime_l.texi: Renamed from
41202         doc/glibc-functions/strftime_l.texi.
41203         * doc/posix-functions/strncasecmp_l.texi: Renamed from
41204         doc/glibc-functions/strncasecmp_l.texi.
41205         * doc/posix-functions/strndup.texi: Renamed from
41206         doc/glibc-functions/strndup.texi.
41207         * doc/posix-functions/strnlen.texi: Renamed from
41208         doc/glibc-functions/strnlen.texi.
41209         * doc/posix-functions/strsignal.texi: Renamed from
41210         doc/glibc-functions/strsignal.texi.
41211         * doc/posix-functions/strxfrm_l.texi: Renamed from
41212         doc/glibc-functions/strxfrm_l.texi.
41213         * doc/posix-functions/timer_gettime.texi: Renamed from
41214         doc/glibc-functions/timer_gettime.texi.
41215         * doc/posix-functions/tolower_l.texi: Renamed from
41216         doc/glibc-functions/tolower_l.texi.
41217         * doc/posix-functions/toupper_l.texi: Renamed from
41218         doc/glibc-functions/toupper_l.texi.
41219         * doc/posix-functions/towctrans_l.texi: Renamed from
41220         doc/glibc-functions/towctrans_l.texi.
41221         * doc/posix-functions/towlower_l.texi: Renamed from
41222         doc/glibc-functions/towlower_l.texi.
41223         * doc/posix-functions/towupper_l.texi: Renamed from
41224         doc/glibc-functions/towupper_l.texi.
41225         * doc/posix-functions/uselocale.texi: Renamed from
41226         doc/glibc-functions/uselocale.texi.
41227         * doc/posix-functions/vdprintf.texi: Renamed from
41228         doc/glibc-functions/vdprintf.texi.
41229         * doc/posix-functions/wcpcpy.texi:
41230         Renamed from doc/glibc-functions/wcpcpy.texi.
41231         * doc/posix-functions/wcpncpy.texi: Renamed from
41232         doc/glibc-functions/wcpncpy.texi.
41233         * doc/posix-functions/wcscasecmp.texi: Renamed from
41234         doc/glibc-functions/wcscasecmp.texi.
41235         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
41236         doc/glibc-functions/wcscasecmp_l.texi.
41237         * doc/posix-functions/wcscoll_l.texi: Renamed from
41238         doc/glibc-functions/wcscoll_l.texi.
41239         * doc/posix-functions/wcsdup.texi: Renamed from
41240         doc/glibc-functions/wcsdup.texi.
41241         * doc/posix-functions/wcsncasecmp.texi: Renamed from
41242         doc/glibc-functions/wcsncasecmp.texi.
41243         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
41244         doc/glibc-functions/wcsncasecmp_l.texi.
41245         * doc/posix-functions/wcsnlen.texi: Renamed from
41246         doc/glibc-functions/wcsnlen.texi.
41247         * doc/posix-functions/wcsnrtombs.texi: Renamed from
41248         doc/glibc-functions/wcsnrtombs.texi.
41249         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
41250         doc/glibc-functions/wcsxfrm_l.texi.
41251         * doc/posix-functions/wctrans_l.texi: Renamed from
41252         doc/glibc-functions/wctrans_l.texi.
41253         * doc/posix-functions/wctype_l.texi: Renamed from
41254         doc/glibc-functions/wctype_l.texi.
41255         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41256         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41257         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41258         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41259         these subsections.
41260         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
41261         Remove sections.
41262
41263 2008-12-14  Bruno Haible  <bruno@clisp.org>
41264
41265         Update doc for POSIX:2008.
41266         * doc/posix-functions/*.texi: Update URL of POSIX specification.
41267
41268 2008-12-14  Bruno Haible  <bruno@clisp.org>
41269
41270         Update doc for POSIX:2008.
41271         * doc/pastposix-functions/bcmp.texi: Renamed from
41272         doc/posix-functions/bcmp.texi.
41273         * doc/pastposix-functions/bcopy.texi: Renamed from
41274         doc/posix-functions/bcopy.texi.
41275         * doc/pastposix-functions/bsd_signal.texi: Renamed from
41276         doc/posix-functions/bsd_signal.texi.
41277         * doc/pastposix-functions/bzero.texi: Renamed from
41278         doc/posix-functions/bzero.texi.
41279         * doc/pastposix-functions/ecvt.texi: Renamed from
41280         doc/posix-functions/ecvt.texi.
41281         * doc/pastposix-functions/fcvt.texi: Renamed from
41282         doc/posix-functions/fcvt.texi.
41283         * doc/pastposix-functions/ftime.texi: Renamed from
41284         doc/posix-functions/ftime.texi.
41285         * doc/pastposix-functions/gcvt.texi: Renamed from
41286         doc/posix-functions/gcvt.texi.
41287         * doc/pastposix-functions/getcontext.texi: Renamed from
41288         doc/posix-functions/getcontext.texi.
41289         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
41290         doc/posix-functions/gethostbyaddr.texi.
41291         * doc/pastposix-functions/gethostbyname.texi: Renamed from
41292         doc/posix-functions/gethostbyname.texi.
41293         * doc/pastposix-functions/getwd.texi: Renamed from
41294         doc/posix-functions/getwd.texi.
41295         * doc/pastposix-functions/h_errno.texi: Renamed from
41296         doc/posix-functions/h_errno.texi.
41297         * doc/pastposix-functions/index.texi: Renamed from
41298         doc/posix-functions/index.texi.
41299         * doc/pastposix-functions/makecontext.texi: Renamed from
41300         doc/posix-functions/makecontext.texi.
41301         * doc/pastposix-functions/mktemp.texi: Renamed from
41302         doc/posix-functions/mktemp.texi.
41303         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
41304         doc/posix-functions/pthread_attr_getstackaddr.texi.
41305         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
41306         doc/posix-functions/pthread_attr_setstackaddr.texi.
41307         * doc/pastposix-functions/rindex.texi: Renamed from
41308         doc/posix-functions/rindex.texi.
41309         * doc/pastposix-functions/scalb.texi: Renamed from
41310         doc/posix-functions/scalb.texi.
41311         * doc/pastposix-functions/setcontext.texi: Renamed from
41312         doc/posix-functions/setcontext.texi.
41313         * doc/pastposix-functions/swapcontext.texi: Renamed from
41314         doc/posix-functions/swapcontext.texi.
41315         * doc/pastposix-functions/ualarm.texi: Renamed from
41316         doc/posix-functions/ualarm.texi.
41317         * doc/pastposix-functions/usleep.texi: Renamed from
41318         doc/posix-functions/usleep.texi.
41319         * doc/pastposix-functions/vfork.texi: Renamed from
41320         doc/posix-functions/vfork.texi.
41321         * doc/pastposix-functions/wcswcs.texi: Renamed from
41322         doc/posix-functions/wcswcs.texi.
41323         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
41324         (Function Substitutes): Update.
41325
41326 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41327
41328         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
41329         m4/strerror.m4.
41330
41331 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41332             Bruno Haible  <bruno@clisp.org>
41333
41334         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
41335
41336 2008-12-13  Bruno Haible  <bruno@clisp.org>
41337
41338         * modules/strtoull (Depends-on): Remove unistd.
41339
41340 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41341
41342         * modules/strtoull (Depends-on): Add stdlib.
41343
41344 2008-12-11  Simon Josefsson  <simon@josefsson.org>
41345
41346         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
41347
41348 2008-12-10  Jim Meyering  <meyering@redhat.com>
41349
41350         gl_ASSERT: don't say assertions are disabled when they're not
41351         * m4/assert.m4 (gl_ASSERT): Do not make configure report
41352         "checking whether to enable assertions... no", when they are in
41353         fact enabled.  This is solely a bug in the output of configure.
41354         In spite of saying "no", NDEBUG was not defined in that case.
41355         Also, as noted by Eric Blake, leave assertions enabled upon
41356         --enable-assert=INVALID.
41357
41358 2008-12-10  Bruno Haible  <bruno@clisp.org>
41359
41360         Change MODULES.html to refer to POSIX:2008 where possible.
41361         * MODULES.html.sh (POSIX2008_URL): New variable.
41362         (posix_headers): Remove sys/timeb, ucontext.
41363         (posix2001_headers): New variable.
41364         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
41365         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
41366         index, makecontext, mktemp, pthread_attr_getstackaddr,
41367         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
41368         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
41369         (posix2001_functions): New variable.
41370         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
41371         otherwise.
41372
41373 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41374
41375         add missing include to parse-duration.c
41376         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
41377         * modules/parse-duration (Depends-on): Add xalloc.
41378
41379         fix sed script reading maint.mk
41380         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
41381         (syntax-check-rules): Use it.
41382
41383 2008-12-09  Bruno Haible  <bruno@clisp.org>
41384
41385         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
41386         MacOS X 10.4/PowerPC.
41387         Reported by Simon Josefsson.
41388
41389 2008-12-08  Jim Meyering  <meyering@redhat.com>
41390
41391         work around mingw's lack of some S_IF definitions
41392         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
41393         Reported by Simon Josefsson.
41394
41395 2008-12-08  Bruno Haible  <bruno@clisp.org>
41396
41397         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
41398         applied to variables. Needed on MacOS X 10.4/PowerPC.
41399         Reported by Simon Josefsson.
41400
41401 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
41402         and Eric Blake  <ebb9@byu.net>
41403
41404         assert: honor --enable-assert
41405         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
41406         order to honor --enable-assert, rather than treating it as a
41407         synonym for --disable-assert.
41408
41409 2008-12-08  Jim Meyering  <meyering@redhat.com>
41410
41411         * lib/posixtm.c: Remove now-useless declaration of mktime.
41412
41413         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
41414
41415 2008-12-07  Bruno Haible  <bruno@clisp.org>
41416
41417         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
41418         test_once): Mark functions as static.
41419         * tests/test-tls.c (test_tls): Likewise.
41420
41421 2008-12-07  Bruno Haible  <bruno@clisp.org>
41422
41423         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
41424         iconv_register_autodetect.
41425
41426 2008-12-07  Jim Meyering  <meyering@redhat.com>
41427
41428         posixtm.c: avoid a warning
41429         * lib/posixtm.c (posixtime): Don't initialize tm0.
41430         It's no longer needed to placate gcc4's -Wuninitialized,
41431         and the attempt to placate would elicit a new warning.
41432
41433         unicodeio.c: mark unused parameters
41434         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41435         (fallback_failure_callback): Likewise.
41436
41437 2008-12-07  Bruno Haible  <bruno@clisp.org>
41438
41439         * gnulib-tool (func_create_testdir): When building the tests
41440         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
41441         Reported by Simon Josefsson.
41442
41443 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41444
41445         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
41446
41447 2008-12-06  Bruno Haible  <bruno@clisp.org>
41448
41449         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
41450         Suggested by Eric Blake.
41451
41452 2008-12-06  Bruno Haible  <bruno@clisp.org>
41453
41454         Fix a c-stack test failure on MacOS X.
41455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
41456         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
41457         handler for SIGBUS as well.
41458         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
41459         install a signal handler for SIGBUS as well.
41460         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
41461
41462 2008-12-06  Bruno Haible  <bruno@clisp.org>
41463
41464         Advocacy documentation.
41465         * doc/gnulib-intro.texi (Benefits): New section.
41466         * doc/gnulib.texi: Update.
41467
41468 2008-12-06  Bruno Haible  <bruno@clisp.org>
41469
41470         Document the 'manywarnings' module.
41471         * doc/manywarnings.texi: New file.
41472         * doc/gnulib.texi: Include it.
41473
41474 2008-12-05  Eric Blake  <ebb9@byu.net>
41475
41476         tests: silence some gcc warnings
41477         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
41478         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
41479         type mismatches.
41480
41481 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41482             Bruno Haible  <bruno@clisp.org>
41483
41484         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
41485
41486 2008-11-29  Jim Meyering  <meyering@redhat.com>
41487
41488         unicodeio.c: mark unused parameters
41489         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41490         (fallback_failure_callback): Likewise.
41491
41492         fts: fix a thinko
41493         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
41494         (set_stat_type): Return S_IF*-valued "type" directly.
41495         Prompted by James Youngman's spotting a related bug.
41496         Confirmed by further testing through find.
41497
41498         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
41499         * lib/fts.c (D_TYPE): Define.
41500         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
41501         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
41502         (s_ifmt_shift_bits): New function.
41503         (set_stat_type): New function.
41504         (fts_build): When not calling fts_stat, call set_stat_type
41505         to propagate dirent.d_type info to fts_read caller.
41506         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
41507         fts_statp->st_mode type information may be valid.
41508
41509 2008-11-28  Simon Josefsson  <simon@josefsson.org>
41510
41511         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41512         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41513         <sds@gnu.org>.
41514
41515 2008-11-20  Bruno Haible  <bruno@clisp.org>
41516
41517         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41518         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41519         INCLUDE_NEXT.
41520         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41521         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41522         * modules/math (Makefile.am): Substitute
41523         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41524         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41525
41526 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41527             Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/stdint.in.h: Define all type macros so that their expansion is
41530         a single typedef'ed token. Fixes a compilation failure in Boost which
41531         does "using ::int8_t;".
41532
41533 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41534
41535         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41536         gl_MANYWARN_ALL_GCC.
41537         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41538         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41539         * modules/manywarnings: New file.
41540         * MODULES.html.sh: Mention manywarnings module.
41541
41542 2008-11-18  Bruno Haible  <bruno@clisp.org>
41543
41544         * doc/gnulib-tool.texi (Unit tests): New section.
41545
41546 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41547
41548         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41549         paths like 'lib/po/foo.po'.
41550
41551 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41552
41553         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41554         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41555
41556 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41557
41558         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41559         parameter works.
41560
41561 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41562
41563         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41564
41565 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41566
41567         * modules/parse-duration-tests: New file.
41568         * tests/test-parse-duration.sh: New file.
41569         * tests/test-parse-duration.c: New file.
41570
41571         New module 'parse-duration'.
41572         * lib/parse-duration.h: New file.
41573         * lib/parse-duration.c: New file.
41574         * modules/parse-duration: New file.
41575
41576 2008-11-17  Bruno Haible  <bruno@clisp.org>
41577
41578         * tests/test-select-out.sh: Comment out the first pipe test.
41579         Reported by Simon Josefsson.
41580
41581 2008-11-17  Bruno Haible  <bruno@clisp.org>
41582
41583         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41584         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41585         gl_HOSTENT.
41586
41587 2008-11-17  Bruno Haible  <bruno@clisp.org>
41588
41589         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41590         -lnetwork and -lnet. Needed for Haiku and BeOS.
41591
41592 2008-11-16  Bruno Haible  <bruno@clisp.org>
41593
41594         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41595
41596 2008-11-16  Bruno Haible  <bruno@clisp.org>
41597
41598         Avoid test failure on Haiku.
41599         * tests/test-fsync.c: Include <errno.h>.
41600         (main): Don't require that fsync (0) fails.
41601
41602 2008-11-15  Bruno Haible  <bruno@clisp.org>
41603
41604         New module 'hostent'.
41605         * modules/hostent: New file.
41606         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41607
41608 2008-11-15  Bruno Haible  <bruno@clisp.org>
41609
41610         New module 'servent'.
41611         * modules/servent: New file.
41612         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41613
41614 2008-11-15  Bruno Haible  <bruno@clisp.org>
41615
41616         Avoid generating same test program with two different rules.
41617         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41618         test-frexp to test-frexp-nolibm.
41619         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41620         test-frexpl to test-frexpl-nolibm.
41621
41622 2008-11-15  Bruno Haible  <bruno@clisp.org>
41623
41624         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41625         $(FREXPL_LIBM).
41626
41627 2008-11-15  Bruno Haible  <bruno@clisp.org>
41628
41629         * lib/netdb.in.h: Activate the definitions also when the system's
41630         <netdb.h> has 'struct addrinfo'.
41631         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41632         EAI_OVERFLOW or AI_NUMERICSERV.
41633         * doc/posix-headers/netdb.texi: Document the problem.
41634
41635 2008-11-15  Bruno Haible  <bruno@clisp.org>
41636
41637         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41638
41639         Make the 'sched' module work on platforms where <sched.h> exists but
41640         is incomplete (such as Haiku).
41641         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41642         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41643         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41644         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41645         HAVE_STRUCT_SCHED_PARAM.
41646         * modules/sched (Depends-on): Add include_next.
41647         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41648         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41649         * doc/posix-headers/sched.texi: Document the issue.
41650
41651 2008-11-13  Jim Meyering  <meyering@redhat.com>
41652
41653         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41654         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41655         test would fail due to the difference in the Report bugs to ...
41656         line.  The expected address is empty, "<>", while the actual
41657         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41658
41659 2008-11-12  Bruno Haible  <bruno@clisp.org>
41660
41661         lstat: don't compile lstat.c on systems lacking lstat
41662         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41663         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41664         Reported by Daniel P. Berrange via Jim Meyering.
41665
41666 2008-11-12  Jim Meyering  <meyering@redhat.com>
41667
41668         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41669
41670 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41671
41672         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41673         instead.
41674
41675 2008-11-12  Bruno Haible  <bruno@clisp.org>
41676
41677         * lib/unicodeio.c: Include unistr.h.
41678         (utf8_wctomb): Remove function.
41679         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41680
41681 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41682
41683         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41684         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41685         <bruno@clisp.org>.
41686         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41687
41688 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41689
41690         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41691         * doc/gnulib.texi: Add section for warnings.
41692
41693 2008-11-11  Bruno Haible  <bruno@clisp.org>
41694
41695         * lib/sockets.h: Add a comment.
41696
41697 2008-11-11  Karl Berry  <karl@gnu.org>
41698
41699         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41700
41701 2008-11-11  Eric Blake  <ebb9@byu.net>
41702
41703         fdl.texi: avoid git symlinks
41704         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41705
41706 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41707
41708         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41709
41710 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41711
41712         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41713         (gl_WARN_ADD): Substitute $2 if literal.
41714
41715 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41716
41717         * m4/warning.m4: Remove.
41718
41719 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41720
41721         * m4/warnings.m4: Almost complete rewrite. :-)
41722
41723 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41724
41725         * modules/warnings: New module.
41726         * m4/warnings.m4: New file.
41727         * MODULES.html.sh: Mention warnings module.
41728         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41729         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41730
41731 2008-11-10  Eric Blake  <ebb9@byu.net>
41732
41733         fdl.texi: make a symlink to the latest version
41734         * doc/standards.texi: Revert today's earlier change.
41735         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41736         * doc/fdl.texi: ...and replace this with a symlink to the newer
41737         fdl-1.3.texi.
41738
41739 2008-11-10  Bruno Haible  <bruno@clisp.org>
41740
41741         * tests/test-select-fd.c (main): Accept the result file name as fourth
41742         argument.
41743         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41744         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41745
41746 2008-11-10  Bruno Haible  <bruno@clisp.org>
41747
41748         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41749         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41750         as autoconf-substituted macros.
41751         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41753         gl_NETDB_H_DEFAULTS. Set these variables.
41754         * modules/netdb (Makefile.am): Substitute these variables.
41755
41756 2008-11-10  Eric Blake  <ebb9@byu.net>
41757
41758         standards.texi: include correct file for FDL 1.3
41759         * doc/standards.texi (GNU Free Documentation License): Change
41760         include file to pull in FDL 1.3, not 1.2.
41761
41762         fdl.texi: revert accidental change to license
41763         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41764
41765 2008-11-10  Bruno Haible  <bruno@clisp.org>
41766
41767         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41768         cross-compiling guesses also when the native compile gives no result.
41769
41770 2008-11-10  Bruno Haible  <bruno@clisp.org>
41771
41772         * lib/spawni.c (__spawni): Force variable into the stack.
41773
41774 2008-11-10  Bruno Haible  <bruno@clisp.org>
41775
41776         Add support for Haiku.
41777         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41778         glibc and BeOS, but also on Haiku.
41779         * lib/fpurge.c (fpurge): Likewise.
41780         * lib/freadable.c (freadable): Likewise.
41781         * lib/freadahead.c (freadahead): Likewise.
41782         * lib/freading.c (freading): Likewise.
41783         * lib/freadptr.c (freadptr): Likewise.
41784         * lib/freadseek.c (freadptrinc): Likewise.
41785         * lib/fseeko.c (rpl_fseeko): Likewise.
41786         * lib/fseterr.c (fseterr): Likewise.
41787         * lib/fwritable.c (fwritable): Likewise.
41788         * lib/fwriting.c (fwriting): Likewise.
41789         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41790
41791 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41792
41793         * lib/config.charset: Treat Haiku like BeOS.
41794
41795 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41796
41797         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41798         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41799
41800 2008-11-08  Bruno Haible  <bruno@clisp.org>
41801
41802         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41803         AC_CACHE_CHECK.
41804
41805 2008-11-08  Bruno Haible  <bruno@clisp.org>
41806
41807         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41808
41809 2008-11-08  Bruno Haible  <bruno@clisp.org>
41810
41811         * tests/test-select-fd.c: New file.
41812         * tests/test-select-in.sh: New file.
41813         * tests/test-select-out.sh: New file.
41814         * tests/test-select-stdin.c: New file.
41815         * modules/select-tests (Files): Add the new files.
41816         (Depends-on): Add gettimeofday.
41817         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41818         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41819         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41820
41821 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41822             Bruno Haible  <bruno@clisp.org>
41823
41824         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41825
41826 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41827
41828         * build-aux/pmccabe2html: Added support for C++ source files.
41829
41830 2008-11-05  Ben Pfaff  <blp@gnu.org>
41831
41832         Fix lib/close.c build on Windows.
41833         * modules/close (Files): Add lib/w32sock.h.
41834
41835 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41836
41837         Accept Bison's NEWS format.
41838         * build-aux/announce-gen (print_news_deltas): Tweak
41839         $re_prefix.
41840
41841 2008-11-04  Bruno Haible  <bruno@clisp.org>
41842
41843         * modules/random_r (Maintainer): Add glibc.
41844
41845 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41846
41847         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41848         by karl@freefriends.org (Karl Berry).
41849         * doc/alloca.texi: Likewise.
41850         * doc/c-ctype.texi: Likewise.
41851         * doc/c-strcase.texi: Likewise.
41852         * doc/c-strcaseeq.texi: Likewise.
41853         * doc/c-strcasestr.texi: Likewise.
41854         * doc/c-strstr.texi: Likewise.
41855         * doc/c-strtod.texi: Likewise.
41856         * doc/c-strtold.texi: Likewise.
41857         * doc/ctime.texi: Likewise.
41858         * doc/error.texi: Likewise.
41859         * doc/fdl.texi: Likewise.
41860         * doc/gcd.texi: Likewise.
41861         * doc/getdate.texi: Likewise.
41862         * doc/gnulib-intro.texi: Likewise.
41863         * doc/gnulib-tool.texi: Likewise.
41864         * doc/gnulib.texi: Likewise.
41865         * doc/inet_ntoa.texi: Likewise.
41866         * doc/maintain.texi: Likewise.
41867         * doc/make-stds.texi: Likewise.
41868         * doc/quote.texi: Likewise.
41869         * doc/regexprops-generic.texi: Likewise.
41870         * doc/standards.texi: Likewise.
41871         * doc/verify.texi: Likewise.
41872         * doc/visibility.texi: Likewise.
41873         * doc/gnulib.texi (GNU Free Documentation License): Include
41874         fdl-1.3.texi instead of fdl.texi.
41875
41876 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41877
41878         * doc/fdl-1.3.texi: New file, from
41879         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41880         * modules/fdl-1.3: Add.
41881         * MODULES.html.sh: Add fdl-1.3.
41882
41883 2008-11-03  Bruno Haible  <bruno@clisp.org>
41884
41885         Make determination of absolute name of header file work with AIX xlc.
41886         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41887         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41888         preprocessing.
41889         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41890         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41891
41892 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41893
41894         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41895         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41896         <ludo@gnu.org>.
41897
41898 2008-11-02  Bruno Haible  <bruno@clisp.org>
41899
41900         Mark 'strpbrk' obsolete.
41901         * modules/strpbrk (Status, Notice): New sections.
41902         * modules/strtok_r (Depends-on): Add strpbrk.
41903
41904 2008-11-02  Bruno Haible  <bruno@clisp.org>
41905
41906         Mark 'strdup' obsolete.
41907         * modules/strdup (Status, Notice): New sections.
41908         * modules/findprog (Depends-on): Add strdup.
41909         * modules/getaddrinfo (Depends-on): Likewise.
41910         * modules/localename (Depends-on): Likewise.
41911         * modules/relocatable-lib (Depends-on): Likewise.
41912         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41913         * modules/relocatable-prog (Depends-on): Likewise.
41914         * modules/trim (Depends-on): Likewise.
41915         * modules/unictype/gen-ctype (Depends-on): Likewise.
41916         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41917
41918 2008-11-02  Bruno Haible  <bruno@clisp.org>
41919
41920         Mark 'strcspn' obsolete.
41921         * modules/strcspn (Status, Notice): New sections.
41922
41923 2008-11-02  Bruno Haible  <bruno@clisp.org>
41924
41925         Mark 'rmdir' obsolete.
41926         * modules/rmdir (Status, Notice): New sections.
41927         * modules/clean-temp (Depends-on): Add rmdir.
41928         * modules/openat (Depends-on): Likewise.
41929
41930 2008-11-02  Bruno Haible  <bruno@clisp.org>
41931
41932         Mark 'raise' obsolete.
41933         * modules/raise (Status, Notice): New sections.
41934         (Include): Specify <signal.h>.
41935         * modules/stdio (Depends-on): Add raise.
41936         * modules/write (Depends-on): Likewise.
41937
41938 2008-11-02  Bruno Haible  <bruno@clisp.org>
41939
41940         Mark 'memset' obsolete.
41941         * modules/memset (Status, Notice): New sections.
41942
41943 2008-11-02  Bruno Haible  <bruno@clisp.org>
41944
41945         Mark 'memmove' obsolete.
41946         * modules/memmove (Status, Notice): New sections.
41947         * modules/argp (Depends-on): Add memmove.
41948         * modules/argz (Depends-on): Likewise.
41949         * modules/canonicalize (Depends-on): Likewise.
41950         * modules/canonicalize-lgpl (Depends-on): Likewise.
41951         * modules/fts (Depends-on): Likewise.
41952         * modules/getcwd (Depends-on): Likewise.
41953         * modules/human (Depends-on): Likewise.
41954         * modules/regex (Depends-on): Likewise.
41955         * modules/striconveh (Depends-on): Likewise.
41956         * modules/trim (Depends-on): Likewise.
41957         * modules/unistr/u8-move (Depends-on): Likewise.
41958         * modules/unistr/u16-move (Depends-on): Likewise.
41959         * modules/unistr/u32-move (Depends-on): Likewise.
41960
41961 2008-11-02  Bruno Haible  <bruno@clisp.org>
41962
41963         Mark 'memcpy' obsolete.
41964         * modules/memcpy (Status, Notice): New sections.
41965
41966 2008-11-02  Bruno Haible  <bruno@clisp.org>
41967
41968         Mark 'memcmp' obsolete.
41969         * modules/memcmp (Status, Notice): New sections.
41970         * modules/argmatch (Depends-on): Add memchr.
41971         * modules/backupfile (Depends-on): Likewise.
41972         * modules/c-strcasestr (Depends-on): Likewise.
41973         * modules/crypto/des (Depends-on): Likewise.
41974         * modules/csharpcomp (Depends-on): Likewise.
41975         * modules/fnmatch (Depends-on): Likewise.
41976         * modules/git-merge-changelog (Depends-on): Likewise.
41977         * modules/isnand (Depends-on): Likewise.
41978         * modules/isnand-nolibm (Depends-on): Likewise.
41979         * modules/isnanf (Depends-on): Likewise.
41980         * modules/isnanf-nolibm (Depends-on): Likewise.
41981         * modules/isnanl (Depends-on): Likewise.
41982         * modules/isnanl-nolibm (Depends-on): Likewise.
41983         * modules/mbchar (Depends-on): Likewise.
41984         * modules/memcoll (Depends-on): Likewise.
41985         * modules/quotearg (Depends-on): Likewise.
41986         * modules/regex (Depends-on): Likewise.
41987         * modules/relocatable-prog (Depends-on): Likewise.
41988         * modules/same (Depends-on): Likewise.
41989         * modules/signbit (Depends-on): Likewise.
41990         * modules/strcasestr-simple (Depends-on): Likewise.
41991         * modules/unictype/gen-ctype (Depends-on): Likewise.
41992         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41993         * modules/uniname/uniname (Depends-on): Likewise.
41994         * modules/unistr/u8-cmp (Depends-on): Likewise.
41995
41996 2008-11-02  Bruno Haible  <bruno@clisp.org>
41997
41998         Mark 'memchr' obsolete.
41999         * modules/memchr (Status, Notice): New sections.
42000         * modules/argp (Depends-on): Add memchr.
42001         * modules/base64 (Depends-on): Likewise.
42002         * modules/c-strcasestr (Depends-on): Likewise.
42003         * modules/chdir-long (Depends-on): Likewise.
42004         * modules/fnmatch (Depends-on): Likewise.
42005         * modules/getsubopt (Depends-on): Likewise.
42006         * modules/git-merge-changelog (Depends-on): Likewise.
42007         * modules/glob (Depends-on): Likewise.
42008         * modules/strcasestr-simple (Depends-on): Likewise.
42009         * modules/strnlen (Depends-on): Likewise.
42010
42011 2008-11-02  Bruno Haible  <bruno@clisp.org>
42012
42013         Mark 'atexit' obsolete.
42014         * modules/atexit (Status, Notice): New sections.
42015         * modules/chdir-long (Depends-on): Add atexit.
42016         * modules/wait-process (Depends-on): Likewise.
42017
42018 2008-11-02  Bruno Haible  <bruno@clisp.org>
42019
42020         * gnulib-tool: New option --with-obsolete.
42021         (func_usage): Document it.
42022         (func_modules_transitive_closure): Drop obsolete dependencies if
42023         incobsolete is not true.
42024         (func_import): Read and save the incobsolete variable to the cache.
42025
42026 2008-11-02  Bruno Haible  <bruno@clisp.org>
42027
42028         * modules/TEMPLATE-EXTENDED: New field 'Status'.
42029         * gnulib-tool: New option --extract-status.
42030         (func_usage): Document it.
42031         (sed_extract_prog): Recognize it.
42032         (func_get_status): New function.
42033
42034 2008-10-30  Simon Josefsson  <simon@josefsson.org>
42035
42036         * modules/sockets (License): Change from LGPL to LGPLv2+.
42037
42038 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42039
42040         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
42041
42042 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42043
42044         * MODULES.html.sh (Support for systems lacking POSIX:2001):
42045         Mention times and sys_times.
42046         * modules/sys_times, modules/sys_times-tests: New modules.
42047         * modules/times, modules/times-tests: Likewise
42048         * m4/sys_times_h.m4: New file.
42049         * lib/sys_times.in.h: Likewise
42050         * lib/times.c: Likewise.
42051         * tests/test-sys_times.c: Likewise.
42052         * tests/test-times.c: Likewise.
42053         * doc/posix-headers/sys_times.texi: Update.
42054         * doc/posix-functions/times.texi: Update.
42055
42056 2008-10-28  Jim Meyering  <meyering@redhat.com>
42057
42058         * modules/tempname (Depends-on): Add lstat.
42059
42060         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
42061
42062 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42063
42064         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
42065         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
42066         using idiom used elsewhere in gnulib.
42067
42068 2008-10-27  Jim Meyering  <meyering@redhat.com>
42069
42070         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
42071
42072 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42073
42074         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
42075         TESTS_ENVIRONMENT, for shell scripts that needs to call built
42076         programs.
42077         * tests/test-argp-2.sh: Use $EXEEXT when needed.
42078
42079 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42080
42081         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
42082
42083 2008-10-27  Bruno Haible  <bruno@clisp.org>
42084
42085         * tests/test-lstat.c: Include <stdio.h>.
42086
42087 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42088
42089         * modules/lstat-tests: New module.
42090         * tests/test-lstat.c: New file.
42091
42092 2008-10-26  Jim Meyering  <meyering@redhat.com>
42093
42094         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
42095
42096 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42097             Bruno Haible  <bruno@clisp.org>
42098
42099         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
42100         * modules/configmake (Include): Add a note that the include must come
42101         after all system headers.
42102         * lib/javaversion.c: Include configmake.h after all other includes.
42103
42104 2008-10-26  Bruno Haible  <bruno@clisp.org>
42105
42106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
42107         HAVE_STRUCT_RANDOM_DATA to 1.
42108         (gl_STDLIB_H): Simplify.
42109
42110 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42111
42112         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
42113         substitute HAVE_STRUCT_RANDOM_DATA.
42114         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
42115         random_data.
42116         * modules/stdlib (Makefile.am): Substitute
42117         HAVE_STRUCT_RANDOM_DATA.
42118
42119 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42120
42121         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
42122         * doc/gnulib-intro.texi (Copyright): Likewise.
42123
42124 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42125
42126         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
42127         findings.
42128
42129 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
42130             Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/unistd.in.h: Include <winsock2.h>.
42133         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
42134         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
42135         Provide dummy declarations.
42136         (gethostname): Override.
42137         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
42138         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
42139         gl_PREREQ_SYS_H_WINSOCK2.
42140         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
42141         * doc/posix-functions/gethostname.texi: More details.
42142
42143 2008-10-25  Bruno Haible  <bruno@clisp.org>
42144
42145         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42146         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
42147         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
42148
42149         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
42150         here ...
42151         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
42152         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
42153         gl_UNISTD_H_DEFAULTS.
42154
42155 2008-10-25  Eric Blake  <ebb9@byu.net>
42156
42157         signbit: avoid spurious compiler failure
42158         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
42159         declarations inside function.
42160
42161 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42162             Bruno Haible  <bruno@clisp.org>
42163
42164         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
42165         * modules/random_r (Depends-on): Add stdint.
42166
42167 2008-10-24  Bruno Haible  <bruno@clisp.org>
42168
42169         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
42170         Eggert.
42171         * modules/strerror (License): Likewise.
42172
42173 2008-10-24  Jim Meyering  <meyering@redhat.com>
42174
42175         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
42176         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
42177
42178 2008-10-24  Eric Blake  <ebb9@byu.net>
42179
42180         getgroups: fix compilation when getgroups is available
42181         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
42182         but with <config.h> override of getgroups disabled.
42183
42184 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42185
42186         * doc/gnulib.texi (Header files): Add note about C++ problems.
42187         Explained by Bruno Haible <bruno@clisp.org>.
42188
42189 2008-10-23  Bruno Haible  <bruno@clisp.org>
42190
42191         Define a dummy SA_NODEFER macro on Interix.
42192         * lib/signal.in.h (SA_NODEFER): Define fallback.
42193         Reported by Aleksey Cheusov <cheusov@tut.by> via
42194         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
42195
42196 2008-10-23  Bruno Haible  <bruno@clisp.org>
42197
42198         * modules/freadahead (License): Change to LGPLv2+.
42199         Suggested by Simon Josefsson.
42200
42201 2008-10-23  Jim Meyering  <meyering@redhat.com>
42202
42203         random_r: new module
42204         * modules/random_r: New file.
42205         * m4/random_r.m4: New file.
42206         * lib/random_r.c: New file, from glibc.
42207         * modules/random_r-tests: New file.
42208         * tests/test-random_r.c: New file.
42209         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
42210          Declare.
42211         (RAND_MAX): Define.
42212         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
42213         * modules/stdlib: Substitute them, too.
42214         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
42215         * doc/glibc-functions/initstate_r.texi: Mention the new module.
42216         * doc/glibc-functions/random_r.texi: Likewise.
42217         * doc/glibc-functions/setstate_r.texi: Likewise.
42218         * doc/glibc-functions/srandom_r.texi: Likewise.
42219         * config/srclist.txt: Mention it.
42220
42221 2008-10-23  David Lutterkort  <lutter@redhat.com>
42222
42223         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
42224         link requirement
42225
42226 2008-10-23  Jim Meyering  <meyering@redhat.com>
42227
42228         selinux-h: mark parameters of stub functions as intentionally unused
42229         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
42230         * lib/se-context.in.h: Likewise.
42231
42232 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42233
42234         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
42235
42236 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42237
42238         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
42239
42240 2008-10-22  Eric Blake  <ebb9@byu.net>
42241
42242         glthread/thread: avoid compiler warning
42243         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
42244         Add unreachable abort to silence compiler.
42245
42246 2008-10-22  Eric Blake  <ebb9@byu.net>
42247
42248         netdb: also supply struct addrinfo for cygwin 1.5.x
42249         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
42250         older cygwin.
42251         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
42252         cygwin.
42253         * doc/posix-headers/netdb.texi (netdb.h): Document this.
42254
42255 2008-10-22  Bruno Haible  <bruno@clisp.org>
42256
42257         * users.txt: Update entry about pspp.
42258
42259 2008-10-21  Bruno Haible  <bruno@clisp.org>
42260
42261         Simplification.
42262         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
42263         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
42264
42265         Simplification.
42266         * lib/ioctl.c (ioctl): Don't undefine.
42267         * lib/socket.c (socket): Don't undefine.
42268
42269         Remove unused module indicator macros.
42270         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
42271         GNULIB_$1 as a C macro.
42272
42273         * doc/posix-functions/close.texi: Undo last change.
42274         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
42275         Windows platforms.
42276
42277 2008-10-21  Bruno Haible  <bruno@clisp.org>
42278
42279         Add gethostname() declaration to <unistd.h>.
42280         * lib/unistd.in.h (gethostname): New declaration.
42281         * lib/gethostname.c: Include <unistd.h>.
42282         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
42283         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
42284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
42285         and HAVE_GETHOSTNAME.
42286         * modules/gethostname (Depends-on): Add unistd.
42287         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42288         (Include): Specify <unistd.h>.
42289         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
42290         HAVE_GETHOSTNAME.
42291         * tests/test-gethostname.c: Include <unistd.h> first.
42292
42293 2008-10-21  Bruno Haible  <bruno@clisp.org>
42294
42295         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
42296         * modules/select-tests (Depends-on): Likewise.
42297         Reported by Simon Josefsson.
42298
42299 2008-10-21  Simon Josefsson  <simon@josefsson.org>
42300
42301         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
42302         * lib/accept.c: New file, based on winsock.c.
42303         * lib/bind.c: New file, based on winsock.c.
42304         * lib/connect.c: New file, based on winsock.c.
42305         * lib/getpeername.c: New file, based on winsock.c.
42306         * lib/getsockname.c: New file, based on winsock.c.
42307         * lib/getsockopt.c: New file, based on winsock.c.
42308         * lib/ioctl.c: New file, based on winsock.c.
42309         * lib/listen.c: New file, based on winsock.c.
42310         * lib/recv.c: New file, based on winsock.c.
42311         * lib/recvfrom.c: New file, based on winsock.c.
42312         * lib/send.c: New file, based on winsock.c.
42313         * lib/sendto.c: New file, based on winsock.c.
42314         * lib/setsockopt.c: New file, based on winsock.c.
42315         * lib/shutdown.c: New file, based on winsock.c.
42316         * lib/socket.c: New file, based on winsock.c.
42317         * lib/w32sock.h: New file, based on winsock.c.
42318         * lib/winsock.c: Remove file.
42319         * modules/accept: Likewise.
42320         * modules/bind: Likewise.
42321         * modules/connect: Likewise.
42322         * modules/getpeername: Likewise.
42323         * modules/getsockname: Likewise.
42324         * modules/getsockopt: Likewise.
42325         * modules/ioctl: Likewise.
42326         * modules/listen: Likewise.
42327         * modules/recv: Likewise.
42328         * modules/recvfrom: Likewise.
42329         * modules/send: Likewise.
42330         * modules/sendto: Likewise.
42331         * modules/setsockopt: Likewise.
42332         * modules/shutdown: Likewise.
42333         * modules/socket: Use socket.c instead of winsock.c.
42334         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
42335         * doc/posix-functions/accept.texi: Doc fix.
42336         * doc/posix-functions/bind.texi: Doc fix.
42337         * doc/posix-functions/close.texi: Doc fix.
42338         * doc/posix-functions/connect.texi: Doc fix.
42339         * doc/posix-functions/getpeername.texi: Doc fix.
42340         * doc/posix-functions/getsockname.texi: Doc fix.
42341         * doc/posix-functions/getsockopt.texi: Doc fix.
42342         * doc/posix-functions/ioctl.texi: Doc fix.
42343         * doc/posix-functions/listen.texi: Doc fix.
42344         * doc/posix-functions/recv.texi: Doc fix.
42345         * doc/posix-functions/recvfrom.texi: Doc fix.
42346         * doc/posix-functions/send.texi: Doc fix.
42347         * doc/posix-functions/sendto.texi: Doc fix.
42348         * doc/posix-functions/setsockopt.texi: Doc fix.
42349         * doc/posix-functions/shutdown.texi: Doc fix.
42350         * doc/posix-functions/socket.texi: Doc fix.
42351
42352 2008-10-20  Bruno Haible  <bruno@clisp.org>
42353
42354         Take into account the role of SIGABRT_COMPAT on Windows 2008.
42355         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
42356         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
42357         as an alias for SIGABRT.
42358         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
42359         (sigaction): Map it to SIGABRT.
42360         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
42361
42362 2008-10-20  Bruno Haible  <bruno@clisp.org>
42363
42364         * lib/fts.c: Don't include lstat.h.
42365         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
42366
42367         Move the lstat() declaration to <sys/stat.h>.
42368         * lib/lstat.h: Remove file.
42369         * lib/sys_stat.in.h: Add special invocation convention.
42370         (lstat): New declaration.
42371         * lib/lstat.c (orig_lstat): New function.
42372         (rpl_lstat): Use orig_lstat instead of lstat.
42373         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
42374         AC_C_INLINE. Set REPLACE_LSTAT.
42375         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
42376         and REPLACE_LSTAT.
42377         * modules/lstat (Files): Remove lib/lstat.h.
42378         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42379         (Include): Specify <sys/stat.h> instead of lstat.h.
42380         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
42381         REPLACE_LSTAT.
42382         * NEWS: Mention the change.
42383
42384 2008-10-20  Bruno Haible  <bruno@clisp.org>
42385
42386         * modules/posix_spawn-tests: New file.
42387         * tests/test-posix_spawn3.c: New file.
42388
42389 2008-10-20  Bruno Haible  <bruno@clisp.org>
42390
42391         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
42392         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42393         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
42394         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42395         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
42396
42397 2008-10-20  Bruno Haible  <bruno@clisp.org>
42398
42399         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
42400         of posix_spawn on AIX 5.3.
42401
42402 2008-10-20  Bruno Haible  <bruno@clisp.org>
42403
42404         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
42405
42406 2008-10-20  Bruno Haible  <bruno@clisp.org>
42407
42408         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
42409         of AC_LANG_PROGRAM.
42410
42411 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42412
42413         * lib/netdb.in.h: Don't define GNU specific constants until they
42414         are supported or needed.  Reported by Bruno Haible
42415         <bruno@clisp.org>.
42416
42417 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42418
42419         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
42420
42421 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42422
42423         * lib/getaddrinfo.h: Remove file.
42424         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
42425         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
42426         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
42427         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
42428         * modules/netdb: Substitute GNULIB_GETADDRINFO.
42429         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
42430         * tests/test-getaddrinfo.c: Likewise.
42431         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
42432         * NEWS: Mention change.
42433
42434 2008-10-19  Bruno Haible  <bruno@clisp.org>
42435
42436         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
42437
42438 2008-10-19  Bruno Haible  <bruno@clisp.org>
42439
42440         * lib/wait-process.c: Include simply <sys/wait.h>.
42441         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
42442         WIFSTOPPED): Remove fallback definitions.
42443         * modules/wait-process (Depends-on): Add sys_wait.
42444
42445         New module 'sys_wait'.
42446         * modules/sys_wait: New file.
42447         * lib/sys_wait.in.h: New file, partially copied from
42448         lib/wait-process.c.
42449         * m4/sys_wait_h.m4: New file.
42450         * doc/posix-headers/sys_wait.texi: Mention the new module.
42451
42452 2008-10-19  Bruno Haible  <bruno@clisp.org>
42453
42454         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
42455
42456 2008-10-19  Bruno Haible  <bruno@clisp.org>
42457
42458         Assume that waitpid() fills an 'int' status, not a 'union wait'.
42459         * lib/wait-process.c (WAIT_T): Remove type.
42460         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
42461         (wait_subprocess): Update.
42462
42463 2008-10-19  Bruno Haible  <bruno@clisp.org>
42464
42465         New module 'atoll'.
42466         * modules/atoll: New file.
42467         * lib/stdlib.in.h (atoll): New declaration.
42468         * lib/atoll.c: New file, from glibc with modifications.
42469         * m4/atoll.m4: New file.
42470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
42471         HAVE_ATOLL.
42472         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
42473         * doc/posix-functions/atoll.texi: Mention the new module.
42474
42475 2008-10-19  Bruno Haible  <bruno@clisp.org>
42476
42477         Add strtoull() declaration to <stdlib.h>.
42478         * lib/stdlib.in.h (strtoull): New declaration.
42479         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42480         Set HAVE_STRTOULL.
42481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
42482         HAVE_STRTOULL.
42483         * modules/strtoull (Depends-on): Add stdlib.
42484         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42485         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
42486         HAVE_STRTOULL.
42487
42488 2008-10-19  Bruno Haible  <bruno@clisp.org>
42489
42490         Add strtoll() declaration to <stdlib.h>.
42491         * lib/stdlib.in.h (strtoll): New declaration.
42492         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42493         Set HAVE_STRTOLL.
42494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
42495         HAVE_STRTOLL.
42496         * modules/strtoll (Depends-on): Add stdlib.
42497         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42498         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
42499
42500 2008-10-19  Bruno Haible  <bruno@clisp.org>
42501
42502         * modules/bcopy (Depends-on): Add strings.
42503         (Include): Specify <strings.h>.
42504
42505 2008-10-19  Bruno Haible  <bruno@clisp.org>
42506
42507         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
42508
42509 2008-10-19  Bruno Haible  <bruno@clisp.org>
42510
42511         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42512         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42513         mingw.
42514
42515 2008-10-19  Bruno Haible  <bruno@clisp.org>
42516
42517         * lib/atanl.c: Don't include isnanl.h.
42518         * lib/cosl.c: Likewise.
42519         * lib/ldexpl.c: Likewise.
42520         * lib/logl.c: Likewise.
42521         * lib/sinl.c: Likewise.
42522         * lib/sqrtl.c: Likewise.
42523         * lib/tanl.c: Likewise.
42524
42525         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42526         * lib/isnanf.h: Remove file.
42527         * lib/isnand.h: Remove file.
42528         * lib/isnanl.h: Remove file.
42529         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42530         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42531         macros.
42532         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42533         HAVE_ISNANF, don't define it as a C macro.
42534         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42535         HAVE_ISNAND, don't define it as a C macro.
42536         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42537         HAVE_ISNANL, don't define it as a C macro.
42538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42539         HAVE_ISNAN[FDL].
42540         * modules/isnanf (Files): Remove lib/isnanf.h.
42541         (Depends-on): Add math.
42542         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42543         (Include): Specify <math.h> instead of isnanf.h.
42544         * modules/isnand (Files): Remove lib/isnand.h.
42545         (Depends-on): Add math.
42546         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42547         (Include): Specify <math.h> instead of isnand.h.
42548         * modules/isnanl (Files): Remove lib/isnanl.h.
42549         (Depends-on): Add math.
42550         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42551         (Include): Specify <math.h> instead of isnanl.h.
42552         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42553         HAVE_ISNAN[FDL].
42554         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42555         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42556         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42557         * NEWS: Mention the change.
42558
42559 2008-10-18  Bruno Haible  <bruno@clisp.org>
42560
42561         Add getusershell(), setusershell(), endusershell() declarations to
42562         <unistd.h>.
42563         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42564         declarations.
42565         * lib/getusershell.c: Include unistd.h.
42566         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42567         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42568         HAVE_GETUSERSHELL.
42569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42570         and HAVE_GETUSERSHELL.
42571         * modules/getusershell (Depends-on): Add unistd, extensions.
42572         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42573         (Include): Specify <unistd.h>.
42574         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42575         HAVE_GETUSERSHELL.
42576
42577 2008-10-18  Bruno Haible  <bruno@clisp.org>
42578
42579         Add a getloadavg() declaration to <stdlib.h>.
42580         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42581         getloadavg declaration.
42582         (getloadavg): New declaration.
42583         * lib/getloadavg.c: Include <stdlib.h> first.
42584         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42585         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42586         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42588         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42589         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42590         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42591         (Include): Specify <stdlib.h>.
42592         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42593         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42594
42595 2008-10-18  Bruno Haible  <bruno@clisp.org>
42596
42597         * lib/dirchownmod.c: Don't include lchmod.h.
42598
42599         Move the lchmod() declaration to <sys/stat.h>.
42600         * lib/lchmod.h: Remove file.
42601         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42602         (lchmod): New declaration, moved here from lib/lchown.h.
42603         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42604         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42605         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42606         and HAVE_LCHMOD.
42607         * modules/lchmod (Files): Remove lib/lchmod.h.
42608         (Depends-on): Add sys_stat, extensions.
42609         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42610         (Include): Specify <sys/stat.h> instead of lchmod.h.
42611         * modules/sys_stat (Depends-on): Add link-warning.
42612         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42613         definition of GL_LINK_WARNING.
42614         * NEWS: Mention the change.
42615
42616 2008-10-18  Bruno Haible  <bruno@clisp.org>
42617
42618         * lib/fchdir.c: Don't include dirfd.h.
42619         * lib/fts.c: Likewise.
42620         * lib/getcwd.c: Likewise.
42621         * lib/glob.c: Likewise.
42622
42623         Move the dirfd() declaration to <dirent.h>.
42624         * lib/dirfd.h: Remove file.
42625         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42626         (dirfd): New declaration.
42627         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42628         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42629         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42630         HAVE_DECL_DIRFD.
42631         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42632         HAVE_DECL_DIRFD.
42633         * modules/dirfd (Files): Remove lib/dirfd.h.
42634         (Depends-on): Add dirent, extensions.
42635         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42636         (Include): Specify <dirent.h> instead of dirfd.h.
42637         * modules/dirent (Depends-on): Add link-warning.
42638         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42639         definition of GL_LINK_WARNING.
42640         * NEWS: Mention the change.
42641
42642 2008-10-18  Bruno Haible  <bruno@clisp.org>
42643
42644         Move the euidaccess() declaration to <unistd.h>.
42645         * lib/euidaccess.h: Remove file.
42646         * lib/unistd.in.h (euidaccess): New declaration.
42647         * lib/euidaccess.c: Don't include euidaccess.h.
42648         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42649         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42651         and HAVE_EUIDACCESS.
42652         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42653         (Depends-on): Add unistd.
42654         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42655         (Include): Specify <unistd.h> instead of euidaccess.h.
42656         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42657         HAVE_EUIDACCESS.
42658         * NEWS: Mention the change.
42659
42660 2008-10-18  Bruno Haible  <bruno@clisp.org>
42661
42662         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42663
42664         Move the getdomainname() declaration to <unistd.h>.
42665         * lib/getdomainname.h: Remove file.
42666         * lib/unistd.in.h (getdomainname): New declaration.
42667         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42668         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42669         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42670         HAVE_GETDOMAINNAME.
42671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42672         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42673         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42674         (Depends-on): Add unistd, extensions.
42675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42676         (Includes): Specify <unistd.h> instead of getdomainname.h.
42677         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42678         HAVE_GETDOMAINNAME.
42679         * NEWS: Mention the change.
42680
42681 2008-10-18  Bruno Haible  <bruno@clisp.org>
42682
42683         * modules/dirent: New file.
42684         * m4/dirent_h.m4: New file.
42685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42686         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42687         * modules/fchdir (Files): Remove lib/dirent.in.h.
42688         (Depends-on): Add dirent.
42689         (Makefile.am): Move rules to modules/dirent.
42690         * doc/posix-headers/dirent.texi: Mention the new module.
42691
42692 2008-10-18  Bruno Haible  <bruno@clisp.org>
42693
42694         Avoid -Wunused-parameter warnings in public gnulib header files.
42695         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42696         macro.
42697         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42698
42699 2008-10-18  Bruno Haible  <bruno@clisp.org>
42700
42701         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42702         * doc/glibc-functions/error.texi: Mention the module 'error'.
42703         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42704         * doc/glibc-functions/getdomainname.texi: Mention the module
42705         'getdomainname'.
42706         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42707         * doc/glibc-functions/getpagesize.texi: Mention the module
42708         'getpagesize'.
42709         * doc/glibc-functions/getusershell.texi: Mention the module
42710         'getusershell'.
42711         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42712         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42713         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42714         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42715         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42716         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42717         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42718         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42719         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42720         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42721         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42722         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42723         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42724         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42725
42726 2008-10-17  Bruno Haible  <bruno@clisp.org>
42727
42728         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42729         HP-UX and IRIX, use -0.0L.
42730         * tests/test-ceill.c (minus_zero): Likewise.
42731         * tests/test-floorl.c (minus_zero): Likewise.
42732         * tests/test-frexpl.c (minus_zero): Likewise.
42733         * tests/test-isnan.c (minus_zerol): Likewise.
42734         * tests/test-isnanl.h (minus_zero): Likewise.
42735         * tests/test-ldexpl.c (minus_zero): Likewise.
42736         * tests/test-roundl.c (minus_zero): Likewise.
42737         * tests/test-signbit.c (minus_zerol): Likewise.
42738         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42739         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42740         * tests/test-truncl.c (minus_zero): Likewise.
42741         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42742         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42743         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42744         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42745
42746 2008-10-17  Bruno Haible  <bruno@clisp.org>
42747
42748         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42749         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42750         that it gets activated only for gcc >= 3.0.
42751         * lib/dirent.in.h: Likewise.
42752         * lib/errno.in.h: Likewise.
42753         * lib/fcntl.in.h: Likewise.
42754         * lib/float.in.h: Likewise.
42755         * lib/iconv.in.h: Likewise.
42756         * lib/inttypes.in.h: Likewise.
42757         * lib/locale.in.h: Likewise.
42758         * lib/math.in.h: Likewise.
42759         * lib/netdb.in.h: Likewise.
42760         * lib/netinet_in.in.h: Likewise.
42761         * lib/search.in.h: Likewise.
42762         * lib/signal.in.h: Likewise.
42763         * lib/spawn.in.h: Likewise.
42764         * lib/stdarg.in.h: Likewise.
42765         * lib/stdint.in.h: Likewise.
42766         * lib/stdio.in.h: Likewise.
42767         * lib/stdlib.in.h: Likewise.
42768         * lib/string.in.h: Likewise.
42769         * lib/strings.in.h: Likewise.
42770         * lib/sys_file.in.h: Likewise.
42771         * lib/sys_ioctl.in.h: Likewise.
42772         * lib/sys_select.in.h: Likewise.
42773         * lib/sys_socket.in.h: Likewise.
42774         * lib/sys_stat.in.h: Likewise.
42775         * lib/sys_time.in.h: Likewise.
42776         * lib/sysexits.in.h: Likewise.
42777         * lib/time.in.h: Likewise.
42778         * lib/unistd.in.h: Likewise.
42779         * lib/wchar.in.h: Likewise.
42780         * lib/wctype.in.h: Likewise.
42781         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42782
42783 2008-10-17  Jim Meyering  <meyering@redhat.com>
42784
42785         ignore-value: don't depend on inline module
42786         * modules/ignore-value (Depends-on): Remove 'inline'.
42787         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42788         Suggestion from Bruno Haible.
42789
42790 2008-10-17  Bruno Haible  <bruno@clisp.org>
42791
42792         New implementation of condition variables for Win32.
42793         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42794         (gl_linked_waitqueue_t): New type.
42795         (gl_cond_t): Use it.
42796         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42797         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42798         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42799         (glthread_cond_init_func, glthread_cond_wait_func,
42800         glthread_cond_timedwait_func, glthread_cond_signal_func,
42801         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42802         Reimplemented on the basis of gl_linked_waitqueue_t.
42803         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42804         gl_waitqueue_t.
42805         (gl_rwlock_t): Update.
42806         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42807
42808 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42809
42810         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42811         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42812
42813 2008-10-17  Jim Meyering  <meyering@redhat.com>
42814
42815         ignore-value: new module
42816         * modules/ignore-value: New file.
42817         * lib/ignore-value.h: New file.
42818         * MODULES.html.sh (Compiler warning management): New section,
42819         just for this module.  More to come.
42820
42821 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42822
42823         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42824         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42825         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42826
42827 2008-10-16  Jim Meyering  <meyering@redhat.com>
42828
42829         openat-die.c: avoid 'no previous prototype' warning
42830         * lib/openat-die.c: Include "openat.h".
42831         Reported by Reuben Thomas <rrt@sc3d.org>.
42832
42833 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42834
42835         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42836         * lib/netdb.in.h: Fix typo.
42837         Reported by Bruno Haible  <bruno@clisp.org>
42838
42839         * lib/netdb.in.h: Include sys/socket.h for platforms without
42840         netdb.h, to get structures like hostent on MinGW.
42841         * modules/netdb (Depends-on): Add sys_socket.
42842
42843 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42844
42845         * modules/netdb, modules/netdb-tests: New file.
42846         * m4/netdb_h.m4: New file.
42847         * lib/netdb.in.h: Add, currently just an empty file pending
42848         definitions.
42849         * tests/test-netdb.c: New file.
42850         * doc/posix-headers/netdb.texi: Mention that we replace it if
42851         needed.
42852         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42853         netdb.
42854
42855 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42856
42857         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42858         with code.
42859
42860 2008-10-13  Bruno Haible  <bruno@clisp.org>
42861
42862         * lib/glthread/cond.c (glthread_cond_wait_func,
42863         glthread_cond_timedwait_func): Add a comment.
42864
42865 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42866
42867         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42868         * tests/test-select.c: Likewise,
42869
42870 2008-10-13  Bruno Haible  <bruno@clisp.org>
42871
42872         * lib/glthread/cond.c (glthread_cond_wait_func,
42873         glthread_cond_timedwait_func): Fix variable name.
42874         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42875
42876 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42877
42878         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42879         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42880         struct sockaddr.sa_len.
42881         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42882
42883 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42884
42885         * build-aux/pmccabe2html: Add css and css_url parameters.
42886
42887 2008-10-12  Bruno Haible  <bruno@clisp.org>
42888
42889         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42890         calling aclx_get.
42891         Reported by Rainer Tammer <tammer@tammer.net>.
42892
42893 2008-10-12  Bruno Haible  <bruno@clisp.org>
42894
42895         Use msvcrt aware primitives for creation/termination of Win32 threads.
42896         * lib/glthread/thread.c: Include <process.h>.
42897         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42898         (wrapper_func): Update signature.
42899         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42900
42901 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42902             Bruno Haible  <bruno@clisp.org>
42903
42904         Provide a Win32 implementation of the 'cond' module.
42905         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42906         * lib/glthread/cond.c (glthread_cond_init_func,
42907         glthread_cond_wait_func, glthread_cond_timedwait_func,
42908         glthread_cond_signal_func, glthread_cond_broadcast_func,
42909         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42910         * modules/cond (Dependencies): Add gettimeofday.
42911
42912 2008-10-11  Bruno Haible  <bruno@clisp.org>
42913
42914         Make sleep work on older versions of mingw.
42915         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42916         only whether it exists.
42917         * doc/posix-functions/sleep.texi: Mention the problem with older
42918         versions of mingw.
42919
42920 2008-10-11  Bruno Haible  <bruno@clisp.org>
42921
42922         New module 'shutdown'.
42923         * modules/shutdown: New file.
42924         * lib/sys_socket.in.h (shutdown): New declaration.
42925         * lib/winsock.c (shutdown): New function.
42926         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42927         GNULIB_SHUTDOWN.
42928         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42929         * doc/posix-functions/shutdown.texi: Document the new module.
42930
42931 2008-10-11  Jim Meyering  <meyering@redhat.com>
42932
42933         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42934
42935 2008-10-11  Bruno Haible  <bruno@clisp.org>
42936
42937         New module 'fclose'.
42938         * modules/fclose: New file.
42939         * lib/stdio.in.h (fclose): New declaration.
42940         * lib/fclose.c: New file.
42941         * m4/fclose.m4: New file.
42942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42943         REPLACE_FCLOSE.
42944         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42945         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42946         REPLACE_FCLOSE.
42947         * modules/close (Depends-on): fclose.
42948         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42949
42950 2008-10-11  Bruno Haible  <bruno@clisp.org>
42951
42952         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42953         set errno and don't call _close.
42954
42955 2008-10-10  Bruno Haible  <bruno@clisp.org>
42956
42957         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42958         ACL, not afterwards. Fixes test failure on Cygwin.
42959
42960 2008-10-09  Ben Pfaff  <blp@gnu.org>
42961
42962         * build-aux/announce-gen: Fix gnulib version related part of usage
42963         message.  Die with a useful error message if no tarballs are
42964         found.
42965
42966 2008-10-10  Jim Meyering  <meyering@redhat.com>
42967
42968         bootstrap: use git's --depth=N option only if it's supported
42969         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42970         recognize the --depth option.  Reported by Pádraig Brady.
42971
42972 2008-10-09  Bruno Haible  <bruno@clisp.org>
42973
42974         New module 'ioctl'.
42975         * modules/ioctl: New file.
42976         * lib/sys_socket.in.h (ioctl): Remove declaration.
42977         * lib/winsock.c: Include <sys/ioctl.h>.
42978         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42979         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42980         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42981         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42982         * doc/posix-functions/ioctl.texi: Mention the new module.
42983
42984 2008-10-09  Bruno Haible  <bruno@clisp.org>
42985
42986         New module 'sys_ioctl'.
42987         * lib/sys_ioctl.in.h: New file.
42988         * m4/sys_ioctl_h.m4: New file.
42989         * modules/sys_ioctl: New file.
42990         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42991
42992 2008-10-09  Bruno Haible  <bruno@clisp.org>
42993
42994         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42995         * lib/winsock.c: Include <stdarg.h>.
42996         (rpl_ioctl): Change to second argument 'int' and then varargs.
42997
42998 2008-10-09  Bruno Haible  <bruno@clisp.org>
42999
43000         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
43001         when the sys_socket module is present and the system has <winsock2.h>.
43002
43003 2008-10-09  Bruno Haible  <bruno@clisp.org>
43004
43005         * doc/posix-functions/close.texi: Mention module 'close' instead of
43006         module 'sys_socket'.
43007
43008 2008-10-09  Bruno Haible  <bruno@clisp.org>
43009
43010         * doc/glibc-headers/sys_ioctl.texi: New file.
43011         * doc/gnulib.texi: Include it.
43012
43013 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43014             Bruno Haible  <bruno@clisp.org>
43015
43016         Combine the two replacements of 'close'.
43017         * lib/sys_socket.in.h (close): Define to a reminder to include
43018         <unistd.h>.
43019         (_gl_close_fd_maybe_socket): New declaration.
43020         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
43021         * lib/winsock.c (close): Remove undefinition.
43022         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
43023         needed for the gnulib module 'close'.
43024         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
43025         define to an error symbol or to a warning, if suitable.
43026         * lib/close.c: Include <sys/socket.h>.
43027         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
43028         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
43029         UNISTD_H_HAVE_WINSOCK2_H.
43030         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
43031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43032         UNISTD_H_HAVE_WINSOCK2_H.
43033         * modules/sys_socket (Files): Add m4/unistd_h.m4.
43034         (configure.ac): Set a module indicator.
43035         (Makefile.am): Substitute GNULIB_CLOSE.
43036         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
43037         * modules/poll-tests (Depends-on): Add close.
43038         * modules/select-tests (Depends-on): Likewise.
43039
43040 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43041             Bruno Haible  <bruno@clisp.org>
43042
43043         New module 'close'.
43044         * modules/close: New file.
43045         * lib/unistd.in.h (close): Move declaration out of the
43046         FCHDIR_REPLACEMENT scope.
43047         (_gl_unregister_fd): New declaration.
43048         * lib/close.c: New file.
43049         * lib/fchdir.c (rpl_close): Remove function.
43050         * m4/close.m4: New file.
43051         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43052         close.
43053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
43054         REPLACE_CLOSE.
43055         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
43056         REPLACE_CLOSE.
43057         * modules/fchdir (Depends-on): Add close.
43058
43059 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43060             Bruno Haible  <bruno@clisp.org>
43061
43062         * lib/fcntl.in.h (open): Simplify conditionals.
43063         (_gl_register_fd): New declaration.
43064         * lib/fchdir.c (rpl_open): Remove function.
43065         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
43066         also.
43067         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
43068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43069         open.
43070
43071 2008-10-09  Jim Meyering  <meyering@redhat.com>
43072
43073         GNUmakefile: use the more name-space-friendly "_version"
43074         * top/GNUmakefile (_dummy): Update.
43075         (_version): Rename from "version".
43076
43077 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43078             Bruno Haible  <bruno@clisp.org>
43079
43080         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
43081         rpl_close.
43082         (_gl_register_fd): New function, extracted from rpl_open.
43083         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
43084         (rpl_open, rpl_opendir): Use _gl_register_fd.
43085
43086 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43087
43088         Fix organization of 'open' replacement.
43089         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
43090         (gl_FUNC_OPEN): Use it.
43091         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
43092
43093 2008-10-08  Bruno Haible  <bruno@clisp.org>
43094
43095         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
43096
43097 2008-10-08  Simon Josefsson  <simon@josefsson.org>
43098
43099         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
43100         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
43101         listen).
43102
43103 2008-10-08  Eric Blake  <ebb9@byu.net>
43104
43105         GNUmakefile: add 'make version' target
43106         * top/GNUmakefile (_curr-ver): Split version update rules...
43107         (version): ...into a target.
43108
43109 2008-10-07  Bruno Haible  <bruno@clisp.org>
43110
43111         Use a more portable replacement expression for -0.0L.
43112         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
43113         instead of -0.0L. Fix m4 quotation.
43114
43115         * tests/test-signbit.c: Include <float.h>.
43116         (minus_zero): New variable.
43117         (test_signbitl): Use minus_zero instead of -zero.
43118         * modules/signbit-tests (Depends-on): Add float.
43119
43120         * tests/test-ceill.c: Include <float.h>.
43121         (zero): Remove variable.
43122         (minus_zero): New variable.
43123         (main): Use minus_zero instead of -zero.
43124         * modules/ceill-tests (Depends-on): Add float.
43125
43126         * tests/test-floorl.c: Include <float.h>.
43127         (zero): Remove variable.
43128         (minus_zero): New variable.
43129         (main): Use minus_zero instead of -zero.
43130         * modules/floorl-tests (Depends-on): Add float.
43131
43132         * tests/test-roundl.c: Include <float.h>.
43133         (zero): Remove variable.
43134         (minus_zero): New variable.
43135         (main): Use minus_zero instead of -zero.
43136         * modules/roundl-tests (Depends-on): Add float.
43137
43138         * tests/test-truncl.c: Include <float.h>.
43139         (zero): Remove variable.
43140         (minus_zero): New variable.
43141         (main): Use minus_zero instead of -zero.
43142         * modules/truncl-tests (Depends-on): Add float.
43143
43144         * tests/test-frexpl.c (zero): Remove variable.
43145         (minus_zero): New variable.
43146         (main): Use minus_zero instead of -zero.
43147         * modules/frexpl-tests (Depends-on): Add float.
43148
43149         * tests/test-isnan.c (zerol): Remove variable.
43150         (minus_zerol): New variable.
43151         (test_long_double): Use minus_zerol instead of -zerol.
43152         * modules/isnan-tests (Depends-on): Add float.
43153
43154         * tests/test-isnanl.h (zero): Remove variable.
43155         (minus_zero): New variable.
43156         (main): Use minus_zero instead of -zero.
43157         * modules/isnanl-nolibm-tests (Depends-on): Add float.
43158         * modules/isnanl-tests (Depends-on): Add float.
43159
43160         * tests/test-ldexpl.c (zero): Remove variable.
43161         (minus_zero): New variable.
43162         (main): Use minus_zero instead of -zero.
43163         * modules/ldexpl-tests (Depends-on): Add float.
43164
43165         * tests/test-snprintf-posix.h (zerol): Remove variable.
43166         (minus_zerol): New variable.
43167         (test_function): Use minus_zerol instead of -zerol.
43168         * modules/snprintf-posix-tests (Depends-on): Add float.
43169         * modules/vsnprintf-posix-tests (Depends-on): Add float.
43170
43171         * tests/test-sprintf-posix.h (zerol): Remove variable.
43172         (minus_zerol): New variable.
43173         (test_function): Use minus_zerol instead of -zerol.
43174         * modules/sprintf-posix-tests (Depends-on): Add float.
43175         * modules/vsprintf-posix-tests (Depends-on): Add float.
43176
43177         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
43178         (minus_zerol): New variable.
43179         (test_function): Use minus_zerol instead of -zerol.
43180         * modules/vasnprintf-posix-tests (Depends-on): Add float.
43181
43182         * tests/test-vasprintf-posix.c (zerol): Remove variable.
43183         (minus_zerol): New variable.
43184         (test_function): Use minus_zerol instead of -zerol.
43185         * modules/vasprintf-posix-tests (Depends-on): Add float.
43186
43187 2008-10-07  Simon Josefsson  <simon@josefsson.org>
43188
43189         * MODULES.html.sh (Support for building documentation): Mention
43190         pmccabe2html.  Sort entries.
43191
43192         Add pmccabe2html module, from gnupdf.
43193         * build-aux/pmccabe.css: New file.
43194         * build-aux/pmccabe2html: New file.
43195         * m4/pmccabe2html.m4: New file.
43196         * modules/pmccabe2html: New file.
43197
43198 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
43199
43200         flock: new module
43201         * MODULES.html.sh: Add to list of modules.
43202         * lib/flock.c: flock implementation for Windows and Unix systems
43203         which have fcntl.
43204         * doc/glibc-functions/flock.texi: Update documentation.
43205         * lib/sys_file.in.h: <sys/file.h> header file.
43206         * m4/flock.m4: M4 macros.
43207         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
43208         * modules/flock: flock module.
43209         * modules/flock-tests: flock tests module.
43210         * modules/sys_file: sys/file.h module.
43211         * tests/test-flock.c: test suite for flock.
43212
43213 2008-10-06  Jim Meyering  <meyering@redhat.com>
43214
43215         bootstrap: check for LT_INIT more portably still ;-)
43216         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
43217         Spotted by Bruno Haible.
43218
43219 2008-10-06  Eric Blake  <ebb9@byu.net>
43220
43221         test-signbit: avoid tripping Irix cc bug on -0.0L
43222         * tests/test-signbit.c (minus_zerol): Delete, and replace with
43223         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
43224         entire testsuite consistent and avoids an Irix 6.2 bug.
43225
43226 2008-10-05  Bruno Haible  <bruno@clisp.org>
43227             Jim Meyering  <jim@meyering.net>
43228
43229         Add an option for ignoring EPIPE during close_stdout.
43230         * lib/closeout.h: Include <stdbool.h>.
43231         (close_stdout_set_ignore_EPIPE): New declaration.
43232         * lib/closeout.c: Include <stdbool.h>.
43233         (ignore_EPIPE): New variable.
43234         (close_stdout_set_ignore_EPIPE): New function.
43235         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
43236         * lib/close-stream.c (close_stream): Mention the possible EPIPE
43237         failure.
43238         * modules/closeout (Depends-on): Add stdbool.
43239
43240 2008-10-05  Bruno Haible  <bruno@clisp.org>
43241
43242         * modules/accept: New file.
43243         * modules/bind: New file.
43244         * modules/connect: New file.
43245         * modules/getpeername: New file.
43246         * modules/getsockname: New file.
43247         * modules/getsockopt: New file.
43248         * modules/listen: New file.
43249         * modules/recv: New file.
43250         * modules/recvfrom: New file.
43251         * modules/send: New file.
43252         * modules/sendto: New file.
43253         * modules/setsockopt: New file.
43254         * modules/socket: New file.
43255         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
43256         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43257         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43258         the particular module is requested. Add a link warning when the
43259         particular module is not requested.
43260         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
43261         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
43262         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
43263         the particular module is requested.
43264         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
43265         gl_SYS_SOCKET_H_DEFAULTS): New macros.
43266         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
43267         * modules/sys_socket (Depends-on): Add link-warning.
43268         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
43269         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
43270         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
43271         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
43272         GL_LINK_WARNING.
43273         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
43274         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
43275         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
43276         * doc/posix-functions/getpeername.texi: Mention the new module
43277         'getpeername'.
43278         * doc/posix-functions/getsockname.texi: Mention the new module
43279         'getsockname'.
43280         * doc/posix-functions/getsockopt.texi: Mention the new module
43281         'getsockopt'.
43282         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
43283         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
43284         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
43285         * doc/posix-functions/send.texi: Mention the new module 'send'.
43286         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
43287         * doc/posix-functions/setsockopt.texi: Mention the new module
43288         'setsockopt'.
43289         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
43290         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
43291         listen, connect, accept.
43292         * modules/select-tests (Depends-on): Likewise.
43293
43294 2008-10-05  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/winsock.c (strerror): Remove unused #undef.
43297         (rpl_close): Remove unused local variable.
43298
43299         * modules/sys_socket (Depends-on); Add errno.
43300
43301 2008-10-05  Bruno Haible  <bruno@clisp.org>
43302
43303         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
43304         (select): Add a link warning when the 'select' module is not used.
43305         * modules/sys_select (Depends-on): Add link-warning.
43306         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
43307         Suggested by Paolo Bonzini.
43308
43309 2008-10-05  Jim Meyering  <meyering@redhat.com>
43310
43311         bootstrap: check for LT_INIT more portably
43312         * build-aux/bootstrap: Avoid using grep -E, since it's not
43313         portable enough.  Suggestion from Bruno Haible.
43314
43315 2008-10-05  Bruno Haible  <bruno@clisp.org>
43316
43317         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
43318         as being fixed by gnulib.
43319
43320 2008-10-05  Bruno Haible  <bruno@clisp.org>
43321
43322         * modules/select-tests: New file, mostly copied from
43323         modules/sys_select-tests.
43324         * tests/test-select.c: New file, mostly copied from
43325         tests/test-sys_select.c.
43326         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
43327         * modules/sys_select-tests (Depends-on): Remove all dependencies.
43328         (Makefile.am): Remove test_sys_select_LDADD.
43329
43330         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
43331         to an undefined symbol, for an error message.
43332         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
43333         (gl_SYS_SELECT_H_DEFAULTS): New macro.
43334         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
43335         winsock-select.c here.
43336         * modules/sys_select (Files): Remove lib/winsock-select.c.
43337         (Depends-on): Remove alloca.
43338         (Makefile.am): Substitute GNULIB_SELECT.
43339         * modules/select: New file.
43340         * doc/posix-functions/select.texi: Update.
43341
43342 2008-10-05  Bruno Haible  <bruno@clisp.org>
43343
43344         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
43345         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
43346         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
43347         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
43348         getdtablesize.
43349         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
43350         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
43351
43352 2008-10-05  Bruno Haible  <bruno@clisp.org>
43353
43354         * modules/getdtablesize-tests: New file.
43355         * tests/test-getdtablesize.c: New file.
43356
43357         New module 'getdtablesize'.
43358         * lib/unistd.in.h (getdtablesize): New declaration.
43359         * lib/getdtablesize.c: New file.
43360         * m4/getdtablesize.m4: New file.
43361         * modules/getdtablesize: New file.
43362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43363         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
43364         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
43365         HAVE_GETDTABLESIZE.
43366         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
43367
43368 2008-10-05  Bruno Haible  <bruno@clisp.org>
43369
43370         * modules/sched (Makefile.am): Fix typo.
43371         Reported by Simon Josefsson.
43372
43373 2008-10-05  Jim Meyering  <meyering@redhat.com>
43374
43375         bootstrap: check for LT_INIT, too
43376         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
43377         are deprecated.  Suggestion from Ralf Wildenhues.
43378
43379 2008-10-05  Bruno Haible  <bruno@clisp.org>
43380
43381         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
43382         overriding them by ours.
43383         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
43384
43385 2008-10-05  Jim Meyering  <meyering@redhat.com>
43386
43387         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
43388         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
43389         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
43390
43391 2008-10-04  Bruno Haible  <bruno@clisp.org>
43392
43393         * modules/dup2 (License): Change to LGPLv2+.
43394         * modules/sleep (License): Likewise.
43395         * modules/perror (License): Likewise.
43396         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
43397         Blake.
43398         * modules/signal (License): Likewise.
43399         * modules/sigprocmask (License): Likewise.
43400         * modules/raise (License): Change to LGPLv2+, with approval by Jim
43401         Meyering.
43402
43403 2008-10-04  Bruno Haible  <bruno@clisp.org>
43404
43405         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
43406         Reported by Rainer Tammer <tammer@tammer.net>.
43407
43408 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
43409             Bruno Haible  <bruno@clisp.org>
43410
43411         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
43412         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
43413         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
43414
43415 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
43416
43417         filevercmp: new module
43418         * lib/filevercmp.h: New function filevercmp comparing version strings.
43419         * lib/filevercmp.c: Implementation of filevercmp function.
43420         * modules/filevercmp: Module metadata.
43421         * tests/test-filevercmp.c: Unit test for new module.
43422         * modules/filevercmp-tests: Unit test metadata.
43423         * MODULES.html.sh: Add filevercmp module.
43424
43425 2008-10-03  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/c-ctype.h: Add comment.
43428         Reported by Jim Meyering.
43429
43430 2008-10-02  Bruno Haible  <bruno@clisp.org>
43431
43432         * modules/posix_spawn-internal (Depends-on): Add 'open'.
43433
43434 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43435
43436         * build-aux/bootstrap: Allow renaming bootstrap, and change the
43437         name of bootstrap.conf accordingly.
43438
43439 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43440
43441         * build-aux/bootstrap: Install git-merge-changelog configuration
43442         items into .gitconfig if needed.
43443
43444 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43445
43446         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
43447         git repository, and initialize/update it accordingly.
43448
43449 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
43450
43451         * modules/fsync-tests: New file.
43452         * tests/test-fsync.c: New file.
43453
43454         New module 'fsync'.
43455         * lib/fsync.c: New file.
43456         * m4/fsync.m4: New file.
43457         * modules/fsync: New file.
43458         * lib/unistd.in.h (fsync): New declaration.
43459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
43460         GNULIB_FSYNC and HAVE_FSYNC.
43461         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
43462         * MODULES.html.sh (posix_functions): Add fsync.
43463         * doc/posix-functions/fsync.texi: Mention the new module.
43464
43465 2008-10-02  Jim Meyering  <meyering@redhat.com>
43466
43467         fts.c: sync with similar code from coreutils' remove.c
43468         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
43469         Guard also with "#if defined __linux__", since for now at least,
43470         this code is Linux-kernel-specific.
43471
43472 2008-10-02  Jim Meyering  <meyering@redhat.com>
43473
43474         fts: bug fixes
43475         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
43476         Include <sys/vfs.h>, not <sys/statfs.h>.
43477
43478         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
43479         Include <sys/vfs.h>, not <sys/statfs.h>.
43480
43481 2008-10-01  Bruno Haible  <bruno@clisp.org>
43482
43483         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
43484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
43485         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
43486         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
43487         * doc/posix-functions/posix_spawnp.texi: Likewise.
43488         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
43489         whether posix_spawn actually works.
43490         * m4/pipe.m4 (gl_PIPE): Likewise.
43491         * modules/execute (Files): Add m4/posix_spawn.m4.
43492         * modules/pipe (Files): Add m4/posix_spawn.m4.
43493         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
43494
43495 2008-10-01  Jim Meyering  <meyering@redhat.com>
43496
43497         remove trailing spaces
43498         * NEWS: Likewise.
43499         * lib/poll.c (poll): Likewise.
43500         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
43501         * lib/winsock.c (rpl_close): Likewise.
43502         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
43503         * modules/yield: Likewise.
43504         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
43505         * tests/test-sys_select.c (connect_to_socket): Likewise.
43506
43507         fts.c: adjust a new interface to be more generally useful
43508         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
43509         (fts_build): Adjust caller.
43510
43511 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43512
43513         * modules/cond-tests: New file.
43514         * tests/test-cond.c: New file.
43515
43516 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43517             Bruno Haible  <bruno@clisp.org>
43518
43519         * modules/cond (Dependencies): Add errno, time.
43520         * lib/glthread/cond.h: Include <time.h>.
43521         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43522         across platforms.
43523
43524 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43525             Bruno Haible  <bruno@clisp.org>
43526
43527         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43528
43529 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43530             Bruno Haible  <bruno@clisp.org>
43531
43532         * modules/tls-tests (Depends-on): Add thread, yield.
43533         (configure.ac): Remove all checks.
43534         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43535         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43536         gl_thread_self): Remove definitions. Include glthread/thread.h and
43537         glthread/yield.h instead.
43538         (test_tls): Pass an additional NULL argument to gl_thread_join.
43539
43540 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43541             Bruno Haible  <bruno@clisp.org>
43542
43543         * modules/lock-tests (Depends-on): Add thread, yield.
43544         (configure.ac): Remove all checks.
43545         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43546         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43547         gl_thread_self): Remove definitions. Include glthread/thread.h and
43548         glthread/yield.h instead.
43549         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43550         additional NULL argument to gl_thread_join.
43551
43552 2008-09-30  Bruno Haible  <bruno@clisp.org>
43553
43554         Fix the Win32 implementation of the 'thread' module.
43555         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43556         pointer type.
43557         (gl_thread_self): Invoke gl_thread_self_func.
43558         (gl_thread_self_func): New declaration.
43559         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43560         (do_init_self_key, init_self_key): New functions.
43561         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43562         Remove some fields.
43563         (running_threads, running_lock): Remove variables.
43564         (get_current_thread_handle): New function.
43565         (gl_thread_self_func, wrapper_func, glthread_create_func,
43566         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43567         simplified.
43568
43569 2008-09-30  Bruno Haible  <bruno@clisp.org>
43570
43571         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43572         files.
43573
43574 2008-09-30  Jim Meyering  <meyering@redhat.com>
43575
43576         fts.m4: correct the test for statfs.f_type
43577         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43578         when checking for statfs.f_type.
43579
43580 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43581
43582         tests: avoid some compiler warnings
43583         * tests/test-memchr.c (main): Pass NULL indirectly.
43584         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43585
43586 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43587
43588         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43589         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43590         exactly specified dayshifts.
43591         (dayshift): New rule.
43592         (rel): Add dayshift.
43593         (relative_time_table) [tomorrow, yesterday, today, now]:
43594         Use tDAY_SHIFT in place of tDAY_UNIT.
43595         * tests/test-getdate.c: Add tests for now-disallowed countable
43596         dayshifts, e.g., "4 yesterday ago".
43597
43598 2008-09-29  Bruno Haible  <bruno@clisp.org>
43599
43600         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43601         * tests/test-posix_spawn1.in.sh: Renamed from
43602         tests/test-posix_spawn.in.sh.
43603         * tests/test-posix_spawn2.c: New file.
43604         * tests/test-posix_spawn2.in.sh: New file.
43605         * modules/posix_spawnp-tests (Files): Update.
43606         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43607
43608 2008-09-29  Bruno Haible  <bruno@clisp.org>
43609
43610         Propagate effects of putenv/setenv/unsetenv to child processes.
43611         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43612         * lib/pipe.c (create_pipe): Likewise.
43613
43614 2008-09-29  Bruno Haible  <bruno@clisp.org>
43615
43616         Enable use of shell scripts as executables in mingw.
43617         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43618         run the program as a shell script.
43619         * lib/pipe.c (create_pipe): Likewise.
43620         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43621         resulting array.
43622
43623 2008-09-29  Eric Blake  <ebb9@byu.net>
43624
43625         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43626
43627 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43628
43629         * doc/posix-functions/accept.texi: Update mingw problems.
43630         * doc/posix-functions/bind.texi: Update mingw problems.
43631         * doc/posix-functions/close.texi: Update mingw problems.
43632         * doc/posix-functions/connect.texi: Update mingw problems.
43633         * doc/posix-functions/getpeername.texi: Update mingw problems.
43634         * doc/posix-functions/getsockname.texi: Update mingw problems.
43635         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43636         * doc/posix-functions/ioctl.texi: Update mingw problems.
43637         * doc/posix-functions/listen.texi: Update mingw problems.
43638         * doc/posix-functions/recv.texi: Update mingw problems.
43639         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43640         * doc/posix-functions/select.texi: Update mingw problems.
43641         * doc/posix-functions/send.texi: Update mingw problems.
43642         * doc/posix-functions/sendto.texi: Update mingw problems.
43643         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43644         * doc/posix-functions/socket.texi: Update mingw problems.
43645
43646 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43647             Bruno Haible  <bruno@clisp.org>
43648
43649         * lib/sys_select.in.h: Include sys/time.h.
43650         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43651         * modules/sys_select: Depend on sys_time.
43652         * tests/test-sys_select.c: Test that sys/select.h defines struct
43653         timeval fully.
43654
43655 2008-09-29  Bruno Haible  <bruno@clisp.org>
43656
43657         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43658         * lib/sys_select.in.h: Likewise.
43659
43660 2008-09-29  Bruno Haible  <bruno@clisp.org>
43661
43662         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43663
43664 2008-09-29  Bruno Haible  <bruno@clisp.org>
43665
43666         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43667         Set LIBSOCKET instead of augmenting LIBS.
43668         * modules/sockets (Link): New section.
43669         * modules/sockets-tests (test_sockets_LDADD): New variable.
43670         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43671         * modules/poll-tests (test_poll_LDADD): New variable.
43672         * NEWS: Document the change.
43673
43674 2008-09-29  Bruno Haible  <bruno@clisp.org>
43675
43676         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43677         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43678         ARPA_INET_H directly.
43679         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43680
43681 2008-09-28  Bruno Haible  <bruno@clisp.org>
43682
43683         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43684         from gl_HEADER_SYS_SOCKET.
43685         (gl_HEADER_SYS_SOCKET): Invoke it.
43686         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43687
43688 2008-09-28  Bruno Haible  <bruno@clisp.org>
43689
43690         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43691         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43692         Needed on OSF/1 4.0.
43693
43694 2008-09-28  Bruno Haible  <bruno@clisp.org>
43695
43696         Override open more carefully.
43697         * lib/open.c (orig_open): New function.
43698         (rpl_open): Use orig_open instead of open.
43699         * lib/fcntl.in.h: Add special invocation convention.
43700         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43701         (gl_FUNC_OPEN): Invoke it.
43702
43703         Override freopen more carefully.
43704         * lib/freopen.c (orig_freopen): New function.
43705         (rpl_freopen): Use orig_freopen instead of freopen.
43706         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43707         (gl_FUNC_FREOPEN): Invoke it.
43708
43709         Override fopen more carefully.
43710         * lib/fopen.c (orig_fopen): New function.
43711         (rpl_fopen): Use orig_fopen instead of fopen.
43712         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43713         (gl_FUNC_FOPEN): Invoke it.
43714         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43715
43716 2008-09-28  Bruno Haible  <bruno@clisp.org>
43717
43718         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43719         SIGPIPE.
43720
43721 2008-09-28  Bruno Haible  <bruno@clisp.org>
43722
43723         * tests/test-sigaction.c (handler, main): Disable the check whether
43724         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43725         glibc systems with LinuxThreads.
43726
43727 2008-09-28  Bruno Haible  <bruno@clisp.org>
43728
43729         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43730
43731         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43732         with AIX xlc.
43733         * lib/fcntl.in.h (open): Likewise.
43734         Reported by Rainer Tammer <tammer@tammer.net>.
43735
43736 2008-09-28  Bruno Haible  <bruno@clisp.org>
43737
43738         * modules/posix_spawnp-tests: New file.
43739         * tests/test-posix_spawn.c: New file.
43740         * tests/test-posix_spawn.in.sh: New file.
43741
43742         New module 'posix_spawnp'.
43743         * modules/posix_spawnp: New file.
43744         * lib/spawnp.c: New file, from GNU libc with modifications.
43745         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43746
43747         New module 'posix_spawn'.
43748         * modules/posix_spawn: New file.
43749         * lib/spawn.c: New file, from GNU libc with modifications.
43750         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43751
43752         New module 'posix_spawnattr_destroy'.
43753         * modules/posix_spawnattr_destroy: New file.
43754         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43755         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43756         module.
43757
43758         New module 'posix_spawnattr_setsigmask'.
43759         * modules/posix_spawnattr_setsigmask: New file.
43760         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43761         modifications.
43762         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43763         new module.
43764
43765         New module 'posix_spawnattr_getsigmask'.
43766         * modules/posix_spawnattr_getsigmask: New file.
43767         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43768         modifications.
43769         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43770         new module.
43771
43772         New module 'posix_spawnattr_setsigdefault'.
43773         * modules/posix_spawnattr_setsigdefault: New file.
43774         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43775         modifications.
43776         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43777         new module.
43778
43779         New module 'posix_spawnattr_getsigdefault'.
43780         * modules/posix_spawnattr_getsigdefault: New file.
43781         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43782         modifications.
43783         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43784         new module.
43785
43786         New module 'posix_spawnattr_setschedpolicy'.
43787         * modules/posix_spawnattr_setschedpolicy: New file.
43788         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43789         modifications.
43790         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43791         new module.
43792
43793         New module 'posix_spawnattr_getschedpolicy'.
43794         * modules/posix_spawnattr_getschedpolicy: New file.
43795         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43796         modifications.
43797         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43798         new module.
43799
43800         New module 'posix_spawnattr_setschedparam'.
43801         * modules/posix_spawnattr_setschedparam: New file.
43802         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43803         modifications.
43804         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43805         new module.
43806
43807         New module 'posix_spawnattr_getschedparam'.
43808         * modules/posix_spawnattr_getschedparam: New file.
43809         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43810         modifications.
43811         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43812         new module.
43813
43814         New module 'posix_spawnattr_setpgroup'.
43815         * modules/posix_spawnattr_setpgroup: New file.
43816         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43817         modifications.
43818         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43819         module.
43820
43821         New module 'posix_spawnattr_getpgroup'.
43822         * modules/posix_spawnattr_getpgroup: New file.
43823         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43824         modifications.
43825         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43826         module.
43827
43828         New module 'posix_spawnattr_setflags'.
43829         * modules/posix_spawnattr_setflags: New file.
43830         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43831         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43832         module.
43833
43834         New module 'posix_spawnattr_getflags'.
43835         * modules/posix_spawnattr_getflags: New file.
43836         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43837         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43838         module.
43839
43840         New module 'posix_spawnattr_init'.
43841         * modules/posix_spawnattr_init: New file.
43842         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43843         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43844         module.
43845
43846         New module 'posix_spawn_file_actions_destroy'.
43847         * modules/posix_spawn_file_actions_destroy: New file.
43848         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43849         modifications.
43850         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43851         the new module.
43852
43853         New module 'posix_spawn_file_actions_addopen'.
43854         * modules/posix_spawn_file_actions_addopen: New file.
43855         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43856         modifications.
43857         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43858         the new module.
43859
43860         New module 'posix_spawn_file_actions_adddup2'.
43861         * modules/posix_spawn_file_actions_adddup2: New file.
43862         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43863         modifications.
43864         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43865         the new module.
43866
43867         New module 'posix_spawn_file_actions_addclose'.
43868         * modules/posix_spawn_file_actions_addclose: New file.
43869         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43870         modifications.
43871         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43872         the new module.
43873
43874         New module 'posix_spawn_file_actions_init'.
43875         * modules/posix_spawn_file_actions_init: New file.
43876         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43877         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43878         new module.
43879
43880         New module 'posix_spawn-internal'.
43881         * modules/posix_spawn-internal: New file.
43882         * lib/spawn_int.h: New file, from GNU libc with modifications.
43883         * lib/spawni.c: New file, from GNU libc with modifications.
43884         * m4/posix_spawn.m4: New file.
43885
43886         New module 'spawn'.
43887         * modules/spawn: New file.
43888         * lib/spawn.in.h: New file, from GNU libc with modifications.
43889         * m4/spawn_h.m4: New file.
43890         * doc/posix-headers/spawn.texi: Mention the new module.
43891
43892 2008-09-28  Bruno Haible  <bruno@clisp.org>
43893
43894         * modules/sched-tests: New file.
43895         * tests/test-sched.c: New file.
43896
43897         New module 'sched'.
43898         * modules/sched: New file.
43899         * lib/sched.in.h: New file.
43900         * m4/sched_h.m4: New file.
43901         * doc/posix-headers/sched.texi: Mention the new module.
43902
43903 2008-09-27  Eric Blake  <ebb9@byu.net>
43904
43905         Fix previous patch, and tweak references to $0.
43906         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43907         (func_version, func_gnulib_dir): Don't call this program
43908         gnulib-tool.
43909         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43910         with using $0 in function.
43911         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43912         (func_fatal_error): Reuse the name the user invoked us with.
43913
43914 2008-09-27  Bruno Haible  <bruno@clisp.org>
43915
43916         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43917         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43918         (gl_ICONV_H): Not here.
43919         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43920         instead of assigning ICONV_H directly.
43921
43922         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43924         WCHAR_H directly.
43925
43926 2008-09-27  Bruno Haible  <bruno@clisp.org>
43927
43928         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43929         * modules/arpa_inet (Depends-on): Add link-warning.
43930         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43931         * modules/unistd (Makefile.am): Likewise.
43932
43933 2008-09-26  Bruno Haible  <bruno@clisp.org>
43934
43935         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43936         variables.
43937         (func_version): Essentially copied from gnulib-tool.
43938         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43939         func_readlink): Copied from gnulib-tool.
43940
43941 2008-09-26  Bruno Haible  <bruno@clisp.org>
43942
43943         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43944         invoking git-version-gen.
43945
43946 2008-09-26  Bruno Haible  <bruno@clisp.org>
43947
43948         * posix-modules: Update to directory names changed on 2008-01-19.
43949         Remove commas in output before splitting into words. No more need to
43950         avoid 'ftruncate' since 2007-02-19.
43951
43952 2008-09-26  Bruno Haible  <bruno@clisp.org>
43953
43954         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43955
43956 2008-09-26  Bruno Haible  <bruno@clisp.org>
43957
43958         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43959         * modules/fwriteerror (Depends-on): Add errno.
43960
43961 2008-09-26  Bruno Haible  <bruno@clisp.org>
43962
43963         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43964         * tests/test-vc-list-files-cvs.sh: Likewise.
43965
43966 2008-09-26  Bruno Haible  <bruno@clisp.org>
43967
43968         * doc/posix-headers/sys_resource.texi: Reorder items.
43969
43970 2008-09-26  Jim Meyering  <meyering@redhat.com>
43971
43972         fts: tweak inode comparison function
43973         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43974         inode numbers, as documented.
43975
43976         fts: sort dirent entries on inode number before traversing
43977         This avoids a quadratic, seek-related performance penalty when
43978         operating on a directory containing many entries (measurable at 10k;
43979         3.5 hours at 2 million entries with a cold cache) on certain types
43980         of file systems, including ext3 and ext4, but not tmpfs.
43981         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43982         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43983         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43984         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43985         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43986         (fts_build): Set the stat.st_ino member from D_INO.
43987         If it is likely to be useful, sort dirent entries on inode number.
43988
43989         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43990         and the struct statfs.f_type member.
43991         * modules/fts (Depends-on): Add d-ino.
43992
43993 2008-09-26  Bruno Haible  <bruno@clisp.org>
43994
43995         * modules/sigpipe-die (Depends-on): Add sigpipe.
43996
43997         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43998         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43999         and GNULIB_STDIO_H_SIGPIPE are set.
44000         * lib/stdio-write.c: New file.
44001         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
44002         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44003         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44004         REPLACE_STDIO_WRITE_FUNCS.
44005         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
44006         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44007         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44008         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44009         * modules/stdio (Files): Add lib/stdio-write.c.
44010         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
44011         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44012         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44013         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44014         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
44015         REPLACE_FPRINTF_POSIX.
44016         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
44017         REPLACE_PRINTF_POSIX.
44018         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
44019         REPLACE_VFPRINTF_POSIX.
44020         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
44021         REPLACE_VPRINTF_POSIX.
44022         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
44023         SIGPIPE issue.
44024         * doc/posix-functions/fputc.texi: Likewise.
44025         * doc/posix-functions/fputs.texi: Likewise.
44026         * doc/posix-functions/fwrite.texi: Likewise.
44027         * doc/posix-functions/printf.texi: Likewise.
44028         * doc/posix-functions/putc.texi: Likewise.
44029         * doc/posix-functions/putchar.texi: Likewise.
44030         * doc/posix-functions/puts.texi: Likewise.
44031         * doc/posix-functions/vfprintf.texi: Likewise.
44032         * doc/posix-functions/vprintf.texi: Likewise.
44033
44034         * modules/safe-write (Depends-on): Add write.
44035
44036         * modules/sigpipe-tests: New file.
44037         * tests/test-sigpipe.c: New file.
44038         * tests/test-sigpipe.sh: New file.
44039
44040         * modules/write: New file.
44041         * lib/unistd.in.h: Include <sys/types.h>.
44042         (write): New declaration.
44043         * lib/write.c: New file.
44044         * m4/write.m4: New file.
44045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44046         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
44047         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
44048         GNULIB_WRITE, REPLACE_WRITE.
44049         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
44050         and the SIGPIPE issue.
44051
44052         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
44053         (raise): New declaration.
44054         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
44055         (ext_signal): New function.
44056         (rpl_raise): New function.
44057         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
44058         GNULIB_SIGNAL_H_SIGPIPE.
44059         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
44060         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
44061
44062         * modules/sigpipe: New file.
44063         * m4/sigpipe.m4: New file.
44064
44065 2008-09-25  Derek Price  <derek@ximbiot.com>
44066             Bruno Haible  <bruno@clisp.org>
44067
44068         * gnulib-tool (func_import): Report all license incompatibilities, not
44069         just the first one.
44070
44071 2008-09-25  Bruno Haible  <bruno@clisp.org>
44072
44073         * gnulib-tool (func_import): When computing the edits, consider not
44074         only the Makefile.ams that exist but also those that will be generated.
44075
44076 2008-09-25  Simon Josefsson  <simon@josefsson.org>
44077
44078         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
44079         fixes gnulib-tool --test warning about duplicate dependency.
44080
44081 2008-09-25  Bruno Haible  <bruno@clisp.org>
44082
44083         * gnulib-tool: Don't ask the user to perform edits in the generated
44084         Makefile.ams.
44085         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
44086         apply to the Makefile.am being generated.
44087         (func_emit_tests_Makefile_am): Execute edits that apply to the
44088         Makefile.am being generated.
44089         (func_import): Setup list of Makefile.am edits before emitting the
44090         Makefile.ams, not at the end.
44091         (func_create_testdir): Update.
44092         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44093
44094 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44095
44096         * gnulib-tool (func_import): Store the --tests-base option in the
44097         comment in gnulib-cache.m4.
44098
44099 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
44100
44101         * NEWS: Document increased portability that sys_select now provides.
44102
44103         * lib/sys_select.in.h: Install select wrapper.
44104         * lib/sys_socket.in.h: Use more descriptive name when there is no
44105         select wrapper.
44106         * lib/winsock-select.c: New.
44107         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
44108         Require gl_HEADER_SYS_SOCKET.
44109         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
44110         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
44111         * tests/test-sys_select.c: Add functional tests.
44112
44113 2008-09-24  Eric Blake  <ebb9@byu.net>
44114
44115         open, fopen: close fd leak in last patch
44116         * lib/open.c (rpl_open): Close fd before returning error.
44117         * lib/fopen.c (rpl_fopen): Close fd before returning error.
44118         * doc/posix-functions/open.texi (open): Document that Irix also
44119         has the bug.
44120         * doc/posix-functions/fopen.texi (fopen): Likewise.
44121         Reported by Paolo Bonzini.
44122
44123 2008-09-24  Bruno Haible  <bruno@clisp.org>
44124
44125         Ensure that a filename ending in a slash cannot be used to access a
44126         non-directory.
44127         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
44128         to check whether it's really a directory.
44129         * lib/fopen.c: Include fcntl.h, unistd.h.
44130         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
44131         and fdopen().
44132         * modules/fopen (Depends-on): Add unistd.
44133         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
44134         * tests/test-fopen.c (main): Likewise.
44135         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
44136         * doc/posix-functions/fopen.texi: Likewise.
44137         Reported by Eric Blake.
44138
44139 2008-09-23  Eric Blake  <ebb9@byu.net>
44140
44141         c-stack: avoid compiler optimizations when provoking overflow
44142         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
44143         recursion harder to optimize, to ensure a stack overflow occurs.
44144         * tests/test-c-stack.c (recurse): Likewise.
44145         Borrowed from libsigsegv.
44146
44147         c-stack: work around Irix sigaltstack bug
44148         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
44149         whether sigaltstack uses wrong end of stack_t (copied in part from
44150         libsigsegv).
44151         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
44152         Irix bug, without requiring an over-allocation.
44153         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
44154         bug.
44155
44156         fopen: document mingw bug on directories
44157         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
44158         not allowing a stream visiting a directory, even though reading
44159         from such a stream is not portable.
44160
44161 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44162
44163         * lib/poll.c: Rewrite.
44164         * modules/poll: Depend on alloca.
44165
44166 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44167
44168         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
44169         instead define prototypes for a full set of wrappers.  Ensure
44170         that Cygwin does not use the compatibility code, which is only
44171         for MinGW.
44172         * lib/winsock.c: New.
44173         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
44174         * modules/sys_socket: Add lib/winsock.c.
44175
44176         * modules/poll-tests: Add errno and perror.
44177         * tests/test-poll.c: Use ioctl, not ioctlsocket.
44178
44179 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44180
44181         * tests/test-poll.c: Downgrade minimum needed Winsock version.
44182
44183 2008-09-23  Bruno Haible  <bruno@clisp.org>
44184
44185         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
44186         * doc/glibc-functions/*: Likewise.
44187
44188 2008-09-23  Simon Josefsson  <simon@josefsson.org>
44189
44190         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
44191         success.
44192
44193 2008-09-22  Eric Blake  <ebb9@byu.net>
44194             Bruno Haible  <bruno@clisp.org>
44195
44196         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
44197         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
44198         supply %A but mishandle pseudo-NaN.
44199         Reported by Simon Josefsson.
44200
44201 2008-09-21  Bruno Haible  <bruno@clisp.org>
44202
44203         * tests/test-lock.c (main): Tweak skip message.
44204         * tests/test-tls.c (main): Likewise.
44205
44206 2008-09-21  Bruno Haible  <bruno@clisp.org>
44207
44208         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
44209         whether 'struct sigaction' has sa_sigaction here...
44210         (gl_PREREQ_SIG_HANDLER_H): ... not here.
44211         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
44212
44213 2008-09-21  Bruno Haible  <bruno@clisp.org>
44214
44215         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
44216         section.
44217         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
44218         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
44219         the new section.
44220         (Support for obsolete systems lacking POSIX:2001): New section.
44221         (String handling <string.h>): Move strdup to the new section.
44222         Suggested by Simon Josefsson and Paolo Bonzini.
44223
44224 2008-09-21  Bruno Haible  <bruno@clisp.org>
44225
44226         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
44227         exponents in %e and %g results on 'long double'. Needed for mingw's
44228         improved *printf functions.
44229         * tests/test-vasprintf-posix.c (test_function): Likewise.
44230         * tests/test-snprintf-posix.h (test_function): Likewise.
44231         * tests/test-sprintf-posix.h (test_function): Likewise.
44232         Reported by Eric Blake.
44233
44234 2008-09-21  Bruno Haible  <bruno@clisp.org>
44235
44236         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
44237         * tests/test-sprintf-posix.h (test_function): Likewise.
44238
44239 2008-09-21  Bruno Haible  <bruno@clisp.org>
44240
44241         * modules/getpass (Depends-on): Add strdup-posix.
44242
44243         New module 'strdup-posix'.
44244         * modules/strdup-posix: New file.
44245         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
44246         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
44247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44248         REPLACE_STRDUP.
44249         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
44250         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
44251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44252         strdup-posix.
44253
44254         * modules/strdup (Depends-on): Remove malloc-posix.
44255
44256 2008-09-20  Bruno Haible  <bruno@clisp.org>
44257
44258         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44259         Wildenhues.
44260
44261 2008-09-20  Bruno Haible  <bruno@clisp.org>
44262
44263         Ensure that wint_t gets defined on IRIX 5.3.
44264         * lib/wchar.in.h (wint_t): Define if not defined by the system.
44265         * lib/wctype.in.h (wint_t): Likewise.
44266         (__wctype_wint_t): Remove type.
44267         (isw*): Use wint_t instead of __wctype_wint_t.
44268         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
44269         * modules/wchar (Files): Add m4/wint_t.m4.
44270         (Makefile.am): Substitute HAVE_WINT_T.
44271         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
44272         * tests/test-wctype.c: Check that wint_t is defined.
44273         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
44274         * doc/posix-headers/wctype.texi: Likewise.
44275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44276
44277 2008-09-18  Bruno Haible  <bruno@clisp.org>
44278
44279         * gnulib-tool (func_exit): Update comment.
44280
44281 2008-09-18  Simon Josefsson  <simon@josefsson.org>
44282
44283         * modules/getaddrinfo (Depends-on): Remove strdup, this module
44284         assumes strdup exists and does not depend on strdup to return
44285         ENOMEM on out of memory conditions.
44286
44287 2008-09-18  Bruno Haible  <bruno@clisp.org>
44288
44289         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
44290         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
44291         digits for the exponent.
44292
44293 2008-09-18  Jim Meyering  <meyering@redhat.com>
44294             Bruno Haible  <bruno@clisp.org>
44295
44296         * lib/vasnprintf.c (decimal_point_char): Define also if
44297         NEED_PRINTF_INFINITE_LONG_DOUBLE.
44298
44299 2008-09-16  Bruno Haible  <bruno@clisp.org>
44300         and Eric Blake  <ebb9@byu.net>
44301
44302         vasnprintf: support Irix 5.3
44303         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
44304         that mishandle long double infinity.
44305         Reported by Tom G. Christensen.
44306
44307 2008-09-16  Bruno Haible  <bruno@clisp.org>
44308
44309         * doc/glibc-functions/scandir.texi: Mention the function is missing on
44310         Solaris 9.
44311         * doc/glibc-functions/alphasort.texi: Likewise.
44312         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
44313
44314 2008-09-16  Jim Meyering  <meyering@redhat.com>
44315
44316         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
44317         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
44318         a umask modification leak out of a subshell.  Otherwise, the
44319         opensolaris /bin/sh would be accepted and thus cause unwarranted
44320         failures in the coreutils test suite.
44321
44322 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
44323
44324         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
44325         to succeed.
44326
44327 2008-09-16  Jim Meyering  <meyering@redhat.com>
44328
44329         avoid spurious test failure when library is built without ACL support
44330         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
44331         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
44332         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
44333         * tests/test-copy-acl.sh: Likewise.
44334
44335 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44336
44337         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
44338         based on character occurrence counts.
44339
44340 2008-09-15  Eric Blake  <ebb9@byu.net>
44341
44342         tests: avoid some compiler warnings
44343         * tests/test-memchr.c (main): Pass NULL indirectly.
44344         * tests/test-closein.c (main): Avoid unused variable.
44345
44346 2008-09-15  Bruno Haible  <bruno@clisp.org>
44347
44348         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
44349         are missing on OpenBSD 4.0 individually.
44350         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44351
44352 2008-09-15  Bruno Haible  <bruno@clisp.org>
44353
44354         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
44355         * doc/posix-functions/strerror.texi: Mention also Cygwin.
44356         * doc/posix-functions/perror.texi: Likewise.
44357         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
44358         is missing.
44359         Reported by Eric Blake.
44360
44361         * lib/errno.in.h: Use replacement values >= 2000.
44362         Reported by Eric Blake.
44363
44364 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44365
44366         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
44367         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
44368         limit.
44369         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
44370         compareseq was aborted.
44371
44372 2008-09-14  Bruno Haible  <bruno@clisp.org>
44373
44374         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
44375         yvec_edit_count.
44376         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
44377         (fstrcmp_bounded): Simplify result computation accordingly.
44378
44379 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44380
44381         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
44382         (fstrcmp): Define in terms of fstrcmp_bounded.
44383         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
44384         lower_bound argument.
44385         Return quickly if the result is certainly < lower_bound.
44386         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
44387
44388 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44389
44390         * lib/diffseq.h (EARLY_ABORT): New macro.
44391         (compareseq): Change return type to bool. Return true when EARLY_ABORT
44392         evaluates to true.
44393
44394 2008-09-14  Bruno Haible  <bruno@clisp.org>
44395
44396         * modules/perror-tests: New file.
44397         * tests/test-perror.sh: New file.
44398         * tests/test-perror.c: New file.
44399
44400         New module 'perror'.
44401         * lib/stdio.in.h (perror): New declaration.
44402         * lib/perror.c: New file.
44403         * m4/perror.m4: New file.
44404         * modules/perror: New file.
44405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
44406         * doc/posix-functions/perror.texi: Mention the perror module.
44407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
44408         REPLACE_PERROR.
44409         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
44410         REPLACE_PERROR.
44411
44412 2008-09-14  Bruno Haible  <bruno@clisp.org>
44413
44414         * modules/stdio (Makefile.am): Reorder to match the order in
44415         lib/stdio.in.h.
44416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44417
44418 2008-09-13  Bruno Haible  <bruno@clisp.org>
44419
44420         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
44421
44422 2008-09-13  Bruno Haible  <bruno@clisp.org>
44423
44424         Extend strerror to cover the added errno values.
44425         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
44426         (rpl_strerror): Provide error messages for the added errno values and
44427         for the WSA* values.
44428         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
44429         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
44430         strerror.
44431         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
44432         * modules/strerror (Depends-on): Add errno.
44433         * doc/posix-functions/strerror.texi: Document the change.
44434         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
44435         and EOVERFLOW.
44436
44437 2008-09-13  Bruno Haible  <bruno@clisp.org>
44438
44439         * modules/EOVERFLOW: Remove file.
44440         * m4/eoverflow.m4: Remove file.
44441         * modules/EOVERFLOW-tests: Remove file.
44442         * tests/test-EOVERFLOW.c: Remove file.
44443         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
44444         * modules/ftell (Depends-on): Likewise.
44445         * modules/getdelim (Depends-on): Likewise.
44446         * modules/getugroups (Depends-on): Likewise.
44447         * modules/poll (Depends-on): Likewise.
44448         * modules/snprintf (Depends-on): Likewise.
44449         * modules/sprintf-posix (Depends-on): Likewise.
44450         * modules/vasnprintf (Depends-on): Likewise.
44451         * modules/vasprintf (Depends-on): Likewise.
44452         * modules/vfprintf-posix (Depends-on): Likewise.
44453         * modules/vsnprintf (Depends-on): Likewise.
44454         * modules/vsprintf-posix (Depends-on): Likewise.
44455         * modules/xvasprintf (Depends-on): Likewise.
44456         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44457         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
44458         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
44459         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
44460         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44461         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
44462         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
44463         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
44464         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44465         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
44466         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
44467         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
44468         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44469         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
44470         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
44471         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
44472         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44473         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
44474         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
44475         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
44476         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44477         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
44478         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
44479         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
44480         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
44481         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44482         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
44483         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
44484         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
44485         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
44486         * MODULES.html.sh: Remove EOVERFLOW.
44487         * NEWS: Mention the change.
44488
44489 2008-09-13  Bruno Haible  <bruno@clisp.org>
44490
44491         * modules/errno-tests: New file.
44492         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
44493
44494         * lib/errno.in.h: New file.
44495         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
44496         * modules/errno: New file.
44497         * doc/posix-headers/errno.texi: Update documentation.
44498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
44499
44500 2008-09-13  Bruno Haible  <bruno@clisp.org>
44501
44502         * tests/test-poll.c: Use #if for native Windows, rather than testing
44503         __MSVCRT__.
44504
44505 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44506             Bruno Haible  <bruno@clisp.org>
44507
44508         * lib/glob.c: Don't include <pwd.h> on native Windows.
44509         (WINDOWS32): New macro.
44510         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
44511
44512 2008-09-13  Bruno Haible  <bruno@clisp.org>
44513
44514         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44515         (ETIMEDOUT): Remove macro.
44516         (glthread_cond_timedwait_multithreaded): New declaration.
44517         (glthread_cond_timedwait): Use it.
44518         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44519         (glthread_cond_timedwait_multithreaded): New function.
44520
44521 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44522
44523         * modules/poll-tests: Do not check for io.h.
44524         * tests/test-poll.c: Check for __MSVCRT__ instead.
44525
44526 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44527
44528         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44529         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44530         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44531
44532 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44533
44534         * modules/poll-tests: New.
44535         * tests/test-poll.c: New.
44536
44537 2008-09-12  Eric Blake  <ebb9@byu.net>
44538
44539         frexp: test for NetBSD failure on -0.0
44540         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44541         not all, bugs from NetBSD 3.0 have been fixed.
44542         * doc/posix-functions/frexp.texi (frexp): Document bug.
44543         Reported by Thomas Klausner.
44544
44545         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44546         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44547         literal -0.0.
44548         Reported by Jonathan C. Patschke <jp@centtech.com>.
44549
44550 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44551
44552         * lib/glthread/cond.h: Use dummy implementation also if
44553         USE_WIN32_THREADS.
44554
44555 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44556
44557         * modules/fnmatch-posix (License): Change to LGPLv2+.
44558         * modules/fnmatch-gnu (License): Likewise.
44559
44560 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44561
44562         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44563
44564 2008-09-11  Jim Meyering  <meyering@redhat.com>
44565
44566         * users.txt: Add gtk-vnc.
44567
44568 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44569
44570         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44571         rotate amounts.
44572
44573         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44574         required for 16-bit and 8-bit rotates.
44575         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44576         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44577         UINT8_MAX instead of hard-coded constants.
44578         Suggested by Paul Eggert.
44579
44580 2008-09-07  Bruno Haible  <bruno@clisp.org>
44581
44582         * tests/test-striconveh.c (main): Check behaviour when converting from
44583         UTF-7.
44584
44585         Make striconveh work better with stateful encodings.
44586         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44587         that iconv does not increment the inptr when returning -1/EINVAL.
44588
44589 2008-09-07  Bruno Haible  <bruno@clisp.org>
44590
44591         * build-aux/config.rpath: Update according to libtool-2.2.6.
44592         * build-aux/config.libpath: Likewise.
44593
44594 2008-09-06  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44597         * lib/freadptr.c (freadptr): Likewise.
44598         * lib/freadseek.c (freadptrinc): Likewise.
44599         Reported by Simon Josefsson.
44600
44601 2008-09-06  Bruno Haible  <bruno@clisp.org>
44602
44603         * modules/freadptr (License): Change to LGPLv2+.
44604         * modules/freadseek (License): Likewise.
44605         Suggested by Eric Blake.
44606
44607         * modules/memchr2 (License): Change to LGPLv2+.
44608         Approved by Eric Blake.
44609
44610 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44611             Bruno Haible  <bruno@clisp.org>
44612
44613         Make gnulib-tool work with native 'sed' on AIX.
44614         * gnulib-tool (sed_noop): New variable.
44615         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44616         func_add_or_update, func_create_testdir): Use it to initialize sed
44617         script variables.
44618         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44619
44620 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44621             Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44624         also works after #include directives.
44625
44626 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44627
44628         getdate.y: reject an out-of-range timezone value
44629         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44630         the range [-24...+24].  When specified with only one or two digits,
44631         * tests/test-getdate.c: Tests for the fix.
44632         * doc/getdate.texi: Document this change.
44633
44634 2008-09-03  Bruno Haible  <bruno@clisp.org>
44635
44636         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44637
44638 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44639
44640         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44641         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44642         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44643         Blake <ebb9@byu.net>.
44644
44645         * tests/test-bitrotate.c: Add more test vectors.
44646
44647 2008-09-02  Eric Blake  <ebb9@byu.net>
44648
44649         vasnprintf-posix: handle large precision via %.*d
44650         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44651         when handling it ourselves.
44652         * tests/test-vasnprintf-posix.c (test_function): Add test.
44653         * tests/test-snprintf-posix.h (test_function): Likewise.
44654         * tests/test-sprintf-posix.h (test_function): Likewise.
44655         * tests/test-vasprintf-posix.c (test_function): Likewise.
44656         Reported by Alain Guibert.
44657
44658 2008-09-01  Eric Blake  <ebb9@byu.net>
44659
44660         c-stack: make configure-time check more robust
44661         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44662         successful sigaction call.
44663         Reported by Tom G. Christensen.
44664
44665 2008-09-01  Bruno Haible  <bruno@clisp.org>
44666
44667         New module 'findprog-lgpl'.
44668         * modules/findprog-lgpl: New file.
44669         * lib/findprog-lgpl.c: New file.
44670         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44671         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44672         to decide whether to use strdup or xstrdup, concatenated_filename or
44673         xconcatenated_filename.
44674
44675 2008-09-01  Bruno Haible  <bruno@clisp.org>
44676
44677         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44678         'xconcat-filename' (GPL).
44679         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44680         (License): Change to LGPLv2+.
44681         * modules/xconcat-filename: New file.
44682         * lib/concat-filename.h (concatenated_filename): Change specification.
44683         (xconcatenated_filename): New declaration.
44684         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44685         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44686         memory situations.
44687         * lib/xconcat-filename.c: New file.
44688         * NEWS: Mention the change.
44689         * lib/findprog.c: Include concat-filename.h, not filename.h.
44690         (find_in_path): Use xconcatenated_filename instead of
44691         concatenated_filename.
44692         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44693         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44694         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44695         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44696         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44697         instead of concatenated_filename.
44698         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44699         (execute_java_class): Use xconcatenated_filename instead of
44700         concatenated_filename.
44701         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44702         * modules/javacomp (Depends-on): Likewise.
44703         * modules/javaexec (Depends-on): Likewise.
44704
44705 2008-09-01  Bruno Haible  <bruno@clisp.org>
44706
44707         Split module 'filename' into 'filename' and 'concat-filename'.
44708         * modules/filename: Keep only lib/filename.h.
44709         (License): Change to LGPLv2+.
44710         * modules/concat-filename: New file, extracted from modules/filename.
44711         * lib/filename.h (concatenated_filename): Remove declaration.
44712         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44713         * lib/concat-filename.c: Include concat-filename.h.
44714         * NEWS: Mention the change.
44715
44716 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44717
44718         * lib/bitrotate.h (rotl8, rotr8): Add.
44719
44720         * modules/bitrotate (configure.ac): Need
44721         AC_REQUIRE([AC_C_INLINE]).
44722         (Description): Mention stdint.h.  Reported by Bruno Haible
44723         <bruno@clisp.org>.
44724
44725         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44726         Paolo Bonzini <bonzini@gnu.org>.
44727
44728 2008-08-31  Bruno Haible  <bruno@clisp.org>
44729
44730         Assume Solaris specific bi-arch conventions on Solaris systems.
44731         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44732         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44733         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44734         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44735         like acl_libdirstem.
44736         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44737         acl_libdirstem.
44738         * NEWS: Mention the change.
44739         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44740
44741 2008-08-31  Jim Meyering  <meyering@redhat.com>
44742
44743         * lib/strftime.h: Add comments describing the two added arguments.
44744
44745         remove duplicate #include directives
44746         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44747         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44748
44749 2008-08-31  Bruno Haible  <bruno@clisp.org>
44750
44751         New module 'sigpipe-die'.
44752         * modules/sigpipe-die: New file.
44753         * lib/sigpipe-die.h: New file.
44754         * lib/sigpipe-die.c: New file.
44755         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44756
44757 2008-08-31  Bruno Haible  <bruno@clisp.org>
44758
44759         Don't override previously installed signal handlers.
44760         * lib/fatal-signal.c (saved_sigactions): New variable.
44761         (uninstall_handlers): Reset the signal to the saved handler, not
44762         to SIG_DFL (except when ignored).
44763         (install_handlers): Save the previous handlers.
44764
44765 2008-08-30  Bruno Haible  <bruno@clisp.org>
44766
44767         * gnulib-tool (func_reset_sigpipe): New function.
44768         (func_get_automake_snippet, func_modules_transitive_closure,
44769         func_import): Invoke it before a join command that reads from stdin,
44770         to avoid "echo: write error: Broken pipe" error messages on stderr.
44771         Reported by Sam Steingold <sds@gnu.org>.
44772
44773 2008-08-30  Bruno Haible  <bruno@clisp.org>
44774
44775         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44776         Code copied from m4/open.m4.
44777         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44778         access and the filename ends in a slash. Code copied from lib/open.c.
44779         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44780         * tests/test-fopen.c (main): Check against bug with trailing slash.
44781
44782 2008-08-29  Bruno Haible  <bruno@clisp.org>
44783
44784         Avoid some "gcc -pedantic" warnings.
44785         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44786         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44787         * lib/dirent.in.h: Likewise.
44788         * lib/fcntl.in.h: Likewise.
44789         * lib/float.in.h: Likewise.
44790         * lib/iconv.in.h: Likewise.
44791         * lib/inttypes.in.h: Likewise.
44792         * lib/locale.in.h: Likewise.
44793         * lib/math.in.h: Likewise.
44794         * lib/netinet_in.in.h: Likewise.
44795         * lib/search.in.h: Likewise.
44796         * lib/signal.in.h: Likewise.
44797         * lib/stdarg.in.h: Likewise.
44798         * lib/stdint.in.h: Likewise.
44799         * lib/stdio.in.h: Likewise.
44800         * lib/stdlib.in.h: Likewise.
44801         * lib/string.in.h: Likewise.
44802         * lib/strings.in.h: Likewise.
44803         * lib/sys_select.in.h: Likewise.
44804         * lib/sys_socket.in.h: Likewise.
44805         * lib/sys_stat.in.h: Likewise.
44806         * lib/sys_time.in.h: Likewise.
44807         * lib/sysexits.in.h: Likewise.
44808         * lib/time.in.h: Likewise.
44809         * lib/unistd.in.h: Likewise.
44810         * lib/wchar.in.h: Likewise.
44811         * lib/wctype.in.h: Likewise.
44812         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44813         * modules/fchdir (Makefile.am): Likewise.
44814         * modules/fcntl (Makefile.am): Likewise.
44815         * modules/float (Makefile.am): Likewise.
44816         * modules/iconv_open (Makefile.am): Likewise.
44817         * modules/inttypes (Makefile.am): Likewise.
44818         * modules/locale (Makefile.am): Likewise.
44819         * modules/math (Makefile.am): Likewise.
44820         * modules/netinet_in (Makefile.am): Likewise.
44821         * modules/search (Makefile.am): Likewise.
44822         * modules/signal (Makefile.am): Likewise.
44823         * modules/stdarg (Makefile.am): Likewise.
44824         * modules/stdint (Makefile.am): Likewise.
44825         * modules/stdio (Makefile.am): Likewise.
44826         * modules/stdlib (Makefile.am): Likewise.
44827         * modules/string (Makefile.am): Likewise.
44828         * modules/strings (Makefile.am): Likewise.
44829         * modules/sys_select (Makefile.am): Likewise.
44830         * modules/sys_socket (Makefile.am): Likewise.
44831         * modules/sys_stat (Makefile.am): Likewise.
44832         * modules/sys_time (Makefile.am): Likewise.
44833         * modules/sysexits (Makefile.am): Likewise.
44834         * modules/time (Makefile.am): Likewise.
44835         * modules/unistd (Makefile.am): Likewise.
44836         * modules/wchar (Makefile.am): Likewise.
44837         * modules/wctype (Makefile.am): Likewise.
44838         Reported by Reuben Thomas <rrt@sc3d.org>.
44839
44840 2008-08-29  Bruno Haible  <bruno@clisp.org>
44841
44842         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44843         any more.
44844
44845 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44846
44847         * MODULES.html.sh (Misc): Add bitrotate.
44848
44849         * modules/bitrotate: New file.
44850
44851         * lib/bitrotate.h: New file.
44852
44853         * modules/bitrotate-tests: New file.
44854
44855         * tests/test-bitrotate.c: New file.
44856
44857         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44858         on the bitrotate module.
44859
44860         * lib/arctwo.c: Use new bitrotate module.
44861
44862 2008-08-29  Jim Meyering  <meyering@redhat.com>
44863
44864         bootstrap: merge changes from coreutils
44865         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44866         of copied files.  Remove a kludge, now that this is fixed.
44867         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44868         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44869         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44870
44871 2008-08-29  Bruno Haible  <bruno@clisp.org>
44872
44873         * MODULES.html.sh: Remove --cvs-urls option.
44874
44875 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44876
44877         maint.mk: adjust to file name change
44878         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44879
44880 2008-08-28  Jim Meyering  <meyering@redhat.com>
44881
44882         * modules/getndelim2 (License): Relicense to LGPLv2+.
44883         Approved by Richard Stallman for the version of 1995, and by
44884         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44885
44886 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44887
44888         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44889         dummy if one is not available.  Do not touch them if
44890         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44891         (getc_maybe_unlocked): New.
44892         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44893
44894 2008-08-26  Eric Blake  <ebb9@byu.net>
44895
44896         doc/INSTALL: resync from autoconf
44897         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44898         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44899         moving...
44900         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44901         * INSTALL: Regenerate.
44902         * INSTALL.ISO: New file.
44903         * INSTALL.UTF-8: Likewise.
44904
44905 2008-08-26  Jim Meyering  <meyering@redhat.com>
44906
44907         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44908         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44909         these definitions conditional, so that they may be overridden, too.
44910
44911 2008-08-26  Bruno Haible  <bruno@clisp.org>
44912
44913         Generate INSTALL file variants with prettier quotes.
44914         * doc/Makefile (INSTALL_PRELUDE): New macro.
44915         (INSTALL): Use it.
44916         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44917
44918 2008-08-26  Bruno Haible  <bruno@clisp.org>
44919
44920         Run makeinfo in an English locale.
44921         * doc/Makefile (MAKEINFO): New variable.
44922
44923 2008-08-26  Bruno Haible  <bruno@clisp.org>
44924
44925         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44926         Suggested by Eric Blake.
44927
44928 2008-08-25  Bruno Haible  <bruno@clisp.org>
44929
44930         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44931
44932 2008-08-25  Eric Blake  <ebb9@byu.net>
44933
44934         c-stack: test that stack overflow can be caught
44935         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44936         that platform allows handling stack overflow; at least OS/2 EMX
44937         has sigaltstack, but crashes before transferring control to
44938         handler on stack overflow.
44939         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44940         check for HAVE_STACK_OVERFLOW_HANDLING.
44941         Reported by Elbert Pol.
44942
44943 2008-08-25  Bruno Haible  <bruno@clisp.org>
44944
44945         * doc/posix-functions/strftime.texi: Fix description of strftime
44946         module.
44947
44948 2008-08-24  Bruno Haible  <bruno@clisp.org>
44949
44950         * tests/uniwidth/test-uc_width2.c: New file.
44951         * tests/uniwidth/test-uc_width2.sh: New file.
44952         * modules/uniwidth/width-tests (Files): Add the new files.
44953         (TESTS): Add uniwidth/test-uc_width2.sh.
44954         (TESTS_ENVIRONMENT): New variable.
44955         (check_PROGRAMS): Add test-uc_width2.
44956         (test_uc_width2_SOURCES): New variable.
44957
44958         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44959         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44960         not 0x00AB.
44961         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44962
44963 2008-08-22  Eric Blake  <ebb9@byu.net>
44964
44965         test-lock, test-tls: mention why a test is skipped
44966         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44967         skipped.
44968         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44969
44970         count-one-bits: relax license
44971         * modules/count-one-bits (License): Relicense to LGPLv2+.
44972         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44973
44974 2008-08-22  Andreas Schwab  <schwab@suse.de>
44975
44976         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44977         Remove spurious space in assignment.
44978
44979 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44980
44981         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44982         Paul Eggert <eggert@CS.UCLA.EDU>.
44983
44984 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44985
44986         * modules/gettext: Add m4/threadlib.m4.
44987
44988 2008-08-19  Eric Blake  <ebb9@byu.net>
44989
44990         test-c-stack: fix compilation failure on FreeBSD 5.0
44991         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44992         headers before <sys/resource.h>.
44993         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44994         the bug.
44995         Reported by Nelson H. F. Beebe.
44996
44997         strverscmp: migrate from "strverscmp.h" to <string.h>
44998         * modules/string (Makefile.am): Add new hooks.
44999         * modules/strverscmp (Files): Remove strverscmp.h.
45000         (Depends-on): Add string.
45001         (configure.ac): Add indicator.
45002         (Include): Mention new header.
45003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
45004         defaults.
45005         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
45006         results.
45007         * lib/strverscmp.h: Delete.
45008         * lib/string.in.h (strverscmp): Provide declaration, when needed.
45009         * tests/test-strverscmp.c (includes): Adjust client.
45010         * lib/check-version.c (includes): Likewise.
45011         * NEWS: Document the change.
45012
45013         strverscmp: add unit test
45014         * modules/strverscmp-tests: New file.
45015         * tests/test-strverscmp.c: Likewise.
45016
45017 2008-08-19  Simon Josefsson  <simon@josefsson.org>
45018
45019         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
45020         regarding Windows crypto stuff, from Mono.
45021
45022 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
45023
45024         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
45025         if present, for intel RND.  Return error on failures.
45026
45027 2008-08-18  Ben Pfaff  <blp@gnu.org>
45028
45029         gitlog-to-changelog: give better diagnostic for failed pipe-open
45030         * build-aux/gitlog-to-changelog: Improve error message: suggest
45031         that the version of Git may be too old.
45032
45033 2008-08-18  Simon Josefsson  <simon@josefsson.org>
45034
45035         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
45036         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
45037
45038 2008-08-18  Bruno Haible  <bruno@clisp.org>
45039
45040         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
45041         pthread_in_use().
45042
45043 2008-08-18  Bruno Haible  <bruno@clisp.org>
45044
45045         * lib/glthread/threadlib.c: Include <pthread.h>.
45046
45047 2008-08-18  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
45050         glthread_recursive_lock_* macros.
45051         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
45052         Fix syntax error.
45053
45054 2008-08-18  Bruno Haible  <bruno@clisp.org>
45055
45056         * lib/glthread/thread.c: Avoid forcing a context switch right after
45057         thread creation.
45058
45059 2008-08-17  Bruno Haible  <bruno@clisp.org>
45060
45061         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
45062         * lib/glthread/thread.h: Provide Win32 specific implementation.
45063         * modules/thread (Files): Add lib/glthread/thread.c.
45064         (Depends-on): Add lock.
45065         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
45066
45067 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45068
45069         New module 'yield'.
45070         * modules/yield: New file.
45071         * lib/glthread/yield.h: New file.
45072         * m4/yield.m4: New file.
45073         * MODULES.html.sh (Multithreading): Add yield.
45074
45075 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45076
45077         New module 'thread'.
45078         * modules/thread: New file.
45079         * lib/glthread/thread.h: New file.
45080         * m4/thread.m4: New file.
45081         * MODULES.html.sh (Multithreading): Add thread.
45082
45083 2008-08-17  Bruno Haible  <bruno@clisp.org>
45084
45085         * lib/glthread/lock.h: Include <stdlib.h> always.
45086         * lib/glthread/tls.h: Likewise.
45087         * lib/glthread/cond.h: Likewise.
45088
45089 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45090
45091         New module 'cond'.
45092         * modules/cond: New file.
45093         * lib/glthread/cond.h: New file.
45094         * lib/glthread/cond.c: New file.
45095         * m4/cond.m4: New file.
45096         * MODULES.html.sh (Multithreading): Add cond.
45097
45098 2008-08-16  Eric Blake  <ebb9@byu.net>
45099
45100         c-stack: fix regression on Irix 5.3 from 2008-06-21
45101         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
45102         sa_sigaction...
45103         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
45104         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
45105         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
45106         * modules/signal (Makefile.am): Use the value.
45107         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
45108         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
45109         * doc/posix-headers/signal.texi (signal.h): Document this
45110         portability issue.
45111         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
45112         Reported by Tom G. Christensen.
45113
45114 2008-08-17  Bruno Haible  <bruno@clisp.org>
45115
45116         New module 'threadlib'.
45117         * modules/threadlib: New file.
45118         * lib/glthread/threadlib.c: New file, extracted from
45119         lib/glthread/lock.c.
45120         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
45121         functions.
45122         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
45123         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
45124         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
45125         macros.
45126         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
45127         (gl_DISABLE_THREADS): Remove macro.
45128         * modules/lock (Files): Remove build-aux/config.rpath.
45129         (Depends-on): Remove havelib. Add threadlib.
45130         (configure.ac-early): Remove section.
45131         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
45132         * modules/tls (Depends-on): Remove lock. Add threadlib.
45133         (Link): New section, copied from threadlib.
45134         * MODULES.html.sh (Multithreading): Add threadlib.
45135
45136 2008-08-14  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
45139         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
45140         glthread_rwlock_unlock, glthread_rwlock_destroy,
45141         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
45142         glthread_recursive_lock_destroy): Define as macros always.
45143         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
45144         glthread_lock_lock.
45145         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
45146         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
45147         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
45148         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
45149         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
45150         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
45151         (glthread_recursive_lock_lock_func): Renamed from
45152         glthread_recursive_lock_lock.
45153         (glthread_recursive_lock_unlock_func): Renamed from
45154         glthread_recursive_lock_unlock.
45155         (glthread_recursive_lock_destroy_func): Renamed from
45156         glthread_recursive_lock_destroy.
45157
45158 2008-08-14  Bruno Haible  <bruno@clisp.org>
45159
45160         * lib/glthread/lock.h: Renamed from lib/lock.h.
45161         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
45162         * lib/glthread/tls.h: Renamed from lib/tls.h.
45163         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
45164         * lib/fstrcmp.c: Update includes.
45165         * lib/strsignal.c: Update includes.
45166         * modules/lock (Files, Makefile.am): Update.
45167         (Include): Change to "glthread/lock.h".
45168         * modules/tls (Files, Makefile.am): Update.
45169         (Include): Change to "glthread/tls.h".
45170         * tests/test-lock.c: Update includes.
45171         * tests/test-tls.c: Update includes.
45172         * NEWS: Mention the renamed header files.
45173
45174 2008-08-11  Jim Meyering  <meyering@redhat.com>
45175
45176         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
45177
45178 2008-08-11  Eric Blake  <ebb9@byu.net>
45179
45180         test-c-stack: avoid C99-ism
45181         * tests/test-c-stack.c (main): Fix whitespace, move declaration
45182         before statement.
45183         Reported by Alain Guibert.
45184
45185 2008-08-10  Jim Meyering  <meyering@redhat.com>
45186
45187         ensure that return value of uinttostr et al are not ignored
45188         * lib/inttostr.h (__GNUC_PREREQ): Define.
45189         (__attribute_warn_unused_result__): Define.
45190         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
45191
45192 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
45193
45194         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
45195         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
45196
45197 2008-08-07  Jim Meyering  <meyering@redhat.com>
45198
45199         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
45200
45201         * modules/mkstemp (License): Relicense under LGPLv2+.
45202         * modules/tempname (License): Likewise.
45203
45204 2008-08-06  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/poll.c (poll): Further micro-optimization.
45207
45208 2008-08-06  Jim Meyering  <meyering@redhat.com>
45209
45210         inet_pton.c: use locale-independent tolower
45211         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
45212         (inet_pton6): Use c_tolower rather than tolower.
45213         * modules/inet_pton (Depends-on): Add c-ctype.
45214
45215 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
45216
45217         * lib/poll.c (poll): Avoid division when timeout is 0, cache
45218         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
45219
45220 2008-08-06  Jim Meyering  <meyering@redhat.com>
45221
45222         * modules/inet_pton (License): Relicense under LGPLv2+.
45223
45224 2008-08-03  Bruno Haible  <bruno@clisp.org>
45225
45226         Additional non-aborting API for lock and tls.
45227         * lib/lock.h: Include <errno.h>.
45228         (glthread_lock_init): New macro/function.
45229         (gl_lock_init): Define as wrapper around glthread_lock_init.
45230         (glthread_lock_lock): New macro/function.
45231         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
45232         (glthread_lock_unlock): New macro/function.
45233         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
45234         (glthread_lock_destroy): New macro/function.
45235         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
45236         (glthread_rwlock_init): New macro/function.
45237         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
45238         (glthread_rwlock_rdlock): New macro/function.
45239         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
45240         (glthread_rwlock_wrlock): New macro/function.
45241         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
45242         (glthread_rwlock_unlock): New macro/function.
45243         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
45244         (glthread_rwlock_destroy): New macro/function.
45245         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
45246         (glthread_recursive_lock_init): New macro/function.
45247         (gl_recursive_lock_init): Define as wrapper around
45248         glthread_recursive_lock_init.
45249         (glthread_recursive_lock_lock): New macro/function.
45250         (gl_recursive_lock_lock): Define as wrapper around
45251         glthread_recursive_lock_lock.
45252         (glthread_recursive_lock_unlock): New macro/function.
45253         (gl_recursive_lock_unlock): Define as wrapper around
45254         glthread_recursive_lock_unlock.
45255         (glthread_recursive_lock_destroy): New macro/function.
45256         (gl_recursive_lock_destroy): Define as wrapper around
45257         glthread_recursive_lock_destroy.
45258         (glthread_once): New macro/function.
45259         (gl_once): Define as wrapper around glthread_once.
45260         Update function declarations.
45261         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
45262         glthread_rwlock_init. Return error code.
45263         (glthread_rwlock_rdlock_multithreaded): Renamed from
45264         glthread_rwlock_rdlock. Return error code.
45265         (glthread_rwlock_wrlock_multithreaded): Renamed from
45266         glthread_rwlock_wrlock. Return error code.
45267         (glthread_rwlock_unlock_multithreaded): Renamed from
45268         glthread_rwlock_unlock. Return error code.
45269         (glthread_rwlock_destroy_multithreaded): Renamed from
45270         glthread_rwlock_destroy. Return error code.
45271         (glthread_recursive_lock_init_multithreaded): Renamed from
45272         glthread_recursive_lock_init. Return error code.
45273         (glthread_recursive_lock_lock_multithreaded): Renamed from
45274         glthread_recursive_lock_lock. Return error code.
45275         (glthread_recursive_lock_unlock_multithreaded): Renamed from
45276         glthread_recursive_lock_unlock. Return error code.
45277         (glthread_recursive_lock_destroy_multithreaded): Renamed from
45278         glthread_recursive_lock_destroy. Return error code.
45279         (glthread_once_call): Make static.
45280         (glthread_once_multithreaded): Renamed from glthread_once.
45281         * lib/tls.h: Include <errno.h>.
45282         (glthread_tls_key_init): New macro/function.
45283         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
45284         (glthread_tls_set): New macro/function.
45285         (gl_tls_set): Define as wrapper around glthread_tls_set.
45286         (glthread_tls_key_destroy): New macro/function.
45287         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
45288         Update function declarations.
45289         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
45290         glthread_tls_get.
45291         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45292
45293 2008-08-04  Eric Blake  <ebb9@byu.net>
45294
45295         gnumakefile: use space, not TAB, outside of targets
45296         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
45297
45298 2008-08-02  Jim Meyering  <meyering@redhat.com>
45299
45300         getdate.y: avoid locale-dependent date parsing failure
45301         In Turkish locales, getdate would fail to recognize keywords
45302         containing a lowercase "i".  The solution is not to rely on
45303         locale-sensitive case-conversion.
45304         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
45305         (lookup_word): Use c_toupper in place of toupper.
45306         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
45307         Reported by Vefa Bicakci <bicave@superonline.com> in
45308         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
45309         * modules/getdate (Depends-on): Add c-ctype.
45310
45311 2008-08-02  Bruno Haible  <bruno@clisp.org>
45312
45313         * gnulib-tool (func_import): When updating or creating a .gitignore
45314         file, prepend each added line with a slash, and ignore leading slashes
45315         from the existing lines.
45316         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45317
45318 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45319
45320         Portability fix for GNU make 3.79.1.
45321         * top/GNUmakefile: Avoid 'else COND', which older GNU make
45322         versions do not understand.
45323
45324 2008-08-01  Bruno Haible  <bruno@clisp.org>
45325
45326         Work around bug of HP-UX 10.20 cc with -0.0 literal.
45327         * tests/test-isnanf.h (zero): New variable.
45328         (main): Avoid literal -0.0f.
45329         * tests/test-isnand.h (zero): New variable.
45330         (main): Avoid literal -0.0.
45331         * tests/test-isnanl.h (zero): New variable.
45332         (main): Avoid literal -0.0L.
45333         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
45334         (test_float, test_double, test_long_double): Avoid literals -0.0f,
45335         -0.0, -0.0L.
45336         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
45337         (test_signbitd): Avoid literal -0.0.
45338         (test_signbitl): Avoid literal -0.0L.
45339         * tests/test-ceilf1.c (zero): New variable.
45340         (main): Avoid literal -0.0f.
45341         * tests/test-ceill.c (zero): New variable.
45342         (main): Avoid literal -0.0L.
45343         * tests/test-floorf1.c (zero): New variable.
45344         (main): Avoid literal -0.0f.
45345         * tests/test-floorl.c (zero): New variable.
45346         (main): Avoid literal -0.0L.
45347         * tests/test-roundf1.c (zero): New variable.
45348         (main): Avoid literal -0.0f.
45349         * tests/test-round1.c (zero): New variable.
45350         (main): Avoid literal -0.0.
45351         * tests/test-roundl.c (zero): New variable.
45352         (main): Avoid literal -0.0L.
45353         * tests/test-truncf1.c (zero): New variable.
45354         (main): Avoid literal -0.0f.
45355         * tests/test-trunc1.c (zero): New variable.
45356         (main): Avoid literal -0.0.
45357         * tests/test-truncl.c (zero): New variable.
45358         (main): Avoid literal -0.0L.
45359         * tests/test-frexp.c (zero): New variable.
45360         (main): Avoid literal -0.0.
45361         * tests/test-frexpl.c (zero): New variable.
45362         (main): Avoid literal -0.0L.
45363         * tests/test-ldexpl.c (zero): New variable.
45364         (main): Avoid literal -0.0L.
45365         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45366         (zerod, zerol): New variables.
45367         (test_function): Avoid literals -0.0, -0.0L.
45368         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45369         (zerod, zerol): New variables.
45370         (test_function): Avoid literals -0.0, -0.0L.
45371         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45372         (zerod, zerol): New variables.
45373         (test_function): Avoid literals -0.0, -0.0L.
45374         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45375         (zerod, zerol): New variables.
45376         (test_function): Avoid literals -0.0, -0.0L.
45377         * tests/test-strtod.c (zero): New variable.
45378         (main): Avoid literal -0.0.
45379         Reported by Jonathan C. Patschke <jp@centtech.com>.
45380
45381 2008-07-31  Jim Meyering  <meyering@redhat.com>
45382
45383         sha256.h: correct definition of SHA224_DIGEST_SIZE
45384         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
45385         Reported by Paulie Pena IV <paulie4@gmail.com>.
45386         Define as 224 / 8, rather than as a literal.
45387         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
45388         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
45389         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
45390
45391 2008-07-31  Bruno Haible  <bruno@clisp.org>
45392
45393         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
45394         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
45395         Reported by Jonathan Patschke <jp@centtech.com>.
45396
45397 2008-07-31  Bruno Haible  <bruno@clisp.org>
45398
45399         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
45400         Reported by Paolo Bonzini <bonzini@gnu.org>.
45401
45402 2008-07-30  Eric Blake  <ebb9@byu.net>
45403
45404         test-strtod: allow compilation without -lm
45405         * tests/test-strtod.c (main): Avoid link dependence on fabs.
45406         Reported by Dennis Clarke <blastwave@gmail.com>.
45407
45408 2008-07-28  Jim Meyering  <meyering@redhat.com>
45409
45410         bootstrap: work also when there are no .po files in po/
45411         * build-aux/bootstrap (update_po_files): Complete the change
45412         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
45413
45414 2008-07-27  Jim Meyering  <meyering@redhat.com>
45415
45416         * users.txt: Add zile.
45417
45418 2008-07-26  Ben Pfaff  <blp@gnu.org>
45419
45420         Add missing dependencies on new m4/exponent[fdl].m4 files.
45421         * modules/isnanf-nolibm: Add m4/exponentf.m4.
45422         * modules/isnand-nolibm: Add m4/exponentd.m4.
45423         * modules/isnanl-nolibm: Add m4/exponentl.m4.
45424         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
45425         m4/isnan[fdl].m4, because the macros actually used moved.
45426         Reported by Jim Meyering.
45427
45428 2008-07-14  Ben Pfaff  <blp@gnu.org>
45429
45430         Add isinf module.
45431         * lib/isinf.c: New file.
45432         * lib/math.in.h: Define isinf macro if we have decided to replace
45433         it.
45434         * m4/isinf.m4: New file.
45435         * m4/math_h.m4: Initialize and substitute variables for isinf
45436         module.
45437         * modules/isinf: New file.
45438         * modules/isinf-tests: New file.
45439         * modules/math: Add substitutions for new module.
45440         * tests/test-isinf.c: New file.
45441         * doc/posix-functions/isinf.texi: Mention new module.
45442         * MODULES.html.sh: Mention new module.
45443
45444 2008-07-14  Ben Pfaff  <blp@gnu.org>
45445
45446         Factor out some macros for use by additional modules.
45447         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
45448         exponentf.m4.
45449         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
45450         exponentd.m4.
45451         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
45452         file exponentl.m4.
45453         * m4/exponentf.m4: New file.
45454         * m4/exponentd.m4: New file.
45455         * m4/exponentl.m4: New file.
45456         * modules/isnanf: Use new file m4/exponentf.m4.
45457         * modules/isnand: Use new file m4/exponentd.m4.
45458         * modules/isnanl: Use new file m4/exponentl.m4.
45459
45460 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
45461
45462         mktime.c: normalize tp->tm_isdst value to -1/0/1.
45463         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
45464         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
45465         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
45466
45467         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
45468         readlink on platforms without PATH_MAX.
45469
45470 2008-07-21  Eric Blake  <ebb9@byu.net>
45471
45472         Warn, not fail, on stale version.
45473         * top/GNUmakefile (_curr-ver): Tone down previous patch.
45474
45475         Don't allow installation with stale devel version number.
45476         * top/GNUmakefile (_is-install-target): New macro.
45477         (_curr-ver): Forbid installation with stale version number.
45478
45479 2008-07-20  Bruno Haible  <bruno@clisp.org>
45480
45481         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
45482         TESTS_ENVIRONMENT.
45483         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
45484
45485 2008-07-20  Bruno Haible  <bruno@clisp.org>
45486
45487         * lib/c-stack.h (c_stack_action): Add documentation.
45488         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
45489
45490 2008-07-20  Bruno Haible  <bruno@clisp.org>
45491
45492         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
45493         * modules/readlink (License): Likewise.
45494
45495 2008-07-17  Eric Blake  <ebb9@byu.net>
45496
45497         * modules/c-stack (Link): Fix typo.
45498
45499         Make c-stack use libsigsegv, when available.
45500         * modules/c-stack (Depends-on): Add libsigsegv.
45501         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
45502         needed.
45503         * lib/c-stack.c (SIGSTKSZ): Define fallback.
45504         (segv_handler, overflow_handler, c_stack_action)
45505         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
45506         implementation when libsigsegv is available, but only when using
45507         the library is necessary.
45508         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
45509         comment, explaining why XSI check fails on Linux.
45510         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
45511         * tests/test-c-stack2.sh: Tweak skip message.
45512         * NEWS: Document new link-time requirements.
45513
45514 2008-07-16  Eric Blake  <ebb9@byu.net>
45515
45516         c-stack: Expose false positives when not using libsigsegv.
45517         * modules/c-stack-tests (Files): Expand test.
45518         * tests/test-c-stack.c (main): Add means to conditionally trigger
45519         non-overflow SIGSEGV.
45520         * tests/test-c-stack2.sh: New file.
45521
45522 2008-07-14  Bruno Haible  <bruno@clisp.org>
45523
45524         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45525         Reported by Eric Blake.
45526
45527 2008-07-14  Sam Steingold  <sds@gnu.org>
45528             Bruno Haible  <bruno@clisp.org>
45529
45530         New module libsigsegv.
45531         * modules/libsigsegv: New file.
45532         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45533         modifications.
45534         * MODULES.html.sh (Signal handling): New section.
45535
45536 2008-07-14  Bruno Haible  <bruno@clisp.org>
45537
45538         * modules/unictype/ctype-* (Description): Add the word "function".
45539         Improves the resulting doc in MODULES.html.
45540
45541 2008-07-12  Ben Pfaff  <blp@gnu.org>
45542
45543         Add longlong module.
45544         * modules/longlong: New file.
45545
45546 2008-07-12  Bruno Haible  <bruno@clisp.org>
45547
45548         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45549         to empty.
45550
45551 2008-07-10  Ben Pfaff  <blp@gnu.org>
45552
45553         Add isnan module.
45554         * doc/posix-functions/isnan.texi: Mention new module.
45555         * lib/math.in.h: Define isnan macro if we have decided to replace
45556         it.
45557         * m4/isnan.m4: New file.
45558         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45559         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45560         also.
45561         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45562         redundancy.
45563         * m4/math_h.m4: Initialize and substitute variables for isnan
45564         module.
45565         * modules/isnan: New file.
45566         * modules/isnan-tests: New file.
45567         * modules/math: Add substitutions for new module.
45568         * tests/test-isnan.c: New file.
45569         * MODULES.html.sh: Mention new module.
45570
45571 2008-07-10  Ben Pfaff  <blp@gnu.org>
45572
45573         Add isnanf module.
45574         * lib/isnanf.m4: New file.
45575         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45576         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45577         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45578         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45579         * modules/isnanf: New file.
45580         * modules/isnanf-tests: New file.
45581         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45582         files.
45583         * tests/test-isnanf-nolibm.c: factored most of its contents into
45584         new file tests/test-isnanf.h.
45585         * tests/test-isnanf.h: New file.
45586         * tests/test-isnanf.c: New file.
45587         * MODULES.html.sh: Mention new module.
45588         * doc/glibc-functions/isnanf.texi: Mention new module.
45589
45590 2008-07-10  Ben Pfaff  <blp@gnu.org>
45591
45592         Add isnand module.
45593         * lib/isnand.h: New file.
45594         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45595         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45596         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45597         functionality also.
45598         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45599         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45600         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45601         * modules/isnand: New file.
45602         * modules/isnand-tests: New file.
45603         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45604         files.
45605         * tests/test-isnand-nolibm.c: factored most of its contents into
45606         new file tests/test-isnand.h.
45607         * tests/test-isnand.h: New file.
45608         * tests/test-isnand.c: New file.
45609         * MODULES.html.sh: Mention new module.
45610
45611 2008-07-10  Ben Pfaff  <blp@gnu.org>
45612
45613         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45614         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45615         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45616         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45617         * modules/isnanf-nolibm: Update references to renamed files.
45618         * modules/isnand-nolibm: Likewise.
45619         * modules/isnanf-nolibm-tests: Likewise.
45620         * modules/isnand-nolibm-tests: Likewise.
45621         * lib/frexp.c: Likewise.
45622         * lib/isfinite.c: Likewise.
45623         * lib/signbitd.c: Likewise.
45624         * lib/signbitf.c: Likewise.
45625         * lib/vasnprintf.c: Likewise.
45626         * tests/test-ceilf1.c: Likewise.
45627         * tests/test-ceilf2.c: Likewise.
45628         * tests/test-floorf1.c: Likewise.
45629         * tests/test-floorf2.c: Likewise.
45630         * tests/test-frexp.c: Likewise.
45631         * tests/test-round1.c: Likewise.
45632         * tests/test-round2.c: Likewise.
45633         * tests/test-roundf1.c: Likewise.
45634         * tests/test-strtod.c: Likewise.
45635         * tests/test-trunc1.c: Likewise.
45636         * tests/test-trunc2.c: Likewise.
45637         * tests/test-truncf1.c: Likewise.
45638         * tests/test-truncf2.c: Likewise.
45639         * NEWS: Mention the renamed header files.
45640
45641 2008-07-11  Jim Meyering  <meyering@redhat.com>
45642
45643         vc-list-files: make the last-resort awk code more portable
45644         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45645         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45646         does not support it.
45647
45648 2008-07-10  Eric Blake  <ebb9@byu.net>
45649
45650         Work with tar's bootstrap.
45651         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45652         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45653         an m4 comment.
45654
45655 2008-07-09  Jim Meyering  <meyering@redhat.com>
45656
45657         posix-shell.m4: fix typo that made this test malfunction
45658         * m4/posix-shell.m4: Remove capitalization in variable name.
45659
45660 2008-07-08  Bruno Haible  <bruno@clisp.org>
45661
45662         * m4/onceonly.m4: Update comments.
45663         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45664
45665 2008-07-04  Jim Meyering  <meyering@redhat.com>
45666
45667         * users.txt: Add vc-dwim.
45668         (bison, coreutils): Use the gitweb URL.
45669
45670 2008-07-03  Jim Meyering  <meyering@redhat.com>
45671
45672         * users.txt: Add libffcall.  From Sam Steingold.
45673
45674 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45675
45676         getdate.y: do not ignore TZ with relative day, month or year offset
45677         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45678         relative-date-handling, since otherwise, the latter would clobber the
45679         sole output (an updated Start value) of the tz-handling block.
45680         * tests/test-getdate.c: Tests for the fix
45681
45682 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45683
45684         Recognize 'foo_LIBRARIES += libgnu.a'.
45685         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45686         makefile snippet has already specified an installation location,
45687         also using '+='.
45688
45689 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45690
45691         getdate.y: factor out common actions
45692         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45693         Use them in place of open-coded actions.
45694
45695 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45696
45697         Add self-test for getdate module.
45698         * modules/getdate-tests: New file.
45699         * tests/test-getdate.c: New file.
45700
45701 2008-06-29  Bruno Haible  <bruno@clisp.org>
45702
45703         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45704         .gitignore.
45705         Reported by Sylvain Beucler <beuc@beuc.net>.
45706
45707 2008-06-29  Bruno Haible  <bruno@clisp.org>
45708
45709         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45710         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45711
45712 2008-06-29  Bruno Haible  <bruno@clisp.org>
45713
45714         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45715         EXTRA_DIST.
45716         Reported by Sylvain Beucler <beuc@beuc.net>.
45717
45718 2008-06-26  Jim Meyering  <meyering@redhat.com>
45719
45720         make several modules depend on the "open" module
45721         This provides slightly increased consistency when opening-for-write
45722         the name of a non-directory spelled with a trailing slash.
45723         * modules/chdir-safer: Likewise.
45724         * modules/chown: Likewise.
45725         * modules/clean-temp: Likewise.
45726         * modules/copy-file: Likewise.
45727         * modules/fchdir: Likewise.
45728         * modules/fcntl-safer: Likewise.
45729         * modules/pipe: Likewise.
45730         * modules/utime: Likewise.
45731         Prompted by Eric Blake and Bruno Haible.
45732
45733 2008-06-24  Andreas Schwab  <schwab@suse.de>
45734
45735         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45736         literals can be used as initializers for global variables.
45737
45738 2008-06-23  Eric Blake  <ebb9@byu.net>
45739
45740         Make gnulib-cache.m4 easier to diff.
45741         * gnulib-tool (func_import): Allow newlines when reading cached
45742         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45743
45744 2008-06-23  Bruno Haible  <bruno@clisp.org>
45745
45746         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45747         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45748         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45749         m4/signalblocking.m4.
45750         (gl_PREREQ_SIGACTION): Don't invoke it.
45751         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45752         gl_PREREQ_SIG_HANDLER_H.
45753         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45754         Don't check for sigaction here.
45755
45756 2008-06-23  Bruno Haible  <bruno@clisp.org>
45757
45758         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45759         (install_handlers): Don't set the SA_RESETHAND flag.
45760
45761 2008-06-23  Bruno Haible  <bruno@clisp.org>
45762
45763         * m4/sigaction.m4: Comment fixes.
45764         * lib/signal.in.h: Likewise.
45765
45766 2008-06-23  Eric Blake  <ebb9@byu.net>
45767
45768         Fix typo.
45769         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45770
45771         Avoid SA_ namespace.
45772         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45773         Reported by Ralf Wildenhues.
45774
45775         Avoid test failure due to SA_RESTORER.
45776         * tests/test-sigaction.c (SA_MASK): New macro.
45777         (main): Avoid failing due to extension flags being set.
45778         Reported by Jim Meyering.
45779
45780         Revert use of sig-handler.h in sigprocmask.c.
45781         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45782         it requires the existence of struct sigaction.
45783         * lib/sigprocmask.c (handler_t): Restore typedef.
45784         (rpl_signal, old_handlers): Use local type.
45785
45786 2008-06-22  Bruno Haible  <bruno@clisp.org>
45787
45788         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45789         conditionally.
45790         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45791
45792 2008-06-22  Bruno Haible  <bruno@clisp.org>
45793
45794         * doc/posix-functions/siginterrupt.texi: Move note.
45795
45796         * lib/signal.in.h (SA_RESTART): New macro.
45797         * lib/sigaction.c: Update comment.
45798
45799         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45800
45801         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45802         (gl_PREREQ_SIGPROCMASK): Invoke it.
45803         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45804
45805         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45806
45807         * lib/sigprocmask.c: Update a comment.
45808
45809 2008-06-21  Eric Blake  <ebb9@byu.net>
45810
45811         Use sigaction module rather than signal().
45812         * modules/c-stack (Depends-on): Add sigaction.
45813         * modules/fatal-signal (Depends-on): Likewise.
45814         * modules/nanosleep (Depends-on): Likewise.
45815         * modules/sigprocmask (Files): Add sig-handler.h.
45816         * modules/sigaction (Files): Likewise.
45817         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45818         Eggert.
45819         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45820         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45821         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45822         (init_fatal_signals): Likewise.
45823         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45824         (siginterrupt): Delete fallback.
45825         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45826         instead.
45827         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45828         siginterrupt.
45829
45830         New module sigaction, for mingw.
45831         * modules/sigaction: New module...
45832         * modules/sigaction-tests: ...and its test.
45833         * m4/sigaction.m4: New file.
45834         * lib/sigaction.c: Likewise.
45835         * tests/test-sigaction.c: Likewise.
45836         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45837         * modules/signal (Makefile.am): Likewise.
45838         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45839         needed.
45840         * doc/posix-headers/signal.texi (signal.h): Mention provided
45841         types.
45842         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45843         that sigaction is preferable.
45844         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45845         module.
45846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45847         sigaction.
45848
45849         Improve robustness of sigprocmask by overriding signal.
45850         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45851         is in use.
45852         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45853         (SIGKILL, SIGSTOP): Provide fallbacks.
45854         (rpl_signal): Implement.
45855         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45856         signal can be called inside handlers.
45857
45858         Fix nanosleep module on mingw.
45859         * modules/nanosleep (Depends-on): Add sys_select.
45860         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45861
45862         Fix licensing of sigprocmask.
45863         * modules/raise (License): Relicense as LGPL.
45864
45865 2008-06-21  Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45868         result if it contains question marks.
45869         Reported by Michael Geng <linux@michaelgeng.de>.
45870
45871 2008-06-19  Bruno Haible  <bruno@clisp.org>
45872
45873         Fix CVS-ism.
45874         * doc/gnulib.texi: Include updated-stamp.texi.
45875         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45876         (updated-stamp.texi): New rule.
45877         (gnulib.info): Depend on it.
45878         * doc/.gitignore: Add updated-stamp.texi.
45879         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45880
45881 2008-06-19  Bruno Haible  <bruno@clisp.org>
45882
45883         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45884         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45885
45886 2008-06-19  Eric Blake  <ebb9@byu.net>
45887
45888         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45889         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45890         Reported by Stepan Kasal.
45891
45892 2008-06-18  Bruno Haible  <bruno@clisp.org>
45893
45894         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45895         Reported by Eric Blake.
45896
45897 2008-06-18  Eric Blake  <ebb9@byu.net>
45898
45899         Work around cygwin 1.5.25 strsignal bug.
45900         * tests/test-strsignal.c: Allow for const char *.
45901         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45902
45903 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45904
45905         * users.txt: Update URL to article and add author/date
45906         information.
45907
45908 2008-06-17  Bruno Haible  <bruno@clisp.org>
45909
45910         New macro gl_DISABLE_THREADS.
45911         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45912         if the user did not pass --enable-threads or --disable-threads option.
45913         (gl_DISABLE_THREADS): New macro.
45914         Reported by Eric Blake <ebb9@byu.net>.
45915
45916 2008-06-17  Bruno Haible  <bruno@clisp.org>
45917
45918         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45919         when the macro ignores it.
45920         Based on a patch by Eric Blake <ebb9@byu.net>.
45921
45922 2008-06-17  Bruno Haible  <bruno@clisp.org>
45923
45924         * modules/tls (License): Change to LGPLv2+.
45925         Reported by Eric Blake.
45926
45927 2008-06-17  Eric Blake  <ebb9@byu.net>
45928
45929         Simplify c-stack prerequisites.
45930         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45931         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45932         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45933         check.
45934         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45935         <sys/resource.h>.
45936
45937         Move c-stack test into testsuite.
45938         * modules/c-stack-tests: New file.
45939         * lib/c-stack.c [DEBUG]: Move test program...
45940         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45941         fail test if sigaltstack is lacking.
45942         * tests/test-c-stack.sh: New driver file.
45943
45944 2008-06-16  Eric Blake  <ebb9@byu.net>
45945
45946         Use raise module consistently.
45947         * modules/fatal-signal (Depends-on): Add raise.
45948         * modules/sigprocmask (Depends-on): Likewise.
45949         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45950         * lib/sigprocmask.c (sigprocmask): Likewise.
45951         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45952         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45953
45954         Fix compliance bug in sigpending.
45955         * lib/sigprocmask.c (sigpending): Return pending array via
45956         parameter, not return value.
45957
45958 2008-06-14  Eric Blake  <ebb9@byu.net>
45959
45960         Improve obstack-printf test code.
45961         * tests/test-obstack-printf.c (test_function): Fix comment, and
45962         simplify usage of obstack_* in macros.  Add a test for coverage.
45963         Reported by Bruno Haible.
45964
45965 2008-06-14  Bruno Haible  <bruno@clisp.org>
45966
45967         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45968         array size as a constant, not as a const variable.
45969         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45970         AC_USE_SYSTEM_EXTENSIONS.
45971         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45972         Test whether the obstack_printf function actually exists.
45973         * modules/obstack-printf (Depends-on): Add extensions.
45974         (Include): Remove obstack.h.
45975         * modules/obstack-printf-posix (Depends-on): Add extensions.
45976         (Include): Remove obstack.h.
45977
45978 2008-06-13  Eric Blake  <ebb9@byu.net>
45979
45980         Add obstack-printf and obstack-printf-posix modules.
45981         * modules/obstack-printf: New file.
45982         * modules/obstack-printf-posix: Likewise.
45983         * MODULES.html.sh (Misc): Mention them.
45984         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45985         Likewise.
45986         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45987         Likewise.
45988         * modules/stdio (Makefile.am): Accomodate new modules.
45989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45990         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45991         Declare.
45992         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45993         functions.
45994         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45995         (gl_REPLACE_OBSTACK_PRINTF): New macros
45996         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45997         * tests/test-obstack-printf.c: New file.
45998         * modules/obstack-printf-tests: Likewise.
45999         * modules/obstack-printf-posix-tests: Likewise.
46000
46001 2008-06-11  Bruno Haible  <bruno@clisp.org>
46002
46003         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
46004         * lib/open.c: Include errno.h.
46005         (open): Fail when attempting to write to a file that has a trailing
46006         slash.
46007         * tests/test-open.c (main): Test against trailing slash bug.
46008         * doc/posix-functions/open.texi: Mention the trailing slash bug.
46009
46010 2008-06-10  Bruno Haible  <bruno@clisp.org>
46011
46012         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
46013         for $? to work inside the trap command, with various /bin/sh-s.
46014         * tests/test-vc-list-files-cvs.sh: Likewise.
46015
46016 2008-06-10  Bruno Haible  <bruno@clisp.org>
46017
46018         * lib/acl-internal.h: Don't include gettext.h here.
46019         * lib/set-mode-acl.c: Include gettext.h here.
46020         * lib/copy-acl.c: Likewise.
46021
46022 2008-06-10  Bruno Haible  <bruno@clisp.org>
46023
46024         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
46025         * lib/wait-process.c (wait_subprocess): Likewise.
46026         * lib/execute.h (execute): Add termsigp argument.
46027         * lib/execute.c (execute): Likewise.
46028         * lib/csharpcomp.c (compile_csharp_using_pnet,
46029         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
46030         * lib/csharpexec.c (execute_csharp_using_pnet,
46031         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
46032         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
46033         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
46034         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
46035         is_jikes_present): Update.
46036         * lib/javaexec.c (execute_java_class): Update.
46037         * lib/javaversion.c (execute_and_read_line): Update.
46038         * NEWS: Document the changes.
46039         Reported by Eric Blake.
46040
46041 2008-06-10  Eric Blake  <ebb9@byu.net>
46042
46043         Add missing include.
46044         * tests/test-strstr.c (includes): Add <signal.h>.
46045         * tests/test-strcasestr.c (includes): Likewise.
46046         * tests/test-memmem.c (includes): Likewise.
46047
46048 2008-06-10  Bruno Haible  <bruno@clisp.org>
46049
46050         * lib/wait-process.c (wait_subprocess): Add an assertion.
46051
46052 2008-06-10  Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
46055
46056 2008-06-10  Bruno Haible  <bruno@clisp.org>
46057
46058         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
46059         using alarm().
46060         * tests/test-strcasestr.c (main): Likewise.
46061         * tests/test-strstr.c (main): Likewise.
46062
46063 2008-06-09  Bruno Haible  <bruno@clisp.org>
46064
46065         Work around the Solaris 10 ACE ACLs ABI change.
46066         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
46067         declare if ACL_NO_TRIVIAL is present.
46068         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
46069         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
46070         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
46071         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
46072         define if ACL_NO_TRIVIAL is present.
46073         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
46074         and use the current ABI.
46075         (file_has_acl): Use same #if condition as elsewhere.
46076         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
46077         in use, and use the current ABI.
46078         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
46079         Reported by Jim Meyering.
46080
46081 2008-06-09  Eric Blake  <ebb9@byu.net>
46082
46083         Work around environments that (stupidly) ignore SIGALRM.
46084         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
46085         before using alarm().
46086         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46087         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46088         Reported by Ian Beckwith <ianb@erislabs.net>.
46089
46090         Produce autobuild blurb earlier in log.
46091         * modules/autobuild (configure.ac-early): Move AB_INIT here.
46092
46093 2008-06-09  Jim Meyering  <meyering@redhat.com>
46094         and OndÅ™ej Vašík  <ovasik@redhat.com>
46095
46096         utimens.c: correct kernel bug work-around
46097         OndÅ™ej Vašík found that the invalid return value of 280 indicates
46098         failure, not success, and the kernel bug we're trying to work
46099         around affects not just the utimensat call, but also the fallback
46100         futimens call.
46101         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
46102         not success.
46103         [HAVE_FUTIMENS]: Use the same work-around, here.
46104
46105 2008-06-09  Jim Meyering  <meyering@redhat.com>
46106
46107         add more guards around definition of ACE_-related code
46108         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
46109         ALLOW and ACE_OWNER are also defined.
46110
46111 2008-06-08  Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/acl-internal.h: Add me as co-author.
46114         * lib/file-has-acl.c: Likewise.
46115         * lib/set-mode-acl.c: Likewise.
46116         * lib/copy-acl.c: Likewise.
46117
46118 2008-06-08  Bruno Haible  <bruno@clisp.org>
46119
46120         Add support for AIX ACLs.
46121         * lib/acl-internal.h (acl_nontrivial): New declaration.
46122         * lib/file-has-acl.c (acl_nontrivial): New function.
46123         (file_has_acl): Add implementation using AIX 4 ACL API.
46124         * lib/set-mode-acl.c (qset_acl): Likewise.
46125         * lib/copy-acl.c (qcopy_acl): Likewise.
46126
46127 2008-06-08  Bruno Haible  <bruno@clisp.org>
46128
46129         Add support for HP-UX ACLs.
46130         * lib/acl-internal.h (acl_nontrivial): New declaration.
46131         * lib/file-has-acl.c (acl_nontrivial): New function.
46132         (file_has_acl): Add implementation using HP-UX 11 ACL API.
46133         * lib/set-mode-acl.c (qset_acl): Likewise.
46134         * lib/copy-acl.c (qcopy_acl): Likewise.
46135
46136 2008-06-08  Bruno Haible  <bruno@clisp.org>
46137
46138         Add support for Cygwin ACLs.
46139         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
46140         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
46141         the chmod_or_fchmod call.
46142         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
46143
46144 2008-06-08  Bruno Haible  <bruno@clisp.org>
46145
46146         Fix bug with setuid modes in Solaris 10+ code.
46147         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
46148         succeeded, when the mode contains some special bits.
46149
46150 2008-06-08  Bruno Haible  <bruno@clisp.org>
46151
46152         Add support for Solaris 7..10 ACLs.
46153         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
46154         declarations.
46155         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
46156         functions.
46157         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
46158         * lib/set-mode-acl.c (qset_acl): Likewise.
46159         * lib/copy-acl.c (qcopy_acl): Likewise.
46160
46161 2008-06-08  Bruno Haible  <bruno@clisp.org>
46162
46163         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
46164         declaration.
46165         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
46166         (acl_access_nontrivial): Remove MacOS X case.
46167         (file_has_acl): Use acl_extended_nontrivial.
46168         * lib/copy-acl.c (qcopy_acl): Likewise.
46169
46170 2008-06-08  Bruno Haible  <bruno@clisp.org>
46171
46172         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
46173
46174 2008-06-08  Jim Meyering  <meyering@redhat.com>
46175
46176         * modules/acl (Maintainer): Add Bruno Haible.
46177
46178 2008-06-07  Bruno Haible  <bruno@clisp.org>
46179
46180         Improve support for Tru64 ACLs.
46181         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
46182         ACL on OSF/1.
46183
46184 2008-06-07  Bruno Haible  <bruno@clisp.org>
46185
46186         Add support for MacOS X ACLs.
46187         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
46188         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
46189         * lib/set-mode-acl.c (qset_acl): Likewise.
46190         * lib/copy-acl.c (qcopy_acl): Likewise.
46191
46192 2008-06-07  Bruno Haible  <bruno@clisp.org>
46193
46194         Fix memory leak introduced on 2008-05-22.
46195         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
46196         use.
46197
46198 2008-06-07  Bruno Haible  <bruno@clisp.org>
46199
46200         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
46201         to construct an empty ACL.
46202
46203 2008-06-07  Bruno Haible  <bruno@clisp.org>
46204
46205         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
46206         precisely.
46207         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
46208
46209 2008-06-07  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
46212         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
46213
46214 2008-06-07  Bruno Haible  <bruno@clisp.org>
46215
46216         * doc/posix-functions/_setjmp.texi: Explain the use of this function
46217         regardless of POSIX.
46218         * doc/posix-functions/_longjmp.texi: Likewise.
46219         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
46220         SystemV platform in this case.
46221
46222 2008-06-06  Eric Blake  <ebb9@byu.net>
46223
46224         Document abort() bugs.
46225         * doc/posix-functions/abort.texi (abort): Mention anomalies.
46226
46227         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
46228         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
46229         sigsetjmp.
46230         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
46231         siglongjmp, but only as a macro.
46232         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
46233         is obsolete.
46234         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
46235
46236         Tweak documentation to cover cygwin argz bugs.
46237         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
46238         argz bug fix; no code change needed since no cygwin releases
46239         occurred between the last fix and the bug being tested.
46240         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
46241         module and recently fixed cygwin bugs.
46242         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
46243         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
46244         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
46245         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
46246         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
46247         Likewise.
46248         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
46249         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
46250         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
46251         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
46252         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
46253         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
46254         Likewise.
46255
46256         Avoid gcc warning on cygwin.
46257         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46258         !ACL_NO_TRIVIAL]: Avoid unused variable.
46259
46260 2008-06-05  Eric Blake  <ebb9@byu.net>
46261
46262         Be tolerant of UNKNOWN version in gnulib-tool test dir.
46263         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
46264         git-version-gen fails to come up with a version.
46265         Reported by Simon Josefsson.
46266
46267 2008-06-05  Jim Meyering  <meyering@redhat.com>
46268             Paul Eggert  <eggert@cs.ucla.edu>
46269
46270         utimens.c: work around a probable Linux kernel bug
46271         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
46272         appears to be a kernel bug that causes utimensat to return 280
46273         instead of 0, indicating success.
46274
46275 2008-06-04  Bruno Haible  <bruno@clisp.org>
46276
46277         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
46278         2008-06-01 commit.
46279
46280 2008-06-04  Bruno Haible  <bruno@clisp.org>
46281
46282         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
46283         * lib/file-has-acl.c (acl_access_nontrivial): New function.
46284         (file_has_acl): Use it. Save errno afterwards.
46285         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
46286
46287 2008-06-03  Bruno Haible  <bruno@clisp.org>
46288
46289         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
46290         draft code. Simplify #ifs.
46291         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
46292         Put Solaris code after POSIX-draft code. Fix comments regarding
46293         Solaris 10, HP-UX. Mention Cygwin.
46294         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
46295
46296 2008-06-03  Eric Blake  <ebb9@byu.net>
46297
46298         Provide fallback for older kernels.
46299         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
46300         Provide runtime fallback if kernel lacks support.
46301         Reported by Mike Frysinger.
46302
46303 2008-06-02  Bruno Haible  <bruno@clisp.org>
46304
46305         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
46306         it exists.
46307
46308 2008-06-02  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
46311         * lib/copy-acl.c (qcopy_acl): Update comment.
46312
46313 2008-06-02  Bruno Haible  <bruno@clisp.org>
46314
46315         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
46316         like ACL APIs.
46317
46318 2008-06-02  Bruno Haible  <bruno@clisp.org>
46319
46320         * tests/test-file-has-acl.sh: Use different code for Cygwin.
46321         * tests/test-set-mode-acl.sh: Likewise.
46322         * tests/test-copy-acl.sh: Likewise.
46323         * tests/test-copy-file.sh: Likewise.
46324
46325 2008-06-02  Bruno Haible  <bruno@clisp.org>
46326
46327         * tests/test-file-has-acl.sh: Remove unused code.
46328
46329 2008-06-01  Bruno Haible  <bruno@clisp.org>
46330
46331         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
46332         (copy_acl): Just a wrapper around qcopy_acl that emits the error
46333         messages.
46334         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
46335
46336 2008-06-01  Bruno Haible  <bruno@clisp.org>
46337
46338         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
46339         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
46340         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
46341         APIs.
46342         * modules/acl-tests (configure.ac): Remove tests now contained in
46343         m4/acl.m4.
46344
46345 2008-06-02  Jim Meyering  <meyering@redhat.com>
46346
46347         announce-gen: use a better key-server host name
46348         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
46349         it may be more consistently reliable.  Suggested by Werner Koch
46350         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
46351
46352 2008-06-01  Bruno Haible  <bruno@clisp.org>
46353
46354         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
46355         Reported by Voroskoi Andras <voroskoi@gmail.com>.
46356
46357 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
46358
46359         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
46360
46361 2008-06-01  Bruno Haible  <bruno@clisp.org>
46362
46363         New ACL tests.
46364         * tests/test-file-has-acl.sh: New file.
46365         * tests/test-file-has-acl.c: New file.
46366         * tests/test-set-mode-acl.sh: New file.
46367         * tests/test-set-mode-acl.c: New file.
46368         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
46369         * tests/test-copy-acl.c: New file.
46370         * modules/acl-tests: New file, based on modules/copy-file-tests.
46371         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
46372         (Depends-on): Add acl-tests.
46373         (configure.ac): Remove checks.
46374         (Makefile.am): Don't create test-sameacls program here any more.
46375
46376 2008-06-01  Bruno Haible  <bruno@clisp.org>
46377
46378         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
46379         * tests/test-sameacls.c: Include progname.h.
46380         (main): Invoke set_program_name. Portability fixes for MacOS X,
46381         Solaris, HP-UX.
46382
46383 2008-06-01  Bruno Haible  <bruno@clisp.org>
46384
46385         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
46386         function.
46387         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
46388
46389 2008-06-01  Bruno Haible  <bruno@clisp.org>
46390
46391         * modules/rpmatch (Depends-on): Add strdup.
46392
46393 2008-06-01  Bruno Haible  <bruno@clisp.org>
46394
46395         * lib/pipe.c: Include unistd-safer.h.
46396         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
46397         * modules/pipe (Depends-on): Add unistd-safer.
46398
46399 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46400
46401         * modules/autobuild (configure.ac): Call AB_INIT.
46402
46403 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46404
46405         * tests/test-getaddrinfo.c: Don't print debug messages by default.
46406         Suggested by Bruno Haible <bruno@clisp.org>.
46407
46408 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46409
46410         * tests/test-base64.c: Cast size_t to unsigned long when invoking
46411         printf.  Use %lu instead of %d.  Reported by Bruno Haible
46412         <bruno@clisp.org>.
46413
46414 2008-05-29  Eric Blake  <ebb9@byu.net>
46415
46416         Prefer new POSIX 200x interfaces over futimesat.
46417         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
46418         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
46419         when available.
46420         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
46421
46422 2008-05-28  Bruno Haible  <bruno@clisp.org>
46423
46424         * modules/stpcpy (License): Change to LGPLv2+.
46425         Requested by David Lutterkort <dlutter@redhat.com>.
46426
46427 2008-05-27  Bruno Haible  <bruno@clisp.org>
46428
46429         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
46430         current mingw.
46431         Reported by Jose E. Marchesi <jemarch@gnu.org>.
46432
46433 2008-05-27  Bruno Haible  <bruno@clisp.org>
46434
46435         * modules/iconv_open (Link): New section, from module 'iconv'.
46436         * modules/striconv (Link): Likewise.
46437         * modules/striconveh (Link): Likewise.
46438         * modules/xstriconv (Link): Likewise.
46439         * modules/unicodeio (Link): Likewise.
46440         * modules/propername (Link): Likewise.
46441         Reported by Jim Meyering.
46442
46443 2008-05-26  Jim Meyering  <meyering@redhat.com>
46444
46445         sha256: do not artificially restrict buffer length to be < 2^32
46446         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
46447         uint32_t to size_t.
46448         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
46449         to match.
46450
46451         avoid unaligned access errors, e.g., on sparc
46452         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
46453         direct access through a possibly-unaligned uint64* pointer.
46454         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
46455         direct access through a possibly-unaligned uint32* pointer.
46456         Prompted by this patch from Tom "spot" Callaway:
46457         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
46458
46459         sha512.c: fix typo in comment
46460         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
46461
46462 2008-05-25  Bruno Haible  <bruno@clisp.org>
46463
46464         * lib/set-mode-acl.c: Renamed from lib/acl.c.
46465         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
46466         (Makefile.am): Update lib_SOURCES.
46467
46468 2008-05-25  Bruno Haible  <bruno@clisp.org>
46469
46470         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
46471
46472 2008-05-25  Jim Meyering  <meyering@redhat.com>
46473
46474         useless-if-before-free: freed expr may have white-space differences
46475         * build-aux/useless-if-before-free: Recognize cases in which the
46476         freed expression differs from the tested one in embedded white
46477         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
46478         $1 was used, so we can't make any regexp shy.  Improved tests now
46479         detect this.
46480
46481         useless-if-before-free: accept white space in the expression.
46482         * build-aux/useless-if-before-free: For now, any white space
46483         in the expression must be identical in the free argument.
46484
46485         useless-if-before-free: efficiency tweak
46486         * build-aux/useless-if-before-free: Make the expression-matching
46487         regexp "shy".
46488         Make the *outer* regexp shy, not the expr-matching one.
46489
46490         update code-in-comment to accept cast of free arg
46491         * build-aux/useless-if-before-free: Update regexp.
46492
46493 2008-05-25  Bruno Haible  <bruno@clisp.org>
46494
46495         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
46496         * modules/copy-file-tests (Files, Makefile.am): Update.
46497         * tests/test-copy-file.c (func_test_copy): Update.
46498
46499 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
46500
46501         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
46502
46503 2008-05-23  Bruno Haible  <bruno@clisp.org>
46504
46505         Improve support for ACLs on OSF/1.
46506         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
46507         Remove fallback for unknown flavors of ACLs.
46508
46509 2008-05-22  Bruno Haible  <bruno@clisp.org>
46510
46511         Add support for ACLs on OSF/1.
46512         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46513         replacements.
46514         (acl_free_text): New macro fallback.
46515         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46516         acl_free.
46517         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46518         acl_free_text function. Require AC_C_INLINE.
46519
46520 2008-05-22  Bruno Haible  <bruno@clisp.org>
46521
46522         Make copy_acl work on MacOS X 10.5.
46523         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46524         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46525         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46526         If MODE_INSIDE_ACL, don't assume that every system has the same text
46527         representation for ACLs as FreeBSD.
46528         * lib/copy-acl.c (copy_acl): Add support for platforms with
46529         !MODE_INSIDE_ACL.
46530         * lib/file-has-acl.c (file_has_acl): Likewise.
46531         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46532         FreeBSD, MacOS X, or IRIX, respectively.
46533
46534 2008-05-22  Bruno Haible  <bruno@clisp.org>
46535
46536         * lib/acl.h: Don't include <sys/acl.h>.
46537         (GETACLCNT): Move fallback to lib/acl-internal.h.
46538         * lib/acl-internal.h: Include <sys/acl.h> here.
46539         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46540
46541 2008-05-22  Bruno Haible  <bruno@clisp.org>
46542
46543         Split off copy_acl function to separate file.
46544         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46545         * lib/acl.c (copy_acl): Moved function to separate file.
46546         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46547         * modules/acl (Files): Add lib/copy-acl.c.
46548         (Makefiles.am): Augment lib_SOURCES.
46549
46550 2008-05-22  Bruno Haible  <bruno@clisp.org>
46551
46552         * modules/copy-file-tests: New file.
46553         * tests/test-copy-file.sh: New file.
46554         * tests/test-copy-file.c: New file.
46555         * tests/test-copy-file-sameacls.c: New file.
46556
46557 2008-05-22  Eric Blake  <ebb9@byu.net>
46558
46559         Avoid gcc warning.
46560         * tests/test-memcmp.c (main): Pass NULL indirectly.
46561
46562 2008-05-21  Bruno Haible  <bruno@clisp.org>
46563
46564         Add reference doc about ACLs.
46565         * doc/acl-resources.txt: New file.
46566         * doc/acl-cygwin.txt: New file.
46567
46568 2008-05-21  Bruno Haible  <bruno@clisp.org>
46569
46570         Avoid one more warning from gcc.
46571         * lib/vasnprintf.c (IF_LINT): Update comments.
46572         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46573
46574 2008-05-21  Jim Meyering  <meyering@redhat.com>
46575
46576         avoid a warning from gcc
46577         * lib/vasnprintf.c (IF_LINT): Define.
46578         (scale10_round_decimal_long_double):
46579         Use it to avoid a "may be used uninitialized" warning.
46580         (scale10_round_decimal_double): Likewise.
46581
46582 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46583
46584         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46585         declared.
46586
46587 2008-05-20  Bruno Haible  <bruno@clisp.org>
46588
46589         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46590         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46591
46592 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46593
46594         * modules/memcmp-tests: New file.
46595         * tests/test-memcmp.c: New file.
46596
46597 2008-05-19  Bruno Haible  <bruno@clisp.org>
46598
46599         * modules/propername (Notice, configure.ac): Put quoted "..." into
46600         --keyword option.
46601         * lib/propername.h: Update comments accordingly.
46602         Reported by Eric Blake.
46603
46604 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46605
46606         * modules/getpass-gnu (Depends-on): Add fseeko.
46607
46608 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46609
46610         * modules/base64-tests: New file.
46611
46612 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46613
46614         * lib/base64.c (base64_decode_ctx): If a decode context structure
46615         was passed in use it to ignore newlines.  If a context structure
46616         was _not_ passed in, continue to treat newlines as garbage (this
46617         is the historical behavior).  Formerly base64_decode.
46618         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46619         takes a decode context structure.
46620         * lib/base64.h (base64_decode): Macro for four-argument calls.
46621         (base64_decode_alloc): Likewise.
46622         * lib/base64.c (base64_decode_ctx): If a decode context structure
46623         was passed in use it to ignore newlines.  If a context structure
46624         was _not_ passed in, continue to treat newlines as garbage (this
46625         is the historical behavior).  Formerly base64_decode.
46626         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46627         takes a decode context structure.
46628         * lib/base64.h (base64_decode): Macro for four-argument calls.
46629         (base64_decode_alloc): Likewise.
46630
46631 2008-05-19  Jim Meyering  <meyering@redhat.com>
46632
46633         avoid a warning from gcc
46634         * lib/trim.c (IF_LINT): Define.
46635         (trim2): Use it to avoid a "may be used uninitialized" warning.
46636
46637         Fix doc typo.
46638         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46639
46640 2008-05-19  Bruno Haible  <bruno@clisp.org>
46641
46642         * doc/glibc-functions/getpass.texi: Document limits of other
46643         implementations.
46644
46645 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46646             Bruno Haible <bruno@clisp.org>
46647
46648         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46649
46650 2008-05-18  Bruno Haible  <bruno@clisp.org>
46651
46652         * modules/propername: New file, from GNU gettext.
46653         * lib/propername.h: New file, from GNU gettext.
46654         * lib/propername.c: New file, from GNU gettext.
46655         * MODULES.html.sh (Internationalization functions): Add propername.
46656
46657 2008-05-16  Jim Meyering  <meyering@redhat.com>
46658             Bruno Haible  <bruno@clisp.org>
46659
46660         Avoid some warnings from "gcc -Wshadow".
46661         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46662
46663 2008-05-15  Eric Blake  <ebb9@byu.net>
46664
46665         Extend previous patch to cygwin 1.7.0.
46666         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46667         fast implementation in cygwin >= 1.7.0.
46668         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46670
46671 2008-05-15  Bruno Haible  <bruno@clisp.org>
46672
46673         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46674         implementation in glibc >= 2.9.
46675         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46677
46678 2008-05-15  Bruno Haible  <bruno@clisp.org>
46679
46680         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46681         (Unicode string functions): Add unilbrk/*.
46682         Reported by Karl Berry.
46683
46684 2008-05-15  Eric Blake  <ebb9@byu.net>
46685
46686         Fix violation of <stdbool.h> replacement in regex.
46687         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46688         * lib/regexec.c (re_search_internal): Likewise.
46689         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46690
46691 2008-05-15  Jim Meyering  <meyering@redhat.com>
46692
46693         avoid distracting test output when git or cvs is not found
46694         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46695         * tests/test-vc-list-files-git.sh: Likewise.
46696
46697 2008-05-15  Eric Blake  <ebb9@byu.net>
46698
46699         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46700         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46701         glibc version.
46702         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46703         * doc/posix-functions/strstr.texi (strstr): Likewise.
46704         * lib/str-two-way.h (MAX): Sychronize with glibc.
46705
46706 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46707
46708         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46709         opr.ctx_type.
46710         (calc_first): Initialize constraint field.
46711         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46712         Fix grammar.
46713         (duplicate_node): Merge constraint field for all node types.
46714         (calc_eclosure_iter): Look at constraint field for all node types.
46715         * lib/regex_internal.c (create_cd_newstate): Don't look at
46716         opr.ctx_type.
46717
46718 2008-05-14  Bruno Haible  <bruno@clisp.org>
46719
46720         Help GCC to do better code generation.
46721         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46722         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46723         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46724         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46725         Declare with attribute 'malloc' if supported.
46726
46727 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46728
46729         use "echo STR|wc -c" rather than unportable "expr length STR"
46730         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46731         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46732
46733 2008-05-14  Jim Meyering  <meyering@redhat.com>
46734
46735         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46736         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46737         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46738         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46739         via Collin Lasse.
46740
46741 2008-05-14  Eric Blake  <ebb9@byu.net>
46742
46743         Avoid quadratic growth in gl_LIBSOURCES.
46744         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46745         Suggested by Bruno Haible.
46746
46747         Test xmemdup0.
46748         * modules/xmemdup0-tests: New file.
46749         * tests/test-xmemdup0.c: Likewise.
46750
46751 2008-05-13  Eric Blake  <ebb9@byu.net>
46752
46753         Split xmemdup0 into its own module.
46754         * modules/xmemdup0: New file.
46755         * lib/xmemdup0.h: Likewise.
46756         * lib/xmemdup0.c: Likewise.
46757         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46758         * lib/xalloc.h (xmemdup0): Remove.
46759         * lib/xmalloc.c (xmemdup0): Likewise.
46760
46761 2008-05-13  Eric Blake  <ebb9@byu.net>
46762             Bruno Haible  <bruno@clisp.org>
46763
46764         Reduce number of forks required during autoconf.
46765         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46766         and gl_LIBSOURCES_DIR.
46767         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46768         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46769         m4_syscmd per file.
46770         <m4_foreach_w>: Move...
46771         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46772
46773 2008-05-13  Eric Blake  <ebb9@byu.net>
46774
46775         * gnulib-tool: Fix various comment typos.
46776
46777 2008-05-12  Bruno Haible  <bruno@clisp.org>
46778
46779         Tailor the linebreaking algorithm.
46780         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46781
46782 2008-05-12  Bruno Haible  <bruno@clisp.org>
46783
46784         Update to Unicode 5.0.0.
46785         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46786         LBP_JV, LBP_JT. Redistribute values.
46787         (unilbrk_table): Change size.
46788         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46789         Unicode TR#14 rev. 22.
46790         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46791         LBP_JV, LBP_JT. Redistribute values.
46792         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46793         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46794         Update.
46795         * lib/unilbrk/lbrkprop1.h: Regenerated.
46796         * lib/unilbrk/lbrkprop2.h: Regenerated.
46797         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46798         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46799         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46800         Likewise.
46801         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46802         Likewise.
46803         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46804         result.
46805         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46806         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46807         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46808         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46809         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46810         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46811
46812 2008-05-11  Bruno Haible  <bruno@clisp.org>
46813
46814         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46815
46816 2008-05-11  Bruno Haible  <bruno@clisp.org>
46817
46818         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46819         * modules/unilbrk/gen-lbrk: New file.
46820
46821 2008-05-11  Bruno Haible  <bruno@clisp.org>
46822
46823         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46824         * m4/sha512.m4 (gl_SHA512): Likewise.
46825
46826 2008-05-11  Jim Meyering  <meyering@redhat.com>
46827
46828         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46829         * modules/crypto/sha256: New file.
46830         * modules/crypto/sha512: Likewise.
46831         * lib/sha256.c: Likewise.
46832         * lib/sha256.h: Likewise.
46833         * lib/sha512.c: Likewise.
46834         * lib/sha512.h: Likewise.
46835         * lib/u64.h: Likewise.
46836         * m4/sha256.m4: Likewise.
46837         * m4/sha512.m4: Likewise.
46838         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46839
46840 2008-05-10  Bruno Haible  <bruno@clisp.org>
46841
46842         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46843         (Input/Output <stdio.h>): Add xprintf.
46844         (Signal handling <signal.h>): Add strsignal.
46845         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46846         (Core language properties): Add func.
46847         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46848         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46849         strings.
46850         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46851         (Input/output): New section.
46852         (File system functions): Add openat-die, stat-macros.
46853         (Networking functions): Add sockets.
46854         (Unicode string functions): Add unictype/*.
46855         (Support for building libraries and executables): Add gperf.
46856         (Support for building documentation): Add agpl-3.0.
46857         (Misc): Add nocrash.
46858
46859 2008-05-10  Bruno Haible  <bruno@clisp.org>
46860
46861         * modules/unictype/gen-ctype: New file.
46862
46863 2008-05-10  Jim Meyering  <meyering@redhat.com>
46864
46865         Make chdir-safer.c more efficient on a system with no symlinks.
46866         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46867         also if ELOOP is zero.  Suggested by Bruno Haible.
46868
46869         Make chdir-safer.c slightly safer.
46870         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46871         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46872
46873         Avoid compile failure on systems without ELOOP (like mingw).
46874         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46875         Reported by Bruno Haible.
46876
46877 2008-05-10  Bruno Haible  <bruno@clisp.org>
46878
46879         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46880         (is_utf8_encoding): Use a case-insensitive comparison.
46881         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46882         streq.
46883
46884 2008-05-10  Bruno Haible  <bruno@clisp.org>
46885
46886         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46887         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46888         * lib/unilbrk/ulc-common.h (iconv_string_length,
46889         iconv_string_keeping_offsets): Remove declarations.
46890         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46891         Don't include <iconv.h>, streq.h, xsize.h.
46892         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46893         conversion.
46894         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46895         <iconv.h>, streq.h, xsize.h.
46896         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46897         conversion.
46898         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46899         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46900         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46901         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46902
46903 2008-05-10  Bruno Haible  <bruno@clisp.org>
46904
46905         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46906         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46907
46908         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46909         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46910
46911         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46912         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46913
46914         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46915         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46916
46917         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46918         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46919
46920         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46921         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46922
46923         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46924         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46925
46926         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46927         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46928
46929 2008-05-10  Bruno Haible  <bruno@clisp.org>
46930
46931         Split up 'linebreak' module.
46932         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46933         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46934         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46935         modifications.
46936         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46937         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46938         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46939         lib/linebreak.c.
46940         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46941         lib/linebreak.c.
46942         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46943         lib/linebreak.c.
46944         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46945         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46946         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46947         lib/linebreak.c.
46948         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46949         lib/linebreak.c.
46950         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46951         lib/linebreak.c.
46952         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46953         lib/linebreak.c.
46954         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46955         lib/linebreak.c.
46956         * modules/unilbrk/base: New file.
46957         * modules/unilbrk/tables: New file.
46958         * modules/unilbrk/u8-possible-linebreaks: New file.
46959         * modules/unilbrk/u16-possible-linebreaks: New file.
46960         * modules/unilbrk/u32-possible-linebreaks: New file.
46961         * modules/unilbrk/ulc-common: New file.
46962         * modules/unilbrk/ulc-possible-linebreaks: New file.
46963         * modules/unilbrk/u8-width-linebreaks: New file.
46964         * modules/unilbrk/u16-width-linebreaks: New file.
46965         * modules/unilbrk/u32-width-linebreaks: New file.
46966         * modules/unilbrk/ulc-width-linebreaks: New file.
46967         * lib/linebreak.h: Remove file.
46968         * lib/linebreak.c: Remove file.
46969         * m4/linebreak.m4: Remove file.
46970         * modules/linebreak: Remove file.
46971         * NEWS: Mention the changes.
46972
46973 2008-05-09  Eric Blake  <ebb9@byu.net>
46974
46975         Add xmemdup0.
46976         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46977         implementation.
46978         * lib/xmalloc.c (xmemdup0): New C implementation.
46979
46980 2008-05-08  Bruno Haible  <bruno@clisp.org>
46981
46982         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46983
46984 2008-05-07  Eric Blake  <ebb9@byu.net>
46985
46986         Support cross-compilation of <wctype.h>.
46987         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46988         AC_CACHE_CHECK.
46989
46990 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46991
46992         * build-aux/vc-list-files: Add support for bzr.
46993
46994 2008-05-03  Jim Meyering  <meyering@redhat.com>
46995
46996         avoid failed assertion with tight malloc
46997         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46998
46999 2008-05-03  Simon Josefsson  <simon@josefsson.org>
47000
47001         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
47002         are needed from arpa/inet.h.
47003         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
47004         Reported by Bruno Haible.
47005
47006 2008-05-02  Jim Meyering  <meyering@redhat.com>
47007
47008         avoid compilation error on FreeBSD 6
47009         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
47010
47011 2008-05-01  Jim Meyering  <meyering@redhat.com>
47012
47013         useless-if-before-free: correct --help's exit status description
47014         * build-aux/useless-if-before-free (usage): Like grep, exit 0
47015         for one or more matches, etc.  Reported by Bruno Haible.
47016
47017         vc-list-files: make the stand-alone gnulib test work
47018         * modules/vc-list-files-tests (configure.ac):
47019         Define and AC_SUBST abs_aux_dir.
47020         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
47021         $(abs_top_srcdir) to each script and having each of them
47022         duplicate the work of setting PATH, set PATH here, using
47023         the new variable, abs_aux_dir instead.
47024         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
47025         * tests/test-vc-list-files-git.sh: Likewise.
47026         Reported by Bruno Haible.
47027
47028 2008-05-01  Bruno Haible  <bruno@clisp.org>
47029
47030         * lib/getndelim2.c (getndelim2): Fix newsize computation during
47031         reallocation. Rename 'done' to 'found_delimiter'.
47032
47033 2008-05-01  Jim Meyering  <meyering@redhat.com>
47034
47035         vc-list-files: accommodate /bin/sh like the one from Solaris 10
47036         * build-aux/vc-list-files: Use `...`, not $(...).
47037
47038 2008-04-30  Jim Meyering  <meyering@redhat.com>
47039
47040         add tests for vc-list-files
47041         * modules/vc-list-files-tests: New module.
47042         * tests/test-vc-list-files-cvs.sh: New file.
47043         * tests/test-vc-list-files-git.sh: New file.
47044
47045         avoid a warning from gcc
47046         * lib/getndelim2.c (IF_LINT): Define.
47047         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
47048
47049         vc-list-files: work properly with build-aux/cvsu, too
47050         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
47051         to all cvs-based clauses.
47052
47053         vc-list-files: work properly in the CVS+awk case, too
47054         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
47055
47056         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
47057         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
47058         take more than one file argument, so .  Add quotes, just in case $dir
47059         ever contains a shell meta-character.  Prompted by Soren Hansen in
47060         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
47061
47062 2008-04-29  Eric Blake  <ebb9@byu.net>
47063
47064         Optimize getndelim2 to use block operations when possible.
47065         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
47066         freadseek, and memchr2.
47067         * lib/getndelim2.c (getndelim2): Use them for block reads.
47068
47069 2008-04-29  Bruno Haible  <bruno@clisp.org>
47070
47071         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
47072         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47073         * modules/inet_ntop (Depends-on): Add extensions.
47074         * modules/inet_pton (Depends-on): Likewise.
47075         Reported by Simon Josefsson.
47076
47077 2008-04-29  Jim Meyering  <meyering@redhat.com>
47078
47079         When the is more than one match in a block, match all of them.
47080         * build-aux/useless-if-before-free: Iterate through each block
47081         until there are no more matches.
47082
47083         Fix broken useless-if-before-free script.
47084         * build-aux/useless-if-before-free: Fix typo: missing "?" after
47085         the expression to match cast of argument to free-like function.
47086
47087 2008-04-29  Eric Blake  <ebb9@byu.net>
47088
47089         Use new header.
47090         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
47091
47092 2008-04-29  Jim Meyering  <meyering@redhat.com>
47093
47094         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
47095         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
47096         by gnulib to exist and to declare e.g., inet_ntop.
47097         Don't include "inet_ntop.h", now removed.
47098
47099         * m4/arpa_inet_h.m4: Remove trailing blanks.
47100
47101 2008-04-29  Eric Blake  <ebb9@byu.net>
47102
47103         Silence valgrind on safe reads beyond potential array bounds.
47104         * lib/rawmemchr.valgrind: New file.
47105         * lib/strchrnul.valgrind: Likewise.
47106         * modules/rawmemchr (Files): Distribute new file.
47107         * modules/strchrnul (Files): Likewise.
47108         Suggested by Bruno Haible.
47109
47110 2008-04-29  Bruno Haible  <bruno@clisp.org>
47111
47112         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
47113         (inet_ntop, inet_pton): Change portability warning's wording.
47114         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
47115         Invoke gl_CHECK_NEXT_HEADERS.
47116         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
47117         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
47118         set ARPA_INET_H.
47119         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47120         * modules/arpa_inet (Description): No longer only for systems that
47121         lack it.
47122         (Depends-on): Add include_next.
47123         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
47124         HAVE_ARPA_INET_H.
47125
47126 2008-04-29  Jim Meyering  <meyering@redhat.com>
47127
47128         * modules/mkdir (License): Re-license as LGPLv2+.
47129
47130 2008-04-29  Bruno Haible  <bruno@clisp.org>
47131
47132         * modules/rawmemchr (Maintainer): Set to Eric.
47133         * modules/strchrnul (Maintainer): Likewise.
47134
47135 2008-04-29  Simon Josefsson  <simon@josefsson.org>
47136
47137         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
47138         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
47139
47140         * modules/arpa_inet (arpa/inet.h): Use them.
47141
47142 2008-04-28  Eric Blake  <ebb9@byu.net>
47143
47144         Test getndelim2.
47145         * modules/getndelim2-tests: New file.
47146         * tests/test-getndelim2.c: Likewise.
47147         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
47148         stream.
47149         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
47150
47151         * MODULES.html.sh: Document new module.
47152
47153 2008-04-20  Bruno Haible  <bruno@clisp.org>
47154
47155         * lib/c-stack.c (die): Use raise.
47156         * modules/c-stack (Depends-on): Add raise.
47157
47158 2008-04-28  Bruno Haible  <bruno@clisp.org>
47159
47160         Expect rpmatch to be declared.
47161         * lib/yesno.c (rpmatch): Remove declaration.
47162
47163         Declare rpmatch.
47164         * lib/stdlib.in.h (rpmatch): New declaration.
47165         * lib/rpmatch.c: Include <stdlib.h> first.
47166         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
47167         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
47168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
47169         HAVE_RPMATCH.
47170         * modules/rpmatch (Depends-on): Add stdlib, extensions.
47171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47172         (Include): Set to <stdlib.h>.
47173         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
47174         HAVE_RPMATCH.
47175         * NEWS: Document the change.
47176
47177 2008-04-28  Bruno Haible  <bruno@clisp.org>
47178
47179         Change rpmatch to use nl_langinfo when appropriate.
47180         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
47181         (N_): New macro.
47182         (localized_pattern): New function/macro.
47183         (try): Remove match, nomatch arguments. Copy the pattern into safe
47184         memory before caching it.
47185         (rpmatch): Use localized_pattern. Add translator comments.
47186         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
47187         Suggested by Eric Blake.
47188         * modules/rpmatch (Depends-on): Add stdbool.
47189
47190 2008-04-28  Eric Blake  <ebb9@byu.net>
47191
47192         Add rawmemchr module, matching glibc.
47193         * modules/string (Makefile.am): New indicator.
47194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
47195         * lib/string.in.h (rawmemchr): Declare when appropriate.
47196         * modules/rawmemchr: New file.
47197         * m4/rawmemchr.m4: Likewise.
47198         * lib/rawmemchr.c: Likewise.
47199         * modules/rawmemchr-tests: Likewise.
47200         * tests/test-rawmemchr.c: Likewise.
47201         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
47202         module.
47203         * modules/strchrnul (Depends-on): Add rawmemchr.
47204         * lib/strchrnul.c (strchrnul): Optimize a corner case.
47205
47206         Whitespace cleanup.
47207         * tests/test-strchrnul.c: Reindent.
47208         * lib/strchrnul.c: Likewise.
47209
47210         Optimize and test strchrnul.
47211         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
47212         * modules/strchrnul-tests: New file.
47213         * tests/test-strchrnul.c: Likewise.
47214
47215         Remove intprops dependency.
47216         * modules/memchr (Depends-on): Remove intprops.
47217         * modules/memrchr (Depends-on): Likewise.
47218         * modules/memchr2 (Depends-on): Likewise.
47219         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
47220         * lib/memrchr.c (__memrchr): Likewise.
47221         * lib/memrchr2.c (memchr2): Likewise.
47222         Reported by Simon Josefsson.
47223
47224 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47225
47226         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
47227         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47228
47229 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47230
47231         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
47232
47233         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
47234
47235         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
47236
47237         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
47238         declarations.
47239         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
47240
47241         * m4/inet_pton.m4: Don't check for header files.
47242
47243         * m4/inet_ntop.m4: Don't check for header files.
47244
47245 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47246
47247         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
47248         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
47249         trigger for cygwin).
47250         Reported by Bruno Haible  <bruno@clisp.org>.
47251
47252 2008-04-28  Bruno Haible  <bruno@clisp.org>
47253
47254         * doc/posix-functions/strdup.texi: Mention mingw problem.
47255
47256 2008-04-27  Bruno Haible  <bruno@clisp.org>
47257
47258         * modules/stat-time-tests (Depends-on): Add sleep.
47259         * tests/test-stat-time.c (force_unlink): New function.
47260         (cleanup): Use it.
47261         (test_mtime): Remove the ctime related tests.
47262         (test_ctime): New function, containing the ctime related tests.
47263         (main): Call test_ctime, except on native Windows platforms.
47264
47265 2008-04-27  Bruno Haible  <bruno@clisp.org>
47266
47267         * lib/rpmatch.c (rpmatch): Add some comments.
47268         Reported by James Youngman <jay@gnu.org>.
47269
47270 2008-04-27  Bruno Haible  <bruno@clisp.org>
47271
47272         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
47273         quiet NaNs.
47274
47275 2008-04-27  Bruno Haible  <bruno@clisp.org>
47276
47277         Make test-yesno.sh work on mingw.
47278         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
47279         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
47280         (main): Set stdin to binary mode.
47281         * modules/yesno-tests (Depends-on): Add binary-io.
47282
47283 2008-04-27  Bruno Haible  <bruno@clisp.org>
47284
47285         Fix 'isfinite' on x86, x86_64, ia64 platforms.
47286         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
47287         argument that lie outside the IEEE 854 domain.
47288         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
47289         (gl_ISFINITE): Use it.
47290         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
47291
47292 2008-04-27  Bruno Haible  <bruno@clisp.org>
47293
47294         Allow local renaming in config.h.
47295         * lib/memrchr.c (memrchr): Don't undefine outside libc.
47296
47297 2008-04-27  Bruno Haible  <bruno@clisp.org>
47298
47299         * lib/memchr.c (__memchr): Change type of 'i'.
47300         * lib/memchr2.c (memchr2): Likewise.
47301
47302 2008-04-26  Eric Blake  <ebb9@byu.net>
47303         and Bruno Haible  <bruno@clisp.org>
47304
47305         Optimize and test memrchr.
47306         * modules/memrchr (Depends-on): Add intprops.
47307         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
47308         * modules/memrchr-tests: New file.
47309         * tests/test-memrchr.c: New file.
47310
47311 2008-04-26  Bruno Haible  <bruno@clisp.org>
47312
47313         Add tentative support for DragonFly BSD.
47314         * lib/stdio-impl.h: Add macros for DragonFly BSD.
47315         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
47316         fp.
47317         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47318         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
47319         * lib/fpurge.c (fpurge): Likewise.
47320         * lib/freadable.c (freaadable): Likewise.
47321         * lib/freadahead.c (freadahead): Likewise.
47322         * lib/freading.c (freading): Likewise.
47323         * lib/freadptr.c (freadptr): Likewise.
47324         * lib/freadseek.c (freadptrinc): Likewise.
47325         * lib/fseeko.c (fseeko): Likewise.
47326         * lib/fseterr.c (fseterr): Likewise.
47327         * lib/fwritable.c (fwritable): Likewise.
47328         * lib/fwriting.c (fwriting): Likewise.
47329
47330 2008-04-26  Bruno Haible  <bruno@clisp.org>
47331
47332         * lib/stdio-impl.h: New file.
47333         * lib/fbufmode.c: Include stdio-impl.h.
47334         (fbufmode): Use fp_, remove redundant #defines.
47335         * lib/fflush.c: Include stdio-impl.h.
47336         (clear_ungetc_buffer): Remove redundant #defines.
47337         * lib/fpurge.c: Include stdio-impl.h.
47338         (fpurge): Remove redundant #defines.
47339         * lib/freadable.c: Include stdio-impl.h.
47340         (freadable): Remove redundant #defines.
47341         * lib/freadahead.c: Include stdio-impl.h.
47342         (freadahead): Remove redundant #defines.
47343         * lib/freading.c: Include stdio-impl.h.
47344         (freading): Remove redundant #defines.
47345         * lib/freadptr.c: Include stdio-impl.h.
47346         (freadptr): Remove redundant #defines.
47347         * lib/freadseek.c: Include stdio-impl.h.
47348         (freadptrinc): Remove redundant #defines.
47349         * lib/fseeko.c: Include stdio-impl.h.
47350         (rpl_fseeko): Remove redundant #defines.
47351         * lib/fseterr.c: Include stdio-impl.h.
47352         (fseterr): Remove redundant #defines.
47353         * lib/fwritable.c: Include stdio-impl.h.
47354         (fwritable: Remove redundant #defines.
47355         * lib/fwriting.c: Include stdio-impl.h.
47356         (fwriting): Remove redundant #defines.
47357         * modules/fbufmode (Files): Add lib/stdio-impl.h.
47358         * modules/fflush (Files): Likewise.
47359         * modules/fpurge (Files): Likewise.
47360         * modules/freadable (Files): Likewise.
47361         * modules/freadahead (Files): Likewise.
47362         * modules/freading (Files): Likewise.
47363         * modules/freadptr (Files): Likewise.
47364         * modules/freadseek (Files): Likewise.
47365         * modules/fseeko (Files): Likewise.
47366         * modules/fseterr (Files): Likewise.
47367         * modules/fwritable (Files): Likewise.
47368         * modules/fwriting (Files): Likewise.
47369
47370 2008-04-26  Bruno Haible  <bruno@clisp.org>
47371
47372         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47373         restore_seek_optimization, update_fpos_cache): New functions, extracted
47374         from rpl_fflush.
47375         (rpl_fflush): Use them.
47376         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
47377         (gl_REPLACE_FFLUSH): Use it.
47378
47379 2008-04-26  Bruno Haible  <bruno@clisp.org>
47380
47381         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
47382         on Solaris.
47383         * tests/test-xstrtoimax.sh: Likewise.
47384         * tests/test-xstrtoumax.sh: Likewise.
47385         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47386
47387 2008-04-26  Bruno Haible  <bruno@clisp.org>
47388
47389         * modules/memchr-tests: New file.
47390         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
47391
47392 2008-04-26  Eric Blake  <ebb9@byu.net>
47393             Bruno Haible  <bruno@clisp.org>
47394
47395         * lib/memchr.c: Include intprops.h.
47396         (__memchr): Optimize parallel detection of matching bytes. Rename local
47397         variables. Add explanatory comments.
47398
47399 2008-04-26  Bruno Haible  <bruno@clisp.org>
47400
47401         Fix module 'memchr', broken since 2000-10-28.
47402         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
47403
47404 2008-04-26  Bruno Haible  <bruno@clisp.org>
47405
47406         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
47407         comments.
47408
47409 2008-04-25  Eric Blake  <ebb9@byu.net>
47410
47411         Use native fstatat on cygwin 1.7.0.
47412         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
47413         first.
47414
47415 2008-04-23  Eric Blake  <ebb9@byu.net>
47416
47417         Improve memchr2 performance.
47418         * lib/memchr2.c (memchr2): Further optimize parallel detection of
47419         NUL bytes.
47420         * modules/memchr2 (Depends-on): Use intprops.h.
47421
47422 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47423
47424         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
47425         an inline function instead of a CPP macro.  Patch by Ben Pfaff
47426         <blp@cs.stanford.edu>.
47427
47428 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47429
47430         * lib/arpa_inet.in.h: New file.
47431
47432         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
47433         (Makefile.am): Sed in substitute header file.
47434
47435         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
47436         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
47437
47438         * modules/inet_ntop (configure.ac): Use
47439         gl_ARPA_INET_MODULE_INDICATOR.
47440
47441         * modules/inet_pton (configure.ac): Use
47442         gl_ARPA_INET_MODULE_INDICATOR.
47443
47444 2008-04-22  Jim Meyering  <meyering@redhat.com>
47445
47446         * modules/verify (License): Re-license as LGPLv2+.
47447
47448 2008-04-22  Simon Josefsson  <simon@josefsson.org>
47449
47450         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
47451         parameter to void* as per POSIX standard (MinGW uses char*).
47452
47453 2008-04-21  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47456         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47457         Define to replacements if REPLACE_ISWCNTRL is 1.
47458         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
47459         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
47460         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
47461         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
47462         what it fixes.
47463         * doc/posix-functions/iswalpha.texi: Likewise.
47464         * doc/posix-functions/iswblank.texi: Likewise.
47465         * doc/posix-functions/iswcntrl.texi: Likewise.
47466         * doc/posix-functions/iswdigit.texi: Likewise.
47467         * doc/posix-functions/iswgraph.texi: Likewise.
47468         * doc/posix-functions/iswlower.texi: Likewise.
47469         * doc/posix-functions/iswprint.texi: Likewise.
47470         * doc/posix-functions/iswpunct.texi: Likewise.
47471         * doc/posix-functions/iswspace.texi: Likewise.
47472         * doc/posix-functions/iswupper.texi: Likewise.
47473         * doc/posix-functions/iswxdigit.texi: Likewise.
47474         Reported by Alain Guibert.
47475
47476 2008-04-21  Bruno Haible  <bruno@clisp.org>
47477
47478         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
47479         Patch by Alain Guibert.
47480
47481 2008-04-21  Bruno Haible  <bruno@clisp.org>
47482
47483         Fix test failures on mingw.
47484         * tests/test-xstrtol.c (print_no_progname): New function.
47485         (main): Install it in error_print_progname hook.
47486         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
47487         * tests/test-xstrtoimax.sh: Likewise.
47488         * tests/test-xstrtoumax.sh: Likewise.
47489
47490 2008-04-21  Bruno Haible  <bruno@clisp.org>
47491
47492         Fix test failure on mingw.
47493         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47494
47495 2008-04-21  Bruno Haible  <bruno@clisp.org>
47496
47497         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
47498         Actually assign a value.
47499
47500 2008-04-20  Bruno Haible  <bruno@clisp.org>
47501
47502         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
47503         take 2.
47504         * lib/canonicalize.c (canonicalize_file_name): Elide if the
47505         'canonicalize-lgpl' module is also used.
47506         * lib/canonicalize-lgpl.c: Undo last change.
47507         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
47508
47509 2008-04-20  Bruno Haible  <bruno@clisp.org>
47510
47511         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47512         config.h. Provide _mkdir based fallback for mingw.
47513         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47514         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47515         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47516         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47517         rather than defining mkdir in config.h.
47518         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47519         (gl_SYS_STAT_H_DEFAULTS): New macro.
47520         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47521         HAVE_IO_H any more.
47522         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47523         HAVE_DECL_MKDIR and HAVE_IO_H.
47524
47525 2008-04-20  Bruno Haible  <bruno@clisp.org>
47526
47527         * lib/isapipe.c: Port to native Windows platforms.
47528
47529 2008-04-20  Bruno Haible  <bruno@clisp.org>
47530
47531         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47532
47533 2008-04-21  Eric Blake  <ebb9@byu.net>
47534
47535         Work around preprocessors that don't handle UINTMAX_MAX.
47536         * lib/memchr2.c (memchr2): Avoid embedded #if.
47537         Reported by Alain Guibert, fix suggested by Bruno Haible.
47538
47539 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47540
47541         * doc/posix-functions/strftime.texi (strftime): Explain better
47542         Windows incompatibility.  Suggested by Micah Cowan
47543         <micah@cowan.name>.
47544
47545 2008-04-20  Bruno Haible  <bruno@clisp.org>
47546
47547         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47548         unistr/u8-mblen.
47549
47550 2008-04-20  Bruno Haible  <bruno@clisp.org>
47551
47552         Fix test failure on platforms with non-GNU iconv.
47553         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47554         (U_TO_U8): Use it, rather than u16_to_u8.
47555         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47556         units at the end of the input string.
47557         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47558
47559 2008-04-20  Bruno Haible  <bruno@clisp.org>
47560
47561         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47562         when the resulting length is 0.
47563         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47564
47565 2008-04-20  Bruno Haible  <bruno@clisp.org>
47566
47567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47568         works.
47569         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47570
47571 2008-04-20  Bruno Haible  <bruno@clisp.org>
47572
47573         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47574         * modules/tsearch-tests (configure.ac): Test for initstate function.
47575
47576 2008-04-20  Bruno Haible  <bruno@clisp.org>
47577
47578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47579         for nlink_t if missing.
47580         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47581
47582 2008-04-19  Bruno Haible  <bruno@clisp.org>
47583
47584         Work around snprintf bug on Linux libc5.
47585         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47586         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47587         gl_SNPRINTF_SIZE1.
47588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47589         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47590         that test failed.
47591         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47592         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47593         * modules/snprintf (Files): Add m4/printf.m4.
47594         * modules/vsnprintf (Files): Likewise.
47595         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47596         * doc/posix-functions/vsnprintf.texi: Likewise.
47597
47598 2008-04-19  Bruno Haible  <bruno@clisp.org>
47599
47600         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47601         from 0.0058 to less than 10^-7.
47602
47603 2008-04-19  Bruno Haible  <bruno@clisp.org>
47604
47605         Fix rounding when a precision is given.
47606         * lib/vasnprintf.c (is_borderline): New function.
47607         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47608         9...9x.
47609         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47610         %e, %g.
47611         * tests/test-vasprintf-posix.c (test_function): Likewise.
47612         * tests/test-snprintf-posix.h (test_function): Likewise.
47613         * tests/test-sprintf-posix.h (test_function): Likewise.
47614         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47615         * tests/test-printf-posix.h (test_function): Likewise.
47616         * tests/test-printf-posix.output: Update.
47617         Reported by John Darrington <john@darrington.wattle.id.au> via
47618         Ben Pfaff <blp@cs.stanford.edu>.
47619
47620 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47621
47622         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47623         Suggested by Bruno Haible <bruno@clisp.org>.
47624
47625 2008-04-17  Bruno Haible  <bruno@clisp.org>
47626
47627         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47628         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47629         implementation.
47630         Patch by Bruce Merry <bmerry@gmail.com>.
47631
47632 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47633
47634         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47635         doesn't work under Windows.
47636
47637 2008-04-16  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47640         New macros.
47641         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47642         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47643         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47644         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47645         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47646         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47647         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47648         macros.
47649         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47650         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47651         Northern Sotho, Uighur.
47652
47653 2008-04-16  Bruno Haible  <bruno@clisp.org>
47654
47655         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47656         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47657         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47658         Reported by Daniel Bergström <daniel@octocode.com>.
47659
47660 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47661             Bruno Haible  <bruno@clisp.org>
47662
47663         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47664         function.
47665         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47666         New functions, mostly extracted from gl_locale_name_default.
47667         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47668
47669 2008-04-16  Eric Blake  <ebb9@byu.net>
47670
47671         Adjust strtod detection to catch glibc 2.7 bug.
47672         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47673         Reported by John Gatewood Ham.
47674
47675 2008-04-16  Bruno Haible  <bruno@clisp.org>
47676
47677         Add tentative support for Linux libc5.
47678         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47679         * lib/fpurge.c (fpurge): Likewise.
47680         * lib/freadable.c (freadable): Likewise.
47681         * lib/freadahead.c (freadahead): Likewise.
47682         * lib/freading.c (freading): Likewise.
47683         * lib/freadptr.c (freadptr): Likewise.
47684         * lib/freadseek.c (freadptrinc): Likewise.
47685         * lib/fseeko.c (rpl_fseeko): Likewise.
47686         * lib/fseterr.c (fseterr): Likewise.
47687         * lib/fwritable.c (fwritable): Likewise.
47688         * lib/fwriting.c (fwriting): Likewise.
47689         Reported by Alain Guibert <alguibert+bts@free.fr>.
47690
47691 2008-04-15  Bruno Haible  <bruno@clisp.org>
47692
47693         * modules/mathl (configure.ac): Define module indicator.
47694
47695 2008-04-15  Bruno Haible  <bruno@clisp.org>
47696
47697         * lib/logl.c (logl): Remove unused variables.
47698
47699 2008-04-15  Bruno Haible  <bruno@clisp.org>
47700
47701         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47702         fails.
47703
47704 2008-04-15  Bruno Haible  <bruno@clisp.org>
47705
47706         * lib/trim.c (trim2): Fix argument of isspace() macro.
47707
47708 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47709
47710         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47711         to 0.
47712         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47713
47714 2008-04-14  Bruno Haible  <bruno@clisp.org>
47715
47716         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47717         AC_LANG_PROGRAM argument.
47718         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47719         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47721         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47722         * m4/math_h.m4 (gl_MATH_H): Likewise.
47723         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47724         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47725         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47726         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47727         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47728         * m4/regex.m4 (gl_REGEX): Likewise.
47729         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47730         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47731         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47732         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47733         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47734         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47736         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47737
47738 2008-04-14  Jim Meyering  <meyering@redhat.com>
47739
47740         test-strtod: fix typos: s/abs/fabs/
47741         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47742
47743 2008-04-13  Bruno Haible  <bruno@clisp.org>
47744
47745         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47746         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47747         module is also used and while not building the reloc-wrapper.
47748
47749 2008-04-13  Bruno Haible  <bruno@clisp.org>
47750
47751         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47752
47753 2008-04-13  Bruno Haible  <bruno@clisp.org>
47754
47755         Fix AIX compilation failure introduced on 2008-04-02.
47756         * tests/test-frexp.c (exp): Undefine before redefining.
47757         * tests/test-frexpl.c (exp): Likewise.
47758
47759 2008-04-13  Bruno Haible  <bruno@clisp.org>
47760
47761         Work around a HP-UX stdio bug.
47762         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47763         * tests/test-ftello.c (main): Likewise.
47764         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47765         * doc/posix-functions/ftello.texi: Likewise.
47766
47767 2008-04-13  Bruno Haible  <bruno@clisp.org>
47768
47769         Make test-signbit pass on HP-UX/hppa.
47770         * tests/test-signbit.c (minus_zerol): New variable.
47771         (test_signbitl): Use it.
47772
47773 2008-04-13  Bruno Haible  <bruno@clisp.org>
47774
47775         Make truncl work on OSF/1 4.0.
47776         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47777         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47778         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47780         HAVE_DECL_TRUNCL.
47781         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47782         HAVE_DECL_TRUNCL.
47783         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47784
47785 2008-04-13  Bruno Haible  <bruno@clisp.org>
47786
47787         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47788
47789 2008-04-13  Bruno Haible  <bruno@clisp.org>
47790
47791         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47792         expression, so as to avoid HP-UX 11 cc compiler bug.
47793
47794 2008-04-13  Bruno Haible  <bruno@clisp.org>
47795
47796         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47797
47798 2008-04-13  Bruno Haible  <bruno@clisp.org>
47799
47800         * lib/git-merge-changelog.c: Remove empty declaration outside of
47801         functions.
47802
47803 2008-04-13  Bruno Haible  <bruno@clisp.org>
47804
47805         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47806
47807 2008-04-13  Bruno Haible  <bruno@clisp.org>
47808
47809         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47810         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47811         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47812         also if it exists but lacks definitions of the SHUT_* macros.
47813         * modules/sys_socket (Description): Update.
47814         Reported by Elbert Pol <e.pol@chello.nl>.
47815
47816 2008-04-13  Bruno Haible  <bruno@clisp.org>
47817
47818         * lib/localcharset.c (OS2): Don't redefine if already defined.
47819         Reported by Elbert Pol <e.pol@chello.nl>.
47820
47821 2008-04-13  Bruno Haible  <bruno@clisp.org>
47822
47823         * lib/binary-io.h [__EMX__]: Include <io.h>.
47824         Reported by Elbert Pol <e.pol@chello.nl>.
47825
47826 2008-04-12  Bruno Haible  <bruno@clisp.org>
47827
47828         * lib/fpucw.h: Enable the definitions also for x86_64.
47829         Needed for NetBSD/x86_64.
47830         Reported by Thomas Klausner <tk@giga.or.at>.
47831
47832 2008-04-12  Bruno Haible  <bruno@clisp.org>
47833
47834         * tests/test-strtod.c: Include isnand.h.
47835         (main): Use isnand instead of isnan.
47836         Reported by Jim Meyering.
47837
47838 2008-04-12  Bruno Haible  <bruno@clisp.org>
47839
47840         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47841         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47842
47843 2008-04-12  Jim Meyering  <meyering@redhat.com>
47844
47845         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47846
47847 2008-04-12  Bruno Haible  <bruno@clisp.org>
47848
47849         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47850         Reported by Elbert Pol <e.pol@chello.nl>.
47851
47852 2008-04-12  Eric Blake  <ebb9@byu.net>
47853
47854         Work around Solaris 10 math.h bug.
47855         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47856         (gl_MATH_H_DEFAULTS): Set up default.
47857         * modules/math (Makefile.am): Replace new indicators.
47858         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47859         * tests/test-math.c (main): Test this.
47860         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47861         * doc/posix-headers/math.texi (math.h): Mention bug.
47862         Reported by Nelson H. F. Beebe and Jim Meyering.
47863
47864 2008-04-11  Bruno Haible  <bruno@clisp.org>
47865
47866         Adapt to future versions of Apple GCC.
47867         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47868         Reported by Peter O'Gorman <peter@pogma.com>.
47869
47870 2008-04-11  Bruno Haible  <bruno@clisp.org>
47871
47872         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47873
47874 2008-04-11  Bruno Haible  <bruno@clisp.org>
47875
47876         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47877
47878         * modules/getaddrinfo-tests (Makefile.am): Define
47879         test_getaddrinfo_LDADD.
47880
47881 2008-04-11  Bruno Haible  <bruno@clisp.org>
47882
47883         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47884         (init): Fix syntax error.
47885         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47886         is declared.
47887
47888 2008-04-11  Bruno Haible  <bruno@clisp.org>
47889
47890         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47891         * modules/glob (Depends-on): Add stdbool.
47892
47893 2008-04-11  Bruno Haible  <bruno@clisp.org>
47894
47895         * lib/trim.c: Include <string.h>.
47896
47897 2008-04-11  Eric Blake  <ebb9@byu.net>
47898
47899         Avoid compile failure on OS/2.
47900         * lib/regex_internal.h (internal_function): Disable optimization
47901         on OS/2 (__EMX__), where it caused compiler error.
47902         Reported by Elbert Pol.
47903
47904 2008-04-11  Bruno Haible  <bruno@clisp.org>
47905
47906         Flush the standard error stream before aborting. Needed on mingw.
47907         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47908         * tests/test-array_list.c (ASSERT): Likewise.
47909         * tests/test-array_oset.c (ASSERT): Likewise.
47910         * tests/test-avltree_list.c (ASSERT): Likewise.
47911         * tests/test-avltree_oset.c (ASSERT): Likewise.
47912         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47913         * tests/test-binary-io.c (ASSERT): Likewise.
47914         * tests/test-byteswap.c (ASSERT): Likewise.
47915         * tests/test-c-ctype.c (ASSERT): Likewise.
47916         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47917         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47918         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47919         * tests/test-c-strstr.c (ASSERT): Likewise.
47920         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47921         * tests/test-canonicalize.c (ASSERT): Likewise.
47922         * tests/test-carray_list.c (ASSERT): Likewise.
47923         * tests/test-ceilf1.c (ASSERT): Likewise.
47924         * tests/test-ceilf2.c (ASSERT): Likewise.
47925         * tests/test-ceill.c (ASSERT): Likewise.
47926         * tests/test-count-one-bits.c (ASSERT): Likewise.
47927         * tests/test-fbufmode.c (ASSERT): Likewise.
47928         * tests/test-fflush2.c (ASSERT): Likewise.
47929         * tests/test-floorf1.c (ASSERT): Likewise.
47930         * tests/test-floorf2.c (ASSERT): Likewise.
47931         * tests/test-floorl.c (ASSERT): Likewise.
47932         * tests/test-fopen.c (ASSERT): Likewise.
47933         * tests/test-fpending.c (ASSERT): Likewise.
47934         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47935         * tests/test-fpurge.c (ASSERT): Likewise.
47936         * tests/test-freadable.c (ASSERT): Likewise.
47937         * tests/test-freadahead.c (ASSERT): Likewise.
47938         * tests/test-freading.c (ASSERT): Likewise.
47939         * tests/test-freadptr.c (ASSERT): Likewise.
47940         * tests/test-freadptr2.c (ASSERT): Likewise.
47941         * tests/test-freadseek.c (ASSERT): Likewise.
47942         * tests/test-freopen.c (ASSERT): Likewise.
47943         * tests/test-frexp.c (ASSERT): Likewise.
47944         * tests/test-frexpl.c (ASSERT): Likewise.
47945         * tests/test-fseek.c (ASSERT): Likewise.
47946         * tests/test-fseeko.c (ASSERT): Likewise.
47947         * tests/test-fstrcmp.c (ASSERT): Likewise.
47948         * tests/test-ftell.c (ASSERT): Likewise.
47949         * tests/test-ftello.c (ASSERT): Likewise.
47950         * tests/test-func.c (ASSERT): Likewise.
47951         * tests/test-fwritable.c (ASSERT): Likewise.
47952         * tests/test-fwriting.c (ASSERT): Likewise.
47953         * tests/test-getdelim.c (ASSERT): Likewise.
47954         * tests/test-getline.c (ASSERT): Likewise.
47955         * tests/test-i-ring.c (ASSERT): Likewise.
47956         * tests/test-iconv-utf.c (ASSERT): Likewise.
47957         * tests/test-iconv.c (ASSERT): Likewise.
47958         * tests/test-isfinite.c (ASSERT): Likewise.
47959         * tests/test-isnand.c (ASSERT): Likewise.
47960         * tests/test-isnanf.c (ASSERT): Likewise.
47961         * tests/test-isnanl.h (ASSERT): Likewise.
47962         * tests/test-ldexpl.c (ASSERT): Likewise.
47963         * tests/test-linked_list.c (ASSERT): Likewise.
47964         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47965         * tests/test-localename.c (ASSERT): Likewise.
47966         * tests/test-lseek.c (ASSERT): Likewise.
47967         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47968         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47969         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47970         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47971         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47972         * tests/test-mbschr.c (ASSERT): Likewise.
47973         * tests/test-mbscspn.c (ASSERT): Likewise.
47974         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47975         * tests/test-mbspbrk.c (ASSERT): Likewise.
47976         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47977         * tests/test-mbsrchr.c (ASSERT): Likewise.
47978         * tests/test-mbsspn.c (ASSERT): Likewise.
47979         * tests/test-mbsstr1.c (ASSERT): Likewise.
47980         * tests/test-mbsstr2.c (ASSERT): Likewise.
47981         * tests/test-mbsstr3.c (ASSERT): Likewise.
47982         * tests/test-memchr2.c (ASSERT): Likewise.
47983         * tests/test-memmem.c (ASSERT): Likewise.
47984         * tests/test-open.c (ASSERT): Likewise.
47985         * tests/test-printf-frexp.c (ASSERT): Likewise.
47986         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47987         * tests/test-printf-posix.c (ASSERT): Likewise.
47988         * tests/test-quotearg.c (ASSERT): Likewise.
47989         * tests/test-rbtree_list.c (ASSERT): Likewise.
47990         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47991         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47992         * tests/test-round1.c (ASSERT): Likewise.
47993         * tests/test-roundf1.c (ASSERT): Likewise.
47994         * tests/test-roundl.c (ASSERT): Likewise.
47995         * tests/test-signbit.c (ASSERT): Likewise.
47996         * tests/test-sleep.c (ASSERT): Likewise.
47997         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47998         * tests/test-snprintf.c (ASSERT): Likewise.
47999         * tests/test-sprintf-posix.c (ASSERT): Likewise.
48000         * tests/test-stat-time.c (ASSERT): Likewise.
48001         * tests/test-strcasestr.c (ASSERT): Likewise.
48002         * tests/test-strerror.c (ASSERT): Likewise.
48003         * tests/test-striconv.c (ASSERT): Likewise.
48004         * tests/test-striconveh.c (ASSERT): Likewise.
48005         * tests/test-striconveha.c (ASSERT): Likewise.
48006         * tests/test-strsignal.c (ASSERT): Likewise.
48007         * tests/test-strstr.c (ASSERT): Likewise.
48008         * tests/test-strtod.c (ASSERT): Likewise.
48009         * tests/test-trunc1.c (ASSERT): Likewise.
48010         * tests/test-trunc2.c (ASSERT): Likewise.
48011         * tests/test-truncf1.c (ASSERT): Likewise.
48012         * tests/test-truncf2.c (ASSERT): Likewise.
48013         * tests/test-truncl.c (ASSERT): Likewise.
48014         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
48015         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
48016         * tests/test-vasnprintf.c (ASSERT): Likewise.
48017         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
48018         * tests/test-vasprintf.c (ASSERT): Likewise.
48019         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
48020         * tests/test-vprintf-posix.c (ASSERT): Likewise.
48021         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
48022         * tests/test-vsnprintf.c (ASSERT): Likewise.
48023         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
48024         * tests/test-wcwidth.c (ASSERT): Likewise.
48025         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
48026         * tests/test-xprintf-posix.c (ASSERT): Likewise.
48027         * tests/test-xvasprintf.c (ASSERT): Likewise.
48028         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
48029         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
48030         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
48031         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
48032         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
48033         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
48034         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
48035         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
48036         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
48037         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
48038         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
48039         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
48040         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
48041         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
48042         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
48043         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
48044         * tests/unictype/test-block_list.c (ASSERT): Likewise.
48045         * tests/unictype/test-block_of.c (ASSERT): Likewise.
48046         * tests/unictype/test-block_test.c (ASSERT): Likewise.
48047         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
48048         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
48049         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
48050         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
48051         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
48052         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
48053         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
48054         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
48055         * tests/unictype/test-combining.c (ASSERT): Likewise.
48056         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
48057         * tests/unictype/test-digit.c (ASSERT): Likewise.
48058         * tests/unictype/test-mirror.c (ASSERT): Likewise.
48059         * tests/unictype/test-numeric.c (ASSERT): Likewise.
48060         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
48061         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
48062         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
48063         * tests/unictype/test-scripts.c (ASSERT): Likewise.
48064         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
48065         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
48066         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
48067         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
48068         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
48069         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
48070         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
48071         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
48072         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
48073         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
48074         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
48075         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
48076         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
48077         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
48078         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
48079         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
48080         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
48081         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
48082         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
48083         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
48084         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
48085         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
48086         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
48087         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
48088         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
48089         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
48090         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
48091         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
48092         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
48093         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
48094         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
48095         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
48096         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
48097         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
48098         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
48099         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
48100         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
48101         Reported by Eric Blake.
48102
48103 2008-04-11  Bruno Haible  <bruno@clisp.org>
48104
48105         * lib/wchar.in.h: Tweak comment.
48106
48107 2008-04-11  Bruno Haible  <bruno@clisp.org>
48108
48109         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
48110         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
48111         gl_COMMON.
48112         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
48113
48114 2008-04-11  Bruno Haible  <bruno@clisp.org>
48115
48116         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
48117
48118 2008-04-11  Simon Josefsson  <simon@josefsson.org>
48119
48120         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
48121         of attempting to use non-existing /dev/*random.  Based on patch
48122         from Adam Strzelecki <ono@java.pl> in
48123         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
48124
48125 2008-04-08  Bruno Haible  <bruno@clisp.org>
48126
48127         Add tentative support for emx+gcc.
48128         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
48129         * lib/fpurge.c (fpurge): Likewise.
48130         * lib/freadable.c (freadable): Likewise.
48131         * lib/freadahead.c (freadahead): Likewise.
48132         * lib/freading.c (freading): Likewise.
48133         * lib/freadptr.c (freadptr): Likewise.
48134         * lib/freadseek.c (freadptrinc): Likewise.
48135         * lib/fseeko.c (rpl_fseeko): Likewise.
48136         * lib/fseterr.c (fseterr): Likewise.
48137         * lib/fwritable.c (fwritable): Likewise.
48138         * lib/fwriting.c (fwriting): Likewise.
48139         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
48140
48141 2008-04-09  Eric Blake  <ebb9@byu.net>
48142
48143         Avoid some autoconf warnings.
48144         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
48145         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
48146         * m4/afs.m4 (gl_AFS): Likewise.
48147         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
48148         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
48149         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48150         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
48151         (gl_INTEGER_TYPE_SUFFIX): Likewise.
48152         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
48153         (AC_CHECK_DECLS_ONCE): Likewise.
48154         Rename file...
48155         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
48156         gnulib-tool requires autoconf 2.59 or better.
48157         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
48158
48159 2008-04-08  Eric Blake  <ebb9@byu.net>
48160
48161         Use 'git describe --match' if present (added in git 1.5.5).
48162         * build-aux/git-version-gen: Limit result to tags that match 'v*'
48163         if possible.
48164
48165 2008-04-08  Bruno Haible  <bruno@clisp.org>
48166
48167         Add tentative support for OpenServer.
48168         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
48169         _ptr, _cnt.
48170         * lib/fpurge.c (fpurge): Likewise.
48171         * lib/freadable.c (freadable): Likewise.
48172         * lib/freadahead.c (freadahead): Likewise.
48173         * lib/freading.c (freading): Likewise.
48174         * lib/freadptr.c (freadptr): Likewise.
48175         * lib/freadseek.c (freadptrinc): Likewise.
48176         * lib/fseeko.c (rpl_fseeko): Likewise.
48177         * lib/fseterr.c (fseterr): Likewise.
48178         * lib/fwritable.c (fwritable): Likewise.
48179         * lib/fwriting.c (fwriting): Likewise.
48180         Reported by Roger Cornelius <rac@tenzing.org> and
48181         Brian K. White <brian@aljex.com>.
48182
48183 2008-04-06  Jim Meyering  <meyering@redhat.com>
48184
48185         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
48186
48187 2008-04-06  Bruno Haible  <bruno@clisp.org>
48188
48189         Avoid possible error with non-ASCII bytes in UTF-8 locales.
48190         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
48191         * tests/test-printf-posix.sh: Likewise.
48192         * tests/test-vfprintf-posix.sh: Likewise.
48193         * tests/test-vprintf-posix.sh: Likewise.
48194         * tests/test-xprintf-posix.sh: Likewise.
48195
48196 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48197
48198         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
48199         hide error from 'ls', needed on OS/2.
48200         Report by Elbert Pol <elbert.pol@gmail.com>.
48201
48202 2008-04-04  Eric Blake  <ebb9@byu.net>
48203
48204         Make test-fseeko.c failures meaningful.
48205         * tests/test-fseeko.c: Print line number on failure.
48206         * tests/test-fseek.c: Likewise.
48207         Reported by Nelson H. F. Beebe.
48208
48209         Improve strtod bug detection check.
48210         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
48211         required for Solaris 10.
48212         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
48213
48214 2008-04-04  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
48217         by m4/setenv.m4.
48218
48219 2008-04-03  Eric Blake  <ebb9@byu.net>
48220
48221         Ensure sane .version contents.
48222         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
48223         version string.
48224         * build-aux/git-version-gen: Improve documentation.
48225
48226         Make GNU make output nicer.
48227         * top/GNUmakefile [!_have-Makefile]: Add dependency on
48228         MAKECMDGOALS to enforce message for all command line targets.  Set
48229         srcdir for use in maint.mk.
48230
48231         Another maintainer tweak.
48232         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
48233         a target that regenerates version.
48234
48235 2008-04-03  Jim Meyering  <meyering@redhat.com>
48236
48237         vc-list-files: don't cause coreutils "make po-check" failure
48238         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
48239
48240 2008-04-03  Eric Blake  <ebb9@byu.net>
48241
48242         Allow VPATH usage of vc-list-files.
48243         * build-aux/vc-list-files (scriptversion): Add timestamp.
48244         (options): Add --help, --version, -C.
48245         (CVS): Support installed cvsu.
48246
48247 2008-04-02  Bruno Haible  <bruno@clisp.org>
48248
48249         Avoid some "statement with no effect" warnings from gcc.
48250         * tests/test-wctype.c (main): Explicitly ignore unused values.
48251         Reported by Jim Meyering.
48252
48253 2008-04-02  Jim Meyering  <meyering@redhat.com>
48254
48255         Avoid some warnings from "gcc -Wshadow".
48256         * tests/test-frexp.c (exp): Define to a different identifier.
48257         * tests/test-frexpl.c (exp): Likewise.
48258
48259 2008-04-03  Jim Meyering  <meyering@redhat.com>
48260
48261         bootstrap: remove dangling *.[ch] symlinks from lib
48262         * build-aux/bootstrap [dangling symlink removal]: Move find's
48263         -depth option to precede all others, to avoid a warning.
48264         Remove *.[ch] files too, and from "$source_base" (usually lib/).
48265
48266 2008-04-02  Bruno Haible  <bruno@clisp.org>
48267
48268         Avoid some warnings from "gcc -Wshadow".
48269         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
48270         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
48271         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
48272         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
48273         Reported by Jim Meyering.
48274
48275 2008-04-01  Bruno Haible  <bruno@clisp.org>
48276
48277         Fix test to work on IRIX 6.5 with cc.
48278         * tests/test-math.c (numeric_equal): New function.
48279         (main): Use it.
48280
48281 2008-04-01  Bruno Haible  <bruno@clisp.org>
48282
48283         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
48284
48285 2008-04-01  Bruno Haible  <bruno@clisp.org>
48286
48287         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
48288         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48289         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
48290         (Depends-on): Remove math.
48291
48292         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
48293         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48294         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
48295         (Depends-on): Remove math.
48296
48297         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
48298         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48299         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
48300         (Depends-on): Remove math.
48301         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
48302         (Depends-on): Remove math.
48303
48304         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
48305         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48306         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
48307         (Depends-on): Remove math.
48308         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
48309         (Depends-on): Remove math.
48310
48311         * tests/test-round1.c: Include nan.h.
48312         (main): Use NaNd instead of NAN.
48313         * modules/round-tests (Files): Add tests/nan.h.
48314
48315         * tests/test-trunc1.c: Include nan.h.
48316         (main): Use NaNd instead of NAN.
48317         * modules/trunc-tests (Files): Add tests/nan.h.
48318
48319         * tests/test-roundf1.c: Include nan.h.
48320         (main): Use NaNf instead of NAN.
48321         * modules/roundf-tests (Files): Add tests/nan.h.
48322
48323         * tests/test-truncf1.c: Include nan.h.
48324         (main): Use NaNf instead of NAN.
48325         * modules/truncf-tests (Files): Add tests/nan.h.
48326
48327         * tests/test-ceilf1.c: Include nan.h.
48328         (main): Use NaNf instead of NAN.
48329         * modules/ceilf-tests (Files): Add tests/nan.h.
48330
48331         * tests/test-floorf1.c: Include nan.h.
48332         (main): Use NaNf instead of NAN.
48333         * modules/floorf-tests (Files): Add tests/nan.h.
48334
48335         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
48336         (main): Use NaNf instead of NAN.
48337         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
48338
48339         * tests/test-isnand.c: Include nan.h instead of <math.h>.
48340         (main): Use NaNd instead of NAN.
48341         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
48342
48343         * tests/test-frexp.c: Include nan.h.
48344         (main): Use NaNd instead of NAN.
48345         * modules/frexp-tests (Files): Add tests/nan.h.
48346
48347         * lib/isnan.c: Don't include <math.h>.
48348         (FUNC): Don't use NAN macro.
48349         * modules/isnand-nolibm (Depends-on): Remove math.
48350         * modules/isnanf-nolibm (Depends-on): Remove math.
48351         * modules/isnanl (Depends-on): Remove math.
48352         * modules/isnanl-nolibm (Depends-on): Remove math.
48353
48354         * tests/nan.h: New file.
48355
48356 2008-04-01  Eric Blake  <ebb9@byu.net>
48357
48358         Fix typos.
48359         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
48360         values to be the right type.
48361
48362         For now, cater to gnulib strtod inaccuracies.
48363         * tests/test-strtod.c (main): Allow 1-ulp error on expected
48364         fractional results.  While not as nice from a QoI perspective, it
48365         is a quicker patch than correctly implementing decimal to binary
48366         rounding.
48367
48368 2008-03-31  Eric Blake  <ebb9@byu.net>
48369
48370         Guarantee a definition of NAN.
48371         * lib/math.in.h (NAN): Define if missing.
48372         * tests/test-math.c (main): Test it.
48373         * doc/posix-headers/math.texi (math.h): Document this.
48374         * lib/isnan.c (rpl_isnand): Use it.
48375         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
48376         * tests/test-floorf1.c (NaN): Likewise.
48377         * tests/test-frexp.c (NaN): Likewise.
48378         * tests/test-isnand.c (NaN): Likewise.
48379         * tests/test-isnanf.c (NaN): Likewise.
48380         * tests/test-round1.c (NaN): Likewise.
48381         * tests/test-roundf1.c (NaN): Likewise.
48382         * tests/test-snprintf-posix.h (NaN): Likewise.
48383         * tests/test-sprintf-posix.h (NaN): Likewise.
48384         * tests/test-trunc1.c (NaN): Likewise.
48385         * tests/test-truncf1.c (NaN): Likewise.
48386         * tests/test-vasnprintf-posix.c (NaN): Likewise.
48387         * tests/test-vasprintf-posix.c (NaN): Likewise.
48388         * modules/isnand-nolibm (Depends-on): Add math.
48389         * modules/isnanf-nolibm (Depends-on): Likewise.
48390         * modules/isnanl (Depends-on): Likewise.
48391         * modules/isnanl-nolibm (Depends-on): Likewise.
48392         * modules/snprintf-posix-tests (Depends-on): Likewise.
48393         * modules/sprintf-posix-tests (Depends-on): Likewise.
48394         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
48395         * modules/vsprintf-posix-tests (Depends-on): Likewise.
48396         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
48397         * modules/vasprintf-posix-tests (Depends-on): Likewise.
48398
48399 2008-03-31  Bruno Haible  <bruno@clisp.org>
48400
48401         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
48402         * doc/posix-functions/strtod.texi: Likewise.
48403
48404 2008-03-31  Bruno Haible  <bruno@clisp.org>
48405
48406         * tests/test-strtod.c (main): Don't use C99 syntax.
48407
48408 2008-03-31  Bruno Haible  <bruno@clisp.org>
48409
48410         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
48411         Reported by Eric Blake.
48412
48413 2008-03-31  Jim Meyering  <meyering@redhat.com>
48414
48415         Don't compare actual signbit return values.
48416         * tests/test-strtod.c (main): Rather, compare only their
48417         zero/non-zero nature.
48418
48419 2008-03-31  Eric Blake  <ebb9@byu.net>
48420
48421         More strtod documentation.
48422         * doc/posix-functions/strtod.texi (strtod): Interpret more test
48423         failures as distinct bugs.
48424
48425 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48426
48427         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
48428         Problem reported by Erik Benada in
48429         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
48430
48431 2008-03-30  Bruno Haible  <bruno@clisp.org>
48432
48433         * tests/test-strtod.c: Add comments about which assertion fails on which
48434         platform.
48435         * doc/posix-functions/strtod.texi: Add info about many more platforms.
48436
48437 2008-03-30  Eric Blake  <ebb9@byu.net>
48438
48439         Test signbit behavior on zeros.
48440         * tests/test-signbit.c (test_signbitf): Add tests for zero.
48441         (test_signbitd, test_signbitl): Likewise.
48442
48443         More strtod touchups.
48444         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
48445         sign of negative underflow, for now.  Use .5, not .1.
48446         * doc/posix-functions/strtod.texi (strtod): Mention these
48447         limitations.
48448         Reported by Jim Meyering.
48449
48450 2008-03-30  Bruno Haible  <bruno@clisp.org>
48451
48452         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
48453         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
48454
48455 2008-03-30  Bruno Haible  <bruno@clisp.org>
48456
48457         Avoid failure when attempting to return empty iconv results on some
48458         platforms.
48459         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
48460         allocation, don't report ENOMEM when the resulting string is empty.
48461
48462 2008-03-30  Bruno Haible  <bruno@clisp.org>
48463
48464         Fix buffer overrun.
48465         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
48466         Don't consider the width for tmp_length. Check count against tmp_length
48467         before doing the padding. Ensure enough allocation during padding.
48468
48469 2008-03-30  Eric Blake  <ebb9@byu.net>
48470
48471         strtod touchups.
48472         * lib/strtod.c (strtod): Avoid compiler warnings.
48473         Reported by Jim Meyering.
48474
48475 2008-03-30  Bruno Haible  <bruno@clisp.org>
48476
48477         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
48478         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
48479         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
48480         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
48481         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
48482         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
48483         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
48484         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
48485
48486         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
48487         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
48488         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
48489         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
48490         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
48491         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
48492         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
48493         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
48494
48495         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
48496         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48497         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
48498         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
48499         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
48500         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
48501         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
48502         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
48503
48504         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
48505         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
48506
48507         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
48508         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
48509
48510         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
48511         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48512
48513         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48514         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48515         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48516
48517         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48519         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48520
48521         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48523         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48524
48525         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48526         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48527         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48528
48529         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48530         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48531         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48532         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48533         (Depends-on): Add EOVERFLOW.
48534         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48535         (Depends-on): Add EOVERFLOW.
48536         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48537         (Depends-on): Add EOVERFLOW.
48538         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48539         (Depends-on): Add EOVERFLOW.
48540         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48541         (Depends-on): Add EOVERFLOW.
48542         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48543         (Depends-on): Add EOVERFLOW.
48544         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48545         (Depends-on): Add EOVERFLOW.
48546         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48547         (Depends-on): Add EOVERFLOW.
48548
48549         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48550         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48551         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48552
48553         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48555         * modules/snprintf (Depends-on): Add EOVERFLOW.
48556
48557         * lib/poll.c (EOVERFLOW): Remove fallback.
48558         * modules/poll (Depends-on): Add EOVERFLOW.
48559
48560         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48561         * modules/getugroups (Depends-on): Add EOVERFLOW.
48562
48563         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48564         * modules/getdelim (Depends-on): Add EOVERFLOW.
48565
48566         * lib/ftell.c (EOVERFLOW): Remove fallback.
48567         * modules/ftell (Depends-on): Add EOVERFLOW.
48568
48569         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48571         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48572
48573         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48574
48575         * modules/EOVERFLOW-tests: New file.
48576         * tests/test-EOVERFLOW.c: New file.
48577
48578         * modules/EOVERFLOW: New file.
48579         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48580
48581 2008-03-30  Bruno Haible  <bruno@clisp.org>
48582
48583         Fix bug introduced on 2007-06-10.
48584         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48585         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48586
48587 2008-03-30  Bruno Haible  <bruno@clisp.org>
48588
48589         Improve freadseek's efficiency after ungetc.
48590         * lib/freadseek.c: Include freadahead.h.
48591         (freadptrinc): New function, extracted from freadseek.
48592         (freadseek): Use it in a loop. Use freadahead to determine the number
48593         of loop iterations.
48594         * modules/freadseek (Depends-on): Add freadahead.
48595         (configure.ac): Require AC_C_INLINE.
48596
48597 2008-03-30  Bruno Haible  <bruno@clisp.org>
48598
48599         * lib/freadseek.c (freadseek): Don't ignore the return value of
48600         freadptr.
48601
48602 2008-03-29  Eric Blake  <ebb9@byu.net>
48603
48604         Add hex float support.
48605         * modules/strtod (Depends-on): Add c-ctype.
48606         (Link): Mention POW_LIB.
48607         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48608         whitespace between 'e' and exponent.
48609         * tests/test-strtod.c (main): Enable hex float tests.
48610         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48611         now provides.
48612
48613         Document various strtod bugs, with some fixes.
48614         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48615         "-0x", "inf", "nan", and hex constants.
48616         * doc/posix-functions/atof.texi (atof): Likewise.
48617         * modules/stdlib (Makefile.am): Support strtod.
48618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48619         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48620         detect additional strtod bugs.
48621         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48622         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48623         bool where appropriate.  Parse 'inf' and 'nan'.
48624         * tests/test-strtod.c: New file.
48625         * modules/strtod (Depends-on): Add stdbool, stdlib.
48626         (configure.ac): Turn on module indicator.
48627         * modules/strtod-tests: New module.
48628
48629 2008-03-29  Eric Blake  <ebb9@byu.net>
48630
48631         Fix ftell on mingw.
48632         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48633         * modules/ftell-tests (Depends-on): Add binary-io.
48634         * modules/ftello-tests (Depends-on): Likewise.
48635         * tests/test-ftell.c (main): Enhance test to cover behavior after
48636         ungetc.  Enforce binary mode.
48637         * tests/test-ftello.c (main): Likewise.
48638
48639         Pass test-freadseek on cygwin.
48640         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48641         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48642         ungetc buffer.
48643
48644         * tests/test-fflush2.c (main): Fix typo.
48645
48646 2008-03-29  Bruno Haible  <bruno@clisp.org>
48647
48648         * tests/test-fflush2.c (main): Temporarily disable the contents of
48649         this test.
48650         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48651         Reported by Eric Blake.
48652
48653 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48654
48655         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48656         (GC_SHA224_DIGEST_SIZE): Add.
48657
48658         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48659         (gc_hash_digest_length): Likewise.
48660         (gc_hash_buffer): Likewise.
48661
48662 2008-03-25  Bruno Haible  <bruno@clisp.org>
48663
48664         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48665         detail which gettext release to use.
48666         Reported by Simon Josefsson.
48667
48668 2008-03-26  Jim Meyering  <meyering@redhat.com>
48669
48670         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48671         * modules/gnumakefile (clean-GNUmakefile): Also, use
48672         test ... && ... || : syntax rather than if-then ... fi.
48673
48674         gnumakefile: Don't double-quote-expand $(VPATH) value.
48675         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48676
48677 2008-03-24  Eric Blake  <ebb9@byu.net>
48678
48679         Alter GNUmakefile to install into top directory.
48680         * modules/maintainer-makefile: Split, and add dependency...
48681         * modules/gnumakefile: to this new module.
48682         * build-aux/GNUmakefile: Move...
48683         * top/GNUmakefile: ...here.
48684         * build-aux/maint.mk: Move...
48685         * top/maint.mk: ...here.
48686         * MODULES.html.sh (Support for maintaining...): Document new
48687         module.
48688
48689 2008-03-23  Bruno Haible  <bruno@clisp.org>
48690
48691         * gnulib-tool: New options --vc-files, --no-vc-files.
48692         (func_usage): Document them.
48693         (vc_files): New variable.
48694         (func_import): Consider vc_files.
48695         (func_create_testdir): Set vc_files to empty.
48696         Suggested by Jim Meyering and Karl Berry.
48697
48698 2008-03-23  Bruno Haible  <bruno@clisp.org>
48699
48700         Fix regex compilation error on HP-UX 11.
48701         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48702         * modules/regex (Files): Add m4/mbstate_t.m4.
48703         Reported by Ton Voon <ton.voon@altinity.com>.
48704
48705 2008-03-23  Bruno Haible  <bruno@clisp.org>
48706
48707         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48708
48709 2008-03-23  Eric Blake  <ebb9@byu.net>
48710             Bruno Haible  <bruno@clisp.org>
48711
48712         Install files from top/ in the destination directory.
48713         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48714         augmentation also for the files from top/.
48715         (func_import, func_create_testdir): Rewrite file names:
48716         top/filename -> filename.
48717
48718 2008-03-23  Bruno Haible  <bruno@clisp.org>
48719
48720         Tweak "gnulib --version" output.
48721         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48722
48723 2008-03-23  Bruno Haible  <bruno@clisp.org>
48724
48725         Tweak "gnulib --version" output.
48726         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48727         rather than contents of ChangeLog, when possible.
48728
48729 2008-03-21  Eric Blake  <ebb9@byu.net>
48730
48731         More --version tweaks.
48732         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48733         date of last ChangeLog entry.
48734
48735 2008-03-21  Jim Meyering  <meyering@redhat.com>
48736
48737         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48738
48739 2008-03-20  Eric Blake  <ebb9@byu.net>
48740
48741         VPATH fix.
48742         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48743
48744 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48745
48746         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48747         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48748
48749 2008-03-20  Eric Blake  <ebb9@byu.net>
48750
48751         Sync GNUmakefile with coreutils.
48752         * build-aux/GNUmakefile (have-Makefile): Rename...
48753         (_have-Makefile): ...to this, for namespace consideration.
48754         (GNUmakefile.cfg): Include, if present.
48755         (_autoreconf): Define a default.
48756         (_is-dist-target): New rule for rebuilds to pick up intra-release
48757         version.
48758         (maint-cfg.mk): Rename...
48759         (cfg.mk): ...to this.
48760
48761 2008-03-18  Jim Meyering  <meyering@redhat.com>
48762
48763         New script and module: mktempd
48764         * MODULES.html.sh (maint+release support): Add mktempd.
48765         * build-aux/mktempd: New file.
48766         * modules/mktempd: New file.
48767
48768 2008-03-15  Jim Meyering  <meyering@redhat.com>
48769
48770         Undo last change.
48771         * lib/sha1.c, lib/md5.c: 63 != ~63.
48772         Reported by Andreas Schwab.
48773
48774         sha1.c, md5.c: Hoist a redundant expression.
48775         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48776         "ctx->buflen" only once, before calling *_process_block.
48777         * lib/md5.c (md5_process_bytes): Likewise.
48778
48779 2008-03-14  Eric Blake  <ebb9@byu.net>
48780
48781         Bump copyright year in files generated by gnulib-tool.
48782         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48783         gnulib-tool, rather than hard-coding it.
48784
48785         Fix 'gnulib-tool --version' output to work with git.
48786         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48787         (startup): ...here.
48788         (func_version): Use it to invoke git-version-gen, rather than
48789         relying on CVS keyword expansion.  Modernize wording.
48790         (cvsdatestamp, last_checkin_date, version): Kill unused
48791         variables.
48792
48793 2008-03-12  Jim Meyering  <meyering@redhat.com>
48794
48795         Recognize optional cast of the argument to free.
48796         * build-aux/useless-if-before-free: Update regexps.
48797
48798         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48799
48800 2008-03-11  Bruno Haible  <bruno@clisp.org>
48801
48802         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48803         by a single package.
48804         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48805         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48806         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48807         Reported by Sam Steingold <sds@gnu.org>.
48808
48809 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48810
48811         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48812         repositories.
48813
48814 2008-03-11  Bruno Haible  <bruno@clisp.org>
48815
48816         Avoid conflicts between local macro definitions.
48817         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48818         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48819
48820 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48821             Bruno Haible  <bruno@clisp.org>
48822
48823         Make va_copy work with some version of xlc on AIX 5.1.
48824         * lib/stdarg.in.h: New file.
48825         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48826         On AIX, use a <stdarg.h> file substitute.
48827         * modules/stdarg (Files): Add lib/stdarg.in.h.
48828         (Depends-on): Add include_next.
48829         (Makefile.am): Build a stdarg.h substitute if requested.
48830         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48831
48832 2008-03-10  Bruno Haible  <bruno@clisp.org>
48833
48834         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48835         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48836         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48837
48838 2008-03-10  Bruno Haible  <bruno@clisp.org>
48839
48840         * modules/stdlib (Depends-on): Add include_next, remove
48841         absolute-header.
48842
48843 2008-03-09  Bruno Haible  <bruno@clisp.org>
48844
48845         * lib/freadahead.h (freadahead): Document more precisely.
48846         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48847         the sum of both buffer sizes.
48848         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48849         * NEWS: Document the change.
48850
48851 2008-03-09  Bruno Haible  <bruno@clisp.org>
48852
48853         Extend freadptr to return also the buffer size.
48854         * lib/freadptr.h (freadptr): Add sizep argument.
48855         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48856         (freadptr): Add sizep argument. Determine buffer size like freadahead
48857         does.
48858         * tests/test-freadptr.c: Don't include freadahead.h.
48859         (main): Adapt for new calling convention of freadptr.
48860         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48861         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48862         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48863         tests/test-freadptr2.sh.
48864         (Depends): Remove freadahead.
48865         (TESTS): Add test-freadptr2.sh.
48866         (check_PROGRAMS): Add test-freadptr2.
48867
48868 2008-03-09  Bruno Haible  <bruno@clisp.org>
48869
48870         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48871         Report and solution by Simon Josefsson.
48872
48873 2008-03-06  Bruno Haible  <bruno@clisp.org>
48874
48875         Make fflush after ungetc work on BSD platforms.
48876         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48877         * tests/test-fflush2.c: New file.
48878         * tests/test-fflush2.sh: New file.
48879         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48880         tests/test-fflush2.c.
48881         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48882         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48883
48884 2008-03-06  Eric Blake  <ebb9@byu.net>
48885
48886         Likewise for ftello.
48887         * modules/ftello (Dependencies): Add extensions.
48888         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48889
48890 2008-03-06  Bruno Haible  <bruno@clisp.org>
48891
48892         * modules/fseeko (Dependencies): Add extensions.
48893         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48894         Needed on glibc systems.
48895
48896 2008-03-06  Bruno Haible  <bruno@clisp.org>
48897
48898         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48899         email address.
48900         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48901
48902 2008-03-06  Bruno Haible  <bruno@clisp.org>
48903
48904         * users.txt: Add libgnupdf.
48905
48906 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48907
48908         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48909         (Header File Substitutes, Function Substitutes,
48910         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48911         (Build robot for gnulib): Fix typo.
48912
48913 2008-03-06  Bruno Haible  <bruno@clisp.org>
48914
48915         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48916         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48917
48918 2008-03-06  Bruno Haible  <bruno@clisp.org>
48919
48920         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48921         * doc/gnulib.texi: Include it.
48922
48923 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48924
48925         * modules/func (License): Change license to unlimited; there was
48926         no LGPL parts in the module anyway.
48927
48928 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48929
48930         * modules/__func__: Renamed to modules/func.
48931         * modules/__func__-tests: Renamed to modules/func-tests.
48932         * tests/test-__func__.c: Renamed to tests/test-func.c.
48933         * m4/__func__.m4: Renamed to m4/func.m4.
48934         * doc/gnulib.texi (__func__): Section renamed to func.
48935         Suggested by Eric Blake <ebb9@byu.net>.
48936
48937 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48938
48939         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48940         about __func__.  Make example self-contained.  Suggested by Eric
48941         Blake <ebb9@byu.net>.
48942
48943         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48944         Suggested by Eric Blake <ebb9@byu.net>.
48945
48946 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48947
48948         * modules/__func__: New file.
48949         * modules/__func__-tests: New file.
48950         * tests/test-__func__.c: New file.
48951         * m4/__func__.m4: New file.
48952         * doc/gnulib.texi (__func__): Document __func__ module.
48953
48954 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48955
48956         * modules/byteswap (License): Re-license as LGPLv2+.
48957
48958 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48959
48960         * doc/Makefile: Add pdf target.
48961
48962 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48963
48964         * modules/inline (License): Use 'unlimited', since there are only
48965         *.m4 files in this module.
48966
48967 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48968             Bruno Haible  <bruno@clisp.org>
48969
48970         Add support for HP C 7.1 on OpenVMS 8.3.
48971         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48972
48973 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48974
48975         Update VMS specifics.
48976         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48977
48978 2008-03-02  Jim Meyering  <meyering@redhat.com>
48979
48980         Remove the last dependency on the "free" module.
48981         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48982         Reported by Bob Proulx.
48983
48984         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48985
48986         Remove useless "if" tests before free.  Deprecate "free" module.
48987         * doc/posix-functions/free.texi: Mention that this
48988         module is no longer useful.
48989         * modules/free (Notice): Say this module is obsolete.
48990         * modules/readutmp (Depends-on): Remove free.
48991         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48992         * lib/putenv.c (putenv): Likewise.
48993         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48994         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48995         * tests/test-c-strcasestr.c (main): Likewise.
48996         * tests/test-c-strstr.c (main): Likewise.
48997         * tests/test-mbscasestr1.c (main): Likewise.
48998         * tests/test-mbscasestr2.c (main): Likewise.
48999         * tests/test-mbsstr1.c (main): Likewise.
49000         * tests/test-mbsstr2.c (main): Likewise.
49001         * tests/test-memmem.c (main): Likewise.
49002         * tests/test-strcasestr.c (main): Likewise.
49003         * tests/test-striconv.c (main): Likewise.
49004         * tests/test-striconveh.c (main): Likewise.
49005         * tests/test-striconveha.c (main): Likewise.
49006         * tests/test-strstr.c (main): Likewise.
49007
49008         * build-aux/git-version-gen: Adjust a comment and the Usage string.
49009
49010         bootstrap: sync from coreutils again
49011         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
49012
49013 2008-03-01  Jim Meyering  <meyering@redhat.com>
49014
49015         bootstrap: sync from coreutils
49016         * build-aux/bootstrap (update_po_files): Copy a .po file into place
49017         also when the target doesn't exist.
49018
49019 2008-03-01  Eric Blake  <ebb9@byu.net>
49020
49021         Fix bugs in last patch.
49022         * lib/memchr2.c (memchr2): Fix typo.
49023         * tests/test-memchr2.c: Test previous bug, and don't use GNU
49024         extension.
49025         Reported by Bruce Korb.
49026
49027         New module 'memchr2'.
49028         * modules/memchr2: New file.
49029         * modules/memchr2-tests: Likewise.
49030         * lib/memchr2.h: Likewise.
49031         * lib/memchr2.c: Likewise, based on memchr.c.
49032         * tests/test-memchr2.c: New test.
49033         * MODULES.html.sh (String handling): Add memchr2.
49034
49035 2008-02-29  Bruno Haible  <bruno@clisp.org>
49036
49037         * modules/freadseek-tests: New file.
49038         * tests/test-freadseek.sh: New file.
49039         * tests/test-freadseek.c: New file.
49040
49041         New module 'freadseek'.
49042         * modules/freadseek: New file.
49043         * lib/freadseek.h: New file.
49044         * lib/freadseek.c: New file.
49045         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
49046
49047 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49048
49049         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
49050         wydawca.
49051
49052         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
49053         program_invocation_name and program_invocation_short_name are
49054         present.
49055
49056 2008-02-28  Bruno Haible  <bruno@clisp.org>
49057
49058         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
49059         * tests/test-freadptr.sh: Also test non-seekable stdin.
49060
49061 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
49062
49063         * build-aux/bootstrap (source_base, m4_base)
49064         (doc_base, tests_base): New variables.
49065         (gnulib_tool_options): Do not hardcode base directories, use
49066         the above variables instead.
49067
49068 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
49069
49070         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
49071
49072 2008-02-28  Bruno Haible  <bruno@clisp.org>
49073
49074         * modules/freadptr-tests: New file.
49075         * tests/test-freadptr.sh: New file.
49076         * tests/test-freadptr.c: New file.
49077
49078         New module 'freadptr'.
49079         * modules/freadptr: New file.
49080         * lib/freadptr.h: New file.
49081         * lib/freadptr.c: New file.
49082         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
49083
49084 2008-02-26  Karl Berry  <karl@freefriends.org>
49085
49086         Sync from Libtool:
49087         * libltdl/argz.c (argz_add, argz_count): New functions.
49088         * libltdl/argz.in.h: Declare them.
49089         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
49090
49091 2008-02-22  Bruno Haible  <bruno@clisp.org>
49092
49093         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
49094         is a pointer type.  Needed for HP-UX 10.
49095         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
49096         * doc/posix-functions/gmtime_r.texi: Likewise.
49097         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49098
49099 2008-02-24  Bruno Haible  <bruno@clisp.org>
49100
49101         * modules/environ-tests: New file.
49102         * tests/test-environ.c: New file.
49103
49104         New module 'environ'.
49105         * modules/environ: New file.
49106         * lib/unistd.in.h (environ): New declaration.
49107         * m4/environ.m4: New file.
49108         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
49109         after use.
49110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
49111         HAVE_DECL_ENVIRON.
49112         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
49113         HAVE_DECL_ENVIRON.
49114         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
49115         wrong claim that 'environ' is missing on some systems.
49116         * modules/execute (Depends-on): Add environ.
49117         * lib/execute.c (environ): Remove fallback declaration.
49118         * modules/pipe (Depends-on): Add environ.
49119         * lib/pipe.c (environ): Remove fallback declaration.
49120         * modules/setenv (Depends-on): Add environ.
49121         * lib/setenv.c (environ): Remove fallback declaration.
49122         * modules/unsetenv (Depends-on): Add environ.
49123         * lib/unsetenv.c (environ): Remove fallback declaration.
49124         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
49125         m4/environ.m4.
49126         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
49127         (gl_PREREQ_UNSETENV): Likewise.
49128
49129 2008-02-24  Bruno Haible  <bruno@clisp.org>
49130
49131         * doc/posix-functions/environ.texi: Document the MacOS X problem.
49132
49133 2008-02-20  Bob Proulx  <bob@proulx.com>
49134
49135         Enable use of older two part flavor 'git describe'.
49136         * build-aux/git-version-gen: If using the older two part flavor of
49137         git version then recreate the third part now present in the
49138         newer three part flavor of git describe.
49139
49140 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
49141
49142         * lib/fts.c (fts_build): Typo correction to comment.
49143
49144 2008-02-17  Bruno Haible  <bruno@clisp.org>
49145
49146         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
49147         generating no-op conflicts.
49148
49149 2008-02-17  Bruno Haible  <bruno@clisp.org>
49150
49151         Speed up by 10%.
49152         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
49153         result_entries, rather than an index-based loop.
49154
49155 2008-02-17  Bruno Haible  <bruno@clisp.org>
49156
49157         Speed up by 25%.
49158         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
49159         'hashcode_cached'.
49160         (entry_create): New function.
49161         (entry_hashcode): Use the cached hashcode if possible.
49162         (read_changelog_file, try_split_merged_entry): Use entry_create.
49163
49164 2008-02-17  Bruno Haible  <bruno@clisp.org>
49165
49166         Speed up from O(n^2) to O(n) for long ChangeLog files.
49167         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
49168         (read_changelog_file): Change implementation of entries_reversed list
49169         to rbtreehash.
49170         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
49171
49172 2008-02-17  Bruno Haible  <bruno@clisp.org>
49173
49174         New option --split-merged-entry.
49175         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
49176         (find_paragraph_end, try_split_merged_entry): New functions.
49177         (long_options): Add option --split-merged-entry.
49178         (usage): Document option --split-merged-entry.
49179         (main): Implement option --split-merged-entry.
49180         Reported by Eric Blake.
49181
49182 2008-02-17  Bruno Haible  <bruno@clisp.org>
49183
49184         * lib/git-merge-changelog.c: Include c-strstr.h.
49185         (main): Support the "git pull --rebase" situation.
49186         * modules/git-merge-changelog (Depends-on): Add c-strstr.
49187         Reported by Eric Blake.
49188
49189 2008-02-16  Eric Blake  <ebb9@byu.net>
49190
49191         Avoid doubling \ in common case of "c-maybe" quoting style.
49192         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
49193         eliding outer quotes.
49194         * lib/quotearg.h: Document this.
49195         * tests/test-quotearg.c (result_strings, inputs, results_g)
49196         (flag_results, locale_results): Test it by adding a new string to
49197         each test group.
49198         (compare_strings): Test new string.
49199
49200 2008-02-13  Eric Blake  <ebb9@byu.net>
49201
49202         Avoid trigraph quoting in default output.
49203         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
49204         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
49205         unless explicitly requested.
49206         * tests/test-quotearg.c (flag_results, main): Add additional tests.
49207
49208 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
49209
49210         Don't rely on signed integer overflowing to negative value.
49211         * lib/getugroups.c (getugroups): Include <limits.h>.
49212         Instead, compare against INT_MAX, and increment only if the test passes.
49213
49214 2008-02-13  Jim Meyering  <meyering@redhat.com>
49215         and Eric Blake  <ebb9@byu.net>
49216
49217         Avoid shadowing warning and compile errors on Linux.
49218         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
49219         forwarding macros on Linux.
49220         (dcgettext): Define a stub, for Linux.
49221         (results_g, main): Avoid warnings.
49222
49223 2008-02-12  Eric Blake  <ebb9@byu.net>
49224
49225         Silence warning in last patch.
49226         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
49227
49228         Quotearg part 4: add tests, fix c-maybe colon quoting.
49229         * lib/quotearg.h: Improve documentation.
49230         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
49231         escapes when adding outer quotes.  When quoting trigraphs, use
49232         valid C notation.  When quoting NUL, omit extra characters if next
49233         character is not digit.  Alter prototype.
49234         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
49235         callers.
49236         * modules/quotearg-tests: New module.
49237         * tests/test-quotearg.c: New test.
49238
49239 2008-02-07  Eric Blake  <ebb9@byu.net>
49240
49241         Quotearg part 3: add flag to control outer quote elision.
49242         * lib/quotearg.h (c_maybe_quoting_style): New style.
49243         (enum quoting_flags): Better documentation of flags.
49244         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
49245         c-maybe style.
49246         (quotearg_buffer_restyled): Handle new flag to elide outer
49247         quotes.
49248
49249         Quotearg part 2: add flag that can control NUL elision.
49250         * lib/quotearg.h (set_quoting_flags): New prototype.
49251         * lib/quotearg.c (struct quoting_options): Add flag field.
49252         (set_quoting_flags): New function.
49253         (quotearg_buffer_restyled): Add flags parameter.
49254         (quotearg_alloc_mem): Set the flag if length cannot be returned.
49255         (quotearg_n_options): Set the flag, since length cannot be
49256         returned.
49257         (quoting_options_from_style): Default flags correctly.
49258
49259         Quotearg part 1: more wrappers, restore quotearg_char state.
49260         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
49261         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
49262         (quotearg_colon_mem): New wrappers.
49263         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
49264         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
49265         functions.
49266         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
49267         (quotearg_colon_mem): New functions.
49268
49269 2008-02-11  Bruno Haible  <bruno@clisp.org>
49270
49271         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
49272         library in the current directory: it does not work with parallel make.
49273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49274
49275 2008-02-11  Bruno Haible  <bruno@clisp.org>
49276
49277         * .gitattributes: New file.
49278
49279 2008-02-11  Jim Meyering  <meyering@redhat.com>
49280
49281         useless-if-before-free: Fix reversed exit values.
49282         * build-aux/useless-if-before-free: Use correct values
49283         for EXIT_MATCH and EXIT_NO_MATCH.
49284
49285         * build-aux/useless-if-before-free: Close stdout carefully.
49286
49287 2008-02-10  Bruno Haible  <bruno@clisp.org>
49288
49289         New module 'git-merge-changelog'.
49290         * modules/git-merge-changelog: New file.
49291         * lib/git-merge-changelog.c: New file.
49292
49293 2008-02-10  Jim Meyering  <meyering@redhat.com>
49294
49295         useless-if-before-free: New option: --list (-l).
49296
49297         useless-if-before-free: Don't exit immediately upon open failure.
49298         * build-aux/useless-if-before-free: Exit 2 for errors.
49299         Upon failure to open a file, don't exit immediately.
49300         Rather, just warn and continue with any remaining files.
49301
49302 2008-02-10  Bruno Haible  <bruno@clisp.org>
49303
49304         New abstract list operation 'node_set_value'.
49305         * lib/gl_list.h (gl_list_node_set_value): New function.
49306         (struct gl_list_implementation): New field node_set_value.
49307         * lib/gl_list.c (gl_list_node_set_value): New function.
49308         * lib/gl_array_list.c (gl_array_node_set_value): New function.
49309         (gl_array_list_implementation): Update.
49310         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
49311         (gl_carray_list_implementation): Update.
49312         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
49313         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49314         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49315         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
49316         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49317         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49318         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49319         Update.
49320         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49321         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
49322         (gl_sublist_list_implementation): Update.
49323
49324 2008-02-10  Bruno Haible  <bruno@clisp.org>
49325
49326         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
49327         Needed when ELEMENT is #defined to 'some_type *'.
49328
49329 2008-02-10  Jim Meyering  <meyering@redhat.com>
49330
49331         New script and module: useless-if-before-free
49332         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
49333         * build-aux/useless-if-before-free: New file.
49334         * modules/useless-if-before-free: New file.
49335
49336         * build-aux/gitlog-to-changelog: Use committer date, not author date.
49337
49338         xstrtol_error: Fix typo.
49339         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
49340         s/exit_failure/exit_status/.
49341
49342 2008-02-09  Jim Meyering  <meyering@redhat.com>
49343
49344         New script and module: gitlog-to-changelog
49345         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
49346         * modules/gitlog-to-changelog: New file.
49347         * build-aux/gitlog-to-changelog: New file.
49348
49349 2008-02-08  Jim Meyering  <meyering@redhat.com>
49350
49351         Avoid two "parameter unused" warnings.
49352         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
49353         Mark "st" as used.
49354
49355         Use "git COMMAND", not "git-COMMAND".
49356         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
49357         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
49358         * build-aux/git-version-gen: Use "git status", not "git-status".
49359
49360 2008-02-07  Bruno Haible  <bruno@clisp.org>
49361
49362         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
49363         Avoids a crash on Windows Vista.
49364         Reported by Adam Strzelecki <ono@java.pl> via
49365         Simon Josefsson <simon@josefsson.org>.
49366
49367 2008-02-06  Bruno Haible  <bruno@clisp.org>
49368
49369         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
49370         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
49371         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
49372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49373         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49374         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49375         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
49376         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
49377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49378         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49379         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49380         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49381         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49382         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49383         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49384         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
49385         left-adjust flag.
49386         * tests/test-snprintf-posix.h (test_function): Likewise.
49387         * tests/test-sprintf-posix.h (test_function): Likewise.
49388         * tests/test-vasprintf-posix.c (test_function): Likewise.
49389         * doc/posix-functions/fprintf.texi: Update.
49390         * doc/posix-functions/printf.texi: Update.
49391         * doc/posix-functions/snprintf.texi: Update.
49392         * doc/posix-functions/sprintf.texi: Update.
49393         * doc/posix-functions/vfprintf.texi: Update.
49394         * doc/posix-functions/vprintf.texi: Update.
49395         * doc/posix-functions/vsnprintf.texi: Update.
49396         * doc/posix-functions/vsprintf.texi: Update.
49397         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49398
49399 2008-02-06  Bruno Haible  <bruno@clisp.org>
49400
49401         Fix bug introduced on 2008-01-26.
49402         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
49403
49404 2008-02-06  Bruno Haible  <bruno@clisp.org>
49405
49406         Fix bug introduced on 2007-06-10.
49407         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
49408         !NEED_PRINTF_FLAG_ZERO.
49409
49410 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
49411
49412         getloadavg: use libperfstat on AIX5
49413         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
49414
49415 2008-02-03  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/diffseq.h: Add comments about required #includes.
49418         Reported by Michael Biggs <gnulib@doubleplum.net>.
49419
49420 2008-02-01  Bruno Haible  <bruno@clisp.org>
49421
49422         * users.txt: Add gnuit.
49423
49424 2008-01-31  Bruno Haible  <bruno@clisp.org>
49425
49426         * lib/md4.c (set_uint32): Mark as inline.
49427         * lib/md5.c (set_uint32): Likewise.
49428         * lib/sha1.c (set_uint32): Likewise.
49429         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
49430         * m4/md5.m4 (gl_MD5): Likewise.
49431         * m4/sha1.m4 (gl_SHA1): Likewise.
49432
49433 2008-01-31  Jim Meyering  <meyering@redhat.com>
49434
49435         Use "sizeof VAR", rather than a literal "4".
49436         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
49437         * lib/md4.c (md4_read_ctx): Likewise.
49438         * lib/sha1.c (sha1_read_ctx): Likewise.
49439
49440 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49441
49442         * tests/test-sha1.c: New file, based on test-md5.c.
49443
49444         * modules/crypto/sha1-tests: New file.
49445
49446 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49447
49448         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
49449
49450 2008-01-31  Jim Meyering  <meyering@redhat.com>
49451
49452         Prefer "sizeof v" over the equivalent "4".
49453         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
49454         * lib/md5.c (set_uint32): Likewise.
49455         * lib/sha1.c (set_uint32): Likewise.
49456
49457 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49458
49459         * lib/sha1.c (set_uint32): Mark function as static.
49460
49461 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49462
49463         md2: clarify comments to say that alignment is not required.
49464         * lib/md2.h: Remove warning about alignment in comment.
49465         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
49466         never been required.
49467
49468 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49469
49470         md4: adapt alignment constraint fix from sha1.
49471         * lib/md4.c (set_uint32): New function, from sha1.c
49472         (md4_read_ctx): Use it.
49473         (md4_finish_ctx): Doc fix.
49474         * lib/md4.h: Doc fix.
49475
49476 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49477
49478         md5: adapt alignment constraint fix from sha1.
49479         * lib/md5.c (set_uint32): New function, from sha1.c
49480         (md5_read_ctx): Use it.
49481         (md5_finish_ctx): Doc fix.
49482         * lib/md5.h: Doc fix.
49483
49484 2008-01-30  Peter Palfrader  <weasel@debian.org>
49485
49486         sha1: remove the result buffer alignment constraint
49487         * lib/sha1.c (set_uint32): New function.
49488         (sha1_read_ctx): Rewrite to remove the result buffer alignment
49489         constraint.
49490         (sha1_finish_ctx): Remove comment warning about alignment constraint.
49491         * lib/sha1.h: Likewise.
49492
49493 2008-01-30  Andreas Schwab  <schwab@suse.de>
49494             Bruno Haible  <bruno@clisp.org>
49495
49496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
49497         correct definition of LDBL_MIN_EXP.
49498
49499 2008-01-30  Karl Berry  <karl@gnu.org>
49500
49501         * config/srclist-update: try to preserve x bit on updates.
49502         * config/srclistvars.sh: update for karl.
49503
49504 2008-01-29  Jim Meyering  <meyering@redhat.com>
49505
49506         vasnprintf.c: Avoid warning about unused label
49507         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
49508         "overflow" label definition and associated code with the
49509         same cpp condition that guards the sole use of that label.
49510
49511 2008-01-26  Bruno Haible  <bruno@clisp.org>
49512
49513         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49514         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49515         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49516         * lib/isnanl-nolibm.h (isnanl): Likewise.
49517         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49518
49519 2008-01-26  Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49522         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49523
49524 2008-01-26  Bruno Haible  <bruno@clisp.org>
49525
49526         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49527         GCC >= 4.0 built-in.
49528         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49529
49530 2008-01-26  Bruno Haible  <bruno@clisp.org>
49531
49532         Rename isnan, applicable to 'double' only, to isnand.
49533         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49534         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49535         (configure.ac): Update.
49536         (Include): Replace "isnan.h" with "isnand.h".
49537         * m4/isnand.m4: Renamed from m4/isnan.m4.
49538         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49539         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49540         instead of isnan.c.
49541         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49542         instead of HAVE_ISNAN_IN_LIBC.
49543         (isnand): Renamed from isnan.
49544         * lib/isnand.c: New file.
49545         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49546         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49547         (Makefile.am): Update.
49548         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49549         Include isnand.h instead of isnan.h.
49550         (main): Test isnand instead of isnan.
49551         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49552         isnan-nolibm.
49553         * modules/frexp (Depends-on): Likewise.
49554         * modules/frexp-tests (Depends-on): Likewise.
49555         * modules/frexp-nolibm (Depends-on): Likewise.
49556         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49557         * modules/isfinite (Depends-on): Likewise.
49558         * modules/round-tests (Depends-on): Likewise.
49559         * modules/signbit (Depends-on): Likewise.
49560         * modules/signbit-tests (Depends-on): Likewise.
49561         * modules/snprintf-posix (Depends-on): Likewise.
49562         * modules/sprintf-posix (Depends-on): Likewise.
49563         * modules/trunc-tests (Depends-on): Likewise.
49564         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49565         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49566         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49567         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49568         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49569         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49570         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49571         * modules/vasnprintf-posix (Depends-on): Likewise.
49572         * modules/vasprintf-posix (Depends-on): Likewise.
49573         * modules/vfprintf-posix (Depends-on): Likewise.
49574         * modules/vsnprintf-posix (Depends-on): Likewise.
49575         * modules/vsprintf-posix (Depends-on): Likewise.
49576         * lib/frexp.c: Include isnand.h instead of isnan.h.
49577         (ISNAN): Set to isnand instead of isnan.
49578         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49579         (gl_isfinited): Use isnand instead of isnan.
49580         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49581         (gl_signbitd): Use isnand instead of isnan.
49582         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49583         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49584         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49585         (main): Use isnand instead of isnan.
49586         * tests/test-round1.c: Include isnand.h.
49587         (main): Use isnand instead of isnan.
49588         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49589         (ISNAN): Set to isnand instead of isnan.
49590         * tests/test-trunc1.c: Include isnand.h.
49591         (main): Use isnand instead of isnan.
49592         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49593         (equal): Use isnand instead of isnan.
49594         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49595         isnand-nolibm.
49596         * NEWS: Mention the change.
49597
49598 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49599             Bruno Haible  <bruno@clisp.org>
49600
49601         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49602         the GCC builtins for signbits are present and set
49603         REPLACE_SIGNBIT_USING_GCC if so.
49604         * lib/math.in.h (signbit): Define using GCC builtins if
49605         REPLACE_SIGNBIT_USING_GCC is set.
49606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49607         REPLACE_SIGNBIT_USING_GCC.
49608         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49609
49610 2008-01-25  Jim Meyering  <meyering@redhat.com>
49611
49612         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49613         * lib/poll.c: Include <config.h>, not "config.h".
49614         * tests/test-getaddrinfo.c: Likewise.
49615
49616 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49617
49618         * modules/sockets-tests: New file.
49619
49620 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49621
49622         * modules/sockets: New module, can be used to call WSA_Startup and
49623         WSA_Cleanup when needed.
49624
49625         * lib/sockets.h, lib/sockets.c: New files.
49626
49627         * m4/sockets.m4: New file.
49628
49629         * tests/test-sockets.c: New file.
49630
49631 2008-01-19  Bruno Haible  <bruno@clisp.org>
49632
49633         * doc/posix-headers: Renamed from doc/headers.
49634         * doc/posix-functions: Renamed from doc/functions.
49635         * doc/gnulib.texi: Update.
49636
49637 2008-01-19  Bruno Haible  <bruno@clisp.org>
49638
49639         * doc/glibc-functions/strcasestr.texi: Include contents of
49640         doc/functions/strcasestr.texi, fixing the list of platforms.
49641         * doc/functions/strcasestr.texi: Remove file.
49642
49643 2008-01-19  Bruno Haible  <bruno@clisp.org>
49644
49645         * doc/glibc-functions/memmem.texi: Include contents of
49646         doc/functions/memmem.texi.
49647         * doc/functions/memmem.texi: Remove file.
49648
49649 2008-01-18  Bruno Haible  <bruno@clisp.org>
49650
49651         * doc/glibc-functions/*.texi: New files.
49652         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49653         to use the new files.
49654
49655 2008-01-17  Bruno Haible  <bruno@clisp.org>
49656
49657         * tests/test-gethostname.c (main): Fix printf statement.
49658
49659 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49660
49661         * modules/gethostname-tests: New file.
49662
49663         * tests/test-gethostname.c: New file.
49664
49665 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49666
49667         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49668         used by the UNAME case.  Reported by Bruno Haible
49669         <bruno@clisp.org>.
49670
49671 2008-01-17  Eric Blake  <ebb9@byu.net>
49672
49673         Convert c-strcasestr to be more efficient.
49674         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49675         (Depends-on): Add c-strcase, remove malloca, strnlen.
49676         * tests/test-c-strcasestr.c (main): Enhance test.
49677         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49678
49679 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49680
49681         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49682         Use it in creating po/Makevars.
49683
49684 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49685
49686         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49687         Applications that requires it should initialize libgcrypt
49688         manually.
49689
49690 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49691
49692         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49693
49694 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49695
49696         Fix problem with getdate on mingw32 reported by Simon Josefsson
49697         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49698         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49699         tzname", when deciding whether to declare tzname.
49700         * lib/strftime.c (tzname): Likewise.
49701
49702 2008-01-15  Bruno Haible  <bruno@clisp.org>
49703
49704         Work around a MacOS X 10.5 bug in frexpl().
49705         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49706         * doc/functions/frexpl.texi: Document the bug.
49707         Reported by Elias Pipping <pipping@gentoo.org>.
49708
49709 2008-01-14  Eric Blake  <ebb9@byu.net>
49710
49711         Touch up previous patch.
49712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49713         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49714
49715         Convert strcasestr module to use Two-Way algorithm.
49716         * modules/strcasestr-simple: New module, based on the old
49717         strcasestr, but with Two-Way rather than KMP.
49718         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49719         * lib/string.in.h (rpl_strcasestr): Declare.
49720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49721         performance.
49722         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49723         * modules/string (Makefile.am): Support strcasestr.
49724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49725         * modules/strcasestr-tests (Depends-on): Check for alarm.
49726         * tests/test-strcasestr.c: Augment test.
49727         * lib/str-two-way.h: Clean up stray macro.
49728         * NEWS: Document new module.
49729         * MODULES.html.sh (string handling): Likewise.
49730         * doc/functions/strcasestr.texi: New file.
49731         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49732         here, since it is not a POSIX function.
49733
49734 2008-01-14  Colin Watson  <cjwatson@debian.org>
49735             Bruno Haible  <bruno@clisp.org>
49736
49737         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49738         works fine; if not, set REPLACE_STRSIGNAL.
49739         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49741         REPLACE_STRSIGNAL.
49742         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49743         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49744         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49745
49746 2008-01-14  Bruno Haible  <bruno@clisp.org>
49747
49748         * modules/strsignal (Include): Change to <string.h>.
49749
49750 2008-01-14  Colin Watson  <cjwatson@debian.org>
49751
49752         * modules/argp (Notice): Add a notice recommending to change
49753         XGETTEXT_OPTIONS.
49754         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49755
49756 2008-01-13  Colin Watson  <cjwatson@debian.org>
49757
49758         * modules/strsignal-tests: New file.
49759         * tests/test-strsignal.c: New file.
49760
49761         * lib/strsignal.c: New file, from glibc with modifications.
49762         * lib/siglist.h: New file, from glibc with modifications.
49763         * lib/string.in.h (strsignal): New declaration.
49764         * m4/strsignal.m4: New file.
49765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49766         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49767         * modules/strsignal: New file.
49768         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49769         HAVE_DECL_STRSIGNAL.
49770
49771 2008-01-13  Bruno Haible  <bruno@clisp.org>
49772
49773         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49774         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49775         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49776         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49777
49778 2008-01-13  Bruno Haible  <bruno@clisp.org>
49779
49780         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49781         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49782         * lib/argp.h (__attribute__): Likewise.
49783         * lib/c-stack.c (__attribute__): Likewise.
49784         * lib/error.h (__attribute__): Likewise.
49785         * lib/fts.c (__attribute__): Likewise.
49786         * lib/openat.h (__attribute__): Likewise.
49787         * lib/stdio.in.h (__attribute__): Likewise.
49788         * lib/string.in.h (__attribute__): Likewise.
49789         * lib/utimens.c (__attribute__): Likewise.
49790         * lib/vasnprintf.h (__attribute__): Likewise.
49791         * lib/xalloc.h (__attribute__): Likewise.
49792         * lib/xprintf.h (__attribute__): Likewise.
49793         * lib/xstrtol.h (__attribute__): Likewise.
49794         * lib/xvasprintf.h (__attribute__): Likewise.
49795
49796 2008-01-12  Bruno Haible  <bruno@clisp.org>
49797
49798         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49799         * doc/glibc-headers/a.out.texi: New file.
49800         * doc/glibc-headers/aliases.texi: New file.
49801         * doc/glibc-headers/alloca.texi: New file.
49802         * doc/glibc-headers/ar.texi: New file.
49803         * doc/glibc-headers/argp.texi: New file.
49804         * doc/glibc-headers/argz.texi: New file.
49805         * doc/glibc-headers/byteswap.texi: New file.
49806         * doc/glibc-headers/crypt.texi: New file.
49807         * doc/glibc-headers/endian.texi: New file.
49808         * doc/glibc-headers/envz.texi: New file.
49809         * doc/glibc-headers/err.texi: New file.
49810         * doc/glibc-headers/error.texi: New file.
49811         * doc/glibc-headers/execinfo.texi: New file.
49812         * doc/glibc-headers/fpu_control.texi: New file.
49813         * doc/glibc-headers/fstab.texi: New file.
49814         * doc/glibc-headers/fts.texi: New file.
49815         * doc/glibc-headers/getopt.texi: New file.
49816         * doc/glibc-headers/ieee754.texi: New file.
49817         * doc/glibc-headers/ifaddrs.texi: New file.
49818         * doc/glibc-headers/libintl.texi: New file.
49819         * doc/glibc-headers/mcheck.texi: New file.
49820         * doc/glibc-headers/mntent.texi: New file.
49821         * doc/glibc-headers/obstack.texi: New file.
49822         * doc/glibc-headers/paths.texi: New file.
49823         * doc/glibc-headers/printf.texi: New file.
49824         * doc/glibc-headers/pty.texi: New file.
49825         * doc/glibc-headers/resolv.texi: New file.
49826         * doc/glibc-headers/shadow.texi: New file.
49827         * doc/glibc-headers/sysexits.texi: New file.
49828         * doc/glibc-headers/ttyent.texi: New file.
49829
49830 2008-01-12  Jim Meyering  <meyering@redhat.com>
49831
49832         announce-gen: emit Gnulib's git-based version string.
49833         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49834         New option --gnulib-version=V, where V is expected to be
49835         the output of running git describe in the gnulib directory.
49836         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49837         not useful, and plan to stop publishing an xdelta file with each
49838         coreutils release.
49839
49840         * build-aux/announce-gen: Also check for lzma-compressed files.
49841
49842 2008-01-11  Bruno Haible  <bruno@clisp.org>
49843
49844         * tests/test-memmem.c (main): Increase maximum allowed time.
49845         * tests/test-strstr.c (main): Likewise.
49846
49847 2008-01-11  Bruno Haible  <bruno@clisp.org>
49848
49849         * doc/functions/memmem.texi: Add more precisions about platforms.
49850         * doc/functions/strstr.texi: Likewise.
49851
49852 2008-01-10  Eric Blake  <ebb9@byu.net>
49853
49854         * m4/strstr.m4: Delete cruft from copy-n-paste.
49855         Reported by Bruno Haible.
49856
49857 2008-01-10  Bruno Haible  <bruno@clisp.org>
49858
49859         Make c-strstr rely on strstr.
49860         * lib/c-strstr.c: Don't include str-kmp.h.
49861         (c_strstr): Define in terms of strstr.
49862         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49863         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49864
49865 2008-01-10  Bruno Haible  <bruno@clisp.org>
49866
49867         * doc/gnulib.texi (String Functions in C Locale): New section.
49868         * doc/c-ctype.texi: New file.
49869         * doc/c-strcase.texi: New file.
49870         * doc/c-strcaseeq.texi: New file.
49871         * doc/c-strcasestr.texi: New file.
49872         * doc/c-strstr.texi: New file.
49873         * doc/c-strtod.texi: New file.
49874         * doc/c-strtold.texi: New file.
49875
49876 2008-01-10  Eric Blake  <ebb9@byu.net>
49877
49878         * lib/relocatable.h: Fix a comment.
49879
49880 2008-01-10  Eric Blake  <ebb9@byu.net>
49881
49882         Share two-way algorithm.
49883         * lib/str-two-way.h: New file, merged from...
49884         * lib/memmem.c: ...here...
49885         * lib/strstr.c: ...and here.
49886         * modules/memmem (Files): Use it.
49887         * modules/strstr (Files): Likewise.
49888
49889         Avoid quadratic strstr implementations.
49890         * lib/strstr.c: New file.
49891         * m4/strstr.m4: Likewise.
49892         * modules/strstr: Likewise.
49893         * modules/strstr-tests: Likewise.
49894         * tests/test-strstr.c: Likewise.
49895         * lib/string.in.h (rpl_strstr): Declare.
49896         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49898         * modules/string (Makefile.am): Likewise.
49899         * MODULES.html.sh (string handling): Mention new module.
49900         * doc/functions/strstr.texi (strstr): Document the bug.
49901
49902 2008-01-10  Bruno Haible  <bruno@clisp.org>
49903
49904         * lib/relocatable.h (relocate): State whether result is freshly
49905         allocated or not.
49906         * lib/relocatable.c (relocate): Return a freshly allocated string
49907         instead of a pointer to a privately held string.
49908         Reported by Sylvain Beucler <beuc@gnu.org>.
49909
49910 2008-01-10  Colin Watson  <cjwatson@debian.org>
49911
49912         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49913         s/S_ISNLK/S_ISLNK/.
49914
49915 2008-01-09  Bruno Haible  <bruno@clisp.org>
49916
49917         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49918         and other files.
49919         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49920         if it's only a guess.
49921         * modules/memmem: Simplify by depending on memmem-simple.
49922
49923 2008-01-09  Bruno Haible  <bruno@clisp.org>
49924
49925         Work around OpenBSD 4.0 tdelete() bug.
49926         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49927         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49928         macros and don't redefine the enum values.
49929         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49930         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49931         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49932
49933 2008-01-09  Bruno Haible  <bruno@clisp.org>
49934
49935         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49936         (main): Don't perform the tests if setlocale did not install a UTF-8
49937         locale. Needed on OpenBSD 4.0.
49938         * modules/wcwidth-tests (Depends-on): Add localcharset.
49939
49940 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49941
49942         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49943         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49944         * NEWS: announce this.
49945         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49946
49947 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49948         and Eric Blake  <ebb9@byu.net>
49949
49950         Add memmem-simple module.
49951         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49952         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49953         * modules/memmem-simple: New file.
49954         * modules/memmem (Description): Tweak.
49955         * MODULES.html.sh (string handling): Mention new module.
49956         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49957         addressed by memmem-simple.
49958         * NEWS: Document the difference.
49959
49960 2008-01-09  Eric Blake  <ebb9@byu.net>
49961
49962         Give gcc some memmem optimization hints.
49963         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49964         (strcasestr): Declare as pure.
49965         * modules/memmem (Maintainer): Claim my implementation.
49966
49967 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49968
49969         Support AIX 6.1 and higher.
49970         * build-aux/config.libpath: Likewise.
49971         * build-aux/config.rpath: Likewise.
49972
49973 2008-01-08  Jim Meyering  <meyering@redhat.com>
49974             Bruno Haible  <bruno@clisp.org>
49975
49976         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49977         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49978         Reported by Peter Fales in
49979         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49980
49981 2008-01-08  Bruno Haible  <bruno@clisp.org>
49982
49983         * modules/unictype/category-of (Depends-on): Add
49984         unictype/category-none.
49985         * modules/unictype/category-and-tests (Depends-on): Add
49986         unictype/category-{L,N,Lu,Nd}.
49987         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49988         * modules/unictype/category-or-tests (Depends-on): Add
49989         unictype/category-{L,N}.
49990         * modules/unictype/category-name-tests (Depends-on): Add
49991         unictype/category-{Z,Nl}.
49992         Reported by Simon Josefsson.
49993
49994 2008-01-08  Bruno Haible  <bruno@clisp.org>
49995
49996         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49997         convention better.
49998         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49999         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
50000         Reported by Peter Miller <millerp@canb.auug.org.au>.
50001
50002 2008-01-08  Eric Blake  <ebb9@byu.net>
50003
50004         Rewrite memmem to guarantee linear complexity without malloc.
50005         * lib/memmem.c (memmem): Use Two-Way rather than
50006         Knuth-Morris-Pratt, to allow O(1) space usage.
50007         (critical_factorization, two_way_short_needle)
50008         (two_way_long_needle): New functions.
50009         (knuth_morris_pratt): Delete.
50010         * modules/memmem (Depends-on): No longer need malloca or stdbool.
50011         Add stdint.
50012         * tests/test-memmem.c (main): Add tests for periodic needle and
50013         sublinear performance.
50014         * doc/functions/memmem.texi (memmem): Document other deficiencies
50015         in cygwin and older glibc.
50016
50017 2008-01-08  Bruno Haible  <bruno@clisp.org>
50018
50019         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
50020         augmentation.
50021
50022 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
50023
50024         Add a configure time option: --disable-acl.
50025         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
50026         AC_ARG_ENABLE(acl).
50027
50028 2008-01-06  Simon Josefsson  <simon@josefsson.org>
50029
50030         * tests/test-localename.c: Don't include obsolete "setenv.h".
50031
50032         * modules/localename-tests (Depends-on): Need unsetenv.
50033
50034 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50035
50036         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
50037
50038 2008-01-06  Colin Watson  <cjwatson@debian.org>
50039
50040         * users.txt: Add man-db.
50041
50042 2008-01-07  Bruno Haible  <bruno@clisp.org>
50043
50044         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
50045         previous section name.
50046
50047 2008-01-07  Bruno Haible  <bruno@clisp.org>
50048
50049         * lib/progname.c (set_program_name): Don't strip off a leading
50050         "lt-" prefix outside a .libs directory.
50051         Suggested by Paul Eggert.
50052
50053 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
50054             Bruno Haible  <bruno@clisp.org>
50055
50056         Improve memory cleanup in 'relocatable' module.
50057         * lib/relocatable.h (compute_curr_prefix): Change return type to
50058         'char *'.
50059         * lib/relocatable.c (compute_curr_prefix): Change return type to
50060         'char *'. Free curr_installdir after use.
50061         (relocate): Free curr_prefix_better after use.
50062         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
50063
50064 2008-01-01  Bruno Haible  <bruno@clisp.org>
50065
50066         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
50067         failure on older glibc systems.
50068         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50069
50070 2008-01-05  Eric Blake  <ebb9@byu.net>
50071
50072         Avoid quadratic system memmem.
50073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
50074         Reported by Ralf Wildenhues.
50075
50076         Fix memmem test for mingw.
50077         * modules/memmem-tests (configure.ac): Check for alarm.
50078         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
50079         it.
50080         * doc/functions/memmem.texi: New file.
50081         * doc/gnulib.texi (Function Substitutes): Add memmem.
50082         Reported by Bruno Haible.
50083
50084 2008-01-04  Bruno Haible  <bruno@clisp.org>
50085
50086         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
50087         Require gl_HEADER_STRINGS_H_DEFAULTS, not
50088         gl_HEADER_STRING_H_DEFAULTS.
50089
50090 2008-01-04  Eric Blake  <ebb9@byu.net>
50091
50092         Shorten duration of memmem test.
50093         * tests/test-memmem.c (main): Use alarm to declare failure if test
50094         is taking too long.
50095         Reported by Ralf Wildenhues.
50096
50097 2007-12-21  Simon Josefsson  <simon@josefsson.org>
50098
50099         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
50100         string, needed by strerror.
50101
50102 2008-01-03  Colin Watson  <cjwatson@debian.org>
50103             Bruno Haible  <bruno@clisp.org>
50104
50105         * doc/gnulib-tool.texi (Localization): New section.
50106
50107 2008-01-02  Bruno Haible  <bruno@clisp.org>
50108
50109         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
50110         variables to 'unsigned char *' type.
50111         Reported by Paul Eggert.
50112
50113 2008-01-02  Jim Meyering  <jim@meyering.net>
50114
50115         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
50116
50117 2007-12-31  Jim Meyering  <jim@meyering.net>
50118
50119         Avoid use of private FTS type name.
50120         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
50121
50122 2007-12-30  Karl Berry  <karl@gnu.org>
50123
50124         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
50125         work around defect in Texinfo and/or the standalone Info browser.
50126
50127 2007-12-30  Bruno Haible  <bruno@clisp.org>
50128
50129         Unify 5 copies of the KMP code.
50130         * lib/str-kmp.h: New file.
50131         * lib/c-strcasestr.c: Include str-kmp.h.
50132         (knuth_morris_pratt): Remove function.
50133         (c_strcasestr): Update.
50134         * lib/c-strstr.c: Include str-kmp.h.
50135         (knuth_morris_pratt): Remove function.
50136         (c_strcasestr): Update.
50137         * lib/mbscasestr.c: Include str-kmp.h.
50138         (knuth_morris_pratt_unibyte): Remove function.
50139         * lib/mbsstr.c: Include str-kmp.h.
50140         (knuth_morris_pratt_unibyte): Remove function.
50141         * lib/strcasestr.c: Include str-kmp.h.
50142         (knuth_morris_pratt): Remove function.
50143         (strcasestr): Update.
50144         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
50145         * modules/c-strstr (Files): Likewise.
50146         * modules/mbscasestr (Files): Likewise.
50147         * modules/mbsstr (Files): Likewise.
50148         * modules/strcasestr (Files): Likewise.
50149         Suggested by Paul Eggert.
50150
50151 2007-12-30  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
50154         defined.
50155
50156 2007-12-30  Bruno Haible  <bruno@clisp.org>
50157
50158         * lib/xmalloca.h: Include xalloc.h.
50159         (xnmalloca): New macro.
50160
50161 2007-12-30  Bruno Haible  <bruno@clisp.org>
50162
50163         * lib/malloca.h (nmalloca): New macro.
50164         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
50165         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
50166         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
50167         knuth_morris_pratt_multibyte): Likewise.
50168         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
50169         knuth_morris_pratt_multibyte): Likewise.
50170         * lib/memmem.c (knuth_morris_pratt): Likewise.
50171         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
50172
50173 2007-12-25  Bruno Haible  <bruno@clisp.org>
50174
50175         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
50176         * lib/glob.c: Don't include openat.h.
50177         (link_exists2_p): Add back the code that deals with the
50178         !GLOB_ALTDIRFUNC case.
50179         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
50180         let it do the filename concatenation.
50181         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
50182         * modules/glob (Depends-on): Remove openat.
50183
50184 2007-12-31  Bruno Haible  <bruno@clisp.org>
50185
50186         * modules/dirfd (License): Change to LGPLv2+.
50187         Approved by Jim Meyering.
50188
50189 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50190
50191         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
50192         when multiplying M by sizeof (size_t).
50193
50194 2007-12-10  Martin Lambers  <marlam@marlam.de>
50195
50196         Override getpagesize on mingw.
50197         * lib/getpagesize.c: New file.
50198         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
50199         * modules/getpagesize (Files): Add lib/getpagesize.c.
50200         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
50201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50202         REPLACE_GETPAGESIZE.
50203         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
50204
50205 2007-12-25  Bruno Haible  <bruno@clisp.org>
50206
50207         * modules/localcharset (Notice): New field.
50208         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
50209         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50210
50211 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50212             Bruno Haible  <bruno@clisp.org>
50213
50214         Avoid using the syntax symbol() in formatted documentation.
50215         * MODULES.html.sh (func_module): When replacing symbol() with a
50216         hyperlink, remove the parentheses. Show an error if some remain.
50217         Recognize and render the '...' syntax.
50218         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
50219         Rework. Add paragraph about GCC's inlining.
50220         * doc/alloca.texi: Likewise.
50221         * doc/error.texi: Remove parentheses from symbol reference.
50222         * doc/gnulib-intro.texi: Likewise.
50223         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
50224         * modules/fnmatch (Description): Reword to say "the ... function".
50225         * modules/full-read (Description): Likewise.
50226         * modules/full-write (Description): Likewise.
50227         * modules/safe-read (Description): Likewise.
50228         * modules/safe-write (Description): Likewise.
50229         * modules/strchrnul (Description): Likewise.
50230         * modules/trim (Description): Likewise.
50231         * modules/error (Description): Remove parentheses from symbol
50232         references.
50233         * modules/verror (Description): Likewise.
50234         Reported by Karl Berry.
50235
50236 2007-12-25  Bruno Haible  <bruno@clisp.org>
50237
50238         Fixup after 2007-10-16 commit.
50239         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
50240
50241 2007-12-24  Bruno Haible  <bruno@clisp.org>
50242
50243         Make --enable-relocatable work with DESTDIR.
50244         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
50245         to compute installdir from destprog.
50246         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
50247         also set the RELOC_DESTDIR variable.
50248         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50249
50250 2007-12-24  Bruno Haible  <bruno@clisp.org>
50251
50252         Fix link error due to xalloc_die().
50253         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
50254         of xreadlink.
50255         * lib/relocwrapper.c: Update comments.
50256         * build-aux/install-reloc: Remove xreadlink.c from file list.
50257         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50258         xreadlink.c.
50259         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50260
50261 2007-12-24  Bruno Haible  <bruno@clisp.org>
50262
50263         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
50264         * lib/setenv.h: Remove file.
50265         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
50266         lib/setenv.h.
50267         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
50268         (Depends-on): Add stdlib.
50269         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
50270         gl_FUNC_UNSETENV.
50271         (Include): Replace setenv.h with <stdlib.h>.
50272         * modules/unsetenv: New file.
50273         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
50274         * lib/unsetenv.c: Include <stdlib.h> first.
50275         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
50276         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
50277         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
50278         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
50279         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
50280         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
50282         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50283         * doc/functions/unsetenv.texi: Update.
50284         * modules/xsetenv (Depends-on): Add unsetenv.
50285         * modules/getdate (Depends-on): Likewise.
50286         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
50287         * lib/xsetenv.c: Don't include setenv.h.
50288         * lib/getdate.y: Likewise.
50289         * lib/relocwrapper.c: Likewise.
50290         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
50291         (Depends-on): Add stdlib.
50292         * NEWS: Mention the changes.
50293         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50294
50295 2007-12-23  Bruno Haible  <bruno@clisp.org>
50296
50297         * lib/memmem.c (memmem): Use lowercase variable names. Tab
50298         indentation.
50299
50300 2007-12-23  Bruno Haible  <bruno@clisp.org>
50301
50302         * lib/c-strcasestr.c: Add more comments.
50303         * lib/c-strstr.c: Likewise.
50304         * lib/mbscasestr.c: Likewise.
50305         * lib/mbsstr.c: Likewise.
50306         * lib/strcasestr.c: Likewise.
50307         * lib/memmem.c: Likewise.
50308
50309 2007-12-23  Bruno Haible  <bruno@clisp.org>
50310
50311         * tests/test-memmem.c: Include <string.h> first.
50312
50313 2007-12-22  Bruno Haible  <bruno@clisp.org>
50314
50315         * gnulib-tool (func_create_testdir): Change $auxdir while generating
50316         the contents of $testsbase.
50317         Reported by Ralf Wildenhues.
50318
50319 2007-12-22  Bruno Haible  <bruno@clisp.org>
50320
50321         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
50322         two variables local_ldadd_before, local_ldadd_last.
50323
50324 2007-12-20  Eric Blake  <ebb9@byu.net>
50325
50326         Work around circular library issue when cross-compiling.
50327         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
50328         that progname.o does not need to pull in rpl_memcmp.
50329
50330 2007-12-19  Eric Blake  <ebb9@byu.net>
50331
50332         Fix memmem to avoid O(n^2) worst-case complexity.
50333         * lib/memmem.c (knuth_morris_pratt): New function.
50334         (memmem): Use it if first few naive iterations fail.
50335         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
50336         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
50337         * modules/memchr (License): Likewise.
50338         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
50339         malloca.
50340         * tests/test-memmem.c: Rewrite, borrowing ideas from
50341         test-mbsstr1.c; the old version wouldn't even compile!
50342         * modules/memmem-tests: New file.
50343         * lib/string.in.h (rpl_memmem): Add declaration.
50344         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
50345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
50346         REPLACE_MEMMEM.
50347
50348 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50349
50350         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
50351         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
50352         before any system include files, and undef after them all.  This
50353         should fix a problem on VMS reported by John E. Malmberg in
50354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
50355
50356 2007-12-17  Eric Blake  <ebb9@byu.net>
50357
50358         Revert addition of verify, for BSD/OS.
50359         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
50360         can't handle large files, for the sake of obsolete platforms.
50361         * modules/fseeko (Depends-on): Remove verify.
50362         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
50363         * doc/functions/ftello.texi (ftello): Likewise.
50364         * doc/functions/fgetpos.texi (fgetpos): Likewise.
50365         Reported by Larry Jones.
50366
50367 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
50368
50369         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
50370         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
50371
50372 2007-12-17  Jim Meyering  <meyering@redhat.com>
50373
50374         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
50375         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
50376         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
50377         * modules/getcwd (Depends-on): Add openat.
50378         Reported by Petr Salinger.
50379
50380 2007-12-17  Bruno Haible  <bruno@clisp.org>
50381
50382         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
50383         avoid a segmentation fault of the configure test on x86_64 systems.
50384
50385 2007-12-15  Jim Meyering  <meyering@redhat.com>
50386
50387         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
50388
50389 2007-12-13  Eric Blake  <ebb9@byu.net>
50390
50391         Another fseek test.
50392         * tests/test-fseek.c (main): Also test ungetc handling.
50393         * tests/test-fseeko.c (main): Likewise.
50394         * modules/fseeko (Depends-on): Add verify.
50395         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
50396         large.
50397         Reported by Larry Jones.
50398
50399         Fix fseeko on mingw.
50400         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
50401         seek.
50402
50403         Beef up fseek tests.
50404         * tests/test-fseek.c (main): Also test eof handling.
50405         * tests/test-fseeko.c (main): Likewise.
50406         Reported by Larry Jones.
50407
50408 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
50409
50410         Fix fseeko on BSD-based platforms.
50411         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
50412         successful seek.
50413
50414 2007-12-12  Eric Blake  <ebb9@byu.net>
50415
50416         Allow circular dependency of separate libtests.a
50417         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
50418         when use_libtests.
50419
50420 2007-12-11  Eric Blake  <ebb9@byu.net>
50421
50422         Fix bug with -0.0L in previous patch.
50423         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
50424         * tests/test-isnan.c (main): Also test on zeroes.
50425         * tests/test-isnanf.c (main): Likewise.
50426         * tests/test-isnanl.h (main): Likewise.
50427
50428         Detect pseudo-denormals on x86 even when cross-compiling.
50429         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
50430         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
50431         invalid bit patterns that happen to satisfy ==.
50432
50433         Avoid link failures with separate libtests.a.
50434         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
50435         last, to satisfy circular dependencies.
50436
50437 2007-12-11  Eric Blake  <ebb9@byu.net>
50438         and Bruno Haible  <bruno@clisp.org>
50439
50440         Fix OpenBSD 4.0 <float.h> handling of long double.
50441         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
50442         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
50443         * doc/headers/float.texi (float.h): Document OpenBSD bug.
50444
50445 2007-12-11  Jim Meyering  <meyering@redhat.com>
50446
50447         * users.txt: Add libvirt.
50448
50449         Support versions of autoconf prior to 2.59c.
50450         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
50451         if it is not already defined.
50452
50453 2007-12-09  Bruno Haible  <bruno@clisp.org>
50454
50455         Let 'gnulib-tool --import' collect sources needed for the tests in
50456         tests/ rather than in lib/.
50457         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
50458         argument. If true, add rules to generate libtests.a, and put libtests.a
50459         into $(LDADD). Consider source files in subdirectories and set
50460         uses_subdirs.
50461         (func_emit_initmacro_start, func_emit_initmacro_end,
50462         func_emit_initmacro_done): Pass all arguments explicitly.
50463         (func_import): Determine two module lists main_modules,
50464         testsrelated_modules. Determine use_libtests. Determine two variables
50465         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
50466         instead of just sed_transform_lib_file. Determine two variables
50467         main_files and testsrelated_files. Compute 'files' as the union of
50468         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
50469         func_add_or_update. In the generated gnulib-comp.m4, collect the
50470         object files for tests/ in different variables than those for lib/.
50471         Substitute LIBTESTS_LIBDEPS.
50472         (func_create_testdir): Combine the uses_subdirs results from
50473         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
50474
50475 2007-12-09  Bruno Haible  <bruno@clisp.org>
50476
50477         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
50478         the build-aux directory.
50479
50480 2007-12-09  Bruno Haible  <bruno@clisp.org>
50481
50482         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
50483         introduced on 2006-09-09.
50484
50485 2007-12-07  Jim Meyering  <meyering@redhat.com>
50486
50487         Let these macros work also with autoconf-2.59.
50488         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
50489         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
50490         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50491
50492 2007-12-06  Jim Meyering  <meyering@redhat.com>
50493
50494         Avoid a configure-time syntax error in gl_FUNC_ACL.
50495         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
50496         function in each branch, before testing the cache variable.
50497
50498 2007-12-04  Eric Blake  <ebb9@byu.net>
50499
50500         Make scripts executable.
50501         * build-aux/config.guess: Add execute permissions.
50502         * build-aux/config.sub: Likewise.
50503         * build-aux/gendocs.sh: Likewise.
50504
50505         Fix frexp on mingw.
50506         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
50507         cross-compiling.
50508         * doc/functions/frexp.texi (frexp): Document the bug.
50509
50510         Make cygwin fseeko check more reliable.
50511         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50512         version numbers, rather than unrelated feature check.
50513         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50514         * doc/functions/ftello.texi (ftello): Likewise.
50515         Reported by Bruno Haible.
50516
50517         * m4/strerror.m4: Bump version number.
50518
50519 2007-12-03  Bruno Haible  <bruno@clisp.org>
50520
50521         * doc/functions/mprotect.texi: Mention the mingw problem.
50522
50523 2007-12-03  Eric Blake  <ebb9@byu.net>
50524
50525         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50526         REPLACE_STRERROR is initialized before this macro.
50527
50528 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50529
50530         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50531         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50532         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50533         put -lsec in even for programs other than 'ls'.  This fixes a problem
50534         for gettext reported by Bruno Haible in
50535         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50536         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50537         Add support for Solaris 10.  This isn't efficient, but should get the
50538         job done for now.
50539
50540 2007-12-03  James Youngman  <jay@gnu.org>
50541
50542         * doc/regexprops-generic.texi: change "an close-group" to "a
50543         close-group" and "illegal" to "not allowed".
50544
50545 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50546
50547         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50548         pr_byname.h. Needed for the rare case when the maintainer has done
50549         "make maintainer-clean" in the source directory and then attempts a
50550         build outside the source directory.
50551         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50552         scripts_byname.h.
50553
50554 2007-12-02  Martin Lambers <marlam@marlam.de>
50555             Bruno Haible  <bruno@clisp.org>
50556
50557         * lib/getpagesize.h: Remove file.
50558         * lib/unistd.in.h: Include declaration of getpagesize here.
50559         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50560         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50561         HAVE_SYS_PARAM_H.
50562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50563         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50564         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50565         (Depends-on): Add unistd.
50566         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50567         (Include): Use <unistd.h> instead of getpagesize.h.
50568         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50569         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50570         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50571         gl_GETPAGESIZE invocation, already handled by module dependency.
50572         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50573
50574 2007-12-02  Bruno Haible  <bruno@clisp.org>
50575
50576         * modules/strings-tests: New file.
50577         * tests/test-strings.c: New file.
50578
50579         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50580         * lib/strings.in.h: New file.
50581         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50582         * m4/strings_h.m4: New file.
50583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50584         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50585         * modules/strings: New file.
50586         * modules/string (Makefile.am): Update.
50587         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50588         Reported by Karl Berry.
50589
50590 2007-12-01  Eric Blake  <ebb9@byu.net>
50591
50592         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50593         accomodate fix in cygwin 1.5.25.
50594
50595 2007-12-01  Jim Meyering  <meyering@redhat.com>
50596
50597         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50598         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50599         that would inhibit utf8-optimization of a regexp containing line-
50600         or buffer-anchors, e.g., `^', `$'.
50601
50602 2007-11-30  Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50605         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50606         glthread_recursive_lock_init.
50607         * lib/lock.c (glthread_recursive_lock_init)
50608         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50609         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50610
50611 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50612
50613         New function qset_acl, like set_acl but with syscall semantics.
50614         * lib/acl.h (qset_acl): New decl.
50615         * lib/acl.c (qset_acl): New function.
50616         (set_acl): Use new function.  Use more-consistent diagnostics.
50617
50618 2007-11-28  Jim Meyering  <meyering@redhat.com>
50619
50620         * modules/physmem (License): Change from GPL to LGPLv2+.
50621
50622 2007-11-26  Bruno Haible  <bruno@clisp.org>
50623
50624         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50625         'long double' type has excess precision.
50626         Reported by Jim Meyering in
50627         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50628
50629 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50630
50631         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50632         Sync from <http://gnu.org/licenses>.
50633         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50634         with license text from same location.
50635         * doc/maintain.texi, doc/standards.texi:  Sync from
50636         <http://savannah.gnu.org/projects/gnustandards>.
50637
50638 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50639         and Jim Meyering  <meyering@redhat.com>
50640
50641         Adjust getdate' grammar to accept a slightly more regular language.
50642         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50643         Before, the former was rejected.
50644         * lib/getdate.y (digits_to_date_time): New function, factored
50645         out of ...
50646         (number): ...here.  Just call digits_to_date_time.
50647         (hybrid): New non-terminal to handle an <unsigned number,
50648         signed relative offset> sequence consistently.
50649
50650 2007-11-18  Jim Meyering  <meyering@redhat.com>
50651
50652         Pull my changes from coreutils:
50653         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50654         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50655         use of $gnulib_tool_option_extras, so that it's separated from the
50656         preceding argument.
50657
50658         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50659         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50660         parent destination directories before copying a file into place.
50661
50662 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50663
50664         bootstrap: work also with 4-argument variant of AC_INIT
50665         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50666
50667 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50668
50669         Port test-getaddrinfo to Solaris.
50670         Problem reported by Bruno Haible in
50671         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50672         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50673         explanation of setting 'hints'.
50674         Don't reject an implementation merely because it returns EAI_SERVICE.
50675         (EAI_SERVICE): Define to 0 if not defined.
50676
50677 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50678
50679         The license of gnu-make and posix-shell is now "GPLed build tool".
50680         * modules/gnu-make (License): Likewise.
50681         * modules/posix-shell (License): Likewise.
50682
50683         New module posix-shell, for determining a POSIX shell
50684         or perhaps something that is close enough to a POSIX shell.
50685         * m4/posix-shell.m4: New file.
50686         * modules/posix-shell: New file.
50687
50688         * MODULES.html.sh: Mention new module.
50689
50690         New module gnu-make, for determining whether we're using GNU Make.
50691         * m4/gnu-make.m4: New file.
50692         * modules/gnu-make: New file.
50693         * MODULES.html.sh: Mention new module.
50694
50695 2007-11-14  Jim Meyering  <meyering@redhat.com>
50696
50697         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50698         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50699         use this macro to create a function _definition_.
50700         Remove useless "#undef ARGMATCH_DIE".
50701
50702 2007-11-14  Bruno Haible  <bruno@clisp.org>
50703
50704         * lib/config.charset: Update for OpenBSD 4.1.
50705         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50706
50707 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50708
50709         Document 64-bit #if problems in stdint.texi.
50710         * doc/headers/stdint.texi (stdint.h): Mention problems with
50711         64-bit-#if, and how to work around them.
50712
50713         Don't insist on 'long long int' support in the preprocessor.  It
50714         breaks too many things.  For example, PRIdMAX still uses a 'long
50715         long int' format with the latest Sun compiler, even though
50716         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50717         preprocessor problem.  This causes the latest coreutils to dump
50718         core on Solaris 10 sparc with the Sun C compiler.
50719         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50720         the troublesome expressions at configure-time, not at #if-time.
50721         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50722         preprocessor.
50723         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50724         compile-time C checks, done at 'configure'-time.
50725         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50726         * modules/inttypes (Makefile): Substitute the new symbols that
50727         gl_INTTYPES_H now generates.
50728         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50729
50730 2007-11-12  Bruno Haible  <bruno@clisp.org>
50731
50732         Tests for Unicode character classification functions.
50733
50734         * modules/unictype/bidicategory-byname-tests: New file.
50735         * modules/unictype/bidicategory-name-tests: New file.
50736         * modules/unictype/bidicategory-of-tests: New file.
50737         * modules/unictype/bidicategory-test-tests: New file.
50738         * modules/unictype/block-list-tests: New file.
50739         * modules/unictype/block-of-tests: New file.
50740         * modules/unictype/block-test-tests: New file.
50741         * modules/unictype/category-C-tests: New file.
50742         * modules/unictype/category-Cc-tests: New file.
50743         * modules/unictype/category-Cf-tests: New file.
50744         * modules/unictype/category-Cn-tests: New file.
50745         * modules/unictype/category-Co-tests: New file.
50746         * modules/unictype/category-Cs-tests: New file.
50747         * modules/unictype/category-L-tests: New file.
50748         * modules/unictype/category-Ll-tests: New file.
50749         * modules/unictype/category-Lm-tests: New file.
50750         * modules/unictype/category-Lo-tests: New file.
50751         * modules/unictype/category-Lt-tests: New file.
50752         * modules/unictype/category-Lu-tests: New file.
50753         * modules/unictype/category-M-tests: New file.
50754         * modules/unictype/category-Mc-tests: New file.
50755         * modules/unictype/category-Me-tests: New file.
50756         * modules/unictype/category-Mn-tests: New file.
50757         * modules/unictype/category-N-tests: New file.
50758         * modules/unictype/category-Nd-tests: New file.
50759         * modules/unictype/category-Nl-tests: New file.
50760         * modules/unictype/category-No-tests: New file.
50761         * modules/unictype/category-P-tests: New file.
50762         * modules/unictype/category-Pc-tests: New file.
50763         * modules/unictype/category-Pd-tests: New file.
50764         * modules/unictype/category-Pe-tests: New file.
50765         * modules/unictype/category-Pf-tests: New file.
50766         * modules/unictype/category-Pi-tests: New file.
50767         * modules/unictype/category-Po-tests: New file.
50768         * modules/unictype/category-Ps-tests: New file.
50769         * modules/unictype/category-S-tests: New file.
50770         * modules/unictype/category-Sc-tests: New file.
50771         * modules/unictype/category-Sk-tests: New file.
50772         * modules/unictype/category-Sm-tests: New file.
50773         * modules/unictype/category-So-tests: New file.
50774         * modules/unictype/category-Z-tests: New file.
50775         * modules/unictype/category-Zl-tests: New file.
50776         * modules/unictype/category-Zp-tests: New file.
50777         * modules/unictype/category-Zs-tests: New file.
50778         * modules/unictype/category-and-not-tests: New file.
50779         * modules/unictype/category-and-tests: New file.
50780         * modules/unictype/category-byname-tests: New file.
50781         * modules/unictype/category-name-tests: New file.
50782         * modules/unictype/category-none-tests: New file.
50783         * modules/unictype/category-of-tests: New file.
50784         * modules/unictype/category-or-tests: New file.
50785         * modules/unictype/category-test-withtable-tests: New file.
50786         * modules/unictype/combining-class-tests: New file.
50787         * modules/unictype/ctype-alnum-tests: New file.
50788         * modules/unictype/ctype-alpha-tests: New file.
50789         * modules/unictype/ctype-blank-tests: New file.
50790         * modules/unictype/ctype-cntrl-tests: New file.
50791         * modules/unictype/ctype-digit-tests: New file.
50792         * modules/unictype/ctype-graph-tests: New file.
50793         * modules/unictype/ctype-lower-tests: New file.
50794         * modules/unictype/ctype-print-tests: New file.
50795         * modules/unictype/ctype-punct-tests: New file.
50796         * modules/unictype/ctype-space-tests: New file.
50797         * modules/unictype/ctype-upper-tests: New file.
50798         * modules/unictype/ctype-xdigit-tests: New file.
50799         * modules/unictype/decimal-digit-tests: New file.
50800         * modules/unictype/digit-tests: New file.
50801         * modules/unictype/mirror-tests: New file.
50802         * modules/unictype/numeric-tests: New file.
50803         * modules/unictype/property-alphabetic-tests: New file.
50804         * modules/unictype/property-ascii-hex-digit-tests: New file.
50805         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50806         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50807         * modules/unictype/property-bidi-block-separator-tests: New file.
50808         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50809         * modules/unictype/property-bidi-common-separator-tests: New file.
50810         * modules/unictype/property-bidi-control-tests: New file.
50811         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50812         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50813         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50814         * modules/unictype/property-bidi-european-digit-tests: New file.
50815         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50816         * modules/unictype/property-bidi-left-to-right-tests: New file.
50817         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50818         * modules/unictype/property-bidi-other-neutral-tests: New file.
50819         * modules/unictype/property-bidi-pdf-tests: New file.
50820         * modules/unictype/property-bidi-segment-separator-tests: New file.
50821         * modules/unictype/property-bidi-whitespace-tests: New file.
50822         * modules/unictype/property-byname-tests: New file.
50823         * modules/unictype/property-combining-tests: New file.
50824         * modules/unictype/property-composite-tests: New file.
50825         * modules/unictype/property-currency-symbol-tests: New file.
50826         * modules/unictype/property-dash-tests: New file.
50827         * modules/unictype/property-decimal-digit-tests: New file.
50828         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50829         * modules/unictype/property-deprecated-tests: New file.
50830         * modules/unictype/property-diacritic-tests: New file.
50831         * modules/unictype/property-extender-tests: New file.
50832         * modules/unictype/property-format-control-tests: New file.
50833         * modules/unictype/property-grapheme-base-tests: New file.
50834         * modules/unictype/property-grapheme-extend-tests: New file.
50835         * modules/unictype/property-grapheme-link-tests: New file.
50836         * modules/unictype/property-hex-digit-tests: New file.
50837         * modules/unictype/property-hyphen-tests: New file.
50838         * modules/unictype/property-id-continue-tests: New file.
50839         * modules/unictype/property-id-start-tests: New file.
50840         * modules/unictype/property-ideographic-tests: New file.
50841         * modules/unictype/property-ids-binary-operator-tests: New file.
50842         * modules/unictype/property-ids-trinary-operator-tests: New file.
50843         * modules/unictype/property-ignorable-control-tests: New file.
50844         * modules/unictype/property-iso-control-tests: New file.
50845         * modules/unictype/property-join-control-tests: New file.
50846         * modules/unictype/property-left-of-pair-tests: New file.
50847         * modules/unictype/property-line-separator-tests: New file.
50848         * modules/unictype/property-logical-order-exception-tests: New file.
50849         * modules/unictype/property-lowercase-tests: New file.
50850         * modules/unictype/property-math-tests: New file.
50851         * modules/unictype/property-non-break-tests: New file.
50852         * modules/unictype/property-not-a-character-tests: New file.
50853         * modules/unictype/property-numeric-tests: New file.
50854         * modules/unictype/property-other-alphabetic-tests: New file.
50855         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50856         * modules/unictype/property-other-grapheme-extend-tests: New file.
50857         * modules/unictype/property-other-id-continue-tests: New file.
50858         * modules/unictype/property-other-id-start-tests: New file.
50859         * modules/unictype/property-other-lowercase-tests: New file.
50860         * modules/unictype/property-other-math-tests: New file.
50861         * modules/unictype/property-other-uppercase-tests: New file.
50862         * modules/unictype/property-paired-punctuation-tests: New file.
50863         * modules/unictype/property-paragraph-separator-tests: New file.
50864         * modules/unictype/property-pattern-syntax-tests: New file.
50865         * modules/unictype/property-pattern-white-space-tests: New file.
50866         * modules/unictype/property-private-use-tests: New file.
50867         * modules/unictype/property-punctuation-tests: New file.
50868         * modules/unictype/property-quotation-mark-tests: New file.
50869         * modules/unictype/property-radical-tests: New file.
50870         * modules/unictype/property-sentence-terminal-tests: New file.
50871         * modules/unictype/property-soft-dotted-tests: New file.
50872         * modules/unictype/property-space-tests: New file.
50873         * modules/unictype/property-terminal-punctuation-tests: New file.
50874         * modules/unictype/property-test-tests: New file.
50875         * modules/unictype/property-titlecase-tests: New file.
50876         * modules/unictype/property-unassigned-code-value-tests: New file.
50877         * modules/unictype/property-unified-ideograph-tests: New file.
50878         * modules/unictype/property-uppercase-tests: New file.
50879         * modules/unictype/property-variation-selector-tests: New file.
50880         * modules/unictype/property-white-space-tests: New file.
50881         * modules/unictype/property-xid-continue-tests: New file.
50882         * modules/unictype/property-xid-start-tests: New file.
50883         * modules/unictype/property-zero-width-tests: New file.
50884         * modules/unictype/scripts-tests: New file.
50885         * modules/unictype/syntax-c-ident-tests: New file.
50886         * modules/unictype/syntax-c-whitespace-tests: New file.
50887         * modules/unictype/syntax-java-ident-tests: New file.
50888         * modules/unictype/syntax-java-whitespace-tests: New file.
50889         * tests/unictype/test-bidi_byname.c: New file.
50890         * tests/unictype/test-bidi_name.c: New file.
50891         * tests/unictype/test-bidi_of.c: New file.
50892         * tests/unictype/test-bidi_test.c: New file.
50893         * tests/unictype/test-block_list.c: New file.
50894         * tests/unictype/test-block_of.c: New file.
50895         * tests/unictype/test-block_test.c: New file.
50896         * tests/unictype/test-categ_and.c: New file.
50897         * tests/unictype/test-categ_and_not.c: New file.
50898         * tests/unictype/test-categ_byname.c: New file.
50899         * tests/unictype/test-categ_name.c: New file.
50900         * tests/unictype/test-categ_none.c: New file.
50901         * tests/unictype/test-categ_of.c: New file.
50902         * tests/unictype/test-categ_or.c: New file.
50903         * tests/unictype/test-categ_test_withtable.c: New file.
50904         * tests/unictype/test-combining.c: New file.
50905         * tests/unictype/test-decdigit.c: New file.
50906         * tests/unictype/test-digit.c: New file.
50907         * tests/unictype/test-mirror.c: New file.
50908         * tests/unictype/test-numeric.c: New file.
50909         * tests/unictype/test-pr_byname.c: New file.
50910         * tests/unictype/test-pr_test.c: New file.
50911         * tests/unictype/test-predicate-part1.h: New file.
50912         * tests/unictype/test-predicate-part2.h: New file.
50913         * tests/unictype/test-scripts.c: New file.
50914         * tests/unictype/test-sy_c_ident.c: New file.
50915         * tests/unictype/test-sy_java_ident.c: New file.
50916
50917         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50918         for Unicode 5.0.0.
50919         * tests/unictype/test-categ_Cc.c: Likewise.
50920         * tests/unictype/test-categ_Cf.c: Likewise.
50921         * tests/unictype/test-categ_Cn.c: Likewise.
50922         * tests/unictype/test-categ_Co.c: Likewise.
50923         * tests/unictype/test-categ_Cs.c: Likewise.
50924         * tests/unictype/test-categ_L.c: Likewise.
50925         * tests/unictype/test-categ_Ll.c: Likewise.
50926         * tests/unictype/test-categ_Lm.c: Likewise.
50927         * tests/unictype/test-categ_Lo.c: Likewise.
50928         * tests/unictype/test-categ_Lt.c: Likewise.
50929         * tests/unictype/test-categ_Lu.c: Likewise.
50930         * tests/unictype/test-categ_M.c: Likewise.
50931         * tests/unictype/test-categ_Mc.c: Likewise.
50932         * tests/unictype/test-categ_Me.c: Likewise.
50933         * tests/unictype/test-categ_Mn.c: Likewise.
50934         * tests/unictype/test-categ_N.c: Likewise.
50935         * tests/unictype/test-categ_Nd.c: Likewise.
50936         * tests/unictype/test-categ_Nl.c: Likewise.
50937         * tests/unictype/test-categ_No.c: Likewise.
50938         * tests/unictype/test-categ_P.c: Likewise.
50939         * tests/unictype/test-categ_Pc.c: Likewise.
50940         * tests/unictype/test-categ_Pd.c: Likewise.
50941         * tests/unictype/test-categ_Pe.c: Likewise.
50942         * tests/unictype/test-categ_Pf.c: Likewise.
50943         * tests/unictype/test-categ_Pi.c: Likewise.
50944         * tests/unictype/test-categ_Po.c: Likewise.
50945         * tests/unictype/test-categ_Ps.c: Likewise.
50946         * tests/unictype/test-categ_S.c: Likewise.
50947         * tests/unictype/test-categ_Sc.c: Likewise.
50948         * tests/unictype/test-categ_Sk.c: Likewise.
50949         * tests/unictype/test-categ_Sm.c: Likewise.
50950         * tests/unictype/test-categ_So.c: Likewise.
50951         * tests/unictype/test-categ_Z.c: Likewise.
50952         * tests/unictype/test-categ_Zl.c: Likewise.
50953         * tests/unictype/test-categ_Zp.c: Likewise.
50954         * tests/unictype/test-categ_Zs.c: Likewise.
50955         * tests/unictype/test-ctype_alnum.c: Likewise.
50956         * tests/unictype/test-ctype_alpha.c: Likewise.
50957         * tests/unictype/test-ctype_blank.c: Likewise.
50958         * tests/unictype/test-ctype_cntrl.c: Likewise.
50959         * tests/unictype/test-ctype_digit.c: Likewise.
50960         * tests/unictype/test-ctype_graph.c: Likewise.
50961         * tests/unictype/test-ctype_lower.c: Likewise.
50962         * tests/unictype/test-ctype_print.c: Likewise.
50963         * tests/unictype/test-ctype_punct.c: Likewise.
50964         * tests/unictype/test-ctype_space.c: Likewise.
50965         * tests/unictype/test-ctype_upper.c: Likewise.
50966         * tests/unictype/test-ctype_xdigit.c: Likewise.
50967         * tests/unictype/test-decdigit.h: Likewise.
50968         * tests/unictype/test-digit.h: Likewise.
50969         * tests/unictype/test-numeric.h: Likewise.
50970         * tests/unictype/test-pr_alphabetic.c: Likewise.
50971         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50972         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50973         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50974         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50975         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50976         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50977         * tests/unictype/test-pr_bidi_control.c: Likewise.
50978         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50979         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50980         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50981         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50982         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50983         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50984         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50985         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50986         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50987         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50988         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50989         * tests/unictype/test-pr_combining.c: Likewise.
50990         * tests/unictype/test-pr_composite.c: Likewise.
50991         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50992         * tests/unictype/test-pr_dash.c: Likewise.
50993         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50994         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50995         * tests/unictype/test-pr_deprecated.c: Likewise.
50996         * tests/unictype/test-pr_diacritic.c: Likewise.
50997         * tests/unictype/test-pr_extender.c: Likewise.
50998         * tests/unictype/test-pr_format_control.c: Likewise.
50999         * tests/unictype/test-pr_grapheme_base.c: Likewise.
51000         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
51001         * tests/unictype/test-pr_grapheme_link.c: Likewise.
51002         * tests/unictype/test-pr_hex_digit.c: Likewise.
51003         * tests/unictype/test-pr_hyphen.c: Likewise.
51004         * tests/unictype/test-pr_id_continue.c: Likewise.
51005         * tests/unictype/test-pr_id_start.c: Likewise.
51006         * tests/unictype/test-pr_ideographic.c: Likewise.
51007         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
51008         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
51009         * tests/unictype/test-pr_ignorable_control.c: Likewise.
51010         * tests/unictype/test-pr_iso_control.c: Likewise.
51011         * tests/unictype/test-pr_join_control.c: Likewise.
51012         * tests/unictype/test-pr_left_of_pair.c: Likewise.
51013         * tests/unictype/test-pr_line_separator.c: Likewise.
51014         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
51015         * tests/unictype/test-pr_lowercase.c: Likewise.
51016         * tests/unictype/test-pr_math.c: Likewise.
51017         * tests/unictype/test-pr_non_break.c: Likewise.
51018         * tests/unictype/test-pr_not_a_character.c: Likewise.
51019         * tests/unictype/test-pr_numeric.c: Likewise.
51020         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
51021         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
51022         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
51023         * tests/unictype/test-pr_other_id_continue.c: Likewise.
51024         * tests/unictype/test-pr_other_id_start.c: Likewise.
51025         * tests/unictype/test-pr_other_lowercase.c: Likewise.
51026         * tests/unictype/test-pr_other_math.c: Likewise.
51027         * tests/unictype/test-pr_other_uppercase.c: Likewise.
51028         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
51029         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
51030         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
51031         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
51032         * tests/unictype/test-pr_private_use.c: Likewise.
51033         * tests/unictype/test-pr_punctuation.c: Likewise.
51034         * tests/unictype/test-pr_quotation_mark.c: Likewise.
51035         * tests/unictype/test-pr_radical.c: Likewise.
51036         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
51037         * tests/unictype/test-pr_soft_dotted.c: Likewise.
51038         * tests/unictype/test-pr_space.c: Likewise.
51039         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
51040         * tests/unictype/test-pr_titlecase.c: Likewise.
51041         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
51042         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
51043         * tests/unictype/test-pr_uppercase.c: Likewise.
51044         * tests/unictype/test-pr_variation_selector.c: Likewise.
51045         * tests/unictype/test-pr_white_space.c: Likewise.
51046         * tests/unictype/test-pr_xid_continue.c: Likewise.
51047         * tests/unictype/test-pr_xid_start.c: Likewise.
51048         * tests/unictype/test-pr_zero_width.c: Likewise.
51049         * tests/unictype/test-sy_c_whitespace.c: Likewise.
51050         * tests/unictype/test-sy_java_whitespace.c: Likewise.
51051
51052 2007-11-12  Bruno Haible  <bruno@clisp.org>
51053
51054         Unicode character classification functions.
51055         * lib/unictype.h: New file.
51056         * modules/unictype/base: New file.
51057         * modules/unictype/category-L: New file.
51058         * modules/unictype/category-Lu: New file.
51059         * modules/unictype/category-Ll: New file.
51060         * modules/unictype/category-Lt: New file.
51061         * modules/unictype/category-Lm: New file.
51062         * modules/unictype/category-Lo: New file.
51063         * modules/unictype/category-M: New file.
51064         * modules/unictype/category-Mn: New file.
51065         * modules/unictype/category-Mc: New file.
51066         * modules/unictype/category-Me: New file.
51067         * modules/unictype/category-N: New file.
51068         * modules/unictype/category-Nd: New file.
51069         * modules/unictype/category-Nl: New file.
51070         * modules/unictype/category-No: New file.
51071         * modules/unictype/category-P: New file.
51072         * modules/unictype/category-Pc: New file.
51073         * modules/unictype/category-Pd: New file.
51074         * modules/unictype/category-Ps: New file.
51075         * modules/unictype/category-Pe: New file.
51076         * modules/unictype/category-Pi: New file.
51077         * modules/unictype/category-Pf: New file.
51078         * modules/unictype/category-Po: New file.
51079         * modules/unictype/category-S: New file.
51080         * modules/unictype/category-Sm: New file.
51081         * modules/unictype/category-Sc: New file.
51082         * modules/unictype/category-Sk: New file.
51083         * modules/unictype/category-So: New file.
51084         * modules/unictype/category-Z: New file.
51085         * modules/unictype/category-Zs: New file.
51086         * modules/unictype/category-Zl: New file.
51087         * modules/unictype/category-Zp: New file.
51088         * modules/unictype/category-C: New file.
51089         * modules/unictype/category-Cc: New file.
51090         * modules/unictype/category-Cf: New file.
51091         * modules/unictype/category-Cs: New file.
51092         * modules/unictype/category-Co: New file.
51093         * modules/unictype/category-Cn: New file.
51094         * modules/unictype/category-or: New file.
51095         * modules/unictype/category-of: New file.
51096         * modules/unictype/category-test: New file.
51097         * modules/unictype/category-test-withtable: New file.
51098         * modules/unictype/category-byname: New file.
51099         * modules/unictype/category-none: New file.
51100         * modules/unictype/category-and: New file.
51101         * modules/unictype/category-and-not: New file.
51102         * modules/unictype/category-name: New file.
51103         * modules/unictype/combining-class: New file.
51104         * modules/unictype/category-all: New file.
51105         * modules/unictype/bidicategory-all: New file.
51106         * modules/unictype/bidicategory-byname: New file.
51107         * modules/unictype/bidicategory-name: New file.
51108         * modules/unictype/bidicategory-of: New file.
51109         * modules/unictype/bidicategory-test: New file.
51110         * modules/unictype/decimal-digit: New file.
51111         * modules/unictype/digit: New file.
51112         * modules/unictype/numeric: New file.
51113         * modules/unictype/mirror: New file.
51114         * modules/unictype/property-white-space: New file.
51115         * modules/unictype/property-alphabetic: New file.
51116         * modules/unictype/property-other-alphabetic: New file.
51117         * modules/unictype/property-not-a-character: New file.
51118         * modules/unictype/property-default-ignorable-code-point: New file.
51119         * modules/unictype/property-other-default-ignorable-code-point: New
51120         file.
51121         * modules/unictype/property-deprecated: New file.
51122         * modules/unictype/property-logical-order-exception: New file.
51123         * modules/unictype/property-variation-selector: New file.
51124         * modules/unictype/property-private-use: New file.
51125         * modules/unictype/property-unassigned-code-value: New file.
51126         * modules/unictype/property-uppercase: New file.
51127         * modules/unictype/property-other-uppercase: New file.
51128         * modules/unictype/property-lowercase: New file.
51129         * modules/unictype/property-other-lowercase: New file.
51130         * modules/unictype/property-titlecase: New file.
51131         * modules/unictype/property-soft-dotted: New file.
51132         * modules/unictype/property-id-start: New file.
51133         * modules/unictype/property-other-id-start: New file.
51134         * modules/unictype/property-id-continue: New file.
51135         * modules/unictype/property-other-id-continue: New file.
51136         * modules/unictype/property-xid-start: New file.
51137         * modules/unictype/property-xid-continue: New file.
51138         * modules/unictype/property-pattern-white-space: New file.
51139         * modules/unictype/property-pattern-syntax: New file.
51140         * modules/unictype/property-join-control: New file.
51141         * modules/unictype/property-grapheme-base: New file.
51142         * modules/unictype/property-grapheme-extend: New file.
51143         * modules/unictype/property-other-grapheme-extend: New file.
51144         * modules/unictype/property-grapheme-link: New file.
51145         * modules/unictype/property-bidi-control: New file.
51146         * modules/unictype/property-bidi-left-to-right: New file.
51147         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
51148         * modules/unictype/property-bidi-arabic-right-to-left: New file.
51149         * modules/unictype/property-bidi-european-digit: New file.
51150         * modules/unictype/property-bidi-eur-num-separator: New file.
51151         * modules/unictype/property-bidi-eur-num-terminator: New file.
51152         * modules/unictype/property-bidi-arabic-digit: New file.
51153         * modules/unictype/property-bidi-common-separator: New file.
51154         * modules/unictype/property-bidi-block-separator: New file.
51155         * modules/unictype/property-bidi-segment-separator: New file.
51156         * modules/unictype/property-bidi-whitespace: New file.
51157         * modules/unictype/property-bidi-non-spacing-mark: New file.
51158         * modules/unictype/property-bidi-boundary-neutral: New file.
51159         * modules/unictype/property-bidi-pdf: New file.
51160         * modules/unictype/property-bidi-embedding-or-override: New file.
51161         * modules/unictype/property-bidi-other-neutral: New file.
51162         * modules/unictype/property-hex-digit: New file.
51163         * modules/unictype/property-ascii-hex-digit: New file.
51164         * modules/unictype/property-ideographic: New file.
51165         * modules/unictype/property-unified-ideograph: New file.
51166         * modules/unictype/property-radical: New file.
51167         * modules/unictype/property-ids-binary-operator: New file.
51168         * modules/unictype/property-ids-trinary-operator: New file.
51169         * modules/unictype/property-zero-width: New file.
51170         * modules/unictype/property-space: New file.
51171         * modules/unictype/property-non-break: New file.
51172         * modules/unictype/property-iso-control: New file.
51173         * modules/unictype/property-format-control: New file.
51174         * modules/unictype/property-dash: New file.
51175         * modules/unictype/property-hyphen: New file.
51176         * modules/unictype/property-punctuation: New file.
51177         * modules/unictype/property-line-separator: New file.
51178         * modules/unictype/property-paragraph-separator: New file.
51179         * modules/unictype/property-quotation-mark: New file.
51180         * modules/unictype/property-sentence-terminal: New file.
51181         * modules/unictype/property-terminal-punctuation: New file.
51182         * modules/unictype/property-currency-symbol: New file.
51183         * modules/unictype/property-math: New file.
51184         * modules/unictype/property-other-math: New file.
51185         * modules/unictype/property-paired-punctuation: New file.
51186         * modules/unictype/property-left-of-pair: New file.
51187         * modules/unictype/property-combining: New file.
51188         * modules/unictype/property-composite: New file.
51189         * modules/unictype/property-decimal-digit: New file.
51190         * modules/unictype/property-numeric: New file.
51191         * modules/unictype/property-diacritic: New file.
51192         * modules/unictype/property-extender: New file.
51193         * modules/unictype/property-ignorable-control: New file.
51194         * modules/unictype/property-test: New file.
51195         * modules/unictype/property-byname: New file.
51196         * modules/unictype/property-all: New file.
51197         * modules/unictype/scripts: New file.
51198         * modules/unictype/scripts-all: New file.
51199         * modules/unictype/block-of: New file.
51200         * modules/unictype/block-test: New file.
51201         * modules/unictype/block-list: New file.
51202         * modules/unictype/block-all: New file.
51203         * modules/unictype/syntax-c-whitespace: New file.
51204         * modules/unictype/syntax-java-whitespace: New file.
51205         * modules/unictype/syntax-c-ident: New file.
51206         * modules/unictype/syntax-java-ident: New file.
51207         * modules/unictype/ctype-alnum: New file.
51208         * modules/unictype/ctype-alpha: New file.
51209         * modules/unictype/ctype-cntrl: New file.
51210         * modules/unictype/ctype-digit: New file.
51211         * modules/unictype/ctype-graph: New file.
51212         * modules/unictype/ctype-lower: New file.
51213         * modules/unictype/ctype-print: New file.
51214         * modules/unictype/ctype-punct: New file.
51215         * modules/unictype/ctype-space: New file.
51216         * modules/unictype/ctype-upper: New file.
51217         * modules/unictype/ctype-xdigit: New file.
51218         * modules/unictype/ctype-blank: New file.
51219         * lib/unictype/bidi_byname.c: New file.
51220         * lib/unictype/bidi_name.c: New file.
51221         * lib/unictype/bidi_of.c: New file.
51222         * lib/unictype/bidi_test.c: New file.
51223         * lib/unictype/bitmap.h: New file.
51224         * lib/unictype/block_test.c: New file.
51225         * lib/unictype/blocks.c: New file.
51226         * lib/unictype/categ_C.c: New file.
51227         * lib/unictype/categ_Cc.c: New file.
51228         * lib/unictype/categ_Cf.c: New file.
51229         * lib/unictype/categ_Cn.c: New file.
51230         * lib/unictype/categ_Co.c: New file.
51231         * lib/unictype/categ_Cs.c: New file.
51232         * lib/unictype/categ_L.c: New file.
51233         * lib/unictype/categ_Ll.c: New file.
51234         * lib/unictype/categ_Lm.c: New file.
51235         * lib/unictype/categ_Lo.c: New file.
51236         * lib/unictype/categ_Lt.c: New file.
51237         * lib/unictype/categ_Lu.c: New file.
51238         * lib/unictype/categ_M.c: New file.
51239         * lib/unictype/categ_Mc.c: New file.
51240         * lib/unictype/categ_Me.c: New file.
51241         * lib/unictype/categ_Mn.c: New file.
51242         * lib/unictype/categ_N.c: New file.
51243         * lib/unictype/categ_Nd.c: New file.
51244         * lib/unictype/categ_Nl.c: New file.
51245         * lib/unictype/categ_No.c: New file.
51246         * lib/unictype/categ_P.c: New file.
51247         * lib/unictype/categ_Pc.c: New file.
51248         * lib/unictype/categ_Pd.c: New file.
51249         * lib/unictype/categ_Pe.c: New file.
51250         * lib/unictype/categ_Pf.c: New file.
51251         * lib/unictype/categ_Pi.c: New file.
51252         * lib/unictype/categ_Po.c: New file.
51253         * lib/unictype/categ_Ps.c: New file.
51254         * lib/unictype/categ_S.c: New file.
51255         * lib/unictype/categ_Sc.c: New file.
51256         * lib/unictype/categ_Sk.c: New file.
51257         * lib/unictype/categ_Sm.c: New file.
51258         * lib/unictype/categ_So.c: New file.
51259         * lib/unictype/categ_Z.c: New file.
51260         * lib/unictype/categ_Zl.c: New file.
51261         * lib/unictype/categ_Zp.c: New file.
51262         * lib/unictype/categ_Zs.c: New file.
51263         * lib/unictype/categ_and.c: New file.
51264         * lib/unictype/categ_and_not.c: New file.
51265         * lib/unictype/categ_byname.c: New file.
51266         * lib/unictype/categ_name.c: New file.
51267         * lib/unictype/categ_none.c: New file.
51268         * lib/unictype/categ_of.c: New file.
51269         * lib/unictype/categ_or.c: New file.
51270         * lib/unictype/categ_test.c: New file.
51271         * lib/unictype/combining.c: New file.
51272         * lib/unictype/ctype_alnum.c: New file.
51273         * lib/unictype/ctype_alpha.c: New file.
51274         * lib/unictype/ctype_blank.c: New file.
51275         * lib/unictype/ctype_cntrl.c: New file.
51276         * lib/unictype/ctype_digit.c: New file.
51277         * lib/unictype/ctype_graph.c: New file.
51278         * lib/unictype/ctype_lower.c: New file.
51279         * lib/unictype/ctype_print.c: New file.
51280         * lib/unictype/ctype_punct.c: New file.
51281         * lib/unictype/ctype_space.c: New file.
51282         * lib/unictype/ctype_upper.c: New file.
51283         * lib/unictype/ctype_xdigit.c: New file.
51284         * lib/unictype/decdigit.c: New file.
51285         * lib/unictype/digit.c: New file.
51286         * lib/unictype/identsyntaxmap.h: New file.
51287         * lib/unictype/mirror.c: New file.
51288         * lib/unictype/numeric.c: New file.
51289         * lib/unictype/pr_alphabetic.c: New file.
51290         * lib/unictype/pr_ascii_hex_digit.c: New file.
51291         * lib/unictype/pr_bidi_arabic_digit.c: New file.
51292         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
51293         * lib/unictype/pr_bidi_block_separator.c: New file.
51294         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
51295         * lib/unictype/pr_bidi_common_separator.c: New file.
51296         * lib/unictype/pr_bidi_control.c: New file.
51297         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
51298         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
51299         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
51300         * lib/unictype/pr_bidi_european_digit.c: New file.
51301         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
51302         * lib/unictype/pr_bidi_left_to_right.c: New file.
51303         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
51304         * lib/unictype/pr_bidi_other_neutral.c: New file.
51305         * lib/unictype/pr_bidi_pdf.c: New file.
51306         * lib/unictype/pr_bidi_segment_separator.c: New file.
51307         * lib/unictype/pr_bidi_whitespace.c: New file.
51308         * lib/unictype/pr_byname.c: New file.
51309         * lib/unictype/pr_byname.gperf: New file.
51310         * lib/unictype/pr_combining.c: New file.
51311         * lib/unictype/pr_composite.c: New file.
51312         * lib/unictype/pr_currency_symbol.c: New file.
51313         * lib/unictype/pr_dash.c: New file.
51314         * lib/unictype/pr_decimal_digit.c: New file.
51315         * lib/unictype/pr_default_ignorable_code_point.c: New file.
51316         * lib/unictype/pr_deprecated.c: New file.
51317         * lib/unictype/pr_diacritic.c: New file.
51318         * lib/unictype/pr_extender.c: New file.
51319         * lib/unictype/pr_format_control.c: New file.
51320         * lib/unictype/pr_grapheme_base.c: New file.
51321         * lib/unictype/pr_grapheme_extend.c: New file.
51322         * lib/unictype/pr_grapheme_link.c: New file.
51323         * lib/unictype/pr_hex_digit.c: New file.
51324         * lib/unictype/pr_hyphen.c: New file.
51325         * lib/unictype/pr_id_continue.c: New file.
51326         * lib/unictype/pr_id_start.c: New file.
51327         * lib/unictype/pr_ideographic.c: New file.
51328         * lib/unictype/pr_ids_binary_operator.c: New file.
51329         * lib/unictype/pr_ids_trinary_operator.c: New file.
51330         * lib/unictype/pr_ignorable_control.c: New file.
51331         * lib/unictype/pr_iso_control.c: New file.
51332         * lib/unictype/pr_join_control.c: New file.
51333         * lib/unictype/pr_left_of_pair.c: New file.
51334         * lib/unictype/pr_line_separator.c: New file.
51335         * lib/unictype/pr_logical_order_exception.c: New file.
51336         * lib/unictype/pr_lowercase.c: New file.
51337         * lib/unictype/pr_math.c: New file.
51338         * lib/unictype/pr_non_break.c: New file.
51339         * lib/unictype/pr_not_a_character.c: New file.
51340         * lib/unictype/pr_numeric.c: New file.
51341         * lib/unictype/pr_other_alphabetic.c: New file.
51342         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
51343         * lib/unictype/pr_other_grapheme_extend.c: New file.
51344         * lib/unictype/pr_other_id_continue.c: New file.
51345         * lib/unictype/pr_other_id_start.c: New file.
51346         * lib/unictype/pr_other_lowercase.c: New file.
51347         * lib/unictype/pr_other_math.c: New file.
51348         * lib/unictype/pr_other_uppercase.c: New file.
51349         * lib/unictype/pr_paired_punctuation.c: New file.
51350         * lib/unictype/pr_paragraph_separator.c: New file.
51351         * lib/unictype/pr_pattern_syntax.c: New file.
51352         * lib/unictype/pr_pattern_white_space.c: New file.
51353         * lib/unictype/pr_private_use.c: New file.
51354         * lib/unictype/pr_punctuation.c: New file.
51355         * lib/unictype/pr_quotation_mark.c: New file.
51356         * lib/unictype/pr_radical.c: New file.
51357         * lib/unictype/pr_sentence_terminal.c: New file.
51358         * lib/unictype/pr_soft_dotted.c: New file.
51359         * lib/unictype/pr_space.c: New file.
51360         * lib/unictype/pr_terminal_punctuation.c: New file.
51361         * lib/unictype/pr_test.c: New file.
51362         * lib/unictype/pr_titlecase.c: New file.
51363         * lib/unictype/pr_unassigned_code_value.c: New file.
51364         * lib/unictype/pr_unified_ideograph.c: New file.
51365         * lib/unictype/pr_uppercase.c: New file.
51366         * lib/unictype/pr_variation_selector.c: New file.
51367         * lib/unictype/pr_white_space.c: New file.
51368         * lib/unictype/pr_xid_continue.c: New file.
51369         * lib/unictype/pr_xid_start.c: New file.
51370         * lib/unictype/pr_zero_width.c: New file.
51371         * lib/unictype/scripts.c: New file.
51372         * lib/unictype/sy_c_ident.c: New file.
51373         * lib/unictype/sy_c_whitespace.c: New file.
51374         * lib/unictype/sy_java_ident.c: New file.
51375         * lib/unictype/sy_java_whitespace.c: New file.
51376
51377         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
51378         Unicode 5.0.0.
51379         * lib/unictype/blocks.h: Likewise.
51380         * lib/unictype/categ_C.h: Likewise.
51381         * lib/unictype/categ_Cc.h: Likewise.
51382         * lib/unictype/categ_Cf.h: Likewise.
51383         * lib/unictype/categ_Cn.h: Likewise.
51384         * lib/unictype/categ_Co.h: Likewise.
51385         * lib/unictype/categ_Cs.h: Likewise.
51386         * lib/unictype/categ_L.h: Likewise.
51387         * lib/unictype/categ_Ll.h: Likewise.
51388         * lib/unictype/categ_Lm.h: Likewise.
51389         * lib/unictype/categ_Lo.h: Likewise.
51390         * lib/unictype/categ_Lt.h: Likewise.
51391         * lib/unictype/categ_Lu.h: Likewise.
51392         * lib/unictype/categ_M.h: Likewise.
51393         * lib/unictype/categ_Mc.h: Likewise.
51394         * lib/unictype/categ_Me.h: Likewise.
51395         * lib/unictype/categ_Mn.h: Likewise.
51396         * lib/unictype/categ_N.h: Likewise.
51397         * lib/unictype/categ_Nd.h: Likewise.
51398         * lib/unictype/categ_Nl.h: Likewise.
51399         * lib/unictype/categ_No.h: Likewise.
51400         * lib/unictype/categ_P.h: Likewise.
51401         * lib/unictype/categ_Pc.h: Likewise.
51402         * lib/unictype/categ_Pd.h: Likewise.
51403         * lib/unictype/categ_Pe.h: Likewise.
51404         * lib/unictype/categ_Pf.h: Likewise.
51405         * lib/unictype/categ_Pi.h: Likewise.
51406         * lib/unictype/categ_Po.h: Likewise.
51407         * lib/unictype/categ_Ps.h: Likewise.
51408         * lib/unictype/categ_S.h: Likewise.
51409         * lib/unictype/categ_Sc.h: Likewise.
51410         * lib/unictype/categ_Sk.h: Likewise.
51411         * lib/unictype/categ_Sm.h: Likewise.
51412         * lib/unictype/categ_So.h: Likewise.
51413         * lib/unictype/categ_Z.h: Likewise.
51414         * lib/unictype/categ_Zl.h: Likewise.
51415         * lib/unictype/categ_Zp.h: Likewise.
51416         * lib/unictype/categ_Zs.h: Likewise.
51417         * lib/unictype/categ_of.h: Likewise.
51418         * lib/unictype/combining.h: Likewise.
51419         * lib/unictype/ctype_alnum.h: Likewise.
51420         * lib/unictype/ctype_alpha.h: Likewise.
51421         * lib/unictype/ctype_blank.h: Likewise.
51422         * lib/unictype/ctype_cntrl.h: Likewise.
51423         * lib/unictype/ctype_digit.h: Likewise.
51424         * lib/unictype/ctype_graph.h: Likewise.
51425         * lib/unictype/ctype_lower.h: Likewise.
51426         * lib/unictype/ctype_print.h: Likewise.
51427         * lib/unictype/ctype_punct.h: Likewise.
51428         * lib/unictype/ctype_space.h: Likewise.
51429         * lib/unictype/ctype_upper.h: Likewise.
51430         * lib/unictype/ctype_xdigit.h: Likewise.
51431         * lib/unictype/decdigit.h: Likewise.
51432         * lib/unictype/digit.h: Likewise.
51433         * lib/unictype/mirror.h: Likewise.
51434         * lib/unictype/numeric.h: Likewise.
51435         * lib/unictype/pr_alphabetic.h: Likewise.
51436         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51437         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51438         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51439         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51440         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51441         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51442         * lib/unictype/pr_bidi_control.h: Likewise.
51443         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51444         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51445         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51446         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51447         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51448         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51449         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51450         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51451         * lib/unictype/pr_bidi_pdf.h: Likewise.
51452         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51453         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51454         * lib/unictype/pr_combining.h: Likewise.
51455         * lib/unictype/pr_composite.h: Likewise.
51456         * lib/unictype/pr_currency_symbol.h: Likewise.
51457         * lib/unictype/pr_dash.h: Likewise.
51458         * lib/unictype/pr_decimal_digit.h: Likewise.
51459         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51460         * lib/unictype/pr_deprecated.h: Likewise.
51461         * lib/unictype/pr_diacritic.h: Likewise.
51462         * lib/unictype/pr_extender.h: Likewise.
51463         * lib/unictype/pr_format_control.h: Likewise.
51464         * lib/unictype/pr_grapheme_base.h: Likewise.
51465         * lib/unictype/pr_grapheme_extend.h: Likewise.
51466         * lib/unictype/pr_grapheme_link.h: Likewise.
51467         * lib/unictype/pr_hex_digit.h: Likewise.
51468         * lib/unictype/pr_hyphen.h: Likewise.
51469         * lib/unictype/pr_id_continue.h: Likewise.
51470         * lib/unictype/pr_id_start.h: Likewise.
51471         * lib/unictype/pr_ideographic.h: Likewise.
51472         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51473         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51474         * lib/unictype/pr_ignorable_control.h: Likewise.
51475         * lib/unictype/pr_iso_control.h: Likewise.
51476         * lib/unictype/pr_join_control.h: Likewise.
51477         * lib/unictype/pr_left_of_pair.h: Likewise.
51478         * lib/unictype/pr_line_separator.h: Likewise.
51479         * lib/unictype/pr_logical_order_exception.h: Likewise.
51480         * lib/unictype/pr_lowercase.h: Likewise.
51481         * lib/unictype/pr_math.h: Likewise.
51482         * lib/unictype/pr_non_break.h: Likewise.
51483         * lib/unictype/pr_not_a_character.h: Likewise.
51484         * lib/unictype/pr_numeric.h: Likewise.
51485         * lib/unictype/pr_other_alphabetic.h: Likewise.
51486         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51487         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51488         * lib/unictype/pr_other_id_continue.h: Likewise.
51489         * lib/unictype/pr_other_id_start.h: Likewise.
51490         * lib/unictype/pr_other_lowercase.h: Likewise.
51491         * lib/unictype/pr_other_math.h: Likewise.
51492         * lib/unictype/pr_other_uppercase.h: Likewise.
51493         * lib/unictype/pr_paired_punctuation.h: Likewise.
51494         * lib/unictype/pr_paragraph_separator.h: Likewise.
51495         * lib/unictype/pr_pattern_syntax.h: Likewise.
51496         * lib/unictype/pr_pattern_white_space.h: Likewise.
51497         * lib/unictype/pr_private_use.h: Likewise.
51498         * lib/unictype/pr_punctuation.h: Likewise.
51499         * lib/unictype/pr_quotation_mark.h: Likewise.
51500         * lib/unictype/pr_radical.h: Likewise.
51501         * lib/unictype/pr_sentence_terminal.h: Likewise.
51502         * lib/unictype/pr_soft_dotted.h: Likewise.
51503         * lib/unictype/pr_space.h: Likewise.
51504         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51505         * lib/unictype/pr_titlecase.h: Likewise.
51506         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51507         * lib/unictype/pr_unified_ideograph.h: Likewise.
51508         * lib/unictype/pr_uppercase.h: Likewise.
51509         * lib/unictype/pr_variation_selector.h: Likewise.
51510         * lib/unictype/pr_white_space.h: Likewise.
51511         * lib/unictype/pr_xid_continue.h: Likewise.
51512         * lib/unictype/pr_xid_start.h: Likewise.
51513         * lib/unictype/pr_zero_width.h: Likewise.
51514         * lib/unictype/scripts.h: Likewise.
51515         * lib/unictype/scripts_byname.gperf: Likewise.
51516         * lib/unictype/sy_c_ident.h: Likewise.
51517         * lib/unictype/sy_c_whitespace.h: Likewise.
51518         * lib/unictype/sy_java_ident.h: Likewise.
51519         * lib/unictype/sy_java_whitespace.h: Likewise.
51520
51521         * lib/unictype/Makefile: New file.
51522         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51523         glibc.
51524         * lib/unictype/3level.h: New file, copied from glibc.
51525         * lib/unictype/3levelbit.h: New file.
51526
51527 2007-11-11  Bruno Haible  <bruno@clisp.org>
51528
51529         * modules/gperf: New file.
51530         * modules/iconv_open (Depends-on): Add it.
51531         (Makefile.am): Remove the GPERF definition.
51532
51533 2007-11-11  Bruno Haible  <bruno@clisp.org>
51534
51535         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51536         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51537
51538 2007-11-11  Bruno Haible  <bruno@clisp.org>
51539
51540         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51541         (usage): Remove function.
51542
51543 2007-11-11  Bruno Haible  <bruno@clisp.org>
51544
51545         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51546         gl_FUNC_CEILF_LIBS.
51547         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51548         gl_FUNC_CEIL_LIBS.
51549         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51550         gl_FUNC_CEILL_LIBS.
51551         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51552         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51553         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51554
51555 2007-11-11  Bruno Haible  <bruno@clisp.org>
51556
51557         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51558         roundf were declared but do not exist on functions.
51559         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51560         roundl were declared but do not exist on functions.
51561         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51562         HAVE_FLOORL_AND_CEILL, respectively.
51563         Needed for Sun C on Solaris 10.
51564
51565 2007-11-11  Bruno Haible  <bruno@clisp.org>
51566
51567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51568         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51569         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51570         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51571         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51572         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51573         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51574         HAVE_DECL_ROUNDF.
51575         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51576         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51578         of HAVE_DECL_ROUND*.
51579         * modules/math (Makefile.am): Update.
51580
51581 2007-11-10  Bruno Haible  <bruno@clisp.org>
51582
51583         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51584         ptrdiff_t as m4/intl.m4.
51585
51586 2007-11-10  Jim Meyering  <meyering@redhat.com>
51587
51588         Avoid link failure for the argmatch test.
51589         * tests/test-argmatch.c (usage): Define function to avoid a link
51590         failure: argmatch_die requires a usage function.
51591
51592 2007-11-09  Bruno Haible  <bruno@clisp.org>
51593
51594         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51595         * doc/functions/vsnprintf.texi: Likewise.
51596         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51597         with a size argument < 2.
51598
51599 2007-11-09  Bruno Haible  <bruno@clisp.org>
51600
51601         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51602         buffer. Fixes an inefficiency introduced on 2007-11-03.
51603
51604 2007-11-09  Bruno Haible  <bruno@clisp.org>
51605
51606         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51607         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51608
51609 2007-11-08  Jim Meyering  <meyering@redhat.com>
51610
51611         Change cache variable name prefix "jm_" to "gl_" everywhere.
51612         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51613         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51614         * m4/uptime.m4: s/gl_/jm_/
51615
51616 2007-11-07  Bruno Haible  <bruno@clisp.org>
51617
51618         Update to GNU gettext 0.17.
51619         * m4/intl.m4: Update to GNU gettext 0.17.
51620         * m4/po.m4: Likewise.
51621         * modules/gettext (Files): Remove m4/ulonglong.m4.
51622         (configure.ac): Require gettext infrastructure from version 0.17.
51623
51624 2007-11-06  Bruno Haible  <bruno@clisp.org>
51625
51626         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51627         symbolic values are not defined in a public header.
51628         * lib/freadable.c (freadable) [QNX]: Likewise.
51629         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51630         * lib/freading.c (freading) [QNX]: Likewise.
51631         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51632         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51633         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51634         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51635         Reported by Alain Magloire.
51636
51637         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51638
51639 2007-11-05  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51642         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51643         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51644         Reported by Eric Blake.
51645
51646 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51647             Bruno Haible  <bruno@clisp.org>
51648
51649         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51650         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51651         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51652         (malloc): Undefine also before including <stdlib.h>.
51653         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51654         Needed on OSF/1 4.0.
51655
51656 2007-11-05  Jim Meyering  <meyering@redhat.com>
51657
51658         git-version-gen: sync from coreutils.
51659         * build-aux/git-version-gen: Add comments.
51660         Change the first '-' to '.' in the snapshot version string,
51661         e.g., 6.9-377-08144 -> 6.9.377-08144
51662         Remove first parameter.
51663         Don't declare a version "-dirty" merely because a time
51664         stamp has changed.
51665
51666 2007-11-04  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/lock.h: Protect all macro definitions containing an 'if'
51669         statement through a "do { ... } while (0)".
51670         * lib/tls.h: Likewise.
51671
51672 2007-11-04  Bruno Haible  <bruno@clisp.org>
51673
51674         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51675
51676 2007-11-04  Bruno Haible  <bruno@clisp.org>
51677
51678         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51679         * modules/fprintf-posix (Depends-on): Add nocrash.
51680         * modules/snprintf-posix (Depends-on): Likewise.
51681         * modules/sprintf-posix (Depends-on): Likewise.
51682         * modules/vasnprintf-posix (Depends-on): Likewise.
51683         * modules/vasprintf-posix (Depends-on): Likewise.
51684         * modules/vfprintf-posix (Depends-on): Likewise.
51685         * modules/vsnprintf-posix (Depends-on): Likewise.
51686         * modules/vsprintf-posix (Depends-on): Likewise.
51687         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51688         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51689         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51690         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51691         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51692         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51693         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51694
51695 2007-11-04  Bruno Haible  <bruno@clisp.org>
51696
51697         * modules/nocrash: New file.
51698         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51699         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51700
51701 2007-11-04  Bruno Haible  <bruno@clisp.org>
51702
51703         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51704         precision handling.
51705         * tests/test-vasprintf-posix.c (test_function): Likewise.
51706         * tests/test-snprintf-posix.h (test_function): Likewise.
51707         * tests/test-sprintf-posix.h (test_function): Likewise.
51708
51709         Fix *printf behaviour for large precisions on mingw and BeOS.
51710         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51711         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51713         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51714         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51715         gl_PRINTF_PRECISION and test its result. Invoke
51716         gl_PREREQ_VASNPRINTF_PRECISION.
51717         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51718         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51724         * doc/functions/fprintf.texi: Update.
51725         * doc/functions/printf.texi: Update.
51726         * doc/functions/snprintf.texi: Update.
51727         * doc/functions/sprintf.texi: Update.
51728         * doc/functions/vfprintf.texi: Update.
51729         * doc/functions/vprintf.texi: Update.
51730         * doc/functions/vsnprintf.texi: Update.
51731         * doc/functions/vsprintf.texi: Update.
51732
51733 2007-11-04  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51736
51737 2007-11-04  Bruno Haible  <bruno@clisp.org>
51738
51739         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51740         Reported by Sylvain Beucler <beuc@gnu.org>.
51741
51742 2007-11-03  Bruno Haible  <bruno@clisp.org>
51743
51744         * tests/test-fprintf-posix2.sh: New file.
51745         * tests/test-fprintf-posix2.c: New file.
51746         * modules/fprintf-posix-tests (Files): Add them.
51747         (TESTS): Add test-fprintf-posix2.sh.
51748         (configure.ac): Check for getrlimit and setrlimit.
51749         (check_PROGRAMS): Add test-fprintf-posix2.
51750
51751         * tests/test-printf-posix2.sh: New file.
51752         * tests/test-printf-posix2.c: New file.
51753         * modules/printf-posix-tests (Files): Add them.
51754         (TESTS): Add test-printf-posix2.sh.
51755         (configure.ac): Check for getrlimit and setrlimit.
51756         (check_PROGRAMS): Add test-printf-posix2.
51757
51758         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51759         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51760         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51761         (decode_double): New function, copied from decode_long_double.
51762         (scale10_round_decimal_decoded): New function, extracted from
51763         scale10_round_decimal_long_double.
51764         (scale10_round_decimal_long_double): Use it.
51765         (scale10_round_decimal_double): New function.
51766         (floorlog10): New function.
51767         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51769         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51770         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51771         gl_PRINTF_ENOMEM and test its result. Invoke
51772         gl_PREREQ_VASNPRINTF_ENOMEM.
51773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51780         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51781         * modules/snprintf-posix (Depends-on): Likewise.
51782         * modules/sprintf-posix (Depends-on): Likewise.
51783         * modules/vasnprintf-posix (Depends-on): Likewise.
51784         * modules/vasprintf-posix (Depends-on): Likewise.
51785         * modules/vfprintf-posix (Depends-on): Likewise.
51786         * modules/vsnprintf-posix (Depends-on): Likewise.
51787         * modules/vsprintf-posix (Depends-on): Likewise.
51788         * doc/functions/fprintf.texi: Update.
51789         * doc/functions/printf.texi: Update.
51790         * doc/functions/snprintf.texi: Update.
51791         * doc/functions/sprintf.texi: Update.
51792         * doc/functions/vfprintf.texi: Update.
51793         * doc/functions/vprintf.texi: Update.
51794         * doc/functions/vsnprintf.texi: Update.
51795         * doc/functions/vsprintf.texi: Update.
51796
51797 2007-11-03  Bruno Haible  <bruno@clisp.org>
51798
51799         * modules/frexp-nolibm-tests: New file.
51800
51801         * modules/frexp-nolibm: New file.
51802         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51803
51804 2007-11-03  Bruno Haible  <bruno@clisp.org>
51805
51806         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51807         value is C99 compliant.
51808         Needed for OSF/1 5.1.
51809
51810 2007-11-03  Bruno Haible  <bruno@clisp.org>
51811
51812         Fix out-of-memory handling of vasnprintf.
51813         * lib/printf-parse.c: Include <errno.h>.
51814         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51815         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51816         is already set.
51817
51818 2007-11-02  Eric Blake  <ebb9@byu.net>
51819
51820         Fix tests on cygwin.
51821         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51822
51823 2007-11-01  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51826         warning.
51827         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51828         needed for POSIX compatibility.
51829
51830 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51831
51832         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51833         for compatibility with GNU.
51834
51835 2007-11-01  Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51838         (putenv): Renamed from rpl_putenv. Change argument type from
51839         'const char *' to 'char *'.
51840         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51841         of defining putenv in config.h, just set REPLACE_PUTENV.
51842         * modules/putenv (Depends-on): Add stdlib.
51843         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51844         (Include): Use <stdlib.h>.
51845         * lib/stdlib.in.h (putenv): New declaration.
51846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51847         REPLACE_PUTENV.
51848         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51849         REPLACE_PUTENV.
51850         Needed for MacOS X 10.5.0.
51851         Reported by Peter O'Gorman <peter@pogma.com>.
51852
51853 2007-11-01  Jim Meyering  <meyering@redhat.com>
51854
51855         Treat an empty date string exactly like "0".
51856         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51857         if the remaining date string (to be parsed) is empty, use "0".
51858         Reported by Mischa Molhoek and discussed in this thread:
51859         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51860
51861 2007-10-31  Bruno Haible  <bruno@clisp.org>
51862
51863         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51864         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51865         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51866         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51867         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51868         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51869
51870 2007-10-31  Bruno Haible  <bruno@clisp.org>
51871
51872         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51873         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51874         (AC_TYPE_LONG_LONG_INT): Use it.
51875         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51876         it as well.
51877         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51878         to m4/longlong.m4.
51879         * modules/stdint (Files): Remove m4/ulonglong.m4.
51880         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51881         m4/ulonglong.m4.
51882         * modules/strtoumax (Files): Likewise.
51883
51884 2007-10-30  Bruno Haible  <bruno@clisp.org>
51885
51886         * modules/xvasprintf-posix: New file.
51887         Suggested by Eric Blake.
51888
51889 2007-10-30  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/xprintf-posix-tests: New file.
51892         * tests/test-xprintf-posix.sh: New file.
51893         * tests/test-xprintf-posix.c: New file.
51894         * tests/test-xfprintf-posix.c: New file.
51895
51896         * modules/xprintf-posix: New file.
51897
51898 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51899
51900         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51901         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51902         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51903
51904 2007-10-29  Bruno Haible  <bruno@clisp.org>
51905
51906         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51907         contain the special marker '_cv_'.
51908         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51909         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51910         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51911         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51912         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51913         Reported by Ralf Wildenhues.
51914
51915 2007-10-29  Bruno Haible  <bruno@clisp.org>
51916
51917         * gnulib-tool (func_import): When --lgpl is not specified, set
51918         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51919         GPLv3.
51920         Reported by Simon Josefsson.
51921
51922 2007-10-28  Bruno Haible  <bruno@clisp.org>
51923
51924         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51925         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51926         HAVE_DECL_ISFINITE.
51927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51928         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51929         HAVE_DECL_ISFINITE.
51930
51931 2007-10-28  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51934         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51935
51936 2007-10-28  Bruno Haible  <bruno@clisp.org>
51937
51938         Fix link errors with Sun C 5.0 on Solaris 10.
51939         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51940         function is declared but not present in the compiler's libm.
51941         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51942         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51943         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51944         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51945         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51946         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51947         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51949         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51950         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51951         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51952         HAVE_DECL_FLOORL.
51953
51954 2007-10-28  Bruno Haible  <bruno@clisp.org>
51955
51956         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51957         gl_FUNC_FLOORL. Cache the result.
51958         (gl_FUNC_FLOORL): Use it.
51959         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51960         gl_FUNC_CEILL. Cache the result.
51961         (gl_FUNC_CEILL): Use it.
51962
51963         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51964         gl_FUNC_FLOOR. Cache the result.
51965         (gl_FUNC_FLOOR): Use it.
51966         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51967         gl_FUNC_CEIL. Cache the result.
51968         (gl_FUNC_CEIL): Use it.
51969
51970         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51971         gl_FUNC_FLOORF. Cache the result.
51972         (gl_FUNC_FLOORF): Use it.
51973         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51974         gl_FUNC_CEILF. Cache the result.
51975         (gl_FUNC_CEILF): Use it.
51976
51977 2007-10-28  Bruno Haible  <bruno@clisp.org>
51978
51979         * gnulib-tool: Allow specifying the LGPL version number through
51980         --lgpl=2 or --lgpl=3.
51981         (func_usage): Document --lgpl with argument.
51982         Handle --lgpl=... arguments.
51983         (func_import): Recognize also gl_LGPL calls with an argument. When
51984         --lgpl=2 is used and the module's license is just LGPL, report an
51985         error. Set sed_transform_lib_file according to the lgpl variable. In
51986         the generated files, use --lgpl or gl_LGPL invocations with argument,
51987         if necessary.
51988         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51989         an LGPv2+ license.
51990         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51991         gl_LGPL macro.
51992
51993 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51994             Bruno Haible  <bruno@clisp.org>
51995
51996         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51997         (u16_uctomb_aux): Likewise.
51998         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51999         !HAVE_INLINE.
52000         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
52001
52002 2007-10-28  Bruno Haible  <bruno@clisp.org>
52003
52004         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
52005         Invoke AM_GETTEXT_OPTION if it exists.
52006         * modules/vasprintf: Likewise.
52007         * modules/verror: Likewise.
52008         * modules/xprintf: Likewise.
52009         * modules/xvasprintf: Likewise.
52010
52011 2007-10-27  Ben Pfaff  <blp@gnu.org>
52012
52013         * lib/math.in.h: Define isfinite macro and prototypes for
52014         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
52015         implementations.
52016         * m4/math_h.m4: New substitutions for isfinite module.
52017         * lib/isfinite.c: New file.
52018         * m4/isfinite.m4: New file.
52019         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
52020         * modules/isfinite: New file.
52021         * modules/isfinite-tests: New file.
52022         * tests/tests-isfinite.c: New file.
52023         * doc/functions/isfinite.texi: Mention isfinite module.
52024         * MODULES.html.sh: Mention new module.
52025
52026 2007-10-27  Ben Pfaff  <blp@gnu.org>
52027
52028         Ralf Wildenhues reported that Tru64 4.0D declares the round
52029         functions but does not have definitions.
52030         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
52031         cannot be found in any library, set the output variable to
52032         "missing" instead of "".
52033         * m4/round.m4: Also use our substitute if we cannot find round in
52034         any library, even if it is declared.
52035         * m4/roundf.m4: Likewise for roundf.
52036         * m4/roundl.m4: Likewise for roundl.
52037         * lib/math.in.h: Undefine roundf, round, roundl before defining
52038         their replacements, to allow for hypothetical systems where these
52039         may be defined as macros but not available in libraries.
52040
52041 2007-10-27  Bruno Haible  <bruno@clisp.org>
52042
52043         * doc/gnulib.texi: Invoke @firstparagraphindent.
52044         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
52045         changes in gnulib.
52046         (Source changes): New section.
52047
52048 2007-10-26  Bruno Haible  <bruno@clisp.org>
52049
52050         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
52051         borrowed from autoconf.
52052
52053 2007-10-26  Bruno Haible  <bruno@clisp.org>
52054
52055         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
52056         strerror returned the empty string. Needed on HP-UX 11.00.
52057
52058 2007-10-24  Micah Cowan  <micah@cowan.name>
52059
52060         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
52061         * build-aux/bootstrap: Remove support for now-unnecessary option,
52062         --cvs-user, and envvars CVS_USER, CVS_RSH.
52063
52064 2007-10-24  Jim Meyering  <meyering@redhat.com>
52065
52066         Avoid diagnostics from sha1sum when there is no cached checksum.
52067         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
52068         if the po.s1 file hasn't been created yet.
52069
52070         * build-aux/bootstrap: Sync from coreutils:
52071         2007-10-24  Jim Meyering  <meyering@redhat.com>
52072         Get gnulib from the git repository, not from an obsolete cvs one.
52073         * build-aux/bootstrap: Suggestion from Micah Cowan.
52074         2007-10-04  Jim Meyering  <jim@meyering.net>
52075         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
52076         (update_po_files): Work also when there are no .po files in po/.
52077
52078 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52079
52080         * README: Append ".git" to git and cg examples.
52081         Problem reported by Benoit Sigoure.
52082
52083 2007-10-23  Micah Cowan  <micah@cowan.name>
52084
52085         * users.txt: Add wget.
52086
52087 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52088
52089         Fix linking of some unistdio tests on FreeBSD.
52090         * modules/unistdio/u16-vsnprintf-tests
52091         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
52092         * modules/unistdio/u16-vsprintf-tests
52093         (test_u16_vsnprintf1_LDADD): Likewise.
52094         * modules/unistdio/u32-vsnprintf-tests
52095         (test_u32_vsnprintf1_LDADD): Likewise.
52096         * modules/unistdio/u32-vsprintf-tests
52097         (test_u32_vsprintf1_LDADD): Likewise.
52098         * modules/unistdio/u8-vsnprintf-tests
52099         (test_u8_vsnprintf1_LDADD): Likewise.
52100         * modules/unistdio/u8-vsprintf-tests
52101         (test_u8_vsprintf1_LDADD): Likewise.
52102         * modules/unistdio/ulc-vsnprintf-tests
52103         (test_ulc_vsnprintf1_LDADD): Likewise.
52104         * modules/unistdio/ulc-vsprintf-tests
52105         (test_ulc_vsprintf1_LDADD): Likewise.
52106
52107         Fix linking of some uniconv tests on FreeBSD.
52108         * modules/uniconv/u16-conv-from-enc-tests
52109         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
52110         * modules/uniconv/u16-conv-to-enc-tests
52111         (test_u16_conv_to_enc_LDADD): Likewise.
52112         * modules/uniconv/u16-strconv-from-enc-tests
52113         (test_u16_strconv_from_enc_LDADD): Likewise.
52114         * modules/uniconv/u16-strconv-to-enc-tests
52115         (test_u16_strconv_to_enc_LDADD): Likewise.
52116         * modules/uniconv/u32-conv-from-enc-tests
52117         (test_u32_conv_from_enc_LDADD): Likewise.
52118         * modules/uniconv/u32-conv-to-enc-tests
52119         (test_u32_conv_to_enc_LDADD): Likewise.
52120         * modules/uniconv/u32-strconv-from-enc-tests
52121         (test_u32_strconv_from_enc_LDADD): Likewise.
52122         * modules/uniconv/u32-strconv-to-enc-tests
52123         (test_u32_strconv_to_enc_LDADD): Likewise.
52124         * modules/uniconv/u8-conv-from-enc-tests
52125         (test_u8_conv_from_enc_LDADD): Likewise.
52126         * modules/uniconv/u8-conv-to-enc-tests
52127         (test_u8_conv_to_enc_LDADD): Likewise.
52128         * modules/uniconv/u8-strconv-from-enc-tests
52129         (test_u8_strconv_from_enc_LDADD): Likewise.
52130         * modules/uniconv/u8-strconv-to-enc-tests
52131         (test_u8_strconv_to_enc_LDADD): Likewise.
52132
52133 2007-10-22  Bruno Haible  <bruno@clisp.org>
52134
52135         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
52136         size.
52137
52138 2007-10-22  Eric Blake  <ebb9@byu.net>
52139
52140         Tweak x*printf documentation.
52141         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
52142         variable name and comments.
52143         Suggested by Bruno Haible.
52144
52145 2007-10-22  Bruno Haible  <bruno@clisp.org>
52146
52147         * lib/acl.c (copy_acl): Fix file name in comment.
52148
52149 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52150
52151         Fix Tru64 problem with stdbool.h.
52152         * lib/stdbool.in.h (false, true):
52153         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
52154         Don't declare as an enum in this situation; it runs afoul of Tru64.
52155         Problem reported by Steven M. Schweda in
52156         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
52157
52158 2007-10-22  Eric Blake  <ebb9@byu.net>
52159
52160         Also wrap vf?printf.
52161         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
52162         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
52163         (xvprintf, xvfprintf): New functions.
52164
52165 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52166
52167         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
52168         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
52169
52170         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
52171         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
52172
52173 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52174
52175         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
52176         by Bruno Haible.
52177
52178 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52179
52180         * lib/getloadavg.c
52181         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
52182         Undef `sys' after including sys/table.h, for Tru64 4.0D.
52183
52184         * tests/test-i-ring.c: Work for C89.
52185
52186 2007-10-22  Bruno Haible  <bruno@clisp.org>
52187
52188         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
52189         -1u, in preprocessor expression, so that we don't test for the bug
52190         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
52191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
52192
52193 2007-10-22  Eric Blake  <ebb9@byu.net>
52194
52195         * tests/test-yesno.sh: Silence stderr during test.
52196
52197 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52198
52199         * modules/crypto/gc-camellia: New file.
52200
52201         * m4/gc-camellia.m4: New file.
52202
52203         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
52204
52205         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
52206
52207 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52208
52209         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
52210         --help to stdout.  Reported by sms@antinode.org (Steven
52211         M. Schweda).
52212
52213 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52214
52215         * users.txt: Fix link to libksba.
52216
52217 2007-10-21  Ben Pfaff  <blp@gnu.org>
52218
52219         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
52220         round.c roundf implementation that depends on floorf and ceilf to
52221         be tested unconditionally.
52222
52223 2007-10-21  Ben Pfaff  <blp@gnu.org>
52224
52225         * m4/check-libm-func.m4: Removed.
52226         * m4/check-math-lib.m4: New file.
52227         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
52228         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
52229         definition and lack of AC_LIBOBJ([roundf]).
52230         * m4/roundl.m4: Ditto, and similarly for roundl.
52231         * modules/round: Reference new m4 file.
52232         * modules/roundf: Ditto.
52233         * modules/roundl: Ditto.
52234         * tests/test-round2.c (main): Use ROUND instead of round.
52235         Bug report from Bruno Haible.
52236
52237 2007-10-21  Bruno Haible  <bruno@clisp.org>
52238
52239         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
52240         context.
52241
52242 2007-10-21  Bruno Haible  <bruno@clisp.org>
52243
52244         * tests/test-wcwidth.c (main): Allow negative result for some control
52245         characters.
52246
52247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
52248         Needed on OSF/1 5.1.
52249
52250 2007-10-21  Bruno Haible  <bruno@clisp.org>
52251
52252         * tests/test-floorf1.c: Include isnanf.h.
52253         (main): Use isnanf() instead of isnan().
52254         * tests/test-ceilf1.c: Include isnanf.h.
52255         (main): Use isnanf() instead of isnan().
52256         * tests/test-truncf1.c: Include isnanf.h.
52257         (main): Use isnanf() instead of isnan().
52258         * tests/test-roundf1.c: Include isnanf.h.
52259         (main): Use isnanf() instead of isnan().
52260
52261 2007-10-21  Eric Blake  <ebb9@byu.net>
52262
52263         * users.txt: Update URL for m4.
52264
52265 2007-10-21  Bruno Haible  <bruno@clisp.org>
52266
52267         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
52268
52269 2007-10-21  Bruno Haible  <bruno@clisp.org>
52270
52271         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
52272         Git's management files if the CVS files are not present.
52273
52274 2007-10-20  Bruno Haible  <bruno@clisp.org>
52275
52276         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
52277         gcc-3.4.x.
52278
52279 2007-10-20  Ben Pfaff  <blp@gnu.org>
52280
52281         * lib/math.in.h: Declare round, roundf, roundl if we are providing
52282         implementations.
52283         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
52284         * lib/round.c: New file.
52285         * lib/roundf.c: New file.
52286         * lib/roundl.c: New file.
52287         * m4/round.m4: New file.
52288         * m4/roundf.m4: New file.
52289         * m4/roundl.m4: New file.
52290         * m4/check-libm-func-m4: New file.
52291         * modules/math: Replace round, roundf, roundl related @VARS@ in
52292         math.in.h.
52293         * modules/round: New file.
52294         * modules/round-tests: New file.
52295         * modules/roundf: New file.
52296         * modules/roundf-tests: New file.
52297         * modules/roundl: New file.
52298         * modules/roundl-tests: New file.
52299         * tests/test-round1.c: New file.
52300         * tests/test-round2.c: New file.
52301         * tests/test-roundf1.c: New file.
52302         * tests/test-roundf2.c: New file.
52303         * tests/test-roundl.c: New file.
52304         * doc/functions/round.texi: Mention round module.
52305         * doc/functions/roundf.texi: Mention roundf module.
52306         * doc/functions/roundl.texi: Mention roundl module.
52307         * MODULES.html.sh: Mention new modules.
52308         Thanks to Bruno Haible for suggestions.
52309
52310 2007-10-20  Jim Meyering  <meyering@redhat.com>
52311
52312         * lib/xprintf.c: Include <config.h> unconditionally.
52313
52314         Change xprintf's license to GPL.
52315         * modules/xprintf (License): s/LGPL/GPL/, since this module
52316         depends on modules (exit and exitfail) which are GPL.
52317         Suggestion from Bruno Haible.
52318
52319         xprintf fixes.
52320         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
52321         Use a clearer diagnostic.
52322         Patch from Bruno Haible.
52323
52324 2007-10-20  Bruno Haible  <bruno@clisp.org>
52325
52326         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
52327         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
52328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52329
52330 2007-10-20  Bruno Haible  <bruno@clisp.org>
52331
52332         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
52333         precision in the comparison result > x - 1 or similar.
52334         * tests/test-ceilf2.c (correct_result_p): Likewise.
52335         * tests/test-truncf2.c (correct_result_p): Likewise.
52336         * tests/test-trunc2.c (correct_result_p): Likewise.
52337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52338
52339 2007-10-20  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/ceil: New file.
52342         * m4/ceil.m4: New file.
52343         * doc/functions/ceil.texi: Mention the 'ceil' module.
52344
52345 2007-10-20  Bruno Haible  <bruno@clisp.org>
52346
52347         * modules/floor: New file.
52348         * m4/floor.m4: New file.
52349         * doc/functions/floor.texi: Mention the 'floor' module.
52350
52351 2007-10-20  Bruno Haible  <bruno@clisp.org>
52352
52353         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
52354         of %a.
52355         * modules/floorf-tests (Depends-on): Likewise.
52356         * modules/truncf-tests (Depends-on): Likewise.
52357         * modules/trunc-tests (Depends-on): Likewise.
52358         Reported by Ben Pfaff.
52359
52360 2007-10-19  Jim Meyering  <meyering@redhat.com>
52361
52362         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
52363         Don't bother testing specific errno values.  Just test ferror.
52364
52365         New module: xprintf
52366         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
52367
52368 2007-10-19  Bruno Haible  <bruno@clisp.org>
52369
52370         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
52371         syntax.
52372         * modules/javaexec (Makefile.am): Likewise.
52373         * modules/relocatable-prog (Makefile.am): Likewise.
52374         Suggested by Jim Meyering.
52375
52376 2007-10-18  Bruno Haible  <bruno@clisp.org>
52377
52378         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
52379         Reported by Jim Meyering.
52380
52381 2007-10-18  Eric Blake  <ebb9@byu.net>
52382
52383         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
52384
52385 2007-10-18  Bruno Haible  <bruno@clisp.org>
52386
52387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
52388         the format string into writable memory. Needed in Fortify conditions.
52389
52390 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
52391             Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
52394         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
52395         * modules/trim (Depends-on): Add mbchar.
52396         (configure.ac): Add gl_FUNC_MBRTOWC.
52397         (Makefile.am): Augment lib_SOURCES.
52398
52399 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         Modify glob.c to use fstatat and dirfd, to simplify it.
52402         Suggested by Eric Blake.
52403         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
52404         Don't include <stdbool.h>; not used.
52405         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
52406         (link_exists_p): Simplify implementation, since we can now assume
52407         dirfd and fstatat.
52408         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
52409
52410 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52411
52412         * gnulib-tool (func_get_dependencies): Fix sed script to
52413         match only tests.
52414
52415 2007-10-17  Bruno Haible  <bruno@clisp.org>
52416
52417         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
52418         allow locale names without encoding suffix.
52419         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52420         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52421
52422 2007-10-16  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
52425         * lib/getgroups.c (getgroups): Likewise.
52426         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
52427
52428 2007-10-16  Bruno Haible  <bruno@clisp.org>
52429
52430         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
52431         * modules/malloc-posix (License): Likewise.
52432         * modules/realloc-posix (License): Likewise.
52433         * modules/calloc-posix (License): Likewise.
52434         * modules/intprops (License): Change from GPL to LGPL, with
52435         Paul Eggert's approval.
52436
52437 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52438
52439         Merge glibc changes into lib/glob.c.
52440
52441         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
52442         2007-10-15 04:59:03 UTC.  Here are the changes:
52443
52444         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
52445
52446         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
52447
52448         * lib/glob.c: Add some branch prediction throughout.
52449
52450         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
52451
52452         [BZ #5103]
52453         * lib/glob.c (glob): Recognize patterns starting \/.
52454
52455         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
52456
52457         [BZ #3996]
52458         * lib/glob.c (attribute_hidden): Define if not defined.
52459         (glob): Unescape dirname, filename or username when needed and not
52460         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
52461         is NULL.  Handle unescaped [ in pattern without closing ].
52462         Don't pass GLOB_CHECK down to recursive glob for directories.
52463         (__glob_pattern_type): New function.
52464         (__glob_pattern_p): Implement using __glob_pattern_type.
52465         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
52466         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
52467         Remove unreachable code.
52468
52469         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
52470
52471         * lib/glob.c (glob_in_dir): Add some comments and asserts to
52472         explain why there are no leaks.
52473
52474         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
52475
52476         [BZ #3253]
52477         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
52478         time, rather allocate increasingly bigger arrays of pointers, if
52479         possible with alloca, if too large with malloc.
52480
52481 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52482
52483         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
52484         Problem reported by H.Merijn Brand in
52485         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
52486         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
52487         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52488
52489 2007-10-15  Bruno Haible  <bruno@clisp.org>
52490
52491         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
52492         with explicit rpl_ prefix.
52493         * lib/fopen.c (fopen): Likewise.
52494         * lib/freopen.c (freopen): Likewise.
52495         * lib/iconv.c (iconv): Likewise.
52496         * lib/iconv_close.c (iconv_close): Likewise.
52497
52498 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52499
52500         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
52501
52502 2007-10-15  Bruno Haible  <bruno@clisp.org>
52503
52504         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
52505         <stddef.h> instead of <stdlib.h> since we only need NULL.
52506         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52507
52508 2007-10-15  Bruno Haible  <bruno@clisp.org>
52509
52510         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
52511         Replace paragraph talking about LIBOBJS.
52512         Reported by Colin Watson <cjwatson@debian.org>.
52513
52514 2007-10-15  Bruno Haible  <bruno@clisp.org>
52515
52516         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52517         <stdlib.h> before using NULL.
52518
52519 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52520
52521         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52522         Reported by Albert Chin <china@thewrittenword.com>.
52523
52524 2007-10-14  Bruno Haible  <bruno@clisp.org>
52525
52526         * modules/iconv_open-utf-tests: New file.
52527         * tests/test-iconv-utf.c: New file.
52528
52529         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52530         * modules/iconv_open-utf: New file.
52531         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52532         (iconv, iconv_close): New declarations.
52533         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52534         be defined.
52535         (iconv_open): Add special handling of conversion between UTF-8 and
52536         UTF-{16,32}{BE,LE}.
52537         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52538         * lib/iconv_close.c: New file.
52539         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52540         gl_FUNC_ICONV_OPEN.
52541         (gl_FUNC_ICONV_OPEN): Use it.
52542         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52543         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52544         and REPLACE_ICONV_UTF.
52545         * modules/iconv_open (Depends-on): Add c-strcase.
52546         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52547         ICONV_CONST.
52548         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52549
52550 2007-10-13  Albert Chin  <china@thewrittenword.com>
52551             Bruno Haible  <bruno@clisp.org>
52552
52553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52554         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52555
52556 2007-10-13  Bruno Haible  <bruno@clisp.org>
52557
52558         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52559         defined, use the ISO C99 inline semantics.
52560         * lib/argp.h (ARGP_EI): Likewise.
52561
52562 2007-10-13  Bruno Haible  <bruno@clisp.org>
52563
52564         Handle 'inline' change in gcc 4.3.0.
52565         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52566         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52567         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52568         argp_fmtstream_point): Disable 'extern' declaration if the function
52569         definition is going to be provided inline.
52570         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52571         semantics, not the ISO C99 inline semantics.
52572         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52573         'extern' declaration if the function definition is going to be provided
52574         inline.
52575         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52576         the GNU C inline semantics, not the ISO C99 inline semantics. With
52577         GCC 4.2, avoid a warning.
52578
52579 2007-10-13  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/freading.h (freading): Enable the use of __freading for
52582         glibc >= 2.7.
52583         * lib/freading.c (freading): Likewise.
52584
52585 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52586
52587         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52588         "warning: C99 inline functions are not supported; using GNU89".
52589
52590 2007-10-12  Bruno Haible  <bruno@clisp.org>
52591
52592         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52593         of 2.
52594         * tests/test-ceilf2.c: New file.
52595         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52596
52597         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52598         * modules/ceilf-tests: Update.
52599
52600 2007-10-12  Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52603         of 2.
52604         * tests/test-floorf2.c: New file.
52605         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52606
52607         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52608         * modules/floorf-tests: Update.
52609
52610 2007-10-12  Bruno Haible  <bruno@clisp.org>
52611
52612         * tests/test-trunc2.c: New file.
52613         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52614
52615         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52616         * modules/trunc-tests: Update.
52617
52618 2007-10-12  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52621         of 2.
52622         * tests/test-truncf2.c: New file.
52623         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52624
52625         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52626         * modules/truncf-tests: Update.
52627
52628 2007-10-11  Eric Blake  <ebb9@byu.net>
52629
52630         Don't claim strerror is broken on Interix.
52631         * doc/functions/strerror.texi (strerror): Known broken systems are
52632         now Solaris 8, and not Interix.
52633         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52634         Interix on cross-compile.
52635         Reported by Martin Koeppe in
52636         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52637
52638 2007-10-11  Bruno Haible  <bruno@clisp.org>
52639
52640         * modules/i-ring-tests: New file.
52641         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52642         instead of assert.
52643
52644 2007-10-11  Bruno Haible  <bruno@clisp.org>
52645
52646         * modules/filenamecat-tests: New file.
52647         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52648         * lib/filenamecat.c: Remove test code.
52649
52650 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52651
52652         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52653
52654         * lib/strerror.c: Include <string.h> always, to test interface,
52655         and to remove the need for the dummy.
52656         Include intprops.h to compute width instead of doing it ourselves
52657         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52658         (strerror): Define it to return NULL if there's no system strerror.
52659         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52660         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52661         ancient pre-strerror Unix systems well any more.  Saying "unknown
52662         system error" is enough.
52663         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52664         simpler strerror.c implementation.
52665         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52666         Simplify the tests to reflect the simpler strerror implementation.
52667         * modules/strerror (Depends-on): Add intprops.
52668
52669 2007-10-09  Eric Blake  <ebb9@byu.net>
52670
52671         Silence test-fpending.
52672         * modules/fpending-tests (Files): Add wrapper script.
52673         * tests/test-fpending.sh: New file.
52674
52675 2007-10-09  Bruno Haible  <bruno@clisp.org>
52676
52677         * MODULES.html.sh (func_module): Don't create a hyperlink for
52678         function names like 'printf_frexp'.
52679         (Misc): Add crc, memxor.
52680         (Characteristics of floating types): New section.
52681         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52682         isnanf-nolibm, signbit, trunc, truncf, truncl.
52683         (Enhancements for ISO C 99 functions): New subsection Input/output.
52684         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52685         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52686         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52687         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52688         (Enhancements for POSIX:2001 functions): Add chdir-long.
52689         (File system functions): Add areadlink, chdir-safer, read-file.
52690         Remove cycle-check.
52691         (File system as inode set): New section.
52692         (Date and time): Add gethrxtime.
52693         (Multithreading): Add openmp.
52694         (Internationalization functions): Add localename.
52695         (Unicode string functions): Add unistr/u*-mbsnlen.
52696         (Support for maintaining and releasing projects): Add git-version-gen.
52697         (Lone files): Remove directories.
52698
52699 2007-10-08  Ben Pfaff  <blp@gnu.org>
52700
52701         * lib/xmalloca.h: Fix typo in comment.
52702
52703 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52704
52705         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52706         when avoiding problems with integer overflow.  Use a portable test
52707         instead.
52708
52709 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52710
52711         * modules/dummy (License): Change to LGPLv2+.
52712         * modules/float (License): Likewise
52713         * modules/realloc (License): Likewise
52714         * modules/stdlib (License): Likewise
52715
52716 2007-10-07  Bruno Haible  <bruno@clisp.org>
52717
52718         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52719         * floor.c (TWO_MANT_DIG): Likewise.
52720         * ceil.c (TWO_MANT_DIG): Likewise.
52721         Reported by Ben Pfaff.
52722
52723 2007-10-07  Bruno Haible  <bruno@clisp.org>
52724
52725         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52726         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52727         * lib/frexp.c (FUNC): Likewise.
52728         * lib/printf-frexp.h (printf_frexp): Likewise.
52729         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52730         * lib/printf-frexp.c (FUNC): Likewise.
52731         Suggested by Jim Meyering.
52732
52733 2007-10-07  Jim Meyering  <meyering@redhat.com>
52734
52735         Make xnanosleep's integer overflow test more robust.
52736         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52737         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52738
52739 2007-10-07  Bruno Haible  <bruno@clisp.org>
52740
52741         * NEWS: Mention the license change.
52742
52743         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52744         abbreviations in the modules files.
52745
52746         Change copyright notice from GPLv2+ to GPLv3+.
52747         * README: Change copyright notice.
52748         * MODULES.html.sh: Likewise.
52749         * build-aux/bootstrap.conf: Likewise.
52750         * build-aux/config.libpath: Likewise.
52751         * build-aux/csharpcomp.sh.in: Likewise.
52752         * build-aux/csharpexec.sh.in: Likewise.
52753         * build-aux/install-reloc: Likewise.
52754         * build-aux/javacomp.sh.in: Likewise.
52755         * build-aux/javaexec.sh.in: Likewise.
52756         * build-aux/ldd.sh.in: Likewise.
52757         * build-aux/reloc-ldflags: Likewise.
52758         * build-aux/relocatable.sh.in: Likewise.
52759         * build-aux/x-to-1.in: Likewise.
52760         * check-module: Likewise.
52761         * config/srclistvars.sh: Likewise.
52762         * gnulib-tool: Likewise.
52763         * lib/acl-internal.h: Likewise.
52764         * lib/acl.c: Likewise.
52765         * lib/acl.h: Likewise.
52766         * lib/acl_entries.c: Likewise.
52767         * lib/areadlink-with-size.c: Likewise.
52768         * lib/areadlink.c: Likewise.
52769         * lib/areadlink.h: Likewise.
52770         * lib/argmatch.c: Likewise.
52771         * lib/argmatch.h: Likewise.
52772         * lib/argp-ba.c: Likewise.
52773         * lib/argp-eexst.c: Likewise.
52774         * lib/argp-fmtstream.c: Likewise.
52775         * lib/argp-fmtstream.h: Likewise.
52776         * lib/argp-fs-xinl.c: Likewise.
52777         * lib/argp-help.c: Likewise.
52778         * lib/argp-namefrob.h: Likewise.
52779         * lib/argp-parse.c: Likewise.
52780         * lib/argp-pin.c: Likewise.
52781         * lib/argp-pv.c: Likewise.
52782         * lib/argp-pvh.c: Likewise.
52783         * lib/argp-xinl.c: Likewise.
52784         * lib/argp.h: Likewise.
52785         * lib/at-func.c: Likewise.
52786         * lib/atanl.c: Likewise.
52787         * lib/backupfile.c: Likewise.
52788         * lib/backupfile.h: Likewise.
52789         * lib/basename.c: Likewise.
52790         * lib/binary-io.h: Likewise.
52791         * lib/byteswap.in.h: Likewise.
52792         * lib/c-stack.c: Likewise.
52793         * lib/c-stack.h: Likewise.
52794         * lib/c-strcasestr.c: Likewise.
52795         * lib/c-strcasestr.h: Likewise.
52796         * lib/c-strstr.c: Likewise.
52797         * lib/c-strstr.h: Likewise.
52798         * lib/c-strtod.c: Likewise.
52799         * lib/calloc.c: Likewise.
52800         * lib/canon-host.c: Likewise.
52801         * lib/canon-host.h: Likewise.
52802         * lib/canonicalize-lgpl.c: Likewise.
52803         * lib/canonicalize.c: Likewise.
52804         * lib/canonicalize.h: Likewise.
52805         * lib/ceil.c: Likewise.
52806         * lib/ceilf.c: Likewise.
52807         * lib/ceill.c: Likewise.
52808         * lib/chdir-long.c: Likewise.
52809         * lib/chdir-long.h: Likewise.
52810         * lib/chdir-safer.c: Likewise.
52811         * lib/chdir-safer.h: Likewise.
52812         * lib/chown.c: Likewise.
52813         * lib/classpath.c: Likewise.
52814         * lib/classpath.h: Likewise.
52815         * lib/clean-temp.c: Likewise.
52816         * lib/clean-temp.h: Likewise.
52817         * lib/cloexec.c: Likewise.
52818         * lib/close-stream.c: Likewise.
52819         * lib/closein.c: Likewise.
52820         * lib/closein.h: Likewise.
52821         * lib/closeout.c: Likewise.
52822         * lib/closeout.h: Likewise.
52823         * lib/concat-filename.c: Likewise.
52824         * lib/copy-file.c: Likewise.
52825         * lib/copy-file.h: Likewise.
52826         * lib/count-one-bits.h: Likewise.
52827         * lib/crc.c: Likewise.
52828         * lib/crc.h: Likewise.
52829         * lib/creat-safer.c: Likewise.
52830         * lib/csharpcomp.c: Likewise.
52831         * lib/csharpcomp.h: Likewise.
52832         * lib/csharpexec.c: Likewise.
52833         * lib/csharpexec.h: Likewise.
52834         * lib/cycle-check.c: Likewise.
52835         * lib/cycle-check.h: Likewise.
52836         * lib/diacrit.c: Likewise.
52837         * lib/diacrit.h: Likewise.
52838         * lib/diffseq.h: Likewise.
52839         * lib/dirchownmod.c: Likewise.
52840         * lib/dirent.in.h: Likewise.
52841         * lib/dirfd.c: Likewise.
52842         * lib/dirfd.h: Likewise.
52843         * lib/dirname.c: Likewise.
52844         * lib/dirname.h: Likewise.
52845         * lib/dummy.c: Likewise.
52846         * lib/dup-safer.c: Likewise.
52847         * lib/dup2.c: Likewise.
52848         * lib/eealloc.h: Likewise.
52849         * lib/error.c: Likewise.
52850         * lib/error.h: Likewise.
52851         * lib/euidaccess.c: Likewise.
52852         * lib/exclude.c: Likewise.
52853         * lib/exclude.h: Likewise.
52854         * lib/execute.c: Likewise.
52855         * lib/execute.h: Likewise.
52856         * lib/exitfail.c: Likewise.
52857         * lib/exitfail.h: Likewise.
52858         * lib/expl.c: Likewise.
52859         * lib/fatal-signal.c: Likewise.
52860         * lib/fatal-signal.h: Likewise.
52861         * lib/fbufmode.c: Likewise.
52862         * lib/fbufmode.h: Likewise.
52863         * lib/fchdir.c: Likewise.
52864         * lib/fchmodat.c: Likewise.
52865         * lib/fchownat.c: Likewise.
52866         * lib/fcntl--.h: Likewise.
52867         * lib/fcntl-safer.h: Likewise.
52868         * lib/fcntl.in.h: Likewise.
52869         * lib/fd-safer.c: Likewise.
52870         * lib/fflush.c: Likewise.
52871         * lib/file-has-acl.c: Likewise.
52872         * lib/file-set.c: Likewise.
52873         * lib/file-type.c: Likewise.
52874         * lib/file-type.h: Likewise.
52875         * lib/fileblocks.c: Likewise.
52876         * lib/filemode.c: Likewise.
52877         * lib/filemode.h: Likewise.
52878         * lib/filename.h: Likewise.
52879         * lib/filenamecat.c: Likewise.
52880         * lib/filenamecat.h: Likewise.
52881         * lib/findprog.c: Likewise.
52882         * lib/findprog.h: Likewise.
52883         * lib/float.in.h: Likewise.
52884         * lib/floor.c: Likewise.
52885         * lib/floorf.c: Likewise.
52886         * lib/floorl.c: Likewise.
52887         * lib/fopen-safer.c: Likewise.
52888         * lib/fopen.c: Likewise.
52889         * lib/fpending.c: Likewise.
52890         * lib/fpending.h: Likewise.
52891         * lib/fprintf.c: Likewise.
52892         * lib/fprintftime.h: Likewise.
52893         * lib/fpucw.h: Likewise.
52894         * lib/fpurge.c: Likewise.
52895         * lib/fpurge.h: Likewise.
52896         * lib/freadable.c: Likewise.
52897         * lib/freadable.h: Likewise.
52898         * lib/freadahead.c: Likewise.
52899         * lib/freadahead.h: Likewise.
52900         * lib/freading.c: Likewise.
52901         * lib/freading.h: Likewise.
52902         * lib/free.c: Likewise.
52903         * lib/freopen.c: Likewise.
52904         * lib/frexp.c: Likewise.
52905         * lib/frexpl.c: Likewise.
52906         * lib/fseek.c: Likewise.
52907         * lib/fseterr.c: Likewise.
52908         * lib/fseterr.h: Likewise.
52909         * lib/fstatat.c: Likewise.
52910         * lib/fstrcmp.c: Likewise.
52911         * lib/fstrcmp.h: Likewise.
52912         * lib/fsusage.c: Likewise.
52913         * lib/fsusage.h: Likewise.
52914         * lib/ftell.c: Likewise.
52915         * lib/ftello.c: Likewise.
52916         * lib/fts-cycle.c: Likewise.
52917         * lib/fts.c: Likewise.
52918         * lib/fts_.h: Likewise.
52919         * lib/full-read.c: Likewise.
52920         * lib/full-read.h: Likewise.
52921         * lib/full-write.c: Likewise.
52922         * lib/full-write.h: Likewise.
52923         * lib/fwritable.c: Likewise.
52924         * lib/fwritable.h: Likewise.
52925         * lib/fwriteerror.c: Likewise.
52926         * lib/fwriteerror.h: Likewise.
52927         * lib/fwriting.c: Likewise.
52928         * lib/fwriting.h: Likewise.
52929         * lib/gcd.c: Likewise.
52930         * lib/gcd.h: Likewise.
52931         * lib/getcwd.c: Likewise.
52932         * lib/getdate.h: Likewise.
52933         * lib/getdate.y: Likewise.
52934         * lib/getdomainname.c: Likewise.
52935         * lib/getdomainname.h: Likewise.
52936         * lib/getgroups.c: Likewise.
52937         * lib/gethostname.c: Likewise.
52938         * lib/gethrxtime.c: Likewise.
52939         * lib/gethrxtime.h: Likewise.
52940         * lib/getloadavg.c: Likewise.
52941         * lib/getndelim2.c: Likewise.
52942         * lib/getndelim2.h: Likewise.
52943         * lib/getnline.c: Likewise.
52944         * lib/getnline.h: Likewise.
52945         * lib/getopt.c: Likewise.
52946         * lib/getopt.in.h: Likewise.
52947         * lib/getopt1.c: Likewise.
52948         * lib/getopt_int.h: Likewise.
52949         * lib/getpagesize.h: Likewise.
52950         * lib/getsubopt.c: Likewise.
52951         * lib/gettime.c: Likewise.
52952         * lib/getugroups.c: Likewise.
52953         * lib/getugroups.h: Likewise.
52954         * lib/getusershell.c: Likewise.
52955         * lib/gl_anyavltree_list1.h: Likewise.
52956         * lib/gl_anyavltree_list2.h: Likewise.
52957         * lib/gl_anyhash_list1.h: Likewise.
52958         * lib/gl_anyhash_list2.h: Likewise.
52959         * lib/gl_anylinked_list1.h: Likewise.
52960         * lib/gl_anylinked_list2.h: Likewise.
52961         * lib/gl_anyrbtree_list1.h: Likewise.
52962         * lib/gl_anyrbtree_list2.h: Likewise.
52963         * lib/gl_anytree_list1.h: Likewise.
52964         * lib/gl_anytree_list2.h: Likewise.
52965         * lib/gl_anytree_oset.h: Likewise.
52966         * lib/gl_anytreehash_list1.h: Likewise.
52967         * lib/gl_anytreehash_list2.h: Likewise.
52968         * lib/gl_array_list.c: Likewise.
52969         * lib/gl_array_list.h: Likewise.
52970         * lib/gl_array_oset.c: Likewise.
52971         * lib/gl_array_oset.h: Likewise.
52972         * lib/gl_avltree_list.c: Likewise.
52973         * lib/gl_avltree_list.h: Likewise.
52974         * lib/gl_avltree_oset.c: Likewise.
52975         * lib/gl_avltree_oset.h: Likewise.
52976         * lib/gl_avltreehash_list.c: Likewise.
52977         * lib/gl_avltreehash_list.h: Likewise.
52978         * lib/gl_carray_list.c: Likewise.
52979         * lib/gl_carray_list.h: Likewise.
52980         * lib/gl_linked_list.c: Likewise.
52981         * lib/gl_linked_list.h: Likewise.
52982         * lib/gl_linkedhash_list.c: Likewise.
52983         * lib/gl_linkedhash_list.h: Likewise.
52984         * lib/gl_list.c: Likewise.
52985         * lib/gl_list.h: Likewise.
52986         * lib/gl_oset.c: Likewise.
52987         * lib/gl_oset.h: Likewise.
52988         * lib/gl_rbtree_list.c: Likewise.
52989         * lib/gl_rbtree_list.h: Likewise.
52990         * lib/gl_rbtree_oset.c: Likewise.
52991         * lib/gl_rbtree_oset.h: Likewise.
52992         * lib/gl_rbtreehash_list.c: Likewise.
52993         * lib/gl_rbtreehash_list.h: Likewise.
52994         * lib/gl_sublist.c: Likewise.
52995         * lib/gl_sublist.h: Likewise.
52996         * lib/group-member.c: Likewise.
52997         * lib/group-member.h: Likewise.
52998         * lib/hard-locale.c: Likewise.
52999         * lib/hard-locale.h: Likewise.
53000         * lib/hash-pjw.c: Likewise.
53001         * lib/hash-pjw.h: Likewise.
53002         * lib/hash-triple.c: Likewise.
53003         * lib/hash.c: Likewise.
53004         * lib/hash.h: Likewise.
53005         * lib/human.c: Likewise.
53006         * lib/human.h: Likewise.
53007         * lib/i-ring.c: Likewise.
53008         * lib/i-ring.h: Likewise.
53009         * lib/idcache.c: Likewise.
53010         * lib/imaxabs.c: Likewise.
53011         * lib/imaxdiv.c: Likewise.
53012         * lib/inet_pton.c: Likewise.
53013         * lib/inet_pton.h: Likewise.
53014         * lib/intprops.h: Likewise.
53015         * lib/inttostr.c: Likewise.
53016         * lib/inttostr.h: Likewise.
53017         * lib/inttypes.in.h: Likewise.
53018         * lib/isapipe.c: Likewise.
53019         * lib/isdir.c: Likewise.
53020         * lib/isnan.c: Likewise.
53021         * lib/isnan.h: Likewise.
53022         * lib/isnanf.c: Likewise.
53023         * lib/isnanf.h: Likewise.
53024         * lib/isnanl-nolibm.h: Likewise.
53025         * lib/isnanl.c: Likewise.
53026         * lib/isnanl.h: Likewise.
53027         * lib/javacomp.c: Likewise.
53028         * lib/javacomp.h: Likewise.
53029         * lib/javaexec.c: Likewise.
53030         * lib/javaexec.h: Likewise.
53031         * lib/javaversion.c: Likewise.
53032         * lib/javaversion.h: Likewise.
53033         * lib/javaversion.java: Likewise.
53034         * lib/lbrkprop.h: Likewise.
53035         * lib/lchmod.h: Likewise.
53036         * lib/lchown.c: Likewise.
53037         * lib/ldexpl.c: Likewise.
53038         * lib/linebreak.c: Likewise.
53039         * lib/linebreak.h: Likewise.
53040         * lib/linebuffer.c: Likewise.
53041         * lib/linebuffer.h: Likewise.
53042         * lib/locale.in.h: Likewise.
53043         * lib/logl.c: Likewise.
53044         * lib/long-options.c: Likewise.
53045         * lib/long-options.h: Likewise.
53046         * lib/lstat.c: Likewise.
53047         * lib/lstat.h: Likewise.
53048         * lib/math.in.h: Likewise.
53049         * lib/mbchar.c: Likewise.
53050         * lib/mbchar.h: Likewise.
53051         * lib/mbfile.h: Likewise.
53052         * lib/mbiter.h: Likewise.
53053         * lib/mbscasecmp.c: Likewise.
53054         * lib/mbscasestr.c: Likewise.
53055         * lib/mbschr.c: Likewise.
53056         * lib/mbscspn.c: Likewise.
53057         * lib/mbslen.c: Likewise.
53058         * lib/mbsncasecmp.c: Likewise.
53059         * lib/mbsnlen.c: Likewise.
53060         * lib/mbspbrk.c: Likewise.
53061         * lib/mbspcasecmp.c: Likewise.
53062         * lib/mbsrchr.c: Likewise.
53063         * lib/mbssep.c: Likewise.
53064         * lib/mbsspn.c: Likewise.
53065         * lib/mbsstr.c: Likewise.
53066         * lib/mbstok_r.c: Likewise.
53067         * lib/mbswidth.c: Likewise.
53068         * lib/mbswidth.h: Likewise.
53069         * lib/mbuiter.h: Likewise.
53070         * lib/memcasecmp.c: Likewise.
53071         * lib/memcasecmp.h: Likewise.
53072         * lib/memchr.c: Likewise.
53073         * lib/memcmp.c: Likewise.
53074         * lib/memcoll.c: Likewise.
53075         * lib/memcoll.h: Likewise.
53076         * lib/memcpy.c: Likewise.
53077         * lib/memrchr.c: Likewise.
53078         * lib/mkancesdirs.c: Likewise.
53079         * lib/mkdir-p.c: Likewise.
53080         * lib/mkdir-p.h: Likewise.
53081         * lib/mkdir.c: Likewise.
53082         * lib/mkdirat.c: Likewise.
53083         * lib/mkdtemp.c: Likewise.
53084         * lib/mkstemp-safer.c: Likewise.
53085         * lib/mkstemp.c: Likewise.
53086         * lib/modechange.c: Likewise.
53087         * lib/modechange.h: Likewise.
53088         * lib/mountlist.c: Likewise.
53089         * lib/mountlist.h: Likewise.
53090         * lib/mpsort.c: Likewise.
53091         * lib/nanosleep.c: Likewise.
53092         * lib/obstack.c: Likewise.
53093         * lib/obstack.h: Likewise.
53094         * lib/open-safer.c: Likewise.
53095         * lib/open.c: Likewise.
53096         * lib/openat-die.c: Likewise.
53097         * lib/openat-priv.h: Likewise.
53098         * lib/openat-proc.c: Likewise.
53099         * lib/openat.c: Likewise.
53100         * lib/openat.h: Likewise.
53101         * lib/pagealign_alloc.c: Likewise.
53102         * lib/pagealign_alloc.h: Likewise.
53103         * lib/physmem.c: Likewise.
53104         * lib/physmem.h: Likewise.
53105         * lib/pipe-safer.c: Likewise.
53106         * lib/pipe.c: Likewise.
53107         * lib/pipe.h: Likewise.
53108         * lib/posixtm.c: Likewise.
53109         * lib/posixtm.h: Likewise.
53110         * lib/posixver.c: Likewise.
53111         * lib/printf-frexp.c: Likewise.
53112         * lib/printf-frexp.h: Likewise.
53113         * lib/printf-frexpl.c: Likewise.
53114         * lib/printf-frexpl.h: Likewise.
53115         * lib/printf.c: Likewise.
53116         * lib/progname.c: Likewise.
53117         * lib/progname.h: Likewise.
53118         * lib/progreloc.c: Likewise.
53119         * lib/putenv.c: Likewise.
53120         * lib/quote.c: Likewise.
53121         * lib/quote.h: Likewise.
53122         * lib/quotearg.c: Likewise.
53123         * lib/quotearg.h: Likewise.
53124         * lib/raise.c: Likewise.
53125         * lib/readline.c: Likewise.
53126         * lib/readline.h: Likewise.
53127         * lib/readlink.c: Likewise.
53128         * lib/readtokens.c: Likewise.
53129         * lib/readtokens.h: Likewise.
53130         * lib/readtokens0.c: Likewise.
53131         * lib/readtokens0.h: Likewise.
53132         * lib/readutmp.c: Likewise.
53133         * lib/readutmp.h: Likewise.
53134         * lib/realloc.c: Likewise.
53135         * lib/relocwrapper.c: Likewise.
53136         * lib/rename-dest-slash.c: Likewise.
53137         * lib/rename.c: Likewise.
53138         * lib/rmdir.c: Likewise.
53139         * lib/rpmatch.c: Likewise.
53140         * lib/safe-read.c: Likewise.
53141         * lib/safe-read.h: Likewise.
53142         * lib/safe-write.c: Likewise.
53143         * lib/safe-write.h: Likewise.
53144         * lib/same-inode.h: Likewise.
53145         * lib/same.c: Likewise.
53146         * lib/same.h: Likewise.
53147         * lib/save-cwd.c: Likewise.
53148         * lib/save-cwd.h: Likewise.
53149         * lib/savedir.c: Likewise.
53150         * lib/savedir.h: Likewise.
53151         * lib/savewd.c: Likewise.
53152         * lib/savewd.h: Likewise.
53153         * lib/search.in.h: Likewise.
53154         * lib/setenv.c: Likewise.
53155         * lib/setenv.h: Likewise.
53156         * lib/settime.c: Likewise.
53157         * lib/sh-quote.c: Likewise.
53158         * lib/sh-quote.h: Likewise.
53159         * lib/sig2str.c: Likewise.
53160         * lib/sig2str.h: Likewise.
53161         * lib/signal.in.h: Likewise.
53162         * lib/signbitd.c: Likewise.
53163         * lib/signbitf.c: Likewise.
53164         * lib/signbitl.c: Likewise.
53165         * lib/sigprocmask.c: Likewise.
53166         * lib/sincosl.c: Likewise.
53167         * lib/sleep.c: Likewise.
53168         * lib/sprintf.c: Likewise.
53169         * lib/sqrtl.c: Likewise.
53170         * lib/stat-time.h: Likewise.
53171         * lib/stdio--.h: Likewise.
53172         * lib/stdio-safer.h: Likewise.
53173         * lib/stdlib--.h: Likewise.
53174         * lib/stdlib-safer.h: Likewise.
53175         * lib/stdlib.in.h: Likewise.
53176         * lib/stpcpy.c: Likewise.
53177         * lib/stpncpy.c: Likewise.
53178         * lib/strchrnul.c: Likewise.
53179         * lib/strcspn.c: Likewise.
53180         * lib/strerror.c: Likewise.
53181         * lib/strftime.c: Likewise.
53182         * lib/strftime.h: Likewise.
53183         * lib/striconveh.c: Likewise.
53184         * lib/striconveh.h: Likewise.
53185         * lib/striconveha.c: Likewise.
53186         * lib/striconveha.h: Likewise.
53187         * lib/stripslash.c: Likewise.
53188         * lib/strnlen1.c: Likewise.
53189         * lib/strnlen1.h: Likewise.
53190         * lib/strtod.c: Likewise.
53191         * lib/strtoimax.c: Likewise.
53192         * lib/strtok_r.c: Likewise.
53193         * lib/strtol.c: Likewise.
53194         * lib/strtoll.c: Likewise.
53195         * lib/strtoul.c: Likewise.
53196         * lib/strtoull.c: Likewise.
53197         * lib/sysexits.in.h: Likewise.
53198         * lib/tempname.c: Likewise.
53199         * lib/tempname.h: Likewise.
53200         * lib/timespec.h: Likewise.
53201         * lib/tls.c: Likewise.
53202         * lib/tls.h: Likewise.
53203         * lib/tmpdir.c: Likewise.
53204         * lib/tmpdir.h: Likewise.
53205         * lib/tmpfile-safer.c: Likewise.
53206         * lib/tmpfile.c: Likewise.
53207         * lib/trigl.c: Likewise.
53208         * lib/trigl.h: Likewise.
53209         * lib/trim.c: Likewise.
53210         * lib/trim.h: Likewise.
53211         * lib/trunc.c: Likewise.
53212         * lib/truncf.c: Likewise.
53213         * lib/truncl.c: Likewise.
53214         * lib/tsearch.c: Likewise.
53215         * lib/unicodeio.c: Likewise.
53216         * lib/unicodeio.h: Likewise.
53217         * lib/unistd--.h: Likewise.
53218         * lib/unistd-safer.h: Likewise.
53219         * lib/unistdio/ulc-fprintf.c: Likewise.
53220         * lib/unistdio/ulc-vfprintf.c: Likewise.
53221         * lib/unlinkdir.c: Likewise.
53222         * lib/unlinkdir.h: Likewise.
53223         * lib/unlocked-io.h: Likewise.
53224         * lib/unsetenv.c: Likewise.
53225         * lib/userspec.c: Likewise.
53226         * lib/utime.c: Likewise.
53227         * lib/utimecmp.c: Likewise.
53228         * lib/utimecmp.h: Likewise.
53229         * lib/utimens.c: Likewise.
53230         * lib/verify.h: Likewise.
53231         * lib/verror.c: Likewise.
53232         * lib/verror.h: Likewise.
53233         * lib/version-etc-fsf.c: Likewise.
53234         * lib/version-etc.c: Likewise.
53235         * lib/version-etc.h: Likewise.
53236         * lib/vfprintf.c: Likewise.
53237         * lib/vprintf.c: Likewise.
53238         * lib/vsprintf.c: Likewise.
53239         * lib/w32spawn.h: Likewise.
53240         * lib/wait-process.c: Likewise.
53241         * lib/wait-process.h: Likewise.
53242         * lib/wcwidth.c: Likewise.
53243         * lib/write-any-file.c: Likewise.
53244         * lib/xalloc-die.c: Likewise.
53245         * lib/xalloc.h: Likewise.
53246         * lib/xasprintf.c: Likewise.
53247         * lib/xgetcwd.c: Likewise.
53248         * lib/xgetcwd.h: Likewise.
53249         * lib/xgetdomainname.c: Likewise.
53250         * lib/xgetdomainname.h: Likewise.
53251         * lib/xgethostname.c: Likewise.
53252         * lib/xmalloc.c: Likewise.
53253         * lib/xmalloca.c: Likewise.
53254         * lib/xmalloca.h: Likewise.
53255         * lib/xmemcoll.c: Likewise.
53256         * lib/xnanosleep.c: Likewise.
53257         * lib/xreadlink.c: Likewise.
53258         * lib/xreadlink.h: Likewise.
53259         * lib/xsetenv.c: Likewise.
53260         * lib/xsetenv.h: Likewise.
53261         * lib/xstriconv.c: Likewise.
53262         * lib/xstriconv.h: Likewise.
53263         * lib/xstrndup.c: Likewise.
53264         * lib/xstrndup.h: Likewise.
53265         * lib/xstrtod.c: Likewise.
53266         * lib/xstrtod.h: Likewise.
53267         * lib/xstrtol-error.c: Likewise.
53268         * lib/xstrtol.c: Likewise.
53269         * lib/xstrtol.h: Likewise.
53270         * lib/xtime.h: Likewise.
53271         * lib/xvasprintf.c: Likewise.
53272         * lib/xvasprintf.h: Likewise.
53273         * lib/yesno.c: Likewise.
53274         * lib/yesno.h: Likewise.
53275         * posix-modules: Likewise.
53276         * tests/test-alloca-opt.c: Likewise.
53277         * tests/test-arcfour.c: Likewise.
53278         * tests/test-arctwo.c: Likewise.
53279         * tests/test-argmatch.c: Likewise.
53280         * tests/test-argp-2.sh: Likewise.
53281         * tests/test-argp.c: Likewise.
53282         * tests/test-arpa_inet.c: Likewise.
53283         * tests/test-array_list.c: Likewise.
53284         * tests/test-array_oset.c: Likewise.
53285         * tests/test-atexit.c: Likewise.
53286         * tests/test-avltree_list.c: Likewise.
53287         * tests/test-avltree_oset.c: Likewise.
53288         * tests/test-avltreehash_list.c: Likewise.
53289         * tests/test-base64.c: Likewise.
53290         * tests/test-binary-io.c: Likewise.
53291         * tests/test-byteswap.c: Likewise.
53292         * tests/test-c-ctype.c: Likewise.
53293         * tests/test-c-strcasecmp.c: Likewise.
53294         * tests/test-c-strcasestr.c: Likewise.
53295         * tests/test-c-strncasecmp.c: Likewise.
53296         * tests/test-c-strstr.c: Likewise.
53297         * tests/test-canonicalize-lgpl.c: Likewise.
53298         * tests/test-canonicalize.c: Likewise.
53299         * tests/test-carray_list.c: Likewise.
53300         * tests/test-ceilf.c: Likewise.
53301         * tests/test-ceill.c: Likewise.
53302         * tests/test-count-one-bits.c: Likewise.
53303         * tests/test-crc.c: Likewise.
53304         * tests/test-dirname.c: Likewise.
53305         * tests/test-fbufmode.c: Likewise.
53306         * tests/test-fcntl.c: Likewise.
53307         * tests/test-fflush.c: Likewise.
53308         * tests/test-floorf.c: Likewise.
53309         * tests/test-floorl.c: Likewise.
53310         * tests/test-fopen.c: Likewise.
53311         * tests/test-fprintf-posix.c: Likewise.
53312         * tests/test-fprintf-posix.h: Likewise.
53313         * tests/test-fpurge.c: Likewise.
53314         * tests/test-freadable.c: Likewise.
53315         * tests/test-freadahead.c: Likewise.
53316         * tests/test-freading.c: Likewise.
53317         * tests/test-freopen.c: Likewise.
53318         * tests/test-frexp.c: Likewise.
53319         * tests/test-frexpl.c: Likewise.
53320         * tests/test-fseek.c: Likewise.
53321         * tests/test-fseeko.c: Likewise.
53322         * tests/test-fseterr.c: Likewise.
53323         * tests/test-fstrcmp.c: Likewise.
53324         * tests/test-ftell.c: Likewise.
53325         * tests/test-ftello.c: Likewise.
53326         * tests/test-fwritable.c: Likewise.
53327         * tests/test-fwriting.c: Likewise.
53328         * tests/test-getaddrinfo.c: Likewise.
53329         * tests/test-getpass.c: Likewise.
53330         * tests/test-gettimeofday.c: Likewise.
53331         * tests/test-hmac-md5.c: Likewise.
53332         * tests/test-hmac-sha1.c: Likewise.
53333         * tests/test-iconv.c: Likewise.
53334         * tests/test-iconvme.c: Likewise.
53335         * tests/test-inttypes.c: Likewise.
53336         * tests/test-isnan.c: Likewise.
53337         * tests/test-isnanf.c: Likewise.
53338         * tests/test-isnanl-nolibm.c: Likewise.
53339         * tests/test-isnanl.c: Likewise.
53340         * tests/test-isnanl.h: Likewise.
53341         * tests/test-ldexpl.c: Likewise.
53342         * tests/test-linked_list.c: Likewise.
53343         * tests/test-linkedhash_list.c: Likewise.
53344         * tests/test-locale.c: Likewise.
53345         * tests/test-localename.c: Likewise.
53346         * tests/test-lock.c: Likewise.
53347         * tests/test-lseek.c: Likewise.
53348         * tests/test-malloca.c: Likewise.
53349         * tests/test-math.c: Likewise.
53350         * tests/test-mbscasecmp.c: Likewise.
53351         * tests/test-mbscasestr1.c: Likewise.
53352         * tests/test-mbscasestr2.c: Likewise.
53353         * tests/test-mbscasestr3.c: Likewise.
53354         * tests/test-mbscasestr4.c: Likewise.
53355         * tests/test-mbschr.c: Likewise.
53356         * tests/test-mbscspn.c: Likewise.
53357         * tests/test-mbsncasecmp.c: Likewise.
53358         * tests/test-mbspbrk.c: Likewise.
53359         * tests/test-mbspcasecmp.c: Likewise.
53360         * tests/test-mbsrchr.c: Likewise.
53361         * tests/test-mbsspn.c: Likewise.
53362         * tests/test-mbsstr1.c: Likewise.
53363         * tests/test-mbsstr2.c: Likewise.
53364         * tests/test-mbsstr3.c: Likewise.
53365         * tests/test-md5.c: Likewise.
53366         * tests/test-memmem.c: Likewise.
53367         * tests/test-netinet_in.c: Likewise.
53368         * tests/test-open.c: Likewise.
53369         * tests/test-printf-frexp.c: Likewise.
53370         * tests/test-printf-frexpl.c: Likewise.
53371         * tests/test-printf-posix.c: Likewise.
53372         * tests/test-printf-posix.h: Likewise.
53373         * tests/test-rbtree_list.c: Likewise.
53374         * tests/test-rbtree_oset.c: Likewise.
53375         * tests/test-rbtreehash_list.c: Likewise.
53376         * tests/test-read-file.c: Likewise.
53377         * tests/test-rijndael.c: Likewise.
53378         * tests/test-search.c: Likewise.
53379         * tests/test-signbit.c: Likewise.
53380         * tests/test-sleep.c: Likewise.
53381         * tests/test-snprintf-posix.c: Likewise.
53382         * tests/test-snprintf-posix.h: Likewise.
53383         * tests/test-snprintf.c: Likewise.
53384         * tests/test-sprintf-posix.c: Likewise.
53385         * tests/test-sprintf-posix.h: Likewise.
53386         * tests/test-stat-time.c: Likewise.
53387         * tests/test-stdbool.c: Likewise.
53388         * tests/test-stdint.c: Likewise.
53389         * tests/test-stdio.c: Likewise.
53390         * tests/test-stdlib.c: Likewise.
53391         * tests/test-stpncpy.c: Likewise.
53392         * tests/test-strcasestr.c: Likewise.
53393         * tests/test-striconv.c: Likewise.
53394         * tests/test-striconveh.c: Likewise.
53395         * tests/test-striconveha.c: Likewise.
53396         * tests/test-string.c: Likewise.
53397         * tests/test-sys_select.c: Likewise.
53398         * tests/test-sys_socket.c: Likewise.
53399         * tests/test-sys_stat.c: Likewise.
53400         * tests/test-sys_time.c: Likewise.
53401         * tests/test-sysexits.c: Likewise.
53402         * tests/test-time.c: Likewise.
53403         * tests/test-tls.c: Likewise.
53404         * tests/test-trunc.c: Likewise.
53405         * tests/test-truncf.c: Likewise.
53406         * tests/test-truncl.c: Likewise.
53407         * tests/test-unistd.c: Likewise.
53408         * tests/test-vasnprintf-posix.c: Likewise.
53409         * tests/test-vasnprintf-posix2.c: Likewise.
53410         * tests/test-vasnprintf.c: Likewise.
53411         * tests/test-vasprintf-posix.c: Likewise.
53412         * tests/test-vasprintf.c: Likewise.
53413         * tests/test-verify.c: Likewise.
53414         * tests/test-vfprintf-posix.c: Likewise.
53415         * tests/test-vprintf-posix.c: Likewise.
53416         * tests/test-vsnprintf-posix.c: Likewise.
53417         * tests/test-vsnprintf.c: Likewise.
53418         * tests/test-vsprintf-posix.c: Likewise.
53419         * tests/test-wchar.c: Likewise.
53420         * tests/test-wctype.c: Likewise.
53421         * tests/test-wcwidth.c: Likewise.
53422         * tests/test-xstrtol.c: Likewise.
53423         * tests/test-xvasprintf.c: Likewise.
53424         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53425         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53426         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53427         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53428         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53429         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53430         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53431         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53432         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53433         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53434         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53435         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53436         * tests/uniname/test-uninames.c: Likewise.
53437         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53438         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
53439         * tests/unistdio/test-u16-printf1.h: Likewise.
53440         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53441         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53442         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53443         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53444         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53445         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53446         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53447         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
53448         * tests/unistdio/test-u32-printf1.h: Likewise.
53449         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53450         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53451         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53452         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53453         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53454         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53455         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53456         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
53457         * tests/unistdio/test-u8-printf1.h: Likewise.
53458         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53459         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53460         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53461         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53462         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53463         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53464         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53465         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
53466         * tests/unistdio/test-ulc-printf1.h: Likewise.
53467         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53468         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53469         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53470         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53471         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53472         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53473         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53474         * tests/uniwidth/test-u16-width.c: Likewise.
53475         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53476         * tests/uniwidth/test-u32-width.c: Likewise.
53477         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53478         * tests/uniwidth/test-u8-width.c: Likewise.
53479         * tests/uniwidth/test-uc_width.c: Likewise.
53480         * config/srclist-update: Likewise.
53481         (fixlicense): Update to GPLv3+.
53482
53483         Change copyright notice from LGPLv2.1+ to LGPLv3+.
53484         * tests/test-tsearch.c: Change copyright notice.
53485
53486         Change copyright notice from LGPLv2.0+ to LGPLv3+.
53487         * lib/c-strcaseeq.h: Change copyright notice.
53488         * lib/streq.h: Likewise.
53489         * lib/uniconv.h: Likewise.
53490         * lib/uniconv/u-conv-from-enc.h: Likewise.
53491         * lib/uniconv/u-conv-to-enc.h: Likewise.
53492         * lib/uniconv/u-strconv-from-enc.h: Likewise.
53493         * lib/uniconv/u-strconv-to-enc.h: Likewise.
53494         * lib/uniconv/u16-conv-from-enc.c: Likewise.
53495         * lib/uniconv/u16-conv-to-enc.c: Likewise.
53496         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
53497         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
53498         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
53499         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
53500         * lib/uniconv/u32-conv-from-enc.c: Likewise.
53501         * lib/uniconv/u32-conv-to-enc.c: Likewise.
53502         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
53503         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
53504         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
53505         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
53506         * lib/uniconv/u8-conv-from-enc.c: Likewise.
53507         * lib/uniconv/u8-conv-to-enc.c: Likewise.
53508         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
53509         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
53510         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
53511         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53512         * lib/uniname.h: Likewise.
53513         * lib/uniname/uniname.c: Likewise.
53514         * lib/unistdio.h: Likewise.
53515         * lib/unistdio/u-asnprintf.h: Likewise.
53516         * lib/unistdio/u-asprintf.h: Likewise.
53517         * lib/unistdio/u-printf-args.c: Likewise.
53518         * lib/unistdio/u-printf-args.h: Likewise.
53519         * lib/unistdio/u-printf-parse.h: Likewise.
53520         * lib/unistdio/u-snprintf.h: Likewise.
53521         * lib/unistdio/u-sprintf.h: Likewise.
53522         * lib/unistdio/u-vasprintf.h: Likewise.
53523         * lib/unistdio/u-vsnprintf.h: Likewise.
53524         * lib/unistdio/u-vsprintf.h: Likewise.
53525         * lib/unistdio/u16-asnprintf.c: Likewise.
53526         * lib/unistdio/u16-asprintf.c: Likewise.
53527         * lib/unistdio/u16-printf-parse.c: Likewise.
53528         * lib/unistdio/u16-snprintf.c: Likewise.
53529         * lib/unistdio/u16-sprintf.c: Likewise.
53530         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53531         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53532         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53533         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53534         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53535         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53536         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53537         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53538         * lib/unistdio/u16-vasnprintf.c: Likewise.
53539         * lib/unistdio/u16-vasprintf.c: Likewise.
53540         * lib/unistdio/u16-vsnprintf.c: Likewise.
53541         * lib/unistdio/u16-vsprintf.c: Likewise.
53542         * lib/unistdio/u32-asnprintf.c: Likewise.
53543         * lib/unistdio/u32-asprintf.c: Likewise.
53544         * lib/unistdio/u32-printf-parse.c: Likewise.
53545         * lib/unistdio/u32-snprintf.c: Likewise.
53546         * lib/unistdio/u32-sprintf.c: Likewise.
53547         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53548         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53549         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53550         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53551         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53552         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53553         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53554         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53555         * lib/unistdio/u32-vasnprintf.c: Likewise.
53556         * lib/unistdio/u32-vasprintf.c: Likewise.
53557         * lib/unistdio/u32-vsnprintf.c: Likewise.
53558         * lib/unistdio/u32-vsprintf.c: Likewise.
53559         * lib/unistdio/u8-asnprintf.c: Likewise.
53560         * lib/unistdio/u8-asprintf.c: Likewise.
53561         * lib/unistdio/u8-printf-parse.c: Likewise.
53562         * lib/unistdio/u8-snprintf.c: Likewise.
53563         * lib/unistdio/u8-sprintf.c: Likewise.
53564         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53565         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53566         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53567         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53568         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53569         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53570         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53571         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53572         * lib/unistdio/u8-vasnprintf.c: Likewise.
53573         * lib/unistdio/u8-vasprintf.c: Likewise.
53574         * lib/unistdio/u8-vsnprintf.c: Likewise.
53575         * lib/unistdio/u8-vsprintf.c: Likewise.
53576         * lib/unistdio/ulc-asnprintf.c: Likewise.
53577         * lib/unistdio/ulc-asprintf.c: Likewise.
53578         * lib/unistdio/ulc-printf-parse.c: Likewise.
53579         * lib/unistdio/ulc-snprintf.c: Likewise.
53580         * lib/unistdio/ulc-sprintf.c: Likewise.
53581         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53582         * lib/unistdio/ulc-vasprintf.c: Likewise.
53583         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53584         * lib/unistdio/ulc-vsprintf.c: Likewise.
53585         * lib/unistr.h: Likewise.
53586         * lib/unistr/u-cpy-alloc.h: Likewise.
53587         * lib/unistr/u-cpy.h: Likewise.
53588         * lib/unistr/u-endswith.h: Likewise.
53589         * lib/unistr/u-move.h: Likewise.
53590         * lib/unistr/u-set.h: Likewise.
53591         * lib/unistr/u-startswith.h: Likewise.
53592         * lib/unistr/u-stpcpy.h: Likewise.
53593         * lib/unistr/u-stpncpy.h: Likewise.
53594         * lib/unistr/u-strcat.h: Likewise.
53595         * lib/unistr/u-strcpy.h: Likewise.
53596         * lib/unistr/u-strcspn.h: Likewise.
53597         * lib/unistr/u-strdup.h: Likewise.
53598         * lib/unistr/u-strlen.h: Likewise.
53599         * lib/unistr/u-strncat.h: Likewise.
53600         * lib/unistr/u-strncpy.h: Likewise.
53601         * lib/unistr/u-strnlen.h: Likewise.
53602         * lib/unistr/u-strpbrk.h: Likewise.
53603         * lib/unistr/u-strspn.h: Likewise.
53604         * lib/unistr/u-strstr.h: Likewise.
53605         * lib/unistr/u-strtok.h: Likewise.
53606         * lib/unistr/u16-check.c: Likewise.
53607         * lib/unistr/u16-chr.c: Likewise.
53608         * lib/unistr/u16-cmp.c: Likewise.
53609         * lib/unistr/u16-cpy-alloc.c: Likewise.
53610         * lib/unistr/u16-cpy.c: Likewise.
53611         * lib/unistr/u16-endswith.c: Likewise.
53612         * lib/unistr/u16-mblen.c: Likewise.
53613         * lib/unistr/u16-mbsnlen.c: Likewise.
53614         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53615         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53616         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53617         * lib/unistr/u16-mbtouc.c: Likewise.
53618         * lib/unistr/u16-mbtoucr.c: Likewise.
53619         * lib/unistr/u16-move.c: Likewise.
53620         * lib/unistr/u16-next.c: Likewise.
53621         * lib/unistr/u16-prev.c: Likewise.
53622         * lib/unistr/u16-set.c: Likewise.
53623         * lib/unistr/u16-startswith.c: Likewise.
53624         * lib/unistr/u16-stpcpy.c: Likewise.
53625         * lib/unistr/u16-stpncpy.c: Likewise.
53626         * lib/unistr/u16-strcat.c: Likewise.
53627         * lib/unistr/u16-strchr.c: Likewise.
53628         * lib/unistr/u16-strcmp.c: Likewise.
53629         * lib/unistr/u16-strcpy.c: Likewise.
53630         * lib/unistr/u16-strcspn.c: Likewise.
53631         * lib/unistr/u16-strdup.c: Likewise.
53632         * lib/unistr/u16-strlen.c: Likewise.
53633         * lib/unistr/u16-strmblen.c: Likewise.
53634         * lib/unistr/u16-strmbtouc.c: Likewise.
53635         * lib/unistr/u16-strncat.c: Likewise.
53636         * lib/unistr/u16-strncmp.c: Likewise.
53637         * lib/unistr/u16-strncpy.c: Likewise.
53638         * lib/unistr/u16-strnlen.c: Likewise.
53639         * lib/unistr/u16-strpbrk.c: Likewise.
53640         * lib/unistr/u16-strrchr.c: Likewise.
53641         * lib/unistr/u16-strspn.c: Likewise.
53642         * lib/unistr/u16-strstr.c: Likewise.
53643         * lib/unistr/u16-strtok.c: Likewise.
53644         * lib/unistr/u16-to-u32.c: Likewise.
53645         * lib/unistr/u16-to-u8.c: Likewise.
53646         * lib/unistr/u16-uctomb-aux.c: Likewise.
53647         * lib/unistr/u16-uctomb.c: Likewise.
53648         * lib/unistr/u32-check.c: Likewise.
53649         * lib/unistr/u32-chr.c: Likewise.
53650         * lib/unistr/u32-cmp.c: Likewise.
53651         * lib/unistr/u32-cpy-alloc.c: Likewise.
53652         * lib/unistr/u32-cpy.c: Likewise.
53653         * lib/unistr/u32-endswith.c: Likewise.
53654         * lib/unistr/u32-mblen.c: Likewise.
53655         * lib/unistr/u32-mbsnlen.c: Likewise.
53656         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53657         * lib/unistr/u32-mbtouc.c: Likewise.
53658         * lib/unistr/u32-mbtoucr.c: Likewise.
53659         * lib/unistr/u32-move.c: Likewise.
53660         * lib/unistr/u32-next.c: Likewise.
53661         * lib/unistr/u32-prev.c: Likewise.
53662         * lib/unistr/u32-set.c: Likewise.
53663         * lib/unistr/u32-startswith.c: Likewise.
53664         * lib/unistr/u32-stpcpy.c: Likewise.
53665         * lib/unistr/u32-stpncpy.c: Likewise.
53666         * lib/unistr/u32-strcat.c: Likewise.
53667         * lib/unistr/u32-strchr.c: Likewise.
53668         * lib/unistr/u32-strcmp.c: Likewise.
53669         * lib/unistr/u32-strcpy.c: Likewise.
53670         * lib/unistr/u32-strcspn.c: Likewise.
53671         * lib/unistr/u32-strdup.c: Likewise.
53672         * lib/unistr/u32-strlen.c: Likewise.
53673         * lib/unistr/u32-strmblen.c: Likewise.
53674         * lib/unistr/u32-strmbtouc.c: Likewise.
53675         * lib/unistr/u32-strncat.c: Likewise.
53676         * lib/unistr/u32-strncmp.c: Likewise.
53677         * lib/unistr/u32-strncpy.c: Likewise.
53678         * lib/unistr/u32-strnlen.c: Likewise.
53679         * lib/unistr/u32-strpbrk.c: Likewise.
53680         * lib/unistr/u32-strrchr.c: Likewise.
53681         * lib/unistr/u32-strspn.c: Likewise.
53682         * lib/unistr/u32-strstr.c: Likewise.
53683         * lib/unistr/u32-strtok.c: Likewise.
53684         * lib/unistr/u32-to-u16.c: Likewise.
53685         * lib/unistr/u32-to-u8.c: Likewise.
53686         * lib/unistr/u32-uctomb.c: Likewise.
53687         * lib/unistr/u8-check.c: Likewise.
53688         * lib/unistr/u8-chr.c: Likewise.
53689         * lib/unistr/u8-cmp.c: Likewise.
53690         * lib/unistr/u8-cpy-alloc.c: Likewise.
53691         * lib/unistr/u8-cpy.c: Likewise.
53692         * lib/unistr/u8-endswith.c: Likewise.
53693         * lib/unistr/u8-mblen.c: Likewise.
53694         * lib/unistr/u8-mbsnlen.c: Likewise.
53695         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53696         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53697         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53698         * lib/unistr/u8-mbtouc.c: Likewise.
53699         * lib/unistr/u8-mbtoucr.c: Likewise.
53700         * lib/unistr/u8-move.c: Likewise.
53701         * lib/unistr/u8-next.c: Likewise.
53702         * lib/unistr/u8-prev.c: Likewise.
53703         * lib/unistr/u8-set.c: Likewise.
53704         * lib/unistr/u8-startswith.c: Likewise.
53705         * lib/unistr/u8-stpcpy.c: Likewise.
53706         * lib/unistr/u8-stpncpy.c: Likewise.
53707         * lib/unistr/u8-strcat.c: Likewise.
53708         * lib/unistr/u8-strchr.c: Likewise.
53709         * lib/unistr/u8-strcmp.c: Likewise.
53710         * lib/unistr/u8-strcpy.c: Likewise.
53711         * lib/unistr/u8-strcspn.c: Likewise.
53712         * lib/unistr/u8-strdup.c: Likewise.
53713         * lib/unistr/u8-strlen.c: Likewise.
53714         * lib/unistr/u8-strmblen.c: Likewise.
53715         * lib/unistr/u8-strmbtouc.c: Likewise.
53716         * lib/unistr/u8-strncat.c: Likewise.
53717         * lib/unistr/u8-strncmp.c: Likewise.
53718         * lib/unistr/u8-strncpy.c: Likewise.
53719         * lib/unistr/u8-strnlen.c: Likewise.
53720         * lib/unistr/u8-strpbrk.c: Likewise.
53721         * lib/unistr/u8-strrchr.c: Likewise.
53722         * lib/unistr/u8-strspn.c: Likewise.
53723         * lib/unistr/u8-strstr.c: Likewise.
53724         * lib/unistr/u8-strtok.c: Likewise.
53725         * lib/unistr/u8-to-u16.c: Likewise.
53726         * lib/unistr/u8-to-u32.c: Likewise.
53727         * lib/unistr/u8-uctomb-aux.c: Likewise.
53728         * lib/unistr/u8-uctomb.c: Likewise.
53729         * lib/unitypes.h: Likewise.
53730         * lib/uniwidth.h: Likewise.
53731         * lib/uniwidth/cjk.h: Likewise.
53732         * lib/uniwidth/u16-strwidth.c: Likewise.
53733         * lib/uniwidth/u16-width.c: Likewise.
53734         * lib/uniwidth/u32-strwidth.c: Likewise.
53735         * lib/uniwidth/u32-width.c: Likewise.
53736         * lib/uniwidth/u8-strwidth.c: Likewise.
53737         * lib/uniwidth/u8-width.c: Likewise.
53738         * lib/uniwidth/width.c: Likewise.
53739
53740 2007-10-07  Bruno Haible  <bruno@clisp.org>
53741
53742         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53743         The file is still under LGPL (see modules/inttypes).
53744
53745 2007-10-06  Bruno Haible  <bruno@clisp.org>
53746
53747         * modules/trunc (Dependencies): Add 'extensions'.
53748         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53749         Reported by Ben Pfaff <blp@gnu.org>.
53750
53751 2007-10-06  Bruno Haible  <bruno@clisp.org>
53752
53753         * modules/freopen-tests: New file.
53754         * tests/test-freopen.c: New file.
53755
53756         * modules/fopen-tests: New file.
53757         * tests/test-fopen.c: New file.
53758
53759         * modules/fopen: New file.
53760         * lib/fopen.c: New file.
53761         * m4/fopen.m4: New file.
53762         * modules/freopen: New file.
53763         * lib/freopen.c: New file.
53764         * m4/freopen.m4: New file.
53765         * lib/stdio.in.h (fopen, freopen): New declarations.
53766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53767         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53768         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53769         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53770         * doc/functions/fopen.texi: Mention the 'fopen' module.
53771         * doc/functions/freopen.texi: Mention the 'freopen' module.
53772
53773 2007-10-06  Bruno Haible  <bruno@clisp.org>
53774
53775         * modules/open-tests: New file.
53776         * tests/test-open.c: New file.
53777
53778         * modules/open: New file.
53779         * lib/open.c: New file.
53780         * m4/open.m4: New file.
53781         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53782         lib/open.c does.
53783         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53784         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53785         macros.
53786         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53787         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53788         REPLACE_OPEN.
53789         * doc/functions/open.texi: Mention the 'open' module.
53790
53791 2007-10-04  Bruno Haible  <bruno@clisp.org>
53792
53793         * modules/ceill-tests: New file.
53794         * tests/test-ceill.c: New file.
53795
53796         * modules/ceill: New file.
53797         * lib/ceill.c: Replace entire file.
53798         * m4/ceill.m4: New file.
53799         * lib/math.in.h (ceill): Replace declaration.
53800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53801         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53802         * doc/functions/ceill.texi: Mention the 'ceill' module.
53803         * modules/mathl (Files): Remove lib/ceill.c.
53804         (Depends-on): Add ceill.
53805
53806 2007-10-04  Bruno Haible  <bruno@clisp.org>
53807
53808         * modules/ceilf-tests: New file.
53809         * tests/test-ceilf.c: New file.
53810
53811         * modules/ceilf: New file.
53812         * lib/ceil.c: New file.
53813         * lib/ceilf.c: New file.
53814         * m4/ceilf.m4: New file.
53815         * lib/math.in.h (ceilf): New declaration.
53816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53817         HAVE_DECL_CEILF.
53818         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53819         HAVE_DECL_CEILF.
53820         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53821
53822 2007-10-04  Bruno Haible  <bruno@clisp.org>
53823
53824         * modules/floorl-tests: New file.
53825         * tests/test-floorl.c: New file.
53826
53827         * modules/floorl: New file.
53828         * lib/floorl.c: Replace entire file.
53829         * m4/floorl.m4: New file.
53830         * lib/math.in.h (floorl): Replace declaration.
53831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53832         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53833         * doc/functions/floorl.texi: Mention the 'floorl' module.
53834         * modules/mathl (Files): Remove lib/floorl.c.
53835         (Depends-on): Add floorl.
53836
53837 2007-10-04  Bruno Haible  <bruno@clisp.org>
53838
53839         * modules/floorf-tests: New file.
53840         * tests/test-floorf.c: New file.
53841
53842         * modules/floorf: New file.
53843         * lib/floor.c: New file.
53844         * lib/floorf.c: New file.
53845         * m4/floorf.m4: New file.
53846         * lib/math.in.h (floorf): New declaration.
53847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53848         HAVE_DECL_FLOORF.
53849         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53850         HAVE_DECL_FLOORF.
53851         * doc/functions/floorf.texi: Mention the 'floorf' module.
53852
53853 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53854             Bruno Haible  <bruno@clisp.org>
53855
53856         Advertise for the Git server instead of the CVS server.
53857         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53858         repository instead of the CVS one.
53859         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53860         about all VCS systems generically.
53861         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53862
53863 2007-10-04  Bruno Haible  <bruno@clisp.org>
53864
53865         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53866         means.
53867         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53868
53869 2007-10-04  Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/truncl-tests: New file.
53872         * tests/test-truncl.c: New file.
53873
53874         * modules/truncl: New file.
53875         * lib/truncl.c: New file.
53876         * m4/truncl.m4: New file.
53877         * lib/math.in.h (truncl): New declaration.
53878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53879         HAVE_DECL_TRUNCL.
53880         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53881         HAVE_DECL_TRUNCL.
53882         * doc/functions/truncl.texi: Mention the 'truncl' module.
53883
53884 2007-10-04  Bruno Haible  <bruno@clisp.org>
53885
53886         * modules/truncf-tests: New file.
53887         * tests/test-truncf.c: New file.
53888
53889         * modules/truncf: New file.
53890         * lib/trunc.c: Make paramerizable through USE_* macros.
53891         * lib/truncf.c: New file.
53892         * m4/truncf.m4: New file.
53893         * lib/math.in.h (truncf): New declaration.
53894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53895         HAVE_DECL_TRUNCF.
53896         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53897         HAVE_DECL_TRUNCF.
53898         * doc/functions/truncf.texi: Mention the 'truncf' module.
53899
53900 2007-10-03  Bruno Haible  <bruno@clisp.org>
53901
53902         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53903         augmentation also for tests modules.
53904         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53905         * modules/atexit-tests (Makefile.am): Likewise.
53906         * modules/binary-io-tests (Makefile.am): Likewise.
53907         * modules/c-strcase-tests (Makefile.am): Likewise.
53908         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53909         * modules/canonicalize-tests (Makefile.am): Likewise.
53910         * modules/closein-tests (Makefile.am): Likewise.
53911         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53912         * modules/freadahead-tests (Makefile.am): Likewise.
53913         * modules/fseek-tests (Makefile.am): Likewise.
53914         * modules/fseeko-tests (Makefile.am): Likewise.
53915         * modules/ftell-tests (Makefile.am): Likewise.
53916         * modules/ftello-tests (Makefile.am): Likewise.
53917         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53918         * modules/isnanl-tests (Makefile.am): Likewise.
53919         * modules/lseek-tests (Makefile.am): Likewise.
53920         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53921         * modules/mbscasestr-tests (Makefile.am): Likewise.
53922         * modules/mbschr-tests (Makefile.am): Likewise.
53923         * modules/mbscspn-tests (Makefile.am): Likewise.
53924         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53925         * modules/mbspbrk-tests (Makefile.am): Likewise.
53926         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53927         * modules/mbsrchr-tests (Makefile.am): Likewise.
53928         * modules/mbsspn-tests (Makefile.am): Likewise.
53929         * modules/mbsstr-tests (Makefile.am): Likewise.
53930         * modules/printf-posix-tests (Makefile.am): Likewise.
53931         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53932         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53933         * modules/tsearch-tests (Makefile.am): Likewise.
53934         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53935         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53936         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53937         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53938         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53939         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53940         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53941         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53942         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53943         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53944         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53945         * modules/xstrtol-tests (Makefile.am): Likewise.
53946         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53947         * modules/yesno-tests (Makefile.am): Likewise.
53948
53949 2007-10-03  Bruno Haible  <bruno@clisp.org>
53950
53951         * modules/trunc-tests: New file.
53952         * tests/test-trunc.c: New file.
53953
53954         * modules/trunc: New file.
53955         * lib/trunc.c: New file.
53956         * m4/trunc.m4: New file.
53957         * lib/math.in.h (trunc): New declaration.
53958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53959         HAVE_DECL_TRUNC.
53960         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53961         HAVE_DECL_TRUNC.
53962         * doc/functions/trunc.texi: Mention the 'trunc' module.
53963
53964 2007-10-03  Bruno Haible  <bruno@clisp.org>
53965
53966         * tests/test-fpending.c: New file, mostly copied
53967         from coreutils/lib/t-fpending.c.
53968         * modules/fpending-tests: New file.
53969
53970 2007-10-03  Bruno Haible  <bruno@clisp.org>
53971
53972         Port the stdio extensions to QNX (untested).
53973         * lib/fseterr.c (fseterr): Add support for QNX.
53974         * lib/fbufmode.c (fbufmode): Likewise.
53975         * lib/freadable.c (freadable): Likewise.
53976         * lib/fwritable.c (fwritable): Likewise.
53977         * lib/freading.c (freading): Likewise.
53978         * lib/fwriting.c (fwriting): Likewise.
53979         * lib/freadahead.c (freadahed): Likewise.
53980         * lib/fpurge.c (fpurge): Likewise.
53981         * lib/fseeko.c (rpl_fseeko): Likewise.
53982
53983 2007-10-03  Bruno Haible  <bruno@clisp.org>
53984             Jim Meyering  <jim@meyering.net>
53985             Eric Blake  <ebb9@byu.net>
53986
53987         * doc/relocatable.texi: Use @command instead of @program.
53988
53989 2007-10-02  Jim Meyering  <jim@meyering.net>
53990
53991         Perform one more "_.h" -> ".in.h" substitution.
53992         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53993         instead of unistd_.h here, too.
53994
53995 2007-10-01  Bruno Haible  <bruno@clisp.org>
53996
53997         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53998         Needed for the alloca-opt module.
53999
54000 2007-09-30  Bruno Haible  <bruno@clisp.org>
54001
54002         * lib/alloca.in.h: Renamed from lib/alloca_.h.
54003         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
54004         alloca_.h.
54005         * lib/argz.in.h: Renamed from lib/argz_.h.
54006         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
54007         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
54008         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
54009         byteswap_.h.
54010         * lib/dirent.in.h: Renamed from lib/dirent_.h.
54011         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
54012         dirent_.h.
54013         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
54014         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
54015         fcntl_.h.
54016         * lib/float.in.h: Renamed from lib/float_.h.
54017         * modules/float (Files, Makefile.am): Use float.in.h instead of
54018         float_.h.
54019         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
54020         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
54021         fnmatch_.h.
54022         * lib/getopt.in.h: Renamed from lib/getopt_.h.
54023         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
54024         getopt_.h.
54025         * lib/glob.in.h: Renamed from lib/glob_.h.
54026         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
54027         * lib/iconv.in.h: Renamed from lib/iconv_.h.
54028         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
54029         iconv_.h.
54030         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
54031         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
54032         inttypes_.h.
54033         * lib/locale.in.h: Renamed from lib/locale_.h.
54034         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
54035         locale_.h.
54036         * lib/math.in.h: Renamed from lib/math_.h.
54037         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
54038         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
54039         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
54040         of netinet_in_.h. Add dependency.
54041         * lib/poll.in.h: Renamed from lib/poll_.h.
54042         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
54043         * lib/search.in.h: Renamed from lib/search_.h.
54044         * modules/search (Files, Makefile.am): Use search.in.h instead of
54045         search_.h.
54046         * lib/signal.in.h: Renamed from lib/signal_.h.
54047         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
54048         _signal.h.
54049         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
54050         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
54051         stdbool_.h.
54052         * lib/stdint.in.h: Renamed from lib/stdint_.h.
54053         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
54054         stdint_.h.
54055         * lib/stdio.in.h: Renamed from lib/stdio_.h.
54056         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
54057         stdio_.h.
54058         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
54059         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
54060         stdlib_.h.
54061         * lib/string.in.h: Renamed from lib/string_.h.
54062         * modules/string (Files, Makefile.am): Use string.in.h instead of
54063         string_.h.
54064         * doc/gnulib-tool.texi (Initial import): Update.
54065         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
54066         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
54067         of sys_select_.h. Add dependency.
54068         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
54069         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
54070         of sys_socket_.h.
54071         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
54072         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
54073         sys_stat_.h.
54074         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
54075         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
54076         sys_time_.h.
54077         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
54078         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
54079         sysexits_.h.
54080         * lib/time.in.h: Renamed from lib/time_.h.
54081         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
54082         * lib/unistd.in.h: Renamed from lib/unistd_.h.
54083         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
54084         unistd_.h.
54085         * lib/wchar.in.h: Renamed from lib/wchar_.h.
54086         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
54087         wchar_.h.
54088         * lib/wctype.in.h: Renamed from lib/wctype_.h.
54089         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
54090         wctype_.h.
54091         * build-aux/bootstrap (slurp): Update.
54092         * lib/.cppi-disable: Update.
54093
54094 2007-09-30  Bruno Haible  <bruno@clisp.org>
54095
54096         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
54097         Needed on BeOS.
54098
54099 2007-09-30  Bruno Haible  <bruno@clisp.org>
54100
54101         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
54102
54103 2007-09-29  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
54106
54107 2007-09-29  Bruno Haible  <bruno@clisp.org>
54108
54109         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
54110         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
54111         * build-aux/install-reloc: Compile also areadlink.c.
54112         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
54113
54114 2007-09-29  Bruno Haible  <bruno@clisp.org>
54115
54116         * gnulib-tool (func_emit_initmacro_done): Indentation.
54117
54118 2007-09-29  Bruno Haible  <bruno@clisp.org>
54119
54120         * README: Add CVS checkout update instructions.
54121         Info from Bob Proulx <bob@proulx.com>.
54122
54123 2007-09-28  Eric Blake  <ebb9@byu.net>
54124
54125         Provide move-if-change.
54126         * build-aux/move-if-change: New file, based on best practice
54127         rather than any canonical upstream location.
54128
54129 2007-09-28  Jim Meyering  <jim@meyering.net>
54130
54131         Fix canonicalize loop-detection corner case.
54132         Do not attempt to stat the symlink values stored via seen_triple.
54133         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
54134         on linux-2.6.18, (but not 2.6.22).
54135         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
54136         triple_compare.  The former compares dev,ino,filename, while the latter
54137         would actually stat dirname(filename) when dev and ino were equal.
54138         * lib/hash-triple.c: Install <string.h>.
54139         (STREQ): Define.
54140         (triple_compare_ino_str): New function.
54141         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
54142
54143 2007-09-28  Eric Blake  <ebb9@byu.net>
54144
54145         Enforce that AC_REPLACE_FUNCS files exist.
54146         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54147         override check for typos.
54148
54149         Fix test-closein on Solaris 10.
54150         * tests/test-closein.c (main): Don't assume stdin can be inherited
54151         closed on all systems.
54152         * tests/test-closein.sh: Likewise.
54153         Reported by Piotr Tarnowski.
54154
54155 2007-09-28  Jim Meyering  <jim@meyering.net>
54156
54157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
54158
54159 2007-09-27  Jim Meyering  <jim@meyering.net>
54160
54161         canonicalize: Avoid a false-positive cycle failure.
54162         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
54163         Sort.  Remove cycle-check.
54164         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
54165         not cycle-check.h.
54166         (seen_triple): New function.
54167         (canonicalize_filename_mode): Use it instead of cycle-check.
54168         * tests/test-canonicalize.c: Add a test for this bug.
54169         * tests/test-canonicalize.sh: Set up and run the test.
54170
54171         New module, file-set, from coreutils.
54172         * modules/file-set: Define it.
54173         * lib/file-set.c, lib/file-set.h: Implement.
54174
54175         New module, hash-triple, from coreutils.
54176         * modules/hash-triple: Define it.
54177         * lib/hash-triple.c, lib/hash-triple.h: Implement.
54178
54179 2007-09-25  Eric Blake  <ebb9@byu.net>
54180
54181         Fix strerror on Interix.
54182         * lib/string_.h (strerror): Declare replacement.
54183         * doc/functions/strerror.texi (strerror): Document the Interix
54184         shortcoming.
54185         * modules/string (Makefile.am): Support new hooks.
54186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
54187         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
54188         gl_FUNC_STRERROR_SEPARATE.
54189         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
54190         * lib/strerror.c (rpl_strerror): Provide replacement.
54191         * modules/strerror (Depends-on): Add string.
54192         (configure.ac): Detect use of module.
54193         * tests/test-strerror.c: New file.
54194         * modules/strerror-tests: New test module.
54195         * modules/argp (Depends-on): Add strerror.
54196         * modules/error (Depends-on): Likewise.
54197         Reported by Martin Koeppe.
54198
54199 2007-09-24  Bruno Haible  <bruno@clisp.org>
54200
54201         * README: Update git instructions.
54202
54203 2007-09-24  Eric Blake  <ebb9@byu.net>
54204
54205         Revert fpending breakage from 2007-09-08.
54206         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
54207         __fpending.c.
54208
54209 2007-09-24  Jim Meyering  <jim@meyering.net>
54210
54211         filenamecat.c: Add a test.
54212         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
54213         showing how the function works when DIR is the empty string.
54214
54215 2007-09-21  Simon Josefsson  <simon@josefsson.org>
54216
54217         * tests/test-canonicalize.sh: Turn on executable bit.
54218
54219 2007-09-19  Eric Blake  <ebb9@byu.net>
54220
54221         * README: Update CVS instructions.
54222
54223 2007-09-18  Bruno Haible  <bruno@clisp.org>
54224
54225         * modules/areadlink: New file.
54226         * lib/areadlink.h (areadlink): New declaration.
54227         * lib/areadlink.c: New file, based on lib/xreadlink.c.
54228
54229 2007-09-17  Jim Meyering  <jim@meyering.net>
54230
54231         * lib/savewd.c (ESTALE) [!defined]: Define.
54232         Reported to be required on Interix by Martin Koeppe.
54233
54234 2007-09-17  Bruno Haible  <bruno@clisp.org>
54235
54236         * gnulib-tool (func_version): Use $version.
54237
54238 2007-09-16  Bruno Haible  <bruno@clisp.org>
54239
54240         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
54241         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
54242         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
54243         Reported by Greg Schafer <gschafer@zip.com.au>.
54244
54245 2007-09-15  Bruno Haible  <bruno@clisp.org>
54246
54247         * gnulib-tool (sed): Try a little harder to make bash understand the
54248         alias.
54249         Reported by Bruce Korb <bruce.korb@gmail.com>.
54250
54251 2007-09-13  Eric Blake  <ebb9@byu.net>
54252
54253         * ChangeLog: Remove conflict markers.
54254
54255 2007-09-13  Simon Josefsson  <simon@josefsson.org>
54256
54257         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54258         Reported by Bruno Haible <bruno@clisp.org>.
54259
54260 2007-09-12  Bruno Haible  <bruno@clisp.org>
54261
54262         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
54263         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
54264         is not defined.
54265
54266 2007-09-12  Eric Blake  <ebb9@byu.net>
54267
54268         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
54269         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
54270         Autoconf definition.
54271         * modules/euidaccess (Depends-on): Add extensions, for
54272         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
54273         * modules/fnmatch (Depends-on): Likewise.
54274         * modules/getaddrinfo (Depends-on): Likewise.
54275         * modules/getdelim (Depends-on): Likewise.
54276         * modules/getline (Depends-on): Likewise.
54277         * modules/getsubopt (Depends-on): Likewise.
54278         * modules/gettext (Depends-on): Likewise.
54279         * modules/group-member (Depends-on): Likewise.
54280         * modules/mbchar (Depends-on): Likewise.
54281         * modules/memmem (Depends-on): Likewise.
54282         * modules/mempcpy (Depends-on): Likewise.
54283         * modules/memrchr (Depends-on): Likewise.
54284         * modules/pagealign_alloc (Depends-on): Likewise.
54285         * modules/readutmp (Depends-on): Likewise.
54286         * modules/stpcpy (Depends-on): Likewise.
54287         * modules/stpncpy (Depends-on): Likewise.
54288         * modules/strchrnul (Depends-on): Likewise.
54289         * modules/strndup (Depends-on): Likewise.
54290         * modules/strsep (Depends-on): Likewise.
54291         * modules/strverscmp (Depends-on): Likewise.
54292         * modules/vasprintf (Depends-on): Likewise.
54293         * modules/wcwidth (Depends-on): Likewise.
54294         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
54295         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
54296         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
54297         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
54298         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54299         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54300         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
54301         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54302         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
54303         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54305         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54306         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54307         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54308         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
54309         * m4/readutmp.m4 (gl_READUTMP): Likewise.
54310         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54311         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54312         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54313         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54314         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54316         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54317         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
54318         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
54319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54320         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
54321         so that lock.m4 can be used in gettext without extensions module.
54322
54323 2007-09-11  Bruno Haible  <bruno@clisp.org>
54324
54325         * m4/isc-posix.m4: Remove file.
54326         Suggested by Eric Blake.
54327
54328 2007-09-11  Eric Blake  <ebb9@byu.net>
54329
54330         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
54331
54332 2007-09-10  Bruno Haible  <bruno@clisp.org>
54333
54334         * posix-modules: Fix typo in error message.
54335         Reported by Matt <mkraai@beckman.com>.
54336
54337 2007-09-09  Bruno Haible  <bruno@clisp.org>
54338
54339         * doc/functions/getdelim.texi: Update list of platforms lacking the
54340         function.
54341         * doc/functions/getline.texi: Likewise.
54342
54343 2007-09-09  Jim Meyering  <jim@meyering.net>
54344
54345         * lib/hash.c (hash_initialize): Detect calloc failure.
54346         Reported by Bruno Haible.
54347
54348 2007-09-09  Bruno Haible  <bruno@clisp.org>
54349
54350         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
54351         malloc or realloc fails.
54352
54353 2007-09-09  Bruno Haible  <bruno@clisp.org>
54354
54355         * modules/getcwd (Depends-on): Add malloc-posix.
54356         * modules/glob (Depends-on): Likewise.
54357         * modules/putenv (Depends-on): Likewise.
54358         * modules/strdup (Depends-on): Likewise.
54359         * modules/getdelim (Depends-on): Add realloc-posix.
54360         * modules/read-file (Depends-on): Likewise.
54361
54362 2007-09-09  Bruno Haible  <bruno@clisp.org>
54363
54364         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
54365         (gl_FUNC_MALLOC_POSIX): Require it.
54366         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
54367         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
54368         * modules/realloc (Files): Add m4/malloc.m4.
54369         * modules/calloc (Files): Likewise.
54370
54371 2007-09-09  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/malloc-posix: New file.
54374         * modules/malloc (Depends-on): Add malloc-posix.
54375         * lib/malloc.c: Include errno.h.
54376         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
54377         and a POSIX-compatible malloc into a single function. Set ENOMEM
54378         when returning NULL.
54379         * m4/malloc.m4: New file.
54380         * doc/functions/malloc.texi: Mention the malloc-posix module.
54381         * lib/stdlib_.h (malloc): New declaration.
54382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54383         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
54384         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
54385         and HAVE_MALLOC_POSIX.
54386
54387 2007-09-09  Bruno Haible  <bruno@clisp.org>
54388
54389         * modules/realloc-posix: New file.
54390         * modules/realloc (Depends-on): Add realloc-posix.
54391         * lib/realloc.c: Include errno.h.
54392         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
54393         and a POSIX-compatible realloc into a single function. Set ENOMEM
54394         when returning NULL.
54395         * m4/realloc.m4: New file.
54396         * doc/functions/realloc.texi: Mention the realloc-posix module.
54397         * lib/stdlib_.h (realloc): New declaration.
54398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54399         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
54400         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
54401         and HAVE_REALLOC_POSIX.
54402
54403 2007-09-09  Bruno Haible  <bruno@clisp.org>
54404
54405         * modules/calloc-posix: New file.
54406         * modules/calloc (Depends-on): Add calloc-posix.
54407         * lib/calloc.c: Include errno.h.
54408         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
54409         and a POSIX-compatible calloc into a single function. Set ENOMEM
54410         when returning NULL.
54411         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
54412         * doc/functions/calloc.texi: Mention the calloc-posix module.
54413         * lib/stdlib_.h (calloc): New declaration.
54414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54415         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
54416         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
54417         and HAVE_CALLOC_POSIX.
54418
54419 2007-09-09  Bruno Haible  <bruno@clisp.org>
54420
54421         Allow for modules to show an arbitrary notice.
54422         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
54423         * gnulib-tool: New option --extract-notice.
54424         (func_usage): Document it.
54425         (sed_extract_prog): Update.
54426         (func_get_notice): New function.
54427         (func_modules_notice): New function.
54428         (func_import, func_create_testdir): Invoke it.
54429         Suggested by Jim Meyering.
54430
54431 2007-09-09  Bruno Haible  <bruno@clisp.org>
54432
54433         * gnulib-tool: New options --verbose, --quiet.
54434         (func_usage): Document them.
54435         (verbose): New variable.
54436         (func_execute_command): New function.
54437         (func_import): Don't show the module list and the file list if
54438         $verbose < 0.
54439         (func_create_testdir): Likewise. Use func_execute_command.
54440         (func_create_megatestdir): Use func_execute_command.
54441
54442 2007-09-08  Bruno Haible  <bruno@clisp.org>
54443
54444         * gnulib-tool (func_import): Prefer rsync over wget when available,
54445         for fetching the PO files.
54446
54447 2007-09-08  Bruno Haible  <bruno@clisp.org>
54448
54449         * posix-modules: New file. Portions copied from gnulib-tool.
54450         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
54451
54452 2007-09-08  Jim Meyering  <jim@meyering.net>
54453
54454         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
54455         * lib/fpending.h: Rename from __fpending.h.
54456         * lib/fpending.c: Rename from __fpending.c.
54457         Include "fpending.h", not "__fpending.h".
54458         * lib/__fpending.h, lib/__fpending.c: Remove files.
54459         * modules/fpending (Files): Reflect new file names.
54460         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
54461
54462 2007-09-08  Bruno Haible  <bruno@clisp.org>
54463
54464         * m4/inttypes-h.m4: Remove stub file.
54465
54466 2007-09-07  Simon Josefsson  <simon@josefsson.org>
54467
54468         * doc/headers/stdint.texi: Discuss #include_next issue.
54469
54470 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54471
54472         * build-aux/bootstrap: Remove obsolete comment about wget --help.
54473
54474 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54475
54476         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
54477         in variable name.
54478
54479 2007-09-03  Jim Meyering  <jim@meyering.net>
54480
54481         New module: git-version-gen.
54482         * modules/git-version-gen: New file.
54483
54484         Import changes from coreutils for bootstrap script.
54485
54486         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
54487
54488         bootstrap: uses rsync to download the .po files
54489         * build-aux/bootstrap (po_download_command_format): New global.
54490         (download_po_files): Use rsync.
54491         (update_po_files): Don't remove .po files after download,
54492         so future rsync runs can take advantage of the copies.
54493
54494         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
54495
54496         Solve the unnecessary-.po-file-regeneration problem once and for all.
54497         * build-aux/bootstrap (download_po_files): New function, renamed from
54498         get_translations.  Now, downloads, but doesn't update LINGUAS.
54499         (update_po_files): New function.
54500
54501         bootstrap: Ignore more.
54502         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
54503         uniwidth to e.g., lib/.gitignore.
54504         (slurp): Handle the sys_stat_.h -> sys mapping, too.
54505
54506         * build-aux/bootstrap: New setting: vc_ignore.
54507         (insert_sorted_if_absent): Create $file if absent.
54508         Adapt to new, possibly empty, list: $vc_ignore.
54509
54510         bootstrap: generate more ignorable names
54511         * build-aux/bootstrap (slurp): When generating ignorable names,
54512         also map .sin to .sed, .gperf to .c, and .y to .c.
54513
54514 2007-09-03  Jim Meyering  <jim@meyering.net>
54515
54516         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54517         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54518
54519 2007-09-02  Bruno Haible  <bruno@clisp.org>
54520
54521         Fix mis-recognition of 'mcs' on QNX 6.
54522         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54523         output contains the string "Mono".
54524         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54525         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54526
54527 2007-09-01  Bruno Haible  <bruno@clisp.org>
54528
54529         Fix collision between uniwidth/* and linebreak modules.
54530         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54531         u32_width): Remove declarations.
54532         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54533         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54534         streq3, streq2, streq1, streq0): Remove functions.
54535         (STREQ): Remove macro.
54536         (is_cjk_encoding): Remove function.
54537         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54538         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54539         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54540         * NEWS: Document the change.
54541
54542 2007-09-01  Bruno Haible  <bruno@clisp.org>
54543
54544         * lib/streq.h: Add double-inclusion guard.
54545
54546 2007-09-01  Karl Berry  <karl@gnu.org>
54547
54548         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54549
54550 2007-08-28  Jim Meyering  <jim@meyering.net>
54551
54552         Rename mreadlink_with_size to areadlink_with_size.
54553         * NEWS: Document the change.
54554         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54555         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54556         * lib/mreadlink.h: Rename this to...
54557         * lib/areadlink.h: ...this.
54558         * modules/mreadlink-with-size: Rename this to...
54559         * modules/areadlink-with-size: ...this.
54560         * lib/canonicalize.c: Reflect the renaming.
54561         * modules/canonicalize: Likewise.
54562
54563 2007-08-26  Bruno Haible  <bruno@clisp.org>
54564
54565         * gnulib-tool (func_import): When deciding which files to remove,
54566         consider also dangling symbolic links.
54567         Reported by Eric Blake.
54568
54569 2007-08-26  Bruno Haible  <bruno@clisp.org>
54570
54571         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54572
54573 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54574
54575         * lib/readline.c: Don't include getline.h, the prototype is now
54576         found in stdio.h.
54577
54578 2007-08-23  Jim Meyering  <jim@meyering.net>
54579
54580         Getdelim touchup.
54581         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54582         around the funlockfile call, since funlockfile never sets errno.
54583         Don't set errno upon failed realloc.
54584
54585 2007-08-22  Eric Blake  <ebb9@byu.net>
54586
54587         Getline touchups.
54588         * lib/getdelim.c (getdelim): Revert regression that required *n to
54589         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54590         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54591         getdelim, rather than whether implementation is missing.
54592         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54593         * lib/stdio_.h (getline): Also declare if replacement is
54594         required.
54595         * doc/functions/getdelim.texi: New file.
54596         * doc/functions/getline.texi: Likewise.
54597         * doc/gnulib.texi (Function Substitutes): Add new files.
54598         Reported by Bruno Haible.
54599
54600 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54601
54602         * users.txt: Add Guile.
54603
54604 2007-08-22  Eric Blake  <ebb9@byu.net>
54605
54606         * tests/test-getdelim.c (main): Use remove, not unlink.
54607         * tests/test-getline.c (main): Likewise.
54608
54609         Move getline and getdelim into stdio.h, per POSIX 200x.
54610         * modules/getline (Files): Remove getline.h.
54611         (Depends-on): Add stdio.
54612         (configure.ac): Add module indicator.
54613         * modules/getdelim (Files): Remove getdelim.h.
54614         (Depends-on): Add stdio.
54615         (configure.ac): Add module indicator.
54616         * modules/stdio (Makefile.am): Work with new indicators.
54617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54618         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54619         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54620         * lib/getdelim.h: Delete.
54621         * lib/getline.h: Delete.
54622         * lib/stdio_.h (getdelim, getline): Declare.
54623         * modules/getdelim-tests: New module.
54624         * modules/getline-tests: Likewise.
54625         * tests/test-getdelim.c: New file.
54626         * tests/test-getline.c: Likewise.
54627         * NEWS: Document the change.
54628         * lib/getline.c: Update choice of header.
54629         * lib/csharpcomp.c: Likewise.
54630         * lib/getpass.c: Likewise.
54631         * lib/javacomp.c: Likewise.
54632         * lib/javaversion.c: Likewise.
54633         * lib/yesno.c: Likewise.
54634         * lib/getdelim.c: Likewise.
54635         (getdelim): Set errno on failure, and avoid memory leak.
54636
54637 2007-08-19  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/closein (Depends-on): Add freadahead.
54640         * lib/closein.c: Include freadahead.h.
54641         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54642         is zero.
54643
54644 2007-08-19  Bruno Haible  <bruno@clisp.org>
54645
54646         * modules/freadahead-tests: New file.
54647         * tests/test-freadahead.sh: New file.
54648         * tests/test-freadahead.c: New file.
54649
54650         * modules/freadahead: New file.
54651         * lib/freadahead.h: New file.
54652         * lib/freadahead.c: New file.
54653         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54654         fbufmode, fpurge, freadable, fwritable.
54655
54656 2007-08-19  Eric Blake  <ebb9@byu.net>
54657
54658         Test yesno in combination with closein.
54659         * lib/yesno.c (yesno): Document use of stdin.
54660         * modules/yesno-tests (Files): New module.
54661         * tests/test-yesno.c (main): New file.
54662         * tests/test-yesno.sh: Likewise.
54663
54664 2007-08-19  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54667         * lib/fseeko.c (rpl_fseeko): Likewise.
54668         * lib/fseterr.c (fseterr): Likewise.
54669
54670 2007-08-19  Bruno Haible  <bruno@clisp.org>
54671
54672         * tests/test-lseek.c (main): Disable a test for BeOS.
54673         * doc/functions/lseek.texi: Document the BeOS bug.
54674
54675 2007-08-19  Bruno Haible  <bruno@clisp.org>
54676             Eric Blake  <ebb9@byu.net>
54677
54678         * lib/lseek.c: Include <sys/stat.h>.
54679         (rpl_lseek): Add workaround code also for Unix platforms.
54680         Needed for BeOS.
54681         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54682         * doc/functions/lseek.texi: Document BeOS definiency.
54683
54684 2007-08-18  Bruno Haible  <bruno@clisp.org>
54685
54686         * modules/fstrcmp-tests: New file.
54687         * tests/test-fstrcmp.c: New file.
54688
54689 2007-08-18  Bruno Haible  <bruno@clisp.org>
54690
54691         * modules/fstrcmp: New file, from GNU gettext with modifications.
54692         * lib/fstrcmp.h: New file, from GNU gettext.
54693         * lib/fstrcmp.c: New file, from GNU gettext.
54694         * MODULES.html.sh (String handling): Add fstrcmp.
54695
54696 2007-08-18  Bruno Haible  <bruno@clisp.org>
54697
54698         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54699         'bool'.
54700         (diag, compareseq): Remove const from the ctxt argument.
54701         (USE_HEURISTIC): Undefine at the end.
54702
54703 2007-08-18  Jim Meyering  <jim@meyering.net>
54704
54705         New file: lib/idcache.h
54706         * NEWS: Mention the addition.
54707         * modules/idcache (Files): Add lib/idcache.h
54708         * lib/idcache.c: Include "idcache.h".
54709         Don't include <sys/types.h>.
54710         Add a FIXME comment.
54711         Move file-scoped "static" declarations to the top.
54712         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54713
54714 2007-08-17  Bruno Haible  <bruno@clisp.org>
54715         and Paul Eggert  <eggert@cs.ucla.edu>
54716
54717         * MODULES.html.sh: Add diffseq.
54718         * modules/diffseq: New file.
54719         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54720         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54721
54722 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54723
54724         Import changes from coreutils for bootstrap script.
54725
54726         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54727
54728         * build-aux/bootstrap (slurp): Work even in environments where
54729         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54730         current code does not slurp files whose names start with ".", and
54731         this looks like it might be a troublesome area.
54732
54733         2007-07-11  Jim Meyering  <jim@meyering.net>
54734
54735         If there's a GPL vN copyright comment, require that N == 3.
54736
54737         2007-07-08  Jim Meyering  <jim@meyering.net>
54738
54739         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54740         * build-aux/bootstrap (mam_template): Move definition out of loop.
54741
54742         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54743
54744         * build-aux/bootstrap (symlink_to_dir): Rename function from
54745         symlink_to_gnulib.  Add a directory parameter.  Update all
54746         callers.
54747         (cp_mark_as_generated): Also check for -- and link to -- files in
54748         gl/.
54749
54750         2007-07-08  Jim Meyering  <jim@meyering.net>
54751
54752         Adapt to deeper hierarchy in gnulib.
54753         * build-aux/bootstrap (symlink_to_dir): If the destination
54754         directory doesn't exist, create it. This is required at least for
54755         "lib/uniwidth/cjk.h".
54756
54757         2007-05-15  Jim Meyering  <jim@meyering.net>
54758
54759         * build-aux/bootstrap: Now that generated Makefile.am files
54760         are no longer under version control, they must be created at
54761         bootstrap time.
54762
54763 2007-08-14  Ben Pfaff  <blp@gnu.org>
54764
54765         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54766
54767 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54768
54769         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54770         given the changes below.
54771         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54772         even on hosts that have padding bits beyond the supported 64.
54773
54774 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54775
54776         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54777         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54778         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54779         depends on it.
54780         (xstrtol_error): Remove.
54781         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54782         but with a different signature.
54783         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54784         * lib/xstrtol-error.c: Include exitfail.h.
54785         (xstrtol_fatal): New function, with a different signature from the
54786         old xstrtol_error, so that the caller need not worry about passing
54787         in an exit status, or about storage management of the option argument.
54788         (xstrtol_error): Now a static function.  Redo signature to
54789         implement xstrtol_fatal.  Output the correct number of hyphens in
54790         front of the option so that the caller need not worry about
54791         storage management.
54792         (N_): New macro.
54793         (_): Remove; not used now.
54794         * modules/xstrtol: Depend on getopt.
54795         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54796         of old STRTOL_FATAL_ERROR macro.
54797         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54798         of test program.
54799         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54800         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54801
54802 2007-08-08  Eric Blake  <ebb9@byu.net>
54803
54804         * lib/xstrtol-error.c: Add missing include.
54805
54806         Move xstrtol messages into gnulib domain, when --pobase is used.
54807         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54808         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54809         * modules/xstrtol (Files): Distribute new file.
54810         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54811         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54812         * tests/test-xstrtol.c: ...into new file.
54813         * tests/test-xstrtoul.c: Also test xstrtoul.
54814         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54815         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54816         * tests/test-xstrtol.sh: Drive the tests.
54817         * tests/test-xstrtoimax.sh: Likewise.
54818         * tests/test-xstrtoumax.sh: Likewise.
54819         * modules/xstrtol-tests: New module.
54820         * modules/xstrtoimax-tests: Likewise.
54821         * modules/xstrtoumax-tests: Likewise.
54822
54823 2007-08-08  Jim Meyering  <jim@meyering.net>
54824
54825         New function: mfile_name_concat.
54826         * lib/filenamecat.c (mfile_name_concat): New function, just like
54827         file_name_concat, but return NULL upon failure rather than exiting
54828         with a diagnostic.
54829         * lib/filenamecat.h: Declare it.
54830
54831 2007-08-07  Bruno Haible  <bruno@clisp.org>
54832
54833         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54834         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54835         warning from gcc.
54836         Reported by Eric Blake.
54837
54838 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54839
54840         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54841         * modules/crypto/arcfour (License): Likewise.
54842         * modules/crypto/des-tests (License): Likewise.
54843         * modules/crypto/gc-arctwo-tests (License): Likewise.
54844         * modules/crypto/gc-des-tests (License): Likewise.
54845         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54846         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54847         * modules/crypto/gc-md2-tests (License): Likewise.
54848         * modules/crypto/gc-md4-tests (License): Likewise.
54849         * modules/crypto/gc-md5-tests (License): Likewise.
54850         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54851         * modules/crypto/gc-rijndael-tests (License): Likewise.
54852         * modules/crypto/gc-sha1-tests (License): Likewise.
54853         * modules/crypto/gc-tests (License): Likewise.
54854         * modules/crypto/hmac-md5 (License): Likewise.
54855         * modules/crypto/hmac-sha1 (License): Likewise.
54856         * modules/crypto/md2-tests (License): Likewise.
54857         * modules/crypto/md4-tests (License): Likewise.
54858         * modules/crypto/md5 (License): Likewise.
54859         * modules/crypto/rijndael (License): Likewise.
54860         * modules/crypto/sha1 (License): Likewise.
54861         * modules/memxor (License): Likewise.
54862
54863 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54864         and Bruno Haible  <bruno@clisp.org>
54865
54866         * NEWS: Describe interface changes to human, xstrtol.
54867         * lib/human.h: Include <xstrtol.h>.
54868         (human_options): Return enum strtol_error, not int.  Remove
54869         bool arg; take int * instead.
54870         * lib/human.c: Don't include "gettext.h".
54871         (_): Remove; no longer used.
54872         Don't include <xstrtol.h>, since human.h does it.
54873         (human_options): Adjust to abovementioned interface changes.
54874         Do not report error to stderr; that's now the caller's
54875         responsibility.
54876         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54877         interface change.
54878         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54879         Str, Argument_type_string.  All uses changed.  Put " argument"
54880         in diagnostics to make them clearer.  Change wording of suffix
54881         message for clarity.
54882         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54883         Argument_type_string.
54884         (STRTOL_FATAL_WARN): Remove; no longer used.
54885         * modules/human (Depends-on): Remove gettext-h.
54886
54887 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54888
54889         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54890
54891 2007-07-31  Bruno Haible  <bruno@clisp.org>
54892
54893         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54894         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54895         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54896
54897 2007-07-31  Bruno Haible  <bruno@clisp.org>
54898
54899         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54900         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54901
54902 2007-07-30  Bruno Haible  <bruno@clisp.org>
54903
54904         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54905         * modules/c-ctype (License): Likewise.
54906         * modules/c-strcase (License): Likewise.
54907         * modules/check-version (License): Likewise.
54908         * modules/iconv (License): Likewise.
54909         * modules/iconv_open (License): Likewise.
54910         * modules/read-file (License): Likewise.
54911         * modules/striconv (License): Likewise.
54912         * modules/strverscmp (License): Likewise.
54913         * modules/vasprintf (License): Likewise.
54914         * modules/crypto/des (License): Likewise.
54915         * modules/crypto/gc (License): Likewise.
54916         * modules/crypto/gc-arcfour (License): Likewise.
54917         * modules/crypto/gc-arctwo (License): Likewise.
54918         * modules/crypto/gc-des (License): Likewise.
54919         * modules/crypto/gc-hmac-md5 (License): Likewise.
54920         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54921         * modules/crypto/gc-md2 (License): Likewise.
54922         * modules/crypto/gc-md4 (License): Likewise.
54923         * modules/crypto/gc-md5 (License): Likewise.
54924         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54925         * modules/crypto/gc-random (License): Likewise.
54926         * modules/crypto/gc-rijndael (License): Likewise.
54927         * modules/crypto/gc-sha1 (License): Likewise.
54928         * modules/crypto/md2 (License): Likewise.
54929         * modules/crypto/md4 (License): Likewise.
54930
54931 2007-07-30  Jim Meyering  <jim@meyering.net>
54932
54933         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54934         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54935         it has valid stat data.  This bug would cause du not to count the
54936         sizes of inaccessible directories.
54937         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54938         in <http://bugzilla.redhat.com/250077>.
54939
54940 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54941             Bruno Haible  <bruno@clisp.org>
54942
54943         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54944         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54945         #include_next, gives a diagnostic about it, but reports no error in
54946         the exit code.
54947         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54948
54949 2007-07-24  Ben Pfaff  <blp@gnu.org>
54950
54951         Improve name: "count-one-bits" is better than "popcount".
54952         * MODULES.html.sh: Update name.
54953         * lib/popcount.h: Renamed lib/count-one-bits.h.
54954         (popcount): Renamed count_one_bits.
54955         (popcountl): Renamed count_one_bits_l.
54956         (popcountll): Renamed count_one_bits_ll.
54957         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54958         * modules/popcount: Renamed module/count-one-bits.
54959         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54960         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54961
54962 2007-07-23  Ben Pfaff  <blp@gnu.org>
54963
54964         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54965         better code generation, and add U to large constants to avoid
54966         warnings, in non-GCC case.
54967         Suggested by Bruno Haible.
54968
54969 2007-07-23  Ben Pfaff  <blp@gnu.org>
54970
54971         * lib/popcount.h: Use verify_true instead of if...abort.
54972         * modules/popcount: Depend on verify module.
54973         Suggested by Jim Meyering.
54974
54975 2007-07-23  Bruno Haible  <bruno@clisp.org>
54976
54977         * gnulib-tool (func_import): Create a .cvsignore file also when the
54978         directory is not yet in CVS but the toplevel directory is. When
54979         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54980         Reported by Karl Berry.
54981
54982 2007-07-22  Ben Pfaff  <blp@gnu.org>
54983
54984         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54985         case.
54986         Suggested by Eric Blake.
54987
54988 2007-07-22  Ben Pfaff  <blp@gnu.org>
54989
54990         New module: popcount.
54991         * MODULES.html.sh: Add popcount.
54992         * modules/popcount: New file.
54993         * modules/popcount-tests: New file.
54994         * tests/test-popcount.c: New file.
54995         * lib/popcount.h: New file.
54996         * m4/popcount.m4: New file.
54997
54998 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54999
55000         * build-aux/announce-gen: Update to GPLv3.
55001
55002         * build-aux/config.guess: Update from config.
55003
55004 2007-07-21  Bruno Haible  <bruno@clisp.org>
55005
55006         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
55007         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
55008
55009 2007-07-20  Jim Meyering  <jim@meyering.net>
55010
55011         * check-module: Diagnose a self-dependency.
55012
55013 2007-07-19  Bruno Haible  <bruno@clisp.org>
55014
55015         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
55016         empty.
55017         Reported by Eric Blake.
55018
55019 2007-07-18  Bruno Haible  <bruno@clisp.org>
55020
55021         * gnulib-tool: New options --po-base, --po-domain.
55022         (func_usage): Document them.
55023         (pobase, po_domain): New variables.
55024         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
55025         DEFAULT_TEXT_DOMAIN.
55026         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
55027         (func_import): Consider pobase and po_domain. Create a po/ directory.
55028         (func_create_testdir): Set pobase and po_domain to empty.
55029         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
55030         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
55031
55032 2007-07-18  Bruno Haible  <bruno@clisp.org>
55033
55034         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55035         EXTRA_DIST augmentation for files in build-aux/.
55036
55037 2007-07-16  Bruno Haible  <bruno@clisp.org>
55038
55039         * modules/lseek (License): Use the synonymous term "LGPLv2+".
55040         * modules/getdelim (License): Likewise.
55041
55042 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55043
55044         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
55045         * modules/d-type (License): Likewise.
55046         * modules/extensions (License): Likewise.
55047         * modules/fnmatch (License): Likewise.
55048         * modules/fseeko (License): Likewise.
55049         * modules/getaddrinfo (License): Likewise.
55050         * modules/getline (License): Likewise.
55051         * modules/getlogin_r (License): Likewise.
55052         * modules/getpass (License): Likewise.
55053         * modules/gettimeofday (License): Likewise.
55054         * modules/glob (License): Likewise.
55055         * modules/inet_ntop (License): Likewise.
55056         * modules/malloc (License): Likewise.
55057         * modules/malloca (License): Likewise.
55058         * modules/memmem (License): Likewise.
55059         * modules/mempcpy (License): Likewise.
55060         * modules/memset (License): Likewise.
55061         * modules/minmax (License): Likewise.
55062         * modules/mktime (License): Likewise.
55063         * modules/netinet_in (License): Likewise.
55064         * modules/pathmax (License): Likewise.
55065         * modules/poll (License): Likewise.
55066         * modules/regex (License): Likewise.
55067         * modules/snprintf (License): Likewise.
55068         * modules/stdbool (License): Likewise.
55069         * modules/stdint (License): Likewise.
55070         * modules/stdio (License): Likewise.
55071         * modules/strcase (License): Likewise.
55072         * modules/strcasestr (License): Likewise.
55073         * modules/strdup (License): Likewise.
55074         * modules/string (License): Likewise.
55075         * modules/strndup (License): Likewise.
55076         * modules/strnlen (License): Likewise.
55077         * modules/strpbrk (License): Likewise.
55078         * modules/strptime (License): Likewise.
55079         * modules/strsep (License): Likewise.
55080         * modules/sys_select (License): Likewise.
55081         * modules/sys_socket (License): Likewise.
55082         * modules/sys_stat (License): Likewise.
55083         * modules/sys_time (License): Likewise.
55084         * modules/time (License): Likewise.
55085         * modules/time_r (License): Likewise.
55086         * modules/timegm (License): Likewise.
55087         * modules/unistd (License): Likewise.
55088         * modules/vsnprintf (License): Likewise.
55089         * modules/wctype (License): Likewise.
55090
55091 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55092
55093         * modules/argz (License): LGPLv2+.
55094
55095 2007-07-15  Karl Berry  <karl@gnu.org>
55096
55097         * doc/gnulib.texi: revise node structure per new fdl.texi.
55098
55099 2007-07-14  Bruno Haible  <bruno@clisp.org>
55100
55101         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
55102         the output file.
55103         * lib/uniname/uninames.h: Regenerated.
55104
55105 2007-07-14  Karl Berry  <karl@gnu.org>
55106
55107         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
55108         omitting sectioning and index commands.
55109
55110 2007-07-13  Bruno Haible  <bruno@clisp.org>
55111
55112         New gnulib-tool option --more-symlinks.
55113         * gnulib-tool (func_usage): Document --more-symlinks.
55114         (do_copyrights): New variable.
55115         Recognize option --more-symlinks.
55116         (func_import): Don't add a copyright notice transform to
55117         sed_transform_lib_file if do_copyrights is empty.
55118
55119 2007-07-13  Bruno Haible  <bruno@clisp.org>
55120
55121         * lib/vasnprintf.c (decimal_point_char): Define also if
55122         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
55123         && !NEED_PRINTF_DIRECTIVE_A.
55124         Reported by Clemens Koller <clemens.koller@anagramm.de> via
55125         Gary V. Vaughan <gary@gnu.org>.
55126
55127 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
55128
55129         * lib/inttypes_.h: Undo previous change, since it was fixed
55130         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
55131
55132 2007-07-13  Bruno Haible  <bruno@clisp.org>
55133
55134         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
55135         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
55136
55137 2007-07-13  Jim Meyering  <jim@meyering.net>
55138
55139         df: Don't fail for Tru64's "file-on-file mount".
55140         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
55141         so we fall through and use statfs instead.  Details here:
55142         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
55143         Reported by Albert Chin.
55144
55145 2007-07-13  Bruno Haible  <bruno@clisp.org>
55146
55147         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
55148         * modules/configmake (License): Likewise.
55149         * modules/gettext (License): Likewise.
55150         * modules/gettext-h (License): Likewise.
55151         * modules/include_next (License): Likewise.
55152         * modules/link-warning (License): Likewise.
55153         * modules/localcharset (License): Likewise.
55154         * modules/localename (License): Likewise.
55155         * modules/lock (License): Likewise.
55156         * modules/relocatable-lib-lgpl (License): Likewise.
55157         * modules/size_max (License): Likewise.
55158         * modules/vasnprintf (License): Likewise.
55159         * modules/wchar (License): Likewise.
55160         * modules/xsize (License): Likewise.
55161
55162 2007-07-13  Bruno Haible  <bruno@clisp.org>
55163
55164         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
55165         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
55166
55167 2007-07-12  Bruno Haible  <bruno@clisp.org>
55168
55169         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
55170         in the modules files.
55171
55172 2007-07-11  Karl Berry  <karl@gnu.org>
55173
55174         * MODULES.html.sh (func_module): use
55175          sed -e '\|^'"${includefile}"'$|d'
55176          instead of /.../d, to avoid errors on $includefile's containing /.
55177
55178 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55179
55180         * gnulib-tool (func_import): Avoid duplication of --avoid
55181         statements
55182         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
55183         names to `_' in variable names.
55184
55185 2007-07-10  Eric Blake  <ebb9@byu.net>
55186
55187         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
55188         * NEWS: Document this change.
55189
55190 2007-07-08  Bruno Haible  <bruno@clisp.org>
55191
55192         Update to Unicode 5.0.
55193         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
55194         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
55195         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
55196         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
55197         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
55198         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
55199         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
55200         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
55201         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
55202         U+10A3F, U+1D242..U+1D244.
55203         (nonspacing_table_ind): Update.
55204         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
55205         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
55206
55207 2007-07-08  Bruno Haible  <bruno@clisp.org>
55208
55209         Update to Unicode 5.0.
55210         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
55211         code transform. Extend the name index field of unicode_name_to_code and
55212         unicode_code_to_name from 16 to 24 bits.
55213         * lib/uniname/uniname.c (unicode_character_name,
55214         unicode_name_character): Add the range 0x12xxx to the code transform.
55215         * lib/uniname/uninames.h: Regenerated.
55216         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
55217
55218 2007-07-07  Bruno Haible  <bruno@clisp.org>
55219
55220         * modules/wcwidth-tests: New file.
55221         * tests/test-wcwidth.c: New file.
55222
55223         Work around MacOS X wcwidth() bug.
55224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
55225         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
55226         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
55227         original wcwidth in non-UTF-8 locales.
55228         * modules/wcwidth (Depends-on): Add localcharset, streq,
55229         uniwidth/width.
55230         * doc/functions/wcwidth.texi: Update.
55231
55232 2007-07-07  Bruno Haible  <bruno@clisp.org>
55233
55234         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
55235         (wcwidth): New declaration.
55236         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
55237         macros.
55238         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
55239         here. Prepare for creating <wchar.h> unconditionally.
55240         * modules/wchar (Depends-on): Add link-warning.
55241         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
55242         REPLACE_WCWIDTH, and GL_LINK_WARNING.
55243         * lib/wcwidth.h: Remove file.
55244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
55245         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
55246         * modules/wcwidth (Files): Remove lib/wcwidth.h.
55247         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
55248         (Include): Replace wcwidth.h with <wchar.h>.
55249         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
55250         * lib/mbchar.h: Don't include wcwidth.h.
55251         * lib/mbswidth.c: Likewise.
55252         * NEWS: Mention the change.
55253
55254 2007-07-07  Bruno Haible  <bruno@clisp.org>
55255
55256         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55257         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55258         definition with an external declaration.
55259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
55260         defined as a function. Remove AC_C_INLINE requirement.
55261         * modules/wcwidth (Files): Add lib/wcwidth.c.
55262         (Makefile.am): Remove redundant statement.
55263
55264 2007-07-07  Bruno Haible  <bruno@clisp.org>
55265
55266         * MODULES.html.sh (Unicode string functions): Add the new modules.
55267
55268         * tests/uniwidth/test-u32-strwidth.c: New file.
55269         * modules/uniwidth/u32-strwidth-tests: New file.
55270
55271         * lib/uniwidth/u32-strwidth.c: New file.
55272         * modules/uniwidth/u32-strwidth: New file.
55273
55274         * tests/uniwidth/test-u16-strwidth.c: New file.
55275         * modules/uniwidth/u16-strwidth-tests: New file.
55276
55277         * lib/uniwidth/u16-strwidth.c: New file.
55278         * modules/uniwidth/u16-strwidth: New file.
55279
55280         * tests/uniwidth/test-u8-strwidth.c: New file.
55281         * modules/uniwidth/u8-strwidth-tests: New file.
55282
55283         * lib/uniwidth/u8-strwidth.c: New file.
55284         * modules/uniwidth/u8-strwidth: New file.
55285
55286         * tests/uniwidth/test-u32-width.c: New file.
55287         * modules/uniwidth/u32-width-tests: New file.
55288
55289         * lib/uniwidth/u32-width.c: New file.
55290         * modules/uniwidth/u32-width: New file.
55291
55292         * tests/uniwidth/test-u16-width.c: New file.
55293         * modules/uniwidth/u16-width-tests: New file.
55294
55295         * lib/uniwidth/u16-width.c: New file.
55296         * modules/uniwidth/u16-width: New file.
55297
55298         * tests/uniwidth/test-u8-width.c: New file.
55299         * modules/uniwidth/u8-width-tests: New file.
55300
55301         * lib/uniwidth/u8-width.c: New file.
55302         * modules/uniwidth/u8-width: New file.
55303
55304         * tests/uniwidth/test-uc_width.c: New file.
55305         * modules/uniwidth/width-tests: New file.
55306
55307         * lib/uniwidth/width.c: New file, from GNU libiconv.
55308         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
55309         * modules/uniwidth/width: New file.
55310
55311         * lib/uniwidth.h: New file, from GNU libiconv.
55312         * modules/uniwidth/base: New file.
55313
55314 2007-07-07  Bruno Haible  <bruno@clisp.org>
55315
55316         * lib/uniname.h: New file, from GNU gettext.
55317         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
55318         * lib/uniname/uninames.h: New file, from GNU gettext.
55319         * lib/uniname/uniname.c: New file, from GNU gettext.
55320         * tests/uniname/test-uninames.sh: New file.
55321         * tests/uniname/test-uninames.c: New file, from GNU gettext.
55322         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
55323         * modules/uniname/base: New file.
55324         * modules/uniname/uniname: New file.
55325         * modules/uniname/uniname-tests: New file.
55326         * MODULES.html.sh (Unicode string functions): Add the new modules.
55327
55328 2007-07-06  Bruno Haible  <bruno@clisp.org>
55329
55330         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
55331
55332 2007-07-06  Bruno Haible  <bruno@clisp.org>
55333
55334         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
55335         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
55336         includes <cygwin/sys_time.h> which includes <sys/select.h> which
55337         include <sys/time.h>.
55338         Reported by Eric Blake.
55339
55340 2007-07-06  Eric Blake  <ebb9@byu.net>
55341
55342         Fix testing canonicalize on cygwin.
55343         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55344         Revert patch from 2007-06-19.
55345         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
55346         canonicalize module is also in use.
55347         * tests/test-canonicalize.c: New file.
55348         * tests/test-canonicalize.sh: Likewise.
55349         * modules/canonicalize-tests: Likewise.
55350
55351 2007-07-06  Jim Meyering  <jim@meyering.net>
55352
55353         * lib/getugroups.c (getugroups): Detect getgrent failure.
55354         Adjust comment to reflect reality: this function may return -1.
55355
55356 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55357
55358         * build-aux/bootstrap (TP_URL,get_translations): Update to use
55359         the new TP address.
55360         (usage): Fix typo
55361         (gnulib_mk): New variable.
55362
55363 2007-07-05  Jim Meyering  <jim@meyering.net>
55364
55365         Don't let endgrent clobber errno, no matter how improbable.
55366         * lib/getugroups.c (getugroups): Save and restore errno around
55367         endgrent call.
55368
55369         Close the group DB even when failing with 2^31 or more members.
55370         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
55371
55372 2007-07-04  Jim Meyering  <jim@meyering.net>
55373
55374         * lib/getugroups.h: New file.
55375         * lib/getugroups.c: Include "getugroups.h".
55376         Remove uses of "register" keyword.
55377         Move local variable, "cp", down into scope where used.
55378         Give "username" parameter the "const" attribute.
55379         * modules/getugroups (Files): Add lib/getugroups.h
55380
55381 2007-07-04  Karl Berry  <karl@gnu.org>
55382
55383         * MODULES.html.sh (func_all_modules): Complete rename of
55384         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
55385
55386 2007-07-02  Bruno Haible  <bruno@clisp.org>
55387
55388         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
55389         mode, when inttypes.h comes from gnulib.
55390         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55391
55392 2007-07-02  Simon Josefsson  <simon@josefsson.org>
55393
55394         * NEWS: Mention lgpl module name change.
55395
55396         * modules/lgpl-2.1: Renamed from lgpl.
55397
55398         * NEWS: Mention gpl module name change.
55399
55400         * modules/gpl-3.0: New file, based on gpl-2.0.
55401
55402         * modules/gpl-2.0: Renamed from gpl.
55403
55404         * modules/gpl: Fix filename, doc/gpl.texi is now found at
55405         doc/gpl-2.0.texi.
55406
55407 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
55410         #define __STDC_LIMIT_MACROS temporarily while including
55411         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
55412         Problem reported by Joel E. Denny in
55413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
55414
55415 2007-07-01  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/unistdio.h: New file.
55418         * lib/unistdio/u-asnprintf.h: New file.
55419         * lib/unistdio/u-asprintf.h: New file.
55420         * lib/unistdio/u-printf-args.c: New file.
55421         * lib/unistdio/u-printf-args.h: New file.
55422         * lib/unistdio/u-printf-parse.h: New file.
55423         * lib/unistdio/u-snprintf.h: New file.
55424         * lib/unistdio/u-sprintf.h: New file.
55425         * lib/unistdio/u-vasprintf.h: New file.
55426         * lib/unistdio/u-vsnprintf.h: New file.
55427         * lib/unistdio/u-vsprintf.h: New file.
55428         * lib/unistdio/ulc-asnprintf.c: New file.
55429         * lib/unistdio/ulc-asprintf.c: New file.
55430         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
55431         * lib/unistdio/ulc-printf-parse.c: New file.
55432         * lib/unistdio/ulc-snprintf.c: New file.
55433         * lib/unistdio/ulc-sprintf.c: New file.
55434         * lib/unistdio/ulc-vasnprintf.c: New file.
55435         * lib/unistdio/ulc-vasprintf.c: New file.
55436         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
55437         * lib/unistdio/ulc-vsnprintf.c: New file.
55438         * lib/unistdio/ulc-vsprintf.c: New file.
55439         * lib/unistdio/u8-asnprintf.c: New file.
55440         * lib/unistdio/u8-asprintf.c: New file.
55441         * lib/unistdio/u8-printf-parse.c: New file.
55442         * lib/unistdio/u8-snprintf.c: New file.
55443         * lib/unistdio/u8-sprintf.c: New file.
55444         * lib/unistdio/u8-vasnprintf.c: New file.
55445         * lib/unistdio/u8-vasprintf.c: New file.
55446         * lib/unistdio/u8-vsnprintf.c: New file.
55447         * lib/unistdio/u8-vsprintf.c: New file.
55448         * lib/unistdio/u8-u8-asnprintf.c: New file.
55449         * lib/unistdio/u8-u8-asprintf.c: New file.
55450         * lib/unistdio/u8-u8-snprintf.c: New file.
55451         * lib/unistdio/u8-u8-sprintf.c: New file.
55452         * lib/unistdio/u8-u8-vasnprintf.c: New file.
55453         * lib/unistdio/u8-u8-vasprintf.c: New file.
55454         * lib/unistdio/u8-u8-vsnprintf.c: New file.
55455         * lib/unistdio/u8-u8-vsprintf.c: New file.
55456         * lib/unistdio/u16-asnprintf.c: New file.
55457         * lib/unistdio/u16-asprintf.c: New file.
55458         * lib/unistdio/u16-printf-parse.c: New file.
55459         * lib/unistdio/u16-snprintf.c: New file.
55460         * lib/unistdio/u16-sprintf.c: New file.
55461         * lib/unistdio/u16-vasnprintf.c: New file.
55462         * lib/unistdio/u16-vasprintf.c: New file.
55463         * lib/unistdio/u16-vsnprintf.c: New file.
55464         * lib/unistdio/u16-vsprintf.c: New file.
55465         * lib/unistdio/u16-u16-asnprintf.c: New file.
55466         * lib/unistdio/u16-u16-asprintf.c: New file.
55467         * lib/unistdio/u16-u16-snprintf.c: New file.
55468         * lib/unistdio/u16-u16-sprintf.c: New file.
55469         * lib/unistdio/u16-u16-vasnprintf.c: New file.
55470         * lib/unistdio/u16-u16-vasprintf.c: New file.
55471         * lib/unistdio/u16-u16-vsnprintf.c: New file.
55472         * lib/unistdio/u16-u16-vsprintf.c: New file.
55473         * lib/unistdio/u32-asnprintf.c: New file.
55474         * lib/unistdio/u32-asprintf.c: New file.
55475         * lib/unistdio/u32-printf-parse.c: New file.
55476         * lib/unistdio/u32-snprintf.c: New file.
55477         * lib/unistdio/u32-sprintf.c: New file.
55478         * lib/unistdio/u32-vasnprintf.c: New file.
55479         * lib/unistdio/u32-vasprintf.c: New file.
55480         * lib/unistdio/u32-vsnprintf.c: New file.
55481         * lib/unistdio/u32-vsprintf.c: New file.
55482         * lib/unistdio/u32-u32-asnprintf.c: New file.
55483         * lib/unistdio/u32-u32-asprintf.c: New file.
55484         * lib/unistdio/u32-u32-snprintf.c: New file.
55485         * lib/unistdio/u32-u32-sprintf.c: New file.
55486         * lib/unistdio/u32-u32-vasnprintf.c: New file.
55487         * lib/unistdio/u32-u32-vasprintf.c: New file.
55488         * lib/unistdio/u32-u32-vsnprintf.c: New file.
55489         * lib/unistdio/u32-u32-vsprintf.c: New file.
55490         * tests/unistdio/test-ulc-asnprintf1.c: New file.
55491         * tests/unistdio/test-ulc-asnprintf1.h: New file.
55492         * tests/unistdio/test-ulc-printf1.h: New file.
55493         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
55494         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
55495         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
55496         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
55497         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
55498         * tests/unistdio/test-ulc-vasprintf1.c: New file.
55499         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
55500         * tests/unistdio/test-ulc-vsprintf1.c: New file.
55501         * tests/unistdio/test-u8-asnprintf1.c: New file.
55502         * tests/unistdio/test-u8-asnprintf1.h: New file.
55503         * tests/unistdio/test-u8-printf1.h: New file.
55504         * tests/unistdio/test-u8-vasnprintf1.c: New file.
55505         * tests/unistdio/test-u8-vasnprintf2.c: New file.
55506         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
55507         * tests/unistdio/test-u8-vasnprintf3.c: New file.
55508         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
55509         * tests/unistdio/test-u8-vasprintf1.c: New file.
55510         * tests/unistdio/test-u8-vsnprintf1.c: New file.
55511         * tests/unistdio/test-u8-vsprintf1.c: New file.
55512         * tests/unistdio/test-u16-asnprintf1.c: New file.
55513         * tests/unistdio/test-u16-asnprintf1.h: New file.
55514         * tests/unistdio/test-u16-printf1.h: New file.
55515         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55516         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55517         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55518         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55519         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55520         * tests/unistdio/test-u16-vasprintf1.c: New file.
55521         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55522         * tests/unistdio/test-u16-vsprintf1.c: New file.
55523         * tests/unistdio/test-u32-asnprintf1.c: New file.
55524         * tests/unistdio/test-u32-asnprintf1.h: New file.
55525         * tests/unistdio/test-u32-printf1.h: New file.
55526         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55527         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55528         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55529         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55530         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55531         * tests/unistdio/test-u32-vasprintf1.c: New file.
55532         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55533         * tests/unistdio/test-u32-vsprintf1.c: New file.
55534         * modules/unistdio/base: New file.
55535         * modules/unistdio/u-printf-args: New file.
55536         * modules/unistdio/ulc-asnprintf: New file.
55537         * modules/unistdio/ulc-asprintf: New file.
55538         * modules/unistdio/ulc-fprintf: New file.
55539         * modules/unistdio/ulc-printf-parse: New file.
55540         * modules/unistdio/ulc-snprintf: New file.
55541         * modules/unistdio/ulc-sprintf: New file.
55542         * modules/unistdio/ulc-vasnprintf: New file.
55543         * modules/unistdio/ulc-vasprintf: New file.
55544         * modules/unistdio/ulc-vfprintf: New file.
55545         * modules/unistdio/ulc-vsnprintf: New file.
55546         * modules/unistdio/ulc-vsprintf: New file.
55547         * modules/unistdio/u8-asnprintf: New file.
55548         * modules/unistdio/u8-asprintf: New file.
55549         * modules/unistdio/u8-printf-parse: New file.
55550         * modules/unistdio/u8-snprintf: New file.
55551         * modules/unistdio/u8-sprintf: New file.
55552         * modules/unistdio/u8-vasnprintf: New file.
55553         * modules/unistdio/u8-vasprintf: New file.
55554         * modules/unistdio/u8-vsnprintf: New file.
55555         * modules/unistdio/u8-vsprintf: New file.
55556         * modules/unistdio/u8-u8-asnprintf: New file.
55557         * modules/unistdio/u8-u8-asprintf: New file.
55558         * modules/unistdio/u8-u8-snprintf: New file.
55559         * modules/unistdio/u8-u8-sprintf: New file.
55560         * modules/unistdio/u8-u8-vasnprintf: New file.
55561         * modules/unistdio/u8-u8-vasprintf: New file.
55562         * modules/unistdio/u8-u8-vsnprintf: New file.
55563         * modules/unistdio/u8-u8-vsprintf: New file.
55564         * modules/unistdio/u16-asnprintf: New file.
55565         * modules/unistdio/u16-asprintf: New file.
55566         * modules/unistdio/u16-printf-parse: New file.
55567         * modules/unistdio/u16-snprintf: New file.
55568         * modules/unistdio/u16-sprintf: New file.
55569         * modules/unistdio/u16-vasnprintf: New file.
55570         * modules/unistdio/u16-vasprintf: New file.
55571         * modules/unistdio/u16-vsnprintf: New file.
55572         * modules/unistdio/u16-vsprintf: New file.
55573         * modules/unistdio/u16-u16-asnprintf: New file.
55574         * modules/unistdio/u16-u16-asprintf: New file.
55575         * modules/unistdio/u16-u16-snprintf: New file.
55576         * modules/unistdio/u16-u16-sprintf: New file.
55577         * modules/unistdio/u16-u16-vasnprintf: New file.
55578         * modules/unistdio/u16-u16-vasprintf: New file.
55579         * modules/unistdio/u16-u16-vsnprintf: New file.
55580         * modules/unistdio/u16-u16-vsprintf: New file.
55581         * modules/unistdio/u32-asnprintf: New file.
55582         * modules/unistdio/u32-asprintf: New file.
55583         * modules/unistdio/u32-printf-parse: New file.
55584         * modules/unistdio/u32-snprintf: New file.
55585         * modules/unistdio/u32-sprintf: New file.
55586         * modules/unistdio/u32-vasnprintf: New file.
55587         * modules/unistdio/u32-vasprintf: New file.
55588         * modules/unistdio/u32-vsnprintf: New file.
55589         * modules/unistdio/u32-vsprintf: New file.
55590         * modules/unistdio/u32-u32-asnprintf: New file.
55591         * modules/unistdio/u32-u32-asprintf: New file.
55592         * modules/unistdio/u32-u32-snprintf: New file.
55593         * modules/unistdio/u32-u32-sprintf: New file.
55594         * modules/unistdio/u32-u32-vasnprintf: New file.
55595         * modules/unistdio/u32-u32-vasprintf: New file.
55596         * modules/unistdio/u32-u32-vsnprintf: New file.
55597         * modules/unistdio/u32-u32-vsprintf: New file.
55598         * modules/unistdio/ulc-asnprintf-tests: New file.
55599         * modules/unistdio/ulc-vasnprintf-tests: New file.
55600         * modules/unistdio/ulc-vasprintf-tests: New file.
55601         * modules/unistdio/ulc-vsnprintf-tests: New file.
55602         * modules/unistdio/ulc-vsprintf-tests: New file.
55603         * modules/unistdio/u8-asnprintf-tests: New file.
55604         * modules/unistdio/u8-vasnprintf-tests: New file.
55605         * modules/unistdio/u8-vasprintf-tests: New file.
55606         * modules/unistdio/u8-vsnprintf-tests: New file.
55607         * modules/unistdio/u8-vsprintf-tests: New file.
55608         * modules/unistdio/u16-asnprintf-tests: New file.
55609         * modules/unistdio/u16-vasnprintf-tests: New file.
55610         * modules/unistdio/u16-vasprintf-tests: New file.
55611         * modules/unistdio/u16-vsnprintf-tests: New file.
55612         * modules/unistdio/u16-vsprintf-tests: New file.
55613         * modules/unistdio/u32-asnprintf-tests: New file.
55614         * modules/unistdio/u32-vasnprintf-tests: New file.
55615         * modules/unistdio/u32-vasprintf-tests: New file.
55616         * modules/unistdio/u32-vsnprintf-tests: New file.
55617         * modules/unistdio/u32-vsprintf-tests: New file.
55618         * MODULES.html.sh (Unicode string functions): Add the new modules.
55619
55620 2007-07-01  Bruno Haible  <bruno@clisp.org>
55621
55622         * lib/sprintf.c (sprintf): Limit the available length estimation,
55623         to avoid address wraparound.
55624         * lib/vsprintf.c (vsprintf): Likewise.
55625         * modules/sprintf-posix (Dependencies): Add stdint.
55626         * modules/vsprintf-posix (Dependencies): Likewise.
55627
55628 2007-07-01  Bruno Haible  <bruno@clisp.org>
55629
55630         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55631         Windows PATH as well. Conservative double-quoting. Comments.
55632
55633 2007-07-01  Bruno Haible  <bruno@clisp.org>
55634             Eric Blake  <ebb9@byu.net>
55635             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55636
55637         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55638         empty components in $PATH, denoting '.'.
55639
55640 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55641
55642         * gnulib-tool: Fix indentation.
55643         (func_create_megatestdir): Likewise.
55644         Report by Bruno Haible.
55645
55646 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55647
55648         Sync from Automake.
55649         * build-aux/gnupload: Fix shell portability issues with for loops.
55650         Report by Karl Berry.
55651
55652 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55653
55654         * build-aux/maint.mk (POURL): Use translationproject.org.
55655
55656 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55657             Bruno Haible  <bruno@clisp.org>
55658
55659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55660         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55661         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55662         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55663         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55664
55665 2007-06-27  Bruno Haible  <bruno@clisp.org>
55666
55667         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55668         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55669
55670 2007-06-26  Karl Berry  <karl@gnu.org>
55671
55672         * MODULES.html.sh: remove xreadlink-with-size.
55673
55674 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55675
55676         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55677         method that I hope also handles the double-include problem noted
55678         by Bruno Haible in
55679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55680
55681 2007-06-23  Bruno Haible  <bruno@clisp.org>
55682
55683         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55684         Don't let the 'mostlyclean' target fail if the last subdirectory could
55685         not be removed.
55686         Reported by Karl Berry.
55687
55688 2007-06-23  Bruno Haible  <bruno@clisp.org>
55689
55690         * gnulib-tool (echo): Add a speedier workaround for ksh.
55691         * tests/test-echo.sh: Likewise.
55692
55693 2007-06-23  Bruno Haible  <bruno@clisp.org>
55694
55695         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55696         * tests/test-echo.sh: Likewise.
55697
55698 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55699
55700         * gnulib-tool (IFS): Initialize early, so we don't set it to
55701         empty later.
55702         (self_abspathname): Rewrite algorithm to set it, reindent.
55703         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55704         (func_create_megatestdir): Merge some sed scripts.
55705
55706 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55709         exposed by Sun Studio 11 cc on Solaris 8.
55710
55711 2007-06-22  Bruno Haible  <bruno@clisp.org>
55712
55713         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55714         backslashes.
55715         * tests/test-echo.sh: New file.
55716
55717 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55718
55719         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55720         simplify `sed_replace_build_aux' scripts, they are portable but
55721         echoing them with `echo' is not.
55722         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55723
55724 2007-06-21  Karl Berry  <karl@gnu.org>
55725
55726         * config/srclist.txt: guess we can't handle the licenses via
55727         srclist at the moment.
55728
55729 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55730
55731         * MODULES.html.sh: Add include_next.
55732         * modules/include_next: New file.
55733
55734 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55735
55736         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55737         INCLUDE_NEXT.
55738         (gl_CHECK_NEXT_HEADERS): New macro.
55739         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55740         the obsolescent gl_ABSOLUTE_HEADER.
55741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55742         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55743         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55744         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55745         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55746         * m4/math_h.m4 (gl_MATH_H): Likewise.
55747         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55748         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55749         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55750         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55751         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55752         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55753         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55754         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55755         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55757         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55758         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55759         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55760         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55761         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55762         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55763         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55764         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55765         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55766         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55767         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55768         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55769         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55770         * lib/float_.h: Likewise.
55771         * lib/inttypes_.h: Likewise.
55772         * lib/math_.h: Likewise.
55773         * lib/search_.h: Likewise.
55774         * lib/signal_.h: Likewise.
55775         * lib/stdint_.h: Likewise.
55776         * lib/stdio_.h: Likewise.
55777         * lib/stdlib_.h: Likewise.
55778         * lib/string_.h: Likewise.
55779         * lib/sys_stat_.h: Likewise.
55780         * lib/sys_time_.h: Likewise.
55781         * lib/time_.h: Likewise.
55782         * lib/unistd_.h: Likewise.
55783         * lib/wchar_.h: Likewise.
55784         * lib/wctype_.h: Likewise.
55785         * lib/dirent_.h: Likewise.
55786         * lib/iconv_.h: Likewise.
55787         * lib/locale_.h: Likewise.
55788         * lib/netinet_in_.h: Likewise.
55789         * lib/sys_select_.h: Likewise.
55790         * lib/sys_socket_.h: Likewise.
55791         * lib/sysexits_.h: Likewise.
55792         * modules/fcntl (Depends-on): Depend on include_next, not
55793         absolute_header.
55794         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55795         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55796         * modules/fchdir: Likewise.
55797         * modules/float: Likewise.
55798         * modules/iconv_open: Likewise.
55799         * modules/inttypes: Likewise.
55800         * modules/locale: Likewise.
55801         * modules/math: Likewise.
55802         * modules/netinet_in: Likewise.
55803         * modules/search: Likewise.
55804         * modules/signal: Likewise.
55805         * modules/stdint: Likewise.
55806         * modules/stdio: Likewise.
55807         * modules/stdlib: Likewise.
55808         * modules/string: Likewise.
55809         * modules/sys_select: Likewise.
55810         * modules/sys_socket: Likewise.
55811         * modules/sys_stat: Likewise.
55812         * modules/sys_time: Likewise.
55813         * modules/sysexits: Likewise.
55814         * modules/time: Likewise.
55815         * modules/unistd: Likewise.
55816         * modules/wchar: Likewise.
55817         * modules/wctype: Likewise.
55818         * modules/sys_stat: Change maintainer to "all".
55819         * modules/unistd: Likewise.
55820
55821 2007-06-20  Karl Berry  <karl@gnu.org>
55822
55823         * config/srclist.txt: track www changes in license files.
55824
55825 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55826
55827         * build-aux/bootstrap: Remove stray dot.
55828         Make sure build_aux settings are honored when linking
55829         gnulib_extra_files.
55830
55831 2007-06-19  Eric Blake  <ebb9@byu.net>
55832
55833         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55834         Allow compilation on cygwin.
55835
55836 2007-06-19  Jim Meyering  <jim@meyering.net>
55837
55838         xreadlink-with-size: Remove module.  No longer used.
55839         Ex-callers now use xreadlink or mreadlink-with-size.
55840         * modules/xreadlink-with-size: Remove module.
55841         * lib/xreadlink-with-size.c: Remove file.
55842         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55843         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55844         just before the function definition *is* accurate.
55845
55846         Eliminate one way canonicalize_filename_mode could exit.
55847         * lib/canonicalize.c (canonicalize_filename_mode):
55848         Use mreadlink_with_size, not xreadlink_with_size.
55849
55850 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55851
55852         Detect porting problems to FreeBSD/arm, which has time_t wider than
55853         long int.  Original problem reported for GNU diff by Xin Li in
55854         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55855         * modules/getdate (Depends-on): Add intprops, verify.
55856         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55857         is an integer type no wider than long int.
55858
55859 2007-06-18  Jim Meyering  <jim@meyering.net>
55860
55861         New module: mreadlink-with-size.
55862         * MODULES.html.sh: Add mreadlink-with-size.
55863         * modules/mreadlink-with-size: New module
55864         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55865         not xreadlink-with-size.
55866         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55867
55868 2007-06-16  Bruno Haible  <bruno@clisp.org>
55869
55870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55871         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55872         Reported by Gary V. Vaughan <gary@gnu.org>.
55873
55874 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55875
55876         Revamp lchown so that it lives in unistd.h where it belongs.
55877         * lib/lchown.h: Remove.
55878         * lib/dirchownmod.c: Don't include lib/lchown.h.
55879         * lib/fchownat.c: Likewise.
55880         * lib/openat.c: Likewise.
55881         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55882         does not follow symlinks.
55883         (EOPNOTSUPP): Define if not defined.
55884         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55885         is defined to 0.
55886         (lchown): New decl.
55887         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55888         Do not check for lchown decl.
55889         Set REPLACE_LCHOWN.
55890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55891         REPLACE_LCHOWN.
55892         * modules/chown: Make it clear it follows symlinks.
55893         * modules/lchown: Make it clear it doesn't follow symlinks.
55894         (Files): Remove lib/lchown.h
55895         (Depends-on): Add unistd.
55896         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55897         (Include): Include <unistd.h>, not "lchown.h".
55898         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55899         REPLACE_LCHOWN.
55900
55901 2007-06-15  Jim Meyering  <jim@meyering.net>
55902
55903         Change license (GPL to LGPL) of fsusage and dependents.
55904         * modules/fsusage (License): Change to LGPL.
55905         * modules/full-read (License): Likewise.
55906         * modules/full-write (License): Likewise.
55907         * modules/safe-read (License): Likewise.
55908         * modules/safe-write (License): Likewise.
55909
55910 2007-06-14  Ben Pfaff  <blp@gnu.org>
55911
55912         Missing part of allocsa -> malloca transition.
55913         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55914         gl_MALLOCA.
55915
55916 2007-06-12  Bruno Haible  <bruno@clisp.org>
55917
55918         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55919         to ia64, x86_64, i386.
55920         Reported by Eric Blake.
55921
55922 2007-06-12  Bruno Haible  <bruno@clisp.org>
55923
55924         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55925         cross-compiling to x86_64.
55926
55927 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55930         glitch reported by Ralf Wildenhues in
55931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55932
55933         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55934         Vin Shelton.
55935
55936 2007-06-11  Bruno Haible  <bruno@clisp.org>
55937
55938         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55939         replacement string.
55940         Reported by Eric Blake.
55941
55942 2007-06-10  Bruno Haible  <bruno@clisp.org>
55943
55944         Prepare vasnprintf code for use with Unicode strings.
55945         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55946         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55947         TYPE_U32_STRING.
55948         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55949         a_u32_string variants.
55950         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55951         * lib/printf-args.c: Don't include config.h and the specification
55952         header if PRINTF_FETCHARGS is already defined.
55953         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55954         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55955         TYPE_U16_STRING, TYPE_U32_STRING.
55956         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55957         u16_directive, u16_directives, u32_directive, u32_directives): New
55958         types.
55959         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55960         New declarations.
55961         * lib/printf-parse.c: Don't include config.h and the specification
55962         header if PRINTF_PARSE is already defined. Eliminate the set of
55963         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55964         them now. Include c-ctype.h.
55965         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55966         directive and CHAR_T_ONLY_ASCII.
55967         * lib/vasnprintf.c: Don't include config.h and the specification header
55968         if VASNPRINTF is already defined.
55969         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55970         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55971         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55972         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55973         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55974         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55975         code accordingly.
55976         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55977         pad_ourselves also in this case, with the 'c' and 's' directives, and
55978         with a different notion of "width".
55979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55980
55981 2007-06-10  Bruno Haible  <bruno@clisp.org>
55982
55983         * modules/unistr/u32-mbsnlen: New file.
55984         * lib/unistr/u32-mbsnlen.c: New file.
55985
55986         * modules/unistr/u16-mbsnlen: New file.
55987         * lib/unistr/u16-mbsnlen.c: New file.
55988
55989         * modules/unistr/u8-mbsnlen: New file.
55990         * lib/unistr/u8-mbsnlen.c: New file.
55991
55992         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55993         declarations.
55994
55995 2007-06-10  Bruno Haible  <bruno@clisp.org>
55996
55997         * lib/string_.h (mbsnlen): New declaration.
55998         * lib/mbsnlen.c: New file.
55999         * m4/mbsnlen.m4: New file.
56000         * modules/mbsnlen: New file.
56001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
56002         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
56003         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
56004
56005 2007-06-10  Bruno Haible  <bruno@clisp.org>
56006
56007         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
56008
56009 2007-06-10  Bruno Haible  <bruno@clisp.org>
56010
56011         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
56012         * lib/mbuiter.h: Likewise.
56013
56014 2007-06-10  Bruno Haible  <bruno@clisp.org>
56015
56016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
56017         declaration.
56018
56019 2007-06-10  Karl Berry  <karl@gnu.org>
56020
56021         * config/srclist.txt: remove gettext entries, Bruno prefers
56022         to update individually.
56023
56024 2007-06-10  Bruno Haible  <bruno@clisp.org>
56025
56026         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
56027         'maxlen'. Ensure only length + width bytes are allocated, not
56028         length + 1 + width.
56029
56030 2007-06-09  Bruno Haible  <bruno@clisp.org>
56031
56032         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
56033         (CHAR_T): Remove macro.
56034         (VASNPRINTF): Update.
56035
56036 2007-06-09  Bruno Haible  <bruno@clisp.org>
56037
56038         * MODULES.html.sh (Unicode string functions): Add the new modules.
56039
56040         * modules/uniconv/u32-conv-to-enc: New file.
56041         * lib/uniconv/u32-conv-to-enc.c: New file.
56042         * modules/uniconv/u32-conv-to-enc-tests: New file.
56043         * tests/uniconv/test-u32-conv-to-enc.c: New file.
56044
56045         * modules/uniconv/u16-conv-to-enc: New file.
56046         * lib/uniconv/u16-conv-to-enc.c: New file.
56047         * lib/uniconv/u-conv-to-enc.h: New file.
56048         * modules/uniconv/u16-conv-to-enc-tests: New file.
56049         * tests/uniconv/test-u16-conv-to-enc.c: New file.
56050
56051         * modules/uniconv/u8-conv-to-enc: New file.
56052         * lib/uniconv/u8-conv-to-enc.c: New file.
56053         * modules/uniconv/u8-conv-to-enc-tests: New file.
56054         * tests/uniconv/test-u8-conv-to-enc.c: New file.
56055
56056         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
56057         u32_conv_to_encoding): New declarations.
56058
56059 2007-06-09  Bruno Haible  <bruno@clisp.org>
56060
56061         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
56062
56063 2007-06-09  Bruno Haible  <bruno@clisp.org>
56064
56065         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
56066         * modules/malloca: Renamed from modules/allocsa, updated.
56067         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
56068         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
56069         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
56070         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
56071         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
56072         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
56073         * modules/xmalloca: Renamed from modules/xallocsa, updated.
56074         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
56075         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
56076         * modules/c-strcasestr (Depends-on): Update.
56077         * lib/c-strcasestr.c: Update.
56078         * modules/c-strstr (Depends-on): Update.
56079         * lib/c-strstr.c: Update.
56080         * modules/canonicalize-lgpl (Depends-on): Update.
56081         * lib/canonicalize-lgpl.c: Update.
56082         * modules/clean-temp (Depends-on): Update.
56083         * lib/clean-temp.c: Update.
56084         * modules/csharpcomp (Depends-on): Update.
56085         * lib/csharpcomp.c: Update.
56086         * modules/csharpexec (Depends-on): Update.
56087         * lib/csharpexec.c: Update.
56088         * modules/javacomp (Depends-on): Update.
56089         * lib/javacomp.c: Update.
56090         * modules/javaexec (Depends-on): Update.
56091         * lib/javaexec.c: Update.
56092         * modules/mbscasestr (Depends-on): Update.
56093         * lib/mbscasestr.c: Update.
56094         * modules/mbsstr (Depends-on): Update.
56095         * lib/mbsstr.c: Update.
56096         * modules/setenv (Depends-on): Update.
56097         * lib/setenv.c: Update.
56098         * modules/strcasestr (Depends-on): Update.
56099         * lib/strcasestr.c: Update.
56100         * modules/striconveha (Depends-on): Update.
56101         * lib/striconveha.c: Update.
56102         * modules/relocatable-prog-wrapper (Files): Update.
56103         * lib/relocwrapper.c: Update.
56104         * build-aux/install-reloc: Update.
56105         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
56106
56107 2007-06-08  Bruno Haible  <bruno@clisp.org>
56108
56109         Port to uClibc.
56110         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
56111         * lib/fpurge.c (fpurge): Likewise.
56112         * lib/freading.c (freading): Likewise.
56113         * lib/fseeko.c (rpl_fseeko): Likewise.
56114         * lib/fseterr.c (fseterr): Likewise.
56115         * lib/fwriting.c (fwriting): Likewise.
56116         * tests/test-fflush.c (main): Avoid a failure on uClibc.
56117
56118 2007-06-08  Bruno Haible  <bruno@clisp.org>
56119
56120         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
56121         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
56122         * modules/gettext (Files): Add m4/intlmacosx.m4.
56123
56124 2007-06-07  Bruno Haible  <bruno@clisp.org>
56125
56126         * modules/localename-tests: New file.
56127         * tests/test-localename.c: New file.
56128
56129         New module 'localename'.
56130         * lib/localename.h: New file.
56131         * lib/localename.c: New file, from GNU gettext.
56132         * m4/localename.m4: New file.
56133         * modules/localename: New file.
56134
56135 2007-06-07  Bruno Haible  <bruno@clisp.org>
56136
56137         Work around the lack of <wchar.h> on some builds of uClibc.
56138         * doc/headers/wchar.texi: Update.
56139         * lib/wchar_.h: Include <wchar.h> only if it exists.
56140         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
56141         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
56142         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
56143         doesn't exist.
56144         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
56145         * modules/mbfile (Depends-on): Add wchar.
56146         * modules/mbiter (Depends-on): Likewise.
56147         * modules/mbuiter (Depends-on): Likewise.
56148         Reported by Simon Josefsson.
56149
56150 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56151
56152         Work around problem reported by Steven M. Schweda in
56153         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
56154         Tru64 5.1B with the Compaq compiler environment installed declares
56155         an 'isblank' function but does not define it in the C library.
56156         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
56157         * lib/regex_internal.h (isblank): Likewise.
56158         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
56159         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56160
56161 2007-06-05  Bruno Haible  <bruno@clisp.org>
56162
56163         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
56164         ia64.
56165         * modules/printf-safe: New file.
56166         * modules/fprintf-posix (Depends-on): Add printf-safe.
56167         * modules/printf-posix (Depends-on): Likewise.
56168         * modules/snprintf-posix (Depends-on): Likewise.
56169         * modules/sprintf-posix (Depends-on): Likewise.
56170         * modules/vasnprintf-posix (Depends-on): Likewise.
56171         * modules/vasprintf-posix (Depends-on): Likewise.
56172         * modules/vfprintf-posix (Depends-on): Likewise.
56173         * modules/vprintf-posix (Depends-on): Likewise.
56174         * modules/vsnprintf-posix (Depends-on): Likewise.
56175         * modules/vsprintf-posix (Depends-on): Likewise.
56176         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
56177         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
56178         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
56179         "no" on i386, x86_64, ia64.
56180         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
56181         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56182         on i386, x86_64, ia64.
56183         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
56184         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56185         on i386, x86_64, ia64.
56186         * tests/test-vasnprintf-posix.c: Include float.h.
56187         (LDBL80_WORDS): New macro.
56188         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56189         on i386, x86_64, ia64.
56190         * tests/test-vasprintf-posix.c: Include float.h.
56191         (LDBL80_WORDS): New macro.
56192         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56193         on i386, x86_64, ia64.
56194         * tests/test-snprintf-posix.c: Include float.h.
56195         * tests/test-sprintf-posix.c: Likewise.
56196         * tests/test-vsnprintf-posix.c: Likewise.
56197         * tests/test-vsprintf-posix.c: Likewise.
56198
56199 2007-06-05  Bruno Haible  <bruno@clisp.org>
56200
56201         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
56202         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
56203         non-IEEE numbers on i386, x86_64, ia64.
56204         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
56205         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
56206         * tests/test-isnanl.h: Include float.h.
56207         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
56208
56209 2007-06-05  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
56212         also the %a / %A. Handle the %a / %A code before this extra handling.
56213
56214 2007-06-05  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
56217         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
56218
56219 2007-06-05  Bruno Haible  <bruno@clisp.org>
56220
56221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
56222         typo in variable name.
56223
56224 2007-06-05  Eric Blake  <ebb9@byu.net>
56225
56226         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
56227         Reported by Simon Josefsson.
56228
56229 2007-06-04  Bruno Haible  <bruno@clisp.org>
56230
56231         Avoid test failures on some PowerPC platforms.
56232         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
56233         Define differently for PowerPC.
56234         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
56235         Reported by Gary V. Vaughan <gary@gnu.org>.
56236
56237 2007-06-02  Bruno Haible  <bruno@clisp.org>
56238
56239         Fix test-stdint failure on FreeBSD/ia64.
56240         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
56241         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
56242         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
56243         * doc/headers/stdint.texi: Update.
56244
56245 2007-06-01  Bruno Haible  <bruno@clisp.org>
56246
56247         * tests/test-binary-io.c (main): Pass a third argument to open().
56248         Reported by Gary V. Vaughan <gary@gnu.org>.
56249
56250 2007-06-01  Bruno Haible  <bruno@clisp.org>
56251
56252         * doc/functions/frexpl.texi: Update for mingw.
56253
56254 2007-06-01  Bruno Haible  <bruno@clisp.org>
56255
56256         * tests/test-lseek.c (main): Disable test of errno for invalid third
56257         argument.
56258         * doc/functions/lseek.texi: Update.
56259         Reported by Gary V. Vaughan <gary@gnu.org>.
56260
56261 2007-05-28  Bruno Haible  <bruno@clisp.org>
56262
56263         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
56264
56265 2007-05-31  Eric Blake  <ebb9@byu.net>
56266
56267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
56268         cross compiling.
56269
56270 2007-05-30  Eric Blake  <ebb9@byu.net>
56271         and Bruno Haible  <bruno@clisp.org>
56272
56273         Work around mingw test failures exposed by m4-1.4.9b.
56274         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
56275         * tests/test-unistd.c: Disable uid_t and git_t tests for the
56276         moment.
56277
56278 2007-05-30  Bruno Haible  <bruno@clisp.org>
56279
56280         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
56281         assuming that they are closed. Needed on HP-UX 11.
56282
56283 2007-05-29  Bruno Haible  <bruno@clisp.org>
56284
56285         Fix a problem with #include_next.
56286         * lib/dirent_.h: Split the double-inclusion guard.
56287         * lib/fcntl_.h: Likewise.
56288         * lib/float_.h: Likewise.
56289         * lib/iconv_.h: Likewise.
56290         * lib/inttypes_.h: Likewise.
56291         * lib/locale_.h: Likewise.
56292         * lib/math_.h: Likewise.
56293         * lib/netinet_in_.h: Likewise.
56294         * lib/search_.h: Likewise.
56295         * lib/signal_.h: Likewise.
56296         * lib/stdint_.h: Likewise.
56297         * lib/stdio_.h: Likewise.
56298         * lib/stdlib_.h: Likewise.
56299         * lib/string_.h: Likewise.
56300         * lib/sys_select_.h: Likewise.
56301         * lib/sys_socket_.h: Likewise.
56302         * lib/sys_stat_.h: Likewise.
56303         * lib/sys_time_.h: Likewise.
56304         * lib/sysexits_.h: Likewise.
56305         * lib/time_.h: Likewise.
56306         * lib/unistd_.h: Likewise.
56307         * lib/wchar_.h: Likewise.
56308         * lib/wctype_.h: Likewise.
56309
56310 2007-05-29  Bruno Haible  <bruno@clisp.org>
56311
56312         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
56313         for the moment.
56314
56315 2007-05-29  Bruno Haible  <bruno@clisp.org>
56316
56317         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
56318         invocation.
56319         Reported by Eric Blake.
56320
56321 2007-05-29  Bruno Haible  <bruno@clisp.org>
56322
56323         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
56324         compiling case.
56325
56326 2007-05-29  Eric Blake  <ebb9@byu.net>
56327             Bruno Haible  <bruno@clisp.org>
56328
56329         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
56330         cross compiles.
56331
56332 2007-05-28  Eric Blake  <ebb9@byu.net>
56333
56334         * modules/closein-tests (test_closein_LDADD): Support test on
56335         cygwin with libtool.
56336
56337 2007-05-28  Bruno Haible  <bruno@clisp.org>
56338
56339         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
56340         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56341         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56342         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56343         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56344         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56345         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56346         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56347         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56348
56349 2007-05-28  Eric Blake  <ebb9@byu.net>
56350
56351         Unconditionally include <config.h> in unit tests.
56352         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
56353         * tests/test-allocsa.c, tests/test-arcfour.c,
56354         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
56355         tests/test-array_list.c, tests/test-array_oset.c,
56356         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
56357         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
56358         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
56359         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
56360         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
56361         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
56362         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
56363         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
56364         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
56365         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
56366         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
56367         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
56368         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
56369         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
56370         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
56371         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
56372         test-md5.c, test-memmem.c, test-printf-posix.c,
56373         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
56374         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
56375         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
56376         test-strcasestr.c, test-striconv.c, test-striconveh.c,
56377         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
56378         test-vasnprintf-posix2.c, test-vasnprintf.c,
56379         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
56380         test-vfprintf-posix.c, test-vprintf-posix.c,
56381         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
56382         test-xvasprintf.c: Likewise.
56383
56384 2007-05-28  Bruno Haible  <bruno@clisp.org>
56385
56386         * gnulib-tool (func_import): Remember the --with-tests command-line
56387         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
56388         Reported by Eric Blake.
56389
56390 2007-05-28  Bruno Haible  <bruno@clisp.org>
56391
56392         * modules/ftell-tests: New file.
56393         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
56394         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
56395
56396         * lib/ftell.c: New file.
56397         * modules/ftell: New file.
56398         * m4/ftell.m4: New file.
56399         * doc/functions/ftell.texi: Update.
56400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
56401         REPLACE_FTELL.
56402         * lib/stdio_.h (rpl_ftell): New declaration.
56403         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
56404         REPLACE_FTELL.
56405
56406 2007-05-28  Eric Blake  <ebb9@byu.net>
56407
56408         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
56409
56410 2007-05-28  Bruno Haible  <bruno@clisp.org>
56411
56412         * modules/fseek-tests: New file.
56413         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
56414         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
56415
56416         * lib/fseek.c: New file.
56417         * modules/fseek: New file.
56418         * m4/fseek.m4: New file.
56419         * doc/functions/fseek.texi: Update.
56420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
56421         REPLACE_FSEEK.
56422         * lib/stdio_.h (rpl_fseek): New declaration.
56423         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
56424         REPLACE_FSEEK.
56425
56426 2007-05-28  Bruno Haible  <bruno@clisp.org>
56427
56428         * lib/stdio_.h (fflush): More comments.
56429
56430 2007-05-28  Bruno Haible  <bruno@clisp.org>
56431
56432         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
56433         runtime test.
56434
56435 2007-05-28  Eric Blake  <ebb9@byu.net>
56436
56437         Improve lseek module.
56438         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
56439         * lib/unistd_.h (lseek): Scale back link warning message.
56440         * tests/test-lseek.c: Beef up test.
56441         * tests/test-lseek.sh: Exercise more facets of lseek.
56442         Reported by Bruno Haible.
56443
56444 2007-05-28  Bruno Haible  <bruno@clisp.org>
56445
56446         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
56447         to define.
56448
56449 2007-05-27  Bruno Haible  <bruno@clisp.org>
56450
56451         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
56452
56453 2007-05-27  Bruno Haible  <bruno@clisp.org>
56454
56455         * modules/openmp: New file.
56456         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
56457         Noah Misch.
56458
56459 2007-05-26  Bruno Haible  <bruno@clisp.org>
56460
56461         * modules/chdir-long (Depends-on): Add fchdir.
56462         * modules/chdir-safer (Depends-on): Likewise.
56463         * modules/fts (Depends-on): Likewise.
56464         * modules/fts-lgpl (Depends-on): Likewise.
56465         * modules/openat (Depends-on): Likewise.
56466         * modules/savewd (Depends-on): Likewise.
56467
56468 2007-05-24  Eric Blake  <ebb9@byu.net>
56469
56470         Fix lseek on mingw.
56471         * modules/lseek: New module.
56472         * m4/lseek.m4: New file.
56473         * lib/lseek.c: New file.
56474         * modules/lseek-tests: New file.
56475         * tests/test-lseek.c: New file.
56476         * tests/test-lseek.sh: New file.
56477         * MODULES.html.sh: Document lseek module.
56478         * modules/fflush (Depends-on): Add lseek, fseeko.
56479         * modules/fseeko (Depends-on): Likewise.
56480         * modules/ftello (Depends-on): Likewise.
56481         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
56482         broken.
56483         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
56484         broken.
56485         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
56486         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
56487         * lib/ftello.c (rpl_ftello): Likewise.
56488         * tests/test-fseeko.c (main): Test this.
56489         * tests/test-fseeko.sh: Likewise.
56490         * tests/test-ftello.c (main): Likewise.
56491         * tests/test-ftello.sh: Likewise.
56492         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
56493         implies replacing fseek.
56494         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
56495         HAVE_FTELLO.
56496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
56497         * modules/unistd (Makefile.am): Likewise.
56498         * lib/unistd_.h (lseek): Declare a replacement.
56499         * doc/functions/lseek.texi (lseek): Document this fix.
56500         * doc/functions/fseek.texi (fseek): Likewise.
56501         * doc/functions/ftell.texi (ftell): Likewise.
56502
56503 2007-05-24  Bruno Haible  <bruno@clisp.org>
56504
56505         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
56506         in the printed representation of a NaN.
56507         * tests/test-vasprintf-posix.c (test_function): Likewise.
56508         * tests/test-snprintf-posix.h (test_function): Likewise.
56509         * tests/test-sprintf-posix.h (test_function): Likewise.
56510         Reported by Eric Blake.
56511
56512 2007-05-23  Eric Blake  <ebb9@byu.net>
56513
56514         Fix fseeko/ftello on cygwin 1.5.24.
56515         * doc/functions/fseeko.texi (fseeko): Document the fix.
56516         * doc/functions/ftello.texi (ftello): Document the fix.
56517         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56518         * doc/functions/stdout.text (stdout): New file.
56519         * doc/functions/stderr.text (stderr): New file.
56520         * doc/gnulib.texi (Function Substitutes): Use new files.
56521         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56522         prior to 1.7.0.
56523         * tests/test-ftello.c (main): Likewise for ftello.
56524         * tests/test-fseeko.sh: New file.
56525         * tests/test-ftello.sh: New file.
56526         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56527         with seekable stdin.
56528         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56529         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56530         (gl_REPLACE_FSEEKO): New macro.
56531         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56532         * modules/fseeko (Files): Distribute fseeko.c.
56533         * modules/ftello (Files): Distribute ftello.c.
56534         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56535         mode.
56536         * lib/ftello.c (rpl_ftello): New file.
56537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56538         fseeko, ftello.
56539         (gl_STDIN_LARGE_OFFSET): New macro.
56540         * modules/stdio (Makefile.am): Perform the replacement.
56541         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56542
56543 2007-05-23  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56546         GNULIB_POSIXCHECK is defined.
56547
56548 2007-05-21  Bruno Haible  <bruno@clisp.org>
56549
56550         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56551         Check also the output for NaN arguments. When cross-compiling, guess
56552         no on IRIX.
56553         * lib/vasnprintf.c: Update comments.
56554         * tests/test-vasnprintf-posix.c (strisnan): New function.
56555         (test_function): Use it.
56556         * tests/test-vasprintf-posix.c (strisnan): New function.
56557         (test_function): Use it.
56558         * tests/test-snprintf-posix.h (strisnan): New function.
56559         (test_function): Use it.
56560         * tests/test-sprintf-posix.h (strisnan): New function.
56561         (test_function): Use it.
56562         Reported by Eric Blake.
56563
56564 2007-05-20  Bruno Haible  <bruno@clisp.org>
56565
56566         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56567         numbers that fails on BeOS.
56568         * doc/functions/frexpl.texi: Update.
56569
56570 2007-05-20  Jim Meyering  <jim@meyering.net>
56571
56572         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56573         forced upon us by glibc-2.6.
56574
56575 2007-05-20  Bruno Haible  <bruno@clisp.org>
56576
56577         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56578         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56579         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56580         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56581         NEED_PRINTF_INFINITE.
56582         (is_infinitel): New function.
56583         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56585         gl_PREREQ_VASNPRINTF_INFINITE.
56586         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56587         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56588         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56589         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56590         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56591         gl_PREREQ_VASNPRINTF_INFINITE.
56592         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56593         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56594         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56595         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56596         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56597         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56598         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56599         * doc/functions/fprintf.texi: Update.
56600         * doc/functions/printf.texi: Update.
56601         * doc/functions/snprintf.texi: Update.
56602         * doc/functions/sprintf.texi: Update.
56603         * doc/functions/vfprintf.texi: Update.
56604         * doc/functions/vprintf.texi: Update.
56605         * doc/functions/vsnprintf.texi: Update.
56606         * doc/functions/vsprintf.texi: Update.
56607
56608 2007-05-20  Bruno Haible  <bruno@clisp.org>
56609
56610         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56611         was not found in libc.
56612         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56613
56614 2007-05-20  Bruno Haible  <bruno@clisp.org>
56615
56616         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56617         printed as "-nan" instead of "nan".
56618         * tests/test-vasprintf-posix.c (test_function): Likewise.
56619         * tests/test-snprintf-posix.h (test_function): Likewise.
56620         * tests/test-sprintf-posix.h (test_function): Likewise.
56621         Needed for HP-UX 11.
56622
56623 2007-05-20  Jim Meyering  <jim@meyering.net>
56624
56625         Fix buggy test for the fchownat-deref bug.
56626         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56627         symlink required for the run-test.  Without it, this test would
56628         always declare that fchownat doesn't work, and client code would
56629         unnecessarily use the replacement function with fixed libc.
56630         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56631         Reported by Greg Schafer.
56632
56633 2007-05-19  Bruno Haible  <bruno@clisp.org>
56634
56635         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56636         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56637         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56638         Needed for IRIX 6.5 and Solaris 2.5.1.
56639
56640 2007-05-19  Bruno Haible  <bruno@clisp.org>
56641
56642         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56643         (test_function): Skip tests involving -0.0 on platforms where
56644         -0.0 = 0.0.
56645         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56646         (test_function): Skip tests involving -0.0 on platforms where
56647         -0.0 = 0.0.
56648         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56649         (test_function): Skip tests involving -0.0 on platforms where
56650         -0.0 = 0.0.
56651         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56652         (test_function): Skip tests involving -0.0 on platforms where
56653         -0.0 = 0.0.
56654         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56655         tests.
56656         * tests/test-printf-posix.h (test_function): Likewise.
56657         * tests/test-printf-posix.output: Remove all -0.0 related results.
56658         Needed for IRIX 6.5.
56659
56660 2007-05-19  Bruno Haible  <bruno@clisp.org>
56661
56662         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56663         printed as "nan0x7fffffff" instead of "nan".
56664         * tests/test-vasprintf-posix.c (test_function): Likewise.
56665         * tests/test-snprintf-posix.h (test_function): Likewise.
56666         * tests/test-sprintf-posix.h (test_function): Likewise.
56667         * tests/test-fprintf-posix.h (NaN): Remove macro.
56668         (test_function): Remove all NaN related tests.
56669         * tests/test-printf-posix.h (NaN): Remove macro.
56670         (test_function): Remove all NaN related tests.
56671         * tests/test-printf-posix.output: Remove all NaN related results.
56672         Needed for IRIX 6.5.
56673
56674 2007-05-19  Bruno Haible  <bruno@clisp.org>
56675
56676         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56677         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56678
56679 2007-05-19  Bruno Haible  <bruno@clisp.org>
56680
56681         * lib/float_.h: New file.
56682         * m4/float_h.m4: New file.
56683         * modules/float: New file.
56684         * modules/isnanl (Dependencies): Add float.
56685         * modules/isnanl-nolibm (Dependencies): Likewise.
56686         * modules/mathl (Dependencies): Likewise.
56687         * modules/printf-frexpl (Dependencies): Likewise.
56688         * modules/signbit (Dependencies): Likewise.
56689         * modules/vasnprintf (Dependencies): Likewise.
56690         * doc/headers/float.texi: Update.
56691
56692 2007-05-19  Jim Meyering  <jim@meyering.net>
56693
56694         * lib/utimens.c (gl_futimens): Rename from futimens,
56695         now that glibc-2.6 declares futimens.
56696         * lib/utimens.h: Likewise.
56697
56698 2007-05-19  Bruno Haible  <bruno@clisp.org>
56699
56700         Avoid test failures on mingw.
56701         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56702         * tests/test-printf-posix.sh: Likewise.
56703         * tests/test-vfprintf-posix.sh: Likewise.
56704         * tests/test-vprintf-posix.sh: Likewise.
56705
56706 2007-05-19  Bruno Haible  <bruno@clisp.org>
56707
56708         Fix *printf result for NaN, Inf, -0.0 on mingw.
56709         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56710         * lib/vasnprintf.c: Include math.h and isnan.h.
56711         (is_infinite_or_zero): New function.
56712         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56713         values in the %f, %F, %e, %E, %g, %G directives.
56714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56715         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56716         gl_PRINTF_INFINITE and test its result. Invoke
56717         gl_PREREQ_VASNPRINTF_INFINITE.
56718         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56719         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56720         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56721         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56722         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56723         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56724         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56725         * doc/functions/fprintf.texi: Update.
56726         * doc/functions/printf.texi: Update.
56727         * doc/functions/snprintf.texi: Update.
56728         * doc/functions/sprintf.texi: Update.
56729         * doc/functions/vfprintf.texi: Update.
56730         * doc/functions/vprintf.texi: Update.
56731         * doc/functions/vsnprintf.texi: Update.
56732         * doc/functions/vsprintf.texi: Update.
56733
56734 2007-05-19  Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56737         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56738         Instead of multiplying with 10^k, set extra_zeroes to k.
56739         (scale10_round_long_double): Remove function.
56740
56741 2007-05-18  Bruno Haible  <bruno@clisp.org>
56742
56743         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56744         introduced on 2007-05-06.
56745
56746 2007-05-18  Bruno Haible  <bruno@clisp.org>
56747
56748         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56749         %g directives.
56750         * tests/test-vasprintf-posix.c (test_function): Likewise.
56751         * tests/test-snprintf-posix.h (test_function): Likewise.
56752         * tests/test-sprintf-posix.h (test_function): Likewise.
56753
56754 2007-05-18  Bruno Haible  <bruno@clisp.org>
56755
56756         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56757         (strmatch): New function.
56758         (test_function): Test the %f directive on numbers of various exponents.
56759         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56760         (strmatch): New function.
56761         (test_function): Test the %f directive on numbers of various exponents.
56762         * tests/test-snprintf-posix.h (strmatch): New function.
56763         (test_function): Test the %f directive on numbers of various exponents.
56764         * tests/test-sprintf-posix.h (strmatch): New function.
56765         (test_function): Test the %f directive on numbers of various exponents.
56766         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56767         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56768         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56769         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56770
56771 2007-05-18  Bruno Haible  <bruno@clisp.org>
56772
56773         Add support for 'long double' number output.
56774         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56775         * lib/vasnprintf.c: Include math.h and float+.h.
56776         (mp_limb_t): New type.
56777         (GMP_LIMB_BITS): New macro.
56778         (mp_twolimb_t): New type.
56779         (GMP_TWOLIMB_BITS): New macro.
56780         (mpn_t): New type.
56781         (multiply, divide, convert_to_decimal, decode_long_double,
56782         scale10_round_long_double, scale10_round_decimal_long_double,
56783         floorlog10l): New functions.
56784         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56785         for the %f, %F, %e, %E, %g, %G directives.
56786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56787         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56788         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56789         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56790         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56792         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56793         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56794         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56795         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56796         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56797         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56798         * modules/snprintf-posix (Depends-on): Likewise.
56799         * modules/sprintf-posix (Depends-on): Likewise.
56800         * modules/vasnprintf-posix (Depends-on): Likewise.
56801         * modules/vasprintf-posix (Depends-on): Likewise.
56802         * modules/vfprintf-posix (Depends-on): Likewise.
56803         * modules/vsnprintf-posix (Depends-on): Likewise.
56804         * modules/vsprintf-posix (Depends-on): Likewise.
56805         * modules/vasnprintf (Files): Add lib/float+.h.
56806         * doc/functions/fprintf.texi: Update.
56807         * doc/functions/printf.texi: Update.
56808         * doc/functions/snprintf.texi: Update.
56809         * doc/functions/sprintf.texi: Update.
56810         * doc/functions/vfprintf.texi: Update.
56811         * doc/functions/vprintf.texi: Update.
56812         * doc/functions/vsnprintf.texi: Update.
56813         * doc/functions/vsprintf.texi: Update.
56814
56815 2007-05-18  Bruno Haible  <bruno@clisp.org>
56816
56817         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56818
56819 2007-05-18  Bruno Haible  <bruno@clisp.org>
56820
56821         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56822         for printing 64-bit integers. Needed for mingw.
56823
56824 2007-05-18  Bruno Haible  <bruno@clisp.org>
56825
56826         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56827         gl_FUNC_FREXPL_WORKS.
56828         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56829
56830 2007-05-18  Bruno Haible  <bruno@clisp.org>
56831
56832         * modules/frexpl-nolibm-tests: New file.
56833
56834         * modules/frexpl-nolibm: New file.
56835         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56836
56837 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56840         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56841         GCC 4.2, which otherwise issues a lot of warnings.
56842         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56843         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56844         Likewise.
56845         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56846         * modules/iconv_open (iconv.h): Likewise.
56847         * modules/locale (locale.h): Likewise.
56848         * modules/netinet_in (netinet/in.h): Likewise.
56849         * modules/sys_select (sys_select.h): Likewise.
56850         * modules/sys_socket (sys/socket.h): Likewise.
56851         * modules/sys_stat (sys/stat.h): Likewise.
56852         * modules/sysexits (sysexits.h): Likewise.
56853         * modules/unistd (unistd.h): Likewise.
56854
56855 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56856
56857         * modules/closein-tests (Makefile.am): Distribute
56858         `test-closein.sh'.
56859
56860 2007-05-17  Bruno Haible  <bruno@clisp.org>
56861
56862         * tests/test-printf-posix.output: Renamed from
56863         tests/test-fprintf-posix.out.
56864         * modules/fprintf-posix-tests: Update.
56865         * modules/printf-posix-tests: Update.
56866         * modules/vfprintf-posix-tests: Update.
56867         * modules/vprintf-posix-tests: Update.
56868         * tests/test-fprintf-posix.sh: Update.
56869         * tests/test-printf-posix.sh: Update.
56870         * tests/test-vfprintf-posix.sh: Update.
56871         * tests/test-vprintf-posix.sh: Update.
56872         Reported by Ralf Wildenhues.
56873
56874 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56875
56876         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56877         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56878         GCC 4.2, which otherwise issues a lot of warnings.
56879         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56880         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56881         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56882         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56883         it should no longer be needed.
56884         * lib/string_.h: Likewise.
56885         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56886         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56887         * modules/inttypes (inttypes.h): Likewise.
56888         * modules/math (math.h): Likewise.
56889         * modules/search (search.h): Likewise.
56890         * modules/signal (signal.h): Likewise.
56891         * modules/stdint (stdint.h): Likewise.
56892         * modules/stdio (stdio.h): Likewise.
56893         * modules/stdlib (stdlib.h): Likewise.
56894         * modules/string (string.h): Likewise.
56895         * modules/sys_time (sys/time.h): Likewise.
56896         * modules/time (time.h): Likewise.
56897         * modules/wchar (wchar.h): Likewise.
56898         * modules/wctype (wtype.h): Likewise.
56899
56900 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56901
56902         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56903
56904 2007-05-13  Bruno Haible  <bruno@clisp.org>
56905
56906         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56907         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56908         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56909         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56910         (gl_PREREQ_STRTOK_R): Don't require it here.
56911
56912 2007-05-13  Bruno Haible  <bruno@clisp.org>
56913
56914         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56915         when used in C++ mode.
56916
56917 2007-05-12  Bruno Haible  <bruno@clisp.org>
56918
56919         * lib/linebuffer.h: Tweak doc.
56920         * lib/linebuffer.c: Likewise.
56921
56922 2007-05-12  James Youngman  <jay@gnu.org>
56923
56924         * lib/linebuffer.c (readlinebuffer_delim): New function,
56925         like readlinebuffer, but use a caller-specified delimiter.
56926         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56927         as the delimiter.
56928         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56929
56930 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56931
56932         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56933         * modules/openat (Files): Remove openat-die.c.
56934         (Depends-on): Add openat-die.
56935         * modules/openat-die: New module.
56936
56937 2007-05-06  Bruno Haible  <bruno@clisp.org>
56938
56939         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56940         Update with info about Cygwin.
56941         * doc/functions/fprintf.texi: Update.
56942         * doc/functions/printf.texi: Update.
56943         * doc/functions/snprintf.texi: Update.
56944         * doc/functions/sprintf.texi: Update.
56945         * doc/functions/vfprintf.texi: Update.
56946         * doc/functions/vprintf.texi: Update.
56947         * doc/functions/vsnprintf.texi: Update.
56948         * doc/functions/vsprintf.texi: Update.
56949         Reported by Eric Blake.
56950
56951 2007-05-06  Bruno Haible  <bruno@clisp.org>
56952
56953         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56954         padding ourselves for the floating-point directives.
56955         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56958         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56959         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56960         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56961         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56962         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56963         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56964         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56965         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56966         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56967         * tests/test-snprintf-posix.h (test_function): Also check the width
56968         and some flags in the %f directive.
56969         * tests/test-sprintf-posix.h (test_function): Likewise.
56970         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56971         * tests/test-vasprintf-posix.c (test_function): Likewise.
56972         * doc/functions/fprintf.texi: Update.
56973         * doc/functions/printf.texi: Update.
56974         * doc/functions/snprintf.texi: Update.
56975         * doc/functions/sprintf.texi: Update.
56976         * doc/functions/vfprintf.texi: Update.
56977         * doc/functions/vprintf.texi: Update.
56978         * doc/functions/vsnprintf.texi: Update.
56979         * doc/functions/vsprintf.texi: Update.
56980
56981 2007-05-06  Bruno Haible  <bruno@clisp.org>
56982
56983         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56984         pass the ' flag character to sprintf or snprintf.
56985         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56987         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56988         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56989         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56990         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56992         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56994         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56996         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56997         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56998         flag.
56999         * tests/test-sprintf-posix.h (test_function): Likewise.
57000         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57001         * tests/test-vasprintf-posix.c (test_function): Likewise.
57002         * doc/functions/fprintf.texi: Update.
57003         * doc/functions/printf.texi: Update.
57004         * doc/functions/snprintf.texi: Update.
57005         * doc/functions/sprintf.texi: Update.
57006         * doc/functions/vfprintf.texi: Update.
57007         * doc/functions/vprintf.texi: Update.
57008         * doc/functions/vsnprintf.texi: Update.
57009         * doc/functions/vsprintf.texi: Update.
57010
57011 2007-05-01  Bruno Haible  <bruno@clisp.org>
57012
57013         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
57014
57015 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
57016
57017         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
57018         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
57019
57020 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57021
57022         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
57023         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
57024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
57025
57026 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
57027
57028         * lib/argp-help.c (struct hol_entry): New member `ord'.
57029         (HOL_ENTRY_PTRCMP): Use ord for comparison
57030         (hol_sort): Initialize ord.
57031
57032 2007-05-01  Bruno Haible  <bruno@clisp.org>
57033
57034         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
57035         Reported by Eric Blake.
57036         * doc/gnulib.texi (Function Substitutes): Update.
57037
57038 2007-05-01  Bruno Haible  <bruno@clisp.org>
57039
57040         * doc/functions.texi: Remove file, now redundant through
57041         doc/functions/*.texi.
57042
57043 2007-05-01  Bruno Haible  <bruno@clisp.org>
57044
57045         * modules/argp (Depends-on): Add sleep.
57046
57047 2007-05-01  Bruno Haible  <bruno@clisp.org>
57048
57049         * modules/sleep-tests: New file.
57050         * tests/test-sleep.c: New file.
57051
57052         * modules/sleep: New file.
57053         * lib/sleep.c: New file.
57054         * m4/sleep.m4: New file.
57055         * lib/unistd_.h (sleep): New declaration.
57056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
57057         HAVE_SLEEP.
57058         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
57059         * doc/functions/sleep.texi: Document the sleep module.
57060
57061 2007-05-01  Bruno Haible  <bruno@clisp.org>
57062
57063         * lib/sigprocmask.h: Remove file.
57064         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
57065         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
57066         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
57067         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
57068         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
57069         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
57070         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
57071         HAVE_SIGSET_T as a shell variable.
57072         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
57073         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
57074         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
57075         (Depends-on): Add signal. Remove verify.
57076         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
57077         (Include): Mention <signal.h> instead of sigprocmask.h.
57078         * NEWS: Mention the change.
57079         * lib/fatal-signal.c: Don't include sigprocmask.h.
57080
57081 2007-05-01  Bruno Haible  <bruno@clisp.org>
57082
57083         * modules/signal: New file.
57084         * lib/signal_.h: New file.
57085         * m4/signal_h.m4: New file.
57086
57087 2007-05-01  Bruno Haible  <bruno@clisp.org>
57088
57089         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
57090         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
57091         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
57092         HAVE_WCTYPE_CTMP_BUG into wctype.h.
57093
57094 2007-05-01  Bruno Haible  <bruno@clisp.org>
57095
57096         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
57097         configure time.
57098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
57099         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
57100         * modules/sys_stat (Makefile.am): Substitute their values into
57101         sys/stat.h.
57102
57103 2007-05-01  Bruno Haible  <bruno@clisp.org>
57104
57105         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
57106         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
57107         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
57108
57109 2007-05-01  Bruno Haible  <bruno@clisp.org>
57110
57111         * doc/header/assert.texi: Undo last change: don't mention the gnulib
57112         'assert' module here.
57113
57114 2007-05-01  Bruno Haible  <bruno@clisp.org>
57115
57116         * doc/functions/*.texi: New files.
57117         * doc/functions/google-ranking.txt: New file.
57118         * doc/gnulib.texi (Function Substitutes): New chapter.
57119         (ctime, inet_ntoa): Remove sections.
57120         * doc/ctime.texi: Remove file.
57121         * doc/inet_ntoa.texi: Remove file.
57122         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
57123         dependencies.
57124         (%.info): New rule, specifying a --reference-limit.
57125
57126 2007-05-01  Bruno Haible  <bruno@clisp.org>
57127
57128         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
57129
57130 2007-05-01  Bruno Haible  <bruno@clisp.org>
57131
57132         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
57133         the portability of 'mkdir' to mingw systems.
57134
57135 2007-05-01  Bruno Haible  <bruno@clisp.org>
57136
57137         * doc/headers/google-ranking.txt: New file.
57138
57139 2007-04-30  Eric Blake  <ebb9@byu.net>
57140
57141         Prefer fseeko to fseek.
57142         * modules/getpass (Depends-on): Add fseeko.
57143         * lib/getpass.c (getpass): Use fseeko, not fseek.
57144
57145 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
57146
57147         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
57148         assumes the sorting is stable, while most qsort implementations
57149         are not.  Use argument addresses to ensure they never compare as
57150         equal.
57151
57152         * tests/test-argp-2.sh (usage-indent test): Fix output
57153         (func_compare): Restore diff options
57154         * tests/test-argp.c: Restore #include "progname.h"
57155
57156 2007-04-29  Bruno Haible  <bruno@clisp.org>
57157
57158         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
57159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57160         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
57161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57162         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
57163         (configure.ac): Define CHECK_SNPRINTF_POSIX.
57164         (TESTS, check_PROGRAMS): Add test-snprintf.
57165         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
57166         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
57167         (TESTS, check_PROGRAMS): Add test-vsnprintf.
57168         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
57169         assertions that fail on HP-UX, OSF/1, or IRIX.
57170         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
57171
57172 2007-04-29  Bruno Haible  <bruno@clisp.org>
57173
57174         * MODULES.html.sh (posix_functions): Remove 'contents'.
57175
57176 2007-04-29  Karl Berry  <karl@gnu.org>
57177
57178         * config/srclist.txt (gendocs_template_min): new entry.
57179
57180 2007-04-29  Bruno Haible  <bruno@clisp.org>
57181
57182         Work around fpurge bug on BSD systems.
57183         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
57184         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
57185         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
57186         fpurge to rpl_fpurge if the system already has this function.
57187         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
57188         the case where the system already has this function. Correct invariants
57189         on BSD systems.
57190         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
57191         BSD systems.
57192
57193 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57194
57195         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
57196         proposed by Sven Verdoolaege.
57197
57198         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
57199         options.
57200         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
57201         (usage and help tests): Update
57202
57203 2007-04-29  Bruno Haible  <bruno@clisp.org>
57204
57205         * tests/test-fflush.c (main): Use a file of size 17, not 10.
57206         Print more information in case of failure. Disable a test on BeOS.
57207
57208 2007-04-29  Bruno Haible  <bruno@clisp.org>
57209
57210         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
57211         This helps debugging on systems on which no gdb is available.
57212
57213 2007-04-29  Bruno Haible  <bruno@clisp.org>
57214
57215         * lib/freading.h: Improve comments.
57216         * lib/fwriting.h: Likewise.
57217         * tests/test-freading.c (main): Don't check freading immediately after
57218         repositioning. Needed for glibc.
57219
57220 2007-04-29  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/freading.c (freading): Trivial simplification.
57223
57224 2007-04-28  Bruno Haible  <bruno@clisp.org>
57225
57226         * tests/test-fwriting.c (main): Also test the interaction between
57227         fflush and fwriting.
57228         * modules/fwriting-tests (Depends-on): Add fflush.
57229
57230         * tests/test-freading.c (main): Also test the interaction between
57231         fflush and freading.
57232         * modules/freading-tests (Depends-on): Add fflush.
57233
57234 2007-04-28  Bruno Haible  <bruno@clisp.org>
57235
57236         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
57237         fseeko and ftello.
57238         Suggested by Eric Blake.
57239
57240 2007-04-28  Jim Meyering  <jim@meyering.net>
57241
57242         Avoid false-negative in gl_STDINT_H's C99 conformance test.
57243         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
57244         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
57245
57246 2007-04-27  Eric Blake  <ebb9@byu.net>
57247
57248         * doc/headers/assert.texi (assert.h): Document assert module use.
57249
57250 2007-04-27  Bruno Haible  <bruno@clisp.org>
57251
57252         * doc/headers/*.texi: New files.
57253         * doc/gnulib.texi (Header File Substitutes): New chapter.
57254         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
57255         dependencies.
57256         (standards.info ,standards.html, standards.dvi): Update dependencies.
57257         (mostlyclean, clean): New targets.
57258
57259 2007-04-27  Bruno Haible  <bruno@clisp.org>
57260
57261         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
57262         * modules/sysexits (Files, Makefile.am): Update.
57263
57264         * lib/sys_socket_.h: Renamed from lib/socket_.h.
57265         * modules/sys_socket (Files, Makefile.am): Update.
57266
57267         * lib/sys_stat_.h: Renamed from lib/stat_.h.
57268         * modules/sys_stat (Files, Makefile.am): Update.
57269
57270 2007-04-27  Eric Blake  <ebb9@byu.net>
57271
57272         * lib/freading.h: Improve comments.
57273         * lib/fwriting.h: Likewise.
57274         * lib/fflush.c: Likewise.
57275
57276         Fix closein for mingw.
57277         * modules/closein-tests: Add tests for closein.
57278         * tests/test-closein.c: New file.
57279         * tests/test-closein.sh: Likewise.
57280         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
57281         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
57282
57283 2007-04-27  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
57286         version is < 6.
57287         * lib/math_.h [__DECC]: Likewise.
57288         * lib/stdio_.h [__DECC]: Likewise.
57289         * lib/stdlib_.h [__DECC]: Likewise.
57290         * lib/string_.h [__DECC]: Likewise.
57291         * lib/time_.h [__DECC]: Likewise.
57292         * lib/wchar_.h [__DECC]: Likewise.
57293         * lib/wctype_.h [__DECC]: Likewise.
57294
57295 2007-04-27  Bruno Haible  <bruno@clisp.org>
57296
57297         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
57298
57299 2007-04-27  Bruno Haible  <bruno@clisp.org>
57300
57301         * lib/fflush.c: Add comments.
57302         * modules/fpurge-tests (Depends-on): Add fflush.
57303         * modules/freadable-tests (Depends-on): Likewise.
57304         * modules/fwritable-tests (Depends-on): Likewise.
57305
57306 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
57307
57308         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
57309         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
57310         Report by Bruno Haible <bruno@clisp.org>.
57311
57312 2007-04-26  Eric Blake  <ebb9@byu.net>
57313
57314         Fix fflush on mingw.
57315         * modules/fflush (Depends-on): Add freading.
57316         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
57317         but unread data.
57318
57319 2007-04-26  Eric Blake  <ebb9@byu.net>
57320         and Bruno Haible  <bruno@clisp.org>
57321
57322         Implement freading and fwriting.
57323         * lib/freading.c: New file.
57324         * lib/freading.h: Likewise.
57325         * m4/freading.m4: Likewise.
57326         * modules/freading: Likewise.
57327         * modules/freading-tests: Likewise.
57328         * tests/test-freading.c: Likewise.
57329         * lib/fwriting.c: New file.
57330         * lib/fwriting.h: Likewise.
57331         * m4/fwriting.m4: Likewise.
57332         * modules/fwriting: Likewise.
57333         * modules/fwriting-tests: Likewise.
57334         * tests/test-fwriting.c: Likewise.
57335         * MODULES.html.sh (File stream based Input/Output): Mention them.
57336
57337 2007-04-26  Bruno Haible  <bruno@clisp.org>
57338
57339         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
57340         'long' when we assume it.
57341         Suggested by Eric Blake.
57342
57343 2007-04-26  Bruno Haible  <bruno@clisp.org>
57344
57345         Ensure fseeko, ftello are declared on glibc systems.
57346         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
57347         * modules/fseeko (configure.ac-early): Likewise.
57348         * modules/ftello (configure.ac-early): Likewise.
57349         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
57350         AC_FUNC_FSEEKO for this.
57351         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
57352         (gl_CHECK_FSEEKO): Remove macro.
57353
57354 2007-04-26  Bruno Haible  <bruno@clisp.org>
57355
57356         * tests/test-fflush.c (main): Also check the ftell result after
57357         fflush and fseek/fseeko.
57358         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
57359         file descriptor position cache in the stream.
57360         * lib/fseeko.c (rpl_fseeko): Likewise.
57361
57362 2007-04-26  Bruno Haible  <bruno@clisp.org>
57363
57364         * modules/fflush-tests (Depends-on): Add fseeko.
57365
57366 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
57367             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57368
57369         * lib/argz_.h: ensure error_t definition is obtained in same
57370         mechanism system argz.h would have.
57371         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
57372         argz facilities are known bad.  Err on the side of caution if
57373         cross-compiling.
57374
57375 2007-04-25  Eric Blake  <ebb9@byu.net>
57376
57377         * lib/fpurge.c (includes): Use stdlib.h for free.
57378         * tests/test-fflush.c (main): Also test fflush-fseeko.
57379
57380 2007-04-25  Bruno Haible  <bruno@clisp.org>
57381
57382         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
57383         * lib/fseeko.c: New file.
57384         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
57385         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
57386         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
57387         gl_FUNC_FSEEKO.
57388         (gl_FUNC_FSEEKO): Invoke it.
57389         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
57390         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
57391         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
57392
57393 2007-04-25  Bruno Haible  <bruno@clisp.org>
57394
57395         * modules/fflush (Depends-on): Add ftello.
57396
57397 2007-04-25  Bruno Haible  <bruno@clisp.org>
57398
57399         * modules/ftello-tests: New file.
57400         * tests/test-ftello.c: New file.
57401
57402         * modules/ftello: New file.
57403         * m4/ftello.m4: New file.
57404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
57405         HAVE_FTELLO.
57406         * lib/stdio_.h (ftello): New declaration.
57407         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
57408         HAVE_FTELLO.
57409
57410 2007-04-25  Bruno Haible  <bruno@clisp.org>
57411
57412         * modules/fseeko-tests: New file.
57413         * tests/test-fseeko.c: New file.
57414
57415         * modules/fseeko: New file.
57416         * m4/fseeko.m4: New file.
57417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
57418         HAVE_FSEEKO.
57419         * lib/stdio_.h (fseeko): New declaration.
57420         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
57421         HAVE_FSEEKO.
57422
57423 2007-04-25  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
57426
57427 2007-04-25  Bruno Haible  <bruno@clisp.org>
57428
57429         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
57430         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
57431         * tests/test-unistd.c: Likewise.
57432         * tests/test-fcntl.c: Likewise.
57433
57434 2007-04-23  Eric Blake  <ebb9@byu.net>
57435
57436         * lib/fflush.c: Fix missing include.
57437         Reported by Bruno Haible.
57438
57439 2007-04-23  Bruno Haible  <bruno@clisp.org>
57440
57441         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
57442         Reported by Eric Blake.
57443
57444 2007-04-23  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
57447
57448 2007-04-23  Bruno Haible  <bruno@clisp.org>
57449
57450         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
57451
57452 2007-04-23  Bruno Haible  <bruno@clisp.org>
57453
57454         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
57455         Needed on HP-UX 11.
57456
57457 2007-04-16  Eric Blake  <ebb9@byu.net>
57458
57459         Make fflush rely on fpurge.
57460         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
57461         open coding all variants.
57462         * modules/fflush (Depends-on): Add fpurge and unistd.
57463         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
57464         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
57465
57466         Fix --with-tests compilation on cygwin.
57467         * modules/argmatch-tests (Makefile.am): List gnulib library first
57468         in LDADD.
57469         * modules/argp-tests (Makefile.am): Likewise.
57470         * modules/array-list-tests (Makefile.am): Likewise.
57471         * modules/array-oset-tests (Makefile.am): Likewise.
57472         * modules/avltree-list-tests (Makefile.am): Likewise.
57473         * modules/avltree-oset-tests (Makefile.am): Likewise.
57474         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57475         * modules/carray-list-tests (Makefile.am): Likewise.
57476         * modules/dirname-tests (Makefile.am): Likewise.
57477         * modules/frexp-tests (Makefile.am): Likewise.
57478         * modules/isnanl-tests (Makefile.am): Likewise.
57479         * modules/linked-list-tests (Makefile.am): Likewise.
57480         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57481         * modules/lock-tests (Makefile.am): Likewise.
57482         * modules/rbtree-list-tests (Makefile.am): Likewise.
57483         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57484         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57485         * modules/tls-tests (Makefile.am): Likewise.
57486         * modules/tsearch-tests (Makefile.am): Likewise.
57487         * modules/xvasprintf-tests (Makefile.am): Likewise.
57488
57489         Fix fpurge for cygwin.
57490         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
57491         value.
57492         * modules/fpurge-tests (Depends-on): Clean up trash.
57493
57494 2007-04-16  Simon Josefsson  <simon@josefsson.org>
57495
57496         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
57497
57498         * m4/autobuild.m4: Re-indent.
57499
57500 2007-04-13  Bruno Haible  <bruno@clisp.org>
57501
57502         * modules/fpurge-tests: New file.
57503         * tests/test-fpurge.c: New file.
57504
57505         * modules/fpurge: New file.
57506         * lib/fpurge.h: New file.
57507         * lib/fpurge.c: New file.
57508         * m4/fpurge.m4: New file.
57509
57510 2007-04-13  Bruno Haible  <bruno@clisp.org>
57511
57512         * modules/fbufmode-tests: New file.
57513         * tests/test-fbufmode.c: New file.
57514
57515         * modules/fbufmode: New file.
57516         * lib/fbufmode.h: New file.
57517         * lib/fbufmode.c: New file.
57518         * m4/fbufmode.m4: New file.
57519
57520 2007-04-13  Bruno Haible  <bruno@clisp.org>
57521
57522         * modules/fwritable-tests: New file.
57523         * tests/test-fwritable.c: New file.
57524
57525         * modules/fwritable: New file.
57526         * lib/fwritable.h: New file.
57527         * lib/fwritable.c: New file.
57528         * m4/fwritable.m4: New file.
57529
57530 2007-04-13  Bruno Haible  <bruno@clisp.org>
57531
57532         * modules/freadable-tests: New file.
57533         * tests/test-freadable.c: New file.
57534
57535         * modules/freadable: New file.
57536         * lib/freadable.h: New file.
57537         * lib/freadable.c: New file.
57538         * m4/freadable.m4: New file.
57539
57540 2007-04-13  Bruno Haible  <bruno@clisp.org>
57541
57542         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57543         MOSTLYCLEANFILES.
57544
57545 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57546
57547         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57548         gzip bootstrap.conf to avoid dragging in i18n machinery.
57549         (gnulib_tool_option): Use it.
57550
57551 2007-04-13  Bruno Haible  <bruno@clisp.org>
57552
57553         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57554         %F directives.
57555         * tests/test-vasprintf-posix.c (test_function): Likewise.
57556         * tests/test-snprintf-posix.h (test_function): Likewise.
57557         * tests/test-sprintf-posix.h (test_function): Likewise.
57558         * tests/test-fprintf-posix.h (test_function): Likewise.
57559         * tests/test-printf-posix.h (test_function): Likewise.
57560         * tests/test-fprintf-posix.out: Likewise.
57561
57562 2007-04-13  Bruno Haible  <bruno@clisp.org>
57563
57564         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57565         * modules/tls-tests (configure.ac): Likewise.
57566         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57567
57568 2007-04-13  Bruno Haible  <bruno@clisp.org>
57569
57570         * lib/tls.c (glthread_tls_get): Fix return type.
57571         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57572
57573 2007-04-12  Eric Blake  <ebb9@byu.net>
57574
57575         * modules/gettime (Depends-on): Remove gettime.
57576         Reported by Dmitry V. Levin.
57577
57578 2007-04-12  Bruno Haible  <bruno@clisp.org>
57579
57580         * modules/fflush (Include): Mention <stdio.h>.
57581         * modules/strtoimax (Include): Mention <inttypes.h>.
57582         * modules/strtoumax (Include): Likewise.
57583
57584 2007-04-12  Eric Blake  <ebb9@byu.net>
57585
57586         * .cvsignore: New file.
57587         * .gitignore: Likewise.
57588
57589 2007-04-12  Bruno Haible  <bruno@clisp.org>
57590
57591         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57592         not before, since $(LDADD) often contains libgnu.a.
57593         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57594         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57595         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57596         Needed on Cygwin.
57597
57598 2007-04-12  Eric Blake  <ebb9@byu.net>
57599
57600         Work around glibc's failure to flush stdin on fclose.
57601         * lib/closein.c (close_stdin): Flush stdin before closing.
57602
57603         Work around glibc's failure to reset seekable stdin on exit.
57604         * modules/closein: New module.
57605         * lib/closein.c: New file.
57606         * lib/closein.h: Likewise.
57607         * m4/closein.m4: Likewise.
57608         * MODULES.html.sh (File stream based Input/Output): Document it.
57609
57610 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57611
57612         * gnulib-tool: Rename generated 'autobuild' script to
57613         'do-autobuild' in --create-megatestdir output.
57614
57615         * doc/gnulib.texi (Build robot for gnulib): Fix.
57616
57617 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57618
57619         * modules/sysexits (Depends-on): Add absolute-header.
57620
57621 2007-04-12  Eric Blake  <ebb9@byu.net>
57622
57623         No need to preserve errno on success.
57624         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57625         Reported by Bruno Haible.
57626
57627 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57628
57629         * MODULES.html.sh (Support for maintaining and releasing
57630         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57631
57632 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57633
57634         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57635
57636 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57637
57638         * modules/autobuild: New module.
57639
57640         * m4/autobuild.m4: New file.
57641
57642 2007-04-11  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57645         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57646         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57647         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57648         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57649         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57650         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57652         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57653         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57655         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57656         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57658         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57659         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57660         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57661         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57662         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57663         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57664         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57665         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57667         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57668         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57669         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57670         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57671         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57672         Reported by Eric Blake.
57673
57674 2007-04-11  Bruno Haible  <bruno@clisp.org>
57675
57676         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57677
57678 2007-04-10  Bruno Haible  <bruno@clisp.org>
57679
57680         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57681         for NaN and Infinity. Needed on FreeBSD 6.1.
57682         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57683         regarding results for "%010a" of Infinity and NaN.
57684         * tests/test-vasprintf-posix.c (test_function): Likewise.
57685         * tests/test-snprintf-posix.h (test_function): Likewise.
57686         * tests/test-sprintf-posix.h (test_function): Likewise.
57687         * tests/test-fprintf-posix.h (test_function): Likewise.
57688         * tests/test-printf-posix.h (test_function): Likewise.
57689         * tests/test-fprintf-posix.out: Likewise.
57690
57691 2007-04-10  Bruno Haible  <bruno@clisp.org>
57692
57693         * modules/locale-tests: New file.
57694         * tests/test-locale.c: New file.
57695
57696         * modules/locale: New file.
57697         * lib/locale_.h: New file.
57698         * m4/locale_h.m4: New file.
57699
57700 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57701             Bruno Haible  <bruno@clisp.org>
57702
57703         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57704         be determined, test for availability of the copysignf, copysign,
57705         copysignl functions.
57706         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57707         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57708         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57709
57710 2007-04-09  Eric Blake  <ebb9@byu.net>
57711
57712         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57713         * modules/stdio (Makefile.am): Support fflush.
57714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57715         * modules/fflush: New file.
57716         * lib/fflush.c: Likewise.
57717         * m4/fflush.m4: Likewise.
57718         * modules/fflush-tests: New test.
57719         * tests/test-fflush.c: Likewise.
57720         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57721
57722 2007-04-06  Bruno Haible  <bruno@clisp.org>
57723
57724         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57725         (VASNPRINTF): Use signbit for faster determination whether to print a
57726         minus sign.
57727         * modules/vasnprintf (Files): Remove lib/float+.h.
57728         * modules/fprintf-posix (Depends-on): Add signbit.
57729         * modules/snprintf-posix (Depends-on): Likewise.
57730         * modules/sprintf-posix (Depends-on): Likewise.
57731         * modules/vasnprintf-posix (Depends-on): Likewise.
57732         * modules/vasprintf-posix (Depends-on): Likewise.
57733         * modules/vfprintf-posix (Depends-on): Likewise.
57734         * modules/vsnprintf-posix (Depends-on): Likewise.
57735         * modules/vsprintf-posix (Depends-on): Likewise.
57736
57737 2007-04-06  Bruno Haible  <bruno@clisp.org>
57738
57739         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57740         * tests/test-frexpl.c (main): Likewise.
57741         * tests/test-ldexpl.c (main): Likewise.
57742         * modules/frexp-tests (Depends-on): Add signbit.
57743         * modules/frexpl-tests (Depdends-on): Likewise.
57744         * modules/ldexpl-tests (Depdends-on): Likewise.
57745
57746 2007-04-06  Bruno Haible  <bruno@clisp.org>
57747
57748         * modules/signbit-tests: New file.
57749         * tests/test-signbit.c: New file.
57750
57751         * modules/signbit: New file.
57752         * lib/signbitf.c: New file.
57753         * lib/signbitd.c: New file.
57754         * lib/signbitl.c: New file.
57755         * m4/signbit.m4: New file.
57756         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57757         (signbit): New macro.
57758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57759         REPLACE_SIGNBIT.
57760         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57761         REPLACE_FREXPL into math.h.
57762
57763 2007-04-06  Bruno Haible  <bruno@clisp.org>
57764
57765         * modules/isnanf-nolibm-tests: New file.
57766         * tests/test-isnanf.c: New file.
57767
57768         * modules/isnanf-nolibm: New file.
57769         * lib/isnanf.h: New file.
57770         * lib/isnanf.c: New file.
57771         * lib/isnan.c: Consider the USE_FLOAT macro.
57772         * m4/isnanf.m4: New file.
57773
57774 2007-04-06  Bruno Haible  <bruno@clisp.org>
57775
57776         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57777         (Link): New section.
57778
57779         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57780
57781 2007-04-06  Bruno Haible  <bruno@clisp.org>
57782
57783         Assume the 'long double' type.
57784         * m4/longdouble.m4: Remove file.
57785         * config/srclist.txt: Don't mention longdouble.m4.
57786         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57787         * lib/float+.h: Likewise.
57788         * lib/frexp.c: Likewise.
57789         * lib/printf-args.h: Likewise.
57790         * lib/printf-args.c: Likewise.
57791         * lib/printf-frexp.c: Likewise.
57792         * lib/printf-parse.c: Likewise.
57793         * lib/vasnprintf.c: Likewise.
57794         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57795         * m4/intl.m4: Likewise.
57796         * m4/isnanl.m4: Likewise.
57797         * m4/printf.m4: Likewise.
57798         * m4/printf-frexpl.m4: Likewise.
57799         * m4/vasnprintf.m4: Likewise.
57800         * modules/allocsa (Files): Remove m4/longdouble.m4.
57801         * modules/gettext (Files): Likewise.
57802         * modules/relocatable-prog-wrapper (Files): Likewise.
57803         * modules/vasnprintf (Files): Likewise.
57804         * modules/isnanl (Files): Likewise.
57805         (Include): Simplify.
57806         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57807         (Include): Simplify.
57808         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57809         (Include): Simplify.
57810         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57811         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57812         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57813         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57814         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57815         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57816         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57817         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57818         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57819         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57820         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57821         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57822         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57823         * tests/test-isnanl.c: Likewise.
57824         * tests/test-snprintf-posix.h: Likewise.
57825         * tests/test-sprintf-posix.h: Likewise.
57826         * tests/test-vasnprintf-posix.c: Likewise.
57827         * tests/test-vasnprintf-posix2.c: Likewise.
57828         * tests/test-vasprintf-posix.c: Likewise.
57829
57830 2007-04-06  Bruno Haible  <bruno@clisp.org>
57831
57832         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57833         * lib/math_.h [__DECC]: Include the overridden include file through
57834         #include_next, outside the double-inclusion guard.
57835         * lib/stdio_.h [__DECC]: Likewise.
57836         * lib/stdlib_.h [__DECC]: Likewise.
57837         * lib/string_.h [__DECC]: Likewise.
57838         * lib/time_.h [__DECC]: Likewise.
57839         * lib/wchar_.h [__DECC]: Likewise.
57840         * lib/wctype_.h [__DECC]: Likewise.
57841         * lib/inttypes_.h [__DECC]: Likewise.
57842         Reported by Albert Chin <china@thewrittenword.com> in
57843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57844
57845 2007-04-04  Eric Blake  <ebb9@byu.net>
57846
57847         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57848         1.5.x.
57849
57850 2007-04-04  Bruno Haible  <bruno@clisp.org>
57851
57852         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57853         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57854
57855 2007-04-04  Bruno Haible  <bruno@clisp.org>
57856
57857         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57858         results for "%010a" of Infinity and NaN.
57859         * tests/test-vasprintf-posix.c (test_function): Likewise.
57860         * tests/test-snprintf-posix.h (test_function): Likewise.
57861         * tests/test-sprintf-posix.h (test_function): Likewise.
57862         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57863         * tests/test-printf-posix.h (test_function): Likewise.
57864         * tests/test-fprintf-posix.out: Update.
57865         Needed for FreeBSD 6.1.
57866
57867 2007-04-04  Bruno Haible  <bruno@clisp.org>
57868
57869         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57870         directly used by the gnulib modules nor by gnulib-tool.
57871
57872 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57873
57874         * DEPENDENCIES: Give overall description of version dependency
57875         desirability.  Use more-typical names for apps.
57876         Add shell, coreutils, diffutils, grep, tar, gzip.
57877
57878 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57879
57880         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57881
57882 2007-04-04  Karl Berry  <karl@gnu.org>
57883
57884         * MODULES.html.sh (func_module): missing '.
57885
57886 2007-04-03  Bruno Haible  <bruno@clisp.org>
57887
57888         * modules/argmatch-tests (Makefile.am): New variable
57889         test_argmatch_LDADD.
57890         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57891         * modules/array-list-tests (Makefile.am): New variable
57892         test_array_list_LDADD.
57893         * modules/array-oset-tests (Makefile.am): New variable
57894         test_array_oset_LDADD.
57895         * modules/avltree-list-tests (Makefile.am): New variable
57896         test_avltree_list_LDADD.
57897         * modules/avltree-oset-tests (Makefile.am): New variable
57898         test_avltree_oset_LDADD.
57899         * modules/avltreehash-list-tests (Makefile.am): New variable
57900         test_avltreehash_list_LDADD.
57901         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57902         test_canonicalize_lgpl_LDADD.
57903         * modules/carray-list-tests (Makefile.am): New variable
57904         test_carray_list_LDADD.
57905         * modules/dirname-tests (Makefile.am): New variable
57906         test_dirname_LDADD.
57907         * modules/linked-list-tests (Makefile.am): New variable
57908         test_linked_list_LDADD.
57909         * modules/linkedhash-list-tests (Makefile.am): New variable
57910         test_linkedhash_list_LDADD.
57911         * modules/rbtree-list-tests (Makefile.am): New variable
57912         test_rbtree_list_LDADD.
57913         * modules/rbtree-oset-tests (Makefile.am): New variable
57914         test_rbtree_oset_LDADD.
57915         * modules/rbtreehash-list-tests (Makefile.am): New variable
57916         test_rbtreehash_list_LDADD.
57917         * modules/xvasprintf-tests (Makefile.am): New variable
57918         test_xvasprintf_LDADD.
57919         Reported by Eric Blake.
57920
57921 2007-04-03  Eric Blake  <ebb9@byu.net>
57922
57923         * DEPENDENCIES: Weaken m4 requirements.
57924
57925 2007-04-03  Bruno Haible  <bruno@clisp.org>
57926
57927         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57928         * modules/isnanl-tests (configure.ac): Likewise.
57929
57930 2007-04-03  Ben Pfaff  <blp@gnu.org>
57931
57932         * modules/iconv_open: Add $(srcdir)/ to source directory
57933         references in Makefile fragments that call gperf, to fix VPATH
57934         builds.
57935
57936 2007-04-03  Bruno Haible  <bruno@clisp.org>
57937
57938         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57939         * lib/ldexpl.c: Undo last change.
57940
57941 2007-04-03  Bruno Haible  <bruno@clisp.org>
57942
57943         * modules/printf-frexpl (Depends-on): Undo last change.
57944         (Files): Add m4/ldexpl.m4.
57945
57946 2007-04-03  Bruno Haible  <bruno@clisp.org>
57947
57948         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57949         * modules/isnanl (Link): New section.
57950
57951         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57952         * modules/frexp (Link): New section.
57953
57954         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57955         * modules/frexpl (Link): New section.
57956
57957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57958         * modules/ldexpl (Link): New section.
57959
57960 2007-04-03  Bruno Haible  <bruno@clisp.org>
57961
57962         * modules/TEMPLATE-EXTENDED: New file.
57963         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57964
57965 2007-04-03  Bruno Haible  <bruno@clisp.org>
57966
57967         * DEPENDENCIES: New file.
57968         Suggested by Simon Josefsson.
57969
57970 2007-04-03  Bruno Haible  <bruno@clisp.org>
57971
57972         * doc/gnulib.texi: Escape @.
57973
57974 2007-04-03  James Youngman  <jay@gnu.org>
57975         and Paul Eggert  <eggert@cs.ucla.edu>
57976
57977         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57978         birthtime on all systems that have birthtime, not just those which
57979         use st_birthtimensec rather than st_birthtim.  Putting zero in
57980         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57981         that the birth time is not available for files on an NFS mount.
57982
57983 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57984
57985         * modules/memxor: Move back from crypto/, suggested by Bruno.
57986         * modules/crypto/hmac-sha1: Fix memxor dependency.
57987
57988         * modules/crypto/gc: Moved from ../.
57989
57990 2007-04-02  Eric Blake  <ebb9@byu.net>
57991
57992         * lib/ldexpl.c (includes): Avoid libm.
57993
57994         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57995
57996 2007-04-02  Bruno Haible  <bruno@clisp.org>
57997
57998         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57999         on IRIX.
58000
58001 2007-04-02  Bruno Haible  <bruno@clisp.org>
58002
58003         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
58004         x86 or x86_64 platforms running MacOS X.
58005         Reported by Ryan Schmidt <@ryandesign.com>.
58006
58007 2007-04-02  Bruno Haible  <bruno@clisp.org>
58008
58009         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
58010         i386.
58011
58012 2007-04-01  Simon Josefsson  <simon@josefsson.org>
58013
58014         * modules/crypto/arcfour: Moved from ../.
58015         * modules/crypto/arcfour-tests: Moved from ../.
58016         * modules/crypto/arctwo: Moved from ../.
58017         * modules/crypto/arctwo-tests: Moved from ../.
58018         * modules/crypto/des: Moved from ../.
58019         * modules/crypto/des-tests: Moved from ../.
58020         * modules/crypto/gc-arcfour: Moved from ../.
58021         * modules/crypto/gc-arcfour-tests: Moved from ../.
58022         * modules/crypto/gc-arctwo: Moved from ../.
58023         * modules/crypto/gc-arctwo-tests: Moved from ../.
58024         * modules/crypto/gc-des: Moved from ../.
58025         * modules/crypto/gc-des-tests: Moved from ../.
58026         * modules/crypto/gc-hmac-md5: Moved from ../.
58027         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
58028         * modules/crypto/gc-hmac-sha1: Moved from ../.
58029         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
58030         * modules/crypto/gc-md2: Moved from ../.
58031         * modules/crypto/gc-md2-tests: Moved from ../.
58032         * modules/crypto/gc-md4: Moved from ../.
58033         * modules/crypto/gc-md4-tests: Moved from ../.
58034         * modules/crypto/gc-md5: Moved from ../.
58035         * modules/crypto/gc-md5-tests: Moved from ../.
58036         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
58037         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
58038         * modules/crypto/gc-random: Moved from ../.
58039         * modules/crypto/gc-rijndael: Moved from ../.
58040         * modules/crypto/gc-rijndael-tests: Moved from ../.
58041         * modules/crypto/gc-sha1: Moved from ../.
58042         * modules/crypto/gc-sha1-tests: Moved from ../.
58043         * modules/crypto/gc-tests: Moved from ../.
58044         * modules/crypto/hmac-md5: Moved from ../.
58045         * modules/crypto/hmac-md5-tests: Moved from ../.
58046         * modules/crypto/hmac-sha1: Moved from ../.
58047         * modules/crypto/hmac-sha1-tests: Moved from ../.
58048         * modules/crypto/md2: Moved from ../.
58049         * modules/crypto/md2-tests: Moved from ../.
58050         * modules/crypto/md4: Moved from ../.
58051         * modules/crypto/md4-tests: Moved from ../.
58052         * modules/crypto/md5: Moved from ../.
58053         * modules/crypto/md5-tests: Moved from ../.
58054         * modules/crypto/memxor: Moved from ../.
58055         * modules/crypto/rijndael: Moved from ../.
58056         * modules/crypto/rijndael-tests: Moved from ../.
58057         * modules/crypto/sha1: Moved from ../.
58058
58059 2007-03-30  James Youngman  <jay@gnu.org>
58060
58061         * tests/test-stat-time.c (prepare_test): use chmod() rather than
58062         rename() to change the ctime of a file (because ctime is unaffected
58063         by rename on jfs2 on AIX 5.1).
58064         (main): Start by doing cleanup, in case a previous run failed leaving
58065         test files behind.
58066
58067 2007-03-31  Bruno Haible  <bruno@clisp.org>
58068
58069         Support old proprietary implementations of iconv.
58070         * modules/iconv_open: New file.
58071         * lib/iconv_.h: New file.
58072         * m4/iconv_h.m4: New file.
58073         * lib/iconv_open.c: New file.
58074         * lib/iconv_open-aix.gperf: New file.
58075         * lib/iconv_open-hpux.gperf: New file.
58076         * lib/iconv_open-irix.gperf: New file.
58077         * lib/iconv_open-osf.gperf: New file.
58078         * m4/iconv_open.m4: New file.
58079         * modules/linebreak (Depends-on): Add iconv_open.
58080         * modules/striconv (Depends-on): Likewise.
58081         * modules/striconveh (Depends-on): Likewise.
58082         * modules/unicodeio (Depends-on): Likewise.
58083         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
58084         (iconv_t)(-1).
58085         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
58086         conversion if cd is (iconv_t)(-1).
58087         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
58088         is not possible.
58089
58090 2007-03-31  Bruno Haible  <bruno@clisp.org>
58091
58092         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58093         work on Solaris either. Protect also second use of "autodetect_jp".
58094
58095 2007-03-31  Bruno Haible  <bruno@clisp.org>
58096
58097         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
58098         the function is not present.
58099
58100 2007-03-31  Bruno Haible  <bruno@clisp.org>
58101
58102         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
58103         the function is not present.
58104
58105 2007-03-31  Bruno Haible  <bruno@clisp.org>
58106
58107         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
58108         a bug in HP-UX iconv_open().
58109
58110 2007-03-31  Bruno Haible  <bruno@clisp.org>
58111
58112         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
58113         (Mathematics <math.h>): New section, add fpieee.
58114         (Input/output <stdio.h>): Add fseterr.
58115         (Mathematics <math.h>): New section, add printf-frexp.
58116         (Container data structures): Add sublist.
58117         (Core language properties): Add fpucw, inline.
58118         (Functions for greatest-width integer types <inttypes.h>): Add
58119         imaxabs, imaxdiv, inttypes.
58120         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
58121         isnanl-nolibm, ldexp.
58122         (Mathematics <math.h>): New section, add printf-frexpl.
58123         (Support for systems lacking POSIX:2001): Add fprintf-posix,
58124         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
58125         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
58126         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
58127         (Unicode string functions): Add unistr/u*-mbtoucr.
58128         (Java): Add javacomp-script, javaexec-script.
58129         (C#): Add csharpcomp-script, csharpexec-script.
58130         (Support for building libraries and executables): Add havelib,
58131         relocatable-*.
58132         (Support for maintaining and releasing projects): Renamed from
58133         'Support for maintaining and release projects'. Add announce-gen.
58134
58135 2007-03-31  Bruno Haible  <bruno@clisp.org>
58136
58137         * README: Talk primarily about git.
58138         (git and CVS): Renamed from CVS.
58139         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
58140         gnulib is available through git.
58141         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
58142
58143 2007-03-30  Bruno Haible  <bruno@clisp.org>
58144
58145         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
58146         * lib/poll_.h: Likewise.
58147         * lib/stat_.h: Likewise.
58148         * lib/sys_time_.h: Likewise.
58149         * lib/sysexit_.h: Likewise.
58150         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
58151         * lib/stdbool_.h: Likewise.
58152         * lib/byteswap_.h: Add double-inclusion guard.
58153
58154 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
58155
58156         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
58157
58158 2007-03-30  Karl Berry  <karl@gnu.org>
58159
58160         * config/srclist-update: double space after USA in the license
58161         substitution, since that's how it's usually (?) written.
58162
58163 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58164
58165         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
58166         reported by Bruno Haible.
58167
58168 2007-03-29  Bruno Haible  <bruno@clisp.org>
58169
58170         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
58171         a bug in AIX iconv().
58172
58173 2007-03-29  Bruno Haible  <bruno@clisp.org>
58174
58175         * modules/ldexpl-tests: New file.
58176         * tests/test-ldexpl.c: New file.
58177
58178 2007-03-29  Bruno Haible  <bruno@clisp.org>
58179
58180         * lib/ldexpl.c: Include fpucw.h.
58181         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
58182         multiplication.
58183         * modules/ldexpl (Depends-on): Add fpucw.
58184
58185 2007-03-29  Bruno Haible  <bruno@clisp.org>
58186
58187         * modules/ldexpl: New file.
58188         * m4/ldexpl.m4: New file.
58189         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
58190         set.
58191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
58192         REPLACE_LDEXPL.
58193         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
58194         REPLACE_LDEXPL.
58195         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58196         gl_FUNC_LDEXPL_WORKS.
58197         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
58198         * modules/mathl (Files): Remove lib/ldexpl.c.
58199         (Depends-on): Add ldexpl.
58200
58201 2007-03-29  Bruno Haible  <bruno@clisp.org>
58202
58203         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
58204
58205 2007-03-29  Bruno Haible  <bruno@clisp.org>
58206
58207         * tests/test-striconveh.c (main): Don't assume that a direct conversion
58208         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
58209         and possibly also HP-UX.
58210         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58211         work on AIX, IRIX, HP-UX, OSF/1.
58212         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58213         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58214         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58215         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58216         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
58217         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58218
58219 2007-03-29  Bruno Haible  <bruno@clisp.org>
58220
58221         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
58222
58223 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58224
58225         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
58226         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
58227
58228 2007-03-29  Eric Blake  <ebb9@byu.net>
58229
58230         * lib/acl-internal.h: Remove redundant include.
58231         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
58232         Cygwin when a file is locked.
58233
58234 2007-03-29  Bruno Haible  <bruno@clisp.org>
58235
58236         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
58237         file.
58238         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
58239
58240 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58241
58242         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
58243         try to remove a parent directory if the child couldn't be removed
58244         (except for the first rmdir, which could fail because the child
58245         doesn't exist).  Problem reported by Jeff Blaine in
58246         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
58247
58248 2007-03-28  Bruno Haible  <bruno@clisp.org>
58249
58250         * lib/striconveh.c (utf8conv_carefully): New function.
58251         (mem_cd_iconveh_internal): Invoke it.
58252
58253 2007-03-28  Bruno Haible  <bruno@clisp.org>
58254
58255         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
58256         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58257         input.
58258         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58259         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
58260         unistr/u8-uctomb.
58261
58262 2007-03-28  Bruno Haible  <bruno@clisp.org>
58263
58264         * modules/unistr/u8-mbtoucr: New file.
58265         * lib/unistr/u8-mbtoucr.c: New file.
58266         * modules/unistr/u16-mbtoucr: New file.
58267         * lib/unistr/u16-mbtoucr.c: New file.
58268         * modules/unistr/u16-mbtoucr: New file.
58269         * lib/unistr/u16-mbtoucr.c: New file.
58270         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
58271
58272 2007-03-27  Simon Josefsson  <simon@josefsson.org>
58273             Bruno Haible  <bruno@clisp.org>
58274
58275         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
58276         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
58277         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
58278
58279         * m4/stdio_h.m4: Add stubs for vasprintf too.
58280
58281         * modules/stdio: Support vasprintf in sed command.
58282
58283         * modules/vasprintf: Depend on stdio for prototypes.  Remove
58284         vasprintf.h.  Add stdio module indicator.
58285
58286         * lib/stdio_.h: Declare asprintf and vasprintf, based on
58287         vasprintf.h.
58288
58289         * lib/vasprintf.h: File removed.
58290
58291         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
58292         * lib/vasprintf.c: Ditto.
58293         * lib/xvasprintf.c: Ditto.
58294         * tests/test-vasprintf-posix.c: Ditto.
58295         * tests/test-vasprintf.c: Ditto.
58296
58297 2007-03-27  Bruno Haible  <bruno@clisp.org>
58298
58299         Make vasnprintf multithread-safe.
58300         * lib/vasnprintf.c (decimal_point_char): New function.
58301         (VASNPRINTF): Use it.
58302         Suggested by Simon Josefsson.
58303
58304 2007-03-27  Eric Blake  <ebb9@byu.net>
58305
58306         Support sub-second birthtime on cygwin.
58307         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
58308         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
58309         (get_stat_birthtime): Also work with st_birthtim.
58310
58311 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
58312
58313         * lib/stat-time.h (USE_BIRTHTIME): Remove.
58314         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
58315         (get_stat_birthtime_ns): Do not try to use "spare" fields.
58316         (get_stat_birthtime_ns): Simplify compile-time tests.
58317         (get_stat_birthtime): Change the API to look like
58318         get_stat_mtime etc., except return a negative tv_nsec on error.
58319         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
58320         Don't check for "spare" fields.
58321         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
58322         or for struct stat.st_birthtime, as these tests aren't used.
58323         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
58324
58325 2007-03-27  Bruno Haible  <bruno@clisp.org>
58326
58327         * lib/stat-time.h: Include <sys/stat.h>.
58328
58329 2007-03-27  James Youngman  <jay@gnu.org>
58330
58331         * lib/stat-time.h (get_stat_birthtime): New function for
58332           retrieving st_birthtime as provided by UFS2 (hence *BSD).
58333         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
58334           and its variants.
58335         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
58336         * modules/stat-time-test: New file.
58337         * tests/test-stat-time.c: New test, devised by Bruno Haible.
58338
58339 2007-03-26  Bruno Haible  <bruno@clisp.org>
58340
58341         Better support of signalling NaNs.
58342         * lib/atanl.c: Include isnanl.h.
58343         (atanl): Perform test for NaN at the beginning of the function and
58344         through a call to isnanl.
58345         * lib/cosl.c: Include isnanl.h.
58346         (cosl): Perform test for NaN at the beginning of the function and
58347         through a call to isnanl.
58348         * lib/ldexpl.c: Include isnanl.h.
58349         (ldexpl): Perform test for NaN through a call to isnanl.
58350         * lib/logl.c: Include isnanl.h.
58351         (logl): Perform test for NaN at the beginning of the function and
58352         through a call to isnanl.
58353         * lib/sinl.c: Include isnanl.h.
58354         (sinl): Perform test for NaN at the beginning of the function and
58355         through a call to isnanl.
58356         * lib/sqrtl.c: Include isnanl.h.
58357         (sqrtl): Perform test for NaN at the beginning of the function and
58358         through a call to isnanl.
58359         * lib/tanl.c: Include isnanl.h.
58360         (tanl): Perform test for NaN at the beginning of the function and
58361         through a call to isnanl.
58362         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
58363         * modules/mathl (Depends-on): Add isnanl.
58364
58365 2007-03-26  Eric Blake  <ebb9@byu.net>
58366
58367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
58368         regression in logic sense of previous patch.
58369
58370 2007-03-26  Bruno Haible  <bruno@clisp.org>
58371
58372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
58373         unportable shell command "if ! ...".
58374         Reported by Ralf Wildenhues.
58375
58376 2007-03-25  Bruno Haible  <bruno@clisp.org>
58377
58378         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
58379         <sysexits.h> file, and only add EX_CONFIG.
58380         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
58381         absolute file name and whether it is sufficient. Substitute also
58382         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
58383         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
58384         ABSOLUTE_SYSEXITS_H into sysexits.h.
58385
58386 2007-03-25  Bruno Haible  <bruno@clisp.org>
58387
58388         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
58389         hints is NULL.
58390
58391 2007-03-25  Bruno Haible  <bruno@clisp.org>
58392
58393         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
58394         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
58395
58396 2007-03-25  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/vasnprintf.c: Include langinfo.h.
58399         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
58400         multithread-safe.
58401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
58402         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
58403         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58407         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
58409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58410         Reported by Simon Josefsson.
58411
58412 2007-03-25  Bruno Haible  <bruno@clisp.org>
58413
58414         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
58415         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
58416         * modules/vasnprintf (Depends-on): Add stdint.
58417
58418 2007-03-25  Bruno Haible  <bruno@clisp.org>
58419
58420         * modules/fpieee: New file.
58421         * m4/fpieee.m4: New file.
58422         * modules/isnan-nolibm (Depends-on): Add fpieee.
58423         * modules/isnanl-nolibm (Depends-on): Add fpieee.
58424         * modules/isnanl (Depends-on): Add fpieee.
58425
58426 2007-03-25  Bruno Haible  <bruno@clisp.org>
58427
58428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
58429
58430 2007-03-25  Bruno Haible  <bruno@clisp.org>
58431
58432         Avoid test failures on IRIX 6.5.
58433         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
58434         (main): Use it.
58435         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
58436         macros.
58437         (main): Use them.
58438
58439 2007-03-25  Bruno Haible  <bruno@clisp.org>
58440
58441         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
58442         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
58443         exists but doesn't work.
58444         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
58445         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
58446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
58447         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
58448         math.h.
58449
58450 2007-03-25  Bruno Haible  <bruno@clisp.org>
58451
58452         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
58453         returns inf. Needed on IRIX 6.5.
58454
58455 2007-03-25  Bruno Haible  <bruno@clisp.org>
58456
58457         * tests/test-frexpl.c: Include isnanl-nolibm.h.
58458         (main): Use isnanl instead of x != x idiom.
58459         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
58460
58461         * tests/test-frexp.c: Include isnan.h.
58462         (main): Use isnan instead of x != x idiom.
58463         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
58464
58465 2007-03-25  Bruno Haible  <bruno@clisp.org>
58466
58467         * tests/test-frexp.c (NaN): New function/macro.
58468         (main): Use it instead of 0.0 / 0.0.
58469         * tests/test-isnan.c (NaN): New function/macro.
58470         (main): Use it instead of 0.0 / 0.0.
58471         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
58472         (test_function): Use it instead of 0.0 / 0.0.
58473         * tests/test-vasprintf-posix.c (NaN): New function/macro.
58474         (test_function): Use it instead of 0.0 / 0.0.
58475         * tests/test-snprintf-posix.h (NaN): New function/macro.
58476         (test_function): Use it instead of 0.0 / 0.0.
58477         * tests/test-sprintf-posix.h (NaN): New function/macro.
58478         (test_function): Use it instead of 0.0 / 0.0.
58479         * tests/test-fprintf-posix.h (NaN): New function/macro.
58480         (test_function): Use it instead of 0.0 / 0.0.
58481         * tests/test-printf-posix.h (NaN): New function/macro.
58482         (test_function): Use it instead of 0.0 / 0.0.
58483
58484         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
58485
58486 2007-03-25  Bruno Haible  <bruno@clisp.org>
58487
58488         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
58489
58490 2007-03-25  Bruno Haible  <bruno@clisp.org>
58491
58492         * lib/regexec.c (merge_state_with_log): Make static.
58493
58494 2007-03-25  Bruno Haible  <bruno@clisp.org>
58495
58496         * lib/trigl.c (kernel_rem_pio2): Make static.
58497
58498 2007-03-25  Bruno Haible  <bruno@clisp.org>
58499
58500         * lib/sincosl.c (sincosl_table): Make static.
58501
58502 2007-03-25  Bruno Haible  <bruno@clisp.org>
58503
58504         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
58505         if the compiler does not support C99.
58506
58507 2007-03-25  Bruno Haible  <bruno@clisp.org>
58508
58509         * modules/time (Makefile.am): Ensure all rule action lines start with a
58510         tab.
58511
58512 2007-03-24  Bruno Haible  <bruno@clisp.org>
58513
58514         * modules/tsearch-tests: New file.
58515         * tests/test-tsearch.sh: New file.
58516         * tests/test-tsearch.c: New file, mostly copied from glibc.
58517
58518         * modules/search-tests: New file.
58519         * tests/test-search.c: New file.
58520
58521         * modules/search: New file.
58522         * lib/search_.h: New file, incorporating lib/tsearch.h.
58523         * m4/search_h.m4: New file.
58524         * lib/tsearch.h: Remove file.
58525         * lib/tsearch.c: Include search.h instead of tsearch.h.
58526         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58527         HAVE_TSEARCH.
58528         * modules/tsearch (Files): Remove lib/tsearch.h.
58529         (Depends-on): Add search.
58530         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58531         (Include): Change tsearch.h into search.h.
58532
58533 2007-03-24  Bruno Haible  <bruno@clisp.org>
58534
58535         * modules/fpucw: New file.
58536         * lib/fpucw.h: New file.
58537         * lib/frexp.c: Include fpucw.h.
58538         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58539         (FUNC): Use them.
58540         * lib/printf-frexp.c: Include fpucw.h.
58541         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58542         (FUNC): Use them.
58543         * lib/vasnprintf.c: Include fpucw.h.
58544         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58545         'long double' calculations.
58546         * tests/test-frexpl.c: Include fpucw.h.
58547         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58548         * tests/test-printf-frexpl.c: Include fpucw.h.
58549         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58550         * modules/frexpl (Depends-on): Add fpucw.
58551         * modules/printf-frexpl (Depends-on): Likewise.
58552         * modules/fprintf-posix (Depends-on): Likewise.
58553         * modules/snprintf-posix (Depends-on): Likewise.
58554         * modules/sprintf-posix (Depends-on): Likewise.
58555         * modules/vasnprintf-posix (Depends-on): Likewise.
58556         * modules/vasprintf-posix (Depends-on): Likewise.
58557         * modules/vfprintf-posix (Depends-on): Likewise.
58558         * modules/vsnprintf-posix (Depends-on): Likewise.
58559         * modules/vsprintf-posix (Depends-on): Likewise.
58560         * modules/frexpl-tests (Depends-on): Likewise.
58561         * modules/printf-frexpl-tests (Depends-on): Likewise.
58562
58563 2007-03-24  Bruno Haible  <bruno@clisp.org>
58564
58565         * lib/float+.h: New file.
58566         * lib/isnan.c: Include float+.h.
58567         (SIZE): New macro.
58568         (FUNC): Compare only SIZE bytes of the value.
58569         * lib/vasnprintf.c: Include float+.h.
58570         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58571         SIZEOF_LDBL or SIZEOF_DBL bytes.
58572         * modules/isnan-nolibm (Files): Add lib/float+.h.
58573         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58574         * modules/isnanl (Files): Add lib/float+.h.
58575         * modules/vasnprintf (Files): Add lib/float+.h.
58576
58577 2007-03-24  Bruno Haible  <bruno@clisp.org>
58578
58579         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58580         include isnanl-nolibm.h.
58581
58582 2007-03-24  Bruno Haible  <bruno@clisp.org>
58583
58584         * tests/test-read-file.c (main): Don't produce spurious output for
58585         expected situations. Make the test fail if it encountered unexpected
58586         results.
58587
58588 2007-03-24  Bruno Haible  <bruno@clisp.org>
58589
58590         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58591         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58592
58593 2007-03-24  Bruno Haible  <bruno@clisp.org>
58594
58595         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58596
58597 2007-03-24  Bruno Haible  <bruno@clisp.org>
58598
58599         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58600         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58601
58602         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58603         * modules/utf8-ucs4: Turn into a symbolic link to module
58604         unistr/u8-mbtouc.
58605
58606         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58607         utf8-ucs4-unsafe.
58608         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58609         unistr/u8-mbtouc-unsafe.
58610
58611         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58612         * modules/utf16-ucs4: Turn into a symbolic link to module
58613         unistr/u16-mbtouc.
58614
58615         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58616         utf16-ucs4-unsafe.
58617         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58618         unistr/u16-mbtouc-unsafe.
58619
58620         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58621         * modules/ucs4-utf8: Turn into a symbolic link to module
58622         unistr/u8-ubtomb.
58623
58624         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58625         * modules/ucs4-utf16: Turn into a symbolic link to module
58626         unistr/u16-ubtomb.
58627
58628 2007-03-24  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58631         Enable the function only if HAVE_INLINE.
58632         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58633         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58634         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58635         Enable the function only if HAVE_INLINE.
58636         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58637         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58638         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58639         Enable the function only if HAVE_INLINE.
58640         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58641         Enable the function only if HAVE_INLINE.
58642         * modules/utf8-ucs4: Update.
58643         * modules/utf8-ucs4-unsafe: Update.
58644         * modules/utf16-ucs4: Update.
58645         * modules/utf16-ucs4-unsafe: Update.
58646         * modules/ucs4-utf8: Update.
58647         * modules/ucs4-utf16: Update.
58648
58649 2007-03-24  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/utf8-ucs4.h: Remove file.
58652         * lib/utf8-ucs4-unsafe.h: Remove file.
58653         * lib/utf16-ucs4.h: Remove file.
58654         * lib/utf16-ucs4-unsafe.h: Remove file.
58655         * lib/ucs4-utf8.h: Remove file.
58656         * lib/ucs4-utf16.h: Remove file.
58657         * lib/unistr.h: Include their previous contents.
58658         * m4/utf-ucs4.m4: Remove file.
58659         * m4/ucs4-utf.m4: Remove file.
58660         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58661         (Depends-on): Add unistr/base.
58662         (configure.ac): Remove gl_UTF_UCS4.
58663         (Makefile.am): Update.
58664         (Include): Change to unistr.h.
58665         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58666         (Depends-on): Add unistr/base.
58667         (configure.ac): Remove gl_UTF_UCS4.
58668         (Makefile.am): Update.
58669         (Include): Change to unistr.h.
58670         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58671         (Depends-on): Add unistr/base.
58672         (configure.ac): Remove gl_UTF_UCS4.
58673         (Makefile.am): Update.
58674         (Include): Change to unistr.h.
58675         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58676         (Depends-on): Add unistr/base.
58677         (configure.ac): Remove gl_UTF_UCS4.
58678         (Makefile.am): Update.
58679         (Include): Change to unistr.h.
58680         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58681         (Depends-on): Add unistr/base.
58682         (configure.ac): Remove gl_UCS4_UTF.
58683         (Makefile.am): Update.
58684         (Include): Change to unistr.h.
58685         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58686         (Depends-on): Add unistr/base.
58687         (configure.ac): Remove gl_UCS4_UTF.
58688         (Makefile.am): Update.
58689         (Include): Change to unistr.h.
58690         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58691         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58692         utf8-ucs4-unsafe.h.
58693         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58694         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58695         utf16-ucs4-unsafe.h.
58696         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58697         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58698         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58699         * lib/unistr/u8-strchr.c: Likewise.
58700         * lib/unistr/u8-strrchr.c: Likewise.
58701         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58702         * lib/unistr/u16-strchr.c: Likewise.
58703         * lib/unistr/u16-strrchr.c: Likewise.
58704         * lib/striconveh.c: Update.
58705         * lib/linebreak.c: Update.
58706
58707 2007-03-24  Bruno Haible  <bruno@clisp.org>
58708
58709         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58710         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58711
58712 2007-03-22  Bruno Haible  <bruno@clisp.org>
58713
58714         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58715
58716 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58717
58718         * MODULES.html.sh (File system functions): New module write-any-file.
58719         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58720         * m4/write-any-file.m4: New files.
58721
58722 2007-03-23  Eric Blake  <ebb9@byu.net>
58723
58724         * gnulib-tool: Rearrange space-tab sequences, since some editors
58725         like to eat them.
58726
58727 2007-03-23  Eric Blake  <ebb9@byu.net>
58728
58729         * lib/version-etc.c (version_etc_va): Update license wording to
58730         be more concise.  Recommended by Richard Stallman.
58731
58732 2007-03-22  Bruno Haible  <bruno@clisp.org>
58733
58734         * lib/poll.c (MSG_PEEK): New fallback definition.
58735
58736 2007-03-22  Bruno Haible  <bruno@clisp.org>
58737
58738         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58739         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58740         (main): Update.
58741         Fixes a compilation error on BeOS.
58742
58743 2007-03-22  Bruno Haible  <bruno@clisp.org>
58744
58745         * modules/frexpl-tests: New file.
58746         * tests/test-frexpl.c: New file.
58747
58748         * modules/frexpl: New file.
58749         * m4/frexpl.m4: New file.
58750         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58751         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58753         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58754         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58755         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58756
58757 2007-03-22  Bruno Haible  <bruno@clisp.org>
58758
58759         * lib/frexpl.c: Share code with lib/frexp.c.
58760         * modules/mathl (Files): Add lib/frexp.c.
58761         (Depends-on): Add isnanl-nolibm.
58762
58763 2007-03-22  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/printf-frexp (Files): Add m4/frexp.m4.
58766         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58767         only if the found frexp function actually works.
58768
58769 2007-03-22  Bruno Haible  <bruno@clisp.org>
58770
58771         * lib/frexp.c: Remove older implementation that uses divisions.
58772
58773 2007-03-21  Bruno Haible  <bruno@clisp.org>
58774
58775         * modules/frexp-tests: New file.
58776         * tests/test-frexp.c: New file.
58777
58778         * modules/frexp: New file.
58779         * lib/frexp.c: New file.
58780         * m4/frexp.m4: New file.
58781         * lib/math_.h (frexp): New declaration.
58782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58783         REPLACE_FREXP.
58784         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58785
58786 2007-03-21  Bruno Haible  <bruno@clisp.org>
58787
58788         * modules/isnanl-tests: New file.
58789         * tests/test-isnanl.c: New file.
58790
58791         * modules/isnanl: New file.
58792         * lib/isnanl.h: New file.
58793         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58794         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58795         gl_FUNC_ISNANL_WORKS.
58796         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58797         New macros.
58798
58799 2007-03-21  Bruno Haible  <bruno@clisp.org>
58800
58801         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58802         lib/isnanl.h.
58803         (Include): Update.
58804         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58805         * lib/vasnprintf.c: Update.
58806         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58807         tests/test-isnanl.h, remove tests/test-isnanl.c.
58808         (Makefile.am): Update.
58809         * tests/test-isnanl-nolibm.c: New file.
58810         * tests/test-isnanl.h: New file.
58811         * tests/test-isnanl.c: Remove file.
58812
58813 2007-03-21  Jim Meyering  <jim@meyering.net>
58814
58815         When trying to open ".", treat ESTALE like EACCES.
58816         * lib/savewd.c (savewd_save): Resort to forking not just upon
58817         failure with EACCES, but also when errno is ESTALE.
58818
58819 2007-03-20  Bruno Haible  <bruno@clisp.org>
58820
58821         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58822         Needed on AIX 5.1. Reported by Matthew Woehlke.
58823
58824 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58825
58826         Suggestions by Bruno Haible:
58827         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58828         our own.
58829         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58830         * modules/acl (Depends-on): Add gettext.
58831
58832 2007-03-19  Bruno Haible  <bruno@clisp.org>
58833
58834         * modules/iconvme: Remove file.
58835         * lib/iconvme.h: Remove file.
58836         * lib/iconvme.c: Remove file.
58837         * m4/iconvme.m4: Remove file.
58838
58839 2007-03-19  Bruno Haible  <bruno@clisp.org>
58840
58841         * doc/relocatable-maint.texi: Break long shell script line.
58842         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58843
58844 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58845
58846         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58847         handle file_has_acl.
58848         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58849         * lib/acl.c: Move header inclusions and related macro defns into
58850         lib/acl-internal.h.
58851         (S_ISLNK): Remove defn, since that's now done for us.
58852         (file_has_acl): Move to lib/file-has-acl.c.
58853         Call acl_trivial if available.  This is the crucial part of the fix.
58854         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58855         shared within the library.  Rewrite a bit, partly to make it compatible
58856         with the GNU coding style.
58857         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58858         Remove unnecessary double-quotes.
58859         Don't test for acl_to_text; the build will catch that.
58860         Replace acl_entries if it doesn't exist and it is needed.
58861         Check for -lsec and acl_trivial (as used on Solaris 10).
58862         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58863         lib/file-has-acl.c.
58864         (Depends-on): Add sys_stat, for S_ISLNK.
58865
58866 2007-03-19  Ben Pfaff  <blp@gnu.org>
58867
58868         * doc/gnulib.texi: Fix typos.
58869         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58870
58871 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58872
58873         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58874         If size is zero here, buf must be zero.
58875
58876 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58877
58878         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58879         <bruno@clisp.org>.
58880
58881 2007-03-18  Bruno Haible  <bruno@clisp.org>
58882
58883         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58884         Suggested by Eric Blake.
58885
58886 2007-03-18  Ben Pfaff  <blp@gnu.org>
58887
58888         * doc/relocatable.texi: Recommend using as prefix a directory
58889         that does not exist and will never be created.  Based on
58890         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58891         and others.
58892
58893 2007-03-17  Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/fchownat.c: Include lchown.h.
58896
58897 2007-03-17  Bruno Haible  <bruno@clisp.org>
58898
58899         Fix endless loop when the given allocated size was > INT_MAX.
58900         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58901         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58902         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58903         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58904         * lib/sprintf.c (sprintf): Likewise.
58905
58906 2007-03-17  Bruno Haible  <bruno@clisp.org>
58907
58908         * tests/test-argp-2.sh (func_compare): Output a context diff.
58909
58910 2007-03-17  Bruno Haible  <bruno@clisp.org>
58911
58912         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58913         locale's decimal-point character.
58914
58915 2007-03-17  Bruno Haible  <bruno@clisp.org>
58916
58917         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58918         before comparing it. Needed because on some platforms (e.g. x86) a
58919         'long double' occupies less bytes than sizeof (long double).
58920
58921 2007-03-17  Bruno Haible  <bruno@clisp.org>
58922
58923         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58924         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58925         * tests/test-getaddrinfo.c (simple): Likewise.
58926         * tests/test-read-file.c (main): Likewise.
58927
58928 2007-03-17  Bruno Haible  <bruno@clisp.org>
58929
58930         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58931
58932 2007-03-17  Bruno Haible  <bruno@clisp.org>
58933
58934         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58935         unused variable.
58936
58937 2007-03-17  Bruno Haible  <bruno@clisp.org>
58938
58939         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58940         * tests/test-c-strncasecmp.c: Likewise.
58941
58942 2007-03-17  Bruno Haible  <bruno@clisp.org>
58943
58944         * modules/stdlib (Depends-on): Add unistd.
58945         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58946         Needed for MacOS X 10.3.
58947
58948 2007-03-17  Bruno Haible  <bruno@clisp.org>
58949
58950         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58951
58952 2007-03-17  Bruno Haible  <bruno@clisp.org>
58953
58954         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58955
58956 2007-03-17  Bruno Haible  <bruno@clisp.org>
58957
58958         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58959         to reflect files copied from gnulib (with or without modifications).
58960         Suggested by Jim Meyering.
58961
58962 2007-03-17  Eric Blake  <ebb9@byu.net>
58963
58964         * NEWS: Document stdlib change from 2007-02-18.
58965
58966 2007-03-17  Jim Meyering  <jim@meyering.net>
58967
58968         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58969         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58970         someone uses a name containing shell meta-characters.
58971         Reported by Alfred M. Szmidt.
58972
58973         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58974
58975 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58976
58977         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58978         and copy gettext configuration files only if configure.ac contains
58979         a use of AM_GNU_GETTEXT_VERSION.
58980
58981 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58982
58983         * build-aux/bootstrap (gnulib_name): New variable.
58984         (gnulib_tool_options): Use it.
58985
58986 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58987
58988         * tests/test-des.c: Use new namespace.
58989
58990 2007-03-15  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58993         Reported by James Youngman <jay@gnu.org>.
58994
58995 2007-03-15  Bruno Haible  <bruno@clisp.org>
58996
58997         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58998         declared prototype. Needed with cc on OSF/1 5.1.
58999
59000 2007-03-15  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
59003         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
59004         (struct gl_list_implementation): Add dispose_fn argument to the
59005         'create_empty', 'create' methods.
59006         (struct gl_list_impl_base): Add field 'dispose_fn'.
59007         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
59008         argument.
59009         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
59010         dispose_fn argument.
59011         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
59012         dispose_fn on the dropped values.
59013         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
59014         dispose_fn argument.
59015         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
59016         dropped values.
59017         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
59018         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59019         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
59020         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59021         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
59022         argument.
59023         (gl_tree_list_free): Call dispose_fn on the dropped values.
59024         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
59025         the dropped values.
59026         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59027         Add dispose_fn argument.
59028         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
59029         Call dispose_fn on the dropped values.
59030         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
59031         Add dispose_fn argument.
59032         (gl_sublist_create): Initialize the 'dispose_fn' field.
59033         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
59034         * tests/test-array_list.c (main): Update.
59035         * tests/test-carray_list.c (main): Update.
59036         * tests/test-avltree_list.c (main): Update.
59037         * tests/test-rbtree_list.c (main): Update.
59038         * tests/test-avltreehash_list.c (main): Update.
59039         * tests/test-rbtreehash_list.c (main): Update.
59040         * tests/test-linked_list.c (main): Update.
59041         * tests/test-linkedhash_list.c (main): Update.
59042         * tests/test-array_oset.c (main): Update.
59043
59044 2007-03-15  Bruno Haible  <bruno@clisp.org>
59045
59046         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
59047         (gl_oset_create_empty): Add dispose_fn argument.
59048         (struct gl_oset_implementation): Add dispose_fn argument to
59049         'create_empty' method.
59050         (struct gl_oset_impl_base): Add dispose_fn field.
59051         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
59052         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
59053         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
59054         values.
59055         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
59056         (gl_tree_oset_free): Call dispose_fn on the dropped values.
59057         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59058         dropped value.
59059         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59060         dropped value.
59061         * tests/test-array_oset.c (main): Update.
59062         * tests/test-avltree_oset.c (main): Update.
59063         * tests/test-rbtree_oset.c (main): Update.
59064         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
59065
59066 2007-03-13  Bruno Haible  <bruno@clisp.org>
59067
59068         * tests/test-stdbool.c (i): Update after last patch.
59069
59070 2007-03-12  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/quotearg.c: Include <wctype.h> early, before the definition of
59073         the iswprint macro. Needed on Solaris 2.5.1.
59074
59075 2007-03-12  Bruno Haible  <bruno@clisp.org>
59076
59077         * tests/test-printf-frexp.c (main): Declare x as volatile.
59078
59079 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59080
59081         * doc/gnulib.texi (Build robot for gnulib): New section.
59082
59083 2007-03-12  Jim Meyering  <jim@meyering.net>
59084
59085         * build-aux/bootstrap: New file.
59086         * build-aux/bootstrap.conf: New file, from coreutils.
59087
59088 2007-03-11  Bruno Haible  <bruno@clisp.org>
59089
59090         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
59091
59092 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59093
59094         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
59095         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
59096         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
59097
59098 2007-03-11  Bruno Haible  <bruno@clisp.org>
59099
59100         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
59101         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
59102
59103 2007-03-11  Bruno Haible  <bruno@clisp.org>
59104
59105         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
59106         formula. Needed for SunPRO C 5.0.
59107
59108 2007-03-11  Bruno Haible  <bruno@clisp.org>
59109
59110         * modules/long-options (Depends-on): Add getopt.
59111
59112 2007-03-11  Bruno Haible  <bruno@clisp.org>
59113
59114         * modules/modechange (Depends-on): Add stdbool.
59115
59116 2007-03-11  Bruno Haible  <bruno@clisp.org>
59117
59118         * modules/i-ring (Depends-on): Add stdbool.
59119
59120 2007-03-11  Bruno Haible  <bruno@clisp.org>
59121
59122         * modules/gc-des (Depends-on): Add stdbool.
59123
59124 2007-03-11  Bruno Haible  <bruno@clisp.org>
59125
59126         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
59127
59128 2007-03-11  Bruno Haible  <bruno@clisp.org>
59129
59130         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
59131
59132 2007-03-11  Bruno Haible  <bruno@clisp.org>
59133
59134         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
59135
59136 2007-03-11  Bruno Haible  <bruno@clisp.org>
59137
59138         * lib/vasnprintf.c (sprintf): Undefine.
59139
59140 2007-03-11  Bruno Haible  <bruno@clisp.org>
59141
59142         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
59143         initializers in SunPRO C and Compaq C compilers.
59144
59145 2007-03-11  Bruno Haible  <bruno@clisp.org>
59146
59147         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
59148         decrementing code ANSI C compliant.
59149
59150 2007-03-11  Bruno Haible  <bruno@clisp.org>
59151
59152         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
59153         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
59154
59155 2007-03-11  Bruno Haible  <bruno@clisp.org>
59156
59157         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
59158         <stdbool.h> substitute doesn't pass.
59159
59160 2007-03-11  Bruno Haible  <bruno@clisp.org>
59161
59162         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
59163
59164 2007-03-11  Bruno Haible  <bruno@clisp.org>
59165
59166         * gnulib-tool (func_create_megatestdir): Create also an autobuild
59167         script, for submission to autobuild.josefsson.org.
59168
59169 2007-03-10  Bruno Haible  <bruno@clisp.org>
59170
59171         * modules/canonicalize-lgpl-tests: New file.
59172         * tests/test-canonicalize-lgpl.sh: New file.
59173         * tests/test-canonicalize-lgpl.c: New file.
59174
59175         * modules/c-strcase-tests: New file.
59176         * tests/test-c-strcase.sh: New file.
59177         * tests/test-c-strcasecmp.c: New file.
59178         * tests/test-c-strncasecmp.c: New file.
59179
59180         * modules/atexit-tests: New file.
59181         * tests/test-atexit.sh: New file.
59182         * tests/test-atexit.c: New file.
59183
59184 2007-03-10  Bruno Haible  <bruno@clisp.org>
59185
59186         * tests/test-binary-io.sh: Use temporary filenames that are not so
59187         likely to clash with those of other tests (in a parallel make).
59188         * tests/test-binary-io.c: Likewise.
59189
59190 2007-03-10  Bruno Haible  <bruno@clisp.org>
59191
59192         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
59193         fallback; use #error instead.
59194         Suggested by Simon Josefsson.
59195
59196 2007-03-10  Bruno Haible  <bruno@clisp.org>
59197
59198         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
59199         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
59200         first and the last.
59201
59202 2007-03-10  Bruno Haible  <bruno@clisp.org>
59203
59204         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
59205
59206 2007-03-10  Bruno Haible  <bruno@clisp.org>
59207
59208         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
59209         "make distcheck".
59210         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
59211         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
59212         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
59213
59214 2007-03-10  Bruno Haible  <bruno@clisp.org>
59215
59216         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
59217         variable.
59218         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
59219         variable.
59220
59221 2007-03-09  Eric Blake  <ebb9@byu.net>
59222         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
59223
59224         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
59225         types are not being provided by gnulib.
59226         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
59227         types are supported.
59228
59229 2007-03-10  Bruno Haible  <bruno@clisp.org>
59230
59231         * lib/stdio_.h (__attribute__): New macro.
59232         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
59233         vsprintf): Specify __attribute__ __format__ for GCC.
59234         Suggested by Eric Blake.
59235
59236 2007-03-09  Bruno Haible  <bruno@clisp.org>
59237
59238         * modules/printf-posix-tests: New file.
59239         * tests/test-printf-posix.sh: New file.
59240         * tests/test-printf-posix.c: New file.
59241
59242         * modules/printf-posix: New file.
59243         * lib/printf.c: New file.
59244         * m4/printf-posix-rpl.m4: New file.
59245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
59246         REPLACE_PRINTF.
59247         * lib/stdio_.h (printf): New declaration.
59248         (format, __format__, ____printf____, ____scanf____, ____strftime____,
59249         ____strfmon____): New macros.
59250         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
59251         REPLACE_PRINTF.
59252
59253 2007-03-09  Bruno Haible  <bruno@clisp.org>
59254
59255         * tests/test-vasnprintf-posix2.sh: New file.
59256         * tests/test-vasnprintf-posix2.c: New file.
59257         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59258         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59259         (Makefile.am): Activate test-vasnprintf-posix2.sh.
59260
59261         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
59262         a locale dependent decimal point, rather than always '.'.
59263
59264 2007-03-09  Eric Blake  <ebb9@byu.net>
59265
59266         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
59267         spite of platforms like Tandem/NSK that define it to -1.
59268
59269 2007-03-08  Bruno Haible  <bruno@clisp.org>
59270
59271         * modules/vprintf-posix-tests: New file.
59272         * tests/test-vprintf-posix.sh: New file.
59273         * tests/test-vprintf-posix.c: New file.
59274         * tests/test-printf-posix.h: New file.
59275
59276         * modules/vprintf-posix: New file.
59277         * lib/vprintf.c: New file.
59278         * m4/vprintf-posix.m4: New file.
59279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
59280         REPLACE_VPRINTF.
59281         * lib/stdio_.h (vprintf): New declaration.
59282         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
59283         REPLACE_VPRINTF.
59284
59285 2007-03-08  Bruno Haible  <bruno@clisp.org>
59286
59287         * modules/fprintf-posix-tests: New file.
59288         * tests/test-fprintf-posix.sh: New file.
59289         * tests/test-fprintf-posix.c: New file.
59290
59291         * modules/fprintf-posix: New file.
59292         * lib/fprintf.c: New file.
59293         * m4/fprintf-posix.m4: New file.
59294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
59295         REPLACE_FPRINTF.
59296         * lib/stdio_.h (fprintf): New declaration.
59297         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
59298         REPLACE_FPRINTF.
59299
59300 2007-03-08  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/vfprintf-posix-tests: New file.
59303         * tests/test-vfprintf-posix.sh: New file.
59304         * tests/test-vfprintf-posix.c: New file.
59305         * tests/test-fprintf-posix.h: New file.
59306         * tests/test-fprintf-posix.out: New file.
59307
59308         * modules/vfprintf-posix: New file.
59309         * lib/vfprintf.c: New file.
59310         * m4/vfprintf-posix.m4: New file.
59311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
59312         REPLACE_VFPRINTF.
59313         * lib/stdio_.h (vfprintf): New declaration.
59314         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
59315         REPLACE_VFPRINTF.
59316
59317 2007-03-08  Bruno Haible  <bruno@clisp.org>
59318
59319         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
59320
59321 2007-03-08  Bruno Haible  <bruno@clisp.org>
59322
59323         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
59324         instead of 'expr' invocations.
59325         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59326         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59327         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59329         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59330         Suggested by Paul Eggert.
59331
59332 2007-03-08  Bruno Haible  <bruno@clisp.org>
59333
59334         * modules/fseterr-tests: New file.
59335         * tests/test-fseterr.c: New file.
59336
59337         * modules/fseterr: New file.
59338         * lib/fseterr.h: New file.
59339         * lib/fseterr.c: New file.
59340
59341 2007-03-08  Bruno Haible  <bruno@clisp.org>
59342
59343         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
59344         * lib/getopt_.h: Likewise.
59345         * lib/mbswidth.h: Likewise.
59346         * lib/setenv.h: Likewise.
59347         * lib/vasnprintf.h: Likewise.
59348         * lib/vasprintf.h: Likewise.
59349         * lib/verror.h: Likewise.
59350         * lib/xsetenv.h: Likewise.
59351         * lib/xvasprintf.h: Likewise.
59352
59353 2007-03-08  Jim Meyering  <jim@meyering.net>
59354
59355         * users.txt: Add parted.
59356
59357         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
59358
59359 2007-03-07  Bruno Haible  <bruno@clisp.org>
59360
59361         * m4/printf.m4: Make the shell script snippets copy&pastable.
59362
59363 2007-03-02  Bruno Haible  <bruno@clisp.org>
59364
59365         * lib/netinet_in_.h: New file.
59366         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
59367         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
59368         * modules/netinet_in (Files): Add lib/netinet_in_.h.
59369         (Depends-on): Add absolute-header.
59370         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
59371         into netinet/in.h.
59372
59373 2007-03-03  Bruno Haible  <bruno@clisp.org>
59374
59375         * lib/sys_select_.h: New file.
59376         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
59377         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
59378         * modules/sys_select (Files): Add lib/sys_select_.h.
59379         (Depends-on): Add absolute-header.
59380         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
59381         into sys/select.h.
59382
59383 2007-03-02  Bruno Haible  <bruno@clisp.org>
59384
59385         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
59386         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
59387         values.
59388         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
59389         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
59390         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
59391         * modules/sys_socket (Depends-on): Add absolute-header.
59392         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
59393         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
59394         (Include): Remove requirement of inclusion of <sys/types.h>.
59395
59396 2007-03-02  Bruno Haible  <bruno@clisp.org>
59397
59398         * lib/byteswap_.h (bswap_32): Fix formula.
59399
59400 2007-03-06  Bruno Haible  <bruno@clisp.org>
59401
59402         * modules/sprintf-posix-tests: New file.
59403         * tests/test-sprintf-posix.c: New file.
59404
59405         * modules/sprintf-posix: New file.
59406         * lib/sprintf.c: New file.
59407         * m4/sprintf-posix.m4: New file.
59408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
59409         REPLACE_SPRINTF.
59410         * lib/stdio_.h (sprintf): New declaration.
59411         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
59412         REPLACE_SPRINTF.
59413
59414 2007-03-06  Bruno Haible  <bruno@clisp.org>
59415
59416         * modules/vsprintf-posix-tests: New file.
59417         * tests/test-vsprintf-posix.c: New file.
59418         * tests/test-sprintf-posix.h: New file.
59419
59420         * modules/vsprintf-posix: New file.
59421         * lib/vsprintf.c: New file.
59422         * m4/vsprintf-posix.m4: New file.
59423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
59424         REPLACE_VSPRINTF.
59425         * lib/stdio_.h (vsprintf): New declaration.
59426         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
59427         REPLACE_VSPRINTF.
59428
59429 2007-03-06  Bruno Haible  <bruno@clisp.org>
59430
59431         * modules/vsnprintf (Depend-on): Remove minmax.
59432
59433 2007-03-06  Bruno Haible  <bruno@clisp.org>
59434
59435         * modules/snprintf-posix-tests: New file.
59436         * tests/test-snprintf-posix.c: New file.
59437
59438         * modules/snprintf-posix: New file.
59439         * m4/snprintf-posix.m4: New file.
59440         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
59441         gl_FUNC_SNPRINTF.
59442         (gl_FUNC_SNPRINTF): Invoke it.
59443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
59444         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
59445         is set.
59446         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
59447
59448 2007-03-06  Bruno Haible  <bruno@clisp.org>
59449
59450         * modules/vsnprintf-posix-tests: New file.
59451         * tests/test-vsnprintf-posix.c: New file.
59452         * tests/test-snprintf-posix.h: New file.
59453
59454         * modules/vsnprintf-posix: New file.
59455         * m4/vsnprintf-posix.m4: New file.
59456         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
59457         gl_FUNC_VSNPRINTF.
59458         (gl_FUNC_VSNPRINTF): Invoke it.
59459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
59460         * lib/stdio_.h (vsnprintf): Define as a replacement if
59461         REPLACE_VSNPRINTF is set.
59462         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
59463
59464 2007-03-06  Bruno Haible  <bruno@clisp.org>
59465
59466         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
59467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
59468
59469 2007-03-06  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
59472         (asinl): Declare also if HAVE_DECL_ASINL is set.
59473         (atanl): Declare also if HAVE_DECL_ATANL is set.
59474         (ceill): Declare also if HAVE_DECL_CEILL is set.
59475         (cosl): Declare also if HAVE_DECL_COSL is set.
59476         (expl): Declare also if HAVE_DECL_EXPL is set.
59477         (floorl): Declare also if HAVE_DECL_FLOORL is set.
59478         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
59479         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
59480         (logl): Declare also if HAVE_DECL_LOGL is set.
59481         (sinl): Declare also if HAVE_DECL_SINL is set.
59482         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
59483         (tanl): Declare also if HAVE_DECL_TANL is set.
59484         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
59485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
59486         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
59487         declaration of frexpl, ldexpl.
59488         * modules/printf-frexpl (Depends-on): Add math.
59489         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
59490
59491 2007-03-05  Bruno Haible  <bruno@clisp.org>
59492
59493         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
59494         frexpl and ldexpl are declared.
59495         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
59496
59497 2007-03-05  Bruno Haible  <bruno@clisp.org>
59498
59499         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
59500         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
59501
59502 2007-03-05  Bruno Haible  <bruno@clisp.org>
59503
59504         * lib/stdio_.h: Include <stddef.h>.
59505
59506 2007-03-05  Bruno Haible  <bruno@clisp.org>
59507
59508         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
59509
59510 2007-03-05  Bruno Haible  <bruno@clisp.org>
59511
59512         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59513         NetBSD 4, from Ralf Wildenhues.
59514
59515 2007-03-04  Bruno Haible  <bruno@clisp.org>
59516
59517         * lib/vasprintf.h: Update #if logic for the case when the functions
59518         exist but are overridden.
59519
59520 2007-03-04  Bruno Haible  <bruno@clisp.org>
59521
59522         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59523         implementations: glibc-2.4 and MacOS X 10.3.
59524         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59525         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59526         * tests/test-vasprintf-posix.c (test_function): Likewise.
59527
59528 2007-03-04  Bruno Haible  <bruno@clisp.org>
59529
59530         * modules/vasprintf-posix-tests: New file.
59531         * tests/test-vasprintf-posix.c: New file.
59532
59533         * modules/vasprintf-posix: New file.
59534         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59535         defined.
59536         * m4/vasprintf-posix.m4: New file.
59537         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59538         gl_FUNC_VASPRINTF.
59539         (gl_FUNC_VASPRINTF): Invoke it.
59540         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59541         here.
59542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59543
59544 2007-03-04  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59547         REPLACE_GETTIMEOFDAY.
59548         * modules/sys_time (Makefile.am): Likewise.
59549         * m4/sys_time_h.m4: Likewise.
59550         * m4/gettimeofday.m4: Likewise.
59551
59552 2007-03-04  Bruno Haible  <bruno@clisp.org>
59553
59554         * modules/vasnprintf-posix-tests: New file.
59555         * tests/test-vasnprintf-posix.c: New file.
59556
59557         * modules/vasnprintf-posix: New file.
59558         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59559         printf-frexpl.h.
59560         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59561         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59562         REPLACE_VASNPRINTF is defined.
59563         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59564         gl_FUNC_VASNPRINTF.
59565         (gl_FUNC_VASNPRINTF): Invoke it.
59566         * m4/vasnprintf-posix.m4: New file.
59567         * m4/printf.m4: New file.
59568
59569 2007-03-04  Bruno Haible  <bruno@clisp.org>
59570
59571         Compile progreloc.c only if --enable-relocatable is specified.
59572         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59573         if --enable-relocatable was specified.
59574         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59575         lib_SOURCES.
59576
59577 2007-03-04  Jim Meyering  <jim@meyering.net>
59578
59579         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59580         Use it consistently, rather than enumerating errno constants.
59581
59582 2007-03-04  Bruno Haible  <bruno@clisp.org>
59583
59584         * modules/xvasprintf-tests: New file.
59585         * tests/test-xvasprintf.c: New file.
59586
59587         * modules/vasprintf-tests: New file.
59588         * tests/test-vasprintf.c: New file.
59589
59590         * modules/vasnprintf-tests: New file.
59591         * tests/test-vasnprintf.c: New file.
59592
59593         * modules/vsnprintf-tests: New file.
59594         * tests/test-vsnprintf.c: New file.
59595
59596         * modules/snprintf-tests: New file.
59597         * tests/test-snprintf.c: New file.
59598
59599 2007-03-04  Bruno Haible  <bruno@clisp.org>
59600
59601         Compile relocatable.c only if --enable-relocatable is specified.
59602         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59603         gl_RELOCATABLE_LIBRARY.
59604         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59605         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59606         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59607         gl_RELOCATABLE_LIBRARY.
59608         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59609         (Makefile.am): Remove lib_SOURCES.
59610         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59611         gl_RELOCATABLE_LIBRARY.
59612         (Makefile.am): Remove lib_SOURCES.
59613         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59614         always.
59615         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59616         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59617
59618 2007-03-04  Bruno Haible  <bruno@clisp.org>
59619
59620         * modules/argmatch-tests: New file.
59621         * tests/test-argmatch.c: New file.
59622
59623         * tests/test-allocsa.c (main): Halve the number of loop runs.
59624
59625         * modules/alloca-opt-tests: New file.
59626         * tests/test-alloca-opt.c: New file.
59627
59628 2007-03-04  Jim Meyering  <jim@meyering.net>
59629
59630         Work around difference between Linux ACLs and Solaris 10 ZFS.
59631         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59632         for EINVAL.
59633
59634 2007-03-03  Bruno Haible  <bruno@clisp.org>
59635
59636         * modules/relocatable-prog (Depends-on): Add back progreloc's
59637         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59638
59639 2007-03-03  Bruno Haible  <bruno@clisp.org>
59640
59641         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59642         * modules/relocatable-lib: New file.
59643
59644 2007-03-03  Bruno Haible  <bruno@clisp.org>
59645
59646         * modules/relocatable-prog: Renamed from modules/relocatable.
59647         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59648
59649 2007-03-03  Bruno Haible  <bruno@clisp.org>
59650
59651         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59652         m4/relocatable-lib.m4.
59653         (Depends-on): Remove 'relocatable'.
59654         (configure.ac): Add gl_RELOCATABLE_NOP.
59655
59656 2007-03-03  Bruno Haible  <bruno@clisp.org>
59657
59658         * modules/relocatable-prog-wrapper: New file.
59659         * modules/relocatable (Depends-on): Add it. Remove all other
59660         dependencies except progname.
59661         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59662
59663         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59664         (gl_FUNC_STRERROR): Nop.
59665         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59666
59667         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59668         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59669
59670         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59671         (gl_FUNC_READLINK): Update.
59672
59673         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59674
59675 2007-03-03  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59678         * modules/xreadlink (Depends-on): Add unistd.
59679         * modules/xreadlink-with-size (Depends-on): Likewise.
59680
59681 2007-03-03  Bruno Haible  <bruno@clisp.org>
59682
59683         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59684         extracted from gt_FUNC_SETENV.
59685         (gt_FUNC_SETENV): Remove macro.
59686         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59687         remove gt_FUNC_SETENV.
59688
59689 2007-03-03  Bruno Haible  <bruno@clisp.org>
59690
59691         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59692         ENABLE_RELOCATABLE here.
59693         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59694
59695 2007-03-03  Bruno Haible  <bruno@clisp.org>
59696
59697         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59698         * tests/test-rbtreehash_list.c: Include progname.h.
59699         (main): Call set_program_name.
59700
59701         * modules/rbtree-oset-tests (Depends-on): Add progname.
59702         * tests/test-rbtree_oset.c: Include progname.h.
59703         (main): Call set_program_name.
59704
59705         * modules/rbtree-list-tests (Depends-on): Add progname.
59706         * tests/test-rbtree_list.c: Include progname.h.
59707         (main): Call set_program_name.
59708
59709         * modules/linked-list-tests (Depends-on): Add progname.
59710         * tests/test-linked_list.c: Include progname.h.
59711         (main): Call set_program_name.
59712
59713 2007-03-03  Bruno Haible  <bruno@clisp.org>
59714
59715         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59716         All uses of __restrict changed to _Restrict_.
59717         * lib/glob_.h (__restrict): Remove macro.
59718
59719 2007-03-02  Bruno Haible  <bruno@clisp.org>
59720
59721         * modules/gettext (configure.ac): Require gettext infrastructure
59722         from version 0.16.1.
59723
59724 2007-03-02  Bruno Haible  <bruno@clisp.org>
59725
59726         * modules/linkedhash-list-tests (Depends-on): Add progname.
59727         * tests/test-linkedhash_list.c: Include progname.h.
59728         (main): Call set_program_name.
59729
59730         * modules/carray-list-tests (Depends-on): Add progname.
59731         * tests/test-carray_list.c: Include progname.h.
59732         (main): Call set_program_name.
59733
59734         * modules/avltreehash-list-tests (Depends-on): Add progname.
59735         * tests/test-avltreehash_list.c: Include progname.h.
59736         (main): Call set_program_name.
59737
59738         * modules/avltree-oset-tests (Depends-on): Add progname.
59739         * tests/test-avltree_oset.c: Include progname.h.
59740         (main): Call set_program_name.
59741
59742         * modules/avltree-list-tests (Depends-on): Add progname.
59743         * tests/test-avltree_list.c: Include progname.h.
59744         (main): Call set_program_name.
59745
59746         * modules/array-oset-tests (Depends-on): Add progname.
59747         * tests/test-array_oset.c: Include progname.h.
59748         (main): Call set_program_name.
59749
59750         * modules/array-list-tests (Depends-on): Add progname.
59751         * tests/test-array_list.c: Include progname.h.
59752         (main): Call set_program_name.
59753
59754         * modules/argp-tests (Depends-on): Add progname.
59755         * tests/test-argp.c: Include argp.h first. Include progname.h.
59756         (main): Call set_program_name.
59757
59758 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59759
59760         * doc/gnulib-tool.texi (Initial import): Reword description of
59761         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59762         limited effect even if defined after the first system include.
59763
59764 2007-03-01  Bruno Haible  <bruno@clisp.org>
59765
59766         * build-aux/config.libpath: Update to libtool-1.5.22.
59767         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59768
59769 2007-03-01  Bruno Haible  <bruno@clisp.org>
59770
59771         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59772         foo_CFLAGS.
59773         Reported by Ralf Wildenhues.
59774
59775 2007-03-01  Bruno Haible  <bruno@clisp.org>
59776
59777         * build-aux/install-reloc: Remove object files left over by some
59778         compilers.
59779         Reported by Ralf Wildenhues.
59780
59781 2007-03-01  Bruno Haible  <bruno@clisp.org>
59782
59783         * build-aux/install-reloc: Break long lines.
59784
59785 2007-03-01  Bruno Haible  <bruno@clisp.org>
59786
59787         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59788         Reported by Ralf Wildenhues.
59789
59790 2007-03-01  Bruno Haible  <bruno@clisp.org>
59791
59792         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59793         include ordering constraints.
59794
59795 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59796
59797         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59798         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59799         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59800         as another example.
59801         * lib/time_.h: Fix misspelling.
59802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59803         Require gl_HEADER_TIME_H_DEFAULTS.
59804         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59805         * m4/time_r.m4 (gl_TIME_R): Likewise.
59806         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59807
59808 2007-03-01  Bruno Haible  <bruno@clisp.org>
59809
59810         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59811         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59812
59813 2007-03-01  Jim Meyering  <jim@meyering.net>
59814
59815         * modules/xreadlink (Maintainer): Add my name.
59816         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59817
59818 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59819             Bruno Haible  <bruno@clisp.org>
59820
59821         * build-aux/install-reloc: Compile also c-ctype.c.
59822         * build-aux/relocatable.sh.in: New file.
59823         * doc/relocatable.texi: New file.
59824         * doc/relocatable-maint.texi: New file.
59825         * doc/gnulib.texi: Include relocatable-maint.texi.
59826         * lib/progreloc.c: Include unistd.h unconditionally.
59827         * lib/relocwrapper.c: Include unistd.h unconditionally.
59828         Include c-ctype.h.
59829         (add_dotbin): Use c_tolower.
59830         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59831         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59832         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59833         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59834         to m4/relocatable-lib.m4.
59835         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59836         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59837         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59838         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59839         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59840         * modules/relocatable: New file.
59841         * modules/relocatable-lib: New file.
59842         * modules/relocatable-script: New file.
59843
59844 2007-02-28  Bruno Haible  <bruno@clisp.org>
59845
59846         Import --enable-relocatable infrastructure.
59847         * build-aux/config.libpath: New file, from GNU gettext.
59848         * build-aux/install-reloc: New file, from GNU gettext.
59849         * build-aux/reloc-ldflags: New file, from GNU gettext.
59850         * lib/relocatable.h: New file, from GNU gettext.
59851         * lib/relocatable.c: New file, from GNU gettext.
59852         * lib/relocwrapper.c: New file, from GNU gettext.
59853         * m4/relocatable.m4: New file, from GNU gettext.
59854
59855 2007-02-28  Bruno Haible  <bruno@clisp.org>
59856
59857         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59858
59859         * modules/xreadlink: New file, from GNU gettext with modifications.
59860         * lib/xreadlink.c: New file, from GNU gettext.
59861         * lib/xreadlink.h: Add comments.
59862         (xreadlink): New declaration.
59863
59864         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59865         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59866         lib/xreadlink-with-size.c.
59867         (configure.ac): Remove gl_XREADLINK invocation.
59868         (Makefile.am): Augment lib_SOURCES.
59869         * m4/xreadlink.m4: Remove file.
59870         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59871         (xreadlink_with_size): Renamed from xreadink.
59872         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59873         * modules/canonicalize (Depends-on): Replace xreadlink with
59874         xreadlink-with-size.
59875         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59876
59877 2007-02-25  Jim Meyering  <jim@meyering.net>
59878
59879         * build-aux/announce-gen: When complaining about excess arguments,
59880         list them.
59881
59882 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59883
59884         * README: Document signed integer overflow situation more
59885         accurately.
59886
59887 2007-02-25  Bruno Haible  <bruno@clisp.org>
59888
59889         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59890         'a' or 'A' conversion.
59891
59892 2007-02-25  Bruno Haible  <bruno@clisp.org>
59893
59894         * modules/filename: Renamed from modules/pathname.
59895         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59896         lib/concatpath.c with lib/concat-filename.c.
59897         (Makefile.am): Update.
59898         (Include): Replace pathname.h with filename.h.
59899         * lib/filename.h: Renamed from lib/pathname.h.
59900         (concatenated_filename): Renamed from concatenated_pathname.
59901         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59902         (concatenated_filename): Renamed from concatenated_pathname.
59903         * lib/findprog.c: Include filename.h instead of pathname.h.
59904         (find_in_path): Update.
59905         * lib/javacomp.c: Include filename.h instead of pathname.h.
59906         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59907         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59908         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59909         is_oldgcj_14_13_usable, is_javac_usable): Update.
59910         * lib/javaexec.c: Include filename.h instead of pathname.h.
59911         (execute_java_class): Update.
59912         * modules/findprog: Update.
59913         * modules/javacomp: Update.
59914         * modules/javaexec: Update.
59915         * MODULES.html.sh (File system functions): Add 'filename', remove
59916         'pathname'.
59917
59918 2007-02-25  Bruno Haible  <bruno@clisp.org>
59919
59920         * modules/printf-frexpl-tests: New file.
59921         * tests/test-printf-frexpl.c: New file.
59922
59923         * modules/printf-frexpl: New file.
59924         * lib/printf-frexpl.h: New file.
59925         * lib/printf-frexpl.c: New file.
59926         * m4/printf-frexpl.m4: New file.
59927
59928 2007-02-25  Bruno Haible  <bruno@clisp.org>
59929
59930         * modules/printf-frexp-tests: New file.
59931         * tests/test-printf-frexp.c: New file.
59932
59933         * modules/printf-frexp: New file.
59934         * lib/printf-frexp.h: New file.
59935         * lib/printf-frexp.c: New file.
59936         * m4/printf-frexp.m4: New file.
59937
59938 2007-02-25  Bruno Haible  <bruno@clisp.org>
59939
59940         Assume automake >= 1.10 for the tests.
59941         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59942         * modules/arctwo-tests: Likewise.
59943         * modules/argp-tests: Likewise.
59944         * modules/avltree-list-tests: Likewise.
59945         * modules/avltree-oset-tests: Likewise.
59946         * modules/avltreehash-list-tests: Likewise.
59947         * modules/carray-list-tests: Likewise.
59948         * modules/crc-tests: Likewise.
59949         * modules/des-tests: Likewise.
59950         * modules/gc-arcfour-tests: Likewise.
59951         * modules/gc-arctwo-tests: Likewise.
59952         * modules/gc-des-tests: Likewise.
59953         * modules/gc-hmac-md5-tests: Likewise.
59954         * modules/gc-hmac-sha1-tests: Likewise.
59955         * modules/gc-md2-tests: Likewise.
59956         * modules/gc-md4-tests: Likewise.
59957         * modules/gc-md5-tests: Likewise.
59958         * modules/gc-pbkdf2-sha1-tests: Likewise.
59959         * modules/gc-rijndael-tests: Likewise.
59960         * modules/gc-sha1-tests: Likewise.
59961         * modules/gc-tests: Likewise.
59962         * modules/getaddrinfo-tests: Likewise.
59963         * modules/hmac-md5-tests: Likewise.
59964         * modules/hmac-sha1-tests: Likewise.
59965         * modules/linked-list-tests: Likewise.
59966         * modules/linkedhash-list-tests: Likewise.
59967         * modules/lock-tests: Likewise.
59968         * modules/md2-tests: Likewise.
59969         * modules/md4-tests: Likewise.
59970         * modules/md5-tests: Likewise.
59971         * modules/rbtree-list-tests: Likewise.
59972         * modules/rbtree-oset-tests: Likewise.
59973         * modules/rbtreehash-list-tests: Likewise.
59974         * modules/read-file-tests: Likewise.
59975         * modules/rijndael-tests: Likewise.
59976         * modules/stdint-tests: Likewise.
59977         * modules/tls-tests: Likewise.
59978
59979 2007-02-24  Bruno Haible  <bruno@clisp.org>
59980
59981         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59982         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59983         function; instead check whether isnan with a double argument links.
59984         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59985         function; instead check whether isnan with a 'long double' argument
59986         links.
59987         Reported by Eric Blake <ebb9@byu.net>.
59988
59989 2007-02-24  Bruno Haible  <bruno@clisp.org>
59990
59991         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59992         defined.
59993         * lib/isnanl.c: Remove all code. Just include isnan.c.
59994         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59995
59996 2007-02-25  Jim Meyering  <jim@meyering.net>
59997
59998         Avoid conflicting types for 'unsetenv' on FreeBSD.
59999         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
60000         conflicting with FreeBSD's (5.0 and 6.1) function declaration
60001         in stdlib.h.
60002
60003 2007-02-24  Bruno Haible  <bruno@clisp.org>
60004
60005         * modules/isnanl-nolibm-tests: New file.
60006         * tests/test-isnanl.c: New file.
60007
60008         * modules/isnanl-nolibm: New file.
60009         * lib/isnanl.h: New file.
60010         * lib/isnanl.c: New file.
60011         * m4/isnanl.m4: New file.
60012
60013 2007-02-24  Bruno Haible  <bruno@clisp.org>
60014
60015         * modules/isnan-nolibm-tests: New file.
60016         * tests/test-isnan.c: New file.
60017
60018         * modules/isnan-nolibm: New file.
60019         * lib/isnan.h: New file.
60020         * lib/isnan.c: New file.
60021         * m4/isnan.m4: New file.
60022
60023 2007-02-24  Bruno Haible  <bruno@clisp.org>
60024
60025         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
60026         assume that an exponent fits in 20 bits.
60027
60028 2007-02-24  Jim Meyering  <jim@meyering.net>
60029
60030         * m4/regex.m4: Update the description of the configure-time option,
60031         --without-included-regex, to state accurately what the defaults are,
60032         and perhaps to give people an idea why using this option is risky.
60033
60034 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60035
60036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
60037         loops on small arguments.  This attempts to avoid the problem
60038         Bruno Haible reported for AIX 4.3.2 in
60039         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
60040
60041 2007-02-23  Bruno Haible  <bruno@clisp.org>
60042
60043         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
60044         Needed for help2man.
60045
60046 2007-02-23  Karl Berry  <karl@gnu.org>
60047
60048         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
60049         exists, foo.h should be cvs-ignored, not committed.
60050
60051 2007-02-23  Eric Blake  <ebb9@byu.net>
60052
60053         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
60054         * lib/stat-time.h (includes): Likewise.
60055         * lib/utimecmp.c (includes): Likewise.
60056         * lib/utimens.h (includes): Likewise.
60057         * lib/getdate.y (includes): Also include "timespec.h" for use
60058         internal to the module.
60059         * modules/utimens (Depends-on): Revert yesterday's patch.
60060         * modules/nanosleep (Depends-on): Add missing dependency.
60061
60062 2007-02-22  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/glob.c: Don't include getlogin_r.h.
60065
60066 2007-02-22  Jim Meyering  <jim@meyering.net>
60067
60068         * modules/utimens (Depends-on): Add timespec, required for
60069         utimens.h's inclusion of timespec.h.
60070
60071 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
60072
60073         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
60074         long unreadable paths in GNU/Linux.  Problem reported by Andreas
60075         Schwab in
60076         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
60077         I'll try to think of a better way to fix the Solaris problem.
60078
60079         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
60080         like glibc; on Solaris 10, it fails with errno == EINVAL.
60081         POSIX says the behavior is unspecified if the first argument is NULL,
60082         so play it safe and never pass NULL to the system getcwd.
60083
60084 2007-02-21  Jim Meyering  <jim@meyering.net>
60085
60086         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
60087         of gettimeofday.  It would conflict with the one now always
60088         provided via sys_time_.h.  Reported by Matthew Woehlke, as
60089         an IRIX 6.5 build failure.
60090
60091 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60092
60093         Minor fixups to port to Solaris 10 with Sun C 5.8.
60094         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
60095         * modules/getcwd (Depends-on): Add dirfd.
60096         * lib/putenv.c (putenv): #undef it.
60097         (rpl_putenv): New decl.
60098         (malloc, free): Include <stdlib.h> rather than prototyping separately.
60099
60100 2007-02-20  Bruno Haible  <bruno@clisp.org>
60101
60102         * modules/stdio-tests: New file.
60103         * tests/test-stdio.c: New file.
60104
60105         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
60106         (Depends-on): Add stdio.
60107         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60108         (Include): Use <stdio.h> instead of vsnprintf.h.
60109         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60110         HAVE_DECL_VSNPRINTF.
60111         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
60112
60113         * modules/snprintf (Files): Remove lib/snprintf.h.
60114         (Depends-on): Add stdio.
60115         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60116         (Include): Use <stdio.h> instead of snprintf.h.
60117         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60118         HAVE_DECL_SNPRINTF.
60119         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
60120         * lib/getaddrinfo.c: Likewise.
60121
60122         * modules/stdio: New file.
60123         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
60124         * lib/snprintf.h: Remove file.
60125         * lib/vsnprintf.h: Remove file.
60126         * lib/.cppi-disable: Remove snprintf.h.
60127         * m4/stdio_h.m4: New file.
60128         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
60129
60130 2007-02-20  Jim Meyering  <jim@meyering.net>
60131
60132         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
60133         used by e.g., mingw.  From Bruno Haible.
60134
60135 2007-02-19  Bruno Haible  <bruno@clisp.org>
60136
60137         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
60138         warnings.
60139         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60140
60141 2007-02-19  Bruno Haible  <bruno@clisp.org>
60142
60143         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
60144         from mingw users.
60145
60146 2007-02-19  Bruno Haible  <bruno@clisp.org>
60147
60148         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
60149         warnings.
60150         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
60151
60152 2007-02-19  Jim Meyering  <jim@meyering.net>
60153
60154         Don't use FD after a successful "fdopendir (fd)".
60155         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
60156         Reset it by calling dirfd on the just-obtained DIR*.
60157
60158         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
60159         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
60160
60161 2007-02-18  Bruno Haible  <bruno@clisp.org>
60162
60163         * lib/readlink.c: Include <unistd.h>.
60164         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
60165         HAVE_READLINK.
60166         * modules/readlink (Depends-on): Add unistd.
60167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60168         (Include): Add <unistd.h>.
60169
60170         * lib/getlogin_r.h: Remove file.
60171         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
60172         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
60173         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
60174         HAVE_DECL_GETLOGIN_R.
60175         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
60176         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60177         (Include): Use <unistd.h> instead of getlogin_r.h.
60178
60179         * lib/getcwd.h: Remove file.
60180         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
60181         * lib/xgetcwd.c: Likewise.
60182         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
60183         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
60184         * modules/getcwd (Files): Remove lib/getcwd.h.
60185         (Depends-on): Add unistd.
60186         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60187         (Include): Use <unistd.h> instad of getcwd.h.
60188
60189         * lib/ftruncate.c: Include <unistd.h> first.
60190         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
60191         Set HAVE_FTRUNCATE.
60192         * modules/ftruncate (Depends-on): Add unistd.
60193         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60194
60195         * lib/fchdir.c: Include <unistd.h> first.
60196         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
60197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
60198         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
60199         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60200         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
60201
60202         * lib/dup2.c: Include <unistd.h> first.
60203         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
60204         HAVE_DUP2.
60205         * modules/dup2 (Depends-on): Add unistd.
60206         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60207
60208         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
60209         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
60210         REPLACE_CHOWN. Don't define chown as a macro here.
60211         * modules/chown (Depends-on): Add unistd.
60212         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60213
60214         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
60215         Add definition for GL_LINK_WARNING.
60216         (chown, dup2): New declarations.
60217         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
60218         link warning.
60219         (ftruncate): New declaration.
60220         (getcwd): New declaration, taken from old getcwd.h.
60221         (getlogin_r): New declaration, taken from old getlogin_r.h.
60222         (readlink): New declaration.
60223         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
60224         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
60225         (gl_PREREQ_UNISTD): Remove macro.
60226         (gl_UNISTD_MODULE_INDICATOR): New macro.
60227         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
60228         many new variables. Don't set UNISTD_H.
60229         * modules/unistd (Description): Change.
60230         (Depends-on): Add link-warning.
60231         (configure.ac): Update.
60232         (Makefile.am): Create unistd.h always. Substitute many new variables
60233         into it.
60234
60235 2007-02-18  Bruno Haible  <bruno@clisp.org>
60236
60237         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
60238         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
60239         HAVE_GETSUBOPT.
60240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
60241         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
60242         * lib/getsubopt.h: Remove file.
60243         * modules/getsubopt (Files): Remove lib/getsubopt.h.
60244         (Depends-on): Add stdlib.
60245         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60246         (Includes): Use <stdlib.h> instead of getsubopt.h.
60247         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
60248         Set HAVE_GETSUBOPT.
60249         * lib/getsubopt.c: Don't include getsubopt.h.
60250
60251 2007-02-18  Bruno Haible  <bruno@clisp.org>
60252
60253         * modules/fchdir (Depends-on): Add dup2.
60254
60255 2007-02-18  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/stdlib_.h: Handle glibc's special invocation convention
60258         specially.
60259
60260 2007-02-18  Bruno Haible  <bruno@clisp.org>
60261
60262         * modules/stdlib-tests: New file.
60263         * tests/test-stdlib.c: New file.
60264
60265         * modules/mkstemp (Files): Remove lib/mkstemp.h.
60266         (Depends-on): Add stdlib.
60267         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60268         (Includes): Use <stdlib.h> instead of mkstemp.h.
60269         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60270         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
60271         * lib/mkstemp.c: Don't include mkstemp.h.
60272         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
60273         * lib/stdlib--.h: Don't include mkstemp.h.
60274
60275         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
60276         (Depends-on): Add stdlib.
60277         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60278         (Includes): Use <stdlib.h> instead of mkdtemp.h.
60279         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60280         HAVE_MKDTEMP.
60281         * lib/mkdtemp.c: Don't include mkdtemp.h.
60282         * lib/clean-temp.c: Don't include mkdtemp.h.
60283
60284         * modules/exit (Files): Remove lib/exit.h.
60285         (Depends-on): Add stdlib.
60286         (Makefile.am): Remove lib_SOURCES.
60287         (Include): Use <stdlib.h> instead of exit.h.
60288         * lib/argmatch.c: Don't include exit.h.
60289         * lib/execute.c: Likewise.
60290         * lib/pagealign_alloc.c: Likewise.
60291         * lib/pipe.c: Likewise.
60292         * lib/wait-process.c: Likewise.
60293         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
60294         * lib/exitfail.c: Likewise.
60295         * lib/savewd.c: Likewise.
60296         * lib/xsetenv.c: Likewise.
60297
60298         * modules/stdlib: New file.
60299         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
60300         and extra comments about mkstemp().
60301         * lib/exit.h: Remove file.
60302         * lib/mkdtemp.h: Remove file.
60303         * lib/mkstemp.h: Remove file.
60304         * m4/stdlib_h.m4: New file.
60305         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
60306
60307 2007-02-18  Bruno Haible  <bruno@clisp.org>
60308
60309         * modules/math-tests: New file.
60310         * tests/test-math.c: New file.
60311
60312         * modules/math: New file.
60313         * modules/mathl (Files): Remove lib/mathl.h.
60314         (Depends-on): Add math.
60315         (Makefile.am): Don't mention mathl.h.
60316         (Include): Use <math.h> instead of mathl.h.
60317         * lib/math_.h: New file.
60318         * lib/mathl.h: Remove file.
60319         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
60320         mathl.h.
60321         * lib/asinl.c: Likewise.
60322         * lib/atanl.c: Likewise.
60323         * lib/ceill.c: Likewise.
60324         * lib/cosl.c: Likewise.
60325         * lib/expl.c: Likewise.
60326         * lib/floorl.c: Likewise.
60327         * lib/frexpl.c: Likewise.
60328         * lib/ldexpl.c: Likewise.
60329         * lib/logl.c: Likewise.
60330         * lib/sincosl.c: Likewise.
60331         * lib/sinl.c: Likewise.
60332         * lib/sqrtl.c: Likewise.
60333         * lib/tanl.c: Likewise.
60334         * lib/trigl.c: Likewise.
60335         * m4/math_h.m4: New file.
60336         * MODULES.html.sh (Mathematics): Add math.
60337
60338 2007-02-17  Bruno Haible  <bruno@clisp.org>
60339
60340         * modules/wctype-tests: New file.
60341         * tests/test-wctype.c: New file.
60342
60343         * modules/wchar-tests: New file.
60344         * tests/test-wchar.c: New file.
60345
60346         * modules/unistd-tests: New file.
60347         * tests/test-unistd.c: New file.
60348
60349         * modules/time-tests: New file.
60350         * tests/test-time.c: New file.
60351
60352         * modules/sysexits-tests: New file.
60353         * tests/test-sysexits.c: New file.
60354
60355         * modules/sys_time-tests: New file.
60356         * tests/test-sys_time.c: New file.
60357
60358         * modules/sys_stat-tests: New file.
60359         * tests/test-sys_stat.c: New file.
60360
60361         * modules/sys_socket-tests: New file.
60362         * tests/test-sys_socket.c: New file.
60363
60364         * modules/sys_select-tests: New file.
60365         * tests/test-sys_select.c: New file.
60366
60367         * modules/string-tests: New file.
60368         * tests/test-string.c: New file.
60369
60370         * modules/stdbool-tests: New file.
60371         * tests/test-stdbool.c: New file.
60372
60373         * modules/netinet_in-tests: New file.
60374         * tests/test-netinet_in.c: New file.
60375
60376         * modules/inttypes-tests: New file.
60377         * tests/test-inttypes.c: New file.
60378
60379         * modules/fcntl-tests: New file.
60380         * tests/test-fcntl.c: New file.
60381
60382         * modules/byteswap-tests: New file.
60383         * tests/test-byteswap.c: New file.
60384
60385         * modules/arpa_inet-tests: New file.
60386         * tests/test-arpa_inet.c: New file.
60387
60388 2007-02-17  Bruno Haible  <bruno@clisp.org>
60389
60390         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
60391         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
60392         if the corresponding module is not enabled. Emit link warnings if
60393         the function is used nevertheless.
60394         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
60395         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
60396         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
60397         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
60398         * modules/inttypes (Depends-on): Add link-warning.
60399         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60400         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
60401         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
60402         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
60403         * modules/imaxdiv (configure.ac): Likewise.
60404         * modules/strtoimax (configure.ac): Likewise.
60405         * modules/strtoumax (configure.ac): Likewise.
60406
60407 2007-02-17  Bruno Haible  <bruno@clisp.org>
60408
60409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
60410         gl_STRING_MODULE_INDICATOR_DEFAULTS.
60411         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
60412         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
60413
60414 2007-02-17  Bruno Haible  <bruno@clisp.org>
60415
60416         * modules/link-warning: New file.
60417         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
60418         * lib/string_.h (GL_LINK_WARNING): Remove definition.
60419         * modules/string (Depends-on): Add link-warning.
60420         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60421         string.h.
60422         * MODULES.html.sh (Support for building libraries and executables): Add
60423         link-warning.
60424
60425 2007-02-17  Bruno Haible  <bruno@clisp.org>
60426
60427         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
60428         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
60429         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
60430         long lines.
60431
60432 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
60433             Bruno Haible  <bruno@clisp.org>
60434
60435         * modules/tmpfile: New file.
60436         * lib/tmpfile.c: New file.
60437         * m4/tmpfile.m4: New file.
60438         * MODULES.html.sh (func_all_modules): New section "Input/output".
60439
60440 2007-02-15  Bruno Haible  <bruno@clisp.org>
60441
60442         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
60443         (supports_delete_on_close): New function.
60444         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
60445
60446 2007-02-14  Bruno Haible  <bruno@clisp.org>
60447
60448         * modules/mbspcasecmp-tests: New file.
60449         * tests/test-mbspcasecmp.sh: New file.
60450         * tests/test-mbspcasecmp.c: New file.
60451
60452         New module mbspcasecmp.
60453         * modules/mbspcasecmp: New file.
60454         * lib/mbspcasecmp.c: New file.
60455         * lib/string_.h (strncasecmp): Change warning message.
60456         (mbspcasecmp): New declaration.
60457         * m4/mbspcasecmp.m4: New file.
60458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60459         GNULIB_MBSPCASECMP.
60460         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
60461         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
60462
60463 2007-02-14  Bruno Haible  <bruno@clisp.org>
60464
60465         * modules/mbsncasecmp-tests: New file.
60466         * tests/test-mbsncasecmp.sh: New file.
60467         * tests/test-mbsncasecmp.c: New file.
60468
60469         New module mbsncasecmp.
60470         * modules/mbsncasecmp: New file.
60471         * lib/mbsncasecmp.c: New file.
60472         * lib/string_.h (mbsncasecmp): New declaration.
60473         * m4/mbsncasecmp.m4: New file.
60474         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60475         GNULIB_MBSNCASECMP.
60476         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
60477         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
60478
60479 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
60482         Verify that it doesn't overlap with our flags.
60483         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
60484         do not have the desired effect in multibyte locales; instead, use
60485         mbscasecmp.
60486         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
60487         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
60488         we don't require GNU fnmatch ourselves (if our users require it, they
60489         should do so explicitly).
60490
60491         Fix regex code so it doesn't rely on strcasecmp.
60492         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
60493         Otherwise, include gnulib's langinfo.h.
60494         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
60495         undesirable behavior in non-C locales.  Instead, rely on localecharset.
60496         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
60497         * modules/regex (FILES): Remove m4/codeset.m4.
60498         (Depends-on): Add localcharset.  Remove strcase.
60499
60500 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60501
60502         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
60503         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60504
60505 2007-02-13  Bruno Haible  <bruno@clisp.org>
60506
60507         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
60508         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60509
60510 2007-02-12  Bruno Haible  <bruno@clisp.org>
60511
60512         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60513         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60514         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60515         time warning rather than a link error.
60516
60517 2007-02-12  Bruno Haible  <bruno@clisp.org>
60518
60519         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60520         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60522
60523 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60526         args, not 2.
60527
60528 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60529
60530         New module 'time', so that apps can include <time.h> as per
60531         POSIX and GNU instead of separate include files like time_r.h
60532         and timegm.h.  This implementation tries out a simpler approach
60533         for replacing decls in standard include files (as compared to
60534         the string module), somewhat as an experiment.
60535
60536         * config/srclist.txt: Comment out mktime.c for now.
60537         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60538         since it doesn't apply any more.  Use generic wording instead.
60539         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60540         'time'.
60541         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60542         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60543         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60544         Don't include <sys/types.h>; no longer needed since we assume C89.
60545         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60546         * lib/strftime.c: Likewise.
60547         * lib/time_r.c: Likewise.
60548         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60549         * lib/nanosleep.c: Include <time.h> first, to check interface.
60550         * lib/strptime.c: Likewise.
60551         * lib/time_r.c: Likewise.
60552         * lib/timegm.c: Likewise.
60553         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60554         needed.
60555         * lib/timegm.c: Don't include timegm.h; no longer needed.
60556         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60557         time.h now handles any problems in that area.
60558         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60559         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60560         that time.h defines struct timespec.
60561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60562         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60563         handles that.
60564         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60565         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60566         needed.  Set REPLACE_LOCALTIME.
60567         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60568         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60569         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60570         nanosleep; time_h.m4 now does that.  Don't require
60571         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60572         module handles this now.
60573         * modules/getdate (Depends-on): Remove timespec.  Add time.
60574         * modules/nanosleep (Depends-on): Likewise.
60575         * modules/stat-time (Depends-on): Likewise.
60576         * modules/nanosleep (Include): Include time.h, not timespec.h.
60577         * modules/strptime (Files): Remove lib/strptime.h.
60578         (Depends-on): Add extensions, time.
60579         (Include): Include time.h, not strptime.h.
60580         * modules/time_r (Files): Remove lib/time_r.h.
60581         (Depends-on): Add time.
60582         (Include): Include time.h, not time_r.h.
60583         * modules/timegm: Likewise.
60584         * modules/timespec (Description): Now does timespec-related decls
60585         of our own, instead of struct timespec itself.
60586         (Depends-on): Add time; remove extensions.
60587         (Maintainer): Add self.
60588         * modules/utimecmp (Depends-on): Add time; remove timespec.
60589         * modules/utimens (Depends-on): Likewise.
60590         * modules/xnanosleep (Depends-on): Likewise.
60591
60592 2007-02-11  Bruno Haible  <bruno@clisp.org>
60593
60594         * lib/c-strstr.c: Include allocsa.h.
60595         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60596         * lib/c-strcasestr.c: Include allocsa.h.
60597         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60598         * lib/strcasestr.c: Include allocsa.h.
60599         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60600         * lib/mbsstr.c: Include allocsa.h.
60601         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60602         allocsa/freesa instead of malloc/free.
60603         * lib/mbscasestr.c: Include allocsa.h.
60604         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60605         allocsa/freesa instead of malloc/free.
60606         * modules/c-strstr (Depends-on): Add allocsa.
60607         * modules/c-strcasestr (Depends-on): Likewise.
60608         * modules/strcasestr (Depends-on): Likewise.
60609         * modules/mbsstr (Depends-on): Likewise.
60610         * modules/mbscasestr (Depends-on): Likewise.
60611
60612 2007-02-11  Bruno Haible  <bruno@clisp.org>
60613
60614         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60615
60616         * modules/mbsspn-tests: New file.
60617         * tests/test-mbsspn.sh: New file.
60618         * tests/test-mbsspn.c: New file.
60619
60620 2007-02-11  Bruno Haible  <bruno@clisp.org>
60621
60622         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60623
60624         * modules/mbspbrk-tests: New file.
60625         * tests/test-mbspbrk.sh: New file.
60626         * tests/test-mbspbrk.c: New file.
60627
60628 2007-02-11  Bruno Haible  <bruno@clisp.org>
60629
60630         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60631         unneeded cast.
60632
60633         * modules/mbscspn-tests: New file.
60634         * tests/test-mbscspn.sh: New file.
60635         * tests/test-mbscspn.c: New file.
60636
60637 2007-02-11  Bruno Haible  <bruno@clisp.org>
60638
60639         * modules/mbscasecmp-tests: New file.
60640         * tests/test-mbscasecmp.sh: New file.
60641         * tests/test-mbscasecmp.c: New file.
60642
60643 2007-02-11  Bruno Haible  <bruno@clisp.org>
60644
60645         Ensure O(n) worst-case complexity of mbscasestr.
60646         * lib/mbscasestr.c: Include stdbool.h.
60647         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60648         functions.
60649         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60650         the bookkeeping indicates that it's worth it.
60651         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60652
60653         * modules/mbscasestr-tests: New file.
60654         * tests/test-mbscasestr1.c: New file.
60655         * tests/test-mbscasestr2.sh: New file.
60656         * tests/test-mbscasestr2.c: New file.
60657         * tests/test-mbscasestr3.sh: New file.
60658         * tests/test-mbscasestr3.c: New file.
60659         * tests/test-mbscasestr4.sh: New file.
60660         * tests/test-mbscasestr4.c: New file.
60661         * m4/locale-tr.m4: New file.
60662
60663 2007-02-11  Bruno Haible  <bruno@clisp.org>
60664
60665         Ensure O(n) worst-case complexity of mbsstr.
60666         * lib/mbsstr.c: Include stdbool.h.
60667         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60668         functions.
60669         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60670         bookkeeping indicates that it's worth it.
60671         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60672
60673         * modules/mbsstr-tests: New file.
60674         * tests/test-mbsstr1.c: New file.
60675         * tests/test-mbsstr2.sh: New file.
60676         * tests/test-mbsstr2.c: New file.
60677         * tests/test-mbsstr3.sh: New file.
60678         * tests/test-mbsstr3.c: New file.
60679         * m4/locale-fr.m4: New file.
60680
60681 2007-02-11  Bruno Haible  <bruno@clisp.org>
60682
60683         * lib/mbsrchr.c (mbsrchr): Fix bug.
60684
60685         * modules/mbsrchr-tests: New file.
60686         * tests/test-mbsrchr.sh: New file.
60687         * tests/test-mbsrchr.c: New file.
60688
60689 2007-02-11  Bruno Haible  <bruno@clisp.org>
60690
60691         * lib/mbschr.c (mbschr): Fix bug.
60692
60693         * modules/mbschr-tests: New file.
60694         * tests/test-mbschr.sh: New file.
60695         * tests/test-mbschr.c: New file.
60696         * m4/locale-zh.m4: New file.
60697
60698 2007-02-11  Bruno Haible  <bruno@clisp.org>
60699
60700         Support for copying multibyte string iterators.
60701         * lib/mbiter.h: Include <string.h>.
60702         (mbiter_multi_copy): New function.
60703         (mbi_copy): New macro.
60704         * lib/mbuiter.h: Include <string.h>.
60705         (mbuiter_multi_copy): New function.
60706         (mbui_copy): New macro.
60707
60708 2007-02-11  Bruno Haible  <bruno@clisp.org>
60709
60710         New module mbslen.
60711         * modules/mbslen: New file.
60712         * lib/mbslen.c: New file.
60713         * lib/string_.h (mbslen): New declaration.
60714         * m4/mbslen.m4: New file.
60715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60716         GNULIB_MBSLEN.
60717         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60718         * MODULES.html.sh (Internationalization functions): Add mbslen.
60719
60720 2007-02-11  Bruno Haible  <bruno@clisp.org>
60721
60722         Ensure O(n) worst-case complexity of strcasestr substitute.
60723         * lib/strcasestr.c: Include stdbool.h.
60724         (knuth_morris_pratt): New function.
60725         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60726         bookkeeping indicates that it's worth it.
60727         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60728
60729         * modules/strcasestr-tests: New file.
60730         * tests/test-strcasestr.c: New file.
60731
60732 2007-02-11  Bruno Haible  <bruno@clisp.org>
60733
60734         Ensure O(n) worst-case complexity of c_strcasestr.
60735         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60736         (knuth_morris_pratt): New function.
60737         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60738         the bookkeeping indicates that it's worth it.
60739         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60740
60741         * modules/c-strcasestr-tests: New file.
60742         * tests/test-c-strcasestr.c: New file.
60743
60744 2007-02-11  Bruno Haible  <bruno@clisp.org>
60745
60746         Ensure O(n) worst-case complexity of c_strstr.
60747         * lib/c-strstr.c: Include stdbool.h, string.h.
60748         (knuth_morris_pratt): New function.
60749         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60750         bookkeeping indicates that it's worth it.
60751         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60752
60753         * lib/c-strstr.c: Complete rewrite for maintainability.
60754
60755         * modules/c-strstr-tests: New file.
60756         * tests/test-c-strstr.c: New file.
60757
60758 2007-02-11  Bruno Haible  <bruno@clisp.org>
60759
60760         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60761         5.2.1 and earlier, whereby \055 was treated just like the range
60762         delimiter '-'.
60763         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60764
60765 2007-02-08  Bruno Haible  <bruno@clisp.org>
60766
60767         * modules/regex (Depends-on): Add stdbool.
60768         Reported by Dalibor Topic <robilad@kaffe.org>.
60769
60770 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60771
60772         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60773         Prefer returning from main to exiting from it.
60774         Remove unnecessary parens after sizeof.
60775
60776 2007-02-05  Bruno Haible  <bruno@clisp.org>
60777
60778         New module mbssep.
60779         * modules/mbssep: New file.
60780         * lib/mbssep.c: New file.
60781         * lib/string_.h (strsep): Add a conditional link warning.
60782         (mbssep): New declaration.
60783         * m4/mbssep.m4: New file.
60784         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60785         GNULIB_MBSSEP.
60786         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60787         * MODULES.html.sh (Internationalization functions): Add mbssep.
60788
60789 2007-02-05  Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60792         Optimize search in case of 1 delimiter.
60793
60794 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60795
60796         * lib/acl.h: Include sys/types.h before sys/acl.h.
60797
60798 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60799
60800         Merge upstream fix for glibc bugzilla #3957:
60801
60802         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60803
60804         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60805         bit for RE_HAT_LISTS_NOT_NEWLINE.
60806         (build_charclass_op): Remove bogus comment.
60807
60808 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60809
60810         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60811
60812 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60813
60814         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60815         * lib/memmem.c [!defined _LIBC]: Include config.h.
60816
60817 2007-02-04  Bruno Haible  <bruno@clisp.org>
60818
60819         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60820         warning message.
60821
60822 2007-02-04  Bruno Haible  <bruno@clisp.org>
60823
60824         New module mbstok_r.
60825         * modules/mbstok_r: New file.
60826         * lib/mbstok_r.c: New file.
60827         * lib/string_.h (strtok_r): Change argument names to match the
60828         comments. Add a conditional link warning.
60829         (mbstok_r): New declaration.
60830         * m4/mbstok_r.m4: New file.
60831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60832         GNULIB_MBSTOK_R.
60833         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60834         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60835
60836 2007-02-04  Bruno Haible  <bruno@clisp.org>
60837
60838         New module mbsspn.
60839         * modules/mbsspn: New file.
60840         * lib/mbsspn.c: New file.
60841         * lib/string_.h (strspn): Add a conditional link warning.
60842         (mbsspn): New declaration.
60843         * m4/mbsspn.m4: New file.
60844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60845         GNULIB_MBSSPN.
60846         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60847         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60848
60849 2007-02-04  Bruno Haible  <bruno@clisp.org>
60850
60851         New module mbspbrk.
60852         * modules/mbspbrk: New file.
60853         * lib/mbspbrk.c: New file.
60854         * lib/string_.h (strpbrk): Add a conditional link warning.
60855         (mbspbrk): New declaration.
60856         * m4/mbspbrk.m4: New file.
60857         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60858         GNULIB_MBSPBRK.
60859         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60860         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60861
60862 2007-02-04  Bruno Haible  <bruno@clisp.org>
60863
60864         New module mbscspn.
60865         * modules/mbscspn: New file.
60866         * lib/mbscspn.c: New file.
60867         * lib/string_.h (strcspn): Add a conditional link warning.
60868         (mbscspn): New declaration.
60869         * m4/mbscspn.m4: New file.
60870         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60871         GNULIB_MBSCSPN.
60872         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60873         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60874
60875 2007-02-04  Bruno Haible  <bruno@clisp.org>
60876
60877         New module mbscasestr, reduced goal of strcasestr.
60878         * modules/mbscasestr: New file.
60879         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60880         (mbscasestr): Renamed from strcasestr.
60881         * lib/strcasestr.c: Don't include mbuiter.h.
60882         (strcasestr): Remove support for multibyte locales.
60883         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60884         Change the conditional link warning.
60885         (mbscasestr): New declaration.
60886         * m4/mbscasestr.m4: New file.
60887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60888         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60889         REPLACE_STRCASESTR.
60890         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60892         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60893         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60894         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60895         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60896         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60897         (Depends-on): Remove mbuiter.
60898         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60899
60900 2007-02-04  Bruno Haible  <bruno@clisp.org>
60901
60902         Simplify handling of strncasecmp.
60903         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60904         the conditional link warning.
60905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60906         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60907         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60908         * modules/strcase (configure.ac): Don't invoke
60909         gl_STRING_MODULE_INDICATOR.
60910         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60911
60912 2007-02-04  Bruno Haible  <bruno@clisp.org>
60913
60914         New module mbscasecmp, reduced goal of strcasecmp.
60915         * modules/mbscasecmp: New file.
60916         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60917         (mbscasecmp): Renamed from strcasecmp.
60918         * lib/strcasecmp.c: Don't include mbuiter.h.
60919         (strcasecmp): Remove support for multibyte locales.
60920         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60921         Change the conditional link warning.
60922         (mbscasecmp): New declaration.
60923         * m4/mbscasecmp.m4: New file.
60924         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60925         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60926         REPLACE_STRCASECMP.
60927         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60928         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60929         GNULIB_MBSCASECMP.
60930         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60931         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60932         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60933         (Depends-on): Remove mbuiter.
60934         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60935
60936 2007-02-04  Bruno Haible  <bruno@clisp.org>
60937
60938         New module mbsstr. Remove module strstr.
60939         * modules/mbsstr: New file.
60940         * modules/strstr: Remove file.
60941         * lib/mbsstr.c: Renamed from lib/strstr.c.
60942         (mbsstr): Renamed from strstr.
60943         * lib/string_.h (strstr): Remove declaration. Change the conditional
60944         link warning.
60945         (mbsstr): New declaration.
60946         * m4/mbsstr.m4: New file.
60947         * m4/strstr.m4: Remove file.
60948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60949         REPLACE_STRSTR.
60950         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60951         Don't initialize GNULIB_STRSTR.
60952         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60953         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60954         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60955         (Support for systems lacking ANSI C 89): Remove strstr.
60956
60957 2007-02-04  Bruno Haible  <bruno@clisp.org>
60958
60959         New module mbsrchr.
60960         * modules/mbsrchr: New file.
60961         * lib/mbsrchr.c: New file.
60962         * lib/string_.h (strrchr): Add a conditional link warning.
60963         (mbsrchr): New declaration.
60964         * m4/mbsrchr.m4: New file.
60965         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60966         GNULIB_MBSRCHR.
60967         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60968         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60969
60970 2007-02-04  Bruno Haible  <bruno@clisp.org>
60971
60972         New module mbschr.
60973         * modules/mbschr: New file.
60974         * lib/mbschr.c: New file.
60975         * lib/string_.h (strchr): Add a conditional link warning.
60976         (mbschr): New declaration.
60977         * m4/mbschr.m4: New file.
60978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60979         GNULIB_MBSCHR.
60980         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60981         * MODULES.html.sh (Internationalization functions): Add mbschr.
60982
60983 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60984
60985         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60986
60987         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60988
60989 2007-02-04  Bruno Haible  <bruno@clisp.org>
60990
60991         New module description section 'configure.ac-early'.
60992         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60993         (func_get_autoconf_early_snippet): New function.
60994         (func_import, func_create_testdir): Use it. Remove special cases for
60995         modules 'extensions' and 'lock'.
60996         * modules/extensions (configure.ac-early): Require
60997         gl_USE_SYSTEM_EXTENSIONS.
60998         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60999
61000 2007-02-04  Bruno Haible  <bruno@clisp.org>
61001
61002         Make use of gcj-4.3's -fsource and -ftarget option.
61003         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
61004         and if so try the options -fsource and -ftarget.
61005         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
61006         source_version, ftarget_option, target_version arguments.
61007         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
61008         (is_envjavac_oldgcj_14_14_usable): Renamed from
61009         is_envjavac_gcj_14_14_usable.
61010         (is_envjavac_oldgcj_14_13_usable): Renamed from
61011         is_envjavac_gcj_14_13_usable.
61012         (is_gcj_present): Update.
61013         (is_gcj_43, is_gcj43_usable): New functions.
61014         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
61015         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
61016         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
61017         try the options -fsource and -ftarget.
61018
61019 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61020
61021         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
61022         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
61023         larger value.
61024
61025 2007-02-03  Jim Meyering  <jim@meyering.net>
61026
61027         Give tools a better chance to allocate space for very large buffers.
61028         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
61029
61030         Make pwd and readlink work also when run with an unreadable parent dir
61031         on systems with openat support.
61032         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
61033         provided getcwd function, even when we have openat support.
61034         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
61035
61036 2007-02-02  Bruno Haible  <bruno@clisp.org>
61037
61038         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61039         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
61040         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
61041         portability problems if one of these functions is only used on specific
61042         platforms.
61043         Reported by Paul Eggert.
61044
61045 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
61046
61047         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
61048         is causing more trouble than it's curing.
61049         * lib/regex_internal.h (__mempcpy): Remove.
61050         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
61051         (and make the code a tad smaller to boot).
61052         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
61053
61054 2007-02-02  Jim Meyering  <jim@meyering.net>
61055
61056         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
61057         section, not in the Makefile.am: one.
61058
61059 2007-02-02  Eric Blake  <ebb9@byu.net>
61060
61061         * lib/strchrnul.c: Always include config.h first.
61062
61063         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
61064         gnulib strstr is not necessary here.
61065
61066 2007-02-02  Simon Josefsson  <simon@josefsson.org>
61067
61068         * m4/socklen.m4: Fix typo.
61069
61070 2007-02-02  Eric Blake  <ebb9@byu.net>
61071
61072         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
61073         * modules/netinet_in (Makefile.am): Likewise.
61074
61075 2007-02-01  Bruno Haible  <bruno@clisp.org>
61076
61077         * lib/string_.h (GL_LINK_WARNING): New macro.
61078         (strcasecmp, strstr, strcasestr): If provided by the system,
61079         conditionally define as a macro that leads to a warning instead of to
61080         an error.
61081         (strncasecmp): Conditionally define as a macro that leads to a warning.
61082
61083 2007-02-01  Karl Berry  <karl@gnu.org>
61084
61085         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
61086
61087 2007-02-01  Bruno Haible  <bruno@clisp.org>
61088
61089         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
61090         renamings.
61091
61092 2007-02-01  Eric Blake  <ebb9@byu.net>
61093
61094         * modules/regex (Depends-on): Revert dependence on mempcpy.
61095         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
61096         module's definition of mempcpy.
61097         Reported by Paul Eggert.
61098
61099 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61100
61101         * lib/string_.h: If the gnulib module XYZ is not present, undefine
61102         the symbol XYZ before redefining it.  This fixes a problem with
61103         programs that don't use XYZ, when compiled on systems that define
61104         XYZ to something else.
61105
61106 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
61107
61108         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
61109         occurs when "mkdir -m foo" creates a setgid directory that is (1)
61110         writeable to group or other and (2) is intended to have a special
61111         mode bit that is set or cleared.  In such a case, the directory
61112         should be neither group- nor other-writeable until the special
61113         mode bits are right.
61114
61115 2007-01-31  Eric Blake  <ebb9@byu.net>
61116
61117         * modules/mountlist (Depends-on): Add strstr.
61118
61119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
61120         bug.
61121         * modules/string (Makefile.am): Remove redundant replacement.
61122         * modules/regex (Depends-on): Add mempcpy.
61123
61124 2007-01-31  Bruno Haible  <bruno@clisp.org>
61125
61126         New module description field 'Link'.
61127         * gnulib-tool (func_usage): Document --extract-link-directive.
61128         (sed_extract_prog): Recognize 'Link' directive.
61129         (func_get_link_directive): New function.
61130         (func_import): Show summary of link directives.
61131         Handle --extract-link-directive option.
61132         * modules/acl (Link): New section.
61133         * modules/clock-time (Link): New section.
61134         * modules/euidaccess (Link): New section.
61135         * modules/gettext (Link): New section.
61136         * modules/iconv (Link): New section.
61137         * modules/lock (Link): New section.
61138         * modules/nanosleep (Link): New section.
61139         * modules/readline (Link): New section.
61140
61141 2007-01-27  Bruno Haible  <bruno@clisp.org>
61142
61143         Enforce the use of gnulib modules for unportable <string.h> functions.
61144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
61145         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
61146         (gl_HEADER_STRING_H_BODY): Require it.
61147         * lib/string_.h: If the gnulib module XYZ is not present, redefine
61148         the symbol XYZ to one that gives a link error.
61149         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
61150         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
61151         * modules/mempcpy (configure.ac): Likewise.
61152         * modules/memrchr (configure.ac): Likewise.
61153         * modules/stpcpy (configure.ac): Likewise.
61154         * modules/stpncpy (configure.ac): Likewise.
61155         * modules/strcase (configure.ac): Likewise.
61156         * modules/strcasestr (configure.ac): Likewise.
61157         * modules/strchrnul (configure.ac): Likewise.
61158         * modules/strdup (configure.ac): Likewise.
61159         * modules/strndup (configure.ac): Likewise.
61160         * modules/strnlen (configure.ac): Likewise.
61161         * modules/strpbrk (configure.ac): Likewise.
61162         * modules/strsep (configure.ac): Likewise.
61163         * modules/strstr (configure.ac): Likewise.
61164         * modules/strtok_r (configure.ac): Likewise.
61165
61166 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
61167
61168         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
61169
61170 2007-01-30  Jim Meyering  <jim@meyering.net>
61171
61172         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
61173
61174 2007-01-29  Bruno Haible  <bruno@clisp.org>
61175
61176         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
61177         * lib/execute.c: Likewise.
61178         * lib/pipe.c: Likewise.
61179         * lib/printf-args.h: Likewise.
61180         * lib/printf-args.c: Likewise.
61181         * lib/printf-parse.c: Likewise.
61182         * lib/vasnprintf.c: Likewise.
61183
61184 2007-01-29  Eric Blake  <ebb9@byu.net>
61185
61186         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
61187         declaration.
61188
61189 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
61190
61191         * lib/strptime.h (strptime): Use 'restrict' for args where
61192         POSIX requires this.
61193         * lib/strptime.c (strptime): Likewise.
61194         Change license notice from LGPL to GPL, since gnulib-tool will
61195         change this as needed.
61196         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
61197         defined.
61198         Include "strptime.h" first, to check interface.
61199         Do not #undef _LIBC and _NL_CURRENT.
61200         Do not include <stdlib.h>; no longer needed.
61201         Include "time_r.h" and declare ptime_locale_status
61202         only if _LIBC is not defined.
61203         (__P): Remove unused macro.
61204         (match_string): Bring back glibc version, but use it only if _LIBC
61205         is defined.
61206         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
61207         Remove unnecessary assertion and abort() call.
61208         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
61209         * m4/strptime.m4: Fix serial number comment.
61210         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
61211         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
61212         (Depends-on): Add time_r.
61213
61214 2007-01-29  Bruno Haible  <bruno@clisp.org>
61215
61216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61217         strptime.
61218         * modules/strptime (Depends-on): Add stdbool.
61219         * lib/strptime.h: Include <time.h> always. Add comments.
61220
61221 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61222
61223         * modules/strptime: New file.
61224         * lib/strptime.h: New file.
61225         * lib/strptime.c: New file.
61226         * m4/strptime.m4: New file.
61227
61228 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61229
61230         * MODULES.html.sh: New module mpsort.
61231         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
61232
61233         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
61234         a circularity problem with HP-UX ia64 reported by Bob Proulx in
61235         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
61236         All uses changed.
61237         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
61238         All uses changed.
61239         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
61240         to _Restrict_.
61241         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
61242         the parameter matches the prototype.
61243
61244 2007-01-28  Jim Meyering  <jim@meyering.net>
61245
61246         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
61247         sys/time.h here, reverting that part of the previous patch:
61248         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
61249
61250 2007-01-28  Bruno Haible  <bruno@clisp.org>
61251
61252         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
61253         value of $(SYS_TIME_H).
61254         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
61255         remove it conditionally, too. [added by Jim Meyering]
61256         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61257         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61258         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61259         GETTIMEOFDAY_REPLACEMENT to 1.
61260
61261 2007-01-28  Bruno Haible  <bruno@clisp.org>
61262
61263         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
61264         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
61265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
61266         Set UNISTD_H instead of UNISTD_H2.
61267         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
61268
61269 2007-01-28  Bruno Haible  <bruno@clisp.org>
61270
61271         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
61272         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
61273
61274 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61275
61276         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
61277         (func_create_testdir): Ensure C locale for `grep' and `tr'
61278         character ranges.
61279         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
61280         ACLOCAL_AMFLAGS parsing state machine.
61281
61282 2007-01-27  Bruno Haible  <bruno@clisp.org>
61283
61284         * modules/unistr/base: Update.
61285
61286 2007-01-27  Bruno Haible  <bruno@clisp.org>
61287
61288         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
61289         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
61290         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61291         modules/unistr/u32-mbtouc.
61292         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
61293         * lib/unistr.h: Update.
61294         * lib/linebreak.c: Update.
61295         * modules/unistr/u32-mbtouc: Renamed from
61296         modules/unistr/u32-mbtouc-safe.
61297         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
61298         * lib/unistr.h: Update.
61299         * lib/unistr/u32-to-u8.c: Update.
61300         * lib/unistr/u32-to-u16.c: Update.
61301
61302 2007-01-27  Bruno Haible  <bruno@clisp.org>
61303
61304         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
61305         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
61306         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
61307         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
61308         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
61309         * modules/unistr/u16-mbtouc-unsafe: Renamed from
61310         modules/unistr/u16-mbtouc.
61311         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
61312         * lib/unistr.h: Update.
61313         * lib/linebreak.c: Update.
61314         * modules/linebreak: Update.
61315         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
61316         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
61317         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
61318         * modules/unistr/u16-mbtouc: Renamed from
61319         modules/unistr/u16-mbtouc-safe.
61320         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
61321         * lib/unistr.h: Update.
61322         * lib/unistr/u16-to-u8.c: Update.
61323         * modules/unistr/u16-to-u8: Update.
61324         * lib/unistr/u16-to-u32.c: Update.
61325         * modules/unistr/u16-to-u32: Update.
61326
61327 2007-01-27  Bruno Haible  <bruno@clisp.org>
61328
61329         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
61330         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
61331         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
61332         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
61333         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
61334         * modules/unistr/u8-mbtouc-unsafe: Renamed from
61335         modules/unistr/u8-mbtouc.
61336         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
61337         * lib/unistr.h: Update.
61338         * lib/striconveh.c: Update.
61339         * modules/striconveh: Update.
61340         * lib/linebreak.c: Update.
61341         * modules/linebreak: Update.
61342         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
61343         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
61344         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
61345         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
61346         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
61347         * lib/unistr.h: Update.
61348         * lib/striconveh.c: Update.
61349         * modules/striconveh: Update.
61350         * lib/unistr/u8-to-u16.c: Update.
61351         * modules/unistr/u8-to-u16: Update.
61352         * lib/unistr/u8-to-u32.c: Update.
61353         * modules/unistr/u8-to-u32: Update.
61354
61355 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61356
61357         Sync from Libtool.
61358         * lib/argz.c: Do not include strings.h nor memory.h, include
61359         string.h unconditionally.  Patch by Simon Josefsson.
61360
61361 2007-01-27  Bruno Haible  <bruno@clisp.org>
61362
61363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
61364         from gl_HEADER_STRING_H_BODY.
61365         (gl_HEADER_STRING_H_BODY): Require it.
61366         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
61367         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61368         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61369         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61371         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
61372         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61373         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61374         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
61375         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61376         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61377         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
61378         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61379         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61380         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61381
61382 2007-01-27  Bruno Haible  <bruno@clisp.org>
61383
61384         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
61385         check_PROGRAMS into noinst_PROGRAMS.
61386         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
61387         check_PROGRAMS in this case.
61388         (func_import): Set for_test to false.
61389         (func_create_testdir): Set for_test to true.
61390
61391 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61392             Bruno Haible  <bruno@clisp.org>
61393
61394         * modules/strcasestr (Files): Remove lib/strcasestr.h.
61395         (Depends-on): Add string.
61396         (Includes): Use <string.h> instead of strcasestr.h.
61397         * modules/string (Makefile.am): Also substitute the value of
61398         REPLACE_STRCASESTR.
61399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
61400         assume strcasestr is declared in <string.h> not <strings.h>. Also
61401         set REPLACE_STRCASESTR.
61402         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
61403         REPLACE_STRCASESTR.
61404         * lib/strcasestr.h: Remove file.
61405         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
61406         * lib/string_.h (strcasestr): New declaration.
61407
61408 2007-01-27  Bruno Haible  <bruno@clisp.org>
61409
61410         * lib/string_.h: Use 'extern'.
61411
61412 2007-01-27  Jim Meyering  <jim@meyering.net>
61413
61414         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
61415         of set-but-not-used local, "q".
61416
61417         * lib/mempcpy.c: Include <config.h> before <string.h>.
61418         This fixes a compilation error on HP-UX, due to the system's
61419         "restrict"-using mempcpy prototype.
61420
61421 2007-01-26  Bruno Haible  <bruno@clisp.org>
61422
61423         Small optimization.
61424         * lib/javacomp.c: Include c-strstr.h.
61425          (is_envjavac_gcj): Use c_strstr instead of strstr.
61426         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
61427
61428 2007-01-26  Bruno Haible  <bruno@clisp.org>
61429
61430         * MODULES.html.sh (Unicode string functions): Add the new modules.
61431
61432         * modules/uniconv/u32-strconv-to-locale: New file.
61433         * lib/uniconv/u32-strconv-to-locale.c: New file.
61434
61435         * modules/uniconv/u16-strconv-to-locale: New file.
61436         * lib/uniconv/u16-strconv-to-locale.c: New file.
61437
61438         * modules/uniconv/u8-strconv-to-locale: New file.
61439         * lib/uniconv/u8-strconv-to-locale.c: New file.
61440
61441         * modules/uniconv/u32-strconv-from-locale: New file.
61442         * lib/uniconv/u32-strconv-from-locale.c: New file.
61443
61444         * modules/uniconv/u16-strconv-from-locale: New file.
61445         * lib/uniconv/u16-strconv-from-locale.c: New file.
61446
61447         * modules/uniconv/u8-strconv-from-locale: New file.
61448         * lib/uniconv/u8-strconv-from-locale.c: New file.
61449
61450         * modules/uniconv/u32-strconv-to-enc: New file.
61451         * lib/uniconv/u32-strconv-to-enc.c: New file.
61452         * modules/uniconv/u32-strconv-to-enc-tests: New file.
61453         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
61454
61455         * modules/uniconv/u16-strconv-to-enc: New file.
61456         * lib/uniconv/u16-strconv-to-enc.c: New file.
61457         * lib/uniconv/u-strconv-to-enc.h: New file.
61458         * modules/uniconv/u16-strconv-to-enc-tests: New file.
61459         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
61460
61461         * modules/uniconv/u8-strconv-to-enc: New file.
61462         * lib/uniconv/u8-strconv-to-enc.c: New file.
61463         * modules/uniconv/u8-strconv-to-enc-tests: New file.
61464         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
61465
61466         * modules/uniconv/u32-strconv-from-enc: New file.
61467         * lib/uniconv/u32-strconv-from-enc.c: New file.
61468         * modules/uniconv/u32-strconv-from-enc-tests: New file.
61469         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
61470
61471         * modules/uniconv/u16-strconv-from-enc: New file.
61472         * lib/uniconv/u16-strconv-from-enc.c: New file.
61473         * modules/uniconv/u16-strconv-from-enc-tests: New file.
61474         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
61475
61476         * modules/uniconv/u8-strconv-from-enc: New file.
61477         * lib/uniconv/u8-strconv-from-enc.c: New file.
61478         * lib/uniconv/u-strconv-from-enc.h: New file.
61479         * modules/uniconv/u8-strconv-from-enc-tests: New file.
61480         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
61481
61482         * modules/uniconv/u32-conv-from-enc: New file.
61483         * lib/uniconv/u32-conv-from-enc.c: New file.
61484         * modules/uniconv/u32-conv-from-enc-tests: New file.
61485         * tests/uniconv/test-u32-conv-from-enc.c: New file.
61486
61487         * modules/uniconv/u16-conv-from-enc: New file.
61488         * lib/uniconv/u16-conv-from-enc.c: New file.
61489         * lib/uniconv/u-conv-from-enc.h: New file.
61490         * modules/uniconv/u16-conv-from-enc-tests: New file.
61491         * tests/uniconv/test-u16-conv-from-enc.c: New file.
61492
61493         * modules/uniconv/u8-conv-from-enc: New file.
61494         * lib/uniconv/u8-conv-from-enc.c: New file.
61495         * modules/uniconv/u8-conv-from-enc-tests: New file.
61496         * tests/uniconv/test-u8-conv-from-enc.c: New file.
61497
61498         * modules/uniconv/base: New file.
61499         * lib/uniconv.h: New file.
61500
61501 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61502
61503         * doc/gnulib-tool.texi (Initial import): Update to match current
61504         behavior with strdup module.
61505         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
61506         * lib/memmem.h: Remove; all uses removed.  This is now done
61507         by <string.h>.
61508         * lib/mempcpy.h: Likewise.
61509         * lib/memrchr.h: Likewise.
61510         * lib/stpcpy.h: Likewise.
61511         * lib/stpncpy.h: Likewise.
61512         * lib/strcase.h: Likewise.
61513         * lib/strchrnul.h: Likewise.
61514         * lib/strdup.h: Likewise.
61515         * lib/strndup.h: Likewise.
61516         * lib/strnlen.h: Likewise.
61517         * lib/strpbrk.h: Likewise.
61518         * lib/strsep.h: Likewise.
61519         * lib/strstr.h: Likewise.
61520         * lib/strtok_r.h: Likewise.
61521         * lib/string_.h: New file.
61522         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61523         Rely on <string.h> instead.
61524         * lib/canon-host.c: Likewise.
61525         * lib/chdir-long.c: Likewise.
61526         * lib/concatpath.c: Likewise.
61527         * lib/exclude.c: Likewise.
61528         * lib/fchdir.c: Likewise.
61529         * lib/getaddrinfo.c: Likewise.
61530         * lib/getcwd.c: Likewise.
61531         * lib/getsubopt.c: Likewise.
61532         * lib/glob.c: Likewise.
61533         * lib/hard-locale.c: Likewise.
61534         * lib/iconvme.c: Likewise.
61535         * lib/javacomp.c: Likewise.
61536         * lib/mempcpy.c: Likewise.
61537         * lib/memrchr.c: Likewise.
61538         * lib/regex_internal.h: Likewise.
61539         * lib/stpncpy.c: Likewise.
61540         * lib/strcasecmp.c: Likewise.
61541         * lib/strchrnul.c: Likewise.
61542         * lib/strdup.c: Likewise.
61543         * lib/striconv.c: Likewise.
61544         * lib/striconveh.c: Likewise.
61545         * lib/striconveha.c: Likewise.
61546         * lib/strncasecmp.c: Likewise.
61547         * lib/strndup.c: Likewise.
61548         * lib/strnlen.c: Likewise.
61549         * lib/strsep.c: Likewise.
61550         * lib/strstr.c: Likewise.
61551         * lib/strtok_r.c: Likewise.
61552         * lib/userspec.c: Likewise.
61553         * lib/w32spawn.h: Likewise.
61554         * lib/xstrndup.c: Likewise.
61555         * lib/mountlist.c (strstr): Remove decl.
61556         * m4/string_h.m4: New file.
61557         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61558         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61559         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61560         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61561         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61562         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61563         Set REPLACE_STRCASECMP if necessary.
61564         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61565         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61566         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61567         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61568         HAVE_DECL_STRDUP if necessary.
61569         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61570         since gl_FUNC_STRNDUP does that now.
61571         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61572         Check for decl here...
61573         (gl_PREREQ_STRNLEN): ... not here.
61574         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61575         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61576         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61577         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61578         necessary.
61579         * modules/string: New file.
61580         * modules/memmem (Files): Remove special-purpose include file.
61581         (Depends-on): Add string.
61582         (Include): Include <string.h>, not the removed file.
61583         * modules/mempcpy: Likewise.
61584         * modules/memrchr: Likewise.
61585         * modules/stpcpy: Likewise.
61586         * modules/stpncpy: Likewise.
61587         * modules/strcase: Likewise.
61588         * modules/strchrnul: Likewise.
61589         * modules/strdup: Likewise.
61590         * modules/strndup: Likewise.
61591         * modules/strnlen: Likewise.
61592         * modules/strpbrk: Likewise.
61593         * modules/strsep: Likewise.
61594         * modules/strstr: Likewise.
61595         * modules/strtok_r: Likewise.
61596         * tests/test-dirname.c: Don't include "strdup.h", since
61597         <string.h> now suffices.
61598         * tests/test-memmem.c: Don't include "memmem.h", since
61599         <string.h> now suffices.
61600
61601 2007-01-25  Bruno Haible  <bruno@clisp.org>
61602
61603         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61604         *resultp is 0.
61605
61606         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61607         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61608         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61609         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61610
61611         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61612         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61613         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61614         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61615         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61616         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61617
61618 2007-01-24  Bruno Haible  <bruno@clisp.org>
61619
61620         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61621         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61622         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61623         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61624         gl_FUNC_FTS_CORE.
61625         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61626         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61627         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61628         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61629         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61630         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61631         gl_FUNC_FCHOWNAT.
61632         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61633         gl_FUNC_STRFTIME.
61634         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61635         Reported by Ralf Wildenhues.
61636
61637 2007-01-24  Bruno Haible  <bruno@clisp.org>
61638
61639         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61640         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61641         gl_GETADDRINFO.
61642         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61643         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61644         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61645
61646 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61649         Don't use 'exit'; just return from 'main'.
61650         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61651
61652         * lib/fnmatch_.h: Readjust white space and comments to match
61653         glibc, to avoid spurious diffs.
61654
61655 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61656
61657         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61658         2004-12-01 change by Jakub Jelinek, since this code won't compile
61659         if !LIBC.  Problem reported by Bob Proulx.
61660
61661 2007-01-23  Bruno Haible  <bruno@clisp.org>
61662
61663         * lib/striconveh.c: Include c-strcaseeq.h.
61664         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61665         * modules/striconveh (Depends-on): Add c-strcaseeq.
61666
61667 2007-01-23  Bruno Haible  <bruno@clisp.org>
61668
61669         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61670
61671         * modules/c-strcaseeq: New file.
61672         * lib/c-strcaseeq.h: New file.
61673
61674         * modules/streq: New file.
61675         * lib/streq.h: New file.
61676
61677 2007-01-23  Bruno Haible  <bruno@clisp.org>
61678
61679         * modules/striconveha-tests: New file.
61680         * tests/test-striconveha.c: New file.
61681
61682         * lib/striconveha.h: Include <stdbool.h>.
61683         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61684         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61685         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61686         (mem_iconveha): New function.
61687         (str_iconveha_notranslit): Renamed from str_iconveha.
61688         (str_iconveha): New function.
61689         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61690         c-strcase.
61691
61692 2007-01-23  Bruno Haible  <bruno@clisp.org>
61693
61694         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61695         encodings without forgiving before trying any encoding with handler.
61696         (str_iconveha): Try all encodings without forgiving before trying any
61697         encoding with handler.
61698
61699 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61700
61701         Import the following changes from libc.
61702
61703         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61704
61705         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61706
61707         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61708
61709         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61710         normal_bracket label.
61711
61712         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61713
61714         [BZ #361]
61715         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61716         to normal_bracket after fetching the next character.
61717
61718 2007-01-22  Bruno Haible  <bruno@clisp.org>
61719
61720         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61721         argument.
61722         * lib/striconveh.c (iconv_carefully_1): New function.
61723         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61724         argument.
61725         (str_cd_iconveh): Update.
61726         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61727         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61728         * tests/test-striconveh.c (MAGIC): New macro.
61729         (new_offsets): New function.
61730         (main): Test call with and without offsets.
61731
61732 2007-01-22  Bruno Haible  <bruno@clisp.org>
61733
61734         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61735         * modules/sys_select (Makefile.am): Likewise.
61736         * modules/sys_socket (Makefile.am): Likewise.
61737         * modules/sys_time (Makefile.am): Likewise.
61738
61739 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61740
61741         * modules/gettimeofday (License): Change from GPL to LGPL, since
61742         gettimeofday is a library function.
61743
61744 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61745
61746         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61747
61748 2007-01-21  Bruno Haible  <bruno@clisp.org>
61749
61750         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61751
61752 2007-01-21  Bruno Haible  <bruno@clisp.org>
61753
61754         * modules/striconveha: New file.
61755         * lib/striconveha.h: New file.
61756         * lib/striconveha.c: New file.
61757         * MODULES.html.sh (Internationalization functions): Add striconveha.
61758         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61759         string.
61760         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61761
61762 2007-01-21  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61765         * lib/striconveh.c (str_iconveh): Likewise.
61766
61767 2007-01-21  Bruno Haible  <bruno@clisp.org>
61768
61769         * lib/striconveh.h (mem_iconveh): New declaration.
61770         * lib/striconveh.c (mem_iconveh): New function.
61771         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61772
61773 2007-01-21  Bruno Haible  <bruno@clisp.org>
61774
61775         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61776
61777         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61778         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61779         original result buffer.
61780         (str_cd_iconveh): Update.
61781         * tests/test-striconveh.c (main): Update.
61782
61783         * lib/striconv.h (mem_cd_iconv): Change specification.
61784         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61785         result buffer.
61786         (str_cd_iconv): Update.
61787         * tests/test-striconv.c (main): Update.
61788
61789 2007-01-21  Bruno Haible  <bruno@clisp.org>
61790
61791         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61792
61793 2007-01-20  Jim Meyering  <jim@meyering.net>
61794
61795         * lib/userspec.c (parse_with_separator): If a user or group string
61796         starts with "+", skip the corresponding name-to-ID look-up, since
61797         such a look-up must fail: user and group names may not include "+".
61798
61799 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61800
61801         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61802         since we now assume the sys_time module.
61803         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61804         check for sys/time.h; no longer needed.
61805         * modules/poll (Depends-on): Depend on sys_time.
61806
61807 2007-01-18  Bruno Haible  <bruno@clisp.org>
61808
61809         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61810         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61811
61812         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61813         gettimeofday.
61814
61815         * tests/test-gettimeofday.c: Include <time.h>.
61816         (dummy): Remove variable.
61817
61818         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61819         gl_HEADER_SYS_TIME_H.
61820         (gl_HEADER_SYS_TIME_H): New macro.
61821
61822         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61823         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61824         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61825         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61826         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61827         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61828         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61829         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61830         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61831         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61832         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61833
61834         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61835         last change; it caused a compilation error when cross-compiling to
61836         Cygwin.
61837
61838 2007-01-18  Jim Meyering  <jim@meyering.net>
61839
61840         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61841         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61842         than the race-prone "test -d sys || mkdir sys".
61843         (configure.ac): Use AC_PROG_MKDIR_P.
61844         * modules/sys_select: Likewise.
61845         * modules/sys_socket: Likewise.
61846         * modules/sys_time: Likewise.
61847
61848 2007-01-18  Eric Blake  <ebb9@byu.net>
61849
61850         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61851         replace gettimeofday.
61852         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61853         name, to avoid infinite recursion.
61854
61855 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61856
61857         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61858         module sys_time.
61859         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61860         assume timespec.h defines struct timeval.
61861         * lib/settime.c: Likewise.
61862         * lib/utimens.c: Likewise.
61863         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61864         since we now assume the gettimeofday module.
61865         * lib/tempname.c (__gen_tempname): Likewise.
61866         * lib/gettimeofday.h: Remove.
61867         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61868         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61869         Include <time.h>, for 'time()'.
61870         (localtime_buffer_addr): Also use this workaround if
61871         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61872         to simplify the uses.  All uses changed.
61873         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61874         that #undef is inside {}, and 'const' follows type name consistently.
61875         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61876         (gettimeofday): Do not use the maximum possible value for
61877         tv->tv_usec, since that might break usages other than ls.c.
61878         Instead, we'll leave ls.c alone.  This undoes today's patch
61879         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61880         we've never observed the problem but might as well keep the
61881         canary.
61882         * lib/nanosleep.c: Include timespec.h first, for interface check.
61883         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61884         now assume the sys_time module.
61885         * lib/tempname.c: Likewise.
61886         * lib/timespec.h: Likewise.
61887         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61888         needed.
61889         * lib/strftime.c: Likewise.
61890         * lib/timespec.h: Likewise.
61891         * lib/posixtm.c: Include posixtm.h first, for interface check.
61892         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61893         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61894         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61895         * lib/sys_time_.h: New file.
61896         * lib/timespec.h (struct timespec): Use long int, not long.
61897         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61898         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61899         Remove obsolescent call to AC_HEADER_TIME.
61900         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61902         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61903         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61904         Likewise.
61905         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61906         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61908         into the sys_time module.  Check for gettimeofday just once.
61909         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61910         for gettimeofday signature to just check the signature.  Merely
61911         compile it, since linking doesn't test signature.  Improve test for
61912         whether gettimeofday.o is actually needed.
61913         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61914         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61915         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61916         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61917         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61918         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61919         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61920         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61921         than worrying about sys/time.h.
61922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61923         Don't bother worrying about TIME_WITH_SYS_TIME.
61924         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61925         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61926         * m4/sys_time_h.m4: New file.
61927         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61928         Don't include sys/time.h.  Return from main rather than exiting.
61929         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61930         all uses changed.
61931         * modules/gethrxtime (Depends-on): Add sys_time.
61932         * modules/gettime (Depends-on): Likewise.
61933         * modules/gettimeofday (Depends-on): Likewise.
61934         * modules/nanosleep (Depends-on): Likewise.
61935         * modules/settime (Depends-on): Likewise.
61936         * modules/tempname (Depends-on): Likewise.
61937         * modules/utimens (Depends-on): Likewise.
61938         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61939         (Include): Change back to <sys/time.h>.
61940         (Maintainer): Add self.
61941         * modules/sys_time: New file.
61942         * modules/tempname (Depends-on): Add gettimeofday.
61943         * tests/test-gettimeofday.c: Include <sys/time.h>
61944         rather than gettimeofday.h.
61945
61946 2007-01-17  Bruno Haible  <bruno@clisp.org>
61947
61948         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61949         the license default to GPL.
61950         (func_create_testdir): Don't complain if a module is LGPL and its
61951         tests module depends on GPLed modules.
61952
61953 2007-01-17  Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/gettimeofday.c (gettimeofday): Add code for the case
61956         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61957         maximum possible value for tv->tv_usec, rather than the minimum one.
61958
61959 2005-10-08  Martin Lambers  <marlam@marlam.de>
61960 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61961 2007-01-16  Bruno Haible  <bruno@clisp.org>
61962
61963         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61964         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61965         gl_FUNC_GETTIMEOFDAY.
61966         (Include): Add gettimeofday.h.
61967         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61968         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61969         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61970         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61971         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61972         * lib/gettimeofday.h: New file.
61973         * lib/gettimeofday.c: Include <sys/timeb.h>.
61974         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61975         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61976         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61977         fall back on time().
61978
61979         * tests/test-gettimeofday.c: New file.
61980         * modules/gettimeofday-tests: New file.
61981
61982 2007-01-16  Eric Blake  <ebb9@byu.net>
61983
61984         * modules/fnmatch (Depends-on): Depend on wchar.
61985         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61986         * m4/fnmatch.m4: Likewise.
61987         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61988         * m4/mbchar.m4: Likewise.
61989         * modules/mbswidth (Depends-on): Depend on wchar.
61990         * lib/mbswidth.c: Assume <wchar.h>.
61991         * m4/mbswidth.m4: Likewise.
61992         * modules/quotearg (Depends-on): Depend on wchar.
61993         * lib/quotearg.c: Assume <wchar.h>.
61994         * m4/quotearg.m4: Likewise.
61995         * modules/regex (Depends-on): Depend on wchar.
61996         * lib/regex_internal.h: Assume <wchar.h>.
61997         * m4/regex.m4: Likewise.
61998         * modules/stdint (Depends-on): Depend on wchar.
61999         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
62000         * m4/stdint.m4: Likewise.
62001         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
62002         * modules/strftime (Depends-on): Depend on wchar.
62003         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
62004         * modules/strtol (Depends-on): Depend on wchar.
62005         * lib/strtol.c: Assume <wchar.h>.
62006         * modules/wcwidth (Depends-on): Depend on wchar.
62007         * lib/wcwidth.h: Assume <wchar.h>.
62008         * m4/wcwidth.m4: Likewise.
62009
62010 2007-01-16  Bruno Haible  <bruno@clisp.org>
62011
62012         * modules/csharpexec-script: New, created from...
62013         * modules/csharpexec: ... this.
62014
62015 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62016
62017         * modules/javaexec-script: New, created from...
62018         * modules/javaexec: ... this.
62019
62020 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62021
62022         * modules/poll (Dependencies): Add sys_select.
62023
62024 2007-01-15  Jim Meyering  <jim@meyering.net>
62025
62026         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
62027         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
62028         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
62029         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
62030
62031 2007-01-15  Bruno Haible  <bruno@clisp.org>
62032
62033         * modules/striconveh: New file.
62034         * lib/striconveh.h: New file.
62035         * lib/striconveh.c: New file.
62036         * MODULES.html.sh (Internationalization functions): Add striconveh.
62037
62038         * modules/striconveh-tests: New file.
62039         * tests/test-striconveh.c: New file.
62040
62041 2007-01-15  Bruno Haible  <bruno@clisp.org>
62042
62043         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
62044         not from GNU libiconv or GNU libc.
62045
62046 2007-01-15  Bruno Haible  <bruno@clisp.org>
62047
62048         * doc/gnulib-intro.texi (Copyright): Explain the different license
62049         terms for module descriptions, autoconf macros, tests, documentation.
62050
62051 2007-01-14  Bruno Haible  <bruno@clisp.org>
62052
62053         * modules/striconv-tests: New file.
62054         * tests/test-striconv.c: New file.
62055
62056 2007-01-14  Bruno Haible  <bruno@clisp.org>
62057
62058         * modules/iconv-tests: New file.
62059         * tests/test-iconv.c: New file.
62060
62061 2007-01-14  Bruno Haible  <bruno@clisp.org>
62062
62063         * gnulib-tool (func_get_license): For test modules, use the license of
62064         the main module.
62065
62066 2007-01-14  Bruno Haible  <bruno@clisp.org>
62067
62068         * modules/iconv (Include): Clarify that <iconv.h> can only be included
62069         if iconv is found to exist.
62070
62071 2007-01-14  Bruno Haible  <bruno@clisp.org>
62072
62073         * modules/c-ctype-tests: New file.
62074         * tests/test-c-ctype.c: New file.
62075
62076 2007-01-14  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/binary-io-tests: New file.
62079         * tests/test-binary-io.sh: New file.
62080         * tests/test-binary-io.c: New file.
62081
62082 2007-01-14  Bruno Haible  <bruno@clisp.org>
62083
62084         * modules/array-oset-tests: New file.
62085         * tests/test-array_oset.c: New file.
62086
62087 2007-01-14  Bruno Haible  <bruno@clisp.org>
62088
62089         * modules/array-list-tests: New file.
62090         * tests/test-array_list.c: New file.
62091
62092 2007-01-14  Bruno Haible  <bruno@clisp.org>
62093
62094         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
62095         and make.
62096         Reported by Simon Josefsson in
62097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
62098
62099 2007-01-14  Bruno Haible  <bruno@clisp.org>
62100
62101         * modules/allocsa-tests: New file.
62102         * tests/test-allocsa.c: New file.
62103
62104 2007-01-14  Bruno Haible  <bruno@clisp.org>
62105
62106         * modules/fchdir (Depends-on): Add absolute-header.
62107         * modules/unistd (Depends-on): Likewise.
62108
62109 2006-12-30  Bruno Haible  <bruno@clisp.org>
62110
62111         * modules/fchdir: New file.
62112         * modules/unistd (Files): Add lib/unistd_.h.
62113         (Makefile.am): Generate unistd.h from unistd_.h.
62114         * lib/fchdir.c: New file.
62115         * lib/dirent_.h: New file.
62116         * lib/unistd_.h: New file.
62117         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
62118         * m4/fchdir.m4: New file.
62119         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
62120         (gl_HEADER_UNISTD): Invoke it.
62121         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
62122         function.
62123         * lib/backupfile.c (opendir, closedir): Undefine.
62124         * lib/chown.c (open, close): Undefine.
62125         * lib/clean-temp.c (open, close): Undefine.
62126         * lib/copy-file.c (open, close): Undefine.
62127         * lib/execute.c (open, close): Undefine.
62128         * lib/fsusage.c (open, close): Undefine.
62129         * lib/gc-gnulib.c (open, close): Undefine.
62130         * lib/getcwd.c (opendir, closedir): Undefine.
62131         * lib/glob.c (opendir, closedir): Undefine.
62132         * lib/javacomp.c (open, close): Undefine.
62133         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
62134         * lib/openat-proc.c (open, close): Undefine.
62135         * lib/pagealign_alloc.c (open, close): Undefine.
62136         * lib/pipe.c (open, close): Undefine.
62137         * lib/progreloc.c (open, close): Undefine.
62138         * lib/savedir.c (opendir, closedir): Undefine.
62139         * lib/utime.c (open, close): Undefine.
62140         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
62141
62142 2007-01-10  Bruno Haible  <bruno@clisp.org>
62143
62144         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
62145
62146 2007-01-12  Eric Blake  <ebb9@byu.net>
62147
62148         Provide a robust <wchar.h>.  Further simplifications are now
62149         possible in other modules, but not included here.
62150         * modules/wchar: New module.
62151         * m4/wchar.m4: New file.
62152         * lib/wchar_.h: Likewise.
62153         * modules/mbchar (Depends-on): Depend on wchar, as the first use
62154         of the new module.
62155         * MODULES.html.sh (Extended multibyte and wide character utilities):
62156         New section.
62157
62158 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
62159
62160         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
62161         to a reasonable default for memory allocation.
62162         (xreadlink): Don't allocate a huge buffer, to work around a buggy
62163         file system that reports garbage st_size values for symlinks.
62164         Problem reported by Liyang Hu.
62165
62166 2007-01-11  Simon Josefsson  <simon@josefsson.org>
62167
62168         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
62169         Emacs .#* auto-save files).
62170
62171 2007-01-11  Bruno Haible  <bruno@clisp.org>
62172
62173         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
62174         directory.
62175
62176 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62177
62178         Use @...@ consistently in lib/wctype_.h.
62179         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
62180         on it being set to 1 or 0.
62181         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
62182         go back to AC_SUBSTing it.
62183         * modules/wctype (Makefile.am): Undo previous change.
62184
62185 2007-01-10  Eric Blake  <ebb9@byu.net>
62186
62187         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
62188         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
62189         * modules/wctype (Makefile.am): Likewise.
62190         Reported by Chris McGuire.
62191
62192 2007-01-10  Jim Meyering  <jim@meyering.net>
62193
62194         fts.c: a small readability/maintainability improvement
62195         * lib/fts.c (fts_read): Make this code slightly more readable and
62196         maintainable by hoisting the "sp->fts_cur = p" assignments to
62197         immediately follow the statements that set P.  Derived from
62198         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
62199
62200 2007-01-10  Eric Blake  <ebb9@byu.net>
62201
62202         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
62203         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
62204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62205         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62206         Reported by Chris McGuire.
62207
62208 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62209
62210         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
62211         in sed script.
62212
62213 2007-01-09  Bruno Haible  <bruno@clisp.org>
62214
62215         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
62216         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
62217         variables.
62218         (func_module): Use them.
62219
62220 2007-01-09  Bruno Haible  <bruno@clisp.org>
62221
62222         * modules/unistr/base: New file.
62223         * lib/unistr.h: New file.
62224
62225         * modules/unistr/u8-to-u16: New file.
62226         * lib/unistr/u8-to-u16.c: New file.
62227
62228         * modules/unistr/u8-to-u32: New file.
62229         * lib/unistr/u8-to-u32.c: New file.
62230
62231         * modules/unistr/u16-to-u8: New file.
62232         * lib/unistr/u16-to-u8.c: New file.
62233
62234         * modules/unistr/u16-to-u32: New file.
62235         * lib/unistr/u16-to-u32.c: New file.
62236
62237         * modules/unistr/u32-to-u8: New file.
62238         * lib/unistr/u32-to-u8.c: New file.
62239
62240         * modules/unistr/u32-to-u16: New file.
62241         * lib/unistr/u32-to-u16.c: New file.
62242
62243         * modules/unistr/u8-check: New file.
62244         * modules/unistr/u16-check: New file.
62245         * modules/unistr/u32-check: New file.
62246         * lib/unistr/u8-check.c: New file.
62247         * lib/unistr/u16-check.c: New file.
62248         * lib/unistr/u32-check.c: New file.
62249
62250         * modules/unistr/u8-chr: New file.
62251         * modules/unistr/u16-chr: New file.
62252         * modules/unistr/u32-chr: New file.
62253         * lib/unistr/u8-chr.c: New file.
62254         * lib/unistr/u16-chr.c: New file.
62255         * lib/unistr/u32-chr.c: New file.
62256
62257         * modules/unistr/u8-cmp: New file.
62258         * modules/unistr/u16-cmp: New file.
62259         * modules/unistr/u32-cmp: New file.
62260         * lib/unistr/u8-cmp.c: New file.
62261         * lib/unistr/u16-cmp.c: New file.
62262         * lib/unistr/u32-cmp.c: New file.
62263
62264         * modules/unistr/u8-cpy: New file.
62265         * modules/unistr/u16-cpy: New file.
62266         * modules/unistr/u32-cpy: New file.
62267         * lib/unistr/u8-cpy.c: New file.
62268         * lib/unistr/u16-cpy.c: New file.
62269         * lib/unistr/u32-cpy.c: New file.
62270         * lib/unistr/u-cpy.h: New file.
62271
62272         * modules/unistr/u8-cpy-alloc: New file.
62273         * modules/unistr/u16-cpy-alloc: New file.
62274         * modules/unistr/u32-cpy-alloc: New file.
62275         * lib/unistr/u8-cpy-alloc.c: New file.
62276         * lib/unistr/u16-cpy-alloc.c: New file.
62277         * lib/unistr/u32-cpy-alloc.c: New file.
62278         * lib/unistr/u-cpy-alloc.h: New file.
62279
62280         * modules/unistr/u8-endswith: New file.
62281         * modules/unistr/u16-endswith: New file.
62282         * modules/unistr/u32-endswith: New file.
62283         * lib/unistr/u8-endswith.c: New file.
62284         * lib/unistr/u16-endswith.c: New file.
62285         * lib/unistr/u32-endswith.c: New file.
62286         * lib/unistr/u-endswith.h: New file.
62287
62288         * modules/unistr/u8-mblen: New file.
62289         * modules/unistr/u16-mblen: New file.
62290         * modules/unistr/u32-mblen: New file.
62291         * lib/unistr/u8-mblen.c: New file.
62292         * lib/unistr/u16-mblen.c: New file.
62293         * lib/unistr/u32-mblen.c: New file.
62294
62295         * modules/unistr/u8-mbtouc: New file.
62296         * modules/unistr/u16-mbtouc: New file.
62297         * modules/unistr/u32-mbtouc: New file.
62298         * lib/unistr/u8-mbtouc.c: New file.
62299         * lib/unistr/u16-mbtouc.c: New file.
62300         * lib/unistr/u32-mbtouc.c: New file.
62301
62302         * modules/unistr/u8-mbtouc-safe: New file.
62303         * modules/unistr/u16-mbtouc-safe: New file.
62304         * modules/unistr/u32-mbtouc-safe: New file.
62305         * lib/unistr/u8-mbtouc-safe.c: New file.
62306         * lib/unistr/u16-mbtouc-safe.c: New file.
62307         * lib/unistr/u32-mbtouc-safe.c: New file.
62308
62309         * modules/unistr/u8-move: New file.
62310         * modules/unistr/u16-move: New file.
62311         * modules/unistr/u32-move: New file.
62312         * lib/unistr/u8-move.c: New file.
62313         * lib/unistr/u16-move.c: New file.
62314         * lib/unistr/u32-move.c: New file.
62315         * lib/unistr/u-move.h: New file.
62316
62317         * modules/unistr/u8-next: New file.
62318         * modules/unistr/u16-next: New file.
62319         * modules/unistr/u32-next: New file.
62320         * lib/unistr/u8-next.c: New file.
62321         * lib/unistr/u16-next.c: New file.
62322         * lib/unistr/u32-next.c: New file.
62323
62324         * modules/unistr/u8-prev: New file.
62325         * modules/unistr/u16-prev: New file.
62326         * modules/unistr/u32-prev: New file.
62327         * lib/unistr/u8-prev.c: New file.
62328         * lib/unistr/u16-prev.c: New file.
62329         * lib/unistr/u32-prev.c: New file.
62330
62331         * modules/unistr/u8-set: New file.
62332         * modules/unistr/u16-set: New file.
62333         * modules/unistr/u32-set: New file.
62334         * lib/unistr/u8-set.c: New file.
62335         * lib/unistr/u16-set.c: New file.
62336         * lib/unistr/u32-set.c: New file.
62337         * lib/unistr/u-set.h: New file.
62338
62339         * modules/unistr/u8-startswith: New file.
62340         * modules/unistr/u16-startswith: New file.
62341         * modules/unistr/u32-startswith: New file.
62342         * lib/unistr/u8-startswith.c: New file.
62343         * lib/unistr/u16-startswith.c: New file.
62344         * lib/unistr/u32-startswith.c: New file.
62345         * lib/unistr/u-startswith.h: New file.
62346
62347         * modules/unistr/u8-stpcpy: New file.
62348         * modules/unistr/u16-stpcpy: New file.
62349         * modules/unistr/u32-stpcpy: New file.
62350         * lib/unistr/u8-stpcpy.c: New file.
62351         * lib/unistr/u16-stpcpy.c: New file.
62352         * lib/unistr/u32-stpcpy.c: New file.
62353         * lib/unistr/u-stpcpy.h: New file.
62354
62355         * modules/unistr/u8-stpncpy: New file.
62356         * modules/unistr/u16-stpncpy: New file.
62357         * modules/unistr/u32-stpncpy: New file.
62358         * lib/unistr/u8-stpncpy.c: New file.
62359         * lib/unistr/u16-stpncpy.c: New file.
62360         * lib/unistr/u32-stpncpy.c: New file.
62361         * lib/unistr/u-stpncpy.h: New file.
62362
62363         * modules/unistr/u8-strcat: New file.
62364         * modules/unistr/u16-strcat: New file.
62365         * modules/unistr/u32-strcat: New file.
62366         * lib/unistr/u8-strcat.c: New file.
62367         * lib/unistr/u16-strcat.c: New file.
62368         * lib/unistr/u32-strcat.c: New file.
62369         * lib/unistr/u-strcat.h: New file.
62370
62371         * modules/unistr/u8-strchr: New file.
62372         * modules/unistr/u16-strchr: New file.
62373         * modules/unistr/u32-strchr: New file.
62374         * lib/unistr/u8-strchr.c: New file.
62375         * lib/unistr/u16-strchr.c: New file.
62376         * lib/unistr/u32-strchr.c: New file.
62377
62378         * modules/unistr/u8-strcmp: New file.
62379         * modules/unistr/u16-strcmp: New file.
62380         * modules/unistr/u32-strcmp: New file.
62381         * lib/unistr/u8-strcmp.c: New file.
62382         * lib/unistr/u16-strcmp.c: New file.
62383         * lib/unistr/u32-strcmp.c: New file.
62384
62385         * modules/unistr/u8-strcpy: New file.
62386         * modules/unistr/u16-strcpy: New file.
62387         * modules/unistr/u32-strcpy: New file.
62388         * lib/unistr/u8-strcpy.c: New file.
62389         * lib/unistr/u16-strcpy.c: New file.
62390         * lib/unistr/u32-strcpy.c: New file.
62391         * lib/unistr/u-strcpy.h: New file.
62392
62393         * modules/unistr/u8-strcspn: New file.
62394         * modules/unistr/u16-strcspn: New file.
62395         * modules/unistr/u32-strcspn: New file.
62396         * lib/unistr/u8-strcspn.c: New file.
62397         * lib/unistr/u16-strcspn.c: New file.
62398         * lib/unistr/u32-strcspn.c: New file.
62399         * lib/unistr/u-strcspn.h: New file.
62400
62401         * modules/unistr/u8-strdup: New file.
62402         * modules/unistr/u16-strdup: New file.
62403         * modules/unistr/u32-strdup: New file.
62404         * lib/unistr/u8-strdup.c: New file.
62405         * lib/unistr/u16-strdup.c: New file.
62406         * lib/unistr/u32-strdup.c: New file.
62407         * lib/unistr/u-strdup.h: New file.
62408
62409         * modules/unistr/u8-strlen: New file.
62410         * modules/unistr/u16-strlen: New file.
62411         * modules/unistr/u32-strlen: New file.
62412         * lib/unistr/u8-strlen.c: New file.
62413         * lib/unistr/u16-strlen.c: New file.
62414         * lib/unistr/u32-strlen.c: New file.
62415         * lib/unistr/u-strlen.h: New file.
62416
62417         * modules/unistr/u8-strmblen: New file.
62418         * modules/unistr/u16-strmblen: New file.
62419         * modules/unistr/u32-strmblen: New file.
62420         * lib/unistr/u8-strmblen.c: New file.
62421         * lib/unistr/u16-strmblen.c: New file.
62422         * lib/unistr/u32-strmblen.c: New file.
62423
62424         * modules/unistr/u8-strmbtouc: New file.
62425         * modules/unistr/u16-strmbtouc: New file.
62426         * modules/unistr/u32-strmbtouc: New file.
62427         * lib/unistr/u8-strmbtouc.c: New file.
62428         * lib/unistr/u16-strmbtouc.c: New file.
62429         * lib/unistr/u32-strmbtouc.c: New file.
62430
62431         * modules/unistr/u8-strncat: New file.
62432         * modules/unistr/u16-strncat: New file.
62433         * modules/unistr/u32-strncat: New file.
62434         * lib/unistr/u8-strncat.c: New file.
62435         * lib/unistr/u16-strncat.c: New file.
62436         * lib/unistr/u32-strncat.c: New file.
62437         * lib/unistr/u-strncat.h: New file.
62438
62439         * modules/unistr/u8-strncmp: New file.
62440         * modules/unistr/u16-strncmp: New file.
62441         * modules/unistr/u32-strncmp: New file.
62442         * lib/unistr/u8-strncmp.c: New file.
62443         * lib/unistr/u16-strncmp.c: New file.
62444         * lib/unistr/u32-strncmp.c: New file.
62445
62446         * modules/unistr/u8-strncpy: New file.
62447         * modules/unistr/u16-strncpy: New file.
62448         * modules/unistr/u32-strncpy: New file.
62449         * lib/unistr/u8-strncpy.c: New file.
62450         * lib/unistr/u16-strncpy.c: New file.
62451         * lib/unistr/u32-strncpy.c: New file.
62452         * lib/unistr/u-strncpy.h: New file.
62453
62454         * modules/unistr/u8-strnlen: New file.
62455         * modules/unistr/u16-strnlen: New file.
62456         * modules/unistr/u32-strnlen: New file.
62457         * lib/unistr/u8-strnlen.c: New file.
62458         * lib/unistr/u16-strnlen.c: New file.
62459         * lib/unistr/u32-strnlen.c: New file.
62460         * lib/unistr/u-strnlen.h: New file.
62461
62462         * modules/unistr/u8-strpbrk: New file.
62463         * modules/unistr/u16-strpbrk: New file.
62464         * modules/unistr/u32-strpbrk: New file.
62465         * lib/unistr/u8-strpbrk.c: New file.
62466         * lib/unistr/u16-strpbrk.c: New file.
62467         * lib/unistr/u32-strpbrk.c: New file.
62468         * lib/unistr/u-strpbrk.h: New file.
62469
62470         * modules/unistr/u8-strrchr: New file.
62471         * modules/unistr/u16-strrchr: New file.
62472         * modules/unistr/u32-strrchr: New file.
62473         * lib/unistr/u8-strrchr.c: New file.
62474         * lib/unistr/u16-strrchr.c: New file.
62475         * lib/unistr/u32-strrchr.c: New file.
62476
62477         * modules/unistr/u8-strspn: New file.
62478         * modules/unistr/u16-strspn: New file.
62479         * modules/unistr/u32-strspn: New file.
62480         * lib/unistr/u8-strspn.c: New file.
62481         * lib/unistr/u16-strspn.c: New file.
62482         * lib/unistr/u32-strspn.c: New file.
62483         * lib/unistr/u-strspn.h: New file.
62484
62485         * modules/unistr/u8-strstr: New file.
62486         * modules/unistr/u16-strstr: New file.
62487         * modules/unistr/u32-strstr: New file.
62488         * lib/unistr/u8-strstr.c: New file.
62489         * lib/unistr/u16-strstr.c: New file.
62490         * lib/unistr/u32-strstr.c: New file.
62491         * lib/unistr/u-strstr.h: New file.
62492
62493         * modules/unistr/u8-strtok: New file.
62494         * modules/unistr/u16-strtok: New file.
62495         * modules/unistr/u32-strtok: New file.
62496         * lib/unistr/u8-strtok.c: New file.
62497         * lib/unistr/u16-strtok.c: New file.
62498         * lib/unistr/u32-strtok.c: New file.
62499         * lib/unistr/u-strtok.h: New file.
62500
62501         * modules/unistr/u8-uctomb: New file.
62502         * modules/unistr/u16-uctomb: New file.
62503         * modules/unistr/u32-uctomb: New file.
62504         * lib/unistr/u8-uctomb.c: New file.
62505         * lib/unistr/u16-uctomb.c: New file.
62506         * lib/unistr/u32-uctomb.c: New file.
62507
62508         * MODULES.html.sh (Unicode string functions): Add the new modules.
62509
62510 2007-01-08  Bruno Haible  <bruno@clisp.org>
62511
62512         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62513         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62514         subdirectories.
62515
62516 2007-01-08  Karl Berry  <karl@gnu.org>
62517
62518         * doc/error.texi: mention that main() fns must set program_name
62519         when progname is used.
62520
62521 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62524         WCTYPE_H is empty, for the benefit of builds from non-distclean
62525         directories.  Problem reported by Eric Blake in
62526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62527
62528 2007-01-08  Bruno Haible  <bruno@clisp.org>
62529
62530         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62531         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62532         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62533         PROVIDE_CANONICALIZE_FILENAME_MODE.
62534         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62535
62536 2007-01-08  Bruno Haible  <bruno@clisp.org>
62537
62538         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62539         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62540         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62541         * lib/fts.c: Likewise.
62542         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62543
62544 2006-12-25  Bruno Haible  <bruno@clisp.org>
62545
62546         * modules/utf8-ucs4-safe: New file.
62547         * lib/utf8-ucs4-safe.h: New file.
62548         * lib/unistr/utf8-ucs4-safe.c: New file.
62549
62550         * modules/utf16-ucs4-safe: New file.
62551         * lib/utf16-ucs4-safe.h: New file.
62552         * lib/unistr/utf16-ucs4-safe.c: New file.
62553
62554         * MODULES.html.sh (Unicode string functions): Add the new modules.
62555
62556 2007-01-08  Bruno Haible  <bruno@clisp.org>
62557
62558         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62559         (Depends-on): Add unitypes.
62560         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62561         (u8_mbtouc_aux): Move out to separate file.
62562         (u8_mbtouc): Use ucs4_t, uint8_t types.
62563         * lib/unistr/utf8-ucs4.c: New file.
62564
62565         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62566         (Depends-on): Add unitypes.
62567         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62568         (u16_mbtouc_aux): Move out to separate file.
62569         (u16_mbtouc): Use ucs4_t, uint16_t types.
62570         * lib/unistr/utf16-ucs4.c: New file.
62571
62572         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62573         (Depends-on): Add unitypes.
62574         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62575         (u8_uctomb_aux): Move out to separate file.
62576         (u8_uctomb): Use ucs4_t, uint8_t types.
62577         * lib/unistr/ucs4-utf8.c: New file.
62578
62579         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62580         (Depends-on): Add unitypes.
62581         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62582         (u16_uctomb_aux): Move out to separate file.
62583         (u16_uctomb): Use ucs4_t, uint16_t types.
62584         * lib/unistr/ucs4-utf16.c: New file.
62585
62586 2006-12-25  Bruno Haible  <bruno@clisp.org>
62587
62588         * modules/unitypes: New file.
62589         * lib/unitypes.h: New file.
62590         * MODULES.html.sh (func_all_modules): New section "Unicode string
62591         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62592         this section. Add unitypes.
62593
62594 2007-01-08  Bruno Haible  <bruno@clisp.org>
62595
62596         Avoid variable names that conflict with those from libtool.
62597         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62598         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62599         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62600         library_names_spec to acl_library_names_spec, hardcode_* to
62601         acl_hardcode_*.
62602         Reported by Ralf Wildenhues.
62603
62604 2007-01-08  Bruno Haible  <bruno@clisp.org>
62605
62606         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62607         definition.
62608         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62609         definition.
62610         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62611         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62612         definition.
62613         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62614         definition.
62615         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62616         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62617         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62618         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62619         definition.
62620         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62621         definition.
62622         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62623         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62624         GC_USE_<algorithm>.
62625         * lib/gc-libgcrypt.c: Likewise.
62626         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62627         * modules/gc-arctwo (configure.ac): Likewise.
62628         * modules/gc-des (configure.ac): Likewise.
62629         * modules/gc-hmac-md5 (configure.ac): Likewise.
62630         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62631         * modules/gc-md2 (configure.ac): Likewise.
62632         * modules/gc-md4 (configure.ac): Likewise.
62633         * modules/gc-md5 (configure.ac): Likewise.
62634         * modules/gc-random (configure.ac): Likewise.
62635         * modules/gc-rijndael (configure.ac): Likewise.
62636         * modules/gc-sha1 (configure.ac): Likewise.
62637
62638 2007-01-08  Bruno Haible  <bruno@clisp.org>
62639
62640         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62641         macro definition.
62642         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62643         definition.
62644         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62645         definition.
62646         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62647         * modules/fcntl-safer (configure.ac): Likewise.
62648         * modules/fopen-safer (configure.ac): Likewise.
62649         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62650         GNULIB_FWRITEERROR macro definition.
62651
62652 2007-01-08  Bruno Haible  <bruno@clisp.org>
62653
62654         * m4/gnulib-common.m4: New file.
62655         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62656         (func_get_filelist): Add m4/gnulib-common.m4.
62657
62658 2007-01-08  Bruno Haible  <bruno@clisp.org>
62659
62660         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62661         command.
62662
62663 2007-01-08  Jim Meyering  <jim@meyering.net>
62664
62665         Use a more robust test for a "can't happen" condition.
62666         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62667         narrowed the st_size value.  Presuming the "can't happen" condition
62668         is true, that narrowing could conceivably convert an invalid st_size
62669         value into a valid one.  Instead, use a change based on Matthew
62670         Woehlke's original patch.
62671
62672         Slight readability improvement: use an assert-like macro
62673         in place of literal "abort ()" uses.
62674         * lib/fts.c (fts_assert): Define.
62675         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62676         Use this macro instead of a bare 'abort'.
62677
62678 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62679
62680         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62681         simply work around them.
62682         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62683         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62684         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62685         declaring.
62686         Don't bother to define as macros, since the standard doesn't require it.
62687         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62688         longer worry about IRIX 5.3.
62689         (HAVE_WCTYPE_CTMP_BUG): Remove.
62690
62691 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62692
62693         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62694         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62695         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62696         Problems reported by Georg Schwarz for IRIX 5.3.
62697
62698         * gnulib-tool (autoconf_minversion): Take the maximum version number
62699         found, not the minimum.  Problem reported by James Youngman.
62700
62701 2007-01-03  Karl Berry  <karl@gnu.org>
62702
62703         * doc/error.texi: new file, explaining interaction with progname.
62704         * doc/gnulib.texi: include it.  Update copyright.
62705
62706 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62707
62708         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62709         AC_CANONICAL_HOST, to improve autobuild outputs.
62710
62711 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62712             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62713
62714         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62715         sockets, server sockets, and other file descriptors.  Count errors
62716         to compute the return value.  Reorder the code a bit to be easier
62717         to follow.  Don't set event bits that were not requested (except
62718         POLLERR and POLLHUP).
62719
62720 2007-01-01  Bruno Haible  <bruno@clisp.org>
62721
62722         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62723
62724 2007-01-03  Jim Meyering  <jim@meyering.net>
62725
62726         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62727
62728 2007-01-02  Bruno Haible  <bruno@clisp.org>
62729
62730         * modules/settime (Include): Require timespec.h.
62731         * modules/nanosleep (Include): Likewise.
62732
62733 2007-01-01  Bruno Haible  <bruno@clisp.org>
62734
62735         * gnulib-tool (func_emit_copyright_notice): Bump year.
62736         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62737
62738 2007-01-01  Bruno Haible  <bruno@clisp.org>
62739
62740         Improve support for OpenBSD.
62741         * build-aux/config.rpath (libname_spec): Export.
62742         (library_names_spec): New variable. Export.
62743         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62744         library_names_spec from the config.rpath output. Locate shared library
62745         through the name pattern in library_names_spec.
62746
62747 2007-01-01  Eric Blake  <ebb9@byu.net>
62748
62749         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62750
62751 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62752
62753         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62754         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62755         assume the C locale, and avoid an "eval" that could cause trouble.
62756         Problem with SORT reported by Bob Proulx.
62757
62758         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62759         Define.  Trivial patch from Henning Nielsen Lund, originally
62760         sent to bug-grep@gnu.org today.
62761
62762 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62763
62764         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62765         struct stat.  Problem reported by Henning Nielsen Lund.
62766         * lib/acl.c: Include acl.h first, to check interface.  Don't
62767         bother to include sys/types.h and sys/stat.h again.
62768
62769 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62770
62771         Import the following change from libc; problem reported by
62772         Sven Verdoolaege.
62773
62774         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62775
62776         [BZ #1373]
62777         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62778
62779 2006-12-28  Jim Meyering  <jim@meyering.net>
62780
62781         * build-aux/announce-gen: Do not assume that the package
62782         builds any of tar.gz, tar.bz2, and .xdelta files.
62783         Suggestion from Simon Josefsson.
62784
62785 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62786
62787         * modules/announce-gen: New file.
62788
62789 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62790
62791         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62792         handles its gotchas now.
62793         * lib/mbswidth.c: Likewise.
62794         * lib/wcwidth.h: Likewise.
62795         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62796         and iswcntrl; the wctype module does this stuff now.
62797         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62799         * modules/mbchar (Depends-on): Add wctype.
62800         * modules/mbswidth (Depends-on): Likewise.
62801         * modules/wcwidth (Depends-on): Likewise.
62802
62803 2006-12-27  Eric Blake  <ebb9@byu.net>
62804
62805         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62806         module uses more than what <wctype.h> is required to provide.
62807
62808 2006-12-26  Eric Blake  <ebb9@byu.net>
62809
62810         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62811
62812 2006-12-26  Eric Blake  <ebb9@byu.net>
62813
62814         * modules/absolute-header: New module.
62815         * modules/fcntl (Depends-on): Depend on it.
62816         * modules/inttypes (Depends-on): Likewise.
62817         * modules/stdint (Depends-on): Likewise.
62818         * modules/sys_stat (Depends-on): Likewise.
62819         * modules/wctype (Depends-on): Likewise.
62820         * MODULES.html.sh (Support for building libraries and
62821         executables): Document it.
62822
62823 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62824
62825         * gnulib-tool (SED): Remove, undoing previous change.
62826         The problem was that it broke coreutils on Solaris, because
62827         "sed --posix" leaked into a makefile.
62828         (sed): New alias, if 'alias' and GNU sed.
62829
62830 2006-12-24  Jim Meyering  <jim@meyering.net>
62831
62832         Work around an fchownat bug in glibc-2.4:
62833         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62834         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62835         in spite of the -P option.
62836         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62837         New macros.
62838         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62839         * modules/openat (Files): Add lib/fchownat.c.
62840         * lib/openat.c (fchownat): Don't define here.  Move to...
62841         * lib/fchownat.c: ...this new file.
62842
62843 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         Fix bug reported by Bruno Haible in
62846         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62847         where quotearg.c didn't compile on Mac OS X 10.2 because it
62848         lacks <wchar.h> and wint_t.
62849         * lib/wctype_.h (__wctype_wint_t): New type.
62850         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62851         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62852         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62853         Arg is now of type __wctype_wint_t, not wint_t.
62854         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62855         substitute HAVE_WINT_T.
62856         * modules/wctype (Files): Add m4/wint_t.m4.
62857         (wctype.h): Substitute HAVE_WINT_T.
62858
62859 2006-12-23  Bruno Haible  <bruno@clisp.org>
62860
62861         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62862
62863 2006-12-23  Bruno Haible  <bruno@clisp.org>
62864
62865         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62866         S_ISLNK.
62867         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62868         mingw.
62869
62870 2006-12-22  Bruno Haible  <bruno@clisp.org>
62871
62872         * lib/copy-file.c: Include acl.h.
62873         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62874         Close the file descriptors only after being done with copy_acl.
62875         * modules/copy-file (Depends-on): Add acl.
62876
62877 2006-12-22  Bruno Haible  <bruno@clisp.org>
62878
62879         * gnulib-tool (SED): New variable.
62880         Use $SED instead of sed everywhere.
62881
62882 2006-12-22  Bruno Haible  <bruno@clisp.org>
62883
62884         * modules/no-c++: New file.
62885         * m4/no-c++.m4: New file.
62886         * MODULES.html.sh (Support for building libraries and executables):
62887         Add no-c++.
62888
62889 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62890
62891         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62892         Include <limits.h>, and use its INT_MAX to rewrite the
62893         j loop so that it does not overflow 'int'.  Problem reported by
62894         Ralf Wildenhues in
62895         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62896         Play it safe by shifting left by 1 rather than multiplying by 2,
62897         as GCC is less likely to optimize this away when the value
62898         is signed (when it assumes overflow leads to undefined behavior).
62899         Also, don't assume time_t uses two's complement.
62900
62901 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62902
62903         * MODULES.html.sh: New module wctype.
62904         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62905         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62906         <wctype.h>, since the new wctype module should fix this.
62907         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62908         the wctype module should arrange for it.
62909         * lib/regex_internal.h: Likewise.
62910         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62911         since the wctype module should handle this now.
62912         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62913         * modules/fnmatch (Depends-on): Add wctype.
62914         * modules/quotearg (Depends-on): Likewise.
62915         * modules/regex (Depends-on): Likewise.
62916
62917 2006-12-19  Bruno Haible  <bruno@clisp.org>
62918
62919         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62920         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62921
62922 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62923
62924         * modules/savewd (Depends-on): Fix dependency on fcntl.
62925
62926 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62927
62928         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62929         conforms to C99, rather than relying on the user's environment
62930         setting of STDINT_H.
62931
62932 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62933         and Eric Blake  <ebb9@byu.net>
62934
62935         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62936         This is more consistent with the other defines here.
62937         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62938         Port to z/OS.  Problem reported by Paul Gilmartin.
62939         Change local vars to use gl_ prefix rather than ac_.
62940         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62941         with other defines.
62942         * modules/double-slash-root: New module.
62943         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62944         (Depends-on): Add double-slash-root.
62945         * MODULES.html.sh (File system functions): Mention new module.
62946
62947 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62950         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62951         This is for the benefit of gzip, which doesn't do i18n.
62952
62953 2006-12-12  Jim Meyering  <jim@meyering.net>
62954
62955         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62956         Reported by Andreas Schwab <schwab@suse.de>.
62957
62958 2006-12-12  Bruno Haible  <bruno@clisp.org>
62959
62960         Merge these changes.
62961         2006-09-05  Bruno Haible  <bruno@clisp.org>
62962         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62963         iconv_alloc succeeded.
62964         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62965         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62966         test for " && dest " at the end - dest is always != NULL there. Call
62967         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62968         with 2xNULL arguments, also to flush the state storage. Handle the
62969         IRIX iconv behaviour. Realloc the final result, to throw away unused
62970         memory.
62971
62972 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62973
62974         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62975         and fchmodat unconditionally, since glibc 2.4 has them.
62976         Problem reported by Arkadiusz Miskiewicz.
62977
62978 2006-12-10  Bruno Haible  <bruno@clisp.org>
62979
62980         * gnulib-tool (func_import): Show the include files only for those
62981         modules that are copied and specified.
62982         Reported by Karl Berry.
62983
62984 2006-12-08  Jim Meyering  <jim@meyering.net>
62985
62986         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62987         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62988
62989         * build-aux/announce-gen: Add two new options, both optional:
62990         --bootstrap-tools=TOOL_LIST
62991               a comma-separated list of tools, e.g.,
62992               autoconf,automake,bison,gnulib
62993         --gnulib-snapshot-date=DATE
62994               if gnulib is in the bootstrap tool list,
62995               then report this as the snapshot date.
62996               If not specified, use the current date/time.
62997               If you specify a date here, be sure it's UTC.
62998
62999 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63000
63001         * tests/test-argp-2.sh: Fix test to match actual output.
63002         (func_compare): Fix sed script to be portable.
63003
63004 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
63005
63006         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
63007         workaround for this case.  It is not autoconfigured now; offhand
63008         it's hard to see how to autoconfigure it.
63009
63010 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63011
63012         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
63013         a directory that is about to be chowned.  Such a directory's
63014         initial file permissions should permit the owner only and this
63015         should not be changed until after the chown, since the group and
63016         other bits would be incorrect if they granted permission before
63017         the chown.
63018
63019         Fix porting problem for iswctype reported by Georg Schwarz in:
63020         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
63021         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
63022         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
63023         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
63024         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63025
63026 2006-12-03  Jim Meyering  <jim@meyering.net>
63027
63028         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
63029         p->fts_statp may not yet be defined.
63030         (fts_read): Instead, set it in the caller, once p->fts_statp is
63031         sure to be defined, and corresponds to a top-level directory.
63032         This bug made du -x fail.  Here's the coreutils test case:
63033         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
63034         Reported by Mike Frysinger.
63035
63036 2006-12-01  Jim Meyering  <jim@meyering.net>
63037
63038         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
63039         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
63040         Reported by Simon Josefsson.
63041
63042 2006-11-30  Jim Meyering  <jim@meyering.net>
63043
63044         * m4/warning.m4: Use the all-permissive copyright notice
63045         recommended by RMS (rather than LGPL).
63046         * m4/vararrays.m4: Likewise.
63047         * m4/flexmember.m4: Likewise.
63048
63049 2006-11-29  Bruno Haible  <bruno@clisp.org>
63050
63051         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63052         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
63053         using +=.
63054         Reported by Simon Josefsson <simon@josefsson.org>.
63055
63056 2006-11-28  James Youngman <jay@gnu.org>
63057
63058         * README: Advise users that they might find the bug-gnulib@gnu.org
63059         and autotools-announce@gnu.org mailing lists useful.
63060
63061 2006-11-28  Bruno Haible  <bruno@clisp.org>
63062
63063         * m4/ptrdiff_max.m4: Remove file.
63064
63065 2006-11-21  Bruno Haible  <bruno@clisp.org>
63066
63067         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
63068         _AC_COMPUTE_INT.
63069         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63070         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
63071         _AC_COMPUTE_INT.
63072         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63073         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
63074         _AC_COMPUTE_INT.
63075         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63076
63077 2006-11-28  Jim Meyering  <jim@meyering.net>
63078
63079         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
63080         warning from "gcc -Wshadow" about shadowing the builtin.
63081
63082 2006-11-27  Bruno Haible  <bruno@clisp.org>
63083
63084         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
63085         _AC_COMPUTE_INT.
63086         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63087
63088 2006-11-27  Bruno Haible  <bruno@clisp.org>
63089             Paul Eggert  <eggert@cs.ucla.edu>
63090
63091         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
63092
63093 2006-11-26  Bruno Haible  <bruno@clisp.org>
63094
63095         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63096         noinst_LTLIBRARIES.
63097
63098 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63099             Bruno Haible  <bruno@clisp.org>
63100
63101         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
63102         if compiling with "gcc -ansi".
63103
63104 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63105
63106         Fix some incompatibilities with gcc -ansi -pedantic.
63107         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
63108         if compiling pedantically with GCC, unless it's C99 or later.
63109         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
63110         it mishandles gcc -ansi -pedantic as well.
63111         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
63112         if gcc -pedantic.
63113         * lib/regexec.c (check_node_accept_bytes): Don't use auto
63114         initializers for struct if -pedantic, unless it's C99 or later.
63115
63116 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
63117
63118         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
63119         Don't close an fd more than once. Identical atimes indicate
63120         success, not failure.
63121
63122 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
63123
63124         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
63125
63126 2006-11-23  Jim Meyering  <jim@meyering.net>
63127
63128         * build-aux/announce-gen: New file.  From coreutils.
63129
63130 2006-11-22  Jim Meyering  <jim@meyering.net>
63131
63132         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
63133         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
63134         (fts_read): Use a temporary to narrow the overused st_size member
63135         before using it in a switch statement.  Reported by Matthew Woehlke.
63136
63137         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
63138         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63139
63140 2006-11-20  Bruno Haible  <bruno@clisp.org>
63141
63142         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
63143         changequote instead of pairs of brackets.
63144         Reported by Andreas Schwab <schwab@suse.de>.
63145
63146 2006-11-21  Jim Meyering  <jim@meyering.net>
63147
63148         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
63149         so as to remain compatible with older compilers.
63150         Patch from Michael Deutschmann.
63151
63152 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63153
63154         * MODULES.html.sh (File system functions): Add openat.
63155
63156         * lib/openat.h (rpl_fstatat): New macro, if
63157         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
63158         (fstatat): Define to rpl_fstatat under the same conditions,
63159         unless COMPILING_FSTATAT.
63160         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
63161         seems to have the bug.
63162         * lib/fstatat.c: New file.
63163         * modules/openat (Files): Add it.
63164
63165 2006-11-20  Bruno Haible  <bruno@clisp.org>
63166
63167         * Makefile: New file.
63168
63169 2006-11-20  Jim Meyering  <jim@meyering.net>
63170
63171         The beginnings of syntax-related checks for gnulib.
63172         * lib/Makefile: New file.
63173         * lib/t-idcache: New script.  Ensure that the two halves of
63174         idcache.c stay in sync.
63175
63176         * lib/idcache.c: Adjust comments in user- and group- portions to
63177         be more accurate, and to be consistent with one another.
63178
63179 2006-11-20  Jim Meyering  <jim@meyering.net>
63180
63181         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
63182         continue using the flexible array member (thus, this module performs
63183         half as many malloc calls), with the addition that...
63184         (getgroup, getuser): Consistently record a non-match via an empty
63185         "name" string, and map an empty string match to a NULL return value.
63186         * modules/idcache (Depends-on): Re-add flexmember.
63187
63188         * lib/idcache.c (getuser): Remove all uses of the register keyword.
63189         (getuidbyname, getgroup, getgidbyname): Likewise.
63190
63191         Use cleaner syntax: NULL rather than 0.
63192         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
63193
63194 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
63197         It mishandled the case where the group was missing.
63198         Problem reported by Greg Schafer.
63199         * modules/idcache: Likewise.
63200
63201 2006-11-18  Jim Meyering  <jim@meyering.net>
63202
63203         * check-module (%exempt_header): Add exception for some
63204         conditionally-included headers.
63205
63206         * modules/i-ring (Depends-on): Add verify.
63207         (License): Change to LGPL.
63208
63209 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63210
63211         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
63212         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
63213         and inttostr.h.  Use snprintf rather than uinttostr, so that
63214         LGPLed code doesn't depend on GPLed.
63215
63216 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         * modules/inline (License): Change from GPL to LGPL.
63219
63220 2006-11-17  Jim Meyering  <jim@meyering.net>
63221
63222         * modules/d-type (License): Switch to LGPL.
63223
63224 2006-11-15  Bruno Haible  <bruno@clisp.org>
63225
63226         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
63227
63228 2006-11-15  Eric Blake  <ebb9@byu.net>
63229
63230         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
63231         the module dependency.
63232
63233 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63234             Bruno Haible  <bruno@clisp.org>
63235
63236         * gnulib-tool (func_create_testdir): Add license consistency check.
63237
63238 2006-11-15  Eric Blake  <ebb9@byu.net>
63239
63240         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
63241         random "(cached)" in configure output.
63242
63243 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63244
63245         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
63246         test for conforming inttypes.h is both announced and cached.
63247
63248         * MODULES.html.sh (seen_modules, seen_files): New variables.
63249         (func_module): Rewrite to use a few less gnulib-tool and sed
63250         invocations.  Avoid a couple of quadratic algorithms for ...
63251         (missed_modules, missed_files): ... these, with ...
63252         (func_append, func_tmpdir): ... these new functions, from
63253         gnulib-tool.  Analogously, install traps for cleanup.
63254
63255         * tests/test-gc.c (main): Remove unused variables.
63256         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63257
63258 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63259
63260         * modules/inttostr (License): Change to LGPL.
63261
63262 2006-11-14  Eric Blake  <ebb9@byu.net>
63263
63264         * modules/tempname (License): Change to LGPL.
63265
63266 2006-11-14  Eric Blake  <ebb9@byu.net>
63267
63268         * doc/functions.texi (Function Portability): *printf functions on
63269         Cygwin now understand all POSIX size specifiers.
63270
63271 2006-11-14  Bruno Haible  <bruno@clisp.org>
63272
63273         * modules/c-ctype (License): Change to LGPL.
63274
63275 2006-11-12  Bruno Haible  <bruno@clisp.org>
63276
63277         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63278         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
63279         for GNOME libraries, for which the include files are installed in
63280         subdirectories of $prefix/include.
63281
63282 2006-11-12  Bruno Haible  <bruno@clisp.org>
63283
63284         * m4/lib-link.m4: Require at least autoconf-2.54.
63285         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
63286         name to underscores for the --with option.
63287
63288 2006-11-13  Bruno Haible  <bruno@clisp.org>
63289
63290         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
63291         the tests directory.
63292         Reported by Ralf Wildenhues.
63293
63294 2006-11-13  Bruno Haible  <bruno@clisp.org>
63295
63296         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
63297         (func_emit_initmacro_end): Undo the override here.
63298         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
63299         Works around the famous automake error in coreutils.
63300
63301 2006-11-13  Eric Blake  <ebb9@byu.net>
63302
63303         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
63304         element, not its node.
63305
63306 2006-11-12  Bruno Haible  <bruno@clisp.org>
63307
63308         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
63309         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
63310
63311 2006-11-12  Bruno Haible  <bruno@clisp.org>
63312
63313         * gnulib-tool: New option --local-symlink.
63314         (func_usage): Document it.
63315         (lsymbolic): New variable.
63316         (func_import, func_create_testdir): If --symlink was not specified,
63317         test whether --local-symlink was specified and the file comes from
63318         the local_gnulib_dir.
63319
63320 2006-11-12  Bruno Haible  <bruno@clisp.org>
63321
63322         * gnulib-tool (func_ln): New function.
63323         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
63324
63325 2006-11-12  Bruno Haible  <bruno@clisp.org>
63326
63327         Finish support for source files in subdirectories.
63328         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
63329         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
63330         AUTOMAKE_OPTIONS.
63331         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
63332
63333 2006-11-12  Bruno Haible  <bruno@clisp.org>
63334
63335         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63336         EXTRA_lib_SOURCES augmentation.
63337         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
63338
63339 2006-11-12  Jim Meyering  <jim@meyering.net>
63340
63341         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
63342         file descriptors.  This also averts a failure on systems with
63343         native openat support when a traversed directory lacks "x" access.
63344         * lib/fts_.h: Include "i-ring.h"
63345         (struct FTS) [fts_fd_ring]: New member.
63346         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
63347         (FCHDIR): Add parentheses.
63348         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
63349         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
63350         When descending, rather than simply closing the previous
63351         fts_cwd_fd value, push that file descriptor onto the ring.
63352         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
63353         (fts_open): Initialize the new fd_ring member.
63354         (fts_close): Clear the ring.
63355         (fts_safe_changedir): When possible, use our new fd_ring to skip
63356         the diropen and fstat and dev/ino comparison that would normally
63357         accompany a virtual `chdir ("..")'.
63358
63359         * modules/fts (Depends-on): Add i-ring.
63360         * modules/i-ring: New module.
63361         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
63362         * m4/i-ring.m4: New file.
63363
63364 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63365
63366         * gnulib-tool (func_create_testdir): Fix replacement of
63367         `build-aux' in configure.ac.  Run autotools in gltests
63368         subdirectory.
63369         (func_create_testdir, func_create_megatestdir, test): There is
63370         no need for '--force' in most autotool invocations in a new
63371         tree.  Actually fail the whole test if any of the tools, or the
63372         configure or make stages fail.
63373
63374         Sync from Automake.
63375         * build-aux/gnupload: Revert last change.  Add pointer to upload
63376         instructions of the GNU Maintenance Instructions.
63377         Suggestion by Karl Berry.
63378
63379 2006-11-10  Jim Meyering  <jim@meyering.net>
63380
63381         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
63382
63383 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63384
63385         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
63386         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
63387         (bind_textdomain_codeset) [! ENABLE_NLS]:
63388         Evaluate all the arguments.  That way, callers get compatible behavior
63389         if the arguments have side effects.  Also, it avoids some GCC
63390         diagnostics in some cases; Joel E. Denny reported problems when Bison
63391         was configured with --enable-gcc-warnigs.
63392
63393 2006-11-10  Jim Meyering  <jim@meyering.net>
63394
63395         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
63396         relevant options in CFLAGS (like -O, -fno-inline) are taken into
63397         account.
63398
63399 2006-11-10  Jim Meyering  <jim@meyering.net>
63400
63401         * modules/inline: New file/module.
63402         * modules/xalloc (Files): Remove m4/inline.m4.
63403         (Depends-on): Add inline, instead.
63404         * modules/oset: Likewise.
63405         * modules/list: Likewise.
63406
63407 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63408
63409         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
63410         Problem reported by Matthew Woehlke.
63411
63412 2006-11-09  Bruno Haible  <bruno@clisp.org>
63413
63414         * lib/tempname.c (gen_tempname): Remove variant that invokes
63415         __gen_tempname.
63416         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
63417         __gen_tempname.
63418
63419 2006-11-08  Bruno Haible  <bruno@clisp.org>
63420
63421         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
63422         to 'yes' instead of 'cross-compiling'.
63423
63424 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63425
63426         * lib/quotearg.h (quotearg_free): New decl.
63427         * lib/quotearg.c (quotearg_free): New function.
63428         (slot0, nslots, slotvec0, slotvec):
63429         Now file-scope so that quotearg_free can get at them.
63430
63431 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63432
63433         Sync from Automake.
63434         * build-aux/gnupload: Add missing 'gnu' to example URL.
63435         Report by Karl Berry.
63436
63437 2006-11-08  Bruno Haible  <bruno@clisp.org>
63438
63439         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
63440         Suggested by Paul Eggert.
63441
63442 2006-11-08  Jim Meyering  <jim@meyering.net>
63443
63444         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
63445         It's already included if !_LIBC.
63446         (fts_safe_changedir): Add a comment.
63447
63448 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63449
63450         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
63451         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
63452         Matthew Woehlke.
63453
63454         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
63455         definitions up, to avoid colliding with change below.
63456         (static_inline) [HAVE_INLINE]: New macro.
63457         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
63458         Provide extern decls when !HAVE_INLINE.  Do not define unless
63459         static_inline is defined, either by us or by xmalloc.c.  Use
63460         static_inline rather than static inline.
63461         (XCALLOC): Optimize sizeof(T) = 1 case.
63462         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
63463
63464 2006-11-07  Bruno Haible  <bruno@clisp.org>
63465
63466         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
63467         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
63468         AC_C_INLINE.
63469         * modules/xalloc (Files): Add m4/inline.m4.
63470
63471 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63472
63473         * README: Fix typo.
63474         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
63475         (Miscellanous Notes): ...from this.
63476
63477 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
63480         Mention that offsetof should be used instead of sizeof.
63481         From Bruno Haible.
63482
63483 2006-11-07  Bruno Haible  <bruno@clisp.org>
63484
63485         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
63486
63487 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63488
63489         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63490         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
63491         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63492         (gl_tree_add_before, gl_tree_add_after):
63493         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
63494         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
63495         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63496         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
63497         (gl_linked_add_after, gl_linked_add_at): Likewise.
63498         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
63499         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63500         (gl_tree_add_before, gl_tree_add_after): Likewise.
63501         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
63502         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
63503         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
63504
63505 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63506
63507         * lib/gl_oset.h: Use C comment style, not C++ comment style.
63508
63509 2006-11-06  Bruno Haible  <bruno@clisp.org>
63510
63511         * m4/inline.m4: New file.
63512         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63513         * modules/list (Files): Add m4/inline.m4.
63514         * modules/oset (Files): Likewise.
63515
63516 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63517
63518         * lib/idcache.c: Include <stddef.h>, for offsetof.
63519         (struct userid.name): Change from char * to a flexible array member.
63520         All uses changed.
63521         * modules/idcache (Depends-on): Add flexmember.
63522
63523         * MODULES.html.sh (Core language properties): New module flexmember.
63524         * modules/flexmember, m4/flexmember.m4: New files.
63525
63526         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63527         inline functions that are identical with the old xnmalloc_inline,
63528         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63529         that we can avoid some unnecessary integer multiplications and
63530         divisions in the common case where the element size is known at
63531         compile time.
63532         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63533         needed.
63534         (xnboundedmalloc): Remove.
63535         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63536         arguments, for consistency with rest of this header.
63537         (xcharalloc): Rewrite using XNMALLOC.
63538         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63539         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63540         versions have been moved to lib/xalloc.h and renamed to be the
63541         non-*_inline versions.
63542         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63543         and xnrealloc functions, since those functions are now inline and
63544         now call us.
63545         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63546         renaming described above.
63547         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63548         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63549         captures the dependency in AC_C_INLINE.
63550
63551         New module canonicalize-lgpl, proposed by Charles Wilson in
63552         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63553         with a few small changes afterwards.
63554         * MODULES.html.sh (File system functions): New module
63555         canonicalize-lgpl.
63556         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63557         and canonicalize_file_name.
63558         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63559         * modules/canonicalize-lgpl: New files.
63560
63561 2006-11-05  Bruno Haible  <bruno@clisp.org>
63562
63563         * gnulib-tool (func_import, func_create_testdir): Create directories
63564         also for files in subdirectories of lib/.
63565
63566 2006-11-05  Bruno Haible  <bruno@clisp.org>
63567
63568         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63569         ANSI C compliant.
63570
63571 2006-11-03  Bruno Haible  <bruno@clisp.org>
63572
63573         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63574         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63575         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63576         (xnboundedmalloc): New inline function.
63577         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63578         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63579         xmalloc.
63580         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63581         xmalloc.
63582         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63583         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63584         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63585         xmalloc.
63586         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63587         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63588         xmalloc.
63589         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63590         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63591         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63592         xmalloc.
63593         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63594         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63595         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63596         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63597         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63598         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63599         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63600
63601 2006-11-03  Bruno Haible  <bruno@clisp.org>
63602
63603         * lib/c-ctype.h [C++]: Define functions without name mangling.
63604         * lib/fwriteerror.h [C++]: Likewise.
63605         * lib/gcd.h [C++]: Likewise.
63606         * lib/linebreak.h [C++]: Likewise.
63607
63608 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63611         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63612         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63613         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63614         Check for functions and headers just once.
63615         Check for declaration of canonicalize_file_name.
63616         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63617
63618 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63619
63620         * gnulib-tool (func_import): Fix typo in actioncmd.
63621
63622 2006-11-02  Bruno Haible  <bruno@clisp.org>
63623
63624         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63625         newline sequence in the Makefile.am snippet as a space, like "make"
63626         does.
63627         Reported by Roger Persson <perrog@gmail.com>.
63628
63629 2006-11-01  Bruno Haible  <bruno@clisp.org>
63630
63631         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63632         already declared in <string.h>.
63633         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63634
63635 2006-11-01  Bruno Haible  <bruno@clisp.org>
63636
63637         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63638         * lib/strcase.h: Include <string.h>.
63639         (strcasecmp): Define to rpl_strcasecmp here.
63640
63641 2006-11-01  Bruno Haible  <bruno@clisp.org>
63642
63643         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63644
63645 2006-11-01  Eric Blake  <ebb9@byu.net>
63646
63647         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63648
63649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63650
63651 2006-10-29  Bruno Haible  <bruno@clisp.org>
63652
63653         Make it compile in C++ mode.
63654         * lib/full-write.c (full_rw): Add a cast.
63655
63656 2006-11-01  Bruno Haible  <bruno@clisp.org>
63657
63658         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63659         be POSIX compliant.
63660         Reported by Roger Persson <perrog@gmail.com>.
63661
63662 2006-11-01  Eric Blake  <ebb9@byu.net>
63663
63664         * lib/getopt_.h: Fix comments.
63665
63666 2006-10-31  Eric Blake  <ebb9@byu.net>
63667
63668         * modules/tmpdir (Depends-on): Add sys_stat.
63669         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63670         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63671         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63672         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63673         tempname.
63674
63675 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63676
63677         Avoid some C++ diagnostics reported by Bruno Haible.
63678         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63679         xmalloc.
63680         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63681         (struct slotvec): Move to top level.
63682         (quotearg_n_options): Rewrite to avoid xmalloc.
63683         * lib/xalloc.h (xcharalloc): New function.
63684         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63685         [defined __cplusplus]: Add function template that provides result
63686         type propagation.  This part of the change is from Bruno Haible.
63687
63688 2006-10-29  Bruno Haible  <bruno@clisp.org>
63689
63690         Make it compile in C++ mode.
63691         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63692         * lib/strnlen1.c (strnlen1): Cast memchr result.
63693         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63694         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63695         (create_temp_dir): Rename local variable 'template'.
63696         (compile_csharp_using_sscli): Add cast.
63697         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63698         * lib/findprog.c (find_in_path): Likewise.
63699         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63700         * lib/wait-process.c (register_slave_subprocess): Likewise.
63701
63702 2006-10-22  Bruno Haible  <bruno@clisp.org>
63703
63704         * modules/tsearch: New file.
63705         * lib/tsearch.h: New file.
63706         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63707         * m4/tsearch.m4: New file.
63708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63709
63710 2006-10-29  Eric Blake  <ebb9@byu.net>
63711
63712         * lib/arcfour.c: Assume config.h.
63713         * lib/arctwo.c: Likewise.
63714         * lib/base64.c: Likewise.
63715         * lib/check-version.c: Likewise.
63716         * lib/crc.c: Likewise.
63717         * lib/des.c: Likewise.
63718         * lib/gc-gnulib.c: Likewise.
63719         * lib/gc-libgcrypt.c: Likewise.
63720         * lib/gc-pbkdf2-sha1.c: Likewise.
63721         * lib/getaddrinfo.c: Likewise.
63722         * lib/getdelim.c: Likewise.
63723         * lib/getline.c: Likewise.
63724         * lib/hmac-md5.c: Likewise.
63725         * lib/hmac-sha1.c: Likewise.
63726         * lib/iconvme.c: Likewise.
63727         * lib/md2.c: Likewise.
63728         * lib/md4.c: Likewise.
63729         * lib/memxor.c: Likewise.
63730         * lib/read-file.c: Likewise.
63731         * lib/readline.c: Likewise.
63732         * lib/rijndael-alg-fst.c: Likewise.
63733         * lib/rijndael-api-fst.c: Likewise.
63734         * lib/xgetdomainname.c: Likewise.
63735
63736 2006-10-28  Eric Blake  <ebb9@byu.net>
63737
63738         * lib/xstrndup.c: Assume config.h.
63739
63740 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63741
63742         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63743         stat-macros.h is now for our own macros, whereas stat_h is for
63744         macros in the <sys/stat.h> name space.
63745         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63746         (STAT_MACROS_H): Remove.
63747         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63748         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63749         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63750         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63751         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63752         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63753         Move these macros to ...
63754         * lib/stat_.h: here.  Don't include stat-macros.h.
63755         * lib/canonicalize.c: Don't include stat-macros.h.
63756         * lib/chown.c: Likewise.
63757         * lib/euidaccess.c: Likewise.
63758         * lib/file-type.c: Likewise.
63759         * lib/filemode.c: Likewise.
63760         * lib/glob.c: Likewise.
63761         * lib/isapipe.c: Likewise.
63762         * lib/lchown.c: Likewise.
63763         * lib/lstat.c: Likewise.
63764         * lib/mkdir-p.c: Likewise.
63765         * lib/rmdir.c: Likewise.
63766         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63768         unless mkdir isn't declared, to speed up 'configure'.
63769         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63770         would define all the S_* symbols.
63771         * modules/canonicalize (Depends-on):
63772         Depend on sys_stat, not stat-macros.
63773         * modules/chown: Likewise.
63774         * modules/euidaccess: Likewise.
63775         * modules/filemode: Likewise.
63776         * modules/file-type: Likewise.
63777         * modules/glob: Likewise.
63778         * modules/isapipe: Likewise.
63779         * modules/lchown: Likewise.
63780         * modules/lstat: Likewise.
63781         * modules/mkancesdirs: Likewise.
63782         * modules/rmdir: Likewise.
63783         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63784         * modules/modechange: Likewise.
63785         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63786         (configure.ac): Remove gl_STAT_MACROS.
63787         * modules/sys_stat (Depends-on): Remove stat-macros.
63788
63789 2006-10-27  Bruno Haible  <bruno@clisp.org>
63790
63791         * m4/signed.m4: Remove file.
63792         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63793         invocation.
63794         * modules/vasnprintf (Files): Remove m4/signed.m4.
63795
63796 2006-10-27  Bruno Haible  <bruno@clisp.org>
63797
63798         Update to GNU gettext 0.16.
63799         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63800         m4/inttypes-h.m4, m4/signed.m4.
63801         * m4/gettext.m4: Update to GNU gettext 0.16.
63802         * m4/intl.m4: New file, from GNU gettext.
63803         * m4/intldir.m4: New file, from GNU gettext.
63804         * config/srclist.txt: Update
63805
63806 2006-10-27  Eric Blake  <ebb9@byu.net>
63807
63808         * MODULES.html.sh: Document tempname.
63809         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63810         dependencies.
63811         (Files): Move lib/tempname.c...
63812         * modules/tempname: ...to this new module.
63813         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63814         (gl_PREREQ_TEMPNAME): Move...
63815         * m4/tempname.m4: ...to this new file.
63816         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63817         * modules/sys_stat (Depends-on): Add stat-macros.
63818         * lib/stat_.h (includes): Pick up stat macros.
63819         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63820         if stat macros are broken.
63821         * lib/tempname.c (includes): No need to include "stat-macros.h".
63822         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63823         (direxists, __path_search) [!_LIBC]: Don't compile these in
63824         gnulib; the tmpdir module covers that.
63825         * lib/tempname.h: New file.
63826
63827 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63828
63829         * COPYING: Explain how gnulib-tool converts licence headers.
63830         Almost all wording by Eric Blake.
63831
63832 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63833
63834         * lib/mbchar.h (is_basic_table): Make read-only.
63835         * lib/mbchar.c (is_basic_table): Likewise.
63836         Reported by John Darrington.
63837
63838 2006-10-25  Bruno Haible  <bruno@clisp.org>
63839
63840         * lib/progname.h (set_program_name): Undefine before defining.
63841
63842 2006-10-25  Bruno Haible  <bruno@clisp.org>
63843
63844         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63845         false for non-gcc C++ compilers.
63846         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63847
63848 2006-10-24  Bruno Haible  <bruno@clisp.org>
63849
63850         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63851         iconv implementations like Irix iconv.
63852
63853 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63854
63855         * modules/vararrays: New file.
63856         * m4/vararrays.m4: New file, taken from diffutils.
63857         * MODULES.html.sh: New module vararrays.
63858
63859 2006-10-24  Karl Berry  <karl@gnu.org>
63860
63861         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63862         Don't call GNU Unix.
63863
63864 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63865
63866         * users.txt: Add Libtool.
63867
63868         Sync from Libtool:
63869
63870         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63871
63872         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63873         to gnulib's policy of including config.h unconditionally.
63874
63875 2006-10-24  Bruno Haible  <bruno@clisp.org>
63876
63877         * modules/wcwidth (Files): Add m4/wint_t.m4.
63878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63879         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63880
63881 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63882
63883         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63884         to pacify GCC with some -W flags enabled.  Problem reported by
63885         Bruno Haible.
63886
63887 2006-10-24  Jim Meyering  <jim@meyering.net>
63888
63889         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63890         Reported by Karl Berry.
63891
63892 2006-10-23  Bruno Haible  <bruno@clisp.org>
63893
63894         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63895
63896 2006-10-24  Bruno Haible  <bruno@clisp.org>
63897
63898         * lib/gl_list.h: Use C comment style, not C++ comment style.
63899
63900 2006-10-23  Eric Blake  <ebb9@byu.net>
63901
63902         * lib/getaddrinfo.c (includes): Add missing include.
63903
63904 2006-10-23  Bruno Haible  <bruno@clisp.org>
63905             Paul Eggert  <eggert@cs.ucla.edu>
63906
63907         Ability to rename obstack_free.
63908         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63909         obstack_free.
63910         (obstack_free): Invoke the __obstack_free macro.
63911         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63912
63913 2006-10-23  Bruno Haible  <bruno@clisp.org>
63914             Paul Eggert  <eggert@cs.ucla.edu>
63915
63916         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63917         __argc, __argv from the declaration. (They are defined as macros on
63918         mingw.)
63919
63920 2006-10-22  Bruno Haible  <bruno@clisp.org>
63921
63922         * doc/gnulib-intro.texi: New file.
63923         * doc/gnulib.texi: Include it.
63924
63925 2006-10-21  Bruno Haible  <bruno@clisp.org>
63926
63927         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63928         "Introduction", "Miscellanous Notes", "Particular Modules".
63929
63930 2006-10-21  Bruno Haible  <bruno@clisp.org>
63931
63932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63933         Change mostlyclean-local rule to avoid sh syntax error from bash
63934         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63935
63936 2006-10-23  Jim Meyering  <jim@meyering.net>
63937
63938         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63939         in place of snprintf.
63940
63941         * modules/inttostr (Files): Add lib/uinttostr.c.
63942         * lib/uinttostr.c (inttostr): New file/function.
63943         * lib/inttostr.h (uinttostr): Declare.
63944         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63945         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63946         Add uinttostr.
63947         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63948
63949 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63950
63951         * lib/canonicalize.c (ELOOP): Define if not already defined.
63952         Problem reported by Bruno Haible in
63953         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63954
63955 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63958         Problem reported by Perry Smith and Ville Laurikari.
63959
63960         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63961         uses.
63962
63963 2006-10-19  Bruno Haible  <bruno@clisp.org>
63964
63965         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63966         for mingw.
63967
63968 2006-10-19  Bruno Haible  <bruno@clisp.org>
63969
63970         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63971         Needed for mingw.
63972
63973 2006-10-19  Bruno Haible  <bruno@clisp.org>
63974
63975         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63976
63977 2006-10-19  Bruno Haible  <bruno@clisp.org>
63978
63979         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63980         it.
63981
63982 2006-10-19  Bruno Haible  <bruno@clisp.org>
63983
63984         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63985         invocation.
63986
63987 2006-10-19  Bruno Haible  <bruno@clisp.org>
63988
63989         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63990         mountlist by default.
63991
63992 2006-10-16  Bruno Haible  <bruno@clisp.org>
63993
63994         * lib/c-strstr.c: Include c-strstr.h.
63995
63996 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63997
63998         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63999         in a slash.
64000
64001 2006-10-18  Bruno Haible  <bruno@clisp.org>
64002
64003         * lib/lock.h [C++]: Wrap definitions in extern "C".
64004
64005 2006-10-18  Bruno Haible  <bruno@clisp.org>
64006
64007         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
64008         gl_LIBOBJS list.
64009
64010 2006-10-18  Bruno Haible  <bruno@clisp.org>
64011
64012         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
64013
64014 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
64015
64016         * lib/xstrtol.h: Include gettext.h.
64017         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
64018         Problem reported by Eric Blake.
64019         * modules/xstrtol (Depends-on): Add gettext-h.
64020
64021 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
64022
64023         * lib/strftime.c (advance): New macro.
64024         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
64025         incomplete type, so you can't add 0 to it.  Problem and patch
64026         reported by Eelco Dolstra for dietlibc.
64027
64028 2006-10-18  Jim Meyering  <jim@meyering.net>
64029
64030         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
64031         type for a local, and rename it: s/up/user_proc/.
64032
64033 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64034
64035         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
64036         READ_UTMP_USER_PROCESS.
64037         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
64038
64039 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64040
64041         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
64042         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
64043
64044 2006-10-17  Eric Blake  <ebb9@byu.net>
64045
64046         * lib/sigprocmask.c (sigprocmask): Fix typo.
64047
64048         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
64049
64050         * modules/clean-temp (Makefile.am): Don't add to make output...
64051         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
64052         config.h.
64053
64054 2006-10-17  Bruno Haible  <bruno@clisp.org>
64055
64056         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
64057         differently if DEFAULT_TEXT_DOMAIN is set.
64058
64059 2006-10-16  Bruno Haible  <bruno@clisp.org>
64060
64061         * lib/clean-temp.c: Include fwriteerror.h.
64062
64063 2006-10-16  Bruno Haible  <bruno@clisp.org>
64064
64065         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
64066
64067 2006-10-16  Bruno Haible  <bruno@clisp.org>
64068
64069         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
64070         * lib/sigprocmask.h: Include <sys/types.h>.
64071         (sigset_t): Use the system's definition if present.
64072
64073 2006-10-17  Eric Blake  <ebb9@byu.net>
64074
64075         * lib/xvasprintf.c (includes): Assume config.h.
64076         * lib/xasprintf.c (includes): Likewise.
64077
64078 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64079
64080         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
64081         at least as wide as intmax_t.
64082
64083 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
64084
64085         (Imported from Automake.)
64086         * build-aux/gnupload: Update to version 1.1 of directive file.
64087
64088 2006-10-16  Eric Blake  <ebb9@byu.net>
64089
64090         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
64091         match Automake 1.10a.
64092
64093 2006-10-14  Bruno Haible  <bruno@clisp.org>
64094
64095         * modules/sigprocmask: New file.
64096         * lib/sigprocmask.h: New file.
64097         * lib/sigprocmask.c: New file.
64098         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
64099         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
64100         request sigprocmask.o.
64101         (gl_PREREQ_SIGPROCMASK): New macro.
64102         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
64103         (Depends-on): Add sigprocmask.
64104         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
64105         gt_SIGNALBLOCKING. Test for 'raise' only once.
64106         * lib/fatal-signal.c: Include sigprocmask.h.
64107         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
64108         unblock_fatal_signals): Define always.
64109         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64110         sigprocmask.
64111
64112 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         Sync from Automake.
64115         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
64116         which incorrectly sets the mode of an existing destination
64117         directory.  In some cases the unpatched install-sh could do the
64118         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
64119         system.  We hope this is rare in practice, but it's clearly worth
64120         fixing.  Problem reported by Alex Unleashed in
64121         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
64122         Also, don't bother to check for -m bugs unless we're using -m;
64123         suggested by Stepan Kasal.
64124
64125 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64126
64127         Sync from Automake.
64128         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
64129         `-c' flag, so they appear at the same position as in %FASTDEP%
64130         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
64131         which ignores unknown options only after the first non-option.
64132         Bug report against M4 by Nelson H. F. Beebe.
64133
64134 2006-10-13  Jim Meyering  <jim@meyering.net>
64135
64136         Fix a bug in yesterday's change.
64137         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
64138         p->fts_statp->st_dev would be used uninitialized.
64139         Ensures that we always call fts_stat on the very first entry.
64140         Miklos Szeredi reported that find -xdev stopped working.
64141
64142 2006-10-12  Bruno Haible  <bruno@clisp.org>
64143
64144         * gnulib-tool (func_get_automake_snippet): Append an automatically
64145         computed EXTRA_DIST augmentation.
64146         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
64147         * modules/alloca-opt (Makefile.am): Likewise.
64148         * modules/allocsa (Makefile.am): Likewise.
64149         * modules/arcfour (Makefile.am): Likewise.
64150         * modules/arctwo (Makefile.am): Likewise.
64151         * modules/argmatch (Makefile.am): Likewise.
64152         * modules/argz (Makefile.am): Likewise.
64153         * modules/atexit (Makefile.am): Likewise.
64154         * modules/backupfile (Makefile.am): Likewise.
64155         * modules/byteswap (Makefile.am): Likewise.
64156         * modules/c-strtod (Makefile.am): Likewise.
64157         * modules/c-strtold (Makefile.am): Likewise.
64158         * modules/calloc (Makefile.am): Likewise.
64159         * modules/canon-host (Makefile.am): Likewise.
64160         * modules/canonicalize (Makefile.am): Likewise.
64161         * modules/chdir-long (Makefile.am): Likewise.
64162         * modules/chdir-safer (Makefile.am): Likewise.
64163         * modules/check-version (Makefile.am): Likewise.
64164         * modules/chown (Makefile.am): Likewise.
64165         * modules/cloexec (Makefile.am): Likewise.
64166         * modules/close-stream (Makefile.am): Likewise.
64167         * modules/closeout (Makefile.am): Likewise.
64168         * modules/crc (Makefile.am): Likewise.
64169         * modules/csharpexec (Makefile.am): Likewise.
64170         * modules/cycle-check (Makefile.am): Likewise.
64171         * modules/des (Makefile.am): Likewise.
64172         * modules/dev-ino (Makefile.am): Likewise.
64173         * modules/dirfd (Makefile.am): Likewise.
64174         * modules/dirname (Makefile.am): Likewise.
64175         * modules/dup2 (Makefile.am): Likewise.
64176         * modules/eealloc (Makefile.am): Likewise.
64177         * modules/error (Makefile.am): Likewise.
64178         * modules/euidaccess (Makefile.am): Likewise.
64179         * modules/exclude (Makefile.am): Likewise.
64180         * modules/exitfail (Makefile.am): Likewise.
64181         * modules/fcntl-safer (Makefile.am): Likewise.
64182         * modules/fcntl (Makefile.am): Likewise.
64183         * modules/file-type (Makefile.am): Likewise.
64184         * modules/fileblocks (Makefile.am): Likewise.
64185         * modules/filemode (Makefile.am): Likewise.
64186         * modules/filenamecat (Makefile.am): Likewise.
64187         * modules/fnmatch (Makefile.am): Likewise.
64188         * modules/fopen-safer (Makefile.am): Likewise.
64189         * modules/fpending (Makefile.am): Likewise.
64190         * modules/fprintftime (Makefile.am): Likewise.
64191         * modules/free (Makefile.am): Likewise.
64192         * modules/fsusage (Makefile.am): Likewise.
64193         * modules/ftruncate (Makefile.am): Likewise.
64194         * modules/fts (Makefile.am): Likewise.
64195         * modules/gc-arcfour (Makefile.am): Likewise.
64196         * modules/gc-des (Makefile.am): Likewise.
64197         * modules/gc-hmac-md5 (Makefile.am): Likewise.
64198         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
64199         * modules/gc-md4 (Makefile.am): Likewise.
64200         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64201         * modules/gc-sha1 (Makefile.am): Likewise.
64202         * modules/gc (Makefile.am): Likewise.
64203         * modules/getaddrinfo (Makefile.am): Likewise.
64204         * modules/getcwd (Makefile.am): Likewise.
64205         * modules/getdelim (Makefile.am): Likewise.
64206         * modules/getdomainname (Makefile.am): Likewise.
64207         * modules/getgroups (Makefile.am): Likewise.
64208         * modules/gethostname (Makefile.am): Likewise.
64209         * modules/gethrxtime (Makefile.am): Likewise.
64210         * modules/getline (Makefile.am): Likewise.
64211         * modules/getloadavg (Makefile.am): Likewise.
64212         * modules/getlogin_r (Makefile.am): Likewise.
64213         * modules/getndelim2 (Makefile.am): Likewise.
64214         * modules/getopt (Makefile.am): Likewise.
64215         * modules/getpagesize (Makefile.am): Likewise.
64216         * modules/getpass-gnu (Makefile.am): Likewise.
64217         * modules/getpass (Makefile.am): Likewise.
64218         * modules/getsubopt (Makefile.am): Likewise.
64219         * modules/gettime (Makefile.am): Likewise.
64220         * modules/gettimeofday (Makefile.am): Likewise.
64221         * modules/getugroups (Makefile.am): Likewise.
64222         * modules/getusershell (Makefile.am): Likewise.
64223         * modules/glob (Makefile.am): Likewise.
64224         * modules/group-member (Makefile.am): Likewise.
64225         * modules/hard-locale (Makefile.am): Likewise.
64226         * modules/hash (Makefile.am): Likewise.
64227         * modules/hmac-md5 (Makefile.am): Likewise.
64228         * modules/hmac-sha1 (Makefile.am): Likewise.
64229         * modules/human (Makefile.am): Likewise.
64230         * modules/idcache (Makefile.am): Likewise.
64231         * modules/imaxabs (Makefile.am): Likewise.
64232         * modules/imaxdiv (Makefile.am): Likewise.
64233         * modules/inet_ntop (Makefile.am): Likewise.
64234         * modules/inet_pton (Makefile.am): Likewise.
64235         * modules/intprops (Makefile.am): Likewise.
64236         * modules/inttostr (Makefile.am): Likewise.
64237         * modules/inttypes (Makefile.am): Likewise.
64238         * modules/isapipe (Makefile.am): Likewise.
64239         * modules/javaversion (Makefile.am): Likewise.
64240         * modules/lchmod (Makefile.am): Likewise.
64241         * modules/lchown (Makefile.am): Likewise.
64242         * modules/localcharset (Makefile.am): Likewise.
64243         * modules/long-options (Makefile.am): Likewise.
64244         * modules/lstat (Makefile.am): Likewise.
64245         * modules/malloc (Makefile.am): Likewise.
64246         * modules/mathl (Makefile.am): Likewise.
64247         * modules/mbchar (Makefile.am): Likewise.
64248         * modules/md2 (Makefile.am): Likewise.
64249         * modules/md4 (Makefile.am): Likewise.
64250         * modules/md5 (Makefile.am): Likewise.
64251         * modules/memcasecmp (Makefile.am): Likewise.
64252         * modules/memchr (Makefile.am): Likewise.
64253         * modules/memcmp (Makefile.am): Likewise.
64254         * modules/memcoll (Makefile.am): Likewise.
64255         * modules/memcpy (Makefile.am): Likewise.
64256         * modules/memmem (Makefile.am): Likewise.
64257         * modules/memmove (Makefile.am): Likewise.
64258         * modules/mempcpy (Makefile.am): Likewise.
64259         * modules/memrchr (Makefile.am): Likewise.
64260         * modules/memset (Makefile.am): Likewise.
64261         * modules/memxor (Makefile.am): Likewise.
64262         * modules/mkancesdirs (Makefile.am): Likewise.
64263         * modules/mkdir-p (Makefile.am): Likewise.
64264         * modules/mkdir (Makefile.am): Likewise.
64265         * modules/mkdtemp (Makefile.am): Likewise.
64266         * modules/mkstemp (Makefile.am): Likewise.
64267         * modules/mktime (Makefile.am): Likewise.
64268         * modules/modechange (Makefile.am): Likewise.
64269         * modules/mountlist (Makefile.am): Likewise.
64270         * modules/nanosleep (Makefile.am): Likewise.
64271         * modules/obstack (Makefile.am): Likewise.
64272         * modules/openat (Makefile.am): Likewise.
64273         * modules/pagealign_alloc (Makefile.am): Likewise.
64274         * modules/pathmax (Makefile.am): Likewise.
64275         * modules/physmem (Makefile.am): Likewise.
64276         * modules/poll (Makefile.am): Likewise.
64277         * modules/posixtm (Makefile.am): Likewise.
64278         * modules/posixver (Makefile.am): Likewise.
64279         * modules/putenv (Makefile.am): Likewise.
64280         * modules/quote (Makefile.am): Likewise.
64281         * modules/quotearg (Makefile.am): Likewise.
64282         * modules/raise (Makefile.am): Likewise.
64283         * modules/read-file (Makefile.am): Likewise.
64284         * modules/readline (Makefile.am): Likewise.
64285         * modules/readlink (Makefile.am): Likewise.
64286         * modules/readtokens (Makefile.am): Likewise.
64287         * modules/readutmp (Makefile.am): Likewise.
64288         * modules/realloc (Makefile.am): Likewise.
64289         * modules/regex (Makefile.am): Likewise.
64290         * modules/rename-dest-slash (Makefile.am): Likewise.
64291         * modules/rename (Makefile.am): Likewise.
64292         * modules/rijndael (Makefile.am): Likewise.
64293         * modules/rmdir (Makefile.am): Likewise.
64294         * modules/rpmatch (Makefile.am): Likewise.
64295         * modules/safe-read (Makefile.am): Likewise.
64296         * modules/safe-write (Makefile.am): Likewise.
64297         * modules/same-inode (Makefile.am): Likewise.
64298         * modules/same (Makefile.am): Likewise.
64299         * modules/save-cwd (Makefile.am): Likewise.
64300         * modules/savedir (Makefile.am): Likewise.
64301         * modules/setenv (Makefile.am): Likewise.
64302         * modules/settime (Makefile.am): Likewise.
64303         * modules/sha1 (Makefile.am): Likewise.
64304         * modules/sig2str (Makefile.am): Likewise.
64305         * modules/snprintf (Makefile.am): Likewise.
64306         * modules/stat-macros (Makefile.am): Likewise.
64307         * modules/stat-time (Makefile.am): Likewise.
64308         * modules/stdbool (Makefile.am): Likewise.
64309         * modules/stdint (Makefile.am): Likewise.
64310         * modules/stdlib-safer (Makefile.am): Likewise.
64311         * modules/stpcpy (Makefile.am): Likewise.
64312         * modules/stpncpy (Makefile.am): Likewise.
64313         * modules/strcase (Makefile.am): Likewise.
64314         * modules/strcasestr (Makefile.am): Likewise.
64315         * modules/strchrnul (Makefile.am): Likewise.
64316         * modules/strcspn (Makefile.am): Likewise.
64317         * modules/strdup (Makefile.am): Likewise.
64318         * modules/strerror (Makefile.am): Likewise.
64319         * modules/strftime (Makefile.am): Likewise.
64320         * modules/strndup (Makefile.am): Likewise.
64321         * modules/strnlen (Makefile.am): Likewise.
64322         * modules/strpbrk (Makefile.am): Likewise.
64323         * modules/strsep (Makefile.am): Likewise.
64324         * modules/strstr (Makefile.am): Likewise.
64325         * modules/strtod (Makefile.am): Likewise.
64326         * modules/strtoimax (Makefile.am): Likewise.
64327         * modules/strtok_r (Makefile.am): Likewise.
64328         * modules/strtol (Makefile.am): Likewise.
64329         * modules/strtoll (Makefile.am): Likewise.
64330         * modules/strtoul (Makefile.am): Likewise.
64331         * modules/strtoull (Makefile.am): Likewise.
64332         * modules/strtoumax (Makefile.am): Likewise.
64333         * modules/strverscmp (Makefile.am): Likewise.
64334         * modules/sys_socket (Makefile.am): Likewise.
64335         * modules/sys_stat (Makefile.am): Likewise.
64336         * modules/sysexits (Makefile.am): Likewise.
64337         * modules/time_r (Makefile.am): Likewise.
64338         * modules/timegm (Makefile.am): Likewise.
64339         * modules/timespec (Makefile.am): Likewise.
64340         * modules/tmpfile-safer (Makefile.am): Likewise.
64341         * modules/trim (Makefile.am): Likewise.
64342         * modules/unistd-safer (Makefile.am): Likewise.
64343         * modules/unlinkdir (Makefile.am): Likewise.
64344         * modules/unlocked-io (Makefile.am): Likewise.
64345         * modules/userspec (Makefile.am): Likewise.
64346         * modules/utime (Makefile.am): Likewise.
64347         * modules/utimecmp (Makefile.am): Likewise.
64348         * modules/utimens (Makefile.am): Likewise.
64349         * modules/vasnprintf (Makefile.am): Likewise.
64350         * modules/vasprintf (Makefile.am): Likewise.
64351         * modules/vsnprintf (Makefile.am): Likewise.
64352         * modules/xalloc (Makefile.am): Likewise.
64353         * modules/xgetcwd (Makefile.am): Likewise.
64354         * modules/xnanosleep (Makefile.am): Likewise.
64355         * modules/xreadlink (Makefile.am): Likewise.
64356         * modules/xstrtod (Makefile.am): Likewise.
64357         * modules/xstrtol (Makefile.am): Likewise.
64358         * modules/xstrtold (Makefile.am): Likewise.
64359         * modules/yesno (Makefile.am): Likewise.
64360         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
64361
64362 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64363
64364         * modules/error (Makefile.am): Distribute files through
64365         EXTRA_DIST, not lib_SOURCES.
64366
64367 2006-10-12  Eric Blake  <ebb9@byu.net>
64368
64369         * modules/error (Makefile.am): Distribute files in /lib.
64370         * modules/obstack (Makefile.am): Likewise.
64371
64372 2006-10-12  Bruno Haible  <bruno@clisp.org>
64373
64374         * modules/acl (Makefile.am): Distribute all files in lib/ through
64375         EXTRA_DIST.
64376         * modules/arcfour (Makefile.am): Likewise.
64377         * modules/arctwo (Makefile.am): Likewise.
64378         * modules/argmatch (Makefile.am): Likewise.
64379         * modules/argz (Makefile.am): Likewise.
64380         * modules/atexit (Makefile.am): Likewise.
64381         * modules/backupfile (Makefile.am): Likewise.
64382         * modules/c-strtod (Makefile.am): Likewise.
64383         * modules/c-strtold (Makefile.am): Likewise.
64384         * modules/calloc (Makefile.am): Likewise.
64385         * modules/canon-host (Makefile.am): Likewise.
64386         * modules/canonicalize (Makefile.am): Likewise.
64387         * modules/chdir-long (Makefile.am): Likewise.
64388         * modules/chdir-safer (Makefile.am): Likewise.
64389         * modules/check-version (Makefile.am): Likewise.
64390         * modules/chown (Makefile.am): Likewise.
64391         * modules/cloexec (Makefile.am): Likewise.
64392         * modules/close-stream (Makefile.am): Likewise.
64393         * modules/closeout (Makefile.am): Likewise.
64394         * modules/crc (Makefile.am): Likewise.
64395         * modules/cycle-check (Makefile.am): Likewise.
64396         * modules/des (Makefile.am): Likewise.
64397         * modules/dirfd (Makefile.am): Likewise.
64398         * modules/dirname (Makefile.am): Likewise.
64399         * modules/dup2 (Makefile.am): Likewise.
64400         * modules/euidaccess (Makefile.am): Likewise.
64401         * modules/exclude (Makefile.am): Likewise.
64402         * modules/exitfail (Makefile.am): Likewise.
64403         * modules/fcntl-safer (Makefile.am): Likewise.
64404         * modules/file-type (Makefile.am): Likewise.
64405         * modules/fileblocks (Makefile.am): Likewise.
64406         * modules/filemode (Makefile.am): Likewise.
64407         * modules/filenamecat (Makefile.am): Likewise.
64408         * modules/fnmatch (Makefile.am): Likewise.
64409         * modules/fopen-safer (Makefile.am): Likewise.
64410         * modules/fpending (Makefile.am): Likewise.
64411         * modules/fprintftime (Makefile.am): Likewise.
64412         * modules/free (Makefile.am): Likewise.
64413         * modules/fsusage (Makefile.am): Likewise.
64414         * modules/ftruncate (Makefile.am): Likewise.
64415         * modules/fts (Makefile.am): Likewise.
64416         * modules/gc (Makefile.am): Likewise.
64417         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64418         * modules/getaddrinfo (Makefile.am): Likewise.
64419         * modules/getcwd (Makefile.am): Likewise.
64420         * modules/getdelim (Makefile.am): Likewise.
64421         * modules/getdomainname (Makefile.am): Likewise.
64422         * modules/getgroups (Makefile.am): Likewise.
64423         * modules/gethostname (Makefile.am): Likewise.
64424         * modules/gethrxtime (Makefile.am): Likewise.
64425         * modules/getline (Makefile.am): Likewise.
64426         * modules/getloadavg (Makefile.am): Likewise.
64427         * modules/getlogin_r (Makefile.am): Likewise.
64428         * modules/getopt (Makefile.am): Likewise.
64429         * modules/getpass (Makefile.am): Likewise.
64430         * modules/getpass-gnu (Makefile.am): Likewise.
64431         * modules/getsubopt (Makefile.am): Likewise.
64432         * modules/gettime (Makefile.am): Likewise.
64433         * modules/gettimeofday (Makefile.am): Likewise.
64434         * modules/getugroups (Makefile.am): Likewise.
64435         * modules/getusershell (Makefile.am): Likewise.
64436         * modules/glob (Makefile.am): Likewise.
64437         * modules/group-member (Makefile.am): Likewise.
64438         * modules/hard-locale (Makefile.am): Likewise.
64439         * modules/hash (Makefile.am): Likewise.
64440         * modules/hmac-md5 (Makefile.am): Likewise.
64441         * modules/hmac-sha1 (Makefile.am): Likewise.
64442         * modules/human (Makefile.am): Likewise.
64443         * modules/idcache (Makefile.am): Likewise.
64444         * modules/imaxabs (Makefile.am): Likewise.
64445         * modules/imaxdiv (Makefile.am): Likewise.
64446         * modules/inet_ntop (Makefile.am): Likewise.
64447         * modules/inet_pton (Makefile.am): Likewise.
64448         * modules/inttostr (Makefile.am): Likewise.
64449         * modules/isapipe (Makefile.am): Likewise.
64450         * modules/lchown (Makefile.am): Likewise.
64451         * modules/long-options (Makefile.am): Likewise.
64452         * modules/lstat (Makefile.am): Likewise.
64453         * modules/malloc (Makefile.am): Likewise.
64454         * modules/mathl (Makefile.am): Likewise.
64455         * modules/mbchar (Makefile.am): Likewise.
64456         * modules/md2 (Makefile.am): Likewise.
64457         * modules/md4 (Makefile.am): Likewise.
64458         * modules/md5 (Makefile.am): Likewise.
64459         * modules/memcasecmp (Makefile.am): Likewise.
64460         * modules/memchr (Makefile.am): Likewise.
64461         * modules/memcmp (Makefile.am): Likewise.
64462         * modules/memcoll (Makefile.am): Likewise.
64463         * modules/memcpy (Makefile.am): Likewise.
64464         * modules/memmem (Makefile.am): Likewise.
64465         * modules/memmove (Makefile.am): Likewise.
64466         * modules/mempcpy (Makefile.am): Likewise.
64467         * modules/memrchr (Makefile.am): Likewise.
64468         * modules/memset (Makefile.am): Likewise.
64469         * modules/memxor (Makefile.am): Likewise.
64470         * modules/mkancesdirs (Makefile.am): Likewise.
64471         * modules/mkdir (Makefile.am): Likewise.
64472         * modules/mkdir-p (Makefile.am): Likewise.
64473         * modules/mkdtemp (Makefile.am): Likewise.
64474         * modules/mkstemp (Makefile.am): Likewise.
64475         * modules/mktime (Makefile.am): Likewise.
64476         * modules/modechange (Makefile.am): Likewise.
64477         * modules/mountlist (Makefile.am): Likewise.
64478         * modules/nanosleep (Makefile.am): Likewise.
64479         * modules/openat (Makefile.am): Likewise.
64480         * modules/pagealign_alloc (Makefile.am): Likewise.
64481         * modules/physmem (Makefile.am): Likewise.
64482         * modules/poll (Makefile.am): Likewise.
64483         * modules/posixtm (Makefile.am): Likewise.
64484         * modules/posixver (Makefile.am): Likewise.
64485         * modules/putenv (Makefile.am): Likewise.
64486         * modules/quote (Makefile.am): Likewise.
64487         * modules/quotearg (Makefile.am): Likewise.
64488         * modules/raise (Makefile.am): Likewise.
64489         * modules/read-file (Makefile.am): Likewise.
64490         * modules/readline (Makefile.am): Likewise.
64491         * modules/readlink (Makefile.am): Likewise.
64492         * modules/readtokens (Makefile.am): Likewise.
64493         * modules/readutmp (Makefile.am): Likewise.
64494         * modules/realloc (Makefile.am): Likewise.
64495         * modules/regex (Makefile.am): Likewise.
64496         * modules/rename (Makefile.am): Likewise.
64497         * modules/rename-dest-slash (Makefile.am): Likewise.
64498         * modules/rijndael (Makefile.am): Likewise.
64499         * modules/rmdir (Makefile.am): Likewise.
64500         * modules/rpmatch (Makefile.am): Likewise.
64501         * modules/safe-read (Makefile.am): Likewise.
64502         * modules/safe-write (Makefile.am): Likewise.
64503         * modules/same (Makefile.am): Likewise.
64504         * modules/save-cwd (Makefile.am): Likewise.
64505         * modules/savedir (Makefile.am): Likewise.
64506         * modules/setenv (Makefile.am): Likewise.
64507         * modules/settime (Makefile.am): Likewise.
64508         * modules/sha1 (Makefile.am): Likewise.
64509         * modules/sig2str (Makefile.am): Likewise.
64510         * modules/snprintf (Makefile.am): Likewise.
64511         * modules/stdlib-safer (Makefile.am): Likewise.
64512         * modules/stpcpy (Makefile.am): Likewise.
64513         * modules/stpncpy (Makefile.am): Likewise.
64514         * modules/strcase (Makefile.am): Likewise.
64515         * modules/strcasestr (Makefile.am): Likewise.
64516         * modules/strchrnul (Makefile.am): Likewise.
64517         * modules/strcspn (Makefile.am): Likewise.
64518         * modules/strdup (Makefile.am): Likewise.
64519         * modules/strerror (Makefile.am): Likewise.
64520         * modules/strftime (Makefile.am): Likewise.
64521         * modules/strndup (Makefile.am): Likewise.
64522         * modules/strnlen (Makefile.am): Likewise.
64523         * modules/strpbrk (Makefile.am): Likewise.
64524         * modules/strsep (Makefile.am): Likewise.
64525         * modules/strstr (Makefile.am): Likewise.
64526         * modules/strtod (Makefile.am): Likewise.
64527         * modules/strtoimax (Makefile.am): Likewise.
64528         * modules/strtok_r (Makefile.am): Likewise.
64529         * modules/strtol (Makefile.am): Likewise.
64530         * modules/strtoll (Makefile.am): Likewise.
64531         * modules/strtoul (Makefile.am): Likewise.
64532         * modules/strtoull (Makefile.am): Likewise.
64533         * modules/strtoumax (Makefile.am): Likewise.
64534         * modules/strverscmp (Makefile.am): Likewise.
64535         * modules/time_r (Makefile.am): Likewise.
64536         * modules/timegm (Makefile.am): Likewise.
64537         * modules/tmpfile-safer (Makefile.am): Likewise.
64538         * modules/unistd-safer (Makefile.am): Likewise.
64539         * modules/unlinkdir (Makefile.am): Likewise.
64540         * modules/userspec (Makefile.am): Likewise.
64541         * modules/utime (Makefile.am): Likewise.
64542         * modules/utimecmp (Makefile.am): Likewise.
64543         * modules/utimens (Makefile.am): Likewise.
64544         * modules/vasnprintf (Makefile.am): Likewise.
64545         * modules/vasprintf (Makefile.am): Likewise.
64546         * modules/vsnprintf (Makefile.am): Likewise.
64547         * modules/xalloc (Makefile.am): Likewise.
64548         * modules/xgetcwd (Makefile.am): Likewise.
64549         * modules/xnanosleep (Makefile.am): Likewise.
64550         * modules/xreadlink (Makefile.am): Likewise.
64551         * modules/xstrtod (Makefile.am): Likewise.
64552         * modules/xstrtol (Makefile.am): Likewise.
64553         * modules/xstrtold (Makefile.am): Likewise.
64554         * modules/yesno (Makefile.am): Likewise.
64555
64556 2006-10-12  Jim Meyering  <jim@meyering.net>
64557
64558         * m4/getloadavg.m4: Revert the change below.
64559
64560         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64561         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64562         fail with a symlink, which is what coreutils' ./bootstrap now
64563         creates by default.
64564
64565 2006-10-12  Bruno Haible  <bruno@clisp.org>
64566
64567         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64568         mingw.
64569         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64570         MSVC and mingw explicitly.
64571
64572 2006-10-11  Simon Josefsson  <jas@extundo.com>
64573             Bruno Haible  <bruno@clisp.org>
64574
64575         Add support for multiple gnulib-tool invocations in the scope of a
64576         single configure.ac file.
64577         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64578         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64579         with the same contents as the _LIBADD variable.
64580         (func_emit_initmacro_start, func_emit_initmacro_end,
64581         func_emit_initmacro_done): New functions.
64582         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64583         gl_LIBOBJS and gl_LTLIBOBJS.
64584
64585 2006-10-11  Bruno Haible  <bruno@clisp.org>
64586
64587         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64588         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64589         autoreconf. Instead, invoke autopoint explicitly but move back the
64590         *.m4 files from gnulib.
64591
64592 2006-10-11  Bruno Haible  <bruno@clisp.org>
64593
64594         * gnulib-tool (func_usage): Make module names after --create-testdir
64595         optional.
64596         (func_create_testdir): If no module was specified, use nearly all
64597         modules.
64598
64599 2006-10-12  Jim Meyering  <jim@meyering.net>
64600
64601         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64602         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64603         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64604         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64605         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64606         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64607         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64608         (fts_set_stat_required): New function.
64609         (fts_open): Defer the calls to fts_stat, if possible or requested.
64610         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64611         into fts_stat itself.
64612         (fts_read): Perform any required (deferred) fts_stat call.
64613         (fts_build): Likewise, for the directory we're about to open and read.
64614         In the readdir loop, carefully decide whether each entry will require
64615         an eventual call to fts_stat, using dirent.d_type info if available.
64616         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64617         a command line argument into this function.  Update all callers.
64618         Map a return value of FTS_DOT to FTS_D for a command line argument.
64619         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64620         Thanks to Miklos Szeredi for his tenacity and for the initial
64621         bug report about "find" failing on a FUSE-based file system.
64622
64623         * lib/fts.c (fts_open): Use consistent indentation.
64624
64625 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64626
64627         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64628         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64629         reported by Jim Meyering.  All uses of cache variables renamed
64630         to match Autoconf's.
64631         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64632         the other one.
64633
64634         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64635         Fix misspelling in diagnostic.
64636
64637 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64638
64639         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64640         defined.  Problem reported by Matthew Woehlke.
64641
64642         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64643         Add support for Tandem NonStop R series.
64644         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64645         Use new macro.
64646
64647         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64648         (has_trailing_slash): Omit size arg; all callers changed.
64649         Omit 'inline', since it doesn't help performance and we'd
64650         need to configure it.
64651         Don't count //, ///, etc. as having a trailing slash.
64652         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64653         (rpl_rename_dest_slash): On failure, use rename's errno rather
64654         than (in some cases) an incorrect or junk errno.
64655         Simplify code by removing need to compute length; this does
64656         cause it to make two passes instead of one over the file name,
64657         but it's worth it.
64658
64659         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64660         change, since Autoconf's version may no longer be appropriate now
64661         that we are using CVS Autoconf's version.  Add support for Tandem.
64662
64663 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64664             Bruno Haible  <bruno@clisp.org>
64665
64666         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64667         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64668         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64669         gl_AC_TYPE_LONG_LONG.
64670
64671         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64672         instead of HAVE_LONG_LONG.
64673         * lib/printf-args.c (printf_fetchargs): Likewise.
64674         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64675         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64676         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64677         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64678         gl_AC_TYPE_LONG_LONG.
64679
64680 2006-10-11  Bruno Haible  <bruno@clisp.org>
64681
64682         * m4/longlong.m4: Add comments.
64683         * m4/ulonglong.m4: Likewise.
64684
64685 2006-10-10  Bruno Haible  <bruno@clisp.org>
64686
64687         Make it possible to #define stpcpy, strdup to aliases.
64688         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64689         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64690
64691 2006-10-10  Bruno Haible  <bruno@clisp.org>
64692
64693         Make it possible to #define gcd to an alias.
64694         * lib/gcd.c: Include config.h.
64695
64696 2006-10-10  Bruno Haible  <bruno@clisp.org>
64697
64698         Make it possible to #define c_isascii to an alias.
64699         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64700         defined. Undefine the macros before defining them, to avoid gcc
64701         warnings.
64702         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64703         define NO_C_CTYPE_MACROS early.
64704
64705 2006-10-10  Bruno Haible  <bruno@clisp.org>
64706
64707         Make it possible to #define set_program_name to an alias.
64708         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64709         ENABLE_RELOCATABLE early.
64710
64711 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64712
64713         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64714         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64715         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64716         More generally, don't assume that 64-bit signed int is available
64717         if unsigned int is, and vice versa.
64718         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64719         unsigned symbols, not on their signed counterparts.
64720         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64721         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64722         (UINT64_C, UINTMAX_C):
64723         Likewise.
64724         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64725         unsigned counterparts.
64726         (Have_long_long, Unsigned): New macros.
64727         (Int): Renamed from INT.
64728         (strtoimax): Use the new macros.
64729         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64730         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64731         * modules/inttypes (inttypes.h): Substitute
64732         HAVE_UNSIGNED_LONG_LONG_INT.
64733         * modules/stdint (stdint.h): Likewise.
64734         (Files): Add m4/ulonglong.m4.
64735
64736 2006-10-10  Bruno Haible  <bruno@clisp.org>
64737
64738         Fix a gcc -Wshadow warning.
64739         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64740         to 'bucket'.
64741         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64742         gl_linked_indexof_from_to): Likewise.
64743         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64744         Likewise.
64745         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64746         Likewise.
64747         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64748         Reported by Eric Blake.
64749
64750 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64753         for NetBSD.  Problem reported by Bruno Haible.
64754
64755 2006-10-09  Jim Meyering  <jim@meyering.net>
64756
64757         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64758         Patch from Bruno Haible.
64759
64760 2006-10-09  Jim Meyering  <jim@meyering.net>
64761
64762         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64763         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64764         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64765
64766 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64767
64768         Don't include <config.h> twice; this doesn't work in some cases,
64769         e.g., when config.h has "#define intmax_t long long int" and
64770         we include <config.h>, <inttypes.h>, <config.h> in that order.
64771         Problem reported by Matthew Woehlke in:
64772         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64773         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64774         * lib/fts-cycle.c: Don't include config.h.
64775         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64776         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64777         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64778         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64779         inttypes.h.
64780         * lib/xstrtoumax.c: Likewise.
64781         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64782         __strtol and the like, so that this module is more like its siblings.
64783         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64784         Remove; no longer needed now that we assume gnulib inttypes.h.
64785
64786 2006-10-08  Bruno Haible  <bruno@clisp.org>
64787
64788         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64789         option.
64790
64791 2006-10-07  Jim Meyering  <jim@meyering.net>
64792
64793         * modules/inttypes (inttypes.h): Revert what seems to have been
64794         an inadvertent part of today's change: use "|", not "/" in the
64795         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64796
64797 2006-10-07  Bruno Haible  <bruno@clisp.org>
64798
64799         * modules/sublist: New file.
64800
64801 2006-10-07  Bruno Haible  <bruno@clisp.org>
64802
64803         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64804         * modules/argz (argz.h): Likewise.
64805         * modules/arpa_inet (arpa/inet.h): Likewise.
64806         * modules/byteswap (byteswap.h): Likewise.
64807         * modules/configmake (configmake.h): Likewise.
64808         * modules/fcntl (fcntl.h): Likewise.
64809         * modules/fnmatch (fnmatch.h): Likewise.
64810         * modules/getopt (getopt.h): Likewise.
64811         * modules/glob (glob.h): Likewise.
64812         * modules/inttypes (inttypes.h): Likewise.
64813         * modules/netinet_in (netinet/in.h): Likewise.
64814         * modules/poll (poll.h): Likewise.
64815         * modules/stdbool (stdbool.h): Likewise.
64816         * modules/stdint (stdint.h): Likewise.
64817         * modules/sys_select (sys/select.h): Likewise.
64818         * modules/sys_socket (sys/socket.h): Likewise.
64819         * modules/sys_stat (sys/stat.h): Likewise.
64820         * modules/sysexits (sysexits.h): Likewise.
64821         * modules/unistd (unistd.h): Likewise.
64822         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64823         Add a "DO NOT EDIT" comment to the generated file.
64824         (func_import): Likewise for gnulib-comp.m4.
64825
64826 2006-10-07  Bruno Haible  <bruno@clisp.org>
64827
64828         * lib/gl_sublist.h: New file.
64829         * lib/gl_sublist.c: New file.
64830
64831 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64832
64833         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64834         name (relative to the original working directory) and the file
64835         name component (relative to the temporary working directory).  All
64836         callers changed.
64837         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64838         * lib/mkdir-p.c (make_dir_parents): Likewise.
64839         * lib/mkdir-p.h (make_dir_parents): Likewise.
64840
64841 2006-10-06  Eric Blake  <ebb9@byu.net>
64842
64843         Define several macros for use by the clean-temp module.
64844         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64845         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64846         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64847
64848         * lib/clean-temp.h (close_stream_temp): New declaration.
64849         * lib/clean-temp.c (includes): Pull in headers according to what
64850         other modules are in use.
64851         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64852
64853 2006-10-06  Bruno Haible  <bruno@clisp.org>
64854
64855         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64856         instead of fopen, fwriteerror.
64857
64858 2006-10-06  Bruno Haible  <bruno@clisp.org>
64859
64860         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64861         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64862         int.
64863         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64864         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64865         Return an error indicator.
64866         Suggested by Eric Blake.
64867
64868 2006-10-06  Bruno Haible  <bruno@clisp.org>
64869
64870         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64871         Reported by Eric Blake.
64872
64873 2006-10-06  Bruno Haible  <bruno@clisp.org>
64874
64875         * modules/closeout (Description): Mention stderr too.
64876
64877 2006-10-06  Bruno Haible  <bruno@clisp.org>
64878         and Paul Eggert  <eggert@cs.ucla.edu>
64879
64880         * lib/closeout.c (close_stdout): Also close stderr.
64881         * lib/closeout.h: Update comment.
64882
64883 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64884
64885         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64886         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64887         * lib/dirchownmod.c: Include lchown.h.
64888         * lib/lchown.c: Don't include files that lchown.h now includes.
64889         Don't declare chown, since lchown.h now does that.
64890         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64891         (lchown): Define to rpl_chown if lchown is declared but
64892         does not exist.  Declare using a prototype if lchown is not
64893         declared.  Add a copyright notice.
64894         * lib/mkstemp.h: Include <unistd.h>.
64895         * lib/openat.c: Include lchown.h.
64896
64897         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64898         we now test for that separately.
64899         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64900         rather than O_NOFOLLOW, when testing whether it's possible to
64901         avoid a race condition reliably.
64902         * lib/savewd.c (savewd_chdir): Likewise.
64903
64904         Remove macros that are no longer needed now that stdint.h is
64905         reliable.
64906         * lib/fsusage.c (UINTMAX_MAX): Remove.
64907         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64908         * lib/utimecmp.c (SIZE_MAX): Remove.
64909
64910         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64911
64912         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64913         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64914         O_NOATIME works.
64915
64916 2006-10-05  Bruno Haible  <bruno@clisp.org>
64917
64918         * lib/gl_list.h (gl_sortedlist_search_from_to,
64919         gl_sortedlist_indexof_from_to): New declarations.
64920         (gl_list_implementation): New fields sortedlist_search_from_to,
64921         sortedlist_indexof_from_to.
64922         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64923         inline functions.
64924         * lib/gl_list.c (gl_sortedlist_search_from_to,
64925         gl_sortedlist_indexof_from_to): New functions.
64926         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64927         function.
64928         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64929         (gl_array_sortedlist_search_from_to): New function.
64930         (gl_array_list_implementation): Update.
64931         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64932         function.
64933         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64934         (gl_carray_sortedlist_search_from_to): New function.
64935         (gl_carray_list_implementation): Update.
64936         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64937         gl_linked_sortedlist_indexof_from_to): New functions.
64938         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64939         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64940         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64941         gl_tree_sortedlist_indexof_from_to): New functions.
64942         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64943         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64944         Update.
64945         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64946         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64947         Update.
64948
64949 2006-10-05  Bruno Haible  <bruno@clisp.org>
64950
64951         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64952         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64953         (struct gl_list_implementation): Add fields search_from_to,
64954         indexof_from_to. Remove fields search, indexof.
64955         (gl_list_search): Use the search_from_to method.
64956         (gl_list_search_from, gl_list_search_from_to): New functions.
64957         (gl_list_indexof): Use the indexof_from_to method.
64958         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64959         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64960         (gl_list_search_from, gl_list_search_from_to): New functions.
64961         (gl_list_indexof): Use the indexof_from_to method.
64962         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64963         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64964         gl_array_indexof. Add start_index, end_index arguments.
64965         (gl_array_search_from_to): Renamed from gl_array_search. Add
64966         start_index, end_index arguments.
64967         (gl_array_remove, gl_array_list_implementation): Update.
64968         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64969         gl_carray_indexof. Add start_index, end_index arguments.
64970         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64971         start_index, end_index arguments.
64972         (gl_carray_remove, gl_carray_list_implementation): Update.
64973         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64974         gl_linked_search. Add start_index, end_index arguments.
64975         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64976         start_index, end_index arguments.
64977         (gl_linked_remove): Update.
64978         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64979         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64980         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64981         field to 'size_t'.
64982         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64983         gl_tree_search. Add start_index, end_index arguments.
64984         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64985         start_index, end_index arguments.
64986         (gl_tree_remove): Update.
64987         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64988         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64989         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64990         function.
64991         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64992         gl_tree_search. Add start_index, end_index arguments.
64993         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64994         start_index, end_index arguments.
64995         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64996         Update.
64997         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64998
64999 2006-10-05  Bruno Haible  <bruno@clisp.org>
65000
65001         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
65002
65003         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
65004         fwriteerror_temp): New declarations.
65005         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
65006         (descriptors): New variable.
65007         (cleanup): First, close the descriptors.
65008         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
65009         fclose_temp, fwriteerror_temp): New functions.
65010
65011 2006-10-04  Jim Meyering  <jim@meyering.net>
65012
65013         * lib/fts.c (fts_open): Tiny comment change.
65014
65015 2006-10-04  Bruno Haible  <bruno@clisp.org>
65016
65017         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
65018         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
65019         gl_LOCK_BODY.
65020         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
65021         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
65022         gl_LOCK_EARLY_BODY.
65023         (gl_LOCK): Require gl_LOCK_BODY.
65024
65025 2006-10-04  Bruno Haible  <bruno@clisp.org>
65026
65027         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
65028         (gl_oset_search_atleast): New declaration.
65029         (struct gl_oset_implementation): Add field 'search_atleast'.
65030         (gl_oset_search_atleast): New inline function.
65031         * lib/gl_oset.c (gl_oset_search_atleast): New function.
65032         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
65033         (gl_array_oset_implementation): Update.
65034         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
65035         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
65036         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
65037
65038 2006-10-04  Bruno Haible  <bruno@clisp.org>
65039
65040         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
65041
65042 2006-10-03  Bruno Haible  <bruno@clisp.org>
65043
65044         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
65045         from gl_avltreehash_list_implementation.
65046
65047 2006-10-03  Bruno Haible  <bruno@clisp.org>
65048
65049         * lib/gl_oset.c (gl_oset_add): Fix return type.
65050
65051 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
65052
65053         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
65054
65055 2006-10-02  Eric Blake  <ebb9@byu.net>
65056
65057         * modules/strnlen (Depends-on): Add extensions.
65058
65059 2006-10-02  Eric Blake  <ebb9@byu.net>
65060
65061         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
65062         definition in 2.60+.
65063
65064 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
65065
65066         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
65067         checks.
65068
65069 2006-10-02  Bruno Haible  <bruno@clisp.org>
65070
65071         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
65072         to the AUTOMAKE_OPTIONS.
65073         Reported by Jim Meyering.
65074
65075 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65076
65077         Work around bug in Solaris 10 /proc file system:
65078         /proc/self/fd/NNN/.. isn't the parent directory of
65079         the directory whose file descriptor is NNN.  This needs to
65080         be worked around at run time, not compile time, since a
65081         program might be built on Solaris 8, where things work, and
65082         run on Solaris 10.
65083         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
65084         to use the following interface instead:
65085         (OPENAT_BUFFER_SIZE): New macro.
65086         (openat_proc_name): New function.
65087         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
65088         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
65089         Likewise.
65090         * lib/openat-proc.c: New file.
65091         * modules/openat (Files): Add lib/openat-proc.c.
65092         (Depends-on): Add same-inode, stdbool.
65093         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
65094
65095 2006-09-29  Bruno Haible  <bruno@clisp.org>
65096
65097         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
65098         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
65099         argument. Set stdout_closed before testing for ferror, not after.
65100         (fwriteerror, fwriteerror_no_ebadf): New functions.
65101
65102 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65103
65104         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
65105
65106 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
65107
65108         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
65109         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
65110
65111 2006-09-28  Jim Meyering  <jim@meyering.net>
65112
65113         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
65114         Include <unistd.h>.
65115
65116 2006-09-28  Bruno Haible  <bruno@clisp.org>
65117
65118         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
65119         * modules/linkedhash-list (Depends-on): Likewise.
65120         * modules/rbtreehash-list (Depends-on): Likewise.
65121
65122 2006-09-28  Bruno Haible  <bruno@clisp.org>
65123
65124         * lib/strndup.h: Simplify the redefinition of strndup.
65125         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
65126         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
65127
65128 2006-09-28  Bruno Haible  <bruno@clisp.org>
65129
65130         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
65131         * lib/gl_linkedhash_list.c: Likewise.
65132         * lib/gl_rbtreehash_list.c: Likewise.
65133
65134 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
65137         getaddrinfo.
65138
65139         * lib/__fpending.h: Don't include <stdio_ext.h> unless
65140         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
65141         it causes <stdio_ext.h> to cause a compile-time error.
65142         Problem reported by Nelson H. F. Beebe.
65143         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
65144         of HAVE_DECL___PENDING.
65145
65146         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
65147         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
65148         declaration.
65149
65150 2006-09-27  Jim Meyering  <jim@meyering.net>
65151
65152         This file could end up with a definition for a function
65153         named __strndup, rather than rpl_strndup on a system with
65154         incomplete weak_alias support.
65155         * lib/strndup.c (strndup): Rename from __strndup.
65156         Remove #defines that used to map __strndup to strndup.
65157         Don't use K&R prototypes.
65158         Remove LIBC-related code, since this file is not sync'd with glibc.
65159         * lib/strndup.h: Revamp, accordingly.
65160         * m4/strndup.m4: Modernize.
65161
65162 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65163
65164         * modules/savewd (Depends-on): Add 'raise'.
65165         * lib/savewd.c: Include <signal.h>, for 'raise'.
65166
65167 2006-09-26  Jim Meyering  <jim@meyering.net>
65168
65169         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
65170         when we detect Darwin 8.7.0's acl_get_file bug.
65171         Rearrange to perform the new (below) run-test while $LIBS
65172         contains any acl-related library.  Set USE_ACL at the end.
65173         (gl_ACL_GET_FILE): New function.
65174
65175 2006-09-26  Eric Blake  <ebb9@byu.net>
65176
65177         * lib/verror.c: Include <config.h> unconditionally.
65178
65179 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
65180
65181         * modules/clock-time (Maintainer): Add self.
65182         * modules/getlogin_r (Depends-on): Add extensions.
65183
65184 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65185
65186         * modules/clock-time: New module.
65187         * modules/nanosleep (Depends-on): Add clock-time.
65188         * modules/gethrxtime (Depends-on): Likewise.
65189         * modules/gettime (Depends-on): Likewise.
65190         * modules/settime (Depends-on): Likewise.
65191
65192         * modules/fts-lgpl: Depend on openat.
65193         * modules/mkancesdirs: Depend on savewd.
65194         * modules/mkdir-p: Likewise.
65195
65196 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65197
65198         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
65199
65200         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
65201         `gl_have_arbitrary_file_name_length_limit' to
65202         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
65203         actually works between configure runs.
65204
65205 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65206             Bruno Haible  <bruno@clisp.org>
65207
65208         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
65209
65210 2006-09-25  Jim Meyering  <jim@meyering.net>
65211
65212         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
65213         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
65214
65215 2006-09-25  Eric Blake  <ebb9@byu.net>
65216
65217         * gnulib-tool (func_import, func_create_testdir): Fix typos in
65218         exec's in 2006-09-18 patch when shuffling fds.
65219
65220 2006-09-25  Bruno Haible  <bruno@clisp.org>
65221
65222         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
65223         Reported by Jim Meyering.
65224
65225 2006-09-24  Jim Meyering  <jim@meyering.net>
65226
65227         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
65228         compare a pointer against a literal "0".  That caused failures with
65229         at least HP-UX's hpcc.
65230
65231 2006-09-22  Simon Josefsson  <jas@extundo.com>
65232
65233         * modules/gc-sha1:
65234         * modules/gc-md4:
65235         * modules/gc-hmac-sha1:
65236         * modules/gc-hmac-md5:
65237         * modules/gc-des:
65238         * modules/gc-arcfour: Distribute more files.
65239
65240 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65241
65242         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
65243         (gl_linked_iterator_from_to): Initialize struct completely.
65244         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
65245         (gl_tree_iterator_from_to): Likewise
65246         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
65247         * lib/gl_array_list.c [lint] (gl_array_iterator)
65248         (gl_array_iterator_from_to): Likewise.
65249         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
65250         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
65251         (gl_carray_iterator_from_to): Likewise.
65252
65253         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
65254         * lib/md4.c (md4_process_block): Remove unused variable.
65255         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
65256         parentheses for clarity.
65257
65258 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65259
65260         * modules/bison-i18n (Depends-on): Add gettext.
65261
65262 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65263
65264         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
65265         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
65266         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
65267         also add missing comma that caused broken test.
65268         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
65269         stdlib.h, for `abort'.
65270         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
65271         variables.
65272         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
65273         include unistd.h if present, for `rmdir'.
65274         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
65275         variables.
65276         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
65277         in the process include standard headers for prototypes.
65278         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
65279         gets declared on GNU/Linux.
65280         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
65281         unistd.h, for `rmdir'.
65282         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
65283
65284         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
65285         always true.
65286         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
65287
65288         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
65289
65290 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65291
65292         * gnulib-tool (func_version): Create output all at once.  This
65293         may help avoid triggering unnecessary SIGPIPEs, and at any
65294         rate it doesn't hurt.
65295
65296 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65297             Bruno Haible  <bruno@clisp.org>
65298
65299         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
65300         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65301         * m4/signed.m4 (bh_C_SIGNED): Likewise.
65302
65303         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
65304         (gl_FUNC_VASPRINTF): Invoke it.
65305
65306 2006-09-22  Bruno Haible  <bruno@clisp.org>
65307
65308         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
65309         getloadavg.c as first argument.
65310
65311 2006-09-22  Bruno Haible  <bruno@clisp.org>
65312
65313         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
65314         at the beginning of the gl_INIT macro.
65315         * modules/getloadavg (configure.ac): Pass $gl_source_base to
65316         gl_GETLOADAVG.
65317
65318 2006-09-22  Bruno Haible  <bruno@clisp.org>
65319
65320         * gnulib-tool (func_create_megatestdir): Don't include the config-h
65321         module.
65322         Suggested by Ralf Wildenhues.
65323
65324 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65325
65326         Import this patch from libc:
65327
65328         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
65329
65330         * lib/regex_internal.c (re_string_reconstruct): Handle
65331         offset < pstr->valid_raw_len && pstr->offsets_needed case.
65332         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
65333         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
65334         re_string_context_at.
65335
65336         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
65337         now requires it.
65338         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
65339         gl_REGEX now does it for us.
65340         (gl_REGEX): Add test taken from
65341         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
65342
65343         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
65344         Check that large offsets work.  Modernize Autoconf usages.
65345         Prefer "yes" to mean a good thing rather than a bad.
65346         Don't put "#define mkstemp" in config.h, as this might interfere
65347         with standard system headers that "#define mkstemp mkstemp64".
65348
65349         * modules/mkstemp (Depends-on): Add extensions, so that
65350         mkstemp is visible on some platforms.
65351         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
65352         (Include): Change to "mkstemp.h" from <stdlib.h>.
65353         (Files): Add mkstemp.h.
65354
65355         * lib/mkstemp.h: New file, since some standard headers
65356         #define mkstemp.
65357         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
65358         Include "mkstemp.h".
65359         Make the _LIBC code resemble glibc original more,
65360         e.g., use K&R style.
65361         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
65362         (mkstemp): Remove, since mkstemp.h does this for us.
65363         * lib/stdlib--.h: Include mkstemp.h.
65364
65365         Import this patch from libc:
65366
65367         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65368
65369         * lib/tempname.c (__gen_tempname): Change attempts_min
65370         into a macro.  Use preprocessor to decide how to initialize
65371         attempts [Coverity CID 67].
65372
65373 2006-09-20  Bruno Haible  <bruno@clisp.org>
65374
65375         * lib/mkdtemp.c: Import from libc.
65376         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65377                 * sysdeps/posix/tempname.c (__gen_tempname): Change
65378                 attempts_min into a macro.  Use preprocessor to decide how to
65379                 initialize attempts [Coverity CID 67].
65380         2001-11-27  Paul Eggert  <eggert@twinsun.com>
65381                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
65382                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
65383
65384 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65385
65386         * gnulib-tool (func_exit): New function, to allow to pass the
65387         exit status portably through the trap.  Use everywhere.
65388         (--help, --version): Signal a write error.
65389         (trap): catch SIGPIPE, for write errors.
65390         Exit at the end of the trap, with the correct exit status.
65391
65392 2006-09-19  Karl Berry  <karl@gnu.org>
65393
65394         * doc/gnulib.texi: note about the license texinfo files.
65395
65396 2006-09-19  Eric Blake  <ebb9@byu.net>
65397
65398         * gnulib-tool: Avoid space-tab.
65399
65400 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65401
65402         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
65403         that prevented coreutils 6.1 from building.  Problem reported
65404         by Petter Reinholdtsen.
65405
65406 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65407
65408         * gnulib-tool (avoidlist): Fix typo that broke options like
65409         --avoid=lock that are used by coreutils bootstrap.
65410
65411 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
65412
65413         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
65414         more systematically.
65415
65416 2006-09-18  Jim Meyering  <jim@meyering.net>
65417
65418         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
65419
65420 2006-09-18  Bruno Haible  <bruno@clisp.org>
65421
65422         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
65423
65424 2006-09-18  Bruno Haible  <bruno@clisp.org>
65425
65426         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
65427         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
65428         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
65429         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
65430         * m4/gettext.m4: Require autoconf >= 2.52.
65431         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
65432         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
65433         of gl_cv_header_inttypes_h.
65434
65435 2006-09-18  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/javaversion.c: Include configmake.h.
65438
65439 2006-09-18  Bruno Haible  <bruno@clisp.org>
65440
65441         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
65442         avoid that the while loops be executed in a subshell.
65443
65444 2006-09-18  Bruno Haible  <bruno@clisp.org>
65445
65446         * MODULES.html.sh (func_module): Break long lines.
65447         Suggested by Bruce Korb <bkorb@gnu.org>.
65448
65449 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65450
65451         Speed up by a factor of 1.12.
65452         * gnulib-tool (nl): New variable.
65453         (func_import): Rewrite include directive extraction to only read each
65454         directive once.
65455
65456 2006-09-17  Bruno Haible  <bruno@clisp.org>
65457
65458         * modules/javaversion (Makefile.am): Remove DEFS setting.
65459         (Depends-on): Add configmake, for PKGDATADIR definition.
65460
65461 2006-09-17  Bruno Haible  <bruno@clisp.org>
65462
65463         * gnulib-tool (func_create_testdir): Rewrite all files at once.
65464
65465 2006-09-17  Bruno Haible  <bruno@clisp.org>
65466
65467         * gnulib-tool (func_append): New function, stolen from libtool.m4.
65468         (func_modules_transitive_closure, func_modules_add_dummy,
65469         func_modules_to_filelist, func_import, func_create_testdir,
65470         func_create_megatestdir, ...): Use it wherever possible.
65471         Suggested by Ralf Wildenhues.
65472
65473 2006-09-16  Karl Berry  <karl@gnu.org>
65474
65475         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
65476         to avoid sectioning errors.
65477         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
65478         [ifinfo]: blank line after @center-ed titles.
65479         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
65480         Spell FSF address consistently with others.
65481         (These changes approved by rms.)
65482
65483 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65484
65485         Speed up by a factor of 1.61.
65486         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
65487         already checked module names again.
65488
65489 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65490
65491         Speed up by a factor of 1.13.
65492         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
65493         for new_files, and the input to func_add_or_update.
65494
65495 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65496
65497         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
65498         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
65499
65500 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65501
65502         * modules/mkancesdirs (Depends-on): Add fcntl.
65503         * modules/savewd: New file.
65504         * MODULES.html.sh (File system functions): Add savewd.
65505
65506         * modules/configmake (Makefile.am): Add support for the
65507         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
65508
65509 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * m4/savewd.m4: New file.
65512
65513 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65514
65515         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65516         (dirchownmod): New arg FD.  All callers changed.
65517         Use FD rather than opening the directory ourself, as opening is
65518         now the caller's responsibility.
65519         * lib/dirchownmod.h: Likewise.
65520         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65521         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65522         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65523         (test_dir): Remove.
65524         (mkancesdirs): Return length of prefix of FILE that has already
65525         been made, or -2 if there is a child doing the work.  Redo
65526         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65527         ".", and treat ".." specially since it might stray back into
65528         already-created areas.  Use a subprocess if necessary.  New arg
65529         WD; all users changed.  MAKE_DIR function should now return 1
65530         if it creates a directory that is not readable.  Return -2 if
65531         a child process is spun off.
65532         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65533         Adjust signature to match code.
65534         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65535         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65536         all users changed.
65537         * lib/savewd.c, lib/savewd.h: New files.
65538
65539 2006-09-15  Jim Meyering  <jim@meyering.net>
65540
65541         * modules/rename-dest-slash: New module.
65542         * MODULES.html.sh (posix_compat): Add it here.
65543
65544         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65545
65546 2006-09-15  Jim Meyering  <jim@meyering.net>
65547
65548         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65549         file.
65550
65551         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65552
65553 2006-09-15  Jim Meyering  <jim@meyering.net>
65554
65555         * lib/rename-dest-slash.c (has_trailing_slash): Use
65556         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65557         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65558         test before testing whether SRC is a directory.
65559         Suggestions from Bruno Haible.
65560
65561         Avoid a warning about an unused variable.
65562         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65563         into the #ifdef block where it's used.
65564
65565         * lib/rename-dest-slash.c: New file.
65566
65567 2006-09-14  Bruno Haible  <bruno@clisp.org>
65568
65569         * lib/allocsa.c: Include <config.h> unconditionally.
65570         * lib/asnprintf.c: Likewise.
65571         * lib/asprintf.c: Likewise.
65572         * lib/c-strcasecmp.c: Likewise.
65573         * lib/c-strcasestr.c: Likewise.
65574         * lib/c-strncasecmp.c: Likewise.
65575         * lib/c-strstr.c: Likewise.
65576         * lib/classpath.c: Likewise.
65577         * lib/clean-temp.c: Likewise.
65578         * lib/concatpath.c: Likewise.
65579         * lib/copy-file.c: Likewise.
65580         * lib/csharpcomp.c: Likewise.
65581         * lib/csharpexec.c: Likewise.
65582         * lib/execute.c: Likewise.
65583         * lib/fatal-signal.c: Likewise.
65584         * lib/findprog.c: Likewise.
65585         * lib/fwriteerror.c: Likewise.
65586         * lib/gl_array_list.c: Likewise.
65587         * lib/gl_array_oset.c: Likewise.
65588         * lib/gl_avltree_list.c: Likewise.
65589         * lib/gl_avltree_oset.c: Likewise.
65590         * lib/gl_avltreehash_list.c: Likewise.
65591         * lib/gl_carray_list.c: Likewise.
65592         * lib/gl_linked_list.c: Likewise.
65593         * lib/gl_linkedhash_list.c: Likewise.
65594         * lib/gl_list.c: Likewise.
65595         * lib/gl_oset.c: Likewise.
65596         * lib/gl_rbtree_list.c: Likewise.
65597         * lib/gl_rbtree_oset.c: Likewise.
65598         * lib/gl_rbtreehash_list.c: Likewise.
65599         * lib/imaxabs.c: Likewise.
65600         * lib/imaxdiv.c: Likewise.
65601         * lib/javacomp.c: Likewise.
65602         * lib/javaexec.c: Likewise.
65603         * lib/javaversion.c: Likewise.
65604         * lib/linebreak.c: Likewise.
65605         * lib/localcharset.c: Likewise.
65606         * lib/lock.c: Likewise.
65607         * lib/mbchar.c: Likewise.
65608         * lib/mbswidth.c: Likewise.
65609         * lib/mkdtemp.c: Likewise.
65610         * lib/pipe.c: Likewise.
65611         * lib/printf-args.c: Likewise.
65612         * lib/printf-parse.c: Likewise.
65613         * lib/progname.c: Likewise.
65614         * lib/progreloc.c: Likewise.
65615         * lib/readlink.c: Likewise.
65616         * lib/sh-quote.c: Likewise.
65617         * lib/stpcpy.c: Likewise.
65618         * lib/stpncpy.c: Likewise.
65619         * lib/strcasecmp.c: Likewise.
65620         * lib/strcasestr.c: Likewise.
65621         * lib/strcspn.c: Likewise.
65622         * lib/striconv.c: Likewise.
65623         * lib/strncasecmp.c: Likewise.
65624         * lib/strnlen1.c: Likewise.
65625         * lib/strstr.c: Likewise.
65626         * lib/strtok_r.c: Likewise.
65627         * lib/tls.c: Likewise.
65628         * lib/tmpdir.c: Likewise.
65629         * lib/unicodeio.c: Likewise.
65630         * lib/unsetenv.c: Likewise.
65631         * lib/vasnprintf.c: Likewise.
65632         * lib/vasprintf.c: Likewise.
65633         * lib/wait-process.c: Likewise.
65634         * lib/xallocsa.c: Likewise.
65635         * lib/xsetenv.c: Likewise.
65636         * lib/xstriconv.c: Likewise.
65637
65638 2006-09-13  Simon Josefsson  <jas@extundo.com>
65639
65640         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65641         that internally, suggested by Ralf Wildenhues
65642         <Ralf.Wildenhues@gmx.de>.
65643
65644 2006-09-13  Simon Josefsson  <jas@extundo.com>
65645
65646         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65647         @LIBOBJS@.
65648         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65649
65650 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65653         longer worry about uses that don't define HAVE_CONFIG_H.
65654         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65655         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65656         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65657         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65658         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65659         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65660         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65661         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65662         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65663         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65664         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65665         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65666         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65667         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65668         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65669         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65670         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65671         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65672         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65673         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65674         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65675         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65676         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65677         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65678         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65679         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65680         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65681         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65682         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65683         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65684         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65685         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65686         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65687         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65688         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65689         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65690         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65691         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65692         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65693         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65694         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65695         Likewise.
65696
65697 2006-09-13  Eric Blake  <ebb9@byu.net>
65698
65699         * lib/getopt.c: Fix typo in last commit.
65700
65701 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65702
65703         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65704         dgettext.
65705
65706 2006-09-12  Jim Meyering  <jim@meyering.net>
65707
65708         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65709         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65710         Reported by Nelson H. F. Beebe.
65711
65712 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65713
65714         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65715         program_invocation_name and program_invocation_short_name are
65716         initialized.
65717         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65718         and program_invocation_short_name to argp.h, so they are visible
65719         to user programs.
65720         * lib/argp.h: Likewise
65721
65722 2006-09-10  Bruno Haible  <bruno@clisp.org>
65723
65724         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65725         m4/inttypes_h.m4, m4/uintmax_t.m4.
65726
65727 2006-09-10  Bruno Haible  <bruno@clisp.org>
65728
65729         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65730         gl_AC_TYPE_UINTMAX_T.
65731
65732 2006-09-10  Bruno Haible  <bruno@clisp.org>
65733
65734         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65735
65736 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65737
65738         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65739         convention.  Text proposed by Bruno Haible.
65740         (struct argp_option): Document the use of N_() wrappers.
65741
65742         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65743         '\v', and translate the two parts separately, instead of feeding
65744         the whole string to gettext.  This allows to exclude
65745         '\v' from the strings visible to the translator by writing doc
65746         strings as N_("..") "\v" N_("..").
65747
65748 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65749
65750         * config/srclist.txt: Undo latest change; the bug was fixed.
65751
65752 2006-09-09  Bruno Haible  <bruno@clisp.org>
65753
65754         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65755         assignments if building a library without libtool.
65756         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65757         in func_emit_lib_Makefile_am.
65758         (func_import): When building a static library libfoo.a, arrange to
65759         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65760         (func_create_testdir): Likewise.
65761         * modules/gc (configure.ac, Makefile.am): If building statically,
65762         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65763         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65764         * modules/striconv (configure.ac, Makefile.am): Likewise.
65765         Based on a suggestion by Ralf Wildenhues.
65766
65767 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65770         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65771         Also:
65772
65773         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65774         Add year_2050_test to catch glibc bug 2821
65775         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65776
65777         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65778         Prefer #ifdef to #if.
65779
65780         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65781         Return from 'main' instead of calling 'exit'.
65782
65783 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65784
65785         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65786         returned the maximum time_t value rather than (time_t) -1.
65787         Problem originally reported by William Bardwell
65788         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65789
65790         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65791         Moved to here ...
65792         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65793         ... from here.
65794
65795 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65796
65797         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65798         2821 is fixed.
65799
65800 2006-09-08  Jim Meyering  <jim@meyering.net>
65801
65802         Don't make generated files read-only.  That would bother too many
65803         people.  However, do retain the ability to work when targets are
65804         read-only: remove the destination and temporary files before writing
65805         them (when generated via sed or echo), or by using the -f option for
65806         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65807         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65808         * modules/byteswap, modules/configmake, modules/fcntl:
65809         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65810         * modules/localcharset, modules/netinet_in, modules/poll:
65811         * modules/stdbool, modules/stdint, modules/sys_select:
65812         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65813
65814 2006-09-08  Jim Meyering  <jim@meyering.net>
65815
65816         Avoid new build failure on FreeBSD 6.0.
65817         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65818         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65819         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65820
65821 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65822
65823         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65824
65825 2006-09-07  Jim Meyering  <jim@meyering.net>
65826
65827         Fix global typo in last change: use chmod u-w, not chmod u-x.
65828         Spotted by Paul Eggert and Bruce Korb.
65829         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65830         * modules/byteswap, modules/configmake, modules/fcntl:
65831         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65832         * modules/localcharset, modules/netinet_in, modules/poll:
65833         * modules/stdbool, modules/stdint, modules/sys_select:
65834         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65835
65836 2006-09-06  Jim Meyering  <jim@meyering.net>
65837
65838         Make generated files be read-only.
65839         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65840         Ensure that each generated file is now read-only.
65841         * modules/argz: Likewise.
65842         * modules/arpa_inet: Likewise.
65843         * modules/byteswap: Likewise.
65844         * modules/configmake: Likewise.
65845         * modules/fcntl: Likewise.
65846         * modules/fnmatch: Likewise.
65847         * modules/getopt: Likewise.
65848         * modules/glob: Likewise.
65849         * modules/inttypes: Likewise.
65850         * modules/netinet_in: Likewise.
65851         * modules/poll: Likewise.
65852         * modules/stdbool: Likewise.
65853         * modules/stdint: Likewise.
65854         * modules/sys_select: Likewise.
65855         * modules/sys_socket: Likewise.
65856         * modules/sys_stat: Likewise.
65857         * modules/sysexits: Likewise.
65858         * modules/localcharset: Same as above, but continue using temporary
65859         file named "t-$@" (why different?) rather than the "$@-t" used
65860         everywhere else.
65861
65862         * modules/sysexits (Makefile.am): Replace literal occurrences
65863         of "sysexit.h" more readable, and more consistent, "$@".
65864
65865 2006-09-06  Bruno Haible  <bruno@clisp.org>
65866
65867         * modules/striconv: New file.
65868         * modules/xstriconv: New file.
65869         * MODULES.html.sh (Internationalization functions): Add striconv,
65870         xstriconv.
65871
65872 2006-09-06  Bruno Haible  <bruno@clisp.org>
65873
65874         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65875         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65876         not using libtool correctly.
65877
65878 2006-09-06  Bruno Haible  <bruno@clisp.org>
65879
65880         * lib/striconv.h: New file.
65881         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65882         iconvstring.c.
65883         * lib/xstriconv.h: New file.
65884         * lib/xstriconv.c: New file.
65885
65886 2006-09-06  Bruno Haible  <bruno@clisp.org>
65887
65888         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65889         lib_..._LDFLAGS.
65890
65891 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65892
65893         * lib/argz_.h: Sync from Libtool.
65894
65895         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65896                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65897
65898         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65899
65900 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65901
65902         * modules/trim: New file.
65903
65904 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65905
65906         * lib/trim.h: New file.
65907         * lib/trim.c: New file.
65908
65909 2006-09-05  Bruno Haible  <bruno@clisp.org>
65910
65911         * MODULES.html.sh (String handling): Add trim.
65912
65913 2006-09-04  Karl Berry  <karl@gnu.org>
65914
65915         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65916         until next release.
65917
65918 2006-09-03  Bruno Haible  <bruno@clisp.org>
65919
65920         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65921         correctly.
65922
65923 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65924
65925         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65926         not gl_GETLOADAVG.  Omit unneeded semicolons.
65927         Problems reported by Ralf Wildenhues in
65928         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65929         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65930         at the end, which is the usual gnulib style.
65931
65932         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65933         of doing all the work ourselves.
65934         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65935         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65936
65937 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65938
65939         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65940         Problem reported by Ralf Wildenhues in
65941         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65942
65943         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65944         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65945
65946 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65949         yesterday's patch by changing test -n to test -z.
65950
65951 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65952
65953         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65954         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65955         the former is now obsolescent.
65956
65957         * modules/chdir-long (Depends-on): Add fcntl.
65958
65959 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65960
65961         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65962         obsolescent, and programs should use gnulib instead.
65963         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65964         but with prefixes changed.
65965
65966 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65967
65968         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65969         or stdbool.h, because they might not exist while configuring.
65970
65971         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65972         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65973         does that for us.
65974         (O_DIRECTORY): Remove.
65975
65976 2006-08-31  Eric Blake  <ebb9@byu.net>
65977
65978         * gnulib-tool: Don't let emacs change spaces to TAB.
65979
65980 2006-08-31  Bruno Haible  <bruno@clisp.org>
65981
65982         * gnulib-tool: When calling func_import more than once, do it in a
65983         subshell.
65984         Reported by Eric Blake <ebb9@byu.net>.
65985
65986 2006-08-31  Bruno Haible  <bruno@clisp.org>
65987
65988         * gnulib-tool (nl): Remove variable.
65989         (sed_transform_lib_file): Use more robust test for config-h module.
65990         (func_import): Fix typo in 2006-08-25 patch.
65991
65992 2006-08-31  Bruno Haible  <bruno@clisp.org>
65993
65994         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65995         specified, augment Makefile.am variables instead of assigning them.
65996
65997 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65998
65999         Work around a bug in both the Linux and SunOS 64-bit kernels:
66000         nanosleep mishandles sleeps for longer than 2**31 seconds.
66001         Problem reported by Frank v Waveren in
66002         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
66004         Check for nanosleep bug.
66005         (LIB_NANOSLEEP): Append clock_gettime library if needed.
66006
66007 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         Work around a bug in both the Linux and SunOS 64-bit kernels:
66010         nanosleep mishandles sleeps for longer than 2**31 seconds.
66011         Problem reported by Frank v Waveren in
66012         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66013         * lib/nanosleep.c (BILLION): New constant.
66014         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
66015         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
66016         implementation.
66017
66018 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         * modules/nanosleep (Depends-on): Add gettime.
66021
66022 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66023         and Simon Josefsson  <jas@extundo.com>
66024         and Oskar Liljeblad  <oskar@osk.mine.nu>
66025
66026         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
66027         * gnulib-tool (func_import): New license type 'unmodifiable license
66028         text'.
66029         * modules/fdl: Use it.  Longer description.
66030         * module/gpl, module/lgpl: New files.
66031
66032 2006-08-30  Jim Meyering  <jim@meyering.net>
66033
66034         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
66035         shadowing the parameter.
66036
66037 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66038
66039         Sync from Libtool:
66040
66041         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66042
66043         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
66044         sharing with gnulib.  Report by Eric Blake.
66045
66046 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         * modules/isapipe: New file.
66049         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
66050
66051 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66052
66053         * modules/configmake (Makefile.am): Add a comment, and omit
66054         the CONFIGMAKE_ prefix from generated macro names.  Suggested
66055         by Bruno Haible.
66056
66057 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66058
66059         * m4/isapipe.m4: New file.
66060
66061 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * lib/isapipe.c, lib/isapipe.h: New files.
66064
66065 2006-08-29  Jim Meyering  <jim@meyering.net>
66066
66067         * modules/configmake (Makefile.am): Make configmake.h depend on
66068         Makefile.  Otherwise, a stale configmake.h could hang around.
66069
66070 2006-08-29  Eric Blake  <ebb9@byu.net>
66071
66072         * lib/error.c (error_at_line, print_errno_message): Match libc, after
66073         resolution of upstream bug 3044.
66074
66075 2006-08-29  Bruno Haible  <bruno@clisp.org>
66076
66077         * modules/localcharset (Depends-on): Add configmake.
66078         (Makefile.am): Remove setting of LIBDIR through DEFS.
66079
66080 2006-08-29  Bruno Haible  <bruno@clisp.org>
66081
66082         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
66083         defined.
66084
66085 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66086
66087         * modules/fcntl: New file.
66088         * modules/chdir-safer (Depends-on): Add fcntl.
66089         * modules/fts: Likewise.
66090         * modules/mkdir-p: Likewise.
66091
66092         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
66093         This undoes the most recent change, since we're now addressing the
66094         problem in a different way.
66095
66096         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
66097         into output, since the output might be called Makefile.am even
66098         if $makefile_name is something different.
66099         (func_import): Use $makefile_am rather than
66100         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
66101         empty.
66102
66103         * modules/inttypes (Files): Add m4/inttypes-h.m4.
66104
66105 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66106
66107         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
66108         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
66109         recent change to stdint.m4, since we're now addressing the problem in a
66110         different way.
66111
66112 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66113
66114         * m4/fcntl_h.m4: New file.
66115
66116 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66117
66118         * lib/fcntl_.h: New file.
66119         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
66120         the fcntl module.
66121         * lib/dirchownmod.c: Likewise.
66122         * lib/fts.c: Likewise.
66123
66124         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
66125         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
66126         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
66127         just before including <inttypes.h>, to avoid circular inclusion.
66128
66129 2006-08-28  Jim Meyering  <jim@meyering.net>
66130
66131         * doc/visibility.texi: Actually read and correct the grammar of the
66132         sentence affected by yesterday's change.
66133
66134 2006-08-28  Eric Blake  <ebb9@byu.net>
66135
66136         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
66137         needs wrapper.
66138
66139 2006-08-28  Eric Blake  <ebb9@byu.net>
66140
66141         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
66142
66143 2006-08-28  Eric Blake  <ebb9@byu.net>
66144
66145         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
66146
66147 2006-08-28  Bruno Haible  <bruno@clisp.org>
66148
66149         * modules/c-strstr: New file, from GNU gettext.
66150         * MODULES.html.sh (String handling): Add c-strstr.
66151
66152 2006-08-28  Bruno Haible  <bruno@clisp.org>
66153
66154         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
66155         macros.
66156         Reported by Eric Blake.
66157
66158 2006-08-28  Bruno Haible  <bruno@clisp.org>
66159
66160         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
66161         (VASNPRINTF): Return a string of length > INT_MAX without failing.
66162         * lib/vasprintf.c: Include errno.h, limits.h.
66163         (EOVERFLOW): New fallback definition.
66164         (vasprintf): Test here whether the string length is > INT_MAX.
66165         * lib/vsnprintf.c: Include errno.h, limits.h.
66166         (EOVERFLOW): New fallback definition.
66167         (vsnprintf): Fix bug when generated string was too long for the buffer.
66168         Test here whether the string length is > INT_MAX.
66169
66170 2006-08-28  Bruno Haible  <bruno@clisp.org>
66171
66172         * lib/inttypes_.h (SCNX*): Remove definitions.
66173         Reported by Eric Blake.
66174
66175 2006-08-28  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/c-strstr.h: New file, from GNU gettext.
66178         * lib/c-strstr.c: New file, from GNU gettext.
66179
66180 2006-08-28  Bruno Haible  <bruno@clisp.org>
66181
66182         * gnulib-tool: Reorder some statements.
66183
66184 2006-08-28  Bruno Haible  <bruno@clisp.org>
66185
66186         * gnulib-tool: New option --makefile-name.
66187         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
66188         $makefile_name.
66189         (func_import): Write $makefile_name to the cache file, and read it from
66190         there unless explicitly specified. Use $makefile_name as file name
66191         instead of Makefile.am. Adjust the recommendations accordingly.
66192
66193 2006-08-28  Bruno Haible  <bruno@clisp.org>
66194
66195         * gnulib-tool (func_verify_module): Check against misapplying patch.
66196
66197 2006-08-28  Bruno Haible  <bruno@clisp.org>
66198
66199         * gnulib-tool (func_relativize, func_relconcat): New functions.
66200         Give an error if --local-dir is given with --update.
66201         Remove trailing slashes from $local_gnulib_dir.
66202         (func_import): Store the relativized $local_gnulib_dir in
66203         gnulib-cache.m4, and read it from there if not specified explicitly.
66204
66205 2006-08-28  Bruno Haible  <bruno@clisp.org>
66206
66207         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
66208         is the current directory. Respect also $local_gnulib_dir.
66209
66210 2006-08-28  Bruno Haible  <bruno@clisp.org>
66211             Simon Josefsson  <jas@extundo.com>
66212
66213         BeOS portability.
66214         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
66215
66216 2006-08-27  Jim Meyering  <jim@meyering.net>
66217
66218         * doc/visibility.texi: Remove duplicate word: "pointer".
66219
66220 2006-08-26  Bruno Haible  <bruno@clisp.org>
66221
66222         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
66223         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
66224         (Makefile.am): Create inttypes.h from inttypes_.h.
66225         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
66226
66227         * modules/imaxabs: New file.
66228
66229         * modules/imaxdiv: New file.
66230
66231 2006-08-26  Bruno Haible  <bruno@clisp.org>
66232
66233         * m4/inttypes.m4: New file.
66234         * m4/_inttypes_h.m4: Remove file.
66235         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
66236         PRI_MACROS_BROKEN.
66237         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
66238
66239         * m4/imaxabs.m4: New file.
66240
66241         * m4/imaxdiv.m4: New file.
66242
66243 2006-08-26  Bruno Haible  <bruno@clisp.org>
66244
66245         * lib/inttypes_.h: New file.
66246         * lib/inttypes.h: Remove file.
66247         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
66248
66249         * lib/imaxabs.c: New file.
66250
66251         * lib/imaxdiv.c: New file.
66252
66253 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66254
66255         New config-h module, so that "make" output needn't be cluttered
66256         by -DHAVE_CONFIG_H.
66257         * MODULES.html.sh (Support for building libraries and executables):
66258         Add config-h.
66259         * modules/config-h: New file.
66260         * gnulib-tool (nl, sed_transform_lib_file): New vars.
66261         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
66262         the config-h module is used.
66263
66264         New configmake module, so that "make" output needn't be cluttered
66265         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
66266         * MODULES.html.sh (Support for building libraries and executables):
66267         Add configmake.
66268         * modules/configmake: New file.
66269
66270 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66271
66272         * m4/config-h.m4: New file.
66273
66274 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * config/srclist.txt: Add elisp-comp.
66277
66278 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66279
66280         * MODULES.html.sh (Support for building libraries and executables):
66281         Add elisp-comp.
66282         * build-aux/elisp-comp: New file.
66283         * modules/elisp-comp: New file.
66284
66285 2006-08-24  Bruno Haible  <bruno@clisp.org>
66286
66287         * gnulib-tool (func_create_testdir): Use non-default values of
66288         sourcebase and m4base.
66289
66290 2006-08-24  Bruno Haible  <bruno@clisp.org>
66291
66292         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
66293         HTML structure.
66294
66295 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66296
66297         * modules/openat (Depends-on): Add lchown.
66298
66299 2006-08-23  Bruno Haible  <bruno@clisp.org>
66300
66301         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
66302         of gl_LOCK_EARLY instead of gl_LOCK.
66303
66304 2006-08-23  Bruno Haible  <bruno@clisp.org>
66305
66306         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
66307         on OSF/1 to no.
66308         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
66309
66310 2006-08-23  Bruno Haible  <bruno@clisp.org>
66311
66312         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
66313         as unusable.
66314
66315         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
66316         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
66317         (gl_LOCK): New macro.
66318
66319 2006-08-22  Simon Josefsson  <jas@extundo.com>
66320
66321         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
66322         to md5 module.
66323
66324 2006-08-22  Simon Josefsson  <jas@extundo.com>
66325
66326         * MODULES.html.sh: Add "Support for maintaining and release
66327         projects".
66328
66329         * build-aux/gnupload: New file, from coreutils.
66330
66331 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66332
66333         Avoid the need for AC_LIBSOURCES in m4 macros.
66334         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
66335         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
66336         * modules/check-version (EXTRA_DIST): Add check-version.h.
66337         * modules/crc (EXTRA_DIST): Add crc.h.
66338         * modules/des (EXTRA_DIST): Add des.h.
66339         * modules/gc (EXTRA_DIST): Add gc.h.
66340         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
66341         * modules/getline (EXTRA_DIST): Add getline.h.
66342         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
66343         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
66344         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
66345         * modules/md2 (EXTRA_DIST): Add md2.h.
66346         * modules/md4 (EXTRA_DIST): Add md4.h.
66347         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
66348         * modules/read-file (EXTRA_DIST): Add read-file.h.
66349         * modules/readline (EXTRA_DIST): Add readline.h.
66350         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
66351         rijndael-api-fst.h.
66352
66353 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         * m4/rijndael.m4 (gl_ARCFOUR):
66356         * m4/arctwo.m4 (gl_ARCTWO):
66357         * m4/check-version.m4 (gl_CHECK_VERSION):
66358         * m4/crc.m4 (gl_CRC):
66359         * m4/des.m4 (gl_DES):
66360         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
66361         * m4/gc.m4 (gl_GC):
66362         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
66363         * m4/getline.m4 (gl_FUNC_GETLINE):
66364         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
66365         * m4/hmac-md5.m4 (gl_HMAC_MD5):
66366         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
66367         * m4/md2.m4 (gl_MD2):
66368         * m4/md4.m4 (gl_MD4):
66369         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
66370         * m4/read-file.m4 (gl_FUNC_READ_FILE):
66371         * m4/readline.m4 (gl_FUNC_READLINE):
66372         * m4/rijndael.m4 (gl_RIJNDAEL):
66373         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66374         to get the necessary .h files and whatnot.
66375
66376 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66377
66378         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
66379         gnulib rather than the other way around.
66380         * config/srclistvars.sh (COREUTILS): Remove.
66381
66382 2006-08-22  Jim Meyering  <jim@meyering.net>
66383
66384         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
66385
66386         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
66387
66388 2006-08-22  Eric Blake  <ebb9@byu.net>
66389
66390         * modules/regexprops-generic: New file.
66391         * MODULES.html.sh (Support for building documentation): List it.
66392
66393 2006-08-22  Eric Blake  <ebb9@byu.net>
66394
66395         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
66396         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66397         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
66398         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66399
66400 2006-08-22  Bruno Haible  <bruno@clisp.org>
66401
66402         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
66403         and lib_LTLIBRARIES like the other lib_* variables.
66404
66405 2006-08-22  Bruno Haible  <bruno@clisp.org>
66406
66407         * build-aux/x-to-1.in: New file, from GNU gettext.
66408
66409 2006-08-22  Bruno Haible  <bruno@clisp.org>
66410
66411         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
66412         <utmpx.h> exists.
66413
66414 2006-08-22  Bruno Haible  <bruno@clisp.org>
66415
66416         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
66417         <utmpx.h> exists.
66418
66419 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66420
66421         BeOS portability.
66422         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
66423         exist.
66424         Problem reported by Bruno Haible.
66425
66426 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66427
66428         Avoid the need for AC_LIBSOURCES in m4 macros.
66429         * modules/acl (EXTRA_DIST): Add acl.h.
66430         * modules/argmatch (Files): Add m4/argmatch.m4.
66431         (configure.ac): Add gl_ARGMATCH.
66432         (EXTRA_DIST): Renamed from lib_SOURCES, for
66433         consistency with the other modules.  Remove argmatch.c.
66434         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
66435         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
66436         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
66437         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
66438         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
66439         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
66440         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
66441         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
66442         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
66443         * modules/closeout (EXTRA_DIST): Add closeout.h.
66444         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
66445         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
66446         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
66447         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
66448         dirname.h; remove basename.c and stripslash.c.
66449         * modules/exclude (EXTRA_DIST): Add exclude.h.
66450         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
66451         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
66452         * modules/file-type (EXTRA_DIST): Add file-type.h.
66453         * modules/filemode (EXTRA_DIST): Add filemode.h.
66454         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
66455         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66456         * modules/fpending (EXTRA_DIST): Add __fpending.h.
66457         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
66458         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
66459         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
66460         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
66461         * modules/getdate (EXTRA_DIST): Add getdate.c.
66462         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
66463         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
66464         * modules/getpass (EXTRA_DIST): Add getpass.h.
66465         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
66466         * modules/group-member (EXTRA_DIST): Add group-member.h.
66467         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
66468         * modules/hash (EXTRA_DIST): Add hash.h.
66469         * modules/human (EXTRA_DIST): Add human.h.
66470         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
66471         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
66472         * modules/lchown (EXTRA_DIST): Add lchown.h.
66473         * modules/long-options (EXTRA_DIST): Add long-options.h.
66474         * modules/lstat (EXTRA_DIST): Add lstat.h.
66475         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
66476         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
66477         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
66478         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
66479         * modules/memxor (EXTRA_DIST): Add memxor.h.
66480         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
66481         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
66482         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
66483         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
66484         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
66485         * modules/physmem (EXTRA_DIST): Add physmem.h.
66486         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
66487         * modules/posixver (EXTRA_DIST): Add posixver.h.
66488         * modules/quote (EXTRA_DIST): Add quote.h.
66489         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
66490         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
66491         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
66492         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
66493         regex_internal.h regexec.c.
66494         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
66495         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
66496         * modules/same (EXTRA_DIST): Add same.h.
66497         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
66498         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
66499         * modules/savedir (EXTRA_DIST): Add savedir.h.
66500         * modules/sha1 (EXTRA_DIST): Add sha1.h.
66501         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
66502         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
66503         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
66504         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
66505         * modules/strdup (EXTRA_DIST): Add strdup.h.
66506         * modules/strftime (EXTRA_DIST): Add strftime.h.
66507         * modules/strndup (EXTRA_DIST): Add strndup.h.
66508         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
66509         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
66510         * modules/time_r (EXTRA_DIST): Add time_r.h.
66511         * modules/timespec (EXTRA_DIST): Add timespec.h.
66512         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66513         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66514         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66515         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66516         * modules/userspec (EXTRA_DIST): Add userspec.h.
66517         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66518         * modules/utimens (EXTRA_DIST): Add utimens.h.
66519         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66520         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66521         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66522         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66523         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66524         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66525         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66526         * modules/yesno (EXTRA_DIST): Add yesno.h.
66527
66528 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66529
66530         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66531
66532         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66533         * m4/dev-ino.m4, same-inode.m4: Remove.
66534
66535         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66536         * m4/acl.m4 (AC_FUNC_ACL):
66537         * m4/backupfile.m4 (gl_BACKUPFILE):
66538         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66539         * m4/canon-host.m4 (gl_CANON_HOST):
66540         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66541         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66542         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66543         * m4/cloexec.m4 (gl_CLOEXEC):
66544         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66545         * m4/closeout.m4 (gl_CLOSEOUT):
66546         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66547         * m4/dirname.m4 (gl_DIRNAME):
66548         * m4/exclude.m4 (gl_EXCLUDE):
66549         * m4/exitfail.m4 (gl_EXITFAIL):
66550         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66551         * m4/file-type.m4 (gl_FILE_TYPE):
66552         * m4/filemode.m4 (gl_FILEMODE):
66553         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66554         * m4/fpending.m4 (gl_FUNC_FPENDING):
66555         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66556         * m4/fts.m4 (gl_FUNC_FTS):
66557         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66558         * m4/getdate.m4 (gl_GETDATE):
66559         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66560         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66561         * m4/getpass.m4 (gl_FUNC_GETPASS):
66562         * m4/gettime.m4 (gl_GETTIME):
66563         * m4/getugroups.m4 (gl_GETUGROUPS):
66564         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66565         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66566         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66567         * m4/hash.m4 (gl_HASH):
66568         * m4/idcache.m4 (gl_IDCACHE):
66569         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66570         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66571         * m4/long-options.m4 (gl_LONG_OPTIONS):
66572         * m4/lstat.m4 (gl_FUNC_LSTAT):
66573         * m4/md5.m4 (gl_MD5):
66574         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66575         * m4/memcoll.m4 (gl_MEMCOLL):
66576         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66577         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66578         * m4/memxor.m4 (gl_MEMXOR):
66579         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66580         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66581         * m4/modechange.m4 (gl_MODECHANGE):
66582         * m4/mountlist.m4 (gl_MOUNTLIST):
66583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66584         * m4/openat.m4 (gl_FUNC_OPENAT):
66585         * m4/pathmax.m4 (gl_PATHMAX):
66586         * m4/physmem.m4 (gl_PHYSMEM):
66587         * m4/posixtm.m4 (gl_POSIXTM):
66588         * m4/posixver.m4 (gl_POSIXVER):
66589         * m4/quote.m4 (gl_QUOTE):
66590         * m4/quotearg.m4 (gl_QUOTEARG):
66591         * m4/readtokens.m4 (gl_READTOKENS):
66592         * m4/readutmp.m4 (gl_READUTMP):
66593         * m4/regex.m4 (gl_REGEX):
66594         * m4/safe-read.m4 (gl_SAFE_READ):
66595         * m4/safe-write.m4 (gl_SAFE_WRITE):
66596         * m4/same.m4 (gl_SAME):
66597         * m4/save-cwd.m4 (gl_SAVE_CWD):
66598         * m4/savedir.m4 (gl_SAVEDIR):
66599         * m4/settime.m4 (gl_SETTIME):
66600         * m4/sha1.m4 (gl_SHA1):
66601         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66602         * m4/stat-macros.m4 (gl_STAT_MACROS):
66603         * m4/stat-time.m4 (gl_STAT_TIME):
66604         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66605         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66606         * m4/strdup.m4 (gl_FUNC_STRDUP):
66607         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66608         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66609         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66610         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66611         * m4/time_r.m4 (gl_TIME_R):
66612         * m4/timespec.m4 (gl_TIMESPEC):
66613         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66614         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66615         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66616         * m4/userspec.m4 (gl_USERSPEC):
66617         * m4/utimecmp.m4 (gl_UTIMECMP):
66618         * m4/utimens.m4 (gl_UTIMENS):
66619         * m4/xalloc.m4 (gl_XALLOC):
66620         * m4/xgetcwd.m4 (gl_XGETCWD):
66621         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66622         * m4/xreadlink.m4 (gl_XREADLINK):
66623         * m4/xstrtod.m4 (gl_XSTRTOD):
66624         * m4/yesno.m4 (gl_YESNO):
66625         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66626         to get the necessary .h files and whatnot.
66627
66628 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66629             Bruno Haible  <bruno@clisp.org>
66630
66631         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66632         /bin/sh understanding of '!' conditional negation.
66633
66634 2006-08-21  Jim Meyering  <jim@meyering.net>
66635
66636         * modules/openat (Depends-on): Really alphabetize.
66637
66638         * modules/acl (Depends-on): Add error and quote.
66639
66640         * check-module (find_included_lib_files): Add at-func.c to the
66641         ok-to-include-more-than-once white list.
66642
66643         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66644
66645 2006-08-21  Bruno Haible  <bruno@clisp.org>
66646
66647         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66648         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66649         Reported by Martin Lambers <marlam@marlam.de>.
66650
66651 2006-08-21  Bruno Haible  <bruno@clisp.org>
66652
66653         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66654         specify an installation location, don't emit a noinst_LIBRARIES or
66655         noinst_LTLIBRARIES assignment.
66656
66657 2006-08-21  Bruno Haible  <bruno@clisp.org>
66658
66659         BeOS portability.
66660         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66661         BeOS has mbrtowc() but no <wctype.h>.
66662
66663 2006-08-21  Bruno Haible  <bruno@clisp.org>
66664
66665         BeOS portability.
66666         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66667         exist.
66668
66669 2006-08-21  Bruno Haible  <bruno@clisp.org>
66670
66671         BeOS portability.
66672         * lib/mbchar.h: Include <wctype.h> only if it exists.
66673
66674 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         Remove files that are no longer needed by their respective modules.
66677         * m4/obstack.m4: Remove.
66678         * m4/strerror_r.m4: Remove.
66679         * m4/uint32_t.m4: Remove.
66680         * m4/uintptr_t.m4: Remove.
66681         * m4/ullong_max.m4: Remove.
66682         * m4/xstrtoimax.m4: Remove.
66683         * m4/xstrtoumax.m4: Remove.
66684
66685         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66686         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66687         dependencies now capture this.
66688
66689         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66690         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66691         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66692         * m4/human.m4 (gl_HUMAN): Likewise.
66693         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66694         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66695
66696         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66697
66698         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66699         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66700         stdint.
66701         * m4/human.m4 (gl_HUMAN): Likewise.
66702         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66703         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66704         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66705         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66706         * m4/xstrtol (gl_XSTRTOL): Likewise.
66707
66708         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66709         AC_TYPE_LONG_LONG_INT.
66710         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66711         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66712         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66713         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66714
66715         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66716         on stdbool.
66717
66718         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66719         (gl_PREREQ_XSTRTOUL): Remove.
66720
66721         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66722
66723         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66724         mode.
66725
66726 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66727
66728         Add and change modules to make it easier for coreutils to use
66729         gnulib-tool.
66730         * modules/backupfile (Files): Remove m4/d-ino.m4.
66731         (Depends-on): Add d-ino.
66732         * modules/cycle-check (Depends-on): Add stdint.
66733         (lib_SOURCES): Add cycle-check.h.
66734         * modules/d-ino: New module.
66735         * modules/d-type: New module.
66736         * modules/error (Files): Remove m4/strerror_r.m4.
66737         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66738         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66739         m4/inttypes_h.m4, m4/uintmax_t.m4.
66740         (Depends-on): Add stdint.
66741         (lib_SOURCES): Add fsusage.h.
66742         * modules/getcwd (Files): Remove d-ino.m4.
66743         (Depends-on): Add d-ino.
66744         * modules/getndelim2 (Depends-on): Add stdint.
66745         * modules/glob (Files): Remove m4/d-type.m4.
66746         (Depends-on): Add d-type.
66747         * modules/host-os: New module.
66748         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66749         m4/inttypes_h.m4, m4/uintmax_t.m4.
66750         * Depends-on: Add stdint.
66751         (lib_SOURCES): Add human.h.
66752         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66753         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66754         m4/uintmax_t.m4, m4/ulonglong.m4.
66755         (Depends-on): Add stdint.
66756         (EXTRA_DIST): Add inttostr.h.
66757         * modules/lchmod: New module.
66758         * modules/link-follow: New module.
66759         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66760         (Depends-on): Add lchmod.
66761         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66762         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66763         (Depends-on): Add stdint.
66764         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66765         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66766         (Depends-on): Add stdint.
66767         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66768         * modules/perl: New module.
66769         * modules/regex (Depends-on): Add stdint.
66770         * modules/rmdir-errno: New module.
66771         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66772         m4/intmax_t.m4.
66773         (Depends-on): Add stdint.
66774         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66775         m4/uintmax_t.m4.
66776         (Depends-on): Add stdint.
66777         * modules/unlink-busy: New module.
66778         * modules/utimecmp (Depends-on): Add stdint.
66779         * modules/uptime: New module.
66780         * modules/winsz-ioctl: New module.
66781         * modules/winsz-termios: New module.
66782         * modules/xnanosleep (Depends-on): Add nanosleep.
66783         * modules/ullong_max: Remove.
66784         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66785         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66786         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66787         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66788         (Depends-on): Add inttypes.
66789         (lib_SOURCES): Add xstrtol.h.
66790         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66791         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66792         * MODULES.html.sh: Move 'assert' into the assert section.
66793         Move 'dummy' into the linking section.
66794         Remove ullong_max.
66795         Add section for compatibility checks for POSIX:2001 functions,
66796         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66797         winsz-ioctl, and winsz-termios into it.
66798         Add lchmod.
66799         Add top-level Misc section and put host-os, perl, and uptime
66800         into it.
66801
66802 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66803
66804         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66805         now assume the stdint module.  Do not include inttypes.h.
66806         * lib/fsusage.h: Likewise.
66807         * lib/getndelim2.c: Likewise.
66808         * lib/human.h: Likewise.
66809         * lib/inttostr.h: Likewise.
66810         * lib/obstack.c: Likewise.
66811         * lib/regex_internal.h: Likewise.
66812         * lib/tempname.c: Likewise.
66813         * lib/utimecmp.c: Likewise.
66814         * lib/xstrtol.h: Likewise.
66815
66816         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66817
66818         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66819         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66820         * lib/xtime.h: Likewise.
66821
66822 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66823
66824         * modules/openat (Files): Add lib/fchmodat.c.
66825         Fixes problem reported by Jay Youngman.
66826
66827 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66828
66829         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66830         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66831
66832 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66833             Bruno Haible  <bruno@clisp.org>
66834
66835         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66836         and is a script that invokes bison. Tighten the code. Add comments.
66837
66838 2006-08-18  Jim Meyering  <jim@meyering.net>
66839
66840         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66841         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66842         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66843         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66844
66845 2006-08-18  Bruno Haible  <bruno@clisp.org>
66846
66847         * modules/bison-i18n: New file.
66848         * MODULES.html.sh (Internationalization functions): Add it.
66849
66850 2006-08-18  Bruno Haible  <bruno@clisp.org>
66851
66852         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66853         sys/statvfs.h. When getmntinfo was found, check its declaration and
66854         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66855
66856 2006-08-18  Bruno Haible  <bruno@clisp.org>
66857
66858         * m4/bison-i18n.m4: New file, from bison.
66859
66860 2006-08-18  Bruno Haible  <bruno@clisp.org>
66861
66862         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66863         (ME_DUMMY): Treat "kernfs" as a dummy.
66864         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66865
66866 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         Update from coreutils.
66869
66870         2006-08-15  Jim Meyering  <jim@meyering.net>
66871
66872         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66873
66874         2006-01-17  Jim Meyering  <jim@meyering.net>
66875
66876         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66877
66878         2006-01-11  Jim Meyering  <jim@meyering.net>
66879
66880         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66881         Check for the lchmod function.
66882
66883 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         Update from coreutils.
66886
66887         * lib/__fpending.h: Add copyright notice.
66888         * lib/fprintftime.h: Likewise.
66889         * lib/savedir.c: Use (C) in copyright notice.
66890         * lib/savedir.h: Likewise.
66891
66892         2006-08-15  Jim Meyering  <jim@meyering.net>
66893
66894         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66895         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66896         in support of the EXPECTED_ERRNO macro.
66897         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66898         definitions.  Instead, define the appropriate symbols and include
66899         "at-func.c".
66900         * lib/mkdirat.c (mkdirat): Likewise.
66901         * lib/fchmodat.c (fchmodat): Likewise.
66902         (ENOSYS): Remove definition.
66903         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66904         it.  Don't include "unistd--.h" -- it wasn't ever used.
66905
66906         2006-01-17  Jim Meyering  <jim@meyering.net>
66907
66908         Rewrite fts.c not to change the current working directory,
66909         by using openat, fstatat, fdopendir, etc..
66910
66911         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66912         (HAVE_OPENAT_SUPPORT): Define.
66913         [_LIBC] (fchdir): Don't undef or define; no longer used.
66914         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66915         Now, this `function' always succeeds, and consumes its file descriptor
66916         parameter -- so callers must not close such FDs.  Update callers.
66917         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66918         (diropen): Add parameter, SP.  Adjust all callers.
66919         Implement using diropen_fd, rather than open.
66920         (fts_open): Initialize new member, fts_cwd_fd.
66921         Remove fts_rft-setting code.
66922         (fts_close): Close fts_cwd_fd, if necessary.
66923         (__opendir2): Define in terms of opendir or opendirat,
66924         depending on whether the FST_NOCHDIR flag is set.
66925         (fts_build): Since fts_safe_changedir consumes its FD, and since
66926         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66927         and close the dup'd file descriptor upon failure.
66928         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66929         (fts_safe_changedir): Tweak semantics to reflect that this function
66930         now calls cwd_advance_fd and hence consumes its FD argument.
66931         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66932         [struct FTS] (fts_rft): Remove now-unused member.
66933         [struct FTS] (fts_cycle.state): Improve comment.
66934
66935         * lib/openat.c (openat_needs_fchdir): New function.
66936         * lib/openat.h (openat_needs_fchdir): Declare it.
66937
66938 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66939
66940         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66941         Problem and fix reported by Pádraig Brady in
66942         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66943
66944 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66945
66946         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66947
66948 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66949
66950         * lib/memcoll.c (memcoll): Optimize for the common case where the
66951         arguments are bytewise equal.
66952
66953 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66954
66955         * doc/regexprops-generic.texi: Add a copyright notice.
66956
66957 2006-08-15  Bruno Haible  <bruno@clisp.org>
66958
66959         * modules/tmpdir (License): Change to LGPL.
66960
66961 2006-08-15  Bruno Haible  <bruno@clisp.org>
66962
66963         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66964         module.
66965
66966 2006-08-14  Simon Josefsson  <jas@extundo.com>
66967
66968         * config/srclist.txt: Add gnupload.
66969
66970 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66971
66972         Change copyright notice from LGPL 2 to GPL 2, since that's the
66973         standard form used in the gnulib repository.
66974         * tests/test-lock.c: Likewise.
66975         * tests/test-stdint.c: Likewise.
66976         * tests/test-tls.c: Likewise.
66977
66978         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66979         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66980         Add copyright notice.
66981
66982         * check-module: Add copyright notice.  Output a copyright
66983         notice if "--version" is specified.
66984         * modules/COPYING: New file.
66985         * tests/test-getaddrinfo.c: Add copyright notice.
66986         * tests/test-verify.c: Likewise.
66987
66988 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66989
66990         Change copyright notice from LGPL 2 to GPL 2, since that's the
66991         standard form used in the gnulib repository.
66992         * lib/lock.c: LGPL -> GPL.
66993         * lib/lock.h: Likewise.
66994         * lib/strnlen1.c: Likewise.
66995         * lib/strnlen1.h: Likewise.
66996         * lib/tls.c: Likewise.
66997         * lib/tls.h: Likewise.
66998         * lib/tmpdir.c: Likewise.
66999
67000         * lib/TODO: Remove; this belongs only in coreutils.
67001
67002 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67003
67004         Add copyright notices to long-enough files that lack them, since
67005         otherwise the files aren't clearly free.  Use the same notice that
67006         getdate.texi already uses.
67007         * doc/alloca-opt.texi: Add copyright notice.
67008         * doc/alloca.texi: Likewise.
67009         * doc/ctime.texi: Likewise.
67010         * doc/functions.texi: Likewise.
67011         * doc/gcd.texi: Likewise.
67012         * doc/gnulib-tool.texi: Likewise.
67013         * doc/inet_ntoa.texi: Likewise.
67014         * doc/visibility.texi: Likewise.
67015
67016         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
67017         * doc/quote.texi: Add copyright notice.
67018
67019         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
67020         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
67021         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
67022         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
67023         is now obsolete, and give a pointer to the Sun list.
67024         Add copyright notice.
67025
67026 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         * config/srclistvars.sh: Add copyright notice.
67029
67030 2006-08-14  Eric Blake  <ebb9@byu.net>
67031
67032         Import the following change from libc:
67033
67034         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
67035
67036         Upstream bug 2997.
67037         * lib/misc/error.c: Add space between program name and message if file
67038         name is missing.
67039
67040 2006-08-12  Karl Berry  <karl@gnu.org>
67041
67042         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
67043         remove, these originate in gnulib now.
67044
67045 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67046
67047         * doc/Makefile (standards.info standards.html standards.dvi):
67048         Also depend on make-stds.texi.
67049
67050 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67051
67052         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
67053         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
67054
67055         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
67056         in wchar_t.  Problem reported by Eric Blake.
67057
67058         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
67059         LEN is smaller than SIZE.  Suggested by Bruno Haible.
67060         Also, help the compiler to keep LEN in a register.
67061
67062 2006-08-11  Eric Blake  <ebb9@byu.net>
67063
67064         * users.txt: Sort.  Add tar.
67065
67066 2006-08-11  Bruno Haible  <bruno@clisp.org>
67067
67068         * users.txt: New file.
67069
67070 2006-08-11  Bruno Haible  <bruno@clisp.org>
67071
67072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
67073         before <wchar.h>. Needed for OSF/1 and BSD/OS.
67074
67075 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         * modules/snprintf (Depends-on): Remove minmax.
67078         (Maintainer): Add self and Bruno.
67079
67080 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67081
67082         * lib/.cppi-disable: Add snprintf.h, socket_.h.
67083         * lib/snprintf.c: Include <errno.h> and <limits.h>.
67084         (EOVERFLOW): Define if the system does not.
67085         Do not include "minmax.h"; it wasn't used.
67086         (snprintf): Don't assume size_t promotes to an unsigned type.
67087         Fix bug when generated string was too long for the buffer: the
67088         buffer's contents are supposed to be the initial prefix of the
67089         output.  Don't assume vasnprintf returns EOVERFLOW if the size
67090         exceeds INT_MAX; do the check ourselves.
67091
67092         Import the following changes from libc:
67093
67094         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
67095
67096         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
67097         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
67098         set wc to the byte which couldn't be converted.
67099         (re_string_reconstruct): Don't clear valid_raw_len before calling
67100         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
67101         tip_context using re_string_context_at.
67102
67103         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
67104
67105         * lib/posix/regex.h: g++ still cannot handled [restrict].
67106
67107         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
67108
67109         * lib/posix/regex.h: Remove special handling for VMS.
67110
67111 2006-08-10  Jim Meyering  <jim@meyering.net>
67112
67113         * modules/same-inode: New module.
67114         * modules/dev-ino: New module.
67115         * modules/cycle-check: Depend on these modules, rather than simply
67116         including their .h files.
67117         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
67118         required via m4/cycle-check.m4.
67119         * modules/same: Depend on new same-inode module, rather than
67120         including same-inode.h.
67121         * modules/chdir-safer: New file.
67122
67123         * modules/chown (Depends-on): Add stat-macros.
67124
67125 2006-08-10  Jim Meyering  <jim@meyering.net>
67126
67127         * m4/cycle-check.m4: New file.
67128         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
67129         * m4/dev-ino.m4, m4/same-inode.m4: New files.
67130
67131 2006-08-10  Eric Blake  <ebb9@byu.net>
67132
67133         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
67134         in from original proposal.
67135
67136 2006-08-10  Eric Blake  <ebb9@byu.net>
67137         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67138
67139         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
67140         namespace.
67141
67142 2006-08-10  Bruno Haible  <bruno@clisp.org>
67143
67144         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
67145         as well.
67146
67147 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67148
67149         Sync from coreutils.
67150
67151         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
67152
67153         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
67154         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
67155
67156 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67157
67158         * modules/restrict: Remove; no longer needed now that we assume
67159         Autoconf 2.59 or later.
67160         * MODULES.html.sh: Remove 'restrict'.
67161         * modules/argp (Depends-on): Remove 'restrict'.
67162         * modules/base64 (Depends-on): Likewise.
67163         * modules/gc (Depends-on): Likewise.
67164         * modules/getaddrinfo (Depends-on): Likewise.
67165         * modules/glob (Depends-on): Likewise.
67166         * modules/inet_ntop (Depends-on): Likewise.
67167         * modules/inet_pton (Depends-on): Likewise.
67168         * modules/memxor (Depends-on): Likewise.
67169         * modules/regex (Depends-on): Likewise.
67170         * modules/strtok_r (Depends-on): Likewise.
67171         * modules/time_r (Depends-on): Likewise.
67172
67173 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67174
67175         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
67176         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
67177         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67178         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
67179         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
67180         * m4/memxor.m4 (gl_MEMXOR): Likewise.
67181         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
67182         gl_C_RESTRICT replaced by AC_C_RESTRICT.
67183
67184         Merge from coreutils.
67185         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
67186         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
67187         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67188         * m4/time_r.m4 (gl_TIME_R): Likewise.
67189
67190 2006-08-09  Karl Berry  <karl@gnu.org>
67191
67192         * config/srclist.txt: no more gettext-tools, per Bruno.
67193
67194 2006-08-08  Eric Blake  <ebb9@byu.net>
67195
67196         * modules/verror: New module.
67197         * MODULES.html.sh: Document it.
67198
67199 2006-08-08  Eric Blake  <ebb9@byu.net>
67200
67201         * lib/verror.h, lib/verror.c: New files.
67202
67203 2006-08-08  Eric Blake  <ebb9@byu.net>
67204
67205         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
67206         verror_at_line output complies with GNU Coding Standards even when
67207         file is NULL.
67208
67209 2006-08-07  Bruno Haible  <bruno@clisp.org>
67210
67211         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
67212         versions of AIX.
67213         Reported by Ralf Wildenhues.
67214
67215 2006-08-07  Bruno Haible  <bruno@clisp.org>
67216
67217         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
67218         in an AC_DEFUN. Needed so that the autoconf snippets can use
67219         AC_REQUIRE.
67220
67221 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67222
67223         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67224         Initialize pkgdata_DATA.
67225         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
67226         overriding it.
67227
67228 2006-08-06  Eric Blake  <ebb9@byu.net>
67229
67230         * lib/error.h: Fold in some upstream changes from glibc.
67231         * lib/error.c: Likewise.
67232
67233 2006-08-04  Bruno Haible  <bruno@clisp.org>
67234
67235         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67236         Make the mostlyclean-local rule depend on mostlyclean-generic.
67237         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
67238
67239 2006-07-31  Bruno Haible  <bruno@clisp.org>
67240
67241         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
67242         <stdlib.h>, <string.h>.
67243
67244 2006-07-30  Bruno Haible  <bruno@clisp.org>
67245
67246         * modules/readlink (License): Change to LGPL.
67247
67248 2006-07-30  Bruno Haible  <bruno@clisp.org>
67249
67250         * modules/javaversion (Makefile.am): Distribute javaversion.java and
67251         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
67252         set PKGDATADIR to point to it.
67253
67254 2006-07-30  Bruno Haible  <bruno@clisp.org>
67255
67256         * modules/csharpexec (configure.ac): Comment out macro invocation.
67257         * modules/javaexec (configure.ac): Likewise.
67258         * modules/javacomp-script (configure.ac): Likewise.
67259
67260         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
67261
67262 2006-07-30  Bruno Haible  <bruno@clisp.org>
67263
67264         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
67265         linked-list.
67266
67267 2006-07-30  Bruno Haible  <bruno@clisp.org>
67268
67269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
67270
67271 2006-07-30  Bruno Haible  <bruno@clisp.org>
67272
67273         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67274         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
67275         get removed.
67276
67277 2006-07-29  Bruno Haible  <bruno@clisp.org>
67278
67279         Make it possible for gnulib-tool to work with locally modified or
67280         augmented gnulib repositories.
67281         * gnulib-tool (func_usage): Document --local-dir option.
67282         (local_gnulib_dir): New variable.
67283         Handle --local-dir option.
67284         (func_lookup_file): New function.
67285         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
67286         (func_get_description, func_get_filelist, func_get_description,
67287         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
67288         func_get_automake_snippet, func_get_include_directive,
67289         func_get_license, func_get_maintainer): Use func_lookup_file.
67290         (func_import, func_create_testdir): Use func_lookup_file.
67291
67292 2006-07-29  Bruno Haible  <bruno@clisp.org>
67293
67294         * modules/setenv (Depends-on): Add unistd.
67295
67296 2006-07-29  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
67299
67300 2006-07-29  Bruno Haible  <bruno@clisp.org>
67301
67302         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
67303
67304 2006-07-29  Bruno Haible  <bruno@clisp.org>
67305
67306         * gnulib-tool (import, update): If there is no Makefile.am, look at
67307         aclocal.m4, instead of bailing out.
67308
67309 2006-07-29  Bruno Haible  <bruno@clisp.org>
67310
67311         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
67312         Categorize the options by when they are useful.
67313
67314 2006-07-29  Bruno Haible  <bruno@clisp.org>
67315
67316         * gnulib-tool (func_usage): Document option --no-libtool.
67317         Handle option --no-libtool.
67318         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
67319         for changed semantics of $libtool variable.
67320         (func_import): Likewise. If libtool is not used, show this through
67321         an option --no-libtool.
67322         (func_create_testdir): Update.
67323
67324 2006-07-29  Bruno Haible  <bruno@clisp.org>
67325
67326         * gnulib-tool (func_import): Extend error message about missing
67327         --doc-base.
67328
67329 2006-07-29  Bruno Haible  <bruno@clisp.org>
67330
67331         * gnulib-tool (func_import): Don't create the $docbase directory if
67332         there is no file to store there.
67333
67334 2006-07-29  Bruno Haible  <bruno@clisp.org>
67335
67336         * gnulib-tool (autoconf_minversion): If a --dir option is given and
67337         relevant, look for configure.ac there, not in the current directory.
67338         Also use a simple search for AC_PREREQ, not "autoconf --trace".
67339
67340 2006-07-29  Bruno Haible  <bruno@clisp.org>
67341
67342         * gnulib-tool (SORT): New variable.
67343         (func_usage): Undocument --assume-autoconf option.
67344         Remove --assume-autoconf option handling.
67345         (autoconf_minversion): Determine from the contents of configure.ac.
67346         (func_import): Remove autoconf_minversion handling.
67347         Suggested by Eric Blake.
67348
67349 2006-07-29  Bruno Haible  <bruno@clisp.org>
67350
67351         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
67352
67353 2006-07-29  Bruno Haible  <bruno@clisp.org>
67354
67355         * config/srclist.txt (*setenv.[ch]): Remove rules.
67356
67357 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67358
67359         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
67360
67361 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67362
67363         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
67364         arpa/inet.h.
67365
67366 2006-07-28  Simon Josefsson  <jas@extundo.com>
67367
67368         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
67369         * modules/inet_pton (Depends-on): Likewise.
67370
67371 2006-07-28  Simon Josefsson  <jas@extundo.com>
67372
67373         * m4/netinet_in_h.m4: New file.
67374
67375 2006-07-28  Simon Josefsson  <jas@extundo.com>
67376
67377         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
67378         #include's.
67379
67380 2006-07-28  Simon Josefsson  <jas@extundo.com>
67381
67382         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
67383         #include's.
67384
67385 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
67386
67387         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
67388         setgid on directories only if they set these bits.
67389         * lib/modechange.h: Remove obsolete comment about masks.
67390
67391 2006-07-28  Eric Blake  <ebb9@byu.net>
67392
67393         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
67394         macro expansion.
67395
67396 2006-07-28  Bruno Haible  <bruno@clisp.org>
67397
67398         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
67399
67400 2006-07-28  Bruno Haible  <bruno@clisp.org>
67401
67402         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
67403
67404 2006-07-28  Bruno Haible  <bruno@clisp.org>
67405
67406         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
67407         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
67408         Define fallbacks.
67409         Avoids link error on FreeBSD 4.x.
67410         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67411
67412         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
67413         encoding.
67414         * lib/mbswidth.c (iswcntrl): Likewise.
67415
67416 2006-07-27  Bruno Haible  <bruno@clisp.org>
67417
67418         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
67419         test.
67420
67421 2006-07-27  Bruno Haible  <bruno@clisp.org>
67422
67423         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
67424         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
67425         defined.
67426
67427 2006-07-26  Eric Blake  <ebb9@byu.net>
67428
67429         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
67430
67431 2006-07-26  Eric Blake  <ebb9@byu.net>
67432
67433         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
67434         like mingw that lack mkstemp.
67435         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
67436         avoid compilation warning on mingw.
67437
67438 2006-07-26  Bruno Haible  <bruno@clisp.org>
67439
67440         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
67441         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
67442         INT_FAST*_MIN, INTPTR_MIN.
67443
67444 2006-07-25  Bruno Haible  <bruno@clisp.org>
67445
67446         * modules/version-etc (Depends-on): Add stdarg.
67447
67448 2006-07-25  Bruno Haible  <bruno@clisp.org>
67449
67450         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
67451         complex commands.
67452
67453 2006-07-25  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
67456         defined in <stdarg.h> or config.h.
67457
67458 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67459
67460         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
67461         (gl_STDIO_SAFER): Remove.
67462
67463 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         * MODULES.html.sh (File stream based Input/Output):
67466         Add fopen-safer, tmpfile-safer; remove stdio-safer.
67467         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
67468         * modules/fopen-safer, modules/tmpfile-safer: New files.
67469         * modules/stdio-safer: Remove.
67470
67471 2006-07-24  Bruno Haible  <bruno@clisp.org>
67472
67473         * modules/tmpdir: New file.
67474         * MODULES.html.sh (File system functions): Add it.
67475
67476 2006-07-24  Bruno Haible  <bruno@clisp.org>
67477
67478         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
67479         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
67480
67481 2006-07-24  Bruno Haible  <bruno@clisp.org>
67482
67483         * modules/clean-temp: New file.
67484
67485 2006-07-24  Bruno Haible  <bruno@clisp.org>
67486
67487         * m4/tmpdir.m4: New file, from GNU gettext.
67488
67489 2006-07-24  Bruno Haible  <bruno@clisp.org>
67490
67491         * lib/tmpdir.h: New file, from GNU gettext.
67492         * lib/tmpdir.c: New file, from GNU gettext.
67493
67494 2006-07-24  Bruno Haible  <bruno@clisp.org>
67495
67496         * lib/clean-temp.h: New file, from GNU gettext.
67497         * lib/clean-temp.c: New file, from GNU gettext.
67498
67499 2006-07-23  Eric Blake  <ebb9@byu.net>
67500
67501         * modules/stdio-safer (Files): Add tmpfile-safer.c.
67502         (Depends-on): Add binary-io.
67503
67504 2006-07-23  Eric Blake  <ebb9@byu.net>
67505
67506         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
67507
67508 2006-07-23  Eric Blake  <ebb9@byu.net>
67509
67510         * lib/tmpfile-safer.c: New file.
67511         * lib/stdio-safer.h (fopen_safer): Add prototype.
67512         * lib/stdio--.h (tmpfile): Make safer.
67513
67514 2006-07-23  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67517         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67518         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67519         gl_linked_remove_at): Use it.
67520
67521 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67522         and Simon Josefsson <jas@extundo.com>
67523
67524         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67525
67526         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67527
67528 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67529
67530         * modules/close-stream: New file.
67531         * modules/closeout (Description): Make it clear that it exits
67532         with a diagnostic on error.
67533         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67534         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67535
67536 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         * m4/close-stream.m4: New file.
67539
67540 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * lib/close-stream.c, lib/close-stream.h: New files.
67543
67544 2006-07-22  Bruno Haible  <bruno@clisp.org>
67545
67546         Merge from GNU gettext 0.15.
67547
67548         2006-05-01  Bruno Haible  <bruno@clisp.org>
67549
67550                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67551
67552         2006-07-22  Bruno Haible  <bruno@clisp.org>
67553
67554                 * modules/javaversion: New file.
67555                 * MODULES.html.sh (Java): Add javaversion.
67556
67557         2006-03-12  Bruno Haible  <bruno@clisp.org>
67558
67559                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67560
67561         2005-12-04  Bruno Haible  <bruno@clisp.org>
67562
67563                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67564                 (untested).
67565
67566         2006-06-21  Bruno Haible  <bruno@clisp.org>
67567
67568                 Avoid warnings from recent versions of mcs.
67569                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67570                 -o, -L, -r any more. Use options documented since mcs-1.0
67571                 instead. Similarly for -g.
67572
67573         2005-12-04  Bruno Haible  <bruno@clisp.org>
67574
67575                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67576                 .resources, not .resource.
67577
67578         2005-07-09  Bruno Haible  <bruno@clisp.org>
67579
67580                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67581                 add a .dll suffix.
67582                 Reported by Mark Junker <mjscod@gmx.de>.
67583
67584         2006-07-22  Bruno Haible  <bruno@clisp.org>
67585
67586                 * modules/gettext: Upgrade to gettext-0.15.
67587                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67588                 m4/visibility.m4.
67589                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67590
67591 2006-07-22  Bruno Haible  <bruno@clisp.org>
67592
67593         Merge from GNU gettext 0.15.
67594
67595         2006-03-25  Bruno Haible  <bruno@clisp.org>
67596
67597                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67598
67599         2006-07-21  Bruno Haible  <bruno@clisp.org>
67600
67601                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67602                 "1.1".
67603
67604         2006-05-09  Bruno Haible  <bruno@clisp.org>
67605
67606                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67607                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67608                 for the conftestver execution.
67609
67610         2006-05-01  Bruno Haible  <bruno@clisp.org>
67611
67612                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67613                 optional target-version argument. Verify that the compiler
67614                 groks source of the specified source-version, or add -source
67615                 option as necessary. Verify that the compiler produces
67616                 bytecode in the specified target-version, or add -target and
67617                 -source options as necessary. Make the result of the test
67618                 available as variable CONF_JAVAC. Also log error output in
67619                 config.log.
67620
67621         2006-03-11  Bruno Haible  <bruno@clisp.org>
67622
67623                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67624
67625         2006-05-09  Bruno Haible  <bruno@clisp.org>
67626
67627                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67628                 CLASSPATH_SEPARATOR to a semicolon.
67629
67630         2006-03-12  Bruno Haible  <bruno@clisp.org>
67631
67632                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67633                 available as variable CONF_JAVA, for subsequent autoconf
67634                 tests. Also log error output in config.log.
67635
67636         2006-07-19  Bruno Haible  <bruno@clisp.org>
67637
67638                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67639                 that getline works on glibc2 systems. Needed to avoid trouble
67640                 in relocatable.c.
67641                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67642
67643         2005-12-04  Bruno Haible  <bruno@clisp.org>
67644
67645                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67646                 launcher (untested).
67647
67648         2005-12-04  Bruno Haible  <bruno@clisp.org>
67649
67650                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67651
67652         2006-07-22  Bruno Haible  <bruno@clisp.org>
67653
67654                 * gettext.m4: Update from GNU gettext-0.15.
67655                 * nls.m4: Likewise.
67656                 * po.m4: Likewise.
67657                 * inttypes-pri.m4: Likewise.
67658                 * inttypes-h.m4: Renamed from inttypes.m4.
67659                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67660
67661 2006-07-22  Bruno Haible  <bruno@clisp.org>
67662
67663         Merge from GNU gettext 0.15.
67664
67665         2005-07-05  Bruno Haible  <bruno@clisp.org>
67666
67667                 * printf-args.c (printf_fetchargs): Work around broken
67668                 definition of wint_t on mingw.
67669
67670         2005-02-12  Bruno Haible  <bruno@clisp.org>
67671
67672                 * xallocsa.h: Add extern "C" for C++.
67673
67674         2006-05-17  Bruno Haible  <bruno@clisp.org>
67675
67676                 Cygwin portability.
67677                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67678
67679         2006-04-30  Bruno Haible  <bruno@clisp.org>
67680
67681                 * progreloc.c: Include <mach-o/dyld.h> if available.
67682                 (find_executable): Use _NSGetExecutablePath when possible.
67683
67684         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67685
67686                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67687                 function.
67688
67689         2005-12-29  Bruno Haible  <bruno@clisp.org>
67690
67691                 * progreloc.c (set_program_name_and_installdir): Fix
67692                 compilation error.
67693
67694         2005-12-04  Bruno Haible  <bruno@clisp.org>
67695
67696                 Cygwin portability.
67697                 * progreloc.c: Include <windows.h> also on Cygwin.
67698                 (find_executable): Add support for Cygwin.
67699                 (set_program_name_and_installdir): Handle also platforms with
67700                 nonempty EXEEXT.
67701
67702         2006-07-11  Bruno Haible  <bruno@clisp.org>
67703
67704                 * javacomp.c: Fix a comment.
67705                 Reported by Jim Meyering.
67706
67707         2006-04-30  Bruno Haible  <bruno@clisp.org>
67708
67709                 * javacomp.h (compile_java_class): Add source_version,
67710                 target_version arguments.
67711                 * javacomp.c: Rewritten to choose only a compiler that
67712                 respects the specified source_version and target_version.
67713
67714         2006-06-27  Bruno Haible  <bruno@clisp.org>
67715
67716                 Assume correct S_ISDIR macro.
67717                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67718
67719         2006-07-22  Bruno Haible  <bruno@clisp.org>
67720
67721                 * javaversion.h: New file, from GNU gettext.
67722                 * javaversion.c: New file, from GNU gettext.
67723                 * javaversion.java: New file, from GNU gettext.
67724                 * javaversion.class: New file, from GNU gettext.
67725
67726         2006-05-17  Bruno Haible  <bruno@clisp.org>
67727
67728                 Cygwin portability.
67729                 * javaexec.c (execute_java_class): Test for jview program
67730                 also on Cygwin.
67731
67732         2006-04-09  Bruno Haible  <bruno@clisp.org>
67733
67734                 * fatal-signal.c: Don't include string.h.
67735                 (at_fatal_signal): Use a copying loop instead of memcpy.
67736
67737         2005-12-04  Bruno Haible  <bruno@clisp.org>
67738
67739                 * csharpexec.c: Add support for 'clix' launcher (untested).
67740                 (execute_csharp_using_sscli): New function.
67741                 (execute_csharp_program): Call it.
67742
67743         2006-06-21  Bruno Haible  <bruno@clisp.org>
67744
67745                 Avoid warnings from recent versions of mcs.
67746                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67747                 -o, -L, -r any more. Use options documented since mcs-1.0
67748                 instead. Similarly for -g.
67749
67750         2005-07-09  Bruno Haible  <bruno@clisp.org>
67751
67752                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67753                 add a .dll suffix.
67754                 Reported by Mark Junker <mjscod@gmx.de>.
67755
67756         2006-06-17  Bruno Haible  <bruno@clisp.org>
67757
67758                 * config.charset: Update for NetBSD 3.0.
67759
67760         2006-05-17  Bruno Haible  <bruno@clisp.org>
67761
67762                 Cygwin portability.
67763                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67764
67765         2006-05-16  Bruno Haible  <bruno@clisp.org>
67766
67767                 * localcharset.c [CYGWIN]: Include <windows.h>.
67768                 (get_charset_aliases): For Cygwin, return the same CPxxx
67769                 aliases list as under WIN32.
67770                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67771                 the environment variables. Fall back to GetACP().
67772
67773         2006-04-05  Bruno Haible  <bruno@clisp.org>
67774
67775                 * config.charset: Update Juan Manuel Guerrero's address.
67776
67777         2005-02-12  Bruno Haible  <bruno@clisp.org>
67778
67779                 * allocsa.h: Add extern "C" for C++.
67780
67781         2005-02-10  Bruno Haible  <bruno@clisp.org>
67782
67783                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67784                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67785
67786         2006-07-22  Bruno Haible  <bruno@clisp.org>
67787
67788                 * gettext.h: Update to GNU gettext-0.15.
67789
67790 2006-07-22  Bruno Haible  <bruno@clisp.org>
67791
67792         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67793         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67794         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67795
67796 2006-07-21  Eric Blake  <ebb9@byu.net>
67797
67798         * modules/stdlib-safer: New file.
67799         * MODULES.html.sh (File stream based Input/Output): Add
67800         stdlib-safer.
67801
67802 2006-07-21  Eric Blake  <ebb9@byu.net>
67803
67804         * lib/stdlib-safer.h: New file from coreutils, required by
67805         stdlib--.h.
67806
67807 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67808
67809         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67810
67811 2006-07-20  Bruno Haible  <bruno@clisp.org>
67812
67813         * gnulib-tool: Recognize new option --assume-autoconf.
67814         (autoconf_minversion): New variable.
67815         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67816
67817 2006-07-20  Bruno Haible  <bruno@clisp.org>
67818
67819         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67820
67821 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67822
67823         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67824         Reindent and repaginate.
67825
67826 2006-07-19  Derek Price  <derek@ximbiot.com>
67827
67828         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67829         Correct grammar.
67830
67831 2006-07-17  Bruno Haible  <bruno@clisp.org>
67832
67833         * modules/list: New file.
67834         * modules/array-list: New file.
67835         * modules/carray-list, modules/carray-list-tests: New files.
67836         * modules/linked-list, modules/linked-list-tests: New files.
67837         * modules/avltree-list, modules/avltree-list-tests: New files.
67838         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67839         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67840         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67841         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67842         * modules/oset: New file.
67843         * modules/array-oset: New file.
67844         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67845         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67846         * tests/test-carray_list.c: New file.
67847         * tests/test-linked_list.c: New file.
67848         * tests/test-avltree_list.c: New file.
67849         * tests/test-rbtree_list.c: New file.
67850         * tests/test-linkedhash_list.c: New file.
67851         * tests/test-avltreehash_list.c: New file.
67852         * tests/test-rbtreehash_list.c: New file.
67853         * tests/test-avltree_oset.c: New file.
67854         * tests/test-rbtree_oset.c: New file.
67855         * MODULES.html.sh (Container data structures): New section.
67856
67857 2006-07-17  Bruno Haible  <bruno@clisp.org>
67858
67859         * m4/gl_list.m4: New file.
67860
67861 2006-07-17  Bruno Haible  <bruno@clisp.org>
67862
67863         * lib/gl_list.h: New file.
67864         * lib/gl_list.c: New file.
67865         * lib/gl_array_list.h: New file.
67866         * lib/gl_array_list.c: New file.
67867         * lib/gl_carray_list.h: New file.
67868         * lib/gl_carray_list.c: New file.
67869         * lib/gl_linked_list.h: New file.
67870         * lib/gl_linked_list.c: New file.
67871         * lib/gl_anylinked_list1.h: New file.
67872         * lib/gl_anylinked_list2.h: New file.
67873         * lib/gl_avltree_list.h: New file.
67874         * lib/gl_avltree_list.c: New file.
67875         * lib/gl_anyavltree_list1.h: New file.
67876         * lib/gl_anyavltree_list2.h: New file.
67877         * lib/gl_rbtree_list.h: New file.
67878         * lib/gl_rbtree_list.c: New file.
67879         * lib/gl_anyrbtree_list1.h: New file.
67880         * lib/gl_anyrbtree_list2.h: New file.
67881         * lib/gl_anytree_list1.h: New file.
67882         * lib/gl_anytree_list2.h: New file.
67883         * lib/gl_linkedhash_list.h: New file.
67884         * lib/gl_linkedhash_list.c: New file.
67885         * lib/gl_anyhash_list1.h: New file.
67886         * lib/gl_anyhash_list2.h: New file.
67887         * lib/gl_avltreehash_list.h: New file.
67888         * lib/gl_avltreehash_list.c: New file.
67889         * lib/gl_rbtreehash_list.h: New file.
67890         * lib/gl_rbtreehash_list.c: New file.
67891         * lib/gl_anytreehash_list1.h: New file.
67892         * lib/gl_anytreehash_list2.h: New file.
67893
67894         * lib/gl_oset.h: New file.
67895         * lib/gl_oset.c: New file.
67896         * lib/gl_array_oset.h: New file.
67897         * lib/gl_array_oset.c: New file.
67898         * lib/gl_avltree_oset.h: New file.
67899         * lib/gl_avltree_oset.c: New file.
67900         * lib/gl_rbtree_oset.h: New file.
67901         * lib/gl_rbtree_oset.c: New file.
67902         * lib/gl_anytree_oset.h: New file.
67903
67904 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67905
67906         * m4/mkancesdirs.m4: New file.
67907         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67908         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67909         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67910         it.
67911
67912 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67915         * lib/mkancesdirs.h: New files.
67916         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67917         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67918         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67919         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67920         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67921         callers changed.  Revamp internals significantly, by not
67922         attempting to create directories that are temporarily more
67923         permissive than the final results.  Do not attempt to use
67924         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67925         This removes some race conditions, fixes some bugs, and simplifies
67926         things.  Use new dirchownmod function to do owner and mode changes.
67927         * lib/mkdir-p.h: Likewise.
67928         * lib/modechange.c (octal_to_mode): New function.
67929         (struct mode_change): New member mentioned.
67930         (make_node_op_equals): New arg mentioned.  All callers changed.
67931         (mode_compile): Keep track of which mode bits the user has explicitly
67932         mentioned.
67933         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67934         New arg PMODE_BITS, to keep track of which mode bits the user
67935         mentioned; it treats S_ISUID and S_ISGID speciall.
67936         All callers changed.
67937         * lib/modechange.h: Likewise.
67938
67939 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67940
67941         * MODULES.html.sh: Add mkancestors.
67942         * modules/mkancesdirs: New module.
67943         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67944         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67945         The chdir-safer and afs files are now orphans; I'll remove them
67946         unless someone speaks up.
67947         Add lib/dirchownmod.c, lib/dirchownmod.h.
67948         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67949         Add lchown, mkancesdirs.
67950         (Maintainer): Add self.
67951
67952 2006-07-15  Karl Berry  <karl@gnu.org>
67953
67954         * gnulib-tool: help message wording/arrangement.
67955
67956 2006-07-14  Simon Josefsson  <jas@extundo.com>
67957
67958         * doc/gnulib.texi (Libtool and Windows): New section.
67959
67960 2006-07-12  Simon Josefsson  <jas@extundo.com>
67961
67962         * modules/gendocs (License): Fix license, approved by Karl.
67963
67964 2006-07-12  Eric Blake  <ebb9@byu.net>
67965
67966         * MODULES.html.sh: Add gendocs.
67967
67968 2006-07-11  Eric Blake  <ebb9@byu.net>
67969
67970         * modules/fdl: New module, to install doc/fdl.texi.
67971         * MODULES.html.sh: Add new section for documentation modules.
67972         * gnulib-tool: Avoid space-tab.
67973         (--doc-base): New option, to manage files from doc.
67974
67975 2006-07-11  Eric Blake  <ebb9@byu.net>
67976
67977         * m4/absolute-header.m4: Fix comments to match recent change.
67978
67979 2006-07-11  Eric Blake  <ebb9@byu.net>
67980
67981         * gnulib-tool: List --doc-base before --tests-base.
67982
67983 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67984
67985         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67986
67987 2006-07-11  Bruno Haible  <bruno@clisp.org>
67988
67989         * README: Mention where to put documentation.
67990
67991 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67992
67993         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67994
67995 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67996
67997         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67998         to stdint.m4.
67999
68000 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68001
68002         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
68003         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
68004         "no/such/file/stdint.h" when there is no such file, so that
68005         the resulting C code can be parsed by dodgy compilers.
68006         Problems reported by Bob Proulx.
68007
68008 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68009
68010         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
68011         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68012         macros into the GNU _D_EXACT_NAMLEN.
68013         * lib/savedir.c:  Likewise.
68014         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
68015
68016 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68017         and Paul Eggert  <eggert@cs.ucla.edu>
68018
68019         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
68020         * m4/savedir.m4:
68021         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68022         macros into the GNU _D_EXACT_NAMLEN.
68023
68024 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
68027         around the absolute name, to work around a problem with the HP-UX
68028         11.23 native C compiler, reported by Bob Proulx.
68029
68030 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         * doc/maintain.texi, make-stds.texi: Sync from
68033         <http://savannah.gnu.org/projects/gnustandards>.
68034
68035 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
68038
68039 2006-07-09  Jim Meyering  <jim@meyering.net>
68040
68041         * m4/glob.m4: Remove a doubled word in a comment.
68042
68043 2006-07-09  Jim Meyering  <jim@meyering.net>
68044
68045         * lib/argp-pv.c: Remove a doubled word in a comment.
68046         * lib/check-version.c (check_version): Likewise.
68047         * lib/javacomp.c (compile_java_class): Likewise.
68048
68049 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68050
68051         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
68052         for the benefit of people using Autoconf 2.60.  If you want to
68053         support older Autoconf versions you can copy m4/onceonly_2_57.m4
68054         (or m4/onceonly.m4, if pre-2.57) manually.
68055
68056 2006-07-08  Jim Meyering  <jim@meyering.net>
68057
68058         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
68059         comment.
68060         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
68061         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
68062         comment.
68063
68064 2006-07-08  Jim Meyering  <jim@meyering.net>
68065
68066         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
68067
68068 2006-07-07  Simon Josefsson  <jas@extundo.com>
68069
68070         * tests/test-crc.c: Change expected crc value, the test vector
68071         were probably computed using the old broken crc.c?
68072
68073 2006-07-06  Simon Josefsson  <jas@extundo.com>
68074
68075         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
68076         now the canonical place for the M4 file).
68077
68078         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
68079         from the sys_socket dependency now.
68080
68081         * modules/inet_pton (Files): Ditto.
68082
68083         * modules/inet_ntop (Files): Ditto.
68084
68085 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68086
68087         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
68088         not gl_PREREQ_GETUSERSHELL.
68089
68090 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68091
68092         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
68093         with only one argument, for Autoconf 2.60.
68094         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
68095         expand to nothing, so add a shell command to avoid syntax error.
68096         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68097
68098 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68099
68100         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
68101
68102 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68103
68104         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
68105         no longer needed.  Check for isblank decl.
68106         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
68107         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
68108         of existence.
68109
68110 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * lib/getloadavg.c: Use __VMS, not VMS.
68113         * lib/getopt.c: Likewise.
68114         * lib/getpagesize.h: Likewise.
68115         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
68116         and probably does not work.
68117
68118 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         * lib/.cppi-disable: Add wcwidth.
68121         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
68122         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
68123         (ISGRAPH): Remove.  All uses changed to isgraph.
68124         (FOLD) [!defined _LIBC]: Remove special case.
68125         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
68126         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
68127         HAVE_ISBLANK.
68128         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
68129         case.
68130
68131 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68132
68133         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
68134         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
68135         brackets.  Other minor changes to suppress some compiler
68136         warnings.
68137
68138 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68139         and Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
68142         of invoking obsolescent AC_HEADER_DIRENT macro.
68143         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
68144         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
68145         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
68146         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68147         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
68148         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68149         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
68150         * m4/readdir.m4: Remove; no longer needed.
68151
68152 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68153         and Paul Eggert  <eggert@cs.ucla.edu>
68154
68155         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
68156         Don't worry about this obsolete case any more.
68157         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
68158         directories.
68159         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
68160         worry about this obsolete case any more.
68161         * lib/fts.c: Likewise.
68162         * lib/getcwd.c: Likewise.
68163         * lib/glob.h: Likewise.
68164         * lib/savedir.c: Likewise.
68165
68166 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68167
68168         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
68169         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
68170         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
68171         needed.
68172         All uses removed.
68173         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68174         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68175         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
68176         needed.
68177         * m4/getdate.m4 (gl_GETDATE): Likewise.
68178         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68179         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68180         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68181         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68182         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68183         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68184         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
68185         needed.
68186
68187 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68188
68189         * lib/memcasecmp.c: Include <limits.h>.
68190         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
68191         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
68192         Don't assume isdigit succeeds only on '0' through '9'.
68193
68194 2006-07-05  Eric Blake  <ebb9@byu.net>
68195
68196         * modules/getaddrinfo (Depends-on): Add snprintf.
68197
68198 2006-07-05  Eric Blake  <ebb9@byu.net>
68199
68200         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
68201         to avoid 'header present but could not be compiled' on cygwin.
68202
68203 2006-07-05  Eric Blake  <ebb9@byu.net>
68204
68205         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
68206         missing from netdb.h.
68207         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
68208
68209 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68210
68211         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
68212         no longer needed.
68213         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
68214         * m4/getdate.m4 (gl_GETDATE): Likewise.
68215         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68216         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68217         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68218         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68219         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68220
68221 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68222
68223         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
68224         All uses of is_space replaced by isspace.
68225         * lib/exit.h: Don't talk about STDC_HEADERS.
68226         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
68227         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
68228         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
68229         replaced by isprint etc.
68230         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
68231         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68232         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
68233         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
68234         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
68235         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68236
68237 2006-07-05  Bruno Haible  <bruno@clisp.org>
68238
68239         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
68240         the function exists, before testing against AIX.
68241         Reported by Martin Lambers <marlam@marlam.de>.
68242
68243 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
68246         From Mark D. Baushke.
68247
68248 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68249
68250         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
68251         to the absolute name, not just one, to bypass Sun C 5.8's
68252         "warning: #include of /usr/include/... may be non-portable".
68253
68254 2006-07-04  Eric Blake  <ebb9@byu.net>
68255
68256         * modules/dirname-tests: New test module.
68257         * tests/test-dirname.c: New file, replacing dirname.c
68258         TEST_DIRNAME section that was recently deleted.
68259
68260 2006-07-04  Bruno Haible  <bruno@clisp.org>
68261
68262         Assume ANSI C header files and <ctype.h> functions.
68263         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
68264         (mbsnwidth): Use isprint, iscntrl instead.
68265
68266 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         Merge from coreutils.
68269         * MODULES.html.sh: Add xstrtold.
68270         * modules/xstrtold: New file.
68271         * modules/cycle-check (Files): Add lib/same-inode.h.
68272         * modules/dirname (Files): Add m4/double-slash-root.m4.
68273         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
68274         * modules/mkdir-p (Files): Add lib/same-inode.h.
68275         * modules/same (Files): Add lib/same-inode.h.
68276
68277 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         * m4/absolute-header.m4: Renamed from full-header-path.m4.
68280         This is to keep the terminology clean; POSIX talks about
68281         "absolute pathnames", not "full pathnames", but the GNU
68282         Coding Standards say to use "path" for something else;
68283         so use "absolute" to keep both sides happy.
68284         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
68285         Set gl_absolute_header, not gl_full_header_path.
68286         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
68287         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
68288         All uses changed.
68289
68290         Merge from coreutils.
68291
68292         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68293
68294         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
68295         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
68296         want to require the building of c-strtod.o.
68297         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
68298         needs -lm directly.
68299         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
68300
68301         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
68304         --as-needed option if available.  Problem reported by Albert Chin in
68305         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
68306         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
68307         cc merely issues a bunch of annoying warnings for --as-needed
68308         (this problem was reported by Bob Proulx).  Also, try linking with
68309         -lm to detect a bug in binutils 2.16 (this problem was reported
68310         by Ralf Wildenhues).
68311
68312         2006-06-18  Jim Meyering  <jim@meyering.net>
68313
68314         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
68315         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
68316         macro.
68317         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
68318         also check for glibc-2.4's abort-inducing bug.
68319
68320         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
68321         Low-probability clean-up should be to use rmdir to get rid of
68322         the just-created directory, not unlink.
68323
68324         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
68325         configure fail, and request a bug report to inform us about it.
68326         Add a comment that, barring reports to the contrary, in 2007 we'll
68327         assume ftruncate is universally available.
68328
68329         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68330
68331         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
68332
68333         2006-03-12  Jim Meyering  <jim@meyering.net>
68334
68335         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
68336         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
68337         * m4/same.m4 (gl_SAME): Likewise.
68338         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
68339
68340         2006-03-11  Eric Blake  <ebb9@byu.net>
68341
68342         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
68343         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
68344         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
68345         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
68346
68347 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
68350         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
68351         reported by Mark D. Baushke, one in
68352         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
68353
68354         Merge from coreutils.
68355
68356         * lib/.cppi-disable: Add stdint_.h.
68357         * lib/.cvsignore: Add stdint.h.
68358
68359         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
68362         both double and long double versions.
68363         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
68364         * lib/xstrtold.c: New file.
68365         * lib/xstrtod.h (xstrtold): New decl.
68366
68367         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68368
68369         * lib/filemode.c (setst): Remove.
68370         (strmode): Rewrite to avoid setst.  This makes the code shorter,
68371         (arguably) clearer, and the generated code is a bit smaller on my
68372         Debian GNU/Linux stable x86 host.
68373
68374         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68375
68376         * lib/filemode.c: Include "filemode.h" first, to test the interface.
68377         Assume that filemode.h includes sys/types.h and sys/stat.h.
68378         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
68379         (ftypelet): Reorder to put common cases first, for efficiency.
68380         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
68381         to do 'M'.
68382         (strmode): Renamed from mode_string, and now stores 12 bytes instead
68383         of 10, for compatibility with FreeBSD.  All callers changed.
68384         (filemodestring): Now stores 12 bytes instead of 10, and sets file
68385         types that can't be deduced solely from st_mode.  First arg is now a
68386         const pointer.
68387         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
68388         (strmode): Renamed from mode_string.
68389         (filemodestring): New decl.
68390         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
68391         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
68392         needed.
68393         (S_ISPORT, S_ISWHT): New macros, if not already defined.
68394
68395         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68396
68397         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
68398         fsusage.h now does that.  Include fsusage.h first, to test interface.
68399         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
68400         at most one method (the old code could have generated decls that
68401         didn't conform to C89, not that this was ever exercised).
68402         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
68403
68404         2006-03-19  Jim Meyering  <jim@meyering.net>
68405
68406         Work even in a chroot where d_ino values for entries in "/"
68407         don't match the stat.st_ino values for the same names.
68408         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
68409         number, iterate through all entries again, using lstat instead.
68410         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
68411         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
68412
68413         * lib/getcwd.c (__getcwd): Clarify a comment.
68414         Use memcpy in place of a call to strcpy.
68415
68416         2006-03-12  Jim Meyering  <jim@meyering.net>
68417
68418         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
68419         matches that of the current directory (which we're about to chdir ".."
68420         out of), then save the dev-ino of the parent, instead.
68421
68422         * lib/same-inode.h (SAME_INODE): New file/macro.
68423         * lib/chdir-safer.c (SAME_INODE): Remove definition.
68424         Include "same-inode.h", instead.
68425         * lib/same.c: Likewise.
68426         * lib/cycle-check.h: Include "same-inode.h".
68427         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
68428         * lib/cycle-check.c (SAME_INODE): Remove definition.
68429         * lib/root-dev-ino.h: Include "same-inode.h".
68430
68431         2006-03-11  Eric Blake  <ebb9@byu.net>
68432
68433         * lib/same.c (same_name): s/base_name/last_component/
68434         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
68435         * lib/filenamecat.c (file_name_concat): Likewise.
68436
68437         2006-03-11  Eric Blake  <ebb9@byu.net>,
68438                     Paul Eggert  <eggert@cs.ucla.edu>
68439
68440         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
68441         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
68442         drive prefix.
68443         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
68444         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
68445         (last_component): New method.
68446         * lib/dirname.c (dir_len): Determine when drive letters need a
68447         subsequent slash.  Preserve // when it is special.
68448         (dir_name): Don't append dot when drive letter is absolute.
68449         [TEST_DIRNAME]: Move into a full-blown gnulib test.
68450         * lib/basename.c (base_name): New semantics - malloc the result.
68451         Preserve // when it is special.  Preserve relative files that look
68452         like drive letters.
68453         (base_len): Preserve // when it is special.
68454         (last_component): New method, similar to old base_name semantics.
68455         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
68456         base_name.  Strip redundant slashes from ///.
68457
68458 2006-07-03  Jim Meyering  <jim@meyering.net>
68459
68460         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
68461         macro is used before the first cycle_check call.
68462
68463 2006-07-03  Eric Blake  <ebb9@byu.net>
68464
68465         * modules/dirname (Depends-on): Add xstrndup.
68466
68467 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68468
68469         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
68470         test cases, so that config.log is a bit easier to follow.
68471
68472 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68473
68474         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
68475         both are 64 bits, since this seems to be the tradition, and this
68476         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
68477         we ever run into a host that prefers long long to long in this
68478         case, we'll need another configure-time test.  Problem reported by
68479         Jim Meyering.
68480
68481 2006-07-02  Eric Blake  <ebb9@byu.net>
68482
68483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
68484
68485 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * modules/inttypes (Depends-on): No longer depends on stdint.
68488         * modules/stdint (Description): Say more about assumptions.
68489         Say that the fast types might differ.  Say macros are used.
68490         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
68491         (Makefile.am): Revise list of substituted symbols to match
68492         new stdint.m4.
68493         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
68494         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
68495         * tests/test-stdint.c (verify_same_types)
68496         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
68497         the code conforms to C99/C89.
68498         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
68499         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
68500
68501 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68502
68503         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
68504         but fix a bug, by requiring at least 64 bits.
68505         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
68506         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
68507         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
68508         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68509
68510         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
68511         changes.  Make 2.59 a prerequisite.  Check and substitute for
68512         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68513         inttypes.h.  Do not use special include files; just use the
68514         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68515         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68516         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68517         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68518         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68519         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68520         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68521         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68522         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68523         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68524         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68525         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68526         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68527         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68528         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68529         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68530         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68531         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68532         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68533         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68534         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68535         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68536         not check for things that C99 does not require, e.g., int8_t.  If
68537         a test isn't needed unless <stdint.h> isn't working, and is
68538         unlikely to be needed for any other reason, then don't do it
68539         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68540         size_t, since we assume C89 freestanding at least.  Do not check
68541         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68542         the right thing even if the types are not defined.  Instead use:
68543         (gl_STDINT_TYPE_PROPERTIES): New macro.
68544         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68545         testing whether <sys/types.h> clashes, as Autoconf does this for
68546         us now.  All uses removed.
68547         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68548         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68549         (gl_CHECK_TYPE_SAME):
68550         Remove; no longer needed.
68551         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68552         exists, since we'll return 0 anyway in that case.
68553         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68554
68555 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68558         possible collision with system files.
68559         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68560         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68561         WCHAR_MIN and WCHAR_MAX in this case.
68562         (<stddef.h>): Do not include; no longer needed.
68563         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68564         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68565         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68566         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68567         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68568         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68569         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68570         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68571         !defined(__c99))]: Include in this case too, since it's harmless
68572         now.
68573         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68574         dangerous to do so.
68575         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68576         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68577         (_STDINT_MIN, _STDINT_MAX): New macros.
68578         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68579         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68580         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68581         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68582         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68583         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68584         macros, not typedefs; this simplifies things quite a bit.
68585         Use long int for all types narrower than int64_t.
68586         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68587         Define in terms of long long int or int64_t or long int,
68588         not int64_t or int32_t.  This saves some compile-time testing.
68589         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68590         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68591         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68592         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68593         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68594         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68595         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68596         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68597         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68598         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68599         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68600         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68601         undef any previous version and define our own version, for
68602         simplicity and consistency with the new macros for types.
68603         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68604         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68605         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68606         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68607         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68608         @WINT_T_SUFFIX@ to keep things simple here.
68609         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68610         Simplify by assuming typical 8/16/32/64 host, since we're
68611         already doing that elsewhere anyway.
68612         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68613         and assume long long int is 64 bits if available.  This
68614         speeds up 'configure'.
68615
68616 2006-07-01  Eric Blake  <ebb9@byu.net>
68617
68618         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68619         Reported by Andreas Buening.
68620
68621 2006-07-01  Eric Blake  <ebb9@byu.net>
68622
68623         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68624
68625 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68626
68627         * lib/getaddrinfo.c: fixed typo
68628
68629 2006-06-29  Jim Meyering  <jim@meyering.net>
68630
68631         * modules/strftime (Maintainer): Add my name, since with the
68632         FPRINTFTIME changes strftime.c has forked from glibc.
68633
68634 2006-06-29  Eric Blake  <ebb9@byu.net>
68635
68636         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68637
68638 2006-06-29  Eric Blake  <ebb9@byu.net>
68639
68640         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68641
68642 2006-06-29  Eric Blake  <ebb9@byu.net>
68643
68644         * lib/stat_.h: New file.
68645
68646 2006-06-29  Eric Blake  <ebb9@byu.net>
68647
68648         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68649         unused static function.
68650
68651 2006-06-29  Eric Blake  <ebb9@byu.net>
68652
68653         * doc/functions.texi (Function Portability): Document missing lstat
68654         on mingw.
68655
68656 2006-06-29  Eric Blake  <ebb9@byu.net>
68657
68658         * MODULES.html.sh: Add sys_stat.
68659         * modules/sys_stat: New module.
68660         * modules/mkstemp (Depends-on): Add sys_stat.
68661
68662 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68663
68664         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68665
68666 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68667
68668         * m4/c-bs-a.m4: Removed.
68669
68670 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68671
68672         * lib/strftime.c: Assume strftime() exists.
68673
68674 2006-06-29  Derek Price  <derek@ximbiot.com>
68675
68676         * modules/c-bs-a: Removed - \a is C89.
68677         * MODULES.html.sh: Remove c-bs-a.
68678
68679 2006-06-29  Bruno Haible  <bruno@clisp.org>
68680
68681         * modules/wcwidth (License): Change to LGPL.
68682
68683 2006-06-28  Simon Josefsson  <jas@extundo.com>
68684
68685         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68686         on _WIN32.
68687
68688         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68689         getnameinfo.
68690
68691 2006-06-28  Simon Josefsson  <jas@extundo.com>
68692
68693         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68694
68695 2006-06-28  Simon Josefsson  <jas@extundo.com>
68696
68697         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68698         functions there.  It will succeed on Windows XP, but on Windows
68699         2000 and (presumably) earlier, it will fail, and use the internal
68700         re-implementation.
68701         (use_win32_p): New function.
68702         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68703         Support AI_NUMERICSERV to disable getservbyname.
68704         (getnameinfo): New function, only supports
68705         NI_NUMERICHOST|NI_NUMERICSERV for now.
68706
68707         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68708         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68709         getnameinfo.
68710
68711 2006-06-28  Eric Blake  <ebb9@byu.net>
68712
68713         * modules/wcwidth: New file.
68714         * modules/mbchar (Depends-on): Add wcwidth.
68715         * modules/mbswidth (Depends-on): Add wcwidth.
68716         * MODULES.html.sh: Add wcwidth.
68717
68718 2006-06-28  Eric Blake  <ebb9@byu.net>
68719
68720         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68722
68723 2006-06-28  Eric Blake  <ebb9@byu.net>
68724
68725         * lib/xvasprintf.h: Fix comments.
68726
68727 2006-06-28  Eric Blake  <ebb9@byu.net>
68728
68729         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68730         * lib/mbswidth.c (wcwidth): Move from here...
68731         * lib/wcwidth.h: ...to this new file.
68732
68733 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68734
68735         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68736
68737         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68738         it's obsolete.
68739         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68740
68741 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68742
68743         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68744         Autoconf 2.60 says this stuff was obsolete.
68745
68746 2006-06-28  Bruno Haible  <bruno@clisp.org>
68747
68748         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68749
68750 2006-06-28  Bruno Haible  <bruno@clisp.org>
68751
68752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68753         gt_TYPE_WCHAR_T.
68754
68755 2006-06-28  Bruno Haible  <bruno@clisp.org>
68756
68757         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68758         declaration for wcwidth.
68759         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68760
68761 2006-06-28  Bruno Haible  <bruno@clisp.org>
68762
68763         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68764         (mkdir): Define using _mkdir.
68765
68766 2006-06-28  Bruno Haible  <bruno@clisp.org>
68767
68768         * lib/getaddrinfo.h: Fix POSIX URL.
68769         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68770         _WIN32.
68771         (use_win32_p): Make static.
68772         (getaddrinfo): Reject service name if it is empty or does not consist
68773         solely of decimal digits, or if its value is > 65535.
68774         (getnameinfo): Remove useless casts.
68775
68776 2006-06-27  Simon Josefsson  <jas@extundo.com>
68777
68778         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68779         Eggert and Martin Lambers.
68780
68781 2006-06-27  Simon Josefsson  <jas@extundo.com>
68782
68783         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68784         Eggert and Martin Lambers.
68785
68786 2006-06-27  Bruno Haible  <bruno@clisp.org>
68787
68788         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68789         result to 0, not to empty.
68790         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68791
68792 2006-06-27  Bruno Haible  <bruno@clisp.org>
68793
68794         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68795
68796 2006-06-26  Simon Josefsson  <jas@extundo.com>
68797
68798         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68799         present.
68800
68801 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68802
68803         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68804         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68806
68807 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68808
68809         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68810
68811 2006-06-26  Bruno Haible  <bruno@clisp.org>
68812
68813         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68814
68815 2006-06-26  Bruno Haible  <bruno@clisp.org>
68816
68817         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68818
68819 2006-06-26  Bruno Haible  <bruno@clisp.org>
68820
68821         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68822         SGI C compiler in pre-C99 mode.
68823         Suggested by Mark D. Baushke and Larry Jones.
68824
68825 2006-06-26  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68828         WCHAR_MAX.
68829         Reported by Mark D. Baushke and Larry Jones.
68830
68831 2006-06-26  Bruno Haible  <bruno@clisp.org>
68832
68833         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68834         in pre-C99 mode.
68835         Suggested by Mark D. Baushke and Larry Jones.
68836
68837 2006-06-23  Simon Josefsson  <jas@extundo.com>
68838             Bruno Haible  <bruno@clisp.org>
68839
68840         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68841         Emit mostlyclean-local rule.
68842         (func_emit_tests_Makefile_am): Likewise.
68843         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68844
68845 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68846
68847         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68848
68849 2006-06-23  Bruno Haible  <bruno@clisp.org>
68850
68851         * tests/test-stdint.c: Update to match ISO C 99 Technical
68852         Corrigendum 1.
68853
68854 2006-06-23  Bruno Haible  <bruno@clisp.org>
68855
68856         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68857
68858 2006-06-23  Bruno Haible  <bruno@clisp.org>
68859
68860         * lib/stdint_.h: Treat IRIX like OpenBSD.
68861
68862 2006-06-23  Bruno Haible  <bruno@clisp.org>
68863
68864         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68865         ISO C 99 Technical Corrigendum 1.
68866
68867 2006-06-22  Simon Josefsson  <jas@extundo.com>
68868
68869         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68870         MinGW.
68871
68872 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68873
68874         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68875         needed.  Some compiler complained about some of them.  Problem reported
68876         by Larry Jones in
68877         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68878
68879 2006-06-21  Simon Josefsson  <jas@extundo.com>
68880
68881         * tests/test-getaddrinfo.c: New file.
68882
68883         * modules/getaddrinfo-tests: New file.
68884
68885         * MODULES.html.sh: Add inet_pton.
68886
68887         * modules/inet_pton: New file.
68888
68889 2006-06-21  Simon Josefsson  <jas@extundo.com>
68890
68891         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68892         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68893         of using the (limited) gnulib implementation on Windows XP.
68894
68895         * m4/inet_pton.m4: New file.
68896
68897 2006-06-21  Simon Josefsson  <jas@extundo.com>
68898
68899         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68900         variable.
68901
68902         * lib/socket_.h: Don't define WINVER.
68903
68904         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68905         slightly modified to work in gnulib.
68906
68907 2006-06-21  Simon Josefsson  <jas@extundo.com>
68908
68909         * doc/gnulib.texi (Windows sockets): Add.
68910
68911 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68912
68913         * lib/read-file.c (fread_file): Start with buffer allocation of
68914         0 bytes rather than 1 byte; this simplifies the code.
68915         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68916         code to free buffer and save/restore errno.
68917         (internal_read_file): Remove unused local.
68918
68919 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68920
68921         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68922         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68923         Problem reported by Denis Excoffier in
68924         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68925
68926 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68927
68928         * modules/sys_socket, modules/socklen: Include sys/types since
68929         FreeBSD 4.x's sys/socket.h needs it.
68930
68931 2006-06-19  Simon Josefsson  <jas@extundo.com>
68932
68933         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68934
68935 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68938
68939 2006-06-19  Bruno Haible  <bruno@clisp.org>
68940
68941         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68942         and FULL_PATH_INTTYPES_H in angle brackets.
68943         Reported by Mark D. Baushke <mdb@gnu.org>.
68944
68945 2006-06-17  Eric Blake  <ebb9@byu.net>
68946
68947         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68948         errno.
68949
68950 2006-06-17  Bruno Haible  <bruno@clisp.org>
68951
68952         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68953         <sys/inttypes.h>.
68954
68955 2006-06-17  Bruno Haible  <bruno@clisp.org>
68956
68957         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68958         whether errno is declared. Assume <errno.h> declares errno.
68959
68960 2006-06-17  Bruno Haible  <bruno@clisp.org>
68961
68962         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68963
68964 2006-06-17  Bruno Haible  <bruno@clisp.org>
68965
68966         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68967         problem on Solaris 2.5.1.
68968
68969 2006-06-16  Eric Blake  <ebb9@byu.net>
68970
68971         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68972         * lib/unicodeio.c [!defined errno]: Likewise.
68973         * lib/strtol.c [!defined errno]: Likewise.
68974         * lib/strtod.c [!defined errno]: Likewise.
68975
68976 2006-06-15  Eric Blake  <ebb9@byu.net>
68977
68978         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68979
68980 2006-06-15  Eric Blake  <ebb9@byu.net>
68981
68982         * config/srclist.txt (ssize_t.m4): Lose sync.
68983
68984 2006-06-15  Bruno Haible  <bruno@clisp.org>
68985
68986         * modules/stdint (Files): Include m4/full-header-path.m4,
68987         m4/size_max.m4, m4/wchar_t.m4.
68988         (Makefile.am): Many more substitutions.
68989         * modules/stdint-tests: New file.
68990         * tests/test-stdint.c: New file.
68991
68992 2006-06-15  Bruno Haible  <bruno@clisp.org>
68993
68994         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68995         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68996         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68997         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68998         gl_CHECK_TYPE_SAME): New macros.
68999
69000 2006-06-15  Bruno Haible  <bruno@clisp.org>
69001
69002         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
69003
69004 2006-06-15  Bruno Haible  <bruno@clisp.org>
69005
69006         * lib/stdint_.h: Rewritten to be fully auto-configured.
69007         Fixes bug on HP-UX/IA64.
69008
69009 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
69010
69011         * lib/getdate.y (__attribute__): Don't define if already defined.
69012         Problem reported by Larry Jones.
69013         * lib/utimens.c (__attribute__): Likewise.
69014
69015 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
69018         reported by Andreas Schwab.
69019
69020 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69021             Bruno Haible  <bruno@clisp.org>
69022
69023         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
69024         check for the declaration of strnlen and a run test that exposes the
69025         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
69026         rpl_strndup.
69027
69028 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69029             Bruno Haible  <bruno@clisp.org>
69030
69031         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
69032
69033 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69034
69035         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
69036         compile test, for Tru64 4.0D.
69037
69038 2006-05-28  Karl Berry  <karl@gnu.org>
69039
69040         * config/srclist.txt (printf-args.c): lose sync.
69041
69042 2006-05-26  Martin Lambers  <marlam@marlam.de>
69043
69044         * lib/getpass.c: Updates the test for the native W32 API, and adds
69045         missing includes, thus fixing compilation warnings.
69046
69047 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69048
69049         * lib/exclude.c (exclude_fnmatch): New function.
69050         (excluded_file_name): Call exclude_fnmatch.
69051         * lib/exclude.h (excluded_file_name): New prototype
69052
69053 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * lib/tempname.c (small_open, large_open): New macros.
69056         (__open, __open64) [!_LIBC]: Remove.
69057         (__gen_tempname): Use small_open and large_open instead of __open
69058         and __open64.  This fixes a portability bug on HP-UX 11.11i
69059         reported by Simon Wing-Tang in
69060         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
69061
69062 2006-05-24  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
69065         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
69066         Reported by Thorsten Maerz <torte@netztorte.de> via
69067         Aaron Stone <aaron@serendipity.cx>.
69068
69069 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
69072         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
69073         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
69074         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
69075         not really conditional on the cache.
69076         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
69077
69078 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
69081         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
69082         (my_usleep): Don't mishandle maximum value.
69083
69084 2006-05-19  Jim Meyering  <jim@meyering.net>
69085
69086         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
69087
69088 2006-05-17  Bruno Haible  <bruno@clisp.org>
69089
69090         Cygwin portability.
69091         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
69092
69093 2006-05-17  Bruno Haible  <bruno@clisp.org>
69094
69095         * lib/stdint_.h: Fix recognition of Cygwin.
69096
69097 2006-05-15  Bruno Haible  <bruno@clisp.org>
69098
69099         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
69100         on libtool patch by Ralf Wildenhues.
69101
69102 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
69105         test for C99 conformance; (bool) 0.5 is an integer constant
69106         expression, but (bool) -0.5 is not.  Problem reported by Fedor
69107         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
69108
69109 2006-05-11  Simon Josefsson  <jas@extundo.com>
69110
69111         * m4/xvasprintf.m4: Fix obvious typo.
69112
69113 2006-05-11  Jim Meyering  <jim@meyering.net>
69114
69115         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
69116         James Lemley.
69117
69118 2006-05-10  Simon Josefsson  <jas@extundo.com>
69119
69120         * lib/md4.c: Typo fix, update copyright years.
69121         (K1, K2): Don't use L because it turn computations into 64-bit on
69122         64-bit platforms.
69123
69124 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69125
69126         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
69127         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
69128         unwanted sign propagation, e.g., on hosts with 64-bit int.
69129         There still are some problems with reeelly weird theoretical hosts
69130         (e.g., 33-bit int) but it's not worth worrying about now.
69131         * lib/sha1.c (rol): Likewise.
69132         (K1, K2, K3, K4): Remove unnecessary L suffix.
69133
69134 2006-05-10  Bruno Haible  <bruno@clisp.org>
69135
69136         * lib/des.c: Cast to avoid warnings.
69137
69138 2006-05-09  Bruno Haible  <bruno@clisp.org>
69139
69140         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
69141         (Depends-on): Depend also on xsize, stdarg.
69142         (configure.ac): Add gl_XVASPRINTF.
69143
69144 2006-05-09  Bruno Haible  <bruno@clisp.org>
69145
69146         * m4/xvasprintf.m4: New file.
69147
69148 2006-05-09  Bruno Haible  <bruno@clisp.org>
69149
69150         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
69151         (EOVERFLOW): Define fallback value.
69152         (xstrcat): New function.
69153         (xvasprintf): Recognize the special case of a string concatenation.
69154
69155 2006-05-08  Eric Blake  <ebb9@byu.net>
69156
69157         * gnulib-tool (func_version): Base copyright year on CVS date.
69158         (func_emit_copyright_notice): New function.
69159         (func_emit_lib_Makefile_am): Use it.
69160         (func_emit_tests_Makefile_am): Likewise.
69161         (func_import): Likewise.
69162
69163 2006-05-08  Bruno Haible  <bruno@clisp.org>
69164
69165         * modules/stdarg: New file.
69166         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
69167
69168 2006-05-08  Bruno Haible  <bruno@clisp.org>
69169
69170         * m4/stdarg.m4: New file, from GNU gettext.
69171
69172 2006-05-08  Bruno Haible  <bruno@clisp.org>
69173
69174         * config/srclist.txt (build-aux/config.rpath): different from latest
69175         release.
69176
69177 2006-05-08  Bruno Haible  <bruno@clisp.org>
69178
69179         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
69180
69181 2006-05-05  Jim Meyering  <jim@meyering.net>
69182
69183         * m4/warning.m4: New file, derived from bison's file by the same name.
69184
69185 2006-05-03  Bruno Haible  <bruno@clisp.org>
69186
69187         * lib/stdint_.h: Shorter URL.
69188         * lib/inttypes.h: Likewise.
69189
69190 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69191
69192         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
69193
69194 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         * lib/verify.h: Document the internals better.  Most of this change
69197         was written by Bruno Haible.
69198
69199 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * doc/verify.texi: New file, partly based on a proposal by
69202         Bruno Haible.
69203
69204 2006-05-02  Bruno Haible  <bruno@clisp.org>
69205
69206         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
69207         test from here...
69208         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
69209
69210 2006-04-29  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
69213         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
69214
69215 2006-04-29  Bruno Haible  <bruno@clisp.org>
69216
69217         * gnulib-tool: Make --update option actually work.
69218
69219 2006-04-29  Bruno Haible  <bruno@clisp.org>
69220
69221         * doc/gcd.texi: New file.
69222         * doc/gnulib.texi: Include it.
69223
69224 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
69225
69226         * lib/getdate.y (get_date): When adding relative date, start with the
69227         initial time, not with the result of the first mktime call.
69228
69229 2006-04-25  Bruno Haible  <bruno@clisp.org>
69230
69231         * gnulib-tool (func_import): Output the include directives in three
69232         blocks, sorted separately.
69233         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69234
69235 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69236
69237         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
69238         to define main with arguments, for C++.  Reported by Eric Blake.
69239         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
69240         Prefer 'int main ()' to 'int main (void)', for C++.
69241         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
69242         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
69243         for 'main', for C99 and C++.
69244
69245 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69246
69247         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
69248         Don't assume that exit status -1 is valid.
69249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69250         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69251         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
69252         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
69253         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
69254         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
69255         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
69256         functions can be used without declaring them, or that you can
69257         exit with status -1.
69258         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69259
69260 2006-04-24  Karl Berry  <karl@gnu.org>
69261
69262         * config/srclist.txt (longdouble.m4): sync lost.
69263
69264 2006-04-24  Eric Blake  <ebb9@byu.net>
69265
69266         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
69267
69268 2006-04-24  Bruno Haible  <bruno@clisp.org>
69269
69270         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
69271         poll() implementation in AIX.
69272         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69273
69274 2006-04-24  Bruno Haible  <bruno@clisp.org>
69275
69276         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
69277         assigned exactly once.
69278
69279 2006-04-23  Claudio Fontana  <claudio@gnu.org>
69280             Bruno Haible  <bruno@clisp.org>
69281
69282         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
69283         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
69284         for AM_CPPFLAGS.
69285
69286 2006-04-23  Bruno Haible  <bruno@clisp.org>
69287
69288         * modules/copy-file: Depend on unistd.
69289         * modules/execute: Likewise.
69290         * modules/fatal-signal: Likewise.
69291         * modules/findprog: Likewise.
69292         * modules/mkdtemp : Likewise.
69293         * modules/pipe: Likewise.
69294         * modules/wait-process: Likewise.
69295
69296 2006-04-23  Bruno Haible  <bruno@clisp.org>
69297
69298         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
69299         condition was already detected.
69300         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69301
69302 2006-04-23  Bruno Haible  <bruno@clisp.org>
69303
69304         * lib/copy-file.c: Include <unistd.h> unconditionally.
69305         * lib/execute.c: Likewise.
69306         * lib/fatal-signal.c: Likewise.
69307         * lib/findprog.c: Likewise.
69308         * lib/mkdtemp.c: Likewise.
69309         * lib/pipe.h: Likewise.
69310         * lib/pipe.c: Likewise.
69311         * lib/wait-process.h: Likewise.
69312
69313 2006-04-23  Bruno Haible  <bruno@clisp.org>
69314
69315         * gnulib-tool (func_usage): Fix --import description. Document
69316         --update.
69317         (func_import): Create temporary file in a temporary directory, if
69318         --dry-run is specified. Silence errors from 'grep' when there are no
69319         m4 files in $m4dir.
69320         (func_create_testdir): Silence errors from 'grep' when there are no
69321         m4 files in $m4dir.
69322         Reported by Karl Berry <karl@freefriends.org>.
69323
69324 2006-04-20  Bruno Haible  <bruno@clisp.org>
69325
69326         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
69327         one argument, so that the code will be portable to Autoconf 2.60.
69328         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
69329         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69330         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
69331
69332 2006-04-19  Derek Price  <derek@ximbiot.com>
69333             Eric Blake  <ebb9@byu.net>
69334
69335         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
69336         rather than "/full/path.h".  Update comment to match.  Shorten &
69337         generalize m4_translit call via AS_TR_CPP.
69338
69339 2006-04-19  Derek Price  <derek@ximbiot.com>
69340             Eric Blake  <ebb9@byu.net>
69341
69342         * lib/inttypes.h: Correct grammar in comment.
69343
69344 2006-04-18  Derek Price  <derek@ximbiot.com>
69345             Paul Eggert  <eggert@cs.ucla.edu>
69346
69347         * modules/inttypes: New file.
69348         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
69349
69350 2006-04-18  Derek Price  <derek@ximbiot.com>
69351             Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
69354         New files.
69355
69356 2006-04-18  Derek Price  <derek@ximbiot.com>
69357             Paul Eggert  <eggert@cs.ucla.edu>
69358
69359         * lib/inttypes.h: New file.
69360         * lib/strtoimax.c: Assume <inttypes.h>.
69361
69362 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
69363
69364         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
69365         isn't mounted.  Problem reported by Kir Kolyshkin.
69366
69367 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
69370         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
69371         Derek R. Price.
69372         * lib/regex.h (RE_DUP_MAX): Update comment to match current
69373         implementation.
69374
69375 2006-04-12  Eric Blake  <ebb9@byu.net>
69376
69377         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
69378         is now done automatically by the corresponding Autoconf macro.
69379
69380 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
69383         time_r.h.
69384
69385 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         Merge regex changes from libc, removing some of our
69388         POSIX-conformance changes that were rejected and redoing them in a
69389         less-intrusive way.
69390
69391         * lib/regcomp.c (re_compile_internal, init_dfa):
69392         Length arg is now size_t, not Idx.  All uses changed.
69393         (peek_token): Forward decl now says internal_function.
69394         (__re_error_msgid, __re_error_msgid_idx):
69395         Now static rather than extern with attribute_hidden.
69396         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
69397         For some reason libc prefers K&R style defns for external functions.
69398         (regerror) [!defined _LIBC]: Likewise.
69399         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
69400         (seek_collating_symbol_entry, lookup_collation_sequence_value):
69401         (build_range_exp, build_collating_symbol):
69402         Use K&R-style defn.
69403         (re_compile_fastmap): Use '\0' to memset, not 0.
69404         (utf8_sb_map): Make the calculations more obvious.
69405         (init_dfa, parse_bracket_exp, build_charclass_op):
69406         Call calloc and cast result, as glibc does.
69407         (init_word_char, fetch_token, peek_token, peek_token_bracket):
69408         (build_range_exp, build_collating_symbol):
69409         Now internal functions.
69410
69411         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
69412
69413         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
69414         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
69415         Don't depend on VMS; depend on __VMS instead, for POSIX
69416         namespace cleanness.
69417         (regoff_t): Define to ssize_t, not long int.
69418
69419         Remove the REG_ macros named below.  Instead, make the old names
69420         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
69421         __USE_GNU_REGEX.
69422         (REG_BACKSLASH_ESCAPE_IN_LISTS):
69423         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
69424         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
69425         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
69426         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
69427         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
69428         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
69429         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
69430         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
69431         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
69432         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
69433         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
69434         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
69435         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
69436         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
69437         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
69438         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
69439         (REG_NREGS):
69440         Remove.  All uses replaced by the old RE_* names.
69441         (RE_BACKSLASH_ESCAPE_IN_LISTS):
69442         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
69443         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
69444         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
69445         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
69446         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
69447         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
69448         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
69449         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
69450         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
69451         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
69452         Don't bother having these macros be independent of each others'
69453         values, since they no longer exist in the POSIX name space.
69454
69455         Rename the following member names back to their old names,
69456         unless !__USE_GNU_REGEX.  All uses changed back.
69457         (buffer): Renamed from re_buffer.
69458         (allocated): Renamed from re_allocated.
69459         (used): Renamed from re_used.
69460         (syntax): Renamed from re_syntax.
69461         (fastmap): Renamed from re_fastmap.
69462         (translate): Renamed from re_translate.
69463         (can_be_null): Renamed from re_can_be_null.
69464         (regs_allocated): Renamed from re_regs_allocated.
69465         (fastmap_accurate): Renamed from re_fastmap_accurate.
69466         (no_sub): Renamed from re_no_sub.
69467         (not_bol): Renamed from re_not_bol.
69468         (not_eol): Renamed from re_not_eol.
69469         (newline_anchor): Renamed from re_newline_anchor.
69470         (num_regs): Renamed from rm_num_regs.
69471         (start): Renamed from rm_start.
69472         (end): Renamed from rm_end.
69473
69474         (free_state): Move up a bit.
69475
69476         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
69477         #define to be empty.
69478         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
69479         when that is what is intended.
69480         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
69481         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
69482         (MAX): New macro.
69483         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
69484         All uses changed back to re_malloc, etc.  It's now the caller's
69485         responsibility to check for overflow; all callers changed.
69486         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
69487         (re_x2nrealloc): Remove.
69488         (free_state): Remove decl.
69489
69490         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
69491         (re_set_registers, re_exec):
69492         Use K&R-style defn.
69493
69494         2006-01-31  Roland McGrath  <roland@redhat.com>
69495
69496         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
69497         Reported by Mike Frysinger <vapier@gentoo.org>.
69498
69499         2006-01-15  Andreas Jaeger  <aj@suse.de>
69500
69501         [BZ #1950]
69502         * lib/regex_internal.c (re_string_reconstruct): Adjust for
69503         build_wcs_upper_buffer change.
69504         (build_wcs_upper_buffer): Change return type.
69505
69506         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
69507
69508         * lib/regex_internal.h: Include <stdint.h> if available.
69509
69510         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
69511
69512         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69513
69514         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69515
69516         * lib/regcomp.c: Adjust for changed secondary hash function.
69517
69518         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69519
69520         * lib/regex.h: Pretty printing.
69521         Clean up namespace a bit.
69522
69523         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69524
69525         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69526         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69527
69528         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69529                     Ulrich Drepper  <drepper@redhat.com>
69530
69531         [BZ #1302]
69532         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69533         changed.
69534         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69535
69536         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69537
69538         [BZ #281]
69539         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69540         * lib/regcomp.c: Remove unnecessary uses of
69541         unsigned RE_TRANSLATE_TYPE.
69542         * lib/regex_internal.h: Likewise.
69543         * lib/regex_internal.c: Likewise.
69544         * lib/regexec.c: Likewise.
69545         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69546
69547         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69548
69549         * lib/regexec.c (find_recover_state): Remove unnecessary
69550         initialization.
69551         (transit_state_bkref): Make DFA a const pointer.
69552         (get_subexp): Likewise.
69553         (check_arrival): Likewise.
69554         (update_cur_sifted_state): Likewise.
69555         (re_search_internal): Likewise.
69556         (prune_impossible_nodes): Likewise.
69557         (acquire_init_state_context): Likewise.
69558         (proceed_next_node): Likewise.
69559         (set_regs): Likewise.
69560         (free_fail_stack_return): Likewise.
69561         (check_arrival_expand_ecl): Mark DFA parameter as const.
69562         (check_arrival_expand_ecl_sub): Likewise.
69563         (check_subexp_limits): Likewise.
69564         (sub_epsilon_src_nodes):  Likewise.
69565         (add_epsilon_src_nodes):  Likewise.
69566         (merge_state_array): Likewise.
69567         (update_regs): Likewise.
69568         (build_trtable): Likewise.
69569         (sift_states_backward): Mark MCTX parameter as const.
69570         (build_sifted_states): Likewise.
69571         (update_cur_sifted_state): Likewise.
69572         (sift_states_mkref): Likewise.
69573         (check_arrival_expand_ecl): Mark eclosure as const.
69574         (check_dst_limits_calc_pos_1): Likewise.
69575         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69576         pointer.
69577
69578         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69579
69580         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69581         (transit_state_sb): Likewise.
69582         (transit_state_mb): Likewise.
69583         (sift_states_iter_mb): Likewise.
69584         (check_arrival_add_next_nodes): Likewise.
69585         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69586         [_LIBC] (re_search_2_stub): Use mempcpy.
69587
69588         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69589         mbrtowc for very simple UTF-8 case.
69590
69591         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69592         a pointer-to-const.
69593         (re_acquire_state_context): Likewise.
69594         * lib/regex_internal.h: Adjust prototypes.
69595
69596         * lib/regex.c: Prevent using C++ compilers.
69597
69598         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69599         (re_acquire_state_context): Likewise.
69600
69601 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * modules/regex (Depends-on): Add ssize_t.
69604
69605 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69608         translation table.
69609
69610 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69613
69614 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69615             Bruno Haible  <bruno@clisp.org>
69616
69617         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69618         <sys/types.h> and <inttypes.h>.
69619
69620 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69621
69622         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69623         `__error_t_defined', so argp.h will not typedef the former.
69624
69625 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69628         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69629         glibc names.  Even if glibc is changed to conform to POSIX, the
69630         traditional names will be available anyway, since regex depends on
69631         the extensions module.  Also, fix a longstanding typo in the
69632         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69633         reported by Emanuele Giaquinta.  Also, change sense of cached
69634         variable, so that the message makes sense.
69635
69636 2006-03-24  Simon Josefsson  <jas@extundo.com>
69637
69638         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69639         including some doc fixes.
69640         (base64_encode_alloc): Fix +1 bug on allocation failures.
69641
69642 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69643
69644         * lib/base64.c (base64_encode): Do not read past end of array with
69645         unsanitized input on systems with CHAR_BIT > 8.
69646
69647 2006-03-24  Eric Blake  <ebb9@byu.net>
69648
69649         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69650
69651 2006-03-22  Karl Berry  <karl@gnu.org>
69652
69653         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69654         * config/srclistvars.sh (COREUTILS): new var.
69655
69656 2006-03-17  Jim Meyering  <jim@meyering.net>
69657
69658         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69659         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69660
69661 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69662
69663         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69664         no longer needs it.  Instead, check that regoff_t is as least
69665         as wide as ptrdiff_t.
69666
69667         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69668         so that our regex.h stays compatible with the installed regex.
69669         This is helpful for installers who configure --without-included-regex.
69670         Problem reported by Emanuele Giaquinta.
69671
69672 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69675         Typedef to long int, not to off_, as POSIX will likely change
69676         in that direction.
69677
69678 2006-03-15  Eric Blake  <ebb9@byu.net>
69679
69680         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69681
69682 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69683
69684         * lib/argp-help.c (validate_uparams): Fix typo
69685         * lib/argp-parse.c (argp_default_options): Consistently begin help
69686         messages with a lowercase letter.
69687
69688 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69689
69690         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69691         overrun buffers and shouldn't be used (much as gets shouldn't be
69692         used).
69693         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69694
69695 2006-03-08  Simon Josefsson  <jas@extundo.com>
69696
69697         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69698         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69699
69700 2006-03-08  Simon Josefsson  <jas@extundo.com>
69701
69702         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69703         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69704
69705 2006-03-08  Simon Josefsson  <jas@extundo.com>
69706
69707         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69708         signal that configure disabled the device.
69709
69710 2006-03-08  Simon Josefsson  <jas@extundo.com>
69711
69712         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69713         languages.
69714
69715 2006-03-07  Simon Josefsson  <jas@extundo.com>
69716
69717         * modules/getopt (Depends-on): Add unistd.
69718
69719         * modules/unistd: New file.
69720
69721 2006-03-07  Simon Josefsson  <jas@extundo.com>
69722
69723         * modules/gc-random: New file.
69724
69725 2006-03-07  Simon Josefsson  <jas@extundo.com>
69726
69727         * m4/unistd_h.m4: New file.
69728
69729 2006-03-07  Simon Josefsson  <jas@extundo.com>
69730
69731         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69732         test to be side-effect free by storing the result in the cache
69733         variable gl_cv_lib_readline, and moving the assignment of
69734         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69735         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69736
69737 2006-03-07  Simon Josefsson  <jas@extundo.com>
69738
69739         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69740         error on missing devices (the functions will return an error).
69741
69742         * m4/gc.m4: Move random stuff to gc-random.m4
69743
69744 2006-03-07  Simon Josefsson  <jas@extundo.com>
69745
69746         * lib/unistd_.h: New file.
69747
69748 2006-03-07  Simon Josefsson  <jas@extundo.com>
69749
69750         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69751
69752 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69755         Problem reported by Juan Manuel Guerrero.
69756
69757 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69758
69759         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69760         the unistd module.
69761         * lib/getlogin_r.c: Likewise.
69762         * lib/getlogin_r.h: Likewise.
69763         * lib/glob.c: Likewise.
69764         * lib/pagealign_alloc.c: Likewise.
69765         * lib/unistd_.h: Remove; no longer needed.
69766
69767 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69768
69769         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69770         Add unistd.
69771         * modules/c-stack (Depends-on): Add unistd.
69772         * modules/getlogin_r: Likewise.
69773         * modules/glob: Likewise.
69774         * modules/pagealign_alloc: Likewise.
69775         * modules/unistd (Files): Remove lib/unistd_.h.
69776         (EXTRA_DIST): Remove.
69777         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69778         need unistd_.h.
69779         (MOSTLYCLEANFILES): Remove unistd.h-t.
69780
69781 2006-03-03  Simon Josefsson  <jas@extundo.com>
69782
69783         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69784
69785 2006-03-03  Simon Josefsson  <jas@extundo.com>
69786
69787         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69788         libidn and bison.
69789
69790 2006-03-03  Simon Josefsson  <jas@extundo.com>
69791
69792         * build-aux/maint.mk: Add indent target.
69793
69794 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69795
69796         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69797         our replacement poll.h in any case, to avoid a differing
69798         declaration from a system header.  Seen on AIX.
69799
69800 2006-03-01  Simon Josefsson  <jas@extundo.com>
69801
69802         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69803         <kasal@ucw.cz>.
69804
69805 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69806
69807         * modules/gettime (Depends-on): Add extensions module.
69808         * modules/nanosleep (Depends-on): Likewise.
69809         * modules/settime (Depends-on): Likewise.
69810
69811 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69814         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69815         pedantically.
69816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69817         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69818
69819         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69820         not "==".  Reported by Ralf Wildenhues.
69821
69822 2006-03-01  Karl Berry  <karl@gnu.org>
69823
69824         * doc/Copyright/request-*: new files, synced from gnuorg.
69825
69826 2006-03-01  Karl Berry  <karl@gnu.org>
69827
69828         * config/srclist.txt (Copyright/*): new entries.
69829
69830 2006-02-28  Simon Josefsson  <jas@extundo.com>
69831
69832         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69833
69834 2006-02-27  Simon Josefsson  <jas@extundo.com>
69835
69836         * lib/base64.h: Indent #define's.  From Jim Meyering
69837         <jim@meyering.net>.
69838
69839 2006-02-27  Jim Meyering  <jim@meyering.net>
69840
69841         Revert the change of 2006-02-24, so these files can continue
69842         to be sync'd from gettext.
69843         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69844         of `config.h'.
69845
69846 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69847
69848         * modules/intprops: New file.
69849         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69850         Add intprops.
69851         * modules/getloadavg (Files): Remove lib/intprops.h.
69852         (Depends-on): Add intprops.
69853         * modules/human: Likewise.
69854         * modules/inttostr: Likewise.
69855         * modules/openat: Likewise.
69856         * modules/sig2str: Likewise.
69857         * modules/userspec: Likewise.
69858         * modules/utimecmp: Likewise.
69859         * modules/xnanosleep: Likewise.
69860         * modules/xstrtol: Likewise.
69861
69862 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69863
69864         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69865         * modules/lock-tests (TESTS): Use $(EXEEXT).
69866         * modules/tls-tests: Likewise.
69867         * modules/argp-tests: Likewise.
69868         (check_PROGRAMS): New var, replacing...
69869         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69870
69871 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69872
69873         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69874         `config.h'.
69875
69876 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69877
69878         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69879
69880 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69881
69882         Sync from coreutils.
69883         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69884         gl_CHDIR_SAFER.
69885
69886 2006-02-22  Jim Meyering  <jim@meyering.net>
69887
69888         Sync from coreutils.
69889         * m4/chdir-safer.m4: New file.
69890
69891 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69894         AT_FDCWD exceeds INT_MAX.
69895         * lib/openat.h (AT_FDCWD): Likewise.
69896
69897 2006-02-17  Eric Blake  <address@hidden>
69898
69899         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69900
69901 2006-02-16  Simon Josefsson  <jas@extundo.com>
69902
69903         * modules/getaddrinfo (Depends-on): Add sys_socket.
69904
69905 2006-02-15  Simon Josefsson  <jas@extundo.com>
69906
69907         * build-aux/maint.mk: Add dsyntax-check rule.
69908
69909 2006-02-15  Eric Blake  <ebb9@byu.net>
69910
69911         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69912         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69913         'present but cannot compile' warnings on cygwin.
69914         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69915         use ws2tcpip.h if sys/socket.h works.
69916         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69917         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69918
69919 2006-02-14  Simon Josefsson  <jas@extundo.com>
69920
69921         * modules/maintainer-makefile (Files): Rename.
69922
69923         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69924         and (the local) Makefile.cfg to maint-cfg.mk.
69925
69926         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69927         to the latter.
69928
69929         * modules/maintainer-makefile: New module.
69930
69931         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69932         severaly stripped to make it possible to build it up from scratch
69933         with reliable tests.
69934
69935         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69936         fixes to permit overriding the default actions when configure and
69937         makefile are not available.
69938
69939 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         Sync from coreutils.
69942         * modules/lstat (Depends-on): Don't depend on xalloc.
69943         (License): Change from GPL to LGPL, since this is now simply a
69944         replacement for a libc function.
69945
69946 2006-02-14  Jim Meyering  <jim@meyering.net>
69947
69948         Sync from coreutils.
69949
69950         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69951         failure on deficient systems, and simplify gnulib lgpl dependencies.
69952         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69953         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69954
69955         * lib/xalloc-die.c: Remove unused definition of N_.
69956
69957 2006-02-14  Jim Meyering  <jim@meyering.net>
69958
69959         Sync from coreutils.
69960         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69961         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69962         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69963         double-quote uses of that variable, to accommodate the rare case in
69964         which getmntent is available in none of the libraries checked.  This
69965         happens at least on FreeBSD 5.0.
69966
69967 2006-02-13  Simon Josefsson  <jas@extundo.com>
69968
69969         * gnulib-tool (Usage): Fix --import, from
69970         karl@freefriends.org (Karl Berry).
69971
69972 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69973
69974         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69975
69976 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69977
69978         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69979         "autoupdate" on 2005-12-12.
69980
69981 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69982
69983         * modules/closeout (Depends-on): Remove atexit.
69984
69985 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69986
69987         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69988         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69989
69990 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69993         __EXTENSIONS__ if this causes compilation to fail.  Problem
69994         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69995         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69996
69997 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69998
69999         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
70000         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
70001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
70002         All uses changed.
70003
70004 2006-01-26  Simon Josefsson  <jas@extundo.com>
70005
70006         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
70007         prototype is visible on mingw32.
70008
70009         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
70010         for mingw32.
70011
70012         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
70013         mingw32).
70014
70015 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
70018         attempt to open for write; this always fails, at least on POSIX
70019         hosts.  This reinstates the 2006-01-09 change, which was
70020         inadvertently removed.
70021
70022 2006-01-26  Bruno Haible  <bruno@clisp.org>
70023
70024         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
70025         Reported by Paul Eggert.
70026
70027 2006-01-26  Bruno Haible  <bruno@clisp.org>
70028             Paul Eggert  <eggert@cs.ucla.edu>
70029
70030         * lib/stdbool_.h (_Bool)
70031         [(! (defined __cplusplus || defined __BEOS__)
70032           && !defined __GNUC__
70033           && !(defined __HP_cc || defined __xlc__
70034                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
70035                || defined __sgi))]:
70036         #define to signed char in these cases too; this simplifies
70037         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
70038         etc., separately) and makes it more conservative.
70039
70040 2006-01-25  Simon Josefsson  <jas@extundo.com>
70041
70042         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
70043         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
70044         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
70045
70046 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70047
70048         * lib/argp-namefrob.h: Bugfix. Remove stray #
70049
70050 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
70051
70052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
70053         so that we test the test.
70054         Check for yet another HP-UX cc bug involving *bool |= bool.
70055
70056 2006-01-25  Karl Berry  <karl@gnu.org>
70057
70058         * config/srclist.txt (vasnprintf.c): sync lost.
70059
70060 2006-01-25  Jim Meyering  <jim@meyering.net>
70061
70062         Sync from the stable (b5) branch of coreutils:
70063
70064         * lib/fts.c (fts_children): Don't let close() clobber errno from
70065         failed fchdir().
70066
70067         * lib/fts.c (fts_stat): When following a symlink-to-directory,
70068         don't necessarily interpret stat-fails+lstat-succeeds as indicating
70069         a dangling symlink.  That can also happen at least for ELOOP.
70070         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
70071         FYI, this bug predates the inclusion of fts.c in coreutils.
70072
70073         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
70074         in their own block, so pre-c99 compilers don't object.
70075
70076         Avoid the double-free (first in fts_read, second in fts_close) that
70077         would occur when an `active' directory is made inaccessible (e.g.,
70078         via chmod a-x) during a traversal.
70079         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70080         before returning.  Reproduce this failure by
70081         mkdir -p a/b; cd a; chmod a-x . b
70082         Reported by Stavros Passas.
70083
70084 2006-01-25  Jim Meyering  <jim@meyering.net>
70085
70086         * lib/fileblocks.c: Remove more useless parentheses.
70087         * lib/readutmp.h: Likewise.
70088
70089 2006-01-25  Bruno Haible  <bruno@clisp.org>
70090
70091         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
70092         warnings.
70093         Reported by Paul Eggert.
70094
70095 2006-01-25  Bruno Haible  <bruno@clisp.org>
70096
70097         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
70098         rid of a trap command. For Solaris sh.
70099         Reported by Mark D. Baushke <mdb@gnu.org>.
70100
70101 2006-01-24  Simon Josefsson  <jas@extundo.com>
70102
70103         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
70104         Bruno.
70105
70106 2006-01-24  Karl Berry  <karl@gnu.org>
70107
70108         * config/srclist.txt (argp-namefrob.h): sync lost.
70109
70110 2006-01-24  Jim Meyering  <jim@meyering.net>
70111
70112         * modules/openat (Files): Add lib/intprops.h.
70113         From Mark D. Baushke.
70114
70115 2006-01-24  Jim Meyering  <jim@meyering.net>
70116
70117         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
70118         Reported by Mark D. Baushke.
70119
70120 2006-01-24  Jim Meyering  <jim@meyering.net>
70121
70122         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
70123
70124 2006-01-24  Bruno Haible  <bruno@clisp.org>
70125
70126         * modules/strnlen (Maintainer): Change from glibc to all.
70127
70128 2006-01-24  Bruno Haible  <bruno@clisp.org>
70129
70130         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
70131         Patch by Paul Eggert.
70132
70133 2006-01-24  Bruno Haible  <bruno@clisp.org>
70134
70135         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
70136         already has it.
70137         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
70138         2005-11-26.
70139
70140         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
70141         'signed char' to avoid problems with the built-in _Bool type.
70142         Reported by Paul Eggert on 2005-11-26.
70143
70144 2006-01-24  Bruno Haible  <bruno@clisp.org>
70145
70146         * gnulib-tool (func_import): Avoid constructing complicated sed
70147         expressions inside backquote.
70148         Report and solution by Mark D. Baushke <mdb@gnu.org>.
70149
70150 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
70151
70152         These changes imported from libc.
70153         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
70154         test and two separate function calls.
70155         * lib/strndup.c (__strndup): Add libc_hidden_def.
70156
70157 2006-01-23  Simon Josefsson  <jas@extundo.com>
70158
70159         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
70160         Remove the test_*_SOURCES variable: automake infers it by default.
70161         * modules/tls-tests: Likewise.
70162
70163 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70164
70165         Work around porting bugs reported by Dieter in
70166         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
70167         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
70168         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
70169         Include "getopt.h" first, to check interface.
70170         (getenv): Declare only if defined HAVE_DECL_GETENV &&
70171         !HAVE_DECL_GETENV.
70172         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
70173         (__strndup): Revert to K&R-style function dfns, the glibc style.
70174         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
70175         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
70176         Include strnlen.h first, to get prototype properly.
70177         (strnlen): Renamed from __strnlen.
70178         Remove weak alias.
70179
70180 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70181
70182         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
70183
70184 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70185
70186         * config/srclist.txt: Adjust to reflect glibc reorganization.
70187         This affects only comments.
70188
70189 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70190
70191          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
70192          Reported by Bruce Korb <bkorb@gnu.org>.
70193
70194 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70195
70196         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
70197         to pacify gcc -Wswitch-default.
70198
70199 2006-01-22  Bruno Haible  <bruno@clisp.org>
70200
70201         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
70202         temporary buffer for sprintf, take into account the precision also
70203         for 'd', 'i', 'u', 'o', 'x', 'X'.
70204
70205 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70206
70207         * modules/argp-tests: New module
70208         * tests/test-argp.c: New file
70209         * tests/test-argp-2.sh: New file
70210
70211 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70212
70213         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
70214         (__argp_base_name): Removed
70215         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
70216         typo.
70217         (__argp_base_name): Provide macro definition or extern declaration
70218         depending on the configuration
70219
70220 2006-01-20  Simon Josefsson  <jas@extundo.com>
70221
70222         * modules/inet_ntop (Depends-on): Depend on sys_socket.
70223
70224 2006-01-20  Simon Josefsson  <jas@extundo.com>
70225
70226         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
70227
70228 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70229
70230         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
70231         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
70232         Suggested by Bruno Haible.
70233
70234 2006-01-20  Karl Berry  <karl@gnu.org>
70235
70236         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
70237         until changes propagate, I guess.
70238
70239 2006-01-19  Simon Josefsson  <jas@extundo.com>
70240
70241         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
70242
70243 2006-01-19  Simon Josefsson  <jas@extundo.com>
70244
70245         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
70246
70247 2006-01-19  Simon Josefsson  <jas@extundo.com>
70248
70249         * gnulib-tool: Set check_PROGRAMS.
70250
70251         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70252         modules/des-tests, modules/gc-arcfour-tests,
70253         modules/gc-arctwo-tests, modules/gc-des-tests,
70254         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70255         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70256         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70257         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70258         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70259         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
70260         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
70261         test_*_SOURCES.
70262
70263 2006-01-18  Simon Josefsson  <jas@extundo.com>
70264
70265         * modules/socklen (Depends-on): Depend on sys_socket.
70266
70267 2006-01-18  Simon Josefsson  <jas@extundo.com>
70268
70269         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70270         modules/des-tests, modules/gc-arcfour-tests,
70271         modules/gc-arctwo-tests, modules/gc-des-tests,
70272         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70273         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70274         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70275         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70276         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70277         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
70278         $(EXEEXT) to automake TESTS variable, for mingw32.
70279
70280 2006-01-17  Simon Josefsson  <jas@extundo.com>
70281
70282         * modules/socklen (Include): Need sys/socket.h.
70283
70284 2006-01-17  Bruno Haible  <bruno@clisp.org>
70285
70286         * modules/ssize_t (Include): Add <sys/types.h>.
70287
70288 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
70289
70290         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
70291         it's not portable and it doesn't work with cross-compiles.
70292         Problem reported by Bruno Haible.  Fix missing-$ typo in
70293         'test "gl_cv_ignore_unused_libraries" ...' that prevented
70294         -zignore from being used with Sun's C compiler.
70295
70296 2006-01-12  Simon Josefsson  <jas@extundo.com>
70297
70298         * lib/base64.c: Fix warning, reported by Bruno Haible
70299         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
70300
70301 2006-01-12  Bruno Haible  <bruno@clisp.org>
70302
70303         * modules/ldd: New file.
70304         * build-aux/ldd.sh.in: New file.
70305         * MODULES.html.sh (Support for building libraries and executables): Add
70306         ldd.
70307
70308 2006-01-12  Bruno Haible  <bruno@clisp.org>
70309
70310         * m4/ldd.m4: New file.
70311
70312 2006-01-12  Bruno Haible  <bruno@clisp.org>
70313
70314         * gnulib-tool (func_import, func_create_testdir): Don't go into an
70315         endless loop while replacing $auxdir with build-aux.
70316
70317 2006-01-11  Simon Josefsson  <jas@extundo.com>
70318
70319         * lib/stdint_.h (SIZE_MAX): Add missing (.
70320
70321 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         Sync from coreutils.
70324         * lib/md5.c: Fix commentary typos.
70325         (alignof, UNALIGNED_P): No need for a GCC-specific version.
70326         * lib/md5.h (__attribute__): Remove; unused.
70327         * lib/sha1.c: Fix commentary to match md5 better.
70328         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
70329         so that we don't need to worry about alignment.  All uses changed.
70330         This merges the 2005-10-28 md5 change into sha1.
70331
70332 2006-01-11  Jim Meyering  <jim@meyering.net>
70333
70334         Sync from coreutils.
70335         * lib/md5.c (OP): Fix spacing.
70336
70337 2006-01-11  Bruno Haible  <bruno@clisp.org>
70338
70339         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70340         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
70341         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
70342
70343 2006-01-11  Bruno Haible  <bruno@clisp.org>
70344
70345         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70346         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
70347         the "early" section as well.
70348
70349 2006-01-11  Bruno Haible  <bruno@clisp.org>
70350
70351         Avoid "ar: no archive members specified" error on MacOS X.
70352         * gnulib-tool (func_modules_add_dummy): New function.
70353         (func_import, func_create_testdir): Invoke it.
70354
70355 2006-01-11  Bruno Haible  <bruno@clisp.org>
70356
70357         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
70358         with $auxdir in AC_CONFIG_FILES statements.
70359
70360 2006-01-11  Bruno Haible  <bruno@clisp.org>
70361
70362         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70363         Initialize also noinst_HEADERS to empty.
70364
70365 2006-01-11  Bruno Haible  <bruno@clisp.org>
70366
70367         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
70368         variables.
70369         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
70370         autoreconf.
70371
70372 2006-01-11  Bruno Haible  <bruno@clisp.org>
70373
70374         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
70375         overridable by the user.
70376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70377
70378 2006-01-10  Simon Josefsson  <jas@extundo.com>
70379
70380         * modules/sys_socket: New file.
70381
70382 2006-01-10  Simon Josefsson  <jas@extundo.com>
70383
70384         * m4/sys_socket_h.m4: New file.
70385
70386 2006-01-10  Simon Josefsson  <jas@extundo.com>
70387
70388         * lib/socket_.h: New file.
70389
70390 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         * modules/readutmp (Maintainer): Add myself.
70393
70394 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70395
70396         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
70397         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
70398         People who are still concerned with buggy memcmp implementations
70399         can invoke gl_FUNC_MEMCMP themselves.
70400
70401 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         * lib/regex_internal.h (BITSET_WORD_BITS):
70404         Work around a bug in 64-bit PGC (before version 6.1-2), where the
70405         preprocessor mishandles large unsigned values as if they were signed.
70406         Problem reported by Claudio Fontana in
70407         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
70408
70409 2006-01-10  Jim Meyering  <jim@meyering.net>
70410
70411         Avoid the double-free (first in fts_read, second in fts_close) that
70412         would occur when an `active' directory is made inaccessible (e.g.,
70413         via chmod a-x) during a traversal.
70414         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70415         before returning.  Reproduce this failure by
70416         mkdir -p a/b; cd a; chmod a-x . b
70417         Reported by Stavros Passas.
70418
70419         Sync from coreutils.
70420         * lib/sha1.c: Tweak grammar in a comment.
70421
70422 2006-01-10  Jim Meyering  <jim@meyering.net>
70423
70424         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
70425         Patch by Joerg Sonnenberger.
70426
70427 2006-01-10  Bruno Haible  <bruno@clisp.org>
70428
70429         * modules/readutmp: Depend on module free.
70430         * modules/strtok_r: Depend on module restrict.
70431
70432 2006-01-10  Bruno Haible  <bruno@clisp.org>
70433
70434         * modules/gettext (configure.ac): Add an invocation of
70435         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
70436
70437 2006-01-10  Bruno Haible  <bruno@clisp.org>
70438
70439         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
70440         Reported by Werner Lemberg <wl@gnu.org>.
70441
70442 2006-01-10  Bruno Haible  <bruno@clisp.org>
70443
70444         * lib/localcharset.c: Update from GNU gettext.
70445
70446 2006-01-10  Bruno Haible  <bruno@clisp.org>
70447
70448         * lib/argp.h (__const): Remove macro. Use const instead.
70449         * lib/argp-fmtstream.h (__const): Likewise.
70450         * lib/glob_.h (__const): Remove macro.
70451         * lib/glob-libc.h: Use const instead of __const.
70452
70453 2006-01-10  Bruno Haible  <bruno@clisp.org>
70454
70455         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
70456         variable.
70457         Needed to avoid an automake error regarding the 'gettext' module.
70458
70459 2006-01-09  Simon Josefsson  <jas@extundo.com>
70460
70461         * modules/inet_ntop (Depends-on): Add restrict.
70462
70463 2006-01-09  Simon Josefsson  <jas@extundo.com>
70464
70465         * modules/gc-rijndael-tests (License): Put under LGPL.
70466
70467         * modules/gc-des-tests (License): Likewise.
70468
70469         * modules/gc-arcfour-tests (License): Likewise.
70470
70471         * modules/gc-arctwo-tests (License): Likewise.
70472
70473         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
70474
70475         * modules/gc-hmac-sha1-tests (Files): Likewise.
70476
70477         * modules/gc-hmac-md5-tests (License): Likewise.
70478
70479         * modules/gc-sha1-tests (License): Likewise.
70480
70481         * modules/gc-md5-tests (License): Likewise.
70482
70483         * modules/gc-md4-tests (License): Likewise.
70484
70485         * modules/gc-md2-tests (License): Likewise.
70486
70487         * modules/gc-tests (License): Likewise.
70488
70489         * modules/des-tests (License): Likewise.
70490
70491         * modules/md4-tests (License): Likewise.
70492
70493         * modules/md2-tests (License): Likewise.
70494
70495 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70496
70497         Sync from coreutils:
70498
70499         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
70500         * modules/lib-ignore: New file.
70501         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
70502         chdir-safer.m4, lchmod.m4.
70503         * modules/openat: Add mkdirat.c, openat-priv.h.
70504
70505 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70506
70507         Sync from coreutils.
70508         * m4/lib-ignore.m4: New file.
70509         * m4/lchmod.m4: New file.
70510
70511 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         Sync from coreutils.
70514         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70515         for write access: POSIX says that must fail.
70516         * lib/fts.c (diropen): Likewise.
70517         * lib/save-cwd.c (save_cwd): Likewise.
70518         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70519         well, for minor improvements on hosts that lack O_DIRECTORY.
70520         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70521         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70522         Fall back on chown if open failed with EACCES.
70523
70524         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70525         Report an error at compile-time if only a 1-second nominal clock
70526         resolution is found.
70527
70528         * lib/lchmod.h: New file.
70529         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70530         (make_dir_parents): Use lchown rather than chown, and
70531         lchmod rather than chmod.
70532
70533         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70534         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70535         "proc" reported by n0dalus.
70536
70537         * lib/mountlist.c: Include <limits.h>.
70538         (dev_from_mount_options)
70539         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70540         New function.  It no longer assumes "dev=" has the System V meaning
70541         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70542         (read_file_system_list)
70543         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70544         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70545         dev= in that case.
70546
70547         * lib/posixtm.h (PDS_PRE_2000): New macro.
70548         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70549         allow_century.  All usages changed.  Reject dates outside the range
70550         1969-1999 if PDS_PRE_2000 is used.
70551
70552 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70553
70554         Sync from coreutils.
70555         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70556         (Time of day items): Mention the possibility of leap seconds.
70557         Problem reported by Dr. David Alan Gilbert.
70558
70559 2006-01-09  Jim Meyering  <jim@meyering.net>
70560
70561         Sync from coreutils.
70562
70563         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70564
70565         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70566
70567         * lib/modechange.c (mode_compile): Reject an invalid mode string
70568         that starts with an octal digit.  From Andreas Gruenbacher.
70569
70570         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70571         and dup to open_safer and dup_safer, respectively.
70572         (openat_permissive): Fix typo in comment.
70573
70574         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70575         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70576         (_): Remove; no longer needed.
70577         (openat): Renamed from rpl_openat; no need for rpl_openat
70578         since openat.h renames openat for us.
70579         Replace most of the body with a call to openat_permissive,
70580         to avoid duplicate code.
70581         Port to (probably hypothetical) environments were mode_t is
70582         wider than int.
70583         (openat_permissive): Require mode arg, so that we can check
70584         types better.  Put it just after flags.  Change cwd failure
70585         indicator from pointer-to-bool to pointer-to-errno-value.
70586         All callers changed.
70587         Invoke openat_save_fail and/or openat_restore_fail if
70588         cwd_errno is null, so that openat can call us.
70589         (openat_permissive, fdopendir, fstatat, unlinkat):
70590         Simplify errno handling to avoid some duplicate code,
70591         as it's OK to set errno on success.
70592         * lib/openat.h: Revamp code so that function macros depend on
70593         __OPENAT_PREFIX only, not also on AT_FDCWD.
70594         (openat_ro): Remove.  Caller changed to use openat_permissive.
70595         (openat_permissive): Now a macro, if not a function.
70596         (openat_restore_fail, openat_save_fail): Now always functions,
70597         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70598
70599         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70600         and openat.c.
70601         * lib/mkdirat.c: Include openat-priv.h.
70602         Remove definitions of macros defined therein.
70603         * lib/openat.c: Likewise.
70604
70605         * lib/mkdirat.c (mkdirat): New file and function.
70606         * lib/openat.h (mkdirat): Declare.
70607
70608         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70609
70610         * lib/openat.h (openat_permissive): Declare.
70611         (openat_ro): Define.
70612
70613         * lib/openat.c (EXPECTED_ERRNO): New macro.
70614         (openat_permissive): New function -- used in remove.c rewrite.
70615         (all functions): Set errno just before returning, only if there
70616         was an actual failure.
70617         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70618
70619         Emulate openat-family functions using Linux's procfs, if possible.
70620         Idea and some code based on Ulrich Drepper's glibc changes.
70621
70622         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70623         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70624         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70625         before falling back on save_cwd and restore_cwd.
70626         (fdopendir, fstatat, unlinkat): Likewise.
70627
70628         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70629         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70630
70631         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70632         as second argument to va_arg.  Otherwise, some versions of gcc
70633         warn that `if this code is reached, the program will abort'.
70634
70635 2006-01-09  Jim Meyering  <jim@meyering.net>
70636
70637         Sync from coreutils.
70638         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70639         Require openat-priv.h.
70640
70641 2006-01-09  Bruno Haible  <bruno@clisp.org>
70642
70643         * modules/strnlen (Include): Use strnlen.h.
70644
70645 2006-01-09  Bruno Haible  <bruno@clisp.org>
70646
70647         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70648
70649 2006-01-09  Bruno Haible  <bruno@clisp.org>
70650
70651         * lib/sysexit_.h (EX_OK): New macro.
70652         Suggested by Martin Lambers <marlam@marlam.de>.
70653
70654 2006-01-09  Bruno Haible  <bruno@clisp.org>
70655
70656         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70657         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70658
70659 2006-01-09  Bruno Haible  <bruno@clisp.org>
70660
70661         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70662         numbers.
70663
70664 2006-01-09  Bruno Haible  <bruno@clisp.org>
70665
70666         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70667         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70668         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70669         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70670
70671 2006-01-09  Bruno Haible  <bruno@clisp.org>
70672
70673         * build-aux/javacomp.sh.in: New file, moved from lib/.
70674         * modules/javacomp-script (Files): Update.
70675         (configure.ac): Add AC_CONFIG_FILES invocation.
70676         (EXTRA_DIST): Remove variable.
70677
70678         * build-aux/javaexec.sh.in: New file, moved from lib/.
70679         * modules/javaexec (Files): Update.
70680         (configure.ac): Add AC_CONFIG_FILES invocation.
70681         (EXTRA_DIST): Remove javaexec.sh.in.
70682
70683         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70684         * modules/csharpcomp-script (Files): Update.
70685         (configure.ac): Add AC_CONFIG_FILES invocation.
70686         (EXTRA_DIST): Remove variable.
70687
70688         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70689         * modules/csharpexec (Files): Update.
70690         (configure.ac): Add AC_CONFIG_FILES invocation.
70691         (EXTRA_DIST): Remove csharpexec.sh.in.
70692
70693 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70694
70695         Sync from coreutils.
70696
70697         Add POSIX ACL support
70698         * lib/acl.h (copy_acl, set_acl): Add declarations.
70699         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70700         systems other than Linux.
70701         (chmod_or_fchmod): New function: use fchmod when possible,
70702         and chmod otherwise.
70703         (file_has_acl): Add a POSIX ACL implementation, with a
70704         Linux-specific subcase.
70705         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70706         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70707         acls are unsupported.
70708         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70709         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70710         are unsupported.
70711
70712 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70713
70714         Sync from coreutils.
70715         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70716
70717 2006-01-07  Bruno Haible  <bruno@clisp.org>
70718
70719         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70720         gl_EARLY.
70721
70722 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70725         Problem reported for Mingw by Mark Junker.
70726
70727 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         * README: Gnulib normally doesn't generate a tarball.
70730
70731 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70734         long int, not int, for nanosecond counts, so that people who are
70735         used to POSIX struct timespec won't be surprised.  Reported by Jim
70736         Meyering.
70737
70738 2005-12-28  Bruno Haible  <bruno@clisp.org>
70739
70740         * build-aux/config.rpath: Update from GNU gettext.
70741
70742 2005-12-16  Jim Meyering  <jim@meyering.net>
70743
70744         * modules/fprintftime: New module.
70745         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70746
70747 2005-12-16  Jim Meyering  <jim@meyering.net>
70748
70749         * m4/fprintftime.m4: New file.
70750
70751 2005-12-16  Jim Meyering  <jim@meyering.net>
70752
70753         * lib/fprintftime.c, lib/fprintftime.h: New files.
70754
70755 2005-12-15  Simon Josefsson  <jas@extundo.com>
70756
70757         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70758         new m4/socklen.m4.
70759
70760 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70761
70762         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70763         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70764
70765 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70766
70767         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70768         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70769         struct uparams is valid. Fall back to the default values if it is
70770         not.
70771
70772 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70773
70774         * modules/argp (Files): Add argp-pin.c
70775         (Depends-on): dirname
70776         (lib_SOURCES): Add argp-pin.c
70777
70778 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70779
70780         * m4/argp.m4:  Check if program_invocation_name and
70781         program_invocation_short_name are declared and define appropriate
70782         macros if they are not.
70783
70784 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70785
70786         * lib/argp-help.c (__argp_base_name): New function
70787         (__argp_short_program_name): Rewrite using __argp_base_name
70788         * lib/argp-namefrob.h: Define program_invocation_name and
70789         program_invocation_short_name if requested
70790         (__argp_base_name): Add prototype
70791         * lib/argp-parse.c (argp_def): Use gettext wrappers
70792         (argp_default_parser): Use __argp_base_name
70793         * lib/argp-pin.c: New file. Defines program_invocation_name and
70794         program_invocation_short_name on systems that lack them.
70795
70796 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70799         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70800         porting problem reported by Georg Schwarz in
70801         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70802
70803 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70806         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70807         porting problem reported by Georg Schwarz in
70808         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70809
70810 2005-12-05  Bruno Haible  <bruno@clisp.org>
70811
70812         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70813         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70814         Reported by Mark Junker <mjscod@gmx.de>.
70815
70816 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70817
70818         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70819         Use implementation from Albert Chin, with some
70820         comments/corrections by Stepan Kasal and myself.
70821
70822 2005-12-02  Bruno Haible  <bruno@clisp.org>
70823
70824         * gnulib-tool (func_import): Accept GPLed build tool modules when
70825         --lgpl is given.
70826         * modules/csharpcomp-script: New file.
70827         * modules/csharpcomp: Depend on it.
70828         * modules/javacomp-script: New file.
70829         * modules/javacomp: Depend on it.
70830         Suggested by Simon Josefsson.
70831
70832 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70833
70834         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70835         statement, to work around an HP-UX 10.20 compiler bug reported by
70836         Peter O'Gorman.
70837
70838 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * modules/savedir (Depends-on): Add openat.
70841
70842 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70845         (uintmax_t) [defined uintmax_t]: Do not declare.
70846         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70847         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70848         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70849         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70850         sake of portability to weird hosts that C allows (though we don't
70851         know of any practical examples).
70852
70853         * lib/savedir.h (fdsavedir): New decl.
70854         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70855         contains most of the former guts of savedir.
70856         (savedir): Use savedirstream.
70857         Include "openat.h".
70858
70859 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         * modules/obstack (Files): Add m4/ulonglong.m4.
70862         Problem reported by Davide Angelocola.
70863
70864 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70865
70866         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70867         coreutils no longer futzes with rounding modes.
70868
70869 2005-11-14  Jim Meyering  <jim@meyering.net>
70870
70871         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70872         replacement of mkstemp.
70873
70874 2005-11-10  Simon Josefsson  <jas@extundo.com>
70875
70876         * lib/readline.c: Remove EOL.
70877
70878 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70879
70880         * modules/gethrxtime (Depends-on): Add gettime.
70881
70882 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70885         or gettimeofday; no longer needed.
70886
70887 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70888
70889         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70890         time business.
70891         (gethrxtime) [! (HAVE_NANOUPTIME
70892         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70893         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70894         our own approximation.
70895
70896 2005-11-08  Eric Blake  <ebb9@byu.net>
70897
70898         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70899
70900 2005-11-08  Eric Blake  <ebb9@byu.net>
70901
70902         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70903
70904 2005-11-04  Bruno Haible  <bruno@clisp.org>
70905
70906         * gnulib-tool: Implement --update mode.
70907
70908 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70909
70910         Fix porting problem reported by Theodoros V. Kalamatianos.
70911         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70912         Don't assume that futimes failing means we must fail.
70913
70914 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70917         variables to suggest the intended function of the PATH_MAX check.
70918
70919 2005-10-30  Kean Johnston  <jkj@sco.com>
70920
70921         Trivial changes to support SCO systems.
70922         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70923         as PATH_MAX.
70924         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70925         where __ptr is null when no I/O is pending.
70926
70927 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70928
70929         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70930         leave errno alone.  Problem reported by Dmitry V. Levin.
70931
70932 2005-10-28  Simon Josefsson  <jas@extundo.com>
70933
70934         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70935         Test more.
70936
70937         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70938
70939         * modules/md2, modules/md2-tests: New files.
70940
70941 2005-10-28  Simon Josefsson  <jas@extundo.com>
70942
70943         * m4/inet_ntop.m4: More tests.
70944
70945         * m4/gc-md2.m4, md2.m4: New file.
70946
70947 2005-10-28  Simon Josefsson  <jas@extundo.com>
70948
70949         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70950         "restrict" keywords, as per POSIX.  Protect the function
70951         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70952         Don't use K&R prototypes.  Check the sprintf return values.
70953         Re-define EAFNOSUPPORT if not present.  Indent.
70954
70955         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70956         suggested by Bruno Haible <bruno@clisp.org>.
70957
70958         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70959
70960         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70961
70962         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70963         libgcrypt).
70964
70965         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70966
70967         * lib/md2.h, lib/md2.c: New files.
70968
70969 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70972         errno alone.  Problem reported by Frederic Jolliton.
70973
70974 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * modules/verify (License): Change from GPL to LGPL.  This is a
70977         tiny module and there are apparently near-equivalents that are
70978         under the BSD license.
70979
70980 2005-10-24  Simon Josefsson  <jas@extundo.com>
70981
70982         * modules/sha1: Relicense to LGPL.
70983
70984 2005-10-24  Simon Josefsson  <jas@extundo.com>
70985
70986         * lib/md4.h: Shrink buffer size, now that we changed the type.
70987
70988 2005-10-23  Simon Josefsson  <jas@extundo.com>
70989
70990         * gnulib-tool (func_import): Fix --tests-base.
70991
70992 2005-10-22  Simon Josefsson  <jas@extundo.com>
70993
70994         * modules/arcfour (Depends-on): Need stdint.
70995
70996 2005-10-22  Simon Josefsson  <jas@extundo.com>
70997
70998         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70999         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
71000
71001 2005-10-22  Simon Josefsson  <jas@extundo.com>
71002
71003         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
71004         suggested by Bruno Haible <bruno@clisp.org>.
71005
71006 2005-10-22  Simon Josefsson  <jas@extundo.com>
71007
71008         * lib/crc.h: Include stddef.h, for size_t.
71009
71010 2005-10-22  Simon Josefsson  <jas@extundo.com>
71011
71012         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
71013         arcfour_context struct (simplify test vector testing in GNU
71014         Shishi).
71015
71016 2005-10-21  Simon Josefsson  <jas@extundo.com>
71017
71018         * modules/des, modules/des-tests: New files.
71019
71020         * modules/gc-des, modules/gc-des-tests: New files.
71021
71022         * tests/test-des.c, tests/test-gc-des.c: New file.
71023
71024 2005-10-21  Simon Josefsson  <jas@extundo.com>
71025
71026         * modules/arctwo, modules/arctwo-tests: New files.
71027
71028         * tests/test-arctwo.c: New file.
71029
71030         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
71031
71032         * tests/test-gc-arctwo.c: New file.
71033
71034 2005-10-21  Simon Josefsson  <jas@extundo.com>
71035
71036         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
71037         Bruno Haible <bruno@clisp.org>.
71038
71039         * m4/gc-des.m4: New file.
71040
71041 2005-10-21  Simon Josefsson  <jas@extundo.com>
71042
71043         * m4/arctwo.m4: New file.
71044
71045         * m4/gc-arctwo.m4: New file.
71046
71047 2005-10-21  Simon Josefsson  <jas@extundo.com>
71048
71049         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
71050         block.
71051
71052 2005-10-21  Simon Josefsson  <jas@extundo.com>
71053
71054         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
71055         <bruno@clisp.org>.
71056
71057         * lib/hmac-sha1.c (hmac_sha1): Likewise.
71058
71059         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
71060         Bruno Haible <bruno@clisp.org>.
71061
71062         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
71063         <bruno@clisp.org>.
71064
71065 2005-10-21  Simon Josefsson  <jas@extundo.com>
71066
71067         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
71068
71069 2005-10-21  Simon Josefsson  <jas@extundo.com>
71070
71071         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
71072
71073 2005-10-21  Simon Josefsson  <jas@extundo.com>
71074
71075         * lib/des.h, lib/des.c: New files.
71076
71077         * lib/gc-gnulib.c: Support DES.c
71078
71079 2005-10-21  Simon Josefsson  <jas@extundo.com>
71080
71081         * lib/arctwo.h, lib/arctwo.c: New files.
71082
71083         * lib/gc-gnulib.c: Support ARCTWO.
71084
71085 2005-10-21  Simon Josefsson  <jas@extundo.com>
71086
71087         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
71088         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71089
71090 2005-10-21  Simon Josefsson  <jas@extundo.com>
71091
71092         * gnulib-tool (func_import, func_create_testdir): Define automake
71093         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
71094         Makefile.am snippet),
71095         suggested by Bruno Haible <bruno@clisp.org>.
71096
71097         * modules/gc (Makefile.am): Use it.
71098
71099 2005-10-21  Bruno Haible  <bruno@clisp.org>
71100
71101         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
71102         patch.
71103
71104 2005-10-19  Simon Josefsson  <jas@extundo.com>
71105
71106         * tests/test-gc-rijndael.c: New file.
71107
71108         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
71109
71110 2005-10-19  Simon Josefsson  <jas@extundo.com>
71111
71112         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
71113         interface too.
71114
71115 2005-10-19  Simon Josefsson  <jas@extundo.com>
71116
71117         * tests/test-gc-arcfour.c: New file.
71118
71119         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
71120
71121 2005-10-19  Simon Josefsson  <jas@extundo.com>
71122
71123         * modules/gc-md4, modules/gc-md4-tests: New file.
71124
71125         * tests/test-gc-md4.c: New file.
71126
71127 2005-10-19  Simon Josefsson  <jas@extundo.com>
71128
71129         * m4/gc-md4.m4: New file.
71130
71131 2005-10-19  Simon Josefsson  <jas@extundo.com>
71132
71133         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
71134         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
71135         <kasal@ucw.cz>.
71136
71137 2005-10-19  Simon Josefsson  <jas@extundo.com>
71138
71139         * m4/gc-arcfour.m4: New file.
71140
71141         * m4/gc-rijndael.m4: New file.
71142
71143 2005-10-19  Simon Josefsson  <jas@extundo.com>
71144
71145         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
71146
71147 2005-10-19  Simon Josefsson  <jas@extundo.com>
71148
71149         * lib/gc-gnulib.c: Support ARCFOUR.
71150
71151 2005-10-19  Simon Josefsson  <jas@extundo.com>
71152
71153         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
71154         support.
71155
71156         * lib/gc.h: Add ECB enum type.
71157
71158         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
71159
71160 2005-10-18  Simon Josefsson  <jas@extundo.com>
71161
71162         * tests/test-md5.c: New file.
71163
71164         * modules/md5-tests: New file.
71165
71166 2005-10-18  Simon Josefsson  <jas@extundo.com>
71167
71168         * tests/test-md4.c: New file.
71169
71170         * modules/md4, modules/md4-tests: New files.
71171
71172 2005-10-18  Simon Josefsson  <jas@extundo.com>
71173
71174         * m4/md4.m4: New file.
71175
71176 2005-10-18  Simon Josefsson  <jas@extundo.com>
71177
71178         * lib/md4.h, lib/md4.c: New files, based on md5.?.
71179
71180 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
71181
71182         * gnulib-tool (func_create_testdir): Omit the second check whether
71183         BUILT_SOURCES in nonempty.
71184
71185 2005-10-17  Simon Josefsson  <jas@extundo.com>
71186
71187         * tests/test-rijndael.c: New file.
71188
71189 2005-10-17  Simon Josefsson  <jas@extundo.com>
71190
71191         * modules/sha1: Depend on stdint instead of md5.
71192
71193         * modules/md5: Depend on stdint, remove uint32_t.
71194
71195 2005-10-17  Simon Josefsson  <jas@extundo.com>
71196
71197         * modules/gc-sha1-tests: New file.
71198
71199         * tests/test-gc-sha1.c: New file.
71200
71201 2005-10-17  Simon Josefsson  <jas@extundo.com>
71202
71203         * m4/md5.m4: Remove call to uint32_t.m4.
71204
71205 2005-10-17  Simon Josefsson  <jas@extundo.com>
71206
71207         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
71208
71209         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
71210         md5.h.
71211
71212         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
71213
71214         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
71215
71216 2005-10-17  Simon Josefsson  <jas@extundo.com>
71217
71218         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
71219
71220 2005-10-17  Simon Josefsson  <jas@extundo.com>
71221
71222         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
71223
71224 2005-10-17  Simon Josefsson  <jas@extundo.com>
71225
71226         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
71227
71228         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
71229
71230 2005-10-17  Bruno Haible  <bruno@clisp.org>
71231
71232         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
71233         that it can also be used in a test.
71234
71235 2005-10-16  Bruno Haible  <bruno@clisp.org>
71236
71237         * gnulib-tool (func_emit_tests_Makefile_am): Also define
71238         TESTS_ENVIRONMENT, so that individual tests can augment it.
71239
71240         * gnulib-tool (func_create_testdir): Use an intermediate target for
71241         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
71242         macros, like $(ALLOCA_H), which cannot be passed through the command
71243         line.
71244
71245 2005-10-15  Simon Josefsson  <jas@extundo.com>
71246
71247         * modules/rijndael-tests: New file.
71248
71249         * modules/rijndael: New file.
71250
71251 2005-10-15  Simon Josefsson  <jas@extundo.com>
71252
71253         * m4/rijndael.m4: New file.
71254
71255 2005-10-15  Simon Josefsson  <jas@extundo.com>
71256
71257         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71258
71259         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
71260
71261 2005-10-14  Simon Josefsson  <jas@extundo.com>
71262
71263         * tests/test-arcfour.c: New file.
71264
71265         * modules/arcfour, modules/arcfour-tests: New files.
71266
71267 2005-10-14  Simon Josefsson  <jas@extundo.com>
71268
71269         * m4/arcfour.m4: New file.
71270
71271 2005-10-14  Simon Josefsson  <jas@extundo.com>
71272
71273         * lib/arcfour.h, lib/arcfour.c: New files.
71274
71275 2005-10-14  Roland McGrath  <roland@redhat.com>
71276
71277         Import from libc.  [BZ #1331]
71278         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
71279         macro argument.
71280         Reported by Matej Vela <vela@debian.org>.
71281
71282 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
71285         include <wchar.h>; no longer needed.
71286
71287 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71288
71289         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
71290
71291 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
71292         and  Ulrich Drepper  <drepper@redhat.com>
71293
71294         Import from libc.
71295         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
71296         instead of inline stream orientation test and two separate
71297         function calls.  Pay no attention to USE_IN_LIBIO.
71298
71299 2005-10-13  Simon Josefsson  <jas@extundo.com>
71300
71301         * modules/gc-hmac-md5-tests: New file.
71302
71303         * tests/test-gc-hmac-sha1.c: New file.
71304
71305         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
71306
71307         * modules/gc-hmac-md5-tests: New file.
71308
71309         * tests/test-gc-md5.c: New file.
71310
71311         * modules/gc-md5-tests: New file.
71312
71313 2005-10-13  Simon Josefsson  <jas@extundo.com>
71314
71315         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
71316         Move memory allocation outside of loop.
71317
71318 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
71319
71320         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
71321         intermediate directory is in a read-only file system.  Problem
71322         reported by Eric Blake.
71323
71324 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
71325
71326         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
71327
71328 2005-10-12  Simon Josefsson  <jas@extundo.com>
71329
71330         * tests/test-hmac-sha1.c: New file.
71331
71332         * modules/hmac-sha1-tests: New file.
71333
71334         * modules/hmac-sha1: New file.
71335
71336 2005-10-12  Simon Josefsson  <jas@extundo.com>
71337
71338         * modules/gc-sha1: New file.
71339
71340 2005-10-12  Simon Josefsson  <jas@extundo.com>
71341
71342         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
71343
71344         * tests/test-gc-pbkdf2-sha1.c: New file.
71345
71346 2005-10-12  Simon Josefsson  <jas@extundo.com>
71347
71348         * modules/gc-md5, modules/gc-hmac-md5: New files.
71349
71350         * modules/gc (Files): Remove md5, memxor and hmac files.
71351
71352 2005-10-12  Simon Josefsson  <jas@extundo.com>
71353
71354         * m4/gc-pbkdf2-sha1.m4: New file.
71355
71356         * m4/gc-hmac-sha1.m4: New file.
71357
71358         * m4/gc-sha1: New file.
71359
71360         * m4/hmac-sha1.m4: New file.
71361
71362 2005-10-12  Simon Josefsson  <jas@extundo.com>
71363
71364         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
71365
71366         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
71367
71368 2005-10-12  Simon Josefsson  <jas@extundo.com>
71369
71370         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
71371         suggested by Bruno Haible <bruno@clisp.org>.
71372
71373 2005-10-12  Simon Josefsson  <jas@extundo.com>
71374
71375         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
71376
71377 2005-10-12  Simon Josefsson  <jas@extundo.com>
71378
71379         * lib/gc-pbkdf2-sha1.c: New file.
71380
71381         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
71382
71383 2005-10-12  Simon Josefsson  <jas@extundo.com>
71384
71385         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
71386
71387         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
71388
71389 2005-10-12  Simon Josefsson  <jas@extundo.com>
71390
71391         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
71392         GC_USE_HMAC_MD5, respectively.
71393
71394         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
71395         (gc_md5): Fix typo.
71396
71397         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
71398
71399         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
71400
71401         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
71402
71403 2005-10-12  Bruno Haible  <bruno@clisp.org>
71404
71405         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
71406         Reported by Stepan Kasal <kasal@ucw.cz>.
71407
71408 2005-10-11  Simon Josefsson  <jas@extundo.com>
71409
71410         * tests/test-crc.c: New file.
71411
71412         * modules/crc, modules/crc-tests: New files.
71413
71414 2005-10-11  Simon Josefsson  <jas@extundo.com>
71415
71416         * m4/crc.m4: New file.
71417
71418 2005-10-11  Simon Josefsson  <jas@extundo.com>
71419
71420         * lib/gc.h: Add gc_hash and gc_hash_buffer.
71421
71422         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
71423
71424         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
71425
71426 2005-10-11  Simon Josefsson  <jas@extundo.com>
71427
71428         * lib/crc.h, lib/crc.c: New files.
71429
71430         * lib/gc.h (gc_hash_buffer): Add doc.
71431
71432 2005-10-11  Bruno Haible  <bruno@clisp.org>
71433
71434         * modules/c-strcasestr: New file.
71435         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
71436
71437 2005-10-11  Bruno Haible  <bruno@clisp.org>
71438
71439         * modules/c-strcase: New file.
71440         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
71441
71442 2005-10-11  Bruno Haible  <bruno@clisp.org>
71443
71444         * lib/strcasecmp.c: Include limits.h.
71445         (strcasecmp): Avoid integer overflow on exotic platforms.
71446         * lib/strncasecmp.c: Include limits.h.
71447         (strncasecmp): Avoid integer overflow on exotic platforms.
71448         Reported by Paul Eggert.
71449
71450 2005-10-11  Bruno Haible  <bruno@clisp.org>
71451
71452         * lib/c-strcasestr.h: New file, from GNU gettext.
71453         * lib/c-strcasestr.c: New file, from GNU gettext.
71454
71455 2005-10-11  Bruno Haible  <bruno@clisp.org>
71456
71457         * lib/c-strcase.h: New file, from GNU gettext.
71458         * lib/c-strcasecmp.c: New file, from GNU gettext.
71459         * lib/c-strncasecmp.c: New file, from GNU gettext.
71460
71461 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71462
71463         * modules/mempcpy (License): GPL -> LGPL.
71464         * modules/strchrnul (License): Likewise.
71465         * modules/sysexits (License): Likewise.
71466
71467 2005-10-08  Simon Josefsson  <jas@extundo.com>
71468
71469         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
71470
71471 2005-10-07  Simon Josefsson  <jas@extundo.com>
71472
71473         * m4/memxor.m4: Remove gl_C_RESTRICT call.
71474
71475 2005-10-06  Simon Josefsson  <jas@extundo.com>
71476
71477         * tests/test-hmac-md5.c: New file.
71478
71479         * modules/hmac-md5-tests: New file.
71480
71481         * modules/hmac-md5: New file.
71482
71483 2005-10-06  Simon Josefsson  <jas@extundo.com>
71484
71485         * m4/hmac-md5.m4: New file.
71486
71487         * m4/memxor.m4: Require gl_C_RESTRICT.
71488
71489 2005-10-06  Simon Josefsson  <jas@extundo.com>
71490
71491         * lib/memxor.c (memxor): Avoid casts and warnings.
71492
71493 2005-10-06  Simon Josefsson  <jas@extundo.com>
71494
71495         * lib/hmac-md5.c: New file.
71496
71497         * lib/hmac.h: New file.
71498
71499 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71500
71501         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
71502         promotes to int, not unsigned int, to catch the AIX 5.3
71503         compiler bug.
71504
71505 2005-10-05  Simon Josefsson  <jas@extundo.com>
71506
71507         * modules/memxor: New file.
71508
71509         * modules/iconv (Files): Move config.rpath to havelib, it is used
71510         there.
71511
71512         * modules/havelib (Files): Add config.rpath.
71513
71514 2005-10-05  Simon Josefsson  <jas@extundo.com>
71515
71516         * m4/memxor.m4: New file.
71517
71518 2005-10-05  Simon Josefsson  <jas@extundo.com>
71519
71520         * lib/memxor.c (memxor): Fix compiler error.
71521
71522         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71523         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71524
71525         * lib/memxor.h, lib/memxor.c: New files.
71526
71527         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71528         we assume all systems have it, suggested by Jim Meyering
71529         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71530         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71531         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71532         same reasons.
71533
71534 2005-10-05  Simon Josefsson  <jas@extundo.com>
71535
71536         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71537
71538 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71539
71540         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71541         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71542         needed, since the source code now assumes these .h files.
71543
71544 2005-10-05  Derek Price  <derek@ximbiot.com>
71545
71546         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71547
71548 2005-10-05  Bruno Haible  <bruno@clisp.org>
71549
71550         * modules/stdint (License): Change to LGPL.
71551
71552 2005-10-04  Simon Josefsson  <jas@extundo.com>
71553
71554         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71555         D. Baushke" <mdb@gnu.org>.
71556
71557 2005-10-04  Bruno Haible  <bruno@clisp.org>
71558
71559         * lib/verify.h (verify_true): Provide alternative definition for C++.
71560
71561 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71564         (SSIZE_MAX): New macro, if not already defined.
71565         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71566         than 2 GiB.
71567
71568 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         Sync from coreutils.
71571         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71572         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71573         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71574         ULLONG_MAX doesn't work with 2.7.2.1.
71575
71576 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71577
71578         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71579         From Ben Pfaff.
71580
71581         * modules/exclude (Depends-on): Depend on verify.
71582         * modules/strtoimax (Depends-on): Likewise.
71583         * modules/utimecmp (Depends-on): Likewise.
71584
71585 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71586
71587         * lib/exclude.c: Include verify.h.
71588         (verify): Remove.  All callers changed to use verify.h's version.
71589         * lib/strtoimax.c: Likewise.
71590         * lib/utimecmp.c: Likewis.e
71591
71592         Sync from coreutils.
71593         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71594         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71595         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71596         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71597         bother returning ENOSYS if settimeofday or stime fails; just let
71598         them return whatever errno they want to return.
71599         * lib/utimens.c: Include unistd.h, for dup2.
71600         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71601         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71602
71603 2005-10-02  Jim Meyering  <jim@meyering.net>
71604
71605         Sync from coreutils.
71606         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71607         from glibc-2.2.5 that fails for read-only files.
71608
71609 2005-10-02  Jim Meyering  <jim@meyering.net>
71610
71611         Sync from coreutils.
71612         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71613         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71614         `#if HAVE_CONFIG_H'.
71615         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71616         Remove AT_FDCWD test.
71617         Do not consume the fd unless successful.
71618         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71619         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71620         block, so that we don't even try to compile it if settimeofday is
71621         available.  This works around a compilation failure on OSF1 V5.1,
71622         due to stime requiring a `long int*' while tv_sec is `int'.
71623
71624 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71625
71626         Sync from coreutils.
71627         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71628         against `yes', rather than just testing for nonempty.
71629
71630 2005-10-01  Simon Josefsson  <jas@extundo.com>
71631
71632         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71633         and Darwin.
71634
71635         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71636         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71637         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71638         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71639         Check if struct addrinfo is declared.
71640
71641 2005-10-01  Simon Josefsson  <jas@extundo.com>
71642
71643         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71644         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71645         AI_* and EAI_* definitions.  Protect function declarations.
71646
71647 2005-10-01  Jim Meyering  <jim@meyering.net>
71648
71649         Sync from coreutils.
71650
71651         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71652         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71653         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71655         in the inet and nsl libraries.  Required on Solaris 5.7.
71656
71657 2005-10-01  Jim Meyering  <jim@meyering.net>
71658
71659         Sync from coreutils.
71660         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71661         in the inet and nsl libraries.  Required on Solaris 5.7.
71662
71663 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71664
71665         * lib/getdelim.c (getdelim): Remove unused variables.
71666
71667 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71668
71669         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71670         so that the code works even with ancient cpp.  Portability problem
71671         with GCC 2.7.2.1 reported by Thomas M.Ott.
71672
71673 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71674
71675         * modules/regex (Depends-on): Add strcase.
71676
71677         * modules/gethostname (Licence): Change from GPL to LGPL, since
71678         gethostname.c is a trivial implementation of a standard library
71679         function.
71680         * modules/poll (License): Change from GPL to LGPL, since it's
71681         derived from LGPL code.
71682
71683 2005-09-27  Jim Meyering  <jim@meyering.net>
71684
71685         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71686         HAVE_CONFIG_H.
71687
71688         * lib/intprops.h (signed_type_or_expr__): Define.
71689         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71690         for unsigned types.
71691
71692 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71693
71694         * lib/verify.h (verify_expr): Remove, replacing with:
71695         (verify_true): New macro that returns true instead of void.
71696         (verify_type__): Remove.
71697         (verify): Use verify_true rather than verify_type__.
71698
71699 2005-09-26  Bruno Haible  <bruno@clisp.org>
71700
71701         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71702         is necessary.
71703         (lib_SOURCES): Remove mbchar.c.
71704         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71705         (Files): Add m4/mbrtowc.m4.
71706         * modules/mbiter: Likewise.
71707         * modules/mbuiter: Likewise.
71708
71709 2005-09-26  Bruno Haible  <bruno@clisp.org>
71710
71711         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71712         compile mbchar.c if they are not both present.
71713         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71714         * m4/mbiter.m4 (gl_MBITER): Likewise.
71715         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71716         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71717         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71718
71719 2005-09-25  Jim Meyering  <jim@meyering.net>
71720
71721         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71722         also uses socklen_t.
71723
71724 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71725
71726         * lib/utimens.c (ENOSYS): Define if not already defined.
71727         (futimens): Support having a null PATH if the file descriptor
71728         is nonnegative.
71729
71730         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71731         Remove.
71732         (__attribute): Define to empty unless GCC 3.1 or later.
71733         This works around a core dump on OpenBSD 3.4, which has GCC
71734         2.95.3, which dumps core when given __attribute__(()).  It also
71735         simplifies other tests, since we really don't want to bother with
71736         worrying about which ancient version of GCC supported what.
71737         Original problem reported by Yoann Vandoorselaere, with part of
71738         the fix suggested by Derek Price.
71739
71740 2005-09-24  Jim Meyering  <jim@meyering.net>
71741
71742         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71743         so we can once again use a positive bitfield width of 1 -- now we
71744         don't have to explain why we were using a bitfield width of 2.
71745
71746 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71747
71748         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71749         and similarly for the other external symbols.  Problem reported
71750         by James Gallager.
71751
71752         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71753         bug reported by Jim Meyering.
71754
71755         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71757         not needed, since socklen is a prerequisite module.
71758
71759 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71760
71761         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71762         Problem reported by Eric Blake.
71763         (getaddrinfo): Initialize se so that it's not garbage.
71764         Redo internal storage allocation so that it doesn't make unportable
71765         assumptions about alignment.
71766         Fix a memory leak.
71767
71768         * lib/utimens.c (futimens): Use futimesat if available.
71769         Prefer it to futimes since it doesn't have the futimes bug.
71770
71771         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71772         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71773         Instead, declare a function that returns a pointer to an array,
71774         and use verify_type__ to declare the size of the array.
71775         Problem and germ of a solution reported by Bruno Haible.
71776         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71777         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71778
71779 2005-09-23  Jim Meyering  <jim@meyering.net>
71780
71781         Sync from coreutils.
71782         Correct build failure (socklen_t not defined) on at least
71783         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71784         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71785
71786 2005-09-23  Jim Meyering  <jim@meyering.net>
71787
71788         * modules/getaddrinfo (Depends-on): Add socklen.
71789
71790 2005-09-23  Bruno Haible  <bruno@clisp.org>
71791
71792         * tests/test-verify.c: New file.
71793
71794 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71795
71796         Sync from coreutils.
71797
71798         * modules/argmatch (Depends-on): Add verify.
71799         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71800         unistd-safer.
71801         * modules/save-cwd (Depends-on): Likewise.
71802
71803         * modules/openat (Files): Add lib/openat-die.c.
71804         (Depends-on): Remove error, exitfail.
71805         Add dirname.
71806
71807         * modules/verify: New file.
71808         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71809         with "verify" module.
71810
71811 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71812
71813         Sync from coreutils.
71814
71815         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71816         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71817         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71818         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71819         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71820         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71821         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71822         Don't bother checking for string.h, stdlib.h, unistd.h.
71823         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71824         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71825         module's job.
71826         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71827         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71828
71829         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71830         (gl_GETDATE): Use it.
71831
71832         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71833
71834 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71835
71836         Sync from coreutils.
71837
71838         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71839         stat-time.h.
71840         * lib/argmatch.h: Include verify.h
71841         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71842         (ARGMATCH_ASSERT): Remove; unused.
71843         * lib/canonicalize.c: Assume STDC_HEADERS.
71844         * lib/exclude.c: Include "strcase.h".
71845         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71846         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71847         and stdio-safer.h.
71848         (getusershell): Call fopen, not fopen_safer.
71849         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71850         Do not include unistd-safer.h.
71851         (save_cwd): Don't call fd_safer; no longer needed
71852         now that we include fcntl--.h.
71853
71854         * lib/getdate.y (relative_time): New type.
71855         (RELATIVE_TIME_0): New constant.
71856         (parser_control): Use relative_time instead of doing it ourselves.
71857         (%union): Add new relative_time rel member.
71858         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71859         Now typeless.
71860         (relunit, relunit_snumber): Now of type rel.
71861         (zone, rel, relunit, get_date): Adjust to above changes.
71862
71863         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71864         Do not include unistd-safer.h.
71865         (getloadavg): Don't call fd_safer; no longer needed
71866         now that we include fcntl--.h.
71867
71868         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71869         (make_dir_parents): Treat ENOSYS like EEXIST.
71870
71871         Improve quality of diagnostics on restore_cwd failure.
71872         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71873         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71874         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71875         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71876         each time through the loop.  Do not diagnose restore_cwd failure;
71877         that is the caller's job (and perhaps the caller does not care).
71878
71879         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71880         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71881         If the file already exists but is not a directory, don't bother
71882         to try to make its parents.
71883         Close potential file descriptor leak if we can't chdir("/") (!).
71884         Don't always return true if chdir($PWD) fails; return true only
71885         if the requested action was done successfully (except for the
71886         chdir($PWD)).
71887         Don't log final directory unless we actually made it.
71888         Refactor to avoid duplicate code to fix up permissions.
71889         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71890
71891         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71892         to make it a bit faster and (I hope) clearer.
71893         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71894         Fix bug in formats like %2N.
71895
71896         * lib/verify.h: New file.
71897
71898 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71899
71900         Sync from coreutils.
71901         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71902
71903 2005-09-22  Jim Meyering  <jim@meyering.net>
71904
71905         Sync from coreutils.
71906
71907         * m4/lstat.m4 (gl_FUNC_LSTAT):
71908         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71909         Remove obsolete comment.
71910         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71911         * m4/xstrtod.m4: Likewise.
71912
71913         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71914
71915 2005-09-22  Jim Meyering  <jim@meyering.net>
71916
71917         Sync from coreutils.
71918
71919         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71920
71921         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71922         the .tm_year member, since otherwise gcc-4.0 would now warn about
71923         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71924
71925         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71926         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71927
71928         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71929         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71930         when run in a time zone for which daylight savings time is in effect
71931         for the starting date.
71932
71933         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71934         stop us from restricting permissions of just-created absolute-named
71935         directories.
71936         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71937         to restore initial working directory.
71938         * lib/mkdir-p.c (make_dir_parents): New parameter:
71939         different_working_dir, to tell caller if/when we change the working
71940         directory and are unable to return to the initial one.
71941         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71942         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71943         `return false'.  This fixes a bug introduced on 2004-07-30.
71944
71945         * lib/openat.c (fdopendir): Be sure to close the supplied
71946         file descriptor before returning.  This makes our replacement
71947         implementation a little closer to Solaris's, where fdopendir
71948         ties the file descriptor to the returned DIR* pointer.
71949         * lib/openat.c (unlinkat): New function.
71950         * lib/openat.h (unlinkat): Add prototype.
71951         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71952         (openat_restore_fail): Rename from openat_restore_die.
71953         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71954
71955         Provide an alternative to exiting immediately upon save_cwd or
71956         restore_cwd failure.  Now, an application can arrange e.g.,
71957         to perform a longjump in that case.
71958         * lib/openat.c: Include dirname.h.
71959         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71960         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71961         and openat_restore_die rather than calling error directly.
71962         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71963
71964         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71965         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71966         define.
71967
71968         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71969         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71970                             int utc, int nanoseconds);
71971         Background:
71972         date should not have to allocate a megabyte of virtual memory to
71973         handle a format argument like +%1048575T.  When implemented with
71974         strftime, it must allocate such a buffer, use strftime to fill it
71975         in, print it, then free it.
71976         With fprintftime, it simply prints everything and exits.
71977         With no need for memory allocation, that's one fewer way to fail.
71978         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71979         optional field width, not before, so we accept %9:z, not %:9z.
71980         (my_strftime): Be sure to use L_('x') for literals.
71981
71982         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71983         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71984         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71985         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71986         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71987         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71988         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71989         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71990         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71991         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71992         * lib/xgethostname.c, lib/xreadlink.c:
71993         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71994
71995         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71996         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71997         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71998         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71999         and don't include <sys/file.h>).
72000
72001 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
72002
72003         Sync from coreutils.
72004
72005         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
72006         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
72007         [!LDAV_DONE]: Avoid unused variable warning.
72008
72009 2005-09-21  Bruno Haible  <bruno@clisp.org>
72010
72011         * lib/unicodeio.h (unicode_to_mb): New declaration.
72012
72013 2005-09-20  Derek Price  <derek@ximbiot.com>
72014
72015         * lib/getaddrinfo.c: Don't include <netdb.h> included from
72016         getaddrinfo.h.
72017
72018 2005-09-20  Bruno Haible  <bruno@clisp.org>
72019
72020         * gnulib-tool: Remove trailing slashes from the values specified for
72021         --source-base, --m4-base, --tests-base, --aux-dir.
72022         Suggested by Simon Josefsson <jas@extundo.com>.
72023
72024 2005-09-20  Bruno Haible  <bruno@clisp.org>
72025
72026         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
72027         func_modules_to_filelist, func_import, func_create_testdir): Make all
72028         sorting results locale-independent, so that gnulib-cache.m4 doesn't
72029         change when gnulib-tool is invoked in a different locale.
72030
72031 2005-09-19  Simon Josefsson  <jas@extundo.com>
72032
72033         * m4/socklen.m4: Fix typo.
72034
72035 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72036
72037         Use a consistent style for including <config.h>.
72038         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
72039         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
72040         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
72041         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
72042         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
72043         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
72044         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
72045         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
72046         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
72047         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
72048         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
72049         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
72050         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
72051         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
72052         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
72053         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
72054         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
72055         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
72056         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
72057         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
72058         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
72059         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
72060         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
72061         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
72062         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
72063         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
72064         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
72065         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
72066         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
72067         lib/xstrtoumax.c, lib/yesno.c:
72068         Standardize inclusion of config.h.
72069         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
72070         lib/inttostr.h:  Removed inclusion of config.h from header files.
72071         * lib/inttostr.c:  Adjusted in-tree users.
72072         * lib/timespec.h: Remove superfluous warning to include config.h.
72073         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
72074         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
72075         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
72076         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
72077         config.h with HAVE_CONFIG_H.
72078
72079 2005-09-19  Jim Meyering  <jim@meyering.net>
72080
72081         * modules/pathmax (License): Change to LGPL.
72082
72083 2005-09-19  Derek Price  <derek@ximbiot.com>
72084
72085         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
72086
72087 2005-09-19  Bruno Haible  <bruno@clisp.org>
72088
72089         * gnulib-tool (import): Provide default for --tests-base.
72090
72091 2005-09-19  Bruno Haible  <bruno@clisp.org>
72092
72093         * doc/quote.texi: New file, extracted from gnulib.texi.
72094         * doc/ctime.texi: New file, extracted from gnulib.texi.
72095         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
72096         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
72097         * doc/gnulib.texi: Include them.
72098
72099 2005-09-18  Bruno Haible  <bruno@clisp.org>
72100
72101         Portability fix.
72102         * gnulib-tool (func_readlink): New function.
72103         (func_ln_if_changed): Use it.
72104
72105 2005-09-18  Bruno Haible  <bruno@clisp.org>
72106
72107         * gnulib-tool: Support --with-tests also with --import.
72108         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
72109         (func_import): Use variables $testsbase and $inctests. Emit a
72110         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
72111         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
72112         SUBDIRS += $testsdir.
72113         (func_create_testdir): Update.
72114
72115 2005-09-18  Bruno Haible  <bruno@clisp.org>
72116
72117         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
72118         instead of $dry_run.
72119         (func_cp_if_changed, func_mv_if_changed): Remove functions.
72120         (func_ln_if_changed): Don't handle dry-run here.
72121         (func_import): In dry-run mode, detect more precisely which actions
72122         would be performed, and don't use "...ing" verbs.
72123
72124 2005-09-18  Bruno Haible  <bruno@clisp.org>
72125
72126         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
72127         (func_import): Use join on two temporary files instead of three nested
72128         loops, in order to determine which files are new or old.
72129
72130 2005-09-18  Bruno Haible  <bruno@clisp.org>
72131
72132         * gnulib-tool (func_import): Comment out code that spits out the
72133         new files with --dry-run.
72134
72135 2005-09-18  Bruno Haible  <bruno@clisp.org>
72136
72137         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
72138
72139 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72140
72141         * lib/stat-time.h: New file.
72142         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
72143         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
72144         in a different way.
72145         (timespec_cmp): New function.
72146         * lib/utimecmp.c: Include stat-time.h.
72147         (SYSCALL_RESOLUTION): Depend on whether various struct stat
72148         members exist, not on the obsolescent ST_MTIM_NSEC.
72149         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
72150
72151 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72152
72153         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
72154
72155 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72156
72157         * MODULES.html.sh (File system functions): Add stat-time.
72158         * modules/stat-time: New file.
72159         * modules/timespec (Files): Remove m4/st_mtim.m4; this
72160         is now done in a different way, by the stat-time module.
72161         * modules/utimecmp (Depends-on): Add stat-time.
72162
72163 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72164
72165         * m4/st_mtim.m4: Remove.  Superseded by...
72166         * m4/stat-time.m4: New file.
72167         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
72168         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
72169
72170 2005-09-15  Derek Price  <derek@ximbiot.com>
72171
72172         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
72173
72174 2005-09-15  Derek Price  <derek@ximbiot.com>
72175
72176         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
72177         * lib/regex_internal.c: Ditto, using this...
72178         (__GNUC_PREREQ): ...new macro.
72179         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
72180         using...
72181         (__GNUC_PREREQ): ...this new macro.
72182
72183         * lib/strstr.h: Include string.h. Define strstr as a macro here.
72184
72185 2005-09-15  Derek Price  <derek@ximbiot.com>
72186             Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
72189         changes, consolidating in...
72190         * lib/regex_internal.h: ...this file.
72191
72192 2005-09-13  Jim Meyering  <jim@meyering.net>
72193
72194         * lib/canon-host.c: Filter through gnu indent and reword comments
72195         slightly.
72196         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
72197
72198 2005-09-13  Derek Price  <derek@ximbiot.com>
72199
72200         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
72201         failure.
72202         Reported by Jim Meyering  <jim@meyering.net>.
72203
72204 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72205
72206         * lib/base64.c: Typo.
72207         (base64_encode): Put b64str in initialized data section.
72208
72209 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         Merge glibc and coreutils changes into gnulib, plus a few
72212         extra fixes.
72213         * lib/md5.c: Use #error rather than a string.
72214         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
72215         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
72216         (__attribute__): Define to empty for non recent-GCC.
72217         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
72218         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
72219         Renamed from their non-__ counterparts, with new macros replacing
72220         them if not _LIBC.  Add __THROW attribute.
72221         (rol): Remove.
72222         (struct md5_ctx): Align buffer if using GCC.
72223         * lib/sha1.h (struct sha1_ctx): Likewise.
72224         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
72225         The old name was backwards.
72226         (NOTSWAP): Remove; not used.
72227         (rol): New macro, moved here from md5.h.
72228         (sha1_process_block): Remove a FIXME that doesn't make sense.
72229
72230 2005-09-12  Derek Price  <derek@ximbiot.com>
72231
72232         Return usable errors from canon-host.
72233         * lib/canon-host.h: New file.
72234         * lib/canon-host.c (canon_host): Wrap...
72235         (canon_host_r): ...this new function, which now relies exclusively on
72236         getaddrinfo.
72237         (ch_strerror): New function.
72238         (last_cherror): New global.
72239         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
72240         interface.
72241         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
72242         void *.
72243         (freeaddrinfo): Free ai->ai_canonname when set.
72244
72245 2005-09-12  Derek Price  <derek@ximbiot.com>
72246
72247         Make canon-host require getaddrinfo.
72248         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
72249         AC_LIBSOURCE canon-host.h.  Call...
72250         (gl_PREREQ_CANON_HOST): ...this new function, which requires
72251         gl_GETADDRINFO.
72252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
72253
72254 2005-09-12  Derek Price  <derek@ximbiot.com>
72255
72256         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72257         LGPL.
72258         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72259
72260 2005-09-12  Derek Price  <derek@ximbiot.com>
72261
72262         * lib/gai_strerror.c: Include config.h when available.  Include
72263         getaddrinfo.h before other headers to test interface.
72264         Reported by Larry Jones <lawrence.jones@ugs.com>.
72265
72266 2005-09-12  Derek Price  <derek@ximbiot.com>
72267             Paul Eggert  <eggert@cs.ucla.edu>
72268
72269         * modules/glob (Files): Add glob-libc.h.
72270
72271 2005-09-12  Derek Price  <derek@ximbiot.com>
72272             Paul Eggert  <eggert@cs.ucla.edu>
72273
72274         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
72275         glob_.h, glob-libc.h.
72276         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
72277
72278 2005-09-12  Derek Price  <derek@ximbiot.com>
72279             Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
72282         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
72283         protecting things that should be done only in gnulib contexts.
72284         * lib/glob_.h: New file, containing only the glob things needed for
72285         gnulib.
72286         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
72287         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
72288         (glob, globfree, glob_pattern_p): Now defined simply in terms of
72289         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
72290         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
72291         and to respect the namespace rules better.
72292
72293 2005-09-08  Simon Josefsson  <jas@extundo.com>
72294
72295         * modules/socklen: New file.
72296
72297 2005-09-08  Simon Josefsson  <jas@extundo.com>
72298
72299         * m4/socklen.m4: New file.
72300
72301 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * modules/utimens (Files): Add m4/utimbuf.m4, since
72304         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
72305         Reported by Sergey Poznyakoff.
72306
72307 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
72310         definitions, since that's the preferred style in glibc.
72311         Fix a minor spacing issue, and update copyright notice to match
72312         glibc's.
72313
72314 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72315
72316         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
72317
72318 2005-09-06  Simon Josefsson  <jas@extundo.com>
72319
72320         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
72321         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
72322
72323 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72324
72325         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
72326         warning.
72327
72328 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * config/srclist.txt: Add glibc bug 1302.
72331
72332 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         Change bitset word type from unsigned int to unsigned long int,
72335         as this has better performance on typical 64-bit hosts.
72336         Port bitset code to hosts with unusual word sizes.
72337         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
72338         (build_collating_symbol):
72339         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
72340         argument is a bitset.  This is merely a style issue, but it makes
72341         it clearer that an entire array is expected.
72342         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
72343         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
72344         Port to the case where bitset_word is not the same as unsigned int.
72345         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72346         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
72347         Likewise.
72348         * lib/regexec.c (check_dst_limits_calc_pos_1,
72349         check_subexp_matching_top):
72350         (build_trtable, group_nodes_into_DFAstates):
72351         Likewise.
72352         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
72353         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
72354         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
72355         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
72356         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
72357         * lib/regcomp.c (optimize_subexps, lower_subexp):
72358         Work even if bitset_word has holes in its bitwise representation.
72359         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
72360         * lib/regexec.c (check_dst_limits_calc_pos_1,
72361         check_subexp_matching_top):
72362         Likewise.
72363         * lib/regex_internal.c (re_string_reconstruct):
72364         Don't assume UCHAR_MAX == 255.
72365         * lib/regex_internal.h (bitset_set_all): Likewise.
72366         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
72367         All uses changed.
72368         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
72369         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
72370         All uses changed.
72371         (BITSET_WORD_MAX): New macro.
72372         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
72373         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
72374         (bitset_empty, bitset_copy):
72375         Prefer sizeof (bitset) to multiplying it out ourselves.
72376         (bitset_not_merge): Remove; unused.
72377         (bitset_contain): Return bool, not unsigned int with one bit on.
72378         All callers changed.
72379         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
72380         alignment than re_node_set; do this by defining a new internal
72381         type struct dests_alloc and using it to allocate memory.
72382
72383 2005-09-05  Bruno Haible  <bruno@clisp.org>
72384
72385         * gnulib-tool (func_import): Fix comparison in handling of symbolic
72386         links.
72387
72388 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
72389
72390         * modules/size_max (Makefile.am): Add size_max.h
72391
72392 2005-09-04  Derek Price  <derek@ximbiot.com>
72393
72394         * gnulib-tool (func_import): Fix reversed $symbolic logic.
72395
72396 2005-09-03  Simon Josefsson  <jas@extundo.com>
72397
72398         * gnulib-tool: Fix typo.
72399
72400 2005-09-03  Simon Josefsson  <jas@extundo.com>
72401
72402         * config/srclist.txt: Add glibc bug 1293.
72403
72404 2005-09-03  Derek Price  <derek@ximbiot.com>
72405
72406         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
72407         From Larry Jones <lawrence.jones@ugs.com>.
72408
72409 2005-09-02  Simon Josefsson  <jas@extundo.com>
72410
72411         * modules/socklen: New file.
72412
72413 2005-09-02  Simon Josefsson  <jas@extundo.com>
72414
72415         * modules/havelib: New module.
72416
72417         * modules/gettext, modules/iconv, modules/lock, modules/readline:
72418         Use havelib.
72419
72420 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         Check for arithmetic overflow when calculating sizes, to prevent
72423         some buffer-overflow issues.  These patches are conservative, in the
72424         sense that when I couldn't determine whether an overflow was possible,
72425         I inserted a run-time check.
72426         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
72427         macros.
72428         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
72429         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
72430         (re_xnrealloc, re_x2nrealloc): New inline functions.
72431         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
72432         parse_bracket_exp):
72433         (build_equiv_class, build_charclass): Check for arithmetic overflow
72434         in size expression calculations.
72435         * lib/regex_internal.c (re_string_realloc_buffers):
72436         (build_wcs_upper_buffer, re_node_set_add_intersect):
72437         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
72438         (re_dfa_add_node, register_state): Likewise.
72439         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
72440         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
72441         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
72442         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
72443
72444 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72445
72446         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72447         m4/ulonglong.m4.  Problem reported by Martin Lambers.
72448
72449 2005-09-02  Bruno Haible  <bruno@clisp.org>
72450
72451         Support for lib vs. lib64 distinction on biarch platforms.
72452         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
72453         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
72454         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
72455
72456 2005-09-02  Bruno Haible  <bruno@clisp.org>
72457
72458         * gnulib-tool (import): In the other first-use case, provide defaults
72459         as well.
72460
72461 2005-09-02  Bruno Haible  <bruno@clisp.org>
72462
72463         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
72464         patches not yet found in the latest gettext release.
72465
72466 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
72469         to avoid a collision with bits/local_lim.h in glibc.
72470         All uses changed.  Problem reported by Dmitry V. Levin in
72471         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
72472
72473         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
72474         bugs in int versus size_t comparisons.
72475         (re_string_context_at): Fix bug where the code assumed that
72476         Idx is signed.
72477
72478         Use bool where appropriate.
72479         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
72480         All callers changed.
72481         (calc_eclosure_iter): Likewise, for ROOT arg.
72482         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
72483         (build_charclass_op): Likewise, for NON_MATCH arg.
72484         * lib/regex_internal.c (re_string_allocate, re_string_construct):
72485         (re_string_construct_common): Likewise, for ICASE arg.
72486         * lib/regexec.c (re_search_2_stub, re_search_stub):
72487         Likewise, for RET_LEN arg.
72488         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
72489         (set_regs): Likewise, for FL_BACKTRACK arg.
72490         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
72491         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
72492         (calc_eclosure_iter, parse_bracket_exp):
72493         Use bool for internal variables that are booleans.
72494         * lib/regexec.c (re_search_internal, check_matching,
72495         proceed_next_node):
72496         (set_regs, build_sifted_states, sift_states_bkref):
72497         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
72498         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72499         (find_collation_sequence_value):
72500         Likewise.
72501         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
72502         (re_node_set_compare):
72503         Return bool, not int. All callers changed.
72504         * lib/regexec.c (check_halt_node_context, check_dst_limits):
72505         (build_trtable, check_node_accept): Likewise.
72506         * lib/regex_internal.h: Include stdbool.h.
72507
72508         Fix bugs uncovered when converting to bool.
72509         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
72510         failure instead of charging ahead blindly.
72511         * lib/regex_internal.c (register_state): Likewise.
72512         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72513         for freeing internal storage.
72514         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72515         bitset pieces used as boolean, to avoid undefined behavior
72516         on hosts that do int overflow checking.
72517
72518 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         * config/srclist.txt: Add glibc bugs 1285-1287.
72521
72522 2005-09-01  Jim Meyering  <jim@meyering.net>
72523
72524         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72525         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72526         Require gl_STAT_MACROS, too.
72527
72528 2005-09-01  Bruno Haible  <bruno@clisp.org>
72529
72530         * gnulib-tool (import): In the first-use case, provide defaults.
72531
72532 2005-09-01  Bruno Haible  <bruno@clisp.org>
72533
72534         * gnulib-tool (func_import): Remove the .tmp files.
72535
72536 2005-09-01  Bruno Haible  <bruno@clisp.org>
72537
72538         * gnulib-tool (func_import): Fix handling of symbolic links.
72539
72540 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72541
72542         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72543         old glibc regex code mishandles strings longer than 2**31 bytes.
72544         This patch fixes this when the regex code is used in gnulib
72545         (i.e., outside glibc).
72546
72547         This patch should not affect the use of the regex code inside
72548         glibc.  No doubt this problem also needs to be handled for glibc
72549         as well, but the result will be an incompatible change to the
72550         glibc ABI, and the old ABI will have to be supported too.  That
72551         can be the the subject for another patch.
72552
72553         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72554         governing whether the rest of this patch is active.  By default,
72555         the macro is disabled and the patch has no effect.
72556         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72557         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72558         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72559         (re_match_2, re_set_registers): Use the new types.
72560         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72561         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72562         New macros.
72563         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72564         (re_string_context_at, bin_tree_t, re_dfastate_t):
72565         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72566         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72567         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72568         (re_string_char_size_at, re_string_wchar_at):
72569         (re_string_elem_size_at):
72570         Use the new types and macros to port to 64-bit hosts.
72571         Use unsigned types for internal values, so that the code
72572         mostly works even for arrays larger than SSIZE_MAX.
72573         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72574         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72575         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72576         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72577         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72578         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72579         (calc_inveclosure, parse_dup_op, build_range_exp):
72580         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72581         (fetch_number, create_token_tree, mark_opt_subexp):
72582         Likewise.
72583         * lib/regex_internal.c (re_string_construct_common,
72584         create_ci_newstate):
72585         (create_cd_newstate, re_string_allocate, re_string_construct):
72586         (re_string_realloc_buffers, build_wcs_upper_buffer):
72587         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72588         (re_string_reconstruct, re_string_peek_byte_case):
72589         (re_string_fetch_byte_case, re_string_context_at):
72590         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72591         (re_node_set_init_copy, re_node_set_add_intersect):
72592         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72593         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72594         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72595         (re_acquire_state, re_acquire_state_context, register_state):
72596         Likewise.
72597         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72598         search_cur_bkref_entry):
72599         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72600         (re_search_internal, re_search_2_stub, re_search_stub)
72601         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72602         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72603         (update_cur_sifted_state, check_dst_limits):
72604         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72605         (check_subexp_limits, sift_states_bkref, merge_state_array):
72606         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72607         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72608         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72609         (expand_bkref_cache, check_node_accept_bytes):
72610         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72611         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72612         (acquire_init_state_context, check_halt_node_context):
72613         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72614         (sift_states_backward, clean_state_log_if_needed):
72615         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72616         (find_recover_state, transit_state_sb, transit_state_mb):
72617         (transit_state_bkref, build_trtable, match_ctx_clean):
72618         Likewise.
72619         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72620         to work around an assumption that REG_MISSING is negative.
72621
72622         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72623         (seek_collating_symbol_entry) [defined _LIBC]:
72624         (lookup_collation_sequence_value) [defined _LIBC]:
72625         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72626         Use prototypes rather than old-style function definitions.
72627         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72628         (transit_state_sb) [0]:
72629         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72630
72631         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72632         rm_eo.
72633
72634         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72635         (optimize_subexps, lower_subexp):
72636         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72637         since the signed shift might overflow.  Use 1u<<31 instead.
72638         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72639         Likewise.
72640         * lib/regexec.c (check_dst_limits_calc_pos_1,
72641         check_subexp_matching_top): Likewise.
72642
72643         * lib/regcomp.c (optimize_subexps, lower_subexp):
72644         Use CHAR_BIT rather than 8, for clarity.
72645         * lib/regexec.c (check_dst_limits_calc_pos_1):
72646         (check_subexp_matching_top): Likewise.
72647         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72648         have to worry about portability issues when shifting it left.
72649         Remove no-longer-needed test for table_size > 0.
72650         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72651         in a word, as the resulting behavior is undefined.
72652         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72653         in one case, a <= should have been an <, and in another case the
72654         whole test was missing.
72655         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72656         the standard name CHAR_BIT.
72657         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72658         this is not true on one's complement and signed-magnitude hosts.
72659
72660         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72661         next_last_offset.
72662         (struct re_dfa_t): Remove unused member states_alloc.
72663         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72664
72665 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72666
72667         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72668         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72669         and large-file glibc and in 32-bit large-file Solaris.
72670
72671 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72674         lengths fit in regoff_t; this isn't true if regoff_t is the same
72675         width as size_t.
72676         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72677         (= START + RANGE) instead of RANGE.  This avoids overflow
72678         problems when regoff_t is the same width as size_t.
72679         All callers changed.
72680         (re_search_2_stub): Check for overflow when adding the
72681         sizes of the two strings.
72682         (re_search_stub): Check for overflow when adding START
72683         to RANGE; if it occurs, substitute the extreme value.
72684
72685 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72688
72689 2005-08-31  Jim Meyering  <jim@meyering.net>
72690
72691         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72692         a pointer-to-const.
72693         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72694         (register_state): Likewise.
72695         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72696         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72697         (group_nodes_into_DFAstates): Likewise.
72698
72699 2005-08-31  Jim Meyering  <jim@meyering.net>
72700
72701         * check-module: Add a FIXME comment.
72702
72703 2005-08-31  Eric Blake  <ebb9@byu.net>
72704
72705         * modules/unistd-safer (Files): Add unistd--.h.
72706         * modules/stdio-safer (Files): Add stdio--.h.
72707
72708 2005-08-31  Derek Price  <derek@ximbiot.com>
72709
72710         * lib/getdelim.c (getdelim): Return EOF on EOF.
72711         Reported by Larry Jones <lawrence.jones@ugs.com>.
72712
72713 2005-08-31  Bruno Haible  <bruno@clisp.org>
72714
72715         Avoid unnecessary diffs in the generated lib/Makefile.am.
72716         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72717         the generated files.
72718         (func_import): Don't set cmd.
72719
72720 2005-08-31  Bruno Haible  <bruno@clisp.org>
72721
72722         * lib/strstr.c: Include <stddef.h>, for NULL.
72723         * lib/strcasestr.c: Likewise.
72724         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72725
72726 2005-08-31  Bruno Haible  <bruno@clisp.org>
72727
72728         * gnulib-tool: New option --macro-prefix.
72729         (func_import): Use macro_prefix.
72730         (import): Handle option --macro-prefix.
72731
72732 2005-08-31  Bruno Haible  <bruno@clisp.org>
72733
72734         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72735         Also use new variables cached_lgpl, cached_libtool.
72736
72737 2005-08-31  Bruno Haible  <bruno@clisp.org>
72738
72739         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72740         always instantiating them.
72741
72742 2005-08-31  Bruno Haible  <bruno@clisp.org>
72743
72744         * gnulib-tool (func_import): Read the previous cached settings
72745         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72746         earlier added by gnulib but are now dropped. Warn when a gnulib file
72747         overwrites a non-gnulib file.
72748
72749 2005-08-31  Bruno Haible  <bruno@clisp.org>
72750
72751         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72752         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72753         projects that don't keep autogenerated files in CVS. Put into
72754         actioncmd only the specified modules, not the transitive closure.
72755
72756 2005-08-31  Bruno Haible  <bruno@clisp.org>
72757
72758         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72759         Create directories that shall be filled.
72760         (import): Don't look for gl_* macros in configure.ac. Recurse across
72761         all directories containing a gnulib-cache.m4 files, if meaningful.
72762
72763 2005-08-31  Bruno Haible  <bruno@clisp.org>
72764
72765         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72766         (import): Set seen_libtool when we see gl_LIBTOOL.
72767
72768 2005-08-31  Bruno Haible  <bruno@clisp.org>
72769
72770         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72771         declaration macro definitions from generated gnulib.m4.
72772
72773 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72774
72775         * lib/iconvme.h: Add prototype for iconv_alloc.
72776
72777 2005-08-29  Simon Josefsson  <jas@extundo.com>
72778
72779         * lib/iconvme.c: Fix errno.
72780
72781 2005-08-29  Bruno Haible  <bruno@clisp.org>
72782
72783         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72784         that it works when the directory contains spaces.
72785
72786 2005-08-29  Bruno Haible  <bruno@clisp.org>
72787
72788         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72789
72790 2005-08-29  Bruno Haible  <bruno@clisp.org>
72791
72792         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72793         Emit more advice.
72794
72795 2005-08-29  Bruno Haible  <bruno@clisp.org>
72796         and Stepan Kasal  <kasal@ucw.cz>
72797
72798         * check-module: If more parameters are given, check each of them
72799         separately; add more exceptions, as noted by Jim Meyering.
72800         (check_module): New procedure.
72801         (%exempt_header): Now contains all exceptions.
72802
72803 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72804
72805         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72806
72807 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72808
72809         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72810
72811 2005-08-28  Bruno Haible  <bruno@clisp.org>
72812
72813         * m4/gnulib-tool.m4: New file.
72814
72815 2005-08-27  Jim Meyering  <jim@meyering.net>
72816
72817         * modules/unistd-safer (Files): Add pipe-safer.c.
72818         * modules/fcntl-safer (Files): Add creat-safer.c.
72819
72820 2005-08-27  Jim Meyering  <jim@meyering.net>
72821
72822         * m4/stdlib-safer.m4: New file.  From coreutils.
72823         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72824         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72825         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72826         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72827         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72828
72829 2005-08-27  Jim Meyering  <jim@meyering.net>
72830
72831         * lib/fopen-safer.c: Merge minor changes from coreutils.
72832         * lib/dup-safer.c: Likewise.
72833         * lib/fd-safer.c: Likewise.
72834
72835         Merge from coreutils.
72836         * lib/stdio--.h: New file.
72837         * lib/stdlib--.h: New file.
72838         * lib/mkstemp-safer.c: New file.
72839
72840         GNU tar needs these.
72841         * lib/pipe-safer.c: New file.
72842         * lib/creat-safer.c: New file.
72843         * lib/fcntl--.h (creat): Define to creat_safer.
72844         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72845         * lib/unistd--.h (pipe): Define to pipe_safer.
72846         * lib/unistd-safer.h: Declare pipe_safer.
72847
72848 2005-08-26  Simon Josefsson  <jas@extundo.com>
72849
72850         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72851         Haible <bruno@clisp.org>.
72852
72853 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         * lib/regex_internal.h: Remove all references to
72856         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72857         or better.
72858         (bitset_not, bitset_merge, bitset_not_merge):
72859         (bitset_mask, re_string_allocate, re_string_construct):
72860         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72861         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72862         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72863         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72864         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72865         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72866         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72867         (re_acquire_state_context):
72868         Remove unnecessary forward decls.
72869         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72870         Put __attribute at function definition,
72871         now that the function decl has been removed.
72872         * lib/regex_internal.c (re_string_peek_byte_case):
72873         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72874         Likewise.
72875
72876 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72877
72878         * m4/regex.m4: Add AC_PREREQ(2.50).
72879         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72880
72881 2005-08-25  Simon Josefsson  <jas@extundo.com>
72882
72883         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72884         __fsetlocking.
72885
72886 2005-08-25  Simon Josefsson  <jas@extundo.com>
72887
72888         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72889         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72890         GLIBC specific code.
72891
72892 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72893
72894         Make regex safe for g++.  This fixes one real bug (an "err"
72895         that should have been "*err").  g++ problem reported by
72896         Sam Steingold.
72897         * lib/regex_internal.h (re_calloc): New macro, consistent with
72898         re_malloc etc.  All callers of calloc changed to use re_calloc.
72899         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72900         not int.  All callers changed.
72901         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72902         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72903         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72904         (find_recover_state): Change "err" to "*err"; this fixes what
72905         appears to be a real bug.
72906         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72907         versus int.
72908
72909 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72910
72911         * modules/regex (Depends-on): Add malloc, since the code
72912         assumes that !malloc(0) means failure.
72913
72914 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72915
72916         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72917
72918         alloca modernization/simplification for regex.
72919         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72920         needs to be at the start of the file, and can be moved into
72921         regex_internal.h and simplified.
72922         * lib/regex_internal.h: Include <alloca.h>.
72923         (__libc_use_alloca) [!defined _LIBC]: New macro.
72924         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72925         now works outside glibc.
72926
72927 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         * config/srclist.txt: Add glibc bugs 1241, 1245.
72930
72931 2005-08-25  Jim Meyering  <jim@meyering.net>
72932
72933         * lib/open-safer.c: Include <config.h>.
72934         Otherwise, we'd lose LARGEFILE support in any file using
72935         e.g. "fcntl--.h"
72936
72937 2005-08-25  Bruno Haible  <bruno@clisp.org>
72938
72939         * m4/minmax.m4: Require autoconf 2.52.
72940         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72941         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72942         alternatives of translit over the alphabet.
72943         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72944
72945 2005-08-24  Simon Josefsson  <jas@extundo.com>
72946
72947         * tests/test-getpass.c: New file.
72948
72949 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72950
72951         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72952         for GNU regex features.
72953
72954 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72955
72956         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72957         * lib/regex.h (regerror): Likewise.
72958
72959         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72960         requires this.  (The code never needed it.)
72961
72962         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72963         All uses of recently-renamed identifiers changed to use the new,
72964         POSIX-compliant names.  The code will build and run just fine
72965         without these changes, but it's better to eat our own dog food
72966         and use the standard-conforming names.
72967
72968         * lib/regex.h: Fix a multitude of POSIX name space violations.
72969         These changes have an effect only for programs that define
72970         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72971         do not change anything for programs compiled in the normal way.
72972         Also, there is no effect on the ABI.
72973
72974         (_REGEX_SOURCE): New macro.
72975         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72976         defined and _GNU_SOURCE is not; this fixes a name space violation.
72977
72978         Rename the following macros to obey POSIX requirements.
72979         The old names are still visible as macros if _REGEX_SOURCE is defined.
72980         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72981         RE_BACKSLASH_ESCAPE_IN_LISTS.
72982         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72983         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72984         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72985         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72986         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72987         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72988         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72989         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72990         (REG_INTERVALS): renamed from RE_INTERVALS.
72991         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72992         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72993         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72994         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72995         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72996         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72997         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72998         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72999         RE_UNMATCHED_RIGHT_PAREN_ORD.
73000         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
73001         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
73002         (REG_DEBUG): renamed from RE_DEBUG.
73003         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
73004         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
73005         unusual, since we can't clash with the POSIX REG_ICASE.
73006         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
73007         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
73008         (REG_NO_SUB): renamed from RE_NO_SUB.
73009         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
73010         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
73011         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
73012         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
73013         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
73014         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
73015         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
73016         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
73017         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
73018         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
73019         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
73020         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
73021         RE_SYNTAX_POSIX_MINIMAL_BASIC.
73022         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
73023         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
73024         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
73025         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
73026         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
73027         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
73028         (REG_FIXED): Renamed from REGS_FIXED.
73029         (REG_NREGS): Renamed from RE_NREGS.
73030
73031         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
73032         of other REG_* macros, since POSIX says the user is allowed to
73033         #undef these macros selectively.
73034
73035         (reg_errcode_t): Update comment stating what other tables need
73036         to be consistent.
73037
73038         Rename the following enum values to obey POSIX requirements.
73039         The old names are still visible as macros.
73040         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
73041         is not defined, since GNU is supposed to be a superset of POSIX as
73042         much as possible, and since we want reg_errcode_t to be a signed
73043         type for implementation consistency.
73044         (_REG_NOERROR): Renamed from REG_NOERROR.
73045         (_REG_NOMATCH): Renamed from REG_NOMATCH.
73046         (_REG_BADPAT): Renamed from REG_BADPAT.
73047         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
73048         (_REG_ECTYPE): Renamed from REG_ECTYPE.
73049         (_REG_EESCAPE): Renamed from REG_EESCAPE.
73050         (_REG_ESUBREG): Renamed from REG_ESUBREG.
73051         (_REG_EBRACK): Renamed from REG_EBRACK.
73052         (_REG_EPAREN): Renamed from REG_EPAREN.
73053         (_REG_EBRACE): Renamed from REG_EBRACE.
73054         (_REG_BADBR): Renamed from REG_BADBR.
73055         (_REG_ERANGE): Renamed from REG_ERANGE.
73056         (_REG_ESPACE): Renamed from REG_ESPACE.
73057         (_REG_BADRPT): Renamed from REG_BADRPT.
73058         (_REG_EEND): Renamed from REG_EEND.
73059         (_REG_ESIZE): Renamed from REG_ESIZE.
73060         (_REG_ERPAREN): Renamed from REG_ERPAREN.
73061         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
73062         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
73063         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
73064         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
73065
73066         (_REG_RE_NAME, _REG_RM_NAME): New macros.
73067         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
73068         changed.  But support the old name if the new one is not defined
73069         and if _REGEX_SOURCE.
73070
73071         Change the following member names in struct re_pattern_buffer.
73072         The old names are still supported if !_REGEX_SOURCE.
73073         The new names are always supported, regardless of _REGEX_SOURCE.
73074         (re_buffer): Renamed from buffer.
73075         (re_allocated): Renamed from allocated.
73076         (re_used): Renamed from used.
73077         (re_syntax): Renamed from syntax.
73078         (re_fastmap): Renamed from fastmap.
73079         (re_translate): Renamed from translate.
73080         (re_can_be_null): Renamed from can_be_null.
73081         (re_regs_allocated): Renamed from regs_allocated.
73082         (re_fastmap_accurate): Renamed from fastmap_accurate.
73083         (re_no_sub): Renamed from no_sub.
73084         (re_not_bol): Renamed from not_bol.
73085         (re_not_eol): Renamed from not_eol.
73086         (re_newline_anchor): Renamed from newline_anchor.
73087
73088         Change the following member names in struct re_registers.
73089         The old names are still supported if !_REGEX_SOURCE.
73090         The new names are always supported, regardless of _REGEX_SOURCE.
73091         (rm_num_regs): Renamed from num_regs.
73092         (rm_start): Renamed from start.
73093         (rm_end): Renamed from end.
73094
73095         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
73096         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
73097         Prepend __ to parameter names.
73098
73099         Undo yesterday's changes.
73100
73101 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73102
73103         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
73104         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
73105         lib/regex.c.
73106
73107 2005-08-24  Jim Meyering  <jim@meyering.net>
73108
73109         Sync from coreutils.
73110         * m4/fcntl-safer.m4: New file.
73111
73112         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
73113         and object files for this module.
73114
73115 2005-08-24  Jim Meyering  <jim@meyering.net>
73116
73117         Sync from coreutils.
73118         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
73119
73120 2005-08-24  Jim Meyering  <jim@meyering.net>
73121
73122         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
73123         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
73124
73125 2005-08-24  Jim Meyering  <jim@meyering.net>
73126
73127         * modules/fcntl-safer: New module.
73128         * modules/fts (Depends-on): Add fcntl-safer.
73129         * MODULES.html.sh (File descriptor based Input/Output):
73130         Add fcntl-safer.
73131
73132 2005-08-24  Bruno Haible  <bruno@clisp.org>
73133
73134         Support for unit test modules.
73135         * modules/README: Mention tests modules.
73136         * modules/TEMPLATE-TESTS: New file.
73137         * gnulib-tool: New options --extract-tests-module, --with-tests and
73138         --tests-base (unused for the moment).
73139         (testsbase, inctests): New variables.
73140         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
73141         (func_verify_module): Exclude TEMPLATE-TESTS.
73142         (func_verify_nontests_module, func_verify_tests_module): New functions.
73143         (func_get_dependencies): Add implicit dependency for tests modules.
73144         (func_get_tests_module): New function.
73145         (func_modules_transitive_closure): When --with-tests was specified,
73146         include the unit tests as well, unless explicitly avoided.
73147         (func_emit_lib_Makefile_am): Ignore the tests modules here.
73148         (func_emit_tests_Makefile_am): New function.
73149         (func_create_testdir): When --with-tests was specified, emit a
73150         tests/ directory.
73151         * MODULES.html.sh (Future developments): Update.
73152
73153 2005-08-24  Bruno Haible  <bruno@clisp.org>
73154
73155         * modules/tls-tests: New file.
73156         * tests/test-tls.c: New file, from GNU gettext.
73157
73158 2005-08-24  Bruno Haible  <bruno@clisp.org>
73159
73160         * modules/lock-tests: New file.
73161         * tests/test-lock.c: New file, from GNU gettext.
73162
73163 2005-08-24  Bruno Haible  <bruno@clisp.org>
73164
73165         * lib/lock.h: Add multiple inclusion guard.
73166         * lib/tls.h: Add multiple inclusion guard.
73167
73168 2005-08-24  Bruno Haible  <bruno@clisp.org>
73169
73170         * gnulib-tool: Add support for the --aux-dir option to
73171         --create-testdir, --create-megatestdir, --test, --megatest.
73172         (func_create_testdir, func_create_megatestdir): Optionally emit a
73173         AC_CONFIG_AUX_DIR directive.
73174         (create-testdir, create-megatestdir, test, megatest): Provide a
73175         default value for $auxdir.
73176
73177 2005-08-24  Bruno Haible  <bruno@clisp.org>
73178
73179         * gnulib-tool (import): Use compound statement instead of subshell
73180         where possible.
73181
73182 2005-08-24  Bruno Haible  <bruno@clisp.org>
73183
73184         * gnulib-tool (import): Change --aux-dir default to "build-aux".
73185
73186 2005-08-24  Bruno Haible  <bruno@clisp.org>
73187
73188         * gnulib-tool (func_version): Update.
73189
73190 2005-08-24  Bruno Haible  <bruno@clisp.org>
73191
73192         * gnulib-tool (func_import, func_create_testdir,
73193         func_create_megatestdir): Quote all autoconf macro arguments.
73194
73195 2005-08-24  Bruno Haible  <bruno@clisp.org>
73196
73197         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
73198         option --force, because --force causes the aclocal.m4 of each
73199         subdirectory to be newer than the corresponding config.h.in.
73200
73201 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
73204         All contents moved to gl_REGEX.
73205         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
73206         assume that it does.
73207
73208 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         * lib/regex.h (REG_NOSYS)
73211         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
73212         Define, since POSIX requires it as of 2001.
73213         (_REG_ENOSYS)
73214         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
73215         New private symbol, used to keep the enum signed in all cases.
73216         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
73217         Youngman in
73218         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
73219
73220         * lib/regex_internal.c (re_string_skip_chars, register_state):
73221         (calc_state_hash):
73222         Remove forward decls; no longer needed now that we use prototypes.
73223         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
73224         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
73225         (clean_state_log_if_needed): Likewise.
73226
73227 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73228
73229         * config/srclist.txt: Add glibc bugs 1231-1233.
73230
73231 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73232
73233         Fix problems reported by Sam Steingold in
73234         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
73235         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
73236         assumed that reg_errcode_t is a signed type, which is not
73237         necessarily true if _XOPEN_SOURCE is not defined.
73238         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
73239         since some compilers warn about it otherwise.
73240
73241 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73242
73243         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
73244         (init_word_char, create_initial_state, duplicate_node_closure):
73245         (fetch_token, peek_token_bracket, build_range_exp):
73246         (build_collating_symbol): Remove forward decls; no longer needed
73247         now that we use prototypes.
73248
73249         * lib/regcomp.c:
73250         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
73251         (re_compile_fastmap_iter, regcomp, regerror, regfree):
73252         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
73253         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
73254         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
73255         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
73256         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73257         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73258         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73259         (build_range_exp, build_collating_symbol, parse_bracket_exp):
73260         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
73261         (build_charclass, build_charclass_op, fetch_number, create_tree):
73262         (create_token_tree, mark_opt_subexp, duplicate_tree):
73263         Use prototypes rather than old-style definitions.
73264
73265         * lib/regex_internal.c:
73266         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
73267         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
73268         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73269         (re_string_reconstruct, re_string_peek_byte_case):
73270         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
73271         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73272         (re_node_set_init_copy, re_node_set_add_intersect):
73273         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73274         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73275         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73276         (re_acquire_state, re_acquire_state_context, register_state):
73277         (create_ci_newstate, create_cd_newstate, free_state):
73278         Likewise.
73279         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
73280         re_search_2):
73281         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
73282         (re_search_internal, prune_impossible_nodes):
73283         (acquire_init_state_context, check_matching, static):
73284         (check_halt_node_context, check_halt_state_context, proceed_next_node):
73285         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
73286         (update_regs, sift_states_backward, build_sifted_states):
73287         (clean_state_log_if_needed, merge_state_array):
73288         (update_cur_sifted_state, add_epsilon_src_nodes):
73289         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
73290         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
73291         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
73292         (find_recover_state, check_subexp_matching_top, transit_state_mb):
73293         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
73294         (check_arrival, check_arrival_add_next_nodes):
73295         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73296         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73297         (check_node_accept_bytes, check_node_accept, extend_buffers):
73298         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
73299         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
73300         (sift_ctx_init):
73301         Likewise.
73302
73303         * lib/regex_internal.h:
73304         (re_string_allocate, re_string_construct, re_string_reconstruct):
73305         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
73306         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
73307         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
73308         (re_string_context_at, re_string_peek_byte_case):
73309         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
73310         is defined, since we now use prototypes always.
73311
73312         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
73313         C89 or better.  All uses removed.
73314
73315 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73316
73317         * config/srclist.txt: Add glibc bugs 1220-1227.
73318
73319 2005-08-20  Jim Meyering  <jim@meyering.net>
73320
73321         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
73322         of unused local, dfa.
73323
73324 2005-08-20  Bruno Haible  <bruno@clisp.org>
73325
73326         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
73327
73328 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73329
73330         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
73331         (re_node_set_insert_last, re_dfa_add_node):
73332         Rename local variables to avoid GCC shadowing warnings.
73333
73334 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
73337         [defined lint]: Suppress bogus uninitialized-variable warnings.
73338
73339         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
73340         and let the caller return REG_ESPACE if out of space.  This
73341         removes an uninitialied-variable warning with GCC 4.0.1, and also
73342         avoids taking the address of a local variable.  All callers
73343         changed.
73344
73345 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73346
73347         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
73348         $LIBCSRC/posix/regexec.c.
73349         Add glibc bug 1217 for regcomp.c.
73350
73351 2005-08-19  Jim Meyering  <jim@meyering.net>
73352
73353         * lib/regexec.c (proceed_next_node): Redo local variables to
73354         avoid GCC shadowing warnings.
73355
73356 2005-08-18  Bruno Haible  <bruno@clisp.org>
73357
73358         * lib/strstr.c (strstr): Fix return value in multibyte case.
73359         * lib/strcasestr.c (strcasestr): Likewise.
73360
73361 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73362
73363         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
73364
73365 2005-08-17  Jim Meyering  <jim@meyering.net>
73366
73367         Make the %s format (seconds since the epoch) work for a negative
73368         number and when used with a zero-padded field width, e.g. %015s.
73369
73370         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
73371         label so that it precedes the code to set `digits'.  Otherwise,
73372         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
73373         print `00-22'.  Now, it prints `-0022', as it should.
73374
73375 2005-08-17  Bruno Haible  <bruno@clisp.org>
73376
73377         * modules/strstr (Files): Add m4/mbrtowc.m4.
73378         (Depends-on): Add mbuiter.
73379
73380 2005-08-17  Bruno Haible  <bruno@clisp.org>
73381
73382         * modules/strcasestr: New file.
73383         * MODULES.html.sh (String handling, based on ANSI C 89): Add
73384         strcasestr.
73385
73386 2005-08-17  Bruno Haible  <bruno@clisp.org>
73387
73388         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
73389
73390 2005-08-17  Bruno Haible  <bruno@clisp.org>
73391
73392         * modules/mbuiter: New file.
73393         * MODULES.html.sh (Extended multibyte and wide character utilities):
73394         Add mbuiter.
73395
73396 2005-08-17  Bruno Haible  <bruno@clisp.org>
73397
73398         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
73399         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
73400
73401 2005-08-17  Bruno Haible  <bruno@clisp.org>
73402
73403         * m4/strcasestr.m4: New file.
73404
73405 2005-08-17  Bruno Haible  <bruno@clisp.org>
73406
73407         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
73408         * lib/strstr.c: Completely rewritten, with multibyte locale support.
73409
73410 2005-08-17  Bruno Haible  <bruno@clisp.org>
73411
73412         * lib/strcasestr.h: New file.
73413         * lib/strcasestr.c: New file.
73414
73415 2005-08-17  Bruno Haible  <bruno@clisp.org>
73416
73417         * lib/strcasecmp.c: Use mbuiter.h.
73418
73419 2005-08-17  Bruno Haible  <bruno@clisp.org>
73420
73421         * lib/mbuiter.h: New file.
73422
73423 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73424
73425         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
73426         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
73427         and gl_GETOPT are both invoked via different paths (as happens
73428         with GNU tar CVS because it uses both argp and getopt), the former
73429         wins.
73430
73431 2005-08-16  Bruno Haible  <bruno@clisp.org>
73432
73433         * modules/tls: New file.
73434         * MODULES.html.sh (Multithreading): Add tls.
73435
73436 2005-08-16  Bruno Haible  <bruno@clisp.org>
73437
73438         * modules/strnlen1: New file.
73439         * MODULES.html.sh (String handling): Add strnlen1.
73440
73441 2005-08-16  Bruno Haible  <bruno@clisp.org>
73442
73443         * modules/strcase (Files): Add m4/mbrtowc.m4.
73444         (Depends-on): Add strnlen1, mbchar.
73445
73446 2005-08-16  Bruno Haible  <bruno@clisp.org>
73447
73448         * modules/mbiter: New file.
73449         * MODULES.html.sh (Extended multibyte and wide character utilities):
73450         Add mbiter.
73451
73452 2005-08-16  Bruno Haible  <bruno@clisp.org>
73453
73454         * modules/mbfile: New file.
73455         * MODULES.html.sh (Extended multibyte and wide character utilities):
73456         Add mbfile.
73457
73458 2005-08-16  Bruno Haible  <bruno@clisp.org>
73459
73460         * modules/mbchar: New file.
73461         * MODULES.html.sh (Extended multibyte and wide character utilities):
73462         New section.
73463
73464 2005-08-16  Bruno Haible  <bruno@clisp.org>
73465
73466         * m4/tls.m4: New file, from GNU gettext.
73467
73468 2005-08-16  Bruno Haible  <bruno@clisp.org>
73469
73470         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
73471         always.
73472         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
73473
73474 2005-08-16  Bruno Haible  <bruno@clisp.org>
73475
73476         * m4/mbiter.m4: New file.
73477
73478 2005-08-16  Bruno Haible  <bruno@clisp.org>
73479
73480         * m4/mbfile.m4: New file.
73481
73482 2005-08-16  Bruno Haible  <bruno@clisp.org>
73483
73484         * m4/mbchar.m4: New file.
73485
73486 2005-08-16  Bruno Haible  <bruno@clisp.org>
73487
73488         * lib/tls.h: New file, from GNU gettext.
73489         * lib/tls.c: New file, from GNU gettext.
73490
73491 2005-08-16  Bruno Haible  <bruno@clisp.org>
73492
73493         * lib/strnlen1.h: New file.
73494         * lib/strnlen1.c: New file.
73495
73496 2005-08-16  Bruno Haible  <bruno@clisp.org>
73497
73498         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
73499         (mbi_init): Update.
73500         (mbi_avail, mbi_advance): Let the iteration end before the terminating
73501         NUL byte, not after it.
73502
73503 2005-08-16  Bruno Haible  <bruno@clisp.org>
73504
73505         * lib/strcase.h (strcasecmp): Add note in comments.
73506         * lib/strncasecmp.c: Use code from strcasecmp.c.
73507         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
73508         (strcasecmp): Work correctly in multibyte locales.
73509
73510 2005-08-16  Bruno Haible  <bruno@clisp.org>
73511
73512         * lib/mbiter.h: New file.
73513
73514 2005-08-16  Bruno Haible  <bruno@clisp.org>
73515
73516         * lib/mbfile.h: New file.
73517
73518 2005-08-16  Bruno Haible  <bruno@clisp.org>
73519
73520         * lib/mbchar.h: New file.
73521         * lib/mbchar.c: New file.
73522
73523 2005-08-16  Bruno Haible  <bruno@clisp.org>
73524
73525         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73526         the valid ones. Makes the comparison operations transitive:
73527         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73528         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73529
73530 2005-08-15  Simon Josefsson  <jas@extundo.com>
73531
73532         * modules/ssize_t (License): Change to 'unlimited'.
73533
73534         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73535
73536 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73537
73538         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73539         Add comments for each pending glibc patch.
73540
73541 2005-08-15  Bruno Haible  <bruno@clisp.org>
73542
73543         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73544         __cplusplus is defined.
73545
73546 2005-08-14  Jim Meyering  <jim@meyering.net>
73547
73548         Sync from coreutils.
73549
73550         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73551         Use the hash-table-based cycle-detection code not just when
73552         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73553         Reported by James Youngman in
73554         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73555         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73556         FTS_TIGHT_CYCLE_CHECK.
73557         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73558         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73559         once again.
73560         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73561         * lib/fts.c (fd_safer): Remove decl.
73562         Include fcntl--.h rather than unistd-safer.h
73563         (fts_safe_changedir): Don't call fd_safer; no longer needed
73564         now that we include fcntl--.h.
73565
73566 2005-08-12  Simon Josefsson  <jas@extundo.com>
73567
73568         * modules/getndelim2: Use ssize_t module.
73569         * modules/getnline: Likewise.
73570         * modules/safe-read: Likewise.
73571         * modules/xreadlink: Likewise.
73572
73573         * modules/ssize_t: New file.
73574
73575 2005-08-12  Simon Josefsson  <jas@extundo.com>
73576
73577         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73578
73579 2005-08-12  Simon Josefsson  <jas@extundo.com>
73580
73581         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73582         ssize_t.
73583
73584 2005-08-12  Simon Josefsson  <jas@extundo.com>
73585
73586         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73587         readline, getdelim and check_version.
73588         (Support for systems lacking ISO C 99: Sizes of integer types):
73589         Add size_max.
73590
73591 2005-08-12  Bruno Haible  <bruno@clisp.org>
73592
73593         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73594
73595 2005-08-11  Simon Josefsson  <jas@extundo.com>
73596
73597         * modules/readline: New file.
73598
73599         * modules/strnlen (Files): Add strnlen.h.
73600
73601 2005-08-11  Simon Josefsson  <jas@extundo.com>
73602
73603         * m4/readline.m4: New file.
73604
73605 2005-08-11  Simon Josefsson  <jas@extundo.com>
73606
73607         * lib/readline.h, readline.c: New file.
73608
73609 2005-08-11  Simon Josefsson  <jas@extundo.com>
73610
73611         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73612         gl_AVOID.
73613
73614 2005-08-11  Bruno Haible  <bruno@clisp.org>
73615
73616         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73617
73618 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73619
73620         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73621
73622 2005-08-10  Simon Josefsson  <jas@extundo.com>
73623
73624         * tests/test-iconvme.c: New file.
73625
73626 2005-08-10  Simon Josefsson  <jas@extundo.com>
73627
73628         * m4/strnlen.m4: New file.
73629
73630         * m4/strndup.m4: Don't check for strnlen declaration, done in
73631         strnlen.m4.
73632
73633 2005-08-10  Simon Josefsson  <jas@extundo.com>
73634
73635         * lib/strndup.c: Use strnlen.h.
73636
73637         * lib/strnlen.h: New file.
73638
73639 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73640
73641         * README: Typos.
73642
73643 2005-08-02  Simon Josefsson  <jas@extundo.com>
73644
73645         * modules/readline: New file.
73646
73647 2005-08-02  Simon Josefsson  <jas@extundo.com>
73648
73649         * modules/getdelim: New file.
73650
73651         * modules/getline: Rewrite, don't use getndelim2.
73652
73653 2005-08-02  Simon Josefsson  <jas@extundo.com>
73654
73655         * m4/getline.m4: Separate out getdelim stuff into separate module.
73656
73657         * m4/getdelim.m4: New file.
73658
73659 2005-08-02  Simon Josefsson  <jas@extundo.com>
73660
73661         * lib/getline.h, getline.c: Rewrite.
73662
73663         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73664
73665 2005-07-31  Bruno Haible  <bruno@clisp.org>
73666
73667         * lib/lock.h (gl_lock_initializer): New macro.
73668         (gl_lock_define_initialized): Use it.
73669         (gl_rwlock_initializer): New macro.
73670         (gl_rwlock_define_initialized): Use it.
73671         (gl_recursive_lock_initializer): New macro.
73672         (gl_recursive_lock_define_initialized): Use it.
73673
73674 2005-07-30  Karl Berry  <karl@gnu.org>
73675
73676         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73677         Report from Ben Pfaff, regarding getopt.
73678
73679 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73682         normal way.
73683         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73684         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73685         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73686         (gl_GETOPT): Use the new macros.  Most of the implementation
73687         is moved to the new macros.  This is for programs like Emacs
73688         that don't want all the functionality of gl_GETOPT.
73689
73690 2005-07-26  Bruno Haible  <bruno@clisp.org>
73691
73692         * m4/lock.m4: Update from GNU gettext.
73693
73694 2005-07-26  Bruno Haible  <bruno@clisp.org>
73695
73696         * lib/lock.h: Update from GNU gettext.
73697         * lib/lock.c: Update from GNU gettext.
73698
73699 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73702         obsolescent AC_TRY_RUN.  Include the default includes files, for
73703         'exit'.
73704
73705 2005-07-24  Bruno Haible  <bruno@clisp.org>
73706
73707         * modules/visibility: New file.
73708         * MODULES.html.sh (Misc): Add visibility.
73709
73710 2005-07-24  Bruno Haible  <bruno@clisp.org>
73711
73712         * m4/visibility.m4: New file.
73713
73714 2005-07-24  Bruno Haible  <bruno@clisp.org>
73715
73716         * doc/visibility.texi: New file.
73717
73718 2005-07-22  Bruno Haible  <bruno@clisp.org>
73719
73720         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73721         $(ALLOCA_H), redundant through BUILT_SOURCES.
73722         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73723         redundant through BUILT_SOURCES.
73724         * modules/byteswap (Makefile.am): Remove explicit dependency on
73725         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73726         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73727         $(FNMATCH_H), redundant through BUILT_SOURCES.
73728         * modules/getopt (Makefile.am): Remove explicit dependency on
73729         $(GETOPT_H), redundant through BUILT_SOURCES.
73730         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73731         redundant through BUILT_SOURCES.
73732         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73733         redundant through BUILT_SOURCES.
73734         * modules/stdbool (Makefile.am): Remove explicit dependency on
73735         $(STDBOOL_H), redundant through BUILT_SOURCES.
73736         * modules/stdint (Makefile.am): Remove explicit dependency on
73737         $(STDINT_H), redundant through BUILT_SOURCES.
73738         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73739         Remove explicit dependency on $(SYSEXITS_H).
73740         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73741
73742 2005-07-18  Simon Josefsson  <jas@extundo.com>
73743
73744         * lib/check-version.c (check_version): Accept identical versions too.
73745
73746 2005-07-18  Bruno Haible  <bruno@clisp.org>
73747
73748         * modules/lock: New file.
73749         * MODULES.html.sh (Multithreading): New section.
73750
73751 2005-07-18  Bruno Haible  <bruno@clisp.org>
73752
73753         * m4/lock.m4: New file, from GNU gettext.
73754
73755 2005-07-18  Bruno Haible  <bruno@clisp.org>
73756
73757         * lib/lock.h: New file, from GNU gettext.
73758         * lib/lock.c: New file, from GNU gettext.
73759
73760 2005-07-18  Bruno Haible  <bruno@clisp.org>
73761
73762         * lib/lock.h (gl_once_t): New type.
73763         (gl_once_define, gl_once): New macros.
73764         * lib/lock.c (fresh_once): New variable.
73765         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73766         functions.
73767
73768 2005-07-16  Simon Josefsson  <jas@extundo.com>
73769
73770         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73771         workaround, suggested by Bruno.
73772
73773 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73774
73775         * modules/xalloc (Depends-on): Add xalloc-die.
73776         * modules/xvasprintf (Depends-on): Add xalloc-die.
73777
73778 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73779
73780         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73781         with a minor change.
73782
73783 2005-07-15  Bruno Haible  <bruno@clisp.org>
73784
73785         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73786         When using lib/poll.c, define poll as rpl_poll.
73787
73788 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         * modules/argp (Depends-on): Remove unlocked-io.
73791
73792 2005-07-14  Derek Price  <derek@ximbiot.com>
73793
73794         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73795         for glob symlink bug.
73796
73797 2005-07-14  Bruno Haible  <bruno@clisp.org>
73798
73799         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73800         Instead, test for *_unlocked function declarations directly.
73801
73802 2005-07-11  Simon Josefsson  <jas@extundo.com>
73803
73804         * modules/size_max: New file.
73805
73806         * modules/xsize: Depend on size_max module for size_max.m4.
73807
73808 2005-07-11  Simon Josefsson  <jas@extundo.com>
73809
73810         * lib/size_max.h: New file.
73811
73812 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73815         copyright symbol and the year.
73816         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73817         (version_etc_va): Use parameterized copyright notice.
73818         Reword to conform to the current GNU coding standards.
73819
73820 2005-07-11  Karl Berry  <karl@gnu.org>
73821
73822         * doc/gnulib.texi (Quoting): new node.
73823         (Initial import): more info, from Patrice.
73824
73825 2005-07-11  Bruno Haible  <bruno@clisp.org>
73826
73827         * gnulib-tool (func_usage): Document option --avoid.
73828         (Command line options): Handle --avoid.
73829         (func_acceptable): New function.
73830         (func_modules_transitive_closure): Use it.
73831
73832 2005-07-11  Bruno Haible  <bruno@clisp.org>
73833
73834         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73835         Reported by Jim Meyering.
73836
73837 2005-07-10  Bruno Haible  <bruno@clisp.org>
73838
73839         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73840         Needed when size_t is smaller than 'unsigned int'.
73841         Reported by Paul Eggert.
73842
73843 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73844
73845         * modules/argp (Depends-on): Add unlocked-io
73846
73847 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73848
73849         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73850         block of defines.
73851
73852 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73855         fix now.
73856
73857 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73858         and Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73861         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73862
73863 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         * modules/regex (Files): Add lib/regex_internal.c,
73866         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73867         (Depends-on): Add extensions.
73868         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73869
73870 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73871
73872         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73873         pathconf.
73874         * m4/same.m4 (gl_SAME): Likewise.
73875         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73876
73877         * m4/regex.m4: Adjust to new libc regex implementation.
73878         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73879         all the .c and .h parts of (the new) regex.
73880         Quote the m4 stuff better.
73881         Check for RE_ICASE bug of old gnulib.
73882         Check for REG_STARTEND of recent libc.
73883         Rename local variables from jm_* to gl_*.
73884         Quote operand of "test -f".
73885         Say "recent enough" version of libc, not "version 2".
73886         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73887         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73888         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73889         Remove check for btowc, isascii.
73890         Require AM_LANGINFO_CODESET.
73891
73892 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * lib/regex.c, regex.h: Sync from libc.
73895         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73896         * lib/regexec.c:
73897         New files, synced from libc, except that regex_internal.h
73898         currently has a small porting fix.
73899
73900 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73901
73902         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73903         regex_internal.c, regexec.c.
73904         Add regex_internal.h too, but as a comment, since the libc version
73905         is currently broken in gnulib mode.
73906
73907 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73908
73909         Support programs like Emacs that use gnulib but not gettext.
73910         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73911         * modules/gettext-h: New file.
73912         * modules/gettext (Files): Remove lib/gettext.h.
73913         (Depends-on): Add gettext-h.
73914         (Makefile.am): Remove lib_SOURCES.
73915         * modules/argmatch, modules/c-stack, modules/closeout:
73916         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73917         * modules/execute, modules/file-type, modules/getaddrinfo:
73918         * modules/getopt, modules/human, modules/javacomp:
73919         * modules/javaexec, modules/mkdir-p, modules/obstack:
73920         * modules/openat, modules/pagealign_alloc, modules/pipe:
73921         * modules/quotearg, modules/regex, modules/rpmatch:
73922         * modules/unicodeio, modules/userspec, modules/version-etc:
73923         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73924         * modules/xsetenv:
73925         Depend on gettext-h, not gettext.
73926
73927 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73928
73929         * gnulib-tool (func_import): Add support for 'public domain' license.
73930         * modules/alloca, modules/atexit, modules/memmove:
73931         Now public domain, not GPL.
73932         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73933         * modules/realloc, modules/strerror, modules/strtod:
73934         Now LGPL, not GPL.
73935
73936 2005-07-05  Bruno Haible  <bruno@clisp.org>
73937
73938         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73939         autoconf CVS. Needed for mingw.
73940
73941 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         Remove the dependency of the strftime module on the tzset module.
73944         * modules/strftime (Depends-on): Remove dependency on tzset.
73945
73946 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         Remove the dependency of the strftime module on the tzset module.
73949         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73950         gl_FUNC_TZSET_CLOBBER.
73951
73952 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         Remove the dependency of the strftime module on the tzset module.
73955         * lib/strftime.c (my_strftime)
73956         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73957         Copy the input structure, to work around some of the bug with
73958         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73959         Solaris releases, you should also use the tzset module, but we won't
73960         require it as a dependency any more since we don't want LGPLed code
73961         to depend on GPLed code.
73962
73963 2005-07-02  Jim Meyering  <jim@meyering.net>
73964
73965         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73966         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73967         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73968         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73969
73970 2005-07-02  Jim Meyering  <jim@meyering.net>
73971
73972         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73973
73974 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73977         declares only 'struct timespec;' (!).
73978
73979 2005-07-01  Jim Meyering  <jim@meyering.net>
73980
73981         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73982         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73983         * lib/save-cwd.c, tempname.c:
73984         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73985         and don't include <sys/file.h>).
73986
73987 2005-06-29  Jim Meyering  <jim@meyering.net>
73988
73989         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73990         type name.  Use the variable name instead.
73991         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73992         Likewise.
73993
73994 2005-06-28  Simon Josefsson  <jas@extundo.com>
73995
73996         * modules/check-version (Files): Add check-version.m4.
73997
73998 2005-06-28  Simon Josefsson  <jas@extundo.com>
73999
74000         * m4/check-version.m4: New file, suggested by Jim Meyering
74001         <jim@meyering.net>.
74002
74003 2005-06-28  Simon Josefsson  <jas@extundo.com>
74004
74005         * lib/check-version.h, lib/check-version.c: New files.
74006
74007 2005-06-28  Simon Josefsson  <jas@extundo.com>
74008
74009         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
74010         collision with global variable.  Better indentation.  Don't
74011         increment buffer pointer beyond buffer end.  Based on comments
74012         from Paul Eggert <eggert@cs.ucla.edu>.
74013
74014         * lib/base64.h: Indent.
74015
74016 2005-06-28  Simon Josefsson  <jas@extundo.com>
74017
74018         * doc/gnulib.texi (Library version handling): New section.
74019
74020 2005-06-28  Jim Meyering  <jim@meyering.net>
74021
74022         * check-module (find_included_lib_files): Hard-code another
74023         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
74024         but modules/fts-lgpl (correctly) does not list those files.
74025
74026         * modules/canonicalize (Files): Add lib/pathmax.h.
74027
74028 2005-06-25  Simon Josefsson  <jas@extundo.com>
74029
74030         * modules/check-version: New file.
74031
74032 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
74035         initializer of struct addrinfo, as an indication that we don't
74036         care how many members the structure has.
74037
74038 2005-06-24  Derek Price  <derek@ximbiot.com>
74039         and Bruno Haible  <bruno@clisp.org>
74040
74041         Remove stat module & update lstat.
74042         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
74043         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74044         * m4/stat.m4: Remove this file.
74045
74046 2005-06-24  Derek Price  <derek@ximbiot.com>
74047         and Bruno Haible  <bruno@clisp.org>
74048
74049         Remove stat module & update lstat.
74050         * lib/stat.c: Remove this file...
74051         (slash_aware_lstat): ...moving this content and its support...
74052         * lib/lstat.c (rpl_lstat): ...into here.
74053         * lib/lstat.h: New file.
74054
74055 2005-06-24  Derek Price  <derek@ximbiot.com>
74056         and Bruno Haible  <bruno@clisp.org>
74057
74058         Remove stat module & update lstat.
74059         * config/srclist.txt (libc sources): Remove stat.
74060
74061 2005-06-24  Derek Price  <derek@ximbiot.com>
74062         and Bruno Haible  <bruno@clisp.org>
74063
74064         Remove stat module & update lstat.
74065         * MODULES.html.sh (stat): Remove.
74066         * MODULES.html: Regenerated.
74067         * modules/lstat (Description): Correct function name.
74068         (Files): Add "lstat.h".
74069         (Depends-on): Remove stat, add xalloc, stat-macros.
74070         * modules/stat: Remove this file.
74071         (Include): Add "lstat.h", remove <sys/stat.h>.
74072
74073 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
74074
74075         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
74076         (ranged_convert): Don't save conversion in a temporary struct.
74077         This causes a warning with GCC 4.0.0, and anyway in the typical
74078         case it's not worth the extra 100 bytes or so of code.
74079         (ranged_convert, __mktime_internal): When calling a function via a
74080         pointer P, use P () rather than (*P) (), as we now assume C89 or
74081         better.
74082
74083 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74084
74085         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
74086         "who -r" failed to give output.  Problem reported by Tim Waugh.
74087
74088         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
74089         (xcalloc): Use it to avoid needless tests.
74090         Problem reported by Jim Meyering.
74091
74092 2005-06-20  Derek Price  <derek@ximbiot.com>
74093
74094         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
74095         unnecessary for Autoconfs > 2.59c.
74096
74097 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74098
74099         * lib/argp.h (__option_is_short): Check upper limit of
74100         __key. Isprint() requires its argument to have the value
74101         of an unsigned char or EOF.
74102
74103 2005-06-16  Jim Meyering  <jim@meyering.net>
74104
74105         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
74106         when either N or S is zero.
74107
74108 2005-06-16  Derek Price  <derek@ximbiot.com>
74109
74110         * m4/bison.m4: Declare YACC & YFLAGS precious.
74111
74112 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
74113
74114         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
74115         multibyte string or pattern, fall back on unibyte matching.
74116         Problem reported by James Youngman.
74117
74118 2005-06-08  Bruno Haible  <bruno@clisp.org>
74119
74120         * modules/csharpcomp: New file.
74121         * MODULES.html.sh (C#): Add csharpcomp.
74122
74123 2005-06-08  Bruno Haible  <bruno@clisp.org>
74124
74125         * m4/csharpcomp.m4: New file, from GNU gettext.
74126
74127 2005-06-08  Bruno Haible  <bruno@clisp.org>
74128
74129         * lib/csharpcomp.h: New file, from GNU gettext.
74130         * lib/csharpcomp.c: New file, from GNU gettext.
74131         * lib/csharpcomp.sh.in: New file, from GNU gettext.
74132
74133 2005-06-08  Bruno Haible  <bruno@clisp.org>
74134
74135         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
74136         warning on mingw.
74137
74138 2005-06-07  Derek Price  <derek@ximbiot.com>
74139
74140         Sync from CVS.
74141         * lib/glob_.h: Indent nested #ifdef.
74142
74143 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74144
74145         Sync from coreutils.
74146         Use "file name" when talking about file names, instead of "filename"
74147         or "path", as per the GNU coding standards.
74148         * lib/mkdir-p.c: Renamed from makepath.c.
74149         (make_dir_parents): Renamed from make_path.  All callers changed.
74150         * lib/mkdir-p.h: Likewise.  All includers changed.
74151         * lib/filenamecat.c: Renamed from path-concat.c.
74152         (file_name_concat): Renamed from path_concat.  All callers changed.
74153         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
74154         * lib/filenamecat.h: Likewise.  All includers changed.
74155         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
74156         in comments or local variable names.
74157         * lib/basename.c: Likewise.
74158         * lib/canonicalize.c, canonicalize.h: Likewise.
74159         * lib/dirname.c, dirname.h: Likewise.
74160         * lib/euidaccess.c: Likewise.
74161         * lib/exclude.c: Likewise
74162         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
74163         * lib/fsusage.c, fsuage.h: Likewise.
74164         * lib/fts.c, fts_.h: Likewise.
74165         * lib/getcwd.c: Likewise.
74166         * lib/getloadavg.c: Likewise.
74167         * lib/mkstemp.c: Likewise.
74168         * lib/mountlist.c, mountlist.h: Likewise.
74169         * lib/openat.c, openat.h: Likewise.
74170         * lib/readlink-stub.c: Likewise.
74171         * lib/readutmp.c, readutmp.h: Likewise.
74172         * lib/rename.c: Likewise.
74173         * lib/rmdir.c: Likewise.
74174         * lib/same.c: Likewise.
74175         * lib/savedir.c: Likewise.
74176         * lib/stripslash.c: Likewise.
74177         * lib/tempname.c: Likewise.
74178         * lib/xreadlink.c: Likewise.
74179         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
74180         All uses changed.
74181         * lib/exclude.h: Likewise.
74182
74183         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
74184         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74185         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
74186         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74187         * lib/pathmax.h: Include <limits.h> unconditionally, since other
74188         files have been getting away with it for years (MORE/BSD 4.3
74189         is extinct now).
74190         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
74191         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74192
74193         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
74194         Define to 256, not 255, as per modern POSIX.
74195
74196 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74197
74198         Sync from coreutils.
74199         Use "file name" when talking about file names, instead of "filename"
74200         or "path", as per the GNU coding standards.
74201         * MODULES.html.sh: mkdir-p renamed from makepath.
74202         filenamecat renamed from path-concat.
74203         * modules/filenamecat: Renamed from modules/path-concat.
74204         (Files): filenamecat.h and filenamecat.c renamed from
74205         path-concat.h and path-concat.c.
74206         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
74207         (Include): filenamecat.h, not path-concat.h.
74208         * modules/mkdir-p: Renamed from modules/makepath.
74209         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
74210         makepath.c.
74211         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
74212         (Include): mkdir-p.h, not makepath.h.
74213
74214 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74215
74216         Sync from coreutils.
74217         * m4/mkdir-p.m4: Renamed from makepath.m4.
74218         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
74219         Rename files from makepath.c to mkdir-p.c, and from
74220         makepath.h to mkdir-p.h.
74221         * m4/filenamecat.m4: Renamed from path-concat.m4.
74222         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
74223         Rename files from path-concat.c to filenamecat.c,
74224         and from path-concat.h to filenamecat.h.
74225         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
74226         "file name" in local variables or comments.
74227         * m4/rename.m4: Likewise.
74228
74229 2005-06-01  Bruno Haible  <bruno@clisp.org>
74230
74231         * modules/csharpexec: New file.
74232         * MODULES.html.sh (C#): New section.
74233
74234 2005-06-01  Bruno Haible  <bruno@clisp.org>
74235
74236         * m4/csharp.m4: New file, from GNU gettext.
74237         * m4/csharpexec.m4: New file, from GNU gettext.
74238
74239 2005-06-01  Bruno Haible  <bruno@clisp.org>
74240
74241         * lib/csharpexec.h: New file, from GNU gettext.
74242         * lib/csharpexec.c: New file, from GNU gettext.
74243         * lib/csharpexec.sh.in: New file, from GNU gettext.
74244
74245 2005-05-31  Derek Price  <derek@ximbiot.com>
74246             Paul Eggert  <eggert@cs.ucla.edu>
74247
74248         Sync from cvs.
74249         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74250
74251 2005-05-31  Derek Price  <derek@ximbiot.com>
74252             Paul Eggert  <eggert@cs.ucla.edu>
74253
74254         Sync from cvs.
74255         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74256
74257 2005-05-29  Derek Price  <derek@ximbiot.com>
74258
74259         * config/srclist.txt (glob_.h, glob.c): Add these files.
74260
74261 2005-05-29  Derek Price  <derek@ximbiot.com>
74262
74263         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
74264         * modules/glob: New file.
74265         * modules/getlogin_r: Add link to POSIX spec in description.
74266
74267 2005-05-29  Derek Price  <derek@ximbiot.com>
74268             Paul Eggert  <eggert@cs.ucla.edu>
74269
74270         * m4/glob.m4: New file.
74271
74272 2005-05-29  Derek Price  <derek@ximbiot.com>
74273             Paul Eggert  <eggert@cs.ucla.edu>
74274
74275         * lib/glob_.h, lib/glob.c: New files.
74276
74277 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74278
74279         * modules/fts (Files): Remove m4/inttypes-pri.m4.
74280         * modules/fts-lgpl (Depends-on): Remove gettext.
74281
74282 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
74285         and don't require gt_INTTYPES_PRI.
74286
74287 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74288
74289         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
74290
74291         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
74292         the configuration hassle isn't worth it.
74293         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
74294         (LONGEST_MODIFIER, PRIuMAX): Remove.
74295
74296 2005-05-27  Bruno Haible  <bruno@clisp.org>
74297
74298         * lib/getlogin_r.h: Remove second include of <stddef.h>.
74299
74300 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
74303         _POSIX_PTHREAD_SEMANTICS for Solaris.
74304
74305 2005-05-25  Derek Price  <derek@ximbiot.com>
74306
74307         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
74308
74309 2005-05-25  Derek Price  <derek@ximbiot.com>
74310             Paul Eggert  <eggert@cs.ucla.edu>
74311
74312         * modules/getlogin_r, m4/getlogin_r.m4: New files.
74313         * lib/getlogin_r.c, getlogin_r.h: New files.
74314
74315 2005-05-25  Bruno Haible  <bruno@clisp.org>
74316             Derek Price  <derek@ximbiot.com>
74317
74318         * lib/getlogin_r.h: Simplify API documentation.
74319
74320 2005-05-23  Derek Price  <derek@ximbiot.com>
74321
74322         * modules/minmax (Files): Add m4/minmax.m4.
74323         (configure.ac): Add gl_MINMAX.
74324
74325 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74326
74327         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
74328         so that unistd-safer.h (GPL'ed code) need not be included.
74329
74330 2005-05-22  Bruno Haible  <bruno@clisp.org>
74331
74332         * m4/minmax.m4: New file.
74333         Based on a patch by Derek Price <derek@ximbiot.com>.
74334
74335 2005-05-22  Bruno Haible  <bruno@clisp.org>
74336
74337         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
74338         (INT64_MIN): Fix definition.
74339         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
74340
74341         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
74342         NEED_SIGNED_INT_TYPES.
74343
74344         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
74345         HAVE_SYSTEM_INTTYPES.
74346
74347 2005-05-22  Bruno Haible  <bruno@clisp.org>
74348
74349         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
74350         Also include <sys/param.h> if it defines MIN, MAX.
74351         Based on a patch by Derek Price <derek@ximbiot.com>.
74352
74353 2005-05-21  Jim Meyering  <jim@meyering.net>
74354
74355         * modules/fts (Files): Add m4/inttypes-pri.m4.
74356         (Depends-on): Add lstat and remove gettext.  Alphabetize.
74357
74358 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74359
74360         New fts module.
74361         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
74362         (setup_dir, free_dir): New functions.
74363         (enter_dir, leave_dir): Define trivial
74364         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
74365         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
74366         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
74367         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
74368         Move to fts-cycle.c.
74369         (fts_open): Use setup_dir.
74370         (fts_close): Use free_dir.
74371         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
74372         This adds a label and some gotos, but the alternatives were messier.
74373         Check for memory allocation failure when entering a dir.
74374         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
74375         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
74376         (FTS): New member fts_cycle, that is a union that contains the
74377         old active_dir_ht and cycle_state.  All uses changed to mention
74378         fts_cycle.ht and fts_cycle.state.
74379         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
74380         fts.c, with the following changes:
74381         (setup_dir, free_dir): New functions.
74382         (enter_dir): Now returns bool.  Return true if successful, false
74383         if memory exhausted.  All callers changed.
74384         Do not bother partly cleaning up on
74385         memory allocation failure; that is free_dir's job.
74386         However, free ad if hash_insert fails, to avoid memory leak.
74387         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
74388         fts->fts_options to see which union member to use.
74389
74390 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
74393         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
74394
74395 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
74398
74399 2005-05-20  Jim Meyering  <jim@meyering.net>
74400
74401         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
74402         Now a macro, to pacify GCC.
74403
74404 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74405
74406         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
74407         of -1.
74408
74409 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74410
74411         * lib/chown.c (rpl_chown): Return -1 on failure.
74412
74413 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74414
74415         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
74416         Don't check for stddef.h.
74417         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
74418         don't use its results.
74419         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
74420         since we include them unconditionally.  Don't require
74421         AM_STDBOOL_H, since stdbool is a prerequisite.
74422         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
74423         since we assume C89 or better.
74424         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
74425         as we don't use their results.
74426         Don't check for fchdir, memmove, memset, strrchr, as we use
74427         them unconditionally.
74428         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
74429         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
74430
74431 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74432
74433         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
74434         Include <stddef.h> unconditionally, since we assume C89 now.
74435         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
74436         * lib/fts.c: Include fts_.h first, to check interface.
74437         Do not include intprops.h; no longer needed.
74438         Include cycle-check.h and hash.h, since fts_.h no longer does.
74439         Remove unnecessary casts of closedir to void.
74440         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
74441         decide whether to decrement nlinks.
74442         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
74443         (FTS): Use struct hash_table * instead of Hash_table, so that
74444         we no longer need to include hash.h here.
74445
74446 2005-05-18  Jim Meyering  <jim@meyering.net>
74447
74448         * modules/dirfd (License): Change to LGPL.  Most of the code
74449         is already in the public domain.
74450
74451 2005-05-18  Jim Meyering  <jim@meyering.net>
74452
74453         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
74454         Reported by Yoann Vandoorselaere.
74455
74456 2005-05-17  Jim Meyering  <jim@meyering.net>
74457
74458         * m4/fts.m4: New file, from coreutils.
74459
74460 2005-05-17  Jim Meyering  <jim@meyering.net>
74461
74462         * lib/fts.c, lib/fts_.h: New files, from coreutils.
74463
74464 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74465
74466         Sync from coreutils.
74467         * m4/unlinkdir.m4: New file.
74468
74469 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         Sync from coreutils.
74472         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
74473         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
74474         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
74475         White space changes only.
74476         * lib/makepath.c (make_path): Port to hosts where leading "//" is
74477         special.
74478         * lib/yesno.c: Include getline.h, not ctype.h.
74479         (yesno): Don't remove leading white space; POSIX doesn't allow it.
74480         Use getline to remove arbitrary restriction on response length.
74481
74482 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74483
74484         * config/srclist-update: Spell out "Street" in FSF postal
74485         mail address; this is the style the FSF seems to prefer.
74486
74487         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
74488         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
74489         this updates FSF postal mail address.
74490
74491         Sync from coreutils.
74492         * modules/unlinkdir: New file.
74493         * modules/yesno (Depends-on): Add getline.
74494         * MODULES.html.sh (File system functions): Add unlinkdir.
74495
74496 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74497
74498         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
74499         lib/strsep.h:
74500         Change the initial comment to refer to GPL, not LGPL.
74501         gnulib-tool will change it to LGPL as needed.
74502
74503         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
74504         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
74505         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
74506         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
74507         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
74508         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
74509         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
74510         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
74511         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74512         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74513         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74514         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74515         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74516         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74517         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74518         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74519         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74520         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74521         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74522         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74523         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74524         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74525         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74526         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74527         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74528         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74529         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74530         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74531         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74532         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74533         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74534         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74535         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74536         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74537         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74538         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74539         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74540         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74541         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74542         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74543         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74544         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74545         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74546         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74547         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74548         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74549         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74550         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74551         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74552         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74553         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74554         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74555         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74556         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74557         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74558         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74559         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74560         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74561         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74562         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74563         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74564         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74565         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74566         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74567         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74568         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74569         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74570         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74571         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74572         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74573         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74574         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74575         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74576         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74577         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74578         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74579         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74580         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74581         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74582         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74583         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74584         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74585         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74586         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74587         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74588         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74589         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74590         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74591         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74592         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74593         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74594         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74595         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74596         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74597         lib/yesno.c, lib/yesno.h:
74598         Update FSF postal mail address.
74599
74600 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74603         tests/test-memmem.c, tests/test-stpncpy.c:
74604         Update FSF postal mail address.
74605
74606 2005-05-13  Bruno Haible  <bruno@clisp.org>
74607
74608         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74609         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74610         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74611         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74612         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74613         Add support for 64-bit integers in the MSVC compiler.
74614
74615 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74616
74617         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74618
74619 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74620
74621         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74622
74623 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74624
74625         * doc/getdate.texi (General date syntax): Don't say that date
74626         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74627         Problem reported by Nic Ferrier.
74628
74629 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74630
74631         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74632         specified in ai_socktype. Fix invalid ai_protocol
74633         check. ai_protocol is usually set to 0 or depending on
74634         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74635         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74636         ai_socktype / ai_protocol in the returned addrinfo structure.
74637
74638 2005-05-10  Simon Josefsson  <jas@extundo.com>
74639
74640         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74641         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74642
74643 2005-05-10  Karl Berry  <karl@gnu.org>
74644
74645         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74646         (from http://www.gnu.org/licenses).
74647         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74648         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74649         fdl.texi suffices.
74650
74651 2005-05-10  Karl Berry  <karl@gnu.org>
74652
74653         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74654         (COPYING.DOC): remove.
74655
74656         * config/srclist-update: new FSF address.
74657
74658 2005-05-10  Derek Price  <derek@ximbiot.com>
74659
74660         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74661         possible.
74662
74663 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74664             Bruno Haible  <bruno@clisp.org>
74665
74666         * modules/inet_ntop: New file.
74667         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74668         inet_ntop.
74669
74670 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74671             Bruno Haible  <bruno@clisp.org>
74672
74673         * m4/inet_ntop.m4: New file.
74674
74675 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74676             Bruno Haible  <bruno@clisp.org>
74677
74678         * lib/inet_ntop.h: New file.
74679         * lib/inet_ntop.c: New file, from glibc with modifications.
74680
74681 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * modules/time_r (License): Change to LGPL.
74684         * modules/extensions (License): Change to LGPL.  Actually,
74685         the license is more permissive than that, but currently gnulib-tool
74686         doesn't know how to handle more-permissive licenses.
74687
74688         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74689         Problem reported by Dave Love.
74690
74691 2005-05-08  Jim Meyering  <jim@meyering.net>
74692
74693         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74694         blank.
74695
74696 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74697
74698         * modules/argmatch (Depends-on): Add stdbool.
74699         * modules/backupfile (Depends-on): Likewise.
74700         * modules/chdir-long (Depends-on): Likewise.
74701         * modules/closeout (Depends-on): Likewise.
74702         * modules/cycle-check (Depends-on): Likewise.
74703         * modules/dirname (Depends-on): Likewise.
74704         * modules/fnmatch (Depends-on): Likewise.
74705         * modules/fsusage (Depends-on): Likewise.
74706         * modules/fwriteerror (Depends-on): Likewise.
74707         * modules/getcwd (Depends-on): Likewise.
74708         * modules/getloadavg (Depends-on): Likewise.
74709         * modules/hard-locale (Depends-on): Likewise.
74710         * modules/makepath (Depends-on): Likewise.
74711         * modules/mountlist (Depends-on): Likewise.
74712         * modules/nanosleep (Depends-on): Likewise.
74713         * modules/posixtm (Depends-on): Likewise.
74714         * modules/quotearg (Depends-on): Likewise.
74715         * modules/readtokens (Depends-on): Likewise.
74716         * modules/readtokens0 (Depends-on): Likewise.
74717         * modules/readutmp (Depends-on): Likewise.
74718         * modules/save-cwd (Depends-on): Likewise.
74719         * modules/strftime (Depends-on): Likewise.
74720         * modules/userspec (Depends-on): Likewise.
74721         * modules/utimecmp (Depends-on): Likewise.
74722         * modules/xgetcwd (Depends-on): Likewise.
74723         * modules/xnanosleep (Depends-on): Likewise.
74724         * modules/xstrtod (Depends-on): Likewise.
74725         * modules/yesno (Depends-on): Likewise.
74726
74727 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74728
74729         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74730         needless checks.
74731
74732 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74733
74734         Merge from coreutils.  Among other things,
74735         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74736         * lib/fd-safer.c: New file.
74737         * lib/fcntl-safer.h, open-safer.c: Remove.
74738         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74739         * lib/dup-safer.c: Include unistd-safer.h first.
74740         Don't include errno.h.
74741         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74742         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74743         * lib/file-type.c: Rely on file-type.h change.
74744         * lib/getloadavg.c: Include unistd-safer.h.
74745         (getloadavg): Use safer open.
74746         * lib/getusershell.c: Include "stdio-safer.h".
74747         (getusershell): Use safer fopen.
74748         * lib/long-options.c (long_options): Use NULL rather than 0.
74749         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74750         'free'.
74751         * lib/modechange.c: Likewise.
74752         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74753         (MODE_DONE): New constant.
74754         (struct mode_change): Remove 'next' member.
74755         (make_node_op_equals): New function; like the old one of the
74756         same name, except it allocates an array.
74757         (mode_compile, mode_create_from_ref): Use it.
74758         (mode_compile): Allocate result as an array, not a linked list.
74759         Parse octal string ourself, so that we catch mistakes like "+0".
74760         (mode_adjust): Arg is an array, not a linked list.
74761         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74762         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74763         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74764         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74765         Remove.  This is now stat-macros.h's job.
74766         (talloc): Remove.  All callers replaced by xalloc, so that
74767         our invokers don't have to worry about reporting memory failures.
74768         (make_node_op_equals): Remove.
74769         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74770         New constants.
74771         (struct mode_change): Moved here from modechange.h.
74772         (mode_append_entry): Remove.
74773         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74774         apps to have incorrect behavior.  Use simpler algorithm for head
74775         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74776         Detect more invalid usages rather than having somewhat-random behavior.
74777         Don't insert an "a=" action, as that leads to incorrect behavior.
74778         (mode_compile, mode_create_from_ref): Return NULL on error instead
74779         of an enum, since now there's only one way to have an error.  All
74780         callers changed.
74781         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74782         at the correct time.  Simplify calculation of "+u" and its ilk.
74783         Don't mishandle "+X".
74784         (mode_free): Remove "register" and localize decls.
74785         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74786         (struct mode_change): Move to modechange.c; callers don't
74787         need to see this stuff.
74788         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74789         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74790         (mode_change, mode_adjust): Reflect the new signatures noted above.
74791         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74792         that might redefine system include files.
74793         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74794         (my_usleep): Use NULL rather than (void *) 0.
74795         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74796         Use siginterrupt to specify that system calls should be interrupted.
74797         (rpl_nanosleep): Move initialization of suspended closer to call of
74798         my_usleep.
74799         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74800         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74801         (desirable_utmp_entry): New function.
74802         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74803         using x2nrealloc, to simplify logic.
74804         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74805         size calculation.  Do not assume utmp file is a regular file.
74806         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74807         (READ_UTMP_CHECK_PIDS): New constant.
74808         * lib/save-cwd.c: Include unistd-safer.h.
74809         (save_cwd): Use fd_safer.
74810         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74811         [!_LIBC] Include "stat-macros.h" instead.
74812         * lib/unistd-safer.h (fd_safer): New decl.
74813
74814 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74815
74816         * modules/getloadavg (Depends-on): Add unistd-safer.
74817         * modules/getusershell (Depends-on): Add stdio-safer.
74818         * modules/lstat (Depends-on): Remove xalloc.
74819         * modules/mkstemp (Depends-on): Add stat-macros.
74820         * modules/modechange (Depends-on): Remove xstrtol.
74821         Add stat-macros, xalloc.
74822         * modules/save-cwd (Depends-on): Add unistd-safer.
74823         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74824         * modules/unistd-safer (Files): Add lib/fd-safer.c
74825         (Makefile.am): Remove lib_SOURCES.
74826
74827         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74828         Remove fcntl-safer; unistd-safer supersedes it.
74829
74830 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74831
74832         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74833         AC_HEADER_STAT.
74834         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74835         (gl_PREREQ_CHOWN): Remove.
74836         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74837         it.  Don't require AC_HEADER_STAT.
74838         (gl_PREREQ_LSTAT): Remove.
74839         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74840         Don't require AC_HEADER_STAT.
74841         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74842         (gl_PREREQ_RMDIR): Remove.
74843         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74844         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74845         the stat-macros module a prerequisite.
74846         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74847         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74848         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74849         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74850         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74851         variable names.
74852         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74853         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74854         variable prefixes.
74855         * m4/fcntl-safer.m4: Remove.
74856         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74857         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74858         Invoke gl_PREREQ_FD_SAFER.
74859         (gl_PREREQ_FD_SAFER): New macro.
74860         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74861         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74862         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74863         Remove duplicate call to AC_LIBOBJ(readutmp).
74864         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74865
74866         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74867         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74868
74869 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74870
74871         * MODULES.html.sh (Misc): Add byteswap.
74872
74873 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74874
74875         * modules/getcwd (Depends-on): Add extensions.
74876         * modules/openat (Depends-on): Likewise.
74877
74878 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74879
74880         * modules/byteswap: New file.
74881
74882 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74883
74884         * m4/byteswap.m4: New file.
74885
74886 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74887
74888         * lib/byteswap_.h: New file.
74889
74890 2005-04-25  Karl Berry  <karl@gnu.org>
74891
74892         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74893
74894 2005-04-25  Albert Chin  <china@thewrittenword.com>
74895
74896         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74897         Toolkit C bug.
74898
74899 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74900
74901         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74902         (func_ln_if_changed): Remove forcibly for no error message
74903         in case file does not exist.
74904
74905 2005-04-19  Simon Josefsson  <jas@extundo.com>
74906
74907         * gnulib-tool (Options): Make --symlink mean --symbolic.
74908
74909 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74910
74911         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74912
74913 2005-04-16  Simon Josefsson  <jas@extundo.com>
74914
74915         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74916
74917 2005-04-15  Simon Josefsson  <jas@extundo.com>
74918
74919         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74920
74921 2005-04-15  Simon Josefsson  <jas@extundo.com>
74922
74923         * gnulib-tool: Rename --symlink to --symbolic.
74924
74925 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74926
74927         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74928         symbolic links to files instead of copying/moving.  Add --aux-dir,
74929         specifying directory relative --dir where auxiliary build tools
74930         are placed.
74931
74932 2005-04-14  Bruno Haible  <bruno@clisp.org>
74933
74934         * modules/allocsa (License): Change to LGPL.
74935         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74936
74937 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74938
74939         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74940         that "UTC +1 second" continues to work.  Problem reported
74941         by Dmitry V. Levin.
74942         (relunit_snumber): New rule.
74943         (relunit): Use it.
74944
74945 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74946
74947         * lib/getdate.y (universal_time_zone_table): New constant.
74948         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74949         universal_time_zone_table.
74950         (lookup_zone): Prefer universal_time_zone_table to
74951         local_time_zone_table, so that "GMT" time stamps are allowed in
74952         London during the summer.  Problem reported by Ian Abbott.
74953
74954 2005-04-12  Jim Meyering  <jim@meyering.net>
74955
74956         * lib/human.c (humblock): Set *options even when returning due to
74957         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74958         warning from gcc-4.
74959
74960 2005-04-09  Jim Meyering  <jim@meyering.net>
74961
74962         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74963         -Wuninitialized: initialize tm0.tm_year.
74964
74965 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74968         count, since there's no maximum.  All uses changed.
74969         Add member dsts_seen.
74970         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74971         not being INT_MAX.
74972         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74973         Use pc_rels_seen to decide whther a date is absolute.
74974
74975         * lib/getdate.y (number): Don't overwrite year.
74976         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74977         check.
74978
74979 2005-04-02  Simon Josefsson  <jas@extundo.com>
74980
74981         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74982         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74983
74984 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74985
74986         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74987         where no absolute path name can be longer than PATH_MAX.
74988
74989 2005-03-27  Jim Meyering  <jim@meyering.net>
74990
74991         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74992
74993 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74994
74995         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74996         "one's complement" -> "ones' complement" in comment, as per Knuth.
74997         "value of type" -> "type or expression" in comment.
74998         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74999
75000 2005-03-26  Jim Meyering  <jim@meyering.net>
75001
75002         Comment nits.
75003         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
75004         Correct typos: s/or/of/.
75005
75006 2005-03-26  Jim Meyering  <jim@meyering.net>
75007
75008         * modules/check-include-files: Move to ../ and rename to...
75009         * check-module: ...this.
75010
75011 2005-03-25  Jim Meyering  <jim@meyering.net>
75012
75013         * modules/xvasprintf (Files): Add xalloc.h.
75014
75015 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
75016
75017         * modules/gettext (Files): config/config.rpath ->
75018         build-aux/config.rpath
75019         * modules/iconv (Files): Likewise.
75020         Problem reported by Oskar Liljeblad.
75021
75022 2005-03-23  Jim Meyering  <jim@meyering.net>
75023
75024         * modules/check-include-files: New script to check for
75025         missing dependencies, multiple includes, etc.
75026
75027         * modules/c-strtold (Depends-on): Add xalloc.
75028         * modules/c-strtod (Depends-on): Add xalloc.
75029         * modules/hash (Depends-on): Add xalloc.
75030         (Files): Remove lib/xalloc.h.
75031
75032         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
75033         * modules/userspec (Files): Add lib/inttostr.h.
75034
75035 2005-03-23  Jim Meyering  <jim@meyering.net>
75036
75037         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
75038
75039 2005-03-22  Jim Meyering  <jim@meyering.net>
75040
75041         * modules/stat-macros: New module.
75042         * modules/canonicalize, modules/euidaccess, modules/file-type,
75043         * modules/filemode, modules/lchown, modules/makepath,
75044         * modules/rmdir, modules/stat: Depend on new stat-macros module
75045         rather than listing lib/stat-macros.h manually.
75046         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
75047
75048 2005-03-22  Jim Meyering  <jim@meyering.net>
75049
75050         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
75051
75052 2005-03-22  Bruno Haible  <bruno@clisp.org>
75053
75054         * config/srclist.txt: Replace target directory 'config' with
75055         'build-aux'.
75056         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
75057         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
75058         ../build-aux/.
75059
75060 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         * modules/chdir-long (Depends-on): Add mempcpy.
75063
75064         * modules/acl, modules/backupfile, modules/c-strtod,
75065         modules/c-strtold, modules/canon-host, modules/canonicalize,
75066         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
75067         modules/exclude, modules/exitfail, modules/file-type,
75068         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
75069         modules/getdate, modules/getline, modules/getpagesize,
75070         modules/getpass, modules/getugroups, modules/group-member,
75071         modules/hard-locale, modules/hash, modules/human, modules/idcache,
75072         modules/inttostr, modules/long-options, modules/makepath,
75073         modules/md5, modules/memcasecmp, modules/memcoll,
75074         modules/modechange, modules/mountlist, modules/path-concat,
75075         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
75076         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
75077         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
75078         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
75079         modules/strftime, modules/strndup, modules/strverscmp,
75080         modules/timespec, modules/unlocked-io, modules/userspec,
75081         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
75082         modules/yesno:
75083         Remove lib_SOURCES line from Makefile.am section, as this is now
75084         done automatically by the corresponding Autoconf macro.
75085
75086 2005-03-21  Jim Meyering  <jim@meyering.net>
75087
75088         Changes imported from coreutils.
75089
75090         * lib/cycle-check.c: Don't include xalloc.h.
75091
75092         * lib/path-concat.c: Don't include assert.h.
75093         (path_concat): Remove assertion that would have triggered
75094         for ABASE starting with more than one slash.
75095         Reported by Andreas Schwab.
75096
75097         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
75098         properly when ABASE is an absolute file name.
75099         Correct the description of this function.
75100         Include <assert.h>.
75101         Add an assertion and a test driver.
75102         This fixes a bug introduced on 2004-07-02.
75103         Andreas Schwab reported the resulting failure of cp --parents:
75104         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
75105
75106 2005-03-21  Jim Meyering  <jim@meyering.net>
75107
75108         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
75109         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
75110
75111 2005-03-21  Jim Meyering  <jim@meyering.net>
75112         and  Paul Eggert  <eggert@cs.ucla.edu>
75113
75114         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
75115         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
75116         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
75117         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
75118         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
75119         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
75120         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
75121         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
75122         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
75123         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
75124         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
75125         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
75126         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
75127         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
75128         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
75129         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
75130         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
75131         for these modules.
75132
75133 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
75136         (which shouldn't happen), generate nothing instead of returning 0
75137         immediately, so that nstrftime (NULL, ...) doesn't return 0.
75138
75139 2005-03-16  Bruno Haible  <bruno@clisp.org>
75140
75141         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
75142         HAVE_LONGLONG_64BIT.
75143
75144 2005-03-16  Bruno Haible  <bruno@clisp.org>
75145
75146         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
75147         HAVE_LONGLONG_64BIT.
75148
75149 2005-03-16  Bruno Haible  <bruno@clisp.org>
75150
75151         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
75152         HAVE_LONGLONG_64BIT.
75153
75154 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75155
75156         * lib/strftime.c (my_strftime): Prepend space to format so that we can
75157         reliably distinguish strftime failure from empty output on POSIX
75158         hosts.
75159
75160 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75161
75162         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
75163         (iconv_string): Don't guess a size-zero buffer, as that might cause
75164         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
75165         result would be 'too large', where 'too large' is (heuristically)
75166         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
75167         overflow concerns.  This will prevent some unwanted malloc failures
75168         when the inputs are very large.
75169
75170 2005-03-15  Karl Berry  <karl@gnu.org>
75171
75172         * config/srclist.txt (config.rpath): from gettext.
75173         * config/config.rpath: update.
75174
75175 2005-03-15  Bruno Haible  <bruno@clisp.org>
75176
75177         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
75178         to 'negate'.
75179
75180         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
75181         variable.
75182
75183         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
75184         results.
75185
75186 2005-03-14  Simon Josefsson  <jas@extundo.com>
75187
75188         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
75189         <fx@gnu.org>.
75190
75191 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
75194         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
75195         intprops.h.
75196         * lib/strtol.c: Likewise.
75197
75198 2005-03-14  Jim Meyering  <jim@meyering.net>
75199
75200         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
75201         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
75202         to be nonzero so that we (and caller) can detect the difference
75203         between a valid zero-length expansion and an error return, even
75204         when the underlying strftime fails before writing anything into
75205         that location.
75206
75207 2005-03-14  Bruno Haible  <bruno@clisp.org>
75208
75209         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
75210         Update from GNU gettext 0.14.3.
75211
75212 2005-03-10  Jim Meyering  <jim@meyering.net>
75213
75214         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
75215
75216 2005-03-10  Jim Meyering  <jim@meyering.net>
75217
75218         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
75219         so that this module works on systems without fchdir.
75220
75221 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         Factor int-properties macros into a single file, except for
75224         glibc-related files.
75225         * lib/intprops.h: New file.
75226         * lib/getloadavg.c: Include it instead of limits.h.
75227         (INT_STRLEN_BOUND): Remove.
75228         * lib/human.c: Include intprops.h.
75229         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
75230         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
75231         302/1000.
75232         * lib/inttostr.h: Include intprops.h instead of limits.h.
75233         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
75234         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
75235         for consistency with intprops.h.
75236         (time_t_is_integer, twos_complement_arithmetic): Use them.
75237         * lib/sig2str.h: Include <signal.h>, intprops.h.
75238         (INT_STRLEN_BOUND): Remove.
75239         * lib/strftime.c (TYPE_SIGNED): Remove.
75240         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
75241         * lib/strtol.c: Adjust comments to match intprops.h.
75242         * lib/userspec.c: Include intprops.h.
75243         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
75244         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
75245         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
75246         instead of rolling our own expressions.
75247         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
75248
75249         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
75250         instead of int.
75251         (my_strftime): Do not mishandle years close to INT_MAX, by doing
75252         the right thing even if adding 1900 would overflow.  Similarly
75253         for tm_mon + 1 and tm_yday + 1.
75254         Make %Y always equivalent to %C%y, and similarly for %G and %g.
75255         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
75256         (DO_SIGNED_NUMBER): New macro.
75257         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75258
75259 2005-03-07  Bruno Haible  <bruno@clisp.org>
75260
75261         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
75262
75263 2005-03-07  Bruno Haible  <bruno@clisp.org>
75264
75265         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
75266
75267 2005-03-04  Derek R. Price  <derek@ximbiot.com>
75268
75269         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
75270         (func_import): Only replace files via --import when they have actually
75271         changed.
75272
75273 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75274
75275         * m4/mmap-anon.m4: New file.
75276         * m4/pagealign_alloc.m4: New file.
75277
75278 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75279             Bruno Haible  <bruno@clisp.org>
75280
75281         * modules/pagealign_alloc: New file.
75282         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
75283
75284 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75285             Bruno Haible  <bruno@clisp.org>
75286
75287         * lib/pagealign_alloc.h: New file.
75288         * lib/pagealign_alloc.c: New file.
75289
75290 2005-03-03  Bruno Haible  <bruno@clisp.org>
75291
75292         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
75293         Use an all-permissive copyright notice, recommended by RMS.
75294
75295 2005-03-02  Bruno Haible  <bruno@clisp.org>
75296
75297         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
75298         of AIX, the replacement has to be done only after <string.h> is
75299         included, therefore not in config.h. stpncpy.h does the replacement,
75300         and stpncpy.c uses it.
75301
75302 2005-03-02  Bruno Haible  <bruno@clisp.org>
75303
75304         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
75305         stpncpy.c uses it.
75306
75307 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
75310         The workaround isn't strictly needed for POSIX conformance, and
75311         it's too much of a pain to configure and maintain.  We'll ask
75312         people to fix their kernels instead.
75313         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
75314         (NANOSLEEP_BUG_WORKAROUND): Remove.
75315         (xnanosleep): Remove the workaround.
75316
75317 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75318
75319         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
75320         Reported by Derek Price.
75321         (Include): Add "timespec.h".
75322
75323         * modules/xnanosleep (Depends-on): Remove gethrxtime.
75324
75325 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75326
75327         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
75328         to detect nanosleep bug.
75329
75330 2005-03-01  Bruno Haible  <bruno@clisp.org>
75331
75332         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
75333
75334 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75335
75336         * modules/gethrxtime: New file.
75337         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
75338         (Depends-on): Add gethrxtime.
75339         (configure.ac): Add gl_XNANOSLEEP.
75340         (Makefile.am): Remove lib_SOURCES line.
75341
75342 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75343
75344         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
75345         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
75346
75347 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75348
75349         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
75350         * lib/timespec.h (gettime): Return void, since it always
75351         succeeds now.  All uses changed.
75352         * lib/gettime.c (gettime): Likewise.
75353         [HAVE_NANOTIME]: Prefer nanotime.
75354         Assume gettimeofday succeeds, as POSIX requires.
75355         Assime time () succeeds, since other code already does.
75356         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
75357         (timespec_subtract): Remove.
75358         (NANOSLEEP_BUG_WORKAROUND): New constant.
75359         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
75360         things considerably.  Use it only on GNU/Linux hosts, since the
75361         workaround shouldn't be needed elsewhere.
75362
75363 2005-02-24  Bruno Haible  <bruno@clisp.org>
75364
75365         * modules/gettext (Files): Add m4/glibc2.m4.
75366
75367 2005-02-24  Bruno Haible  <bruno@clisp.org>
75368
75369         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
75370         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
75371         * m4/progtest.m4:
75372         Update from GNU gettext 0.14.2.
75373         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
75374
75375 2005-02-24  Bruno Haible  <bruno@clisp.org>
75376
75377         * lib/localcharset.c: Update from GNU gettext 0.14.2.
75378         * lib/config.charset: Update from GNU gettext 0.14.2.
75379
75380 2005-02-24  Bruno Haible  <bruno@clisp.org>
75381
75382         * lib/gettext.h: Update from GNU gettext 0.14.2.
75383
75384 2005-02-23  Simon Josefsson  <jas@extundo.com>
75385
75386         * m4/iconvme.m4: New file.
75387
75388 2005-02-23  Jim Meyering  <jim@meyering.net>
75389
75390         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
75391         change.
75392         Thanks to Bruno Haible for catching it.
75393
75394 2005-02-22  Simon Josefsson  <jas@extundo.com>
75395
75396         * modules/iconvme: New file.
75397
75398         * MODULES.html.sh: Add iconvme.
75399
75400 2005-02-22  Simon Josefsson  <jas@extundo.com>
75401
75402         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
75403
75404 2005-02-22  Simon Josefsson  <jas@extundo.com>
75405
75406         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
75407
75408 2005-02-22  Jim Meyering  <jim@meyering.net>
75409
75410         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
75411         s/ifndef/ifdef/.
75412
75413 2005-02-20  Neil Conway  <neilc@samurai.com>
75414
75415         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
75416         returned by OSX/Darwin if the specified buffer is not large
75417         enough for the hostname.
75418
75419 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75420
75421         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
75422         pass it to _help, otherwise the latter coredumps trying to
75423         dereference state.root_argp.
75424
75425 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75426
75427         * modules/chdir-long (Depends-on): Add memrchr.
75428         * modules/memrchr (Files): Add lib/memrchr.h.
75429         (Include): "memrchr.h".
75430
75431 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
75434
75435 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         * lib/memrchr.h: New file.
75438         * lib/chdir-long.c: Include it.
75439         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
75440         Don't bother including stddef.h.
75441
75442 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75443
75444         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
75445         inclusion.
75446         Include <sys/types.h>, for dev_t.
75447         (ME_DUMMY, ME_REMOTE): Move from here....
75448         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
75449         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
75450         Dmitry V. Levin.
75451         Include mountlist.h first, to test the interface.
75452
75453 2005-01-29  Bruno Haible  <bruno@clisp.org>
75454
75455         * lib/progname.c (program_name): Initialize.
75456         Needed when linking statically on MacOS X.
75457
75458 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75459
75460         Sync from coreutils.
75461         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
75462         (Depends-on): Add c-strtod.
75463         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
75464
75465 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75466
75467         Sync from coreutils.
75468         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
75469
75470         Remove files that are specific to coreutils.
75471         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
75472
75473 2005-01-28  Bruno Haible  <bruno@clisp.org>
75474
75475         * modules/javacomp: New file.
75476         * MODULES.html.sh (Java): Add javacomp.
75477
75478 2005-01-28  Bruno Haible  <bruno@clisp.org>
75479
75480         * m4/javacomp.m4: New file, from GNU gettext.
75481
75482 2005-01-28  Bruno Haible  <bruno@clisp.org>
75483
75484         * lib/javacomp.sh.in: New file, from GNU gettext.
75485         * lib/javacomp.h: New file, from GNU gettext.
75486         * lib/javacomp.c: New file, from GNU gettext.
75487
75488 2005-01-26  Simon Josefsson  <jas@extundo.com>
75489
75490         * lib/gai_strerror.c: Use GPL in header.
75491
75492 2005-01-26  Bruno Haible  <bruno@clisp.org>
75493
75494         * modules/javaexec: New file.
75495         * MODULES.html.sh (Java): Add javaexec.
75496
75497 2005-01-26  Bruno Haible  <bruno@clisp.org>
75498
75499         * m4/javaexec.m4: New file, from GNU gettext.
75500
75501 2005-01-26  Bruno Haible  <bruno@clisp.org>
75502
75503         * lib/javaexec.sh.in: New file, from GNU gettext.
75504         * lib/javaexec.h: New file, from GNU gettext.
75505         * lib/javaexec.c: New file, from GNU gettext.
75506
75507 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75508
75509         * modules/lchown (Depends-on): Remove lchown.h
75510
75511 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75512
75513         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75514         must be defined if the header file was not found, in order
75515         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75516
75517 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75518
75519         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75520         initializers for struct pentry_state.
75521         (__argp_error): Check return value of __asprintf
75522         (__argp_failure): Translate error message
75523
75524         * lib/argp-parse.c: Removed braces around the expansion of N_()
75525
75526 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75529         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75530         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75531         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75532         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75533         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75534         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75535         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75536         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75537         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75538         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75539         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75540         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75541         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75542         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75543         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75544         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75545         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75546         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75547         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75548         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75549         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75550         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75551         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75552         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75553         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75554         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75555         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75556         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75557         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75558         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75559         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75560         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75561         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75562         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75563         Use an all-permissive copyright notice, recommended by RMS.
75564
75565 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75566
75567         * modules/chdir-long (Depends-on): Remove mempcpy.
75568
75569 2005-01-21  Jim Meyering  <jim@meyering.net>
75570
75571         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75572         same value as for Solaris 9.
75573
75574         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75575         component length.  This included changing the parameter to be
75576         of type `char *' rather than `char const *'.
75577         * lib/chdir-long.h (chdir_long): Update prototype.
75578
75579         * lib/openat.c (fdopendir, fstatat): New functions.
75580         * lib/openat.h: Include headers required for use of DIR and struct
75581         stat.
75582         [AT_SYMLINK_NOFOLLOW]: Define.
75583         (fdopendir, fstatat): Add prototypes.
75584
75585 2005-01-21  Bruno Haible  <bruno@clisp.org>
75586
75587         * modules/classpath: New file.
75588         * MODULES.html.sh (Java): Add classpath.
75589
75590 2005-01-21  Bruno Haible  <bruno@clisp.org>
75591
75592         * lib/classpath.h: New file, from GNU gettext.
75593         * lib/classpath.c: New file, from GNU gettext.
75594
75595 2005-01-20  Simon Josefsson  <jas@extundo.com>
75596
75597         * modules/version-etc-fsf: New file.
75598
75599 2005-01-20  Simon Josefsson  <jas@extundo.com>
75600
75601         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75602         * lib/version-etc.c: Remove version_etc_copyright.
75603         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75604         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75605
75606 2005-01-20  Simon Josefsson  <jas@extundo.com>
75607
75608         * lib/base64.h (isbase64): Add.
75609
75610         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75611         using a unsigned prototype, don't inline.
75612         (base64_decode): Use it.
75613
75614 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75617         it.
75618
75619 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * lib/save-cwd.c (save_cwd): Remove code to support the case
75622         where fchdir is missing or flaky.
75623
75624 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75625
75626         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75627
75628 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75629
75630         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75631         AC_LIBSOURCES now does this.
75632         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75633         with new ullong_max module.
75634
75635 2005-01-19  Bruno Haible  <bruno@clisp.org>
75636
75637         * modules/sh-quote: New file.
75638         * MODULES.html.sh (Executing programs): Add sh-quote.
75639
75640 2005-01-19  Bruno Haible  <bruno@clisp.org>
75641
75642         * lib/sh-quote.h: New file, from GNU gettext.
75643         * lib/sh-quote.c: New file, from GNU gettext.
75644
75645 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75646
75647         Merge from coreutils.
75648         * m4/ullong_max.m4: New file.
75649         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75650         (gl_MACROS): Assume localeconv exists.
75651
75652 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75653
75654         Merge changes from coreutils, as described below in several
75655         changelogs dated today.
75656
75657         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75658         (O_DIRECTORY): Remove; not needed here, since "." must be
75659         a directory.  All uses removed.
75660         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75661         universal on Suns, and we also need to test for IRIX.
75662         Revamp code to use 'if' rather than '#if'.
75663         Avoid unnecessary comparison of cwd->desc to 0.
75664
75665         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75666         for known valid error numbers rather than observed invalid ones.
75667
75668 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         * modules/ullong_max: New file.
75671
75672         * modules/chdir-long, modules/openat: New files.
75673         * modules/save-cwd (Depends-on): Depend on chdir-long.
75674         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75675
75676 2005-01-18  Jim Meyering  <jim@meyering.net>
75677
75678         Merge from coreutils.
75679         * m4/chdir-long.m4, m4/openat.m4: New files.
75680         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75681         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75682         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75683         is sane and DOES follow symlinks.  Besides, testing 20 different
75684         systems found no broken chown implementations.
75685         Prompted by a change in rsync's copy of this macro.
75686         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75687
75688         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75689
75690         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75691         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75692         NULL-means-set-to-current-time semantics.
75693         Remove temporary file immediately, rather than waiting
75694         for configure's at-exit trap code to do it.
75695
75696 2005-01-18  Jim Meyering  <jim@meyering.net>
75697
75698         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75699
75700         * lib/utimens.c (futimens): Account for the fact that futimes
75701         can also fail with errno == ENOSYS or errno == ENOENT.
75702         Patch from Dmitry V. Levin.
75703
75704         Change the name of the robust chdir function from chdir to chdir_long.
75705         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75706         (restore_cwd): Use chdir_long, not chdir.
75707         * lib/chdir-long.c: Renamed from chdir.c.
75708         * lib/chdir-long.h: Renamed from chdir.h.
75709         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75710         Hurd.
75711
75712 2005-01-18  Bruno Haible  <bruno@clisp.org>
75713
75714         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75715         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75716         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75717         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75718         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75719         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75720         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75721         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75722         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75723         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75724         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75725         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75726         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75727         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75728         Use an all-permissive copyright notice, recommended by RMS.
75729
75730 2005-01-18  Bob Proulx  <bob@proulx.com>
75731
75732         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75733         simplify offsetof() macro construct to avoid compile failure with
75734         native HP-UX 11.0 ANSI C compiler.
75735
75736 2005-01-17  Bruno Haible  <bruno@clisp.org>
75737
75738         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75739         redundant because stpncpy.m4 takes care of it.
75740
75741 2005-01-17  Bruno Haible  <bruno@clisp.org>
75742
75743         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75744
75745 2005-01-17  Bruno Haible  <bruno@clisp.org>
75746
75747         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75748         used.
75749
75750 2005-01-17  Bruno Haible  <bruno@clisp.org>
75751
75752         * lib/fwriteerror.h (fwriteerror): Change specification to include
75753         fclose.
75754         * lib/fwriteerror.c: Include <stdbool.h>.
75755         (fwriteerror): At the end, close the file stream. Record whether
75756         stdout was already closed.
75757
75758 2005-01-17  Bruno Haible  <bruno@clisp.org>
75759
75760         * lib/execute.c (environ): Declare if needed.
75761         * lib/pipe.c (environ): Likewise.
75762         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75763
75764 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75765
75766         * modules/argp: Depend on vsnprintf
75767
75768 2005-01-10  Jim Meyering  <jim@meyering.net>
75769
75770         * modules/closeout (Depends-on): Add atexit.
75771
75772 2005-01-06  Bruno Haible  <bruno@clisp.org>
75773
75774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75775
75776 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75779         definitions to be after all include files, to avoid collisions.
75780         Problem reported by Bob Proulx.
75781
75782 2005-01-04  Jim Meyering  <jim@meyering.net>
75783
75784         Changes imported from coreutils.
75785         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75786         as the mkstemp template, use a temporary directory and an
75787         8.3-friendly template to avoid trouble on systems like DJGPP.
75788         Reported by Juan M. Guerrero via Stepan Kasal.
75789         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75790         close. Remove the temporary directory right away, rather than waiting
75791         for configure's at-exit trap code to do it.
75792         Suggestion from Stepan Kasal.
75793
75794 2005-01-01  Simon Josefsson  <jas@extundo.com>
75795
75796         * gnulib-tool: Print #include directives when --import'ing.
75797
75798 2004-12-28  Simon Josefsson  <jas@extundo.com>
75799
75800         * tests/test-base64.c: Include required header files.  Remove
75801         unused variables.
75802
75803 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75804
75805         * modules/error (Depends-on): Remove gettext.
75806
75807 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75808
75809         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75810         not needed.  This removes a dependency on the gettext module.
75811         [defined _LIBC]: Do not include <libintl.h>; not needed.
75812
75813 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75816         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75817
75818 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75819
75820         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75821         HAVE_DECL_STRTOLD.
75822
75823 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75824
75825         * modules/getdate (Depends-on): Remove alloca-opt.
75826
75827 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75830
75831 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * lib/argp-parse.c: Include <stddef.h>.
75834         (alignof, alignto): New macros.
75835         (parser_init): Don't assume that void * is aligned sufficiently
75836         for struct option.
75837
75838         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75839         need to extend the stack.
75840         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75841         large.
75842
75843 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75844
75845         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75846
75847 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75848
75849         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75850         (2004-10-24) change.  Apparently this was a false alarm.
75851
75852         * modules/getdate: Depend on alloca-opt, not alloca.
75853
75854 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75855
75856         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75857         Remove now-obsolete comment about AIX.
75858         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75859         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75860         (YYMAXDEPTH): New macro.
75861
75862 2004-12-18  Simon Josefsson  <jas@extundo.com>
75863
75864         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75865
75866 2004-12-18  Bruno Haible  <bruno@clisp.org>
75867
75868         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75869
75870 2004-12-18  Bruno Haible  <bruno@clisp.org>
75871
75872         * lib/fatal-signal.c (fatal_signals): Make non-const.
75873         (init_fatal_signals): New function.
75874         (uninstall_handlers, install_handlers): Ignore signals that were set to
75875         SIG_IGN.
75876         (at_fatal_signal): Call init_fatal_signals.
75877         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75878         SIG_IGN.
75879         Reported by Paul Eggert.
75880
75881 2004-12-18  Bruno Haible  <bruno@clisp.org>
75882
75883         * doc/alloca.texi: New file.
75884         * doc/alloca-opt.texi: New file.
75885
75886 2004-12-17  Jim Meyering  <jim@meyering.net>
75887
75888         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75889         Otherwise, install-sh could exit with improper exit status when
75890         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75891
75892 2004-12-16  Simon Josefsson  <jas@extundo.com>
75893
75894         * tests/test-base64.c: Add license.
75895
75896 2004-12-15  Stepan Kasal  <address@hidden>
75897
75898         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75899
75900 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * modules/getcwd (Files): Add m4/d-ino.m4.
75903         Suggested by Mark D. Baushke.
75904
75905 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * lib/getdate.y (textint): New member "negative".
75908         (time_zone_hhmm): New function.
75909         Expect 14 shift-reduce conflicts, not 13.
75910         (o_colon_minutes): New rule.
75911         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75912         (yylex): Set the "negative" member of signed numbers.
75913
75914 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * doc/getdate.texi (Time of day items, Time zone items):
75917         Describe new formats +00:00, UTC+00:00.
75918
75919 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75922         spurious "-l"s.  Problem reported by Stepan Kasal.
75923
75924 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75927         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75928
75929 2004-12-04  Simon Josefsson  <jas@extundo.com>
75930
75931         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75932         Vandoorselaere <yoann@prelude-ids.org>.
75933
75934 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         Changes imported from coreutils.
75937         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75938         exist.
75939         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75940
75941 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75942
75943         Changes imported from coreutils.
75944         * lib/hard-locale.c: Assume <locale.h> exists.
75945         Include "strdup.h".
75946         (GLIBC_VERSION): New macro.
75947         (hard_locale): Assume setlocale exists.
75948         Rewrite to avoid #ifdef.
75949         Use strdup rather than malloc + strcpy.
75950         * lib/human.c: Assume <locale.h> exists.
75951         (human_readable): Assume localeconv exists.
75952
75953 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75954
75955         * modules/hard-locale (Depends-on): Add strdup.
75956
75957 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75958
75959         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75960         convert T2, not T.  (Imported from libc.)
75961
75962 2004-11-30  Simon Josefsson  <jas@extundo.com>
75963
75964         * modules/restrict (License): Change to LGPL.
75965
75966 2004-11-30  Simon Josefsson  <jas@extundo.com>
75967
75968         * m4/restrict.m4: Add copyright and copying conditions.
75969
75970 2004-11-30  Simon Josefsson  <jas@extundo.com>
75971
75972         * m4/base64.m4: New file.
75973
75974 2004-11-30  Simon Josefsson  <jas@extundo.com>
75975
75976         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75977         base64.
75978
75979         * tests/test-base64.c: New file.
75980
75981         * modules/base64: New file.
75982
75983 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75984
75985         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75986         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75987
75988         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75989
75990 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75991
75992         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75993         (__getcwd.c): Don't restore errno; glibc doesn't.
75994         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75995         first, falling back to our code only if its results look suspicious.
75996         Ensure that the resulting buffer is only as large as necessary.
75997
75998         * lib/readutmp.c: Include readutmp.h first.
75999         Include <errno.h>, since readutmp.h no longer does that.
76000         * lib/readutmp.h: Don't include <errno.h>,
76001         <sys/param.h>, <time.h>; not needed to establish interface.
76002         (errno): Remove decl.
76003         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
76004         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
76005         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
76006
76007 2004-11-28  Simon Josefsson  <jas@extundo.com>
76008
76009         * lib/base64.h, base64.c: New file.
76010
76011 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
76014
76015 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
76018         (Depends-on): Remove pathmax, same.  Add mempcpy.
76019         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
76020         (Makefile.am): Append getcwd.h to lib_SOURCES.
76021         (Include): Add getcwd.h.
76022         (Maintainer): Change from Jim Meyering to "all, glibc",
76023         since getdate now uses intended-for-glibc code.
76024         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
76025         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
76026
76027 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
76030         HP's ANSI C compiler.
76031         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
76032         Declaring int functions causes warnings on some modern systems and
76033         shouldn't be needed to compile on ancient ones.
76034         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
76035         defined.
76036
76037         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
76038         with the following changes.
76039         (__set_errno): Parenthesize properly.
76040         Include <stdbool.h>.
76041         (MIN, MAX, MATCHING_INO): New macros.
76042         (__getcwd): Define with prototype, not K&R form.
76043         Use heuristics to allocate default buffer on stack if possible.
76044         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
76045         behavior, and to avoid the PATH_MAX limit when computing
76046         ../../../../...
76047         Use MATCHING_INO to compare inode number to file.
76048         Check for arithmetic overflow in size calculations.
76049         Fix bug in reallocation of dot array that caused getcwd to fail
76050         on directories nested deeper than 75.
76051         Be more careful about saving errno on error.
76052         Do not use realloc; use only free+malloc, as this is a bit
76053         more flexible and avoids a needless copy operation.
76054         Do not inspect st_dev and st_ino for symbolic links; POSIX
76055         doesn't specify the latter.
76056         Check for closedir errors.
76057         Avoid needless casts.
76058         Use "#ifdef weak_alias" around weak_alias, to be like other
76059         glibc code.
76060         The following changes to getcwd.c have effect only when used in
76061         gnulib; they have no effect inside glibc proper.
76062         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
76063         as alloca isn't used.
76064         (alloca, __alloca): Likewise.
76065         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
76066         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76067         unconditionally, as gnulib assumes C89 or better.
76068         Do not include <sys/param.h>.
76069         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
76070         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
76071         better.
76072         (NULL) [!defined NULL]: Remove; we assume C89 or better.
76073         Include <dirent.h> in a way that is compatible with modern Autoconf.
76074         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
76075         New macros, if not already defined.
76076         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
76077         Use "_LIBC", not "defined _LIBC", for consistency.
76078         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
76079         a mempcpy module.
76080         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
76081         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
76082         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
76083         credit only to Jim Meyering and adjust the copyright dates.
76084         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
76085         <stdlib.h>, <unistd.h>, "pathmax.h".
76086         Instead, include "xgetcwd.h" (first) and "getcwd.h".
76087         (INITIAL_BUFFER_SIZE): Remove.
76088         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
76089
76090 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
76093         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
76094         Use the _ONCE methods, for efficiency.
76095         Check for fcntl.h.  In test program, include <errno.h>
76096         and <fcntl.h> if available.  Remove old K&R cruft from
76097         test program.  Check for common errors in GNU/Linux,
76098         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
76099         don't do AC_LIBOBJ, as that's getcwd.m4's job.
76100         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
76101         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
76102         name accordingly.
76103         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
76104         accommodate new getcwd.c.
76105         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
76106         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
76107         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
76108         that's all we need now.
76109
76110 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76111
76112         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
76113         argp-parse.c depends on getopt internals, that means we should
76114         always use our getopt, to be on the safe side.
76115         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
76116         order not to spoil the result of an eventual previous invocation
76117         of gl_GETOPT_SUBSTITUTE.
76118
76119 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76120
76121         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
76122         redefinition warnings. To avoid them, include the defines
76123         in `#if !defined __need_getopt ... #endif'. The only place
76124         where __getopt_argv_const is used is in definitions
76125         of getopt_long and getopt_long_only below, which are as well
76126         protected by `#ifndef __need_getopt'.
76127         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
76128         __need_getopt after including <stdio.h> and <unistd.h> These
76129         headers might have defined it.
76130
76131 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76132
76133         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
76134
76135 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
76138         (futimens): New function, which uses futimes if available.
76139         (futimens, utimens): Support timespec==NULL, with same semantics
76140         as utime and utimens.
76141         * lib/utimens.h (futimens): New decl.
76142
76143 2004-11-23  Jim Meyering  <jim@meyering.net>
76144
76145         * lib/getopt_.h: Remove trailing blanks.
76146
76147 2004-11-23  Jim Meyering  <jim@meyering.net>
76148
76149         * lib/__fpending.c: Add comment.
76150
76151 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
76152
76153         * modules/canonicalize (Depends-on): Add xreadlink.
76154         Problem reported by James Youngman.
76155
76156 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76157
76158         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
76159         New macros.
76160         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
76161         optopt): Use them instead of invoking ## directly; otherwise, the
76162         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
76163
76164 2004-11-19  Bruno Haible  <bruno@clisp.org>
76165
76166         * lib/strtok_r.c: Move comments from here...
76167         * lib/strtok_r.h: ... to here.
76168
76169 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76170
76171         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
76172         implementations that mishandle size_t overflow.
76173
76174 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76175
76176         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
76177         might fail.  Problem reported by Yoann Vandoorselaere.
76178         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
76179         implementations that mishandle size_t overflow.
76180
76181 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76182
76183         * modules/canon-host (Depends-on): Add strdup.
76184
76185 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76186
76187         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
76188
76189 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * lib/canon-host.c: Include "strdup.h".
76192         (canon_host): Use getaddrinfo if available, so that IPv6 works.
76193         Use strdup instead of malloc/strcpy to duplicate strings.
76194
76195         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
76196         (human_space_before_unit): New constant.
76197         * lib/human.c (human_readable): Support it.
76198
76199         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
76200         (xgetcwd): Set errno correctly when failing.
76201         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
76202         the failure is actually due to a PATH_MAX problem.
76203
76204         Further getopt changes to make it more likely that glibc will
76205         buy the changes back.
76206         * lib/getopt.c (POSIXLY_CORRECT): New constant.
76207         (getopt): Use it, so to preserve glibc semantic
76208         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
76209         when compiling for libc.
76210         * lib/getopt_.h (__getopt_argv_const): Bring it back.
76211         (getopt_long, getopt_long_only): Use it.
76212
76213         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76214         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
76215         (getopt): Argv is now char * const *, as per standard.
76216         (_getopt_internal_r, _getopt_internal): Argv is now char **,
76217         not char *__getopt_argv_const *.
76218         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76219         _getopt_long_only_r): Likewise.
76220         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
76221         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76222         _getopt_long_r, _getopt_long_only_r): Likewise.
76223         * lib/getopt_.h (__getopt_argv_const): Remove.
76224         (getopt): Argv is now char * const *, as per standard.
76225
76226         * lib/getdate.y (tORDINAL): New token.
76227         (day, relunit): Allow it for relative times.
76228         (relative_time_table): Use tORDINAL for ordinals.
76229
76230 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
76233         Document that "second" isn't allowed as an ordinal number.
76234
76235 2004-11-16  Jim Meyering  <jim@meyering.net>
76236
76237         * modules/closeout (Depends-on): Add fpending.
76238
76239 2004-11-15  Jim Meyering  <jim@meyering.net>
76240
76241         * lib/closeout.c: Include "__fpending.h" once again.
76242         Include <stdbool.h>.
76243         (close_stdout): Don't fail just because stdout was closed initially,
76244         since some programs don't write to stdout in the normal course of
76245         operation (other than --version and --help), and we don't want this
76246         function to make e.g. `touch file >&-' fail.
76247         But do fail if it was closed and someone has tried to write to it.
76248         E.g., `printf foo >&-' must fail.
76249
76250 2004-11-13  Jim Meyering  <jim@meyering.net>
76251
76252         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
76253
76254 2004-11-12  Simon Josefsson  <jas@extundo.com>
76255
76256         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76257         small doc fix is still pending.
76258
76259 2004-11-11  Simon Josefsson  <jas@extundo.com>
76260
76261         * modules/strtok_r: New file.
76262
76263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76264         strtok_r.
76265
76266 2004-11-11  Simon Josefsson  <jas@extundo.com>
76267
76268         * m4/strtok_r.m4: New file.
76269
76270         * m4/getopt.m4: Replace opterr.
76271
76272 2004-11-11  Simon Josefsson  <jas@extundo.com>
76273
76274         * lib/strtok_r.h, strtok_r.c: New file.
76275
76276 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76277
76278         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
76279         of replacing opterr, getopt, etc.  This should handle the
76280         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
76281
76282 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76283
76284         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
76285         we can stop lying to compilers about the constness of argv when we
76286         are compiled outside glibc.
76287         (getopt, getopt_long, getopt_long_only): Use it.
76288         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76289         _getopt_internal, getopt): Likewise.
76290         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76291         _getopt_long_only_r): Likewise.
76292         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76293         _getopt_long_r, _getopt_long_only_r): Likewise.
76294
76295         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
76296         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
76297         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
76298         the other external symbols.
76299         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
76300         declaration, since the above renaming now works around collisions.
76301
76302 2004-11-11  Jim Meyering  <jim@meyering.net>
76303
76304         * lib/linebreak.c: Remove trailing blanks.
76305         * lib/alloca_.h: Likewise.
76306         * lib/acosl.c: Likewise.
76307         * lib/euidaccess.c: Likewise.
76308         * lib/allocsa.h: Likewise.
76309
76310 2004-11-10  Simon Josefsson  <jas@extundo.com>
76311
76312         * m4/getaddrinfo.m4: New file.
76313
76314 2004-11-10  Simon Josefsson  <jas@extundo.com>
76315
76316         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
76317
76318 2004-11-10  Simon Josefsson  <jas@extundo.com>
76319
76320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76321         getaddrinfo.
76322
76323         * modules/getaddrinfo: New file.
76324
76325 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
76328
76329 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76330
76331         * lib/mktime.c (SHR): New macro, which is a portable
76332         substitute for >> that should work even on Crays.
76333         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
76334         Problem reported by Mark D. Baushke in
76335         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
76336         * lib/getdate.y (SHR): Likewise.
76337         (tm_diff): Use it.
76338         * lib/strftime.c (SHR): Likewise.
76339         (tm_diff): Use it.
76340         * lib/quotearg.c (struct quoting_options): Use unsigned int for
76341         quote_these_too, so that right shifts are well defined.  All uses
76342         changed.
76343
76344 2004-11-10  Jim Meyering  <jim@meyering.net>
76345
76346         Ensure that no close failure goes unreported.
76347         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
76348         return early when it seems there's nothing to flush.
76349         Don't include __fpending.h.
76350
76351 2004-11-10  Jim Meyering  <jim@meyering.net>
76352
76353         * modules/closeout (Depends-on): Remove fpending.
76354
76355 2004-11-10  Jim Meyering  <jim@meyering.net>
76356
76357         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
76358
76359 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76360
76361         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
76362         gl_FUNC_STRFTIME.
76363         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
76364         and AC_REQUIRE when possible, to avoid duplicate checks.
76365         Check for <wchar.h>.
76366
76367 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76368
76369         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
76370
76371 2004-11-09  Bruno Haible  <bruno@clisp.org>
76372
76373         * m4/sockpfaf.m4: New file.
76374
76375 2004-11-05  Bruno Haible  <bruno@clisp.org>
76376
76377         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
76378         Reported by Mark D. Baushke <mdb@cvshome.org>.
76379
76380 2004-11-04  Bruno Haible  <bruno@clisp.org>
76381
76382         2004-09-11  Bruno Haible  <bruno@clisp.org>
76383                 * allocsa.valgrind: New file.
76384         2004-02-06  Bruno Haible  <bruno@clisp.org>
76385                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
76386                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
76387                 Reported by Christopher Seip <chris.seip@hp.com>.
76388
76389 2004-11-04  Bruno Haible  <bruno@clisp.org>
76390
76391         * modules/allocsa (Files): Add lib/allocsa.valgrind.
76392         (Makefile.am): Distribute it.
76393
76394 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76395
76396         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
76397         with errno == ERANGE if the buffer is too small.
76398         Problem reported by Mark D. Baushke.
76399
76400 2004-11-03  Albert Chin  <china@thewrittenword.com>
76401             Paul Eggert  <eggert@cs.ucla.edu>
76402
76403         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
76404         equivalent, substitute $ac_type for equivalent type rather than
76405         blindly using uint32_t *always* which won't work if uint32_t is not
76406         available.  Define _UINT32_T to work around typedef of uint32_t if
76407         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
76408         2.5.1.
76409
76410 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76411
76412         * m4/jm-macros.m4: Sync from coreutils.
76413         (gl_MACROS): Check for mbrlen, for pathchk.
76414         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
76415
76416 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76417
76418         * lib/xreadlink.c (MAXSIZE): New macro.
76419         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
76420         size does not exceed MAXSIZE.  Avoid cast.
76421         As suggested by Mark D. Baushke in
76422         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
76423         if readlink fails with buffer size just under MAXSIZE, try again
76424         with MAXSIZE.
76425
76426 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76427
76428         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
76429
76430 2004-11-02  Derek R. Price  <derek@ximbiot.com>
76431         and  Paul Eggert  <eggert@cs.ucla.edu>
76432
76433         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
76434         (get_date): Overparenthesize to avoid GCC warning.
76435
76436 2004-11-02  Bruno Haible  <bruno@clisp.org>
76437
76438         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
76439         returns void.
76440
76441 2004-11-02  Bruno Haible  <bruno@clisp.org>
76442
76443         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
76444         function returns void.
76445
76446 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76447
76448         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
76449         fflush_unlocked, flockfile, funlockfile, funlockfile,
76450         fputs_unlocked, putc_unlocked.
76451
76452 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76453
76454         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76455         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
76456         already declared.
76457
76458 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76459
76460         * modules/getdate (Files): Add doc/getdate.texi.
76461         (Depends-on): Add setenv, xalloc.
76462
76463 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         * lib/getdate.y: Add support for TZ="foo" within a date string.
76466         Fix some bugs near time_t boundaries.  Reject dates with
76467         out-of-range components, e.g., "Sept 31".
76468         Include <stdlib.h>, "setenv.h", "xalloc.h".
76469         (ISDIGIT_LOCALE): Remove; unused.
76470         Note that the TZ and time functions used here are not reentrant.
76471         (mktime_ok, get_tz): New functions.
76472         (TZBUFSIZE): New constant.
76473         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
76474         This requires that we sometimes generate our own TZ="XXX..." setting.
76475
76476 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76477
76478         * doc/getdate.texi: New file, from coreutils with modifications for
76479         the new TZ parsing.
76480
76481 2004-10-27  Derek R. Price  <derek@ximbiot.com>
76482
76483         * lib/mktime.c (not_equal_tm): Remove redundant check.
76484
76485 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76486
76487         * modules/regex (lib_SOURCES): Add regex.c.
76488         Reported by James Youngman in
76489         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
76490
76491 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         * lib/getdate.y: Use Bison 1.875 features, and some minor
76494         code cleanups.  This change does not affect semantics.
76495         Don't include <stdlib.h>; no longer needed.
76496         Don't include unlocked-io.h; only the "#if TEST" code uses
76497         stdio, and performance isn't crucial there.
76498         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
76499         Bison 1.875 features as described below.
76500         All uses of "PC." replaced by "pc->".
76501         (YYSTYPE): Add a forward declaration.
76502         (yylex, yyerror): Use full prototypes in forward decls.
76503         Use "%pure-parser" rather than obsolescent "%pure_parser".
76504         Use %parse-param and %lex-param instead of obsolescent
76505         YYPARSE_PARAM and YYLEX_PARAM.
76506         (meridian_table, month_and_day_table, time_units_table,
76507         relative_time_table, time_zone_table, military_table,
76508         lookup_zone, lookup_word, get_date):
76509         Use NULL instead of 0 where appropriate.
76510         (to_hour): Avoid abort (), to avoid a dependency on
76511         stdlib.h.
76512         (yyerror, yylex): Now accepts parser_control * arg.
76513         (main) [TEST]: Use '\0' rather than 0 for char.
76514
76515 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76518
76519 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76522         It's now the caller's responsibility to handle the case where
76523         !HAVE_GETPAGESIZE && !defined getpagesize.
76524
76525         * lib/mktime.c (leapyear): Arg is long int, not int.
76526
76527 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76530
76531 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76532
76533         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76534         missing.  Problem reported by James Youngman.
76535
76536 2004-10-16  Simon Josefsson  <jas@extundo.com>
76537
76538         * gnulib-tool: Fix comments.  Fix parse problem.
76539         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76540
76541 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76542
76543         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76544         implementation of getopt_long.  Problem reported by Alexander Taler in:
76545         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76546
76547 2004-10-15  Bruno Haible  <bruno@clisp.org>
76548
76549         * gnulib-tool: Untabify. Initialize supplied_libname.
76550         (func_usage): More homogenous output.
76551         (func_modules_transitive_closure, func_modules_to_filelist,
76552         func_emit_lib_Makefile_am): New functions.
76553         (func_import): New function, extracted from big case statement. Use
76554         func_get_license, func_modules_transitive_closure,
76555         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76556         opt_lgpl. Don't use test -a, as it's not portable.
76557         (func_create_testdir): Use func_modules_transitive_closure,
76558         func_modules_to_filelist, func_emit_lib_Makefile_am.
76559
76560 2004-10-15  Bruno Haible  <bruno@clisp.org>
76561
76562         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76563
76564 2004-10-15  Bruno Haible  <bruno@clisp.org>
76565
76566         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76567         the portions belonging to each module.
76568         Suggested by Derek Robert Price <derek@ximbiot.com>.
76569
76570 2004-10-12  Simon Josefsson  <jas@extundo.com>
76571
76572         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76573         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76574         to real functions.
76575
76576 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76577
76578         * modules/vsnprintf: New file.
76579
76580 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76581
76582         * m4/vsnprintf.m4: New file.
76583
76584 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76585
76586         * lib/vsnprintf.h: New file.
76587         * lib/vsnprintf.c: New file.
76588
76589 2004-10-11  Bruno Haible  <bruno@clisp.org>
76590
76591         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76592         vsnprintf.
76593
76594 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76595
76596         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76597
76598 2004-10-07  Bruno Haible  <bruno@clisp.org>
76599
76600         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76601         fits into the provided buffer.
76602
76603 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         * lib/diacrit.c, diacrit.h: Add GPL notice.
76606
76607         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76608         notice.
76609         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76610         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76611         This avoids a potential constant-folding bug.
76612
76613 2004-10-05  Bruno Haible  <bruno@clisp.org>
76614
76615         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76616         for the declaration of strsep.
76617
76618 2004-10-05  Bruno Haible  <bruno@clisp.org>
76619
76620         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76621
76622 2004-10-04  Simon Josefsson  <jas@extundo.com>
76623
76624         * modules/memmem: New file.
76625         * tests/test-memmem.c: New file.
76626         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76627
76628 2004-10-04  Simon Josefsson  <jas@extundo.com>
76629
76630         * m4/memmem.m4: New file.
76631
76632 2004-10-04  Simon Josefsson  <jas@extundo.com>
76633
76634         * lib/memmem.h: New file.
76635         * lib/memmem.c: New file, taken from glibc.
76636
76637 2004-10-04  Simon Josefsson  <jas@extundo.com>
76638
76639         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76640         '#ifdef USE_UNLOCKED_IO'.
76641
76642 2004-10-04  Simon Josefsson  <jas@extundo.com>
76643
76644         * config/srclist.txt: Add memmem from glibc.
76645
76646 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76649
76650         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76651         modules/exclude, modules/getdate, modules/getline,
76652         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76653         modules/getusershell, modules/linebuffer, modules/md5,
76654         modules/mountlist, modules/posixtm, modules/readtokens,
76655         modules/readutmp, modules/regex, modules/sha1,
76656         modules/version-etc, modules/yesno:
76657         Remove dependency on unlocked-io.
76658
76659 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76662
76663         * m4/unlocked-io.m4: Add copyright notice.
76664         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76665
76666 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76669         * lib/xmalloc.c (xmemdup): Likewise.
76670         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76671         XFREE): Remove these long-obsolescent macros.
76672         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76673         * lib/xstrdup.c: Remove.
76674
76675         * lib/regex.c (re_comp): Cast gettext return value to char *,
76676         Problem reported by Martin Neitzel via Mark D. Baushke.
76677
76678 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76681         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76682         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76683         regex.c, sha1.c, version-etc.c, yesno.c:
76684         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76685         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76686         the includer's responsibility.
76687
76688         Sync from coreutils.
76689
76690         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76691         points to the start of a string, as the C Standard says the
76692         resulting behavior is undefined.
76693
76694         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76695         simple -> simple_backups, numbered_existing ->
76696         numbered_existing_backups, numbered -> numbered_backups
76697         to avoid shadowing problems.  All uses changed.
76698         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76699         * lib/backupfile.c (check_extension, numbered_backup):
76700         Rename locals to avoid shadowing 'basename'.
76701         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76702         once.
76703
76704         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76705         * lib/.cvsignore: Add getopt.h.
76706
76707 2004-10-04  Bruno Haible  <bruno@clisp.org>
76708
76709         * modules/README: New file.
76710         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76711         not a module.
76712
76713 2004-10-02  Jim Meyering  <jim@meyering.net>
76714
76715         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76716
76717 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76718
76719         * modules/strsep: New file.
76720
76721 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76722
76723         * m4/strsep.m4: New file.
76724
76725 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76726
76727         * lib/strsep.h: New file.
76728         * lib/strsep.c: New file.
76729
76730 2004-10-01  Simon Josefsson  <jas@extundo.com>
76731
76732         * lib/snprintf.c (snprintf): Handle size==0.
76733
76734 2004-10-01  Simon Josefsson  <jas@extundo.com>
76735             Bruno Haible  <bruno@clisp.org>
76736
76737         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76738         (snprintf): Declare 'args'.
76739
76740 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76741
76742         * lib/snprintf.c: Remove comments as to why each header is needed.
76743
76744 2004-10-01  Bruno Haible  <bruno@clisp.org>
76745
76746         * MODULES.html.sh: Add strsep.
76747
76748 2004-09-30  Simon Josefsson  <jas@extundo.com>
76749
76750         * modules/snprintf: New file.
76751
76752 2004-09-30  Simon Josefsson  <jas@extundo.com>
76753
76754         * m4/snprintf.m4: New file.
76755
76756 2004-09-30  Simon Josefsson  <jas@extundo.com>
76757
76758         * lib/snprintf.h, lib/snprintf.c: New files.
76759
76760 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76761
76762         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76763         (hol_entry_help): Never translate an empty string.
76764         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76765         * lib/argp.h (OPTION_NO_TRANS): New option.
76766
76767 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76768
76769         * modules/argp (Maintainer): Replace Simon Josefsson
76770         by Sergey Poznyakoff.
76771
76772 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76775         changes merged back into glibc.
76776
76777 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76778
76779         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76780
76781 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76782
76783         * lib/xvasprintf.c: Include xalloc.h.
76784         (xvasprintf): Use xalloc_die, not xmalloc_die.
76785
76786 2004-09-29  Bruno Haible  <bruno@clisp.org>
76787
76788         * modules/alloca-opt: New file, derived from modules/alloca.
76789         * modules/allocsa: Depend on alloca-opt instead of alloca.
76790         * modules/setenv: Likewise.
76791         * modules/vasnprintf: Likewise.
76792         * MODULES.html.sh: Add alloca-opt.
76793
76794 2004-09-28  Simon Josefsson  <jas@extundo.com>
76795
76796         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76797         LGPL, and to replace license template from GPL to LGPL.
76798
76799 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76800
76801         * modules/dummy: Change license to LGPL.
76802
76803 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76806
76807 2004-09-24  Simon Josefsson  <jas@extundo.com>
76808
76809         * modules/minmax (License): Change from GPL to LGPL.
76810
76811 2004-09-23  Simon Josefsson  <jas@extundo.com>
76812
76813         * gnulib-tool (--import): Typo.
76814
76815 2004-09-23  Simon Josefsson  <jas@extundo.com>
76816
76817         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76818
76819 2004-09-22  Bruno Haible  <bruno@clisp.org>
76820
76821         * modules/*: Add 'License' field.
76822         * gnulib-tool: Accept --extract-license option.
76823         (func_get_license): New function.
76824
76825 2004-09-21  Bruno Haible  <bruno@clisp.org>
76826
76827         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76828         Reported by Simon Josefsson.
76829
76830 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76833         gl_AC_TYPE_LONG_LONG.
76834
76835 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76836
76837         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76838
76839 2004-09-18  Simon Josefsson  <jas@extundo.com>
76840         and  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76843         calls with autoreconf.  Define GL_LIB.
76844
76845 2004-09-14  Karl Berry  <karl@gnu.org>
76846
76847         * config/srclist.txt: unsync setenv.c, sigh.
76848
76849 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76850
76851         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76852         Problem reported by Bruno Haible in:
76853         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76854
76855 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * config/srclist.txt: Comment out argp-pvh.c.
76858
76859 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76862         in case some system header has #define'd it.  Problem reported by
76863         Soeren D. Schulze in
76864         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76865
76866 2004-09-09  Karl Berry  <karl@gnu.org>
76867
76868         * regex.[ch]: delete from the root.  These were supposed to be
76869                 synced with emacs cvs, but this has not happened for about
76870                 a year, and anyway nothing else uses emacs regex.[ch].
76871                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76872                 lib/regex[.ch] is untouched.
76873
76874 2004-09-09  Bruno Haible  <bruno@clisp.org>
76875
76876         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76877
76878 2004-09-09  Bruno Haible  <bruno@clisp.org>
76879
76880         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76881         modifications.
76882         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76883
76884 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76885
76886         * modules/xvasprintf: New file.
76887         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76888
76889 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76890
76891         * lib/xvasprintf.h: New file.
76892         * lib/xvasprintf.c: New file.
76893         * lib/xasprintf.c: New file.
76894
76895 2004-09-08  Bruno Haible  <bruno@clisp.org>
76896
76897         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76898
76899 2004-09-08  Bruno Haible  <bruno@clisp.org>
76900
76901         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76902         length is > INT_MAX.
76903         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76904         more.
76905
76906 2004-09-08  Bruno Haible  <bruno@clisp.org>
76907
76908         * lib/stdint_.h: New file, taken from GNU clisp.
76909
76910 2004-09-08  Bruno Haible  <bruno@clisp.org>
76911             Oskar Liljeblad  <oskar@osk.mine.nu>
76912
76913         * modules/stdint: New file.
76914         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76915
76916 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         Import from coreutils.
76919         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76920         strings on unbounded length.  alloca's performance benefits aren't
76921         that important here.
76922         (V_STRDUP): Remove.
76923         (parse_with_separator): New function, with most of the internals
76924         of the old parse_user_spec.  Allow user to omit both user and group,
76925         for compatibility with FreeBSD.
76926         Clone only the user name, not the entire spec.
76927         Do not set *uid, *gid unless entirely successful.
76928         Avoid memory leak in some failing cases.
76929         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76930         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76931         (parse_user_spec): Rewrite to use parse_with_separator.
76932
76933 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * modules/userspec: Don't depend on alloca.
76936
76937 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76938
76939         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76940
76941 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76944         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76945         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76946
76947 2004-08-16  Simon Josefsson  <jas@extundo.com>
76948
76949         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76950         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76951         Add --dry-run for --import.
76952         Let user provided command line parameters override configure.ac
76953         settings.
76954
76955 2004-08-12  Simon Josefsson  <jas@extundo.com>
76956
76957         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76958         as discussed with Paul Eggert in threads rooted at
76959         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76960         and
76961         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76962         Before, the test was empty, and relied on ELIDE_CODE in source
76963         code.)
76964         (gl_PREREQ_GETOPT): New macro.
76965         (gl_GETOPT): Use them.
76966
76967 2004-08-12  Simon Josefsson  <jas@extundo.com>
76968
76969         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76970         * lib/getopt_.h: Renamed from getopt.h.
76971
76972 2004-08-12  Simon Josefsson  <jas@extundo.com>
76973
76974         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76975         Change default library name from libfoo to libgnu.
76976         Now, if you have a configure.ac that says:
76977                 gl_SOURCE_BASE(gl)
76978                 gl_M4_BASE(gl/m4)
76979                 gl_MODULES(error getopt etcetera)
76980                 gl_INIT
76981         you can import all you need by running:
76982                 ../gnulib/gnulib-tool --import
76983
76984         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76985         (Makefile.am): Rewrite, use logic from argz.
76986         (Include): Use <getopt.h> instead of "getopt.h".
76987
76988 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         * modules/argp (Files): Add m4/unlocked-io.m4.
76991         (Depends-on): Add extensions.
76992
76993 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76996         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76997         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76998         Check for program_invocation_name, program_invocation_short_name,
76999         flockfile, funlockfile, features.h, _getopt_long_only_r.
77000
77001 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77002
77003         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
77004         its complicated substitute.
77005         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
77006         and program_invocation_name.
77007         (__argp_basename) [!_LIBC]: Remove; the only use was
77008         replaced by its body.
77009         (__argp_short_program_name): Change condition from
77010         !defined __argp_short_program_name to
77011         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
77012         to match argp-namefrob.h.
77013         (__argp_failure): Don't assume strerror_r returns char *.
77014         * lib/argp-parse.c (N_): Define unconditionally.
77015         (argp_default_options): Fill out initializers with 0 to avoid
77016         gcc warnings.
77017
77018 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77019
77020         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
77021         getopt1.c.
77022
77023 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         Merge from coreutils.
77026
77027         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
77028
77029         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
77030         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
77031
77032 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         Merge from coreutils.
77035
77036         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
77037         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
77038         for Reliant Unix 5.43.
77039
77040         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
77041         (union fooround): Use uintmax_t, not long int.
77042         The rest is a merge from libc:
77043         [defined _LIBC]: Include <shlib-compat.h>.
77044         (_obstack) [defined _LIBC]: Remove after 2.3.4.
77045
77046         * lib/settime.c (settime): Recode to avoid warning with
77047         Sun Forte C 6U2.
77048
77049         * lib/strverscmp.c: Convert to UTF-8.
77050
77051 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77054         m4/uintmax_t.m4.
77055
77056 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77057
77058         * modules/xalloc-die: New file.
77059         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
77060
77061         * modules/md5 (Files): Add m4/uint32_t.m4.
77062         * modules/sha1: Renamed from modules/sha.
77063         (Files):
77064         Rename lib/sha.h to lib/sha1.h.
77065         Rename lib/sha.c to lib/sha1.c.
77066         Rename m4/sha.m4 to m4/sha1.m4.
77067         (lib_SOURCES): Likewise.
77068         (configure.ac): Rename gl_SHA to gl_SHA1.
77069         (Include): sha.h -> sha1.h.
77070
77071 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
77074         * m4/sha1.m4: Renamed from sha.m4.
77075         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
77076
77077 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77078
77079         * lib/obstack.h (obstack_empty_p):
77080         Don't assume that chunk->contents is suitably aligned.
77081         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
77082         Likewise. Problem reported by Benno in
77083         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
77084
77085         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
77086         readable.  This could be improved further but it'd take some work.
77087
77088 2004-08-08  Simon Josefsson  <jas@extundo.com>
77089
77090         * modules/xgethostname (Depends-on): Remove exit and error (not
77091         used).
77092
77093         * modules/getpass-gnu: Add getpass.h.
77094         (Depends-on): Add stdbool.
77095         * modules/getpass: Add getpass.h.
77096
77097 2004-08-08  Simon Josefsson  <jas@extundo.com>
77098
77099         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
77100         Check getpass declaration.
77101
77102 2004-08-08  Simon Josefsson  <jas@extundo.com>
77103
77104         * lib/xgethostname.c: Don't include error.h (not used).
77105
77106         * lib/getpass.h: Add.
77107         * lib/getpass.c: Include getpass.h first.
77108
77109 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         * lib/xalloc-die.c: New file.
77112         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
77113         All uses removed.
77114         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
77115         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
77116         xalloc-die.c.
77117         (_, N_, xalloc_die): Move to xalloc-die.c.
77118         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
77119         so that we needn't mess with xalloc_msg_memory_exhausted.
77120
77121         * lib/sha1.h: Renamed from sha.h.
77122         (SHA1_H): Renamed from _SHA_H.
77123         (sha1_ctx): Renamed from sha_ctx.
77124         (sha1_init_ctx): Renamed from sha_init_ctx.
77125         (sha1_process_block): Renamed from sha_process_block.
77126         (sha1_process_bytes): Renamed from sha_process_bytes.
77127         (sha1_finish_ctx): Renamed from sha_finish_ctx.
77128         (sha1_read_ctx): Renamed from sha_read_ctx.
77129         (sha1_stream): Renamed from sha_stream.
77130         (sha1_buffer): Renamed from sha_buffer.
77131         * lib/sha1.c: Likewise; renamed from sha.c.
77132         Do not include <sys/types.h>.
77133         Include <stddef.h> rather than <stdlib.h>.
77134
77135 2004-08-08  Bruno Haible  <bruno@clisp.org>
77136
77137         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
77138         FILESYSTEM_PREFIX_LEN.
77139         * lib/progreloc.c: Likewise.
77140         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
77141
77142 2004-08-06  Simon Josefsson  <jas@extundo.com>
77143
77144         * modules/progname (Depends-on): Don't depend on stdbool.
77145
77146 2004-08-06  Simon Josefsson  <jas@extundo.com>
77147
77148         * modules/getsubopt: New file.
77149         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77150         getsubopt.
77151
77152 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         More merge from coreutils.
77155
77156         * m4/utimens.m4, m4/utimecmp.m4: New files.
77157         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
77158         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
77159         prereq.m4, sha.m4: Import changes from coreutils.
77160
77161 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         More merge from coreutils.
77164         * modules/raise, modules/readtokens0, modules/utimens:
77165         * modules/utimecmp, module/xnanosleep: New files.
77166         * modules/strftime: Add lib/strftime.h.
77167         Change include from <time.h> to "strftime.h".
77168         * modules/yesno: Add lib/yesno.h.
77169         * modules/backupfile: Remove lib/addext.c.
77170         * modules/euidaccess: Add stat-macros.h.
77171         * modules/canonicalize, modules/euidaccess,
77172         modules/filemode, modules/lchown, modules/makepath,
77173         modules/rmdir, modules/stat: Likewise.
77174
77175 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77176
77177         Merge from tar.
77178         * lib/argp-help.c (make_hol, hol_append): Don't assume that
77179         SIZE_MAX is a valid preprocessor constant.
77180         (__argp_basename): Change from "#ifndef _LIBC"
77181         to "#ifndef __argp_short_program_name", so that
77182         we don't compile these functions for tar.
77183
77184         More merges from coreutils.
77185         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
77186         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
77187         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
77188         * lib/addext.c: Remove; no longer needed.
77189         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
77190         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
77191         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
77192         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
77193         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
77194         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
77195         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
77196         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
77197         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
77198         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77199         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
77200         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
77201         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
77202         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
77203         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
77204         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
77205         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
77206         Import changes from coreutils.
77207
77208 2004-08-05  Simon Josefsson  <jas@extundo.com>
77209
77210         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
77211
77212 2004-08-05  Simon Josefsson  <jas@extundo.com>
77213
77214         * m4/getsubopt.m4: New file.
77215
77216 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         Merge from coreutils.
77219
77220         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
77221         * m4/getcwd-path-max.m4: New files.
77222
77223         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
77224         FILESYSTEM_PREFIX_LEN ->
77225         FILE_SYSTEM_PREFIX_LEN.
77226         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
77227         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
77228         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
77229         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
77230
77231         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
77232         prerequisite modules now handle the DOS stuff.
77233         Don't check for unistd.h.
77234
77235 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77236
77237         Merge from coreutils.
77238
77239         * lib/.gdb-history: Remove; this doesn't belong here.
77240
77241         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
77242         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
77243         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
77244         * lib/getcwd.c: New files.
77245
77246         * lib/dirname.h: Include <stdbool.h>.
77247         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
77248         for consistency with POSIX terminology.  All uses changed.
77249         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
77250         (strip_trailing_slashes): Use bool for booleans.
77251         * lib/stripslash.c (strip_trailing_slashes): Likewise.
77252
77253         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
77254         sometimes returns a positive errno value even when it succeeds.
77255         (print_errno_message) [!LIBC]: Fall back on strerror if
77256         __strerror_r fails.
77257
77258         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77259         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
77260         (longest_relative_suffix): New function.
77261         (path_concat): Use it.  Assume first argument is not NULL.
77262         Port to DOS.  Omit redundant separators.
77263         Report an error instead of returning NULL.
77264         Use mempcpy instead of memcpy.
77265         (xpath_concat): Remove: not declared or used.
77266
77267         * lib/same.h: Include <stdbool.h>
77268         (same_name): Return bool, not int.
77269         * lib/same.c (same_name): Likewise.
77270         (errno): Don't declare; we assume C89 or better now.
77271
77272         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
77273         if not already defined.
77274
77275         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
77276         * lib/dup-safer.c (errno): Likewise.
77277
77278 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77279
77280         Merge from coreutils.
77281         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
77282         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
77283         * modules/path-concat: Don't depend on strdup.
77284
77285 2004-08-03  Simon Josefsson  <jas@extundo.com>
77286
77287         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
77288         * lib/progname.h: Don't include stdbool.h.
77289
77290 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77291
77292         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
77293         * MODULES.html.sh (func_all_modules): Remove fatal.
77294
77295 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
77298
77299 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
77302         working.
77303
77304 2004-08-02  Simon Josefsson  <jas@extundo.com>
77305
77306         * lib/getsubopt.h: New file, with comments from Bruno Haible.
77307         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
77308         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
77309
77310 2004-08-01  Simon Josefsson  <jas@extundo.com>
77311
77312         * lib/xgetdomainname.c: Include stdlib.h, for free().
77313
77314 2004-07-19  Bruno Haible  <bruno@clisp.org>
77315
77316         * MODULES.html.sh (func_all_modules): Add dummy.
77317
77318 2004-07-16  Simon Josefsson  <jas@extundo.com>
77319
77320         * modules/dummy: New file.
77321
77322 2004-07-16  Simon Josefsson  <jas@extundo.com>
77323
77324         * lib/dummy.c: New file.
77325
77326 2004-07-16  Bruno Haible  <bruno@clisp.org>
77327
77328         * lib/backupfile.h: Add extern "C" for C++.
77329         * lib/closeout.h: Likewise.
77330         * lib/copy-file.h: Likewise.
77331         * lib/findprog.h: Likewise.
77332         * lib/full-write.h: Likewise.
77333         * lib/pathname.h: Likewise.
77334         * lib/progname.h: Likewise.
77335         * lib/stpcpy.h: Likewise.
77336         * lib/stpncpy.h: Likewise.
77337         * lib/strcase.h: Likewise.
77338         * lib/strstr.h: Likewise.
77339         * lib/xalloc.h: Likewise.
77340
77341         * lib/mbswidth.h: Add extern "C" for C++.
77342         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
77343
77344 2004-07-13  Robert Millan  <robertmh@gnu.org>
77345
77346         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
77347
77348 2004-07-09  Simon Josefsson  <jas@extundo.com>
77349
77350         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
77351         failed without this.)
77352
77353 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         * modules/chown (Files): Add lib/fchown-stub.c, since
77356         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
77357
77358 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * lib/fchown-stub.c: New file.
77361
77362 2004-06-24  Jim Meyering  <jim@meyering.net>
77363
77364         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
77365
77366 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77367
77368         * modules/argz: Omit "#include".
77369
77370         * MODULES.html.sh (func_all_modules): Add calloc, to match
77371         2004-06-01 addition of calloc module.
77372
77373 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77374
77375         * m4/argz.m4: New file, which is autoupdated from libtool.
77376
77377 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77378
77379         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
77380         libtool.
77381
77382 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77383
77384         * config/srclist-update: Don't insist on "USA." before the
77385         close-comment, as libtool omits the period and puts the */ on a
77386         separate line.
77387         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
77388         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
77389
77390 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
77391
77392         * modules/argz: New file.
77393         * MODULES.html.sh (func_all_modules): Add argz.
77394
77395 2004-06-12  Jim Meyering  <jim@meyering.net>
77396         and  Paul Eggert  <eggert@cs.ucla.edu>
77397
77398         * modules/hash (Files): Add lib/xalloc.h.
77399         * modules/pipe (Depends-on): Add wait-process.
77400         * modules/stat (Depends-on): Add xalloc.
77401         * modules/userspec (Files): Add lib/userspec.h.
77402         * modules/xstrto
77403
77404         Upgrade from gettext-0.13.
77405         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
77406         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
77407         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
77408
77409 2004-06-10  Jim Meyering  <jim@meyering.net>
77410
77411         * lib/calloc.c: New file.
77412
77413 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * lib/getdate.y (yylex): Allow space between sign and number.
77416         Problem reported by Dan Jacobson.
77417
77418 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         Merge from coreutils CVS.
77421
77422         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
77423         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
77424         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
77425         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
77426         xstrtol.m4: Fix copyright date and/or serial number.
77427
77428         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
77429         See if we need an fchown replacement.
77430         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
77431         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
77432         and use the replacement function if we detect either defect.
77433
77434         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
77435         gl_UTIMECMP.
77436
77437 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77438         and  Jim Meyering  <jim@meyering.net>
77439
77440         Merge from coreutils CVS.
77441
77442         * lib/stat-macros.h: New file, with contents from file-type.h
77443         and coreutils' system.h.
77444         * lib/file-type.c: Include "stat-macros.h".
77445         * lib/file-type.h (file_type): Move all macro definitions to new file,
77446         stat-macros.h.
77447
77448         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
77449         Wrap old code with this conditional.
77450         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
77451         function that does not dereference symlinks.
77452         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
77453
77454         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
77455         dependency problems.
77456         (xreadlink): Accept new arg SIZE, for efficiency.
77457         All decls and uses changed.
77458         * lib/xreadlink.h: Include <stddef.h>, for size_t.
77459
77460         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
77461         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
77462
77463         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
77464         sysexits.h.
77465
77466 2004-06-01  Jim Meyering  <jim@meyering.net>
77467
77468         * m4/calloc.m4: New file.
77469
77470 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
77471
77472         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
77473         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
77474         Also, fix a typo in a diagnostic.
77475
77476 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77477
77478         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
77479         or AC_FUNC_REALLOC.
77480
77481 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77482
77483         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
77484         macros to be defined.
77485         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
77486         the allocator returns NULL because the requested size is zero.
77487
77488 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77489
77490         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
77491         var.  Add comment explaining why libc still defines it.  This
77492         merges the following patch from glibc:
77493         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
77494
77495 2004-05-20  Andreas Schwab  <schwab@suse.de>
77496
77497         * m4/free.m4: Replace free if it not known to work, not the other
77498         way round.
77499
77500 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77501
77502         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
77503         present in glibc since revision 1.1 of this file.
77504         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
77505         obstack_alignment_mask, obstack_alloc, obstack_base,
77506         obstack_blank, obstack_blank_fast, obstack_chunk_size,
77507         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
77508         obstack_grow0, obstack_init, obstack_int_grow,
77509         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
77510         obstack_next_free, obstack_object_size, obstack_ptr_grow,
77511         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77512         nonexistent functions.
77513
77514 2004-05-18  Karl Berry  <karl@gnu.org>
77515
77516         * config/srclist.txt: break link for vasnprintf.c.
77517
77518 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77519
77520         Port obstack to the AS/400, where pointers are 16 bytes wide and
77521         you cannot cast an integer to a valid pointer.  This patch is
77522         currently waiting to be integrated into glibc; see
77523         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77524
77525         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77526         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77527         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77528         (struct obstack): temp member is now a union of a pointer and
77529         an integer, instead of an integer.  All integer uses changed.
77530         This does not affect the physical layout of struct obstack,
77531         except on hosts (like the AS/400) where the size or alignment of
77532         void * is greater than that of ptrdiff_t.
77533         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77534         __STDC__)]: Store temporary in pointer member of union, not
77535         integer member.
77536         * lib/obstack.c: Include <stddef.h>, for offsetof.
77537         (struct fooalign): Remove; it doesn't need a name.
77538         (union fooround): Change double to long double, and add void *.
77539         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77540         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77541         not a macro.  Hence the values are always int; so remove all
77542         casts-to-int in uses.
77543
77544 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77547         we can get this patch merged into glibc.
77548
77549 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77550             Paul Eggert  <eggert@cs.ucla.edu>
77551
77552         * m4/argp: Depend on alloca.
77553
77554 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77555             Paul Eggert  <eggert@cs.ucla.edu>
77556
77557         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77558         freecoding.
77559
77560 2004-05-17  Bruno Haible  <bruno@clisp.org>
77561
77562         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77563         precision that consists of a '.' followed by an empty digit string.
77564         Patch by Tor Lillqvist <tml@iki.fi>.
77565
77566 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77569         for backward compatibility with older code.  We need our own
77570         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77571         it under some other name, and our alloca.h will define it.
77572
77573 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77574             Derek Price  <derek@ximbiot.com>
77575
77576         * lib/alloca.c: Include <alloca.h>, to get our interface.
77577         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77578         include <alloca.h> first.  Use C89 prototype for alloca; this
77579         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77580         Use #elif for simplicity, since we can assume C89 now.
77581         Don't try to source the system alloca.h since it will not be found
77582         and to prevent recursively including its replacement.
77583         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77584         * lib/regex.c: Likewise.
77585
77586 2004-05-16  Derek Price  <derek@ximbiot.com>
77587             Paul Eggert  <eggert@cs.ucla.edu>
77588
77589         getline cleanup.  This changes the getndelim2 API: both order of
77590         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77591         no delimiter).
77592
77593         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77594         interface does that.
77595         (getline): Always use getdelim, so that we don't have two
77596         copies of this code.
77597         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77598         if available.
77599         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77600         (GETNDELIM2_MAXIMUM): New macro.
77601         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77602         instead of the old practice of delim2==0.  All callers changed.
77603         Return -1 on overflow, instead of returning junk.
77604         Do not set *linesize unless allocation succeeds.
77605         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77606         that we include sys/types.h.
77607         * lib/getnline.h: Likewise.
77608         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77609         (getndelim2): Reorder arguments.
77610         * lib/getnline.c (getnline, getndelim):
77611         Don't discard the NMAX argument.
77612         (getnline): Invoke getndelim, to avoid code duplication.
77613         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77614         of (size_t) -1 by callers of the getnline family.
77615
77616 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77617
77618         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77619         Check for gettimeofday.
77620         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77621         Check for settimeofday, stime.
77622
77623 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77624
77625         * lib/nanosleep.c (suspended): Change its type from int to
77626         sig_atomic_t volatile.
77627         (first_call): Make it private to rpl_nanosleep, and have it
77628         be zero initially as that's a bit faster.
77629         (my_usleep): Round up fractional times instead of truncating them,
77630         as this is the usual meaning for 'sleep'.
77631
77632         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77633         doesn't work.
77634         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77635         (ENOSYS): Define if not defined.
77636         (settime): Fall back on stime if it exists and settimeofday fails.
77637         But don't bother with fallbacks if a method fails with errno == EPERM.
77638
77639 2004-05-11  Jim Meyering  <jim@meyering.net>
77640
77641         Prior to this change, the save_cwd caller required read access to the
77642         current directory on most systems (ones with the fchdir function).
77643
77644         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77645         fails, try write-only, and finally, resort to using xgetcwd.
77646
77647 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77648
77649         * lib/obstack.c, obstack.h: Import changes from libc.
77650
77651 2004-04-28  Bruno Haible  <bruno@clisp.org>
77652
77653         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77654         also implicitly appends .exe to executables.
77655         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77656         accepts Windows pathnames.
77657         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77658         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77659         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77660         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77661         Reported by Derek Robert Price <derek@ximbiot.com>.
77662
77663 2004-04-21  Karl Berry  <karl@gnu.org>
77664
77665         * config/srclist.txt (localcharset.c): break sync.
77666
77667 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77668
77669         * m4/host-os.m4: Add a copyright notice.
77670
77671 2004-04-20  Jim Meyering  <jim@meyering.net>
77672
77673         Change UTILS_ to gl_ in AC_DEFINE'd names.
77674         Change utils_- and jm_-prefixed variables, too.
77675         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77676         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77677         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77678
77679         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77680         Don't emit trailing blanks.
77681         Also rename jm_-prefixed variables to have gl_ prefix.
77682
77683         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77684         Also rename jm_-prefixed variables to have gl_ prefix.
77685
77686         * m4/jm-macros.m4: Reflect the renamings.
77687         * m4/prereq.m4: Likewise.
77688
77689 2004-04-20  Jim Meyering  <jim@meyering.net>
77690
77691         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77692         memory.
77693
77694 2004-04-20  Jim Meyering  <jim@meyering.net>
77695             Bruno Haible  <bruno@clisp.org>
77696
77697         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77698         memory when realloc fails.
77699
77700 2004-04-19  Jim Meyering  <jim@meyering.net>
77701
77702         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77703         now that readutmp.c may call `free (0)'.
77704
77705 2004-04-19  Bruno Haible  <bruno@clisp.org>
77706
77707         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77708         * m4/inttypes_h.m4: Likewise.
77709         * m4/stdint_h.m4: Likewise.
77710         * m4/intmax_t.m4: Likewise.
77711         * m4/uintmax_t.m4: Likewise.
77712
77713 2004-04-18  Jim Meyering  <jim@meyering.net>
77714
77715         * m4/prereq.m4: Don't forbid jm_ prefix.
77716
77717         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77718         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77719         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77720         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77721         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77722         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77723         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77724         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77725         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77726         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77727         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77728         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77729         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77730         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77731         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77732         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77733         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77734         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77735         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77736
77737 2004-04-18  Jim Meyering  <jim@meyering.net>
77738
77739         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77740         failure, don't leak memory and do call END_UTMP_ENT.
77741
77742 2004-04-16  Jim Meyering  <jim@meyering.net>
77743
77744         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77745         coreutils' stat program.
77746         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77747
77748 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77749
77750         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77751         C89.
77752         (CHAR_BIT): Remove, since we assume C89.
77753         Include <stdint.h> if available, as per current Autoconf CVS advice.
77754
77755 2004-03-31  Jim Meyering  <jim@meyering.net>
77756
77757         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77758         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77759         * m4/xalloc.m4: Likewise.
77760
77761 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77762
77763         Merge from coreutils.
77764
77765         * m4/inttostr.m4: New file.
77766         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77767         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77768         Require gl_CLOCK_TIME.
77769         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77770
77771 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77772
77773         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77774         not bool, to be more consistent with Unix conventions.
77775         Suggested by Bruno Haible.
77776
77777         Merge from coreutils.
77778
77779         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77780         * lib/umaxtostr.c: New files.
77781
77782         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77783         the usual <time.h> dance.
77784         (get_date): Change signature to support fractional time stamps.
77785         All callers changed.
77786         * lib/getdate.y: Include "getdate.h" first, as we can now
77787         assume C89 and don't need to worry about 'const'.
77788         Similarly, include "unlocked-io.h" near start, not in middle.
77789         Include <limits.h>.
77790         (textint.value): Use long int rather than int.
77791         (textint.digits): Use size_t rather than int.
77792         (BILLION, LOG10_BILLION): New constants.
77793         (parser_control): New member rel_ns.  Members day_ordinal,
77794         time_zone, month, day, hour, minutes, rel_year, rel_month,
77795         rel_day, rel_hour, rel_minutes, rel_seconds
77796         are now long int, not int.  Member seconds is now struct timespec,
77797         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77798         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77799         not int.
77800         (%union.intval): Now long int, not int.
77801         New member timespec.
77802         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77803         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77804         (spec): Now is a timespec or an item list.
77805         (timespec, items): New nonterminals.
77806         (time, rel, relunit, number, get_date):
77807         Add support for fractional seconds.
77808         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77809         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77810         (to_hour): First arg is now long int, not int.
77811         (to_year): Returns long int, not int.
77812         Don't treat year -70 like 70.
77813         (tm_diff): Returns long int, not int.
77814         (lookup_word): Use bool instead of int when appropriate.
77815         (yylex): Use size_t for count, not int.
77816         Detect overflow when parsing large integer constants.
77817         Add support for fractions.
77818         (get_date): Make pointers 'const' if possible.
77819         Use more-portable code to detect integer overflow.
77820         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77821         Don't use ctime; it's not reliable if the year has >4 digits.
77822
77823         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77824         This is for compatibility with BSD.
77825
77826         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77827         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77828         From coreutils' system.h.
77829
77830         * lib/userspec.c: Don't include "posixver.h".
77831         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77832         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77833         compatible extension.  Simplify code by removing a boolean int
77834         that was always nonzero if a string was nonnull.
77835
77836 2004-03-30  Jim Meyering  <jim@meyering.net>
77837
77838         Merge from coreutils.
77839
77840         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77841         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77842         on some systems one must include <grp.h> before it.
77843         Reported by Christian Krackowizer.
77844
77845 2004-03-30  Jim Meyering  <jim@meyering.net>
77846
77847         Merge from coreutils.
77848
77849         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77850
77851         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77852         an empty input stream.
77853
77854         * lib/readtokens.c: Include <stdbool.h>.
77855         (readtoken): Use `size_t' rather than int/long.
77856         All callers adjusted.
77857         Use `bool' rather than `int' where appropriate.
77858         Use memset rather than an explicit loop.
77859         Use x2nrealloc rather than xrealloc.
77860         Allow the use of `\0' as a delimiter.
77861         (readtokens): Likewise.
77862         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77863
77864 2004-03-30  Jim Meyering  <jim@meyering.net>
77865
77866         * m4/realloc.m4: Remove file, since now it does no more than
77867         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77868         the `configure.ac' section of module/realloc.
77869         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77870
77871 2004-03-30  Bruno Haible  <bruno@clisp.org>
77872
77873         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77874         nonnull.
77875
77876 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77877
77878         Merge changes to getloadavg.c from coreutils and Emacs.
77879
77880         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77881         Define to an expression, not to the empty string.
77882         Include cloexec.h and xalloc.h.
77883         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77884         Use set_cloexec_flag rather than rolling our own.
77885         * lib/cloexec.c, lib/cloexec.h: New files.
77886
77887 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77888
77889         * m4/cloexec.m4: New file.
77890
77891 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77892
77893         * lib/getopt.h: Sync with libc CVS.
77894
77895 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77896             Bruno Haible  <bruno@clisp.org>
77897
77898         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77899         mbswidth.
77900
77901 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77902             Bruno Haible  <bruno@clisp.org>
77903
77904         * lib/mbswidth.h: Include <wchar.h> only if
77905         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77906         <wchar.h>.
77907         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77908
77909 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77910
77911         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77912         Sync with libc CVS.
77913         * lib/getopt_int.h: New file, also synced from libc.
77914
77915 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77916
77917         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77918         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77919         Bring back getopt.c, getopt.h, getopt1.c.
77920
77921 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77922
77923         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77924         All uses changed.  Check for sa_sigaction member; this fixes
77925         a bug first reported by Jason Andrade in
77926         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77927
77928 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77929
77930         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77931         '#if' expressions.  Unlike the code it replaces, it does not
77932         depend on (defined _SC_PAGESIZE).  However, it does depend on
77933         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77934         first reported by Jason Andrade in
77935         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77936
77937 2004-02-25  Simon Josefsson  <jas@extundo.com>
77938
77939         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77940
77941 2004-02-25  Simon Josefsson  <jas@extundo.com>
77942
77943         * lib/strdup.h: New file.
77944         * lib/strdup.c: Include it.
77945         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77946         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77947
77948 2004-02-23  Karl Berry  <karl@gnu.org>
77949
77950         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77951         (from fencepost.gnu.org:/gd/gnuorg).
77952
77953 2004-02-23  Karl Berry  <karl@gnu.org>
77954
77955         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77956         * config/srclist.txt: add maintain/standards documents.
77957
77958 2004-02-18  Bruno Haible  <bruno@clisp.org>
77959
77960         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77961         Reported by Derek Robert Price <derek@ximbiot.com>.
77962
77963 2004-02-16  Karl Berry  <karl@gnu.org>
77964
77965         * config/mkinstalldirs, install-sh: update from automake.
77966
77967 2004-02-06  Karl Berry  <karl@gnu.org>
77968
77969         * m4/po.m4: update from gettext 0.14.1.
77970
77971 2004-02-06  Karl Berry  <karl@gnu.org>
77972
77973         * lib/config.charset: update from gettext 0.14.1.
77974
77975 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77976
77977         Add comments and code, prompted by suggestions from Bruno Haible
77978         for sh-quote.
77979         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77980         describing the enum quoting_style values.
77981         * lib/quotearg.c (quotearg_alloc): New function.
77982         (quotearg_buffer_restyled): Treat lone { and } as special.
77983         Treat = as special.  Work around bug with older shells
77984         that "see" a '\' that is really the 2nd byte of a multibyte char.
77985         Quote empty string with shell_quoting_style.
77986
77987 2004-02-03  Bruno Haible  <bruno@clisp.org>
77988
77989         * m4/pipe.m4: New file, from GNU gettext.
77990
77991 2004-02-03  Bruno Haible  <bruno@clisp.org>
77992
77993         * lib/pipe.h: New file, from GNU gettext.
77994         * lib/pipe.c: New file, from GNU gettext.
77995
77996 2004-01-27  Bruno Haible  <bruno@clisp.org>
77997
77998         * m4/execute.m4: New file, from GNU gettext.
77999
78000 2004-01-27  Bruno Haible  <bruno@clisp.org>
78001
78002         * lib/execute.h: New file, from GNU gettext.
78003         * lib/execute.c: New file, from GNU gettext.
78004         * lib/w32spawn.h: New file, from GNU gettext.
78005
78006 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78007
78008         Merge from diffutils.
78009
78010         * lib/file-type.c (file_type): Add typed memory objects.
78011         * lib/file-type.h (S_TYPEISTMO): New macro.
78012
78013         * lib/c-stack.h (c_stack_action): Remove argv argument.
78014         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
78015         (die): Don't calculate message unless segv_action returns.
78016         (get_stack_location, min_address_from_argv, max_address_from_argv,
78017         volatile stack_base, volatile_stack_size): Remove.
78018         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
78019         that every segmentation violation is a stack overflow.  (Ouch!)
78020         See Debian bug 136249 (still outstanding) for more info about why
78021         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
78022
78023 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78024
78025         Exit-status fix from coreutils.
78026
78027         Use exit_failure consistently in place of EXIT_FAILURE,
78028         so that program exit statuses are consistent on failure.
78029
78030         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
78031         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
78032         * lib/argmatch.h: Comment fix to match the above.
78033         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
78034         Now a macro referring to exit_failure, instead of a separate
78035         variable.  Include "exitfail.h" to get it.
78036         * lib/xstrtol.h: Include "exitfail.h".
78037         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
78038
78039         * lib/long-options.c (parse_long_options): Use prototype
78040         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
78041         for clarity.
78042
78043 2004-01-21  Jim Meyering  <jim@meyering.net>
78044
78045         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
78046         so as not to conflict with a different-sized __mktime_internal
78047         function in GNU libc.
78048         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
78049         Problem building statically-linked `ls' reported by Michael Brunnbauer.
78050
78051 2004-01-20  Karl Berry  <karl@gnu.org>
78052
78053         * config/config.guess: update from config.
78054
78055         * config/srclistvars.sh: GNUWWWLICENSES for karl.
78056
78057 2004-01-20  Bruno Haible  <bruno@clisp.org>
78058
78059         Safer stack allocation.
78060         * lib/setenv.c: Include allocsa.h.
78061         (alloca): Remove fallback definition.
78062         (freea): Remove macro.
78063         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
78064         instead of freea.
78065
78066 2004-01-20  Bruno Haible  <bruno@clisp.org>
78067
78068         * m4/eealloc.m4: New file, from GNU gettext.
78069
78070 2004-01-20  Bruno Haible  <bruno@clisp.org>
78071
78072         * m4/allocsa.m4: New file, from GNU gettext.
78073
78074 2004-01-20  Bruno Haible  <bruno@clisp.org>
78075
78076         * lib/xallocsa.h: New file, from GNU gettext.
78077         * lib/xallocsa.c: New file, from GNU gettext.
78078
78079 2004-01-20  Bruno Haible  <bruno@clisp.org>
78080
78081         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
78082
78083 2004-01-20  Bruno Haible  <bruno@clisp.org>
78084
78085         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
78086         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
78087         specially.
78088
78089 2004-01-20  Bruno Haible  <bruno@clisp.org>
78090
78091         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
78092         patch.
78093
78094 2004-01-20  Bruno Haible  <bruno@clisp.org>
78095
78096         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
78097
78098 2004-01-20  Bruno Haible  <bruno@clisp.org>
78099
78100         * lib/eealloc.h: New file.
78101
78102 2004-01-20  Bruno Haible  <bruno@clisp.org>
78103
78104         * lib/binary-io.h: Avoid warnings on Cygwin.
78105
78106 2004-01-20  Bruno Haible  <bruno@clisp.org>
78107
78108         * lib/allocsa.h: New file, from GNU gettext.
78109         * lib/allocsa.c: New file, from GNU gettext.
78110
78111 2004-01-18  Karl Berry  <karl@gnu.org>
78112
78113         * doc/gpl.texi, doc/lgpl.texi: new files.
78114
78115 2004-01-18  Karl Berry  <karl@gnu.org>
78116
78117         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
78118         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
78119
78120 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78121
78122         Merge from coreutils.
78123
78124         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
78125         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
78126         (gl_DEFAULT_POSIX2_VERSION): Move
78127         the documentation from 'configure' into 'config.hin',
78128         so that 'configure --help' isn't burdened by it and
78129         we don't have to worry about its formatting there.
78130         Reword the documentation so that it's more succinct
78131         and can be run together into a single paragraph.
78132         * m4/same.m4 (gl_SAME): Check for pathconf.
78133
78134 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78135
78136         Merge from coreutils.
78137
78138         * lib/posixver.c: Include posixver.h.
78139
78140         * lib/same.c: Include <stdbool.h>, <limits.h>.
78141         (_POSIX_NAME_MAX): Define if not defined.
78142         (MIN): New macro.
78143         (same_name): If file names are silently truncated, report
78144         that the file names are the same if they are the same after
78145         the silent truncation.
78146
78147         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
78148         conversion function.
78149         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
78150         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
78151         longer needed.
78152
78153 2004-01-15  Jim Meyering  <jim@meyering.net>
78154
78155         Merge from coreutils.
78156
78157         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
78158         if no library is required.
78159         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
78160         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
78161         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
78162         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
78163         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
78164         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
78165         value, $ac_cv_search_crypt, if it's "none required".
78166         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
78167         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
78168         not gl_FUNC_GETLOADAVG.
78169         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
78170         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
78171
78172 2004-01-15  Jim Meyering  <jim@meyering.net>
78173
78174         Merge from coreutils.
78175
78176         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
78177         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
78178         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
78179
78180         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
78181         optional configure-time default.
78182
78183         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78184
78185         * lib/xreadlink.c (xreadlink): Correct outdated comment.
78186
78187 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
78188
78189         Merge from coreutils.
78190
78191         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
78192         value, $ac_cv_search_nanosleep, if it's "none required".
78193
78194 2004-01-14  Paul Eggert  <eggert@twinsun.com>
78195
78196         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
78197         with like-named macro in fnmatch.c.
78198         (EXT): Use an internal constant instead.
78199
78200         Merge fnmatch patches from glibc.
78201         * lib/fnmatch.c (mbsinit): Remove define.
78202         Add libc_hidden_ver (__fnmatch, fnmatch).
78203         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
78204         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
78205
78206 2004-01-14  Karl Berry  <karl@gnu.org>
78207
78208         * config/install-sh: update from automake.
78209
78210 2004-01-13  Karl Berry  <karl@gnu.org>
78211
78212         * config/install-sh: update from automake.
78213
78214 2004-01-09  Karl Berry  <karl@gnu.org>
78215
78216         * config/install-sh: update from automake.
78217
78218 2004-01-05  Karl Berry  <karl@gnu.org>
78219
78220         * config/config.{sub,guess}: update from config.
78221
78222 2003-12-31  Karl Berry  <karl@gnu.org>
78223
78224         * config/depcomp: update from automake.
78225
78226 2003-12-14  Karl Berry  <karl@gnu.org>
78227
78228         * lib/config.charset: update from gettext-runtime.
78229
78230 2003-12-03  Paul Eggert  <eggert@twinsun.com>
78231
78232         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
78233         Bug reported by Alfred M. Szmidt.
78234
78235 2003-12-03  Bruno Haible  <bruno@clisp.org>
78236
78237         * m4/gettext.m4: Upgrade from gettext-0.13.
78238         * m4/po.m4: Upgrade from gettext-0.13.
78239         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
78240         * m4/intmax.m4: New file, from gettext-0.13.
78241         * m4/printf-posix.m4: New file, from gettext-0.13.
78242
78243 2003-11-29  Karl Berry  <karl@gnu.org>
78244
78245         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
78246
78247 2003-11-25  Paul Eggert  <eggert@twinsun.com>
78248             Bruno Haible  <bruno@clisp.org>
78249
78250         * lib/printf-parse.h: Don't include sys/types.h.
78251         (ARG_NONE): New macro.
78252         (char_directive): Change type of *arg_index fields to size_t.
78253         * lib/printf-parse.c: Don't include sys/types.h.
78254         (SSIZE_MAX): Remove macro.
78255         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
78256         Remove unnecessary overflow check.
78257         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78258         fields.
78259
78260 2003-11-25  Bruno Haible  <bruno@clisp.org>
78261
78262         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
78263
78264 2003-11-25  Bruno Haible  <bruno@clisp.org>
78265
78266         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
78267         gt_TYPE_SSIZE_T.
78268
78269 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78270
78271         * modules/alloca: Remove dependency on xalloc.
78272
78273 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78274
78275         * lib/alloca.c: Remove dependency on xalloc module.
78276         (xalloc_die): Remove.
78277         (memory_full) [!defined emacs]: New macro.
78278         [!defined emacs]: Don't include xalloc.h.
78279         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
78280         address arithmetic overflows.  Change datatypes a bit to avoid
78281         unnecessary casts.
78282
78283 2003-11-22  Jim Meyering  <jim@meyering.net>
78284
78285         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
78286         s/size/size_t/.
78287
78288 2003-11-21  Karl Berry  <karl@gnu.org>
78289
78290         * config/config.{sub,guess}: update from config.
78291
78292 2003-11-18  Karl Berry  <karl@gnu.org>
78293
78294         * config/config.{sub,guess}: update from config.
78295
78296         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
78297
78298 2003-11-17  Paul Eggert  <eggert@twinsun.com>
78299
78300         * README: Mention that S+T cannot overflow if S is the size of
78301         an existing object and T is sufficiently small.
78302
78303 2003-11-17  Jim Meyering  <jim@meyering.net>
78304
78305         On systems without utime and without a utimes function capable of
78306         dealing with a NULL struct utimbuf* argument, this utime replacement
78307         could -- in unusual circumstances -- leak a file descriptor.
78308         * lib/utime.c: Include <unistd.h> and <errno.h>.
78309         (utime_null): Be sure to close `fd' and to preserve errno.
78310         Reported by Geoff Collyer via Arnold Robbins.
78311
78312 2003-11-17  Bruno Haible  <bruno@clisp.org>
78313
78314         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
78315         (Depends-on): Add xsize.
78316
78317 2003-11-17  Bruno Haible  <bruno@clisp.org>
78318
78319         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
78320
78321 2003-11-17  Bruno Haible  <bruno@clisp.org>
78322
78323         * lib/vasnprintf.c (alloca): Remove fallback definition.
78324         (freea): Remove definition.
78325         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
78326         Reported by Paul Eggert.
78327
78328 2003-11-16  Paul Eggert  <eggert@twinsun.com>
78329             Bruno Haible  <bruno@clisp.org>
78330
78331         Protect against address arithmetic overflow.
78332         * lib/printf-args.h: Include stddef.h.
78333         (arguments): Change type of field 'count' to size_t.
78334         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
78335         'unsigned int' where appropriate.
78336         * lib/printf-parse.h: Include sys/types.h.
78337         (char_directive): Change type of *arg_index fields to ssize_t.
78338         (char_directives): Change type of fields 'count', max_*_length to
78339         size_t.
78340         * lib/printf-parse.c: Include sys/types.h and xsize.h.
78341         (SSIZE_MAX): Define fallback value.
78342         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
78343         instead of 'int' where appropriate. Check a_allocated, d_allocated
78344         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
78345         * lib/vasnprintf.c: Include xsize.h.
78346         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
78347         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
78348         overflow. Avoid wraparound when converting a width or precision from
78349         decimal to binary.
78350
78351 2003-11-16  Bruno Haible  <bruno@clisp.org>
78352
78353         Update from GNU gettext.
78354         * lib/printf-parse.c: Generalize to it can be compiled for wide
78355         strings.
78356         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
78357         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
78358         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
78359         SNPRINTF): New macros.
78360         Don't include <alloca.h> if the file is used inside libintl.
78361         (local_wcslen): New function, for Solaris 2.5.1.
78362         (VASNPRINTF): Use it instead of wcslen.
78363
78364 2003-11-16  Bruno Haible  <bruno@clisp.org>
78365
78366         * lib/xsize.h (xmax): New function.
78367         (xsum, xsum3, xsum4): Declare as "pure" functions.
78368
78369 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78370
78371         * modules/xalloc (Files): Undo latest change, since xalloc.h
78372         no longer needs SIZE_MAX or PTRDIFF_MAX.
78373
78374 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78375
78376         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
78377         gl_PTRDIFF_MAX.
78378
78379 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78380
78381         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
78382         "return", to pacify some unknown compiler.  Problem reported
78383         by Joerg Schilling.
78384
78385 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78386
78387         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
78388         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
78389         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
78390         heuristic is just as accurate as far as we know, and it removes a
78391         dependency on size_max.m4 and ptrdiff_max.m4.
78392
78393 2003-11-11  Bruno Haible  <bruno@clisp.org>
78394
78395         * modules/xsize (Files): Add m4/size_max.m4.
78396         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
78397
78398 2003-11-11  Bruno Haible  <bruno@clisp.org>
78399
78400         * m4/size_max.m4: New file.
78401         * m4/ptrdiff_max.m4: New file.
78402         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
78403         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
78404         (gl_XALLOC): Invoke it.
78405
78406 2003-11-11  Bruno Haible  <bruno@clisp.org>
78407
78408         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
78409         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
78410         defined.
78411
78412 2003-11-10  Paul Eggert  <eggert@twinsun.com>
78413
78414         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
78415         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
78416         rejected some allocations of exactly SIZE_MAX - 2 bytes.
78417         From Bruno Haible.
78418         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
78419         not (size_t) -1, since it's defined here.
78420
78421 2003-11-09  Karl Berry  <karl@gnu.org>
78422
78423         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
78424
78425 2003-11-06  Paul Eggert  <eggert@twinsun.com>
78426
78427         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
78428         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
78429         Reject sizes of exactly SIZE_MAX bytes.
78430         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
78431         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
78432
78433 2003-11-05  Bruno Haible  <bruno@clisp.org>
78434
78435         * lib/xsize.h: Include limits.h, to avoid a possible collision with
78436         SIZE_MAX defined in <limits.h> on Solaris.
78437
78438 2003-11-04  Jim Meyering  <jim@meyering.net>
78439
78440         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
78441         variable names, rather than @VAR@.
78442         * modules/poll: Likewise.
78443
78444 2003-11-04  Bruno Haible  <bruno@clisp.org>
78445
78446         * modules/xsize: New file.
78447         * modules/linebreak: Depend on xsize.
78448         * MODULES.html.sh (func_all_modules): Add xsize.
78449
78450 2003-11-04  Bruno Haible  <bruno@clisp.org>
78451
78452         * m4/xsize.m4: New file.
78453
78454 2003-11-04  Bruno Haible  <bruno@clisp.org>
78455
78456         * lib/xsize.h: New file.
78457         * lib/linebreak.c: Include xsize.h.
78458         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
78459         argument for overflow.
78460         Suggested by Paul Eggert.
78461
78462 2003-11-03  Karl Berry  <karl@gnu.org>
78463
78464         * config/config.{guess,sub}: update from config.
78465
78466 2003-11-03  Jim Meyering  <jim@meyering.net>
78467
78468         * modules/userspec (lib_SOURCES): Add userspec.h.
78469         (Include): Add "userspec.h".
78470         Improve description.
78471
78472 2003-11-03  Jim Meyering  <jim@meyering.net>
78473
78474         * lib/userspec.c: Include "userspec.h".
78475         * lib/userspec.h: New file.
78476
78477 2003-11-03  Bruno Haible  <bruno@clisp.org>
78478
78479         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
78480
78481 2003-11-03  Bruno Haible  <bruno@clisp.org>
78482
78483         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
78484         available, to avoid (extremely rare) race condition.
78485         Suggested by Paul Eggert.
78486
78487 2003-11-02  Karl Berry  <karl@gnu.org>
78488
78489         * config/srclist.txt (vasprintf.c): sync broken, sigh.
78490
78491 2003-10-31  Paul Eggert  <eggert@twinsun.com>
78492
78493         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
78494         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
78495         (read_filesystem_list): Set and use me_type_malloced.
78496         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
78497         whatever the type happens to be), for brevity and consistency.
78498         Check for size calculation overflow on Alphas running OSF/1.
78499
78500 2003-10-31  Jim Meyering  <jim@meyering.net>
78501
78502         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
78503
78504         * lib/linebuffer.c: Include <string.h> for declaration of memset.
78505
78506 2003-10-30  Paul Eggert  <eggert@twinsun.com>
78507             Bruno Haible  <bruno@clisp.org>
78508
78509         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
78510         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
78511
78512 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78513
78514         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78515         netbsd*-gnu*.  Suggested by Robert Millan.
78516
78517 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78518
78519         * modules/group-member: Depend on stdbool.
78520
78521 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78522
78523         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78524
78525 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78526
78527         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78528         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78529         after the 'gnu' in these cases.  This fixes some bugs in the
78530         previous change, and is based on suggestions by Robert Millan.
78531
78532 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78533
78534         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78535         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78536         no longer needed.
78537         * lib/quotearg.c (quotearg_n_options): Use it.
78538         * lib/group-member.c: Include <stdbool.h>.
78539         (free_group_info): Arg is now const *; don't free arg.
78540         (get_group_info): Now returns bool and accepts struct group_info *,
78541         rather than returning a malloc'ed struct group_info *.
78542         All uses changed.  Check for overflow in internal size calculation.
78543
78544         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78545         rather than xmalloc/xrealloc.
78546         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78547         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78548         conformance bug: the old code used a pointer after freeing the
78549         storage that it addressed.
78550         * lib/hash.c (hash_initialize): Simplify the code by using
78551         xalloc_oversized rather than doing it by hand.
78552         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78553         the buffer preserved.  Use free and xmalloc instead.
78554         * lib/quotearg.c (quotearg_n_options): Likewise.
78555         Use a simpler test for size overflow.  Don't use xalloc_oversized
78556         because unsigned int might be wider than size_t (!); this suggests
78557         that we should switch from unsigned int to size_t for slot numbers.
78558
78559 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78560
78561         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78562         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78563         NetBSD kernels.  Requested by Richard Stallman.
78564
78565 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78566
78567         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78568         to allocate the returned structure.  Do not allocate a subarray,
78569         as x2nrealloc will do that.
78570         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78571         instead of xnrealloc.
78572         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78573
78574 2003-10-27  Bruno Haible  <bruno@clisp.org>
78575
78576         * lib/stdbool_.h: Better support for BeOS.
78577
78578 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78579
78580         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78581         now uses inline.
78582
78583 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78584
78585         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78586         callers that want to do their own size-overflow checking.  Include
78587         <stdbool.h>, since xalloc_oversized returns bool.
78588         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78589         to use xalloc_oversized.
78590
78591         Add two functions x2realloc, x2nrealloc, for programs that grow
78592         arrays dynamically by doubling their sizes.
78593         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78594         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78595         New functions.
78596
78597         Port to C99 semantics for 'inline' of external functions.
78598         Bug reported by Bruno Haible.
78599         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78600         with the old contents of xnmalloc.
78601         (xnmalloc, xmalloc): Use it.
78602         (xnrealloc_inline): New static inline function,
78603         with the old contents of xnrealloc.
78604         (xnrealloc, xrealloc): Use it.
78605
78606         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78607         that.
78608
78609 2003-10-26  Karl Berry  <karl@gnu.org>
78610
78611         * config/srclist.txt (COPYING.DOC): no longer available from
78612         /gd/gnuorg; don't know where the ultimate source is.
78613
78614 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78615
78616         Fix several address-calculation bugs in the hash modules,
78617         plus some minor code cleanup.
78618
78619         * lib/hash.h: Include <stdbool.h>, for bool.
78620         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78621         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78622         hash_get_n_entries, hash_get_max_bucket_length,
78623         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78624         hash_rehash): Use size_t rather than unsigned.
78625         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78626         hash_get_n_buckets_used, hash_get_n_entries,
78627         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78628         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78629         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78630         Likewise.
78631         (SIZE_MAX): Define if not defined.
78632         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78633         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78634         hash_print):
78635         Use const * when possible.
78636         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78637         (check_tuning): Fix bug: if tuning parameters were very close to
78638         0 or 1, rounding errors could have caused subscript violations.
78639         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78640         (hash_initialize): Add 'fail:' label
78641         to free table and return NULL, and use it to simplify code.
78642         Use calloc rather than clearing the storage ourself.
78643         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78644         buffer size calculations.
78645         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78646         Include <stddef.h>, for size_t.
78647         * lib/hash-pjw.c (hash_pjw): Likewise.
78648         Switch to method described by Bruno Haible.
78649         Include <limits.h>, for CHAR_BIT.
78650         (SIZE_BITS): New macro.
78651
78652 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78653
78654         * m4/getline.m4 (AM_FUNC_GETLINE):
78655         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78656         hosts.  Problem reported by Derek Robert Price in
78657         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78658         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78659         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78660
78661 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78662
78663         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78664         ceiling the allocation at NMAX bytes rather than silently
78665         discarding input bytes before NMAX is reached.  This makes
78666         a difference only if NMAX exceeds SIZE_MAX / 2.
78667
78668         * lib/obstack.c: Merge from glibc.
78669         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78670         Add libc_hidden_def (_obstack_newchunk).
78671         (_obstack_free) [! defined _LIBC]: Remove.
78672         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78673         a clone of the function body.
78674         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78675         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78676
78677         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78678         glibc.
78679         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78680         arg to memcpy.
78681
78682         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78683         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78684         Don't use lvalue casts, as GCC plans to remove support for them
78685         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78686         was also present in the non-GCC version, indicating that this
78687         code had always been buggy and had never been widely used.
78688         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78689         Use the fast variant of each macro, rather than copying the
78690         definiens of the fast variant; that way, we'll be more likely to
78691         catch future bugs in the fast variants.
78692
78693 2003-10-20  Bruno Haible  <bruno@clisp.org>
78694
78695         * modules/wait-process: New file.
78696         * MODULES.html.sh (func_all_modules): Add wait-process.
78697
78698 2003-10-20  Bruno Haible  <bruno@clisp.org>
78699
78700         * m4/wait-process.m4: New file.
78701
78702 2003-10-20  Bruno Haible  <bruno@clisp.org>
78703
78704         * lib/wait-process.h: New file, from GNU gettext.
78705         * lib/wait-process.c: New file, from GNU gettext.
78706
78707 2003-10-19  Jim Meyering  <jim@meyering.net>
78708
78709         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78710         HPUX 10.20.
78711
78712 2003-10-18  Karl Berry  <karl@gnu.org>
78713
78714         * config/config.guess: update from config.
78715
78716 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78717
78718         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78719         (getgroups): First arg is int, not size_t.
78720         Don't let 'free' mangle errno.
78721
78722 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78723
78724         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78725
78726 2003-10-16  Karl Berry  <karl@gnu.org>
78727
78728         * config/config.{guess,sub}: update from config.
78729
78730 2003-10-16  Jim Meyering  <jim@meyering.net>
78731
78732         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78733         memcpy.
78734
78735 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78736
78737         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78738         (SIZE_MAX): Remove.
78739         (new_exclude, add_exclude_file): Initial size no longer needs to
78740         be a power of 2.
78741         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78742         our own address arithmetic overflow checking.
78743
78744         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78745         (fnmatch): Do not alloca more than 2000 wide characters;
78746         instead, use malloc for large buffers.
78747         Check for address arithmetic overflow, and return -1
78748         with errno set to ENOMEM in that case.
78749         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78750         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78751         instead, return -1.  Check for address arithmetic overflow.
78752
78753 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78754
78755         Handle invalid suffixes and overflow independently, so that
78756         callers can treat them independently as needed.  Fix some bugs in
78757         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78758         suffix for a human-readable blocksize.  The major caller-visible
78759         change is the addition of a new
78760         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78761         that both overflow and suffix chars were found.
78762
78763         * lib/human.c (humblock): Don't check separately for invalid suffix
78764         char; that is xstrtoumax's job (now that its bug is fixed).
78765         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78766         INTMAX_MAX]: New macros.
78767         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78768         TYPE_MAXIMUM): New macros.
78769         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78770         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78771         if overflow occurs, as it's what __strtol does and it's more useful
78772         in practice.
78773         (__xstrtol): If __strtol reports some error other than ERANGE,
78774         reflect it to the caller as LONGINT_INVALID.  If it reports
78775         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78776         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78777         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78778         value.
78779         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78780         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78781         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78782         [defined UINTMAX_MAX]: New macros.
78783
78784 2003-10-14  Bruno Haible  <bruno@clisp.org>
78785
78786         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78787
78788 2003-10-14  Bruno Haible  <bruno@clisp.org>
78789
78790         * m4/sig_atomic_t: New file, from GNU gettext.
78791         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78792
78793 2003-10-14  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78796         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78797         Also use volatile where needed.
78798
78799 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78800
78801         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78802         Change maintainer from Bruno Haible to 'all'.
78803
78804 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78805
78806         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78807
78808 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78809
78810         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78811         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78812         and define in terms of the other primitives.
78813         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78814         (SIZE_MAX): Define if not already defined.
78815         (array_size_overflow): New function.
78816         (xalloc_die): Abort instead of exiting if 'error' returns.
78817         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78818         (xmalloc, xrealloc): Use them.
78819         (xcalloc): Check for address arithmetic overflow.
78820         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78821         a bit faster than strcpy.
78822
78823 2003-10-10  Simon Josefsson  <jas@extundo.com>
78824
78825         * modules/argp (Depends-on): Add restrict and strcase.
78826
78827 2003-10-10  Simon Josefsson  <jas@extundo.com>
78828
78829         * m4/argp.m4: Add AC_C_INLINE.
78830
78831 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78832
78833         Merge getpass from libc, plus a few fixes.
78834
78835         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78836         Include <stdbool.h>.
78837         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78838         __fsetlocking to empty.
78839         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78840         do include <bits/libc-lock.h>.
78841         Do not include <fcntl.h>; not needed.
78842         [_LIBC]: Include <wchar.h>.
78843         (NOTCANCEL_MODE): New macro.
78844         (flockfile, funlockfile) [_LIBC]: New macros.
78845         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78846         [!_LIBC]: New macros.
78847         (call_fclose): New function.
78848         (getpass): Use it.  Save tty stream separately; this simplifies the
78849         code and makes it more reliable if stdin happens to equal stdout.
78850         Invoke __fsetlocking on tty.
78851         Handle thread cancellation if needed.
78852         Namespace cleanup (use __tcgetattr, __getline).
78853         Use bool for Booleans.
78854         [USE_IN_LIBIO]: Handle wide streams.
78855         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78856         stream might go where.
78857
78858         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78859         doesn't have to include <stdio.h> before us.
78860         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78861         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78862         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78863         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78864         if not declared, so that we can use getpass.c code from libc without
78865         rewriting it.
78866         (flockfile, ftrylockfile, funlockfile): New macros.
78867
78868 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78869
78870         * modules/getpass: Depend on stdbool.
78871
78872 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78873
78874         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78875
78876 2003-10-07  Karl Berry  <karl@gnu.org>
78877
78878         * config/config.{guess,sub}: update from config.
78879
78880 2003-10-06  Jim Meyering  <jim@meyering.net>
78881             Bruno Haible  <bruno@clisp.org>
78882
78883         This lets translators provide better translations for the
78884         "Written by ..." part of --version output.
78885         * lib/version-etc.h: Include stdarg.h.
78886         (version_etc_copyright): Declare as readonly.
78887         (version_etc): Make this function variadic with a NULL-terminated list
78888         of author name strings.
78889         (version_etc_va): New declaration.
78890         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78891         (version_etc_copyright): Declare as readonly.
78892         (version_etc_va): New function. Provide a different translatable string
78893         for each possible number of authors < 10. Abbreviate when there are 10
78894         authors or more.
78895         (version_etc): Make this function variadic. Call version_etc_va.
78896         Suggestion from Gary V. Vaughan.
78897
78898         * lib/long-options.h (parse_long_options): Change prototype: the
78899         authors string is moved to the end and becomes variadic.
78900         * lib/long-options.c: Include stdarg.h.
78901         (parse_long_options): Make this function variadic, too.
78902         Call version_etc_va, not version_etc.
78903
78904 2003-10-06  Bruno Haible  <bruno@clisp.org>
78905
78906         * modules/version-etc-2: Remove file.
78907         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78908
78909 2003-10-06  Bruno Haible  <bruno@clisp.org>
78910
78911         * modules/fatal-signal: New file.
78912         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78913
78914 2003-10-06  Bruno Haible  <bruno@clisp.org>
78915
78916         * m4/fatal-signal.m4: New file.
78917         * m4/signalblocking.m4: New file, from GNU gettext.
78918
78919 2003-10-06  Bruno Haible  <bruno@clisp.org>
78920
78921         * lib/version-etc-2.h: Remove file.
78922         * lib/version-etc-2.c: Remove file.
78923
78924 2003-10-06  Bruno Haible  <bruno@clisp.org>
78925
78926         * lib/fatal-signal.h: New file, from GNU gettext.
78927         * lib/fatal-signal.c: New file, from GNU gettext.
78928
78929 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78930
78931         * README: Rework advice for preventing empty .o files.
78932         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78933         not <sys/types.h>.
78934
78935 2003-10-04  Karl Berry  <karl@gnu.org>
78936
78937         * lib/argp*: update from libc.
78938
78939 2003-10-04  Karl Berry  <karl@gnu.org>
78940
78941         * config/config.{guess,sub}: update from config.
78942
78943 2003-10-02  Bruno Haible  <bruno@clisp.org>
78944
78945         * modules/lchown (Include): Add lchown.h.
78946         * modules/time_r (Include): Use "..." syntax.
78947         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78948
78949 2003-10-01  Simon Josefsson  <jas@extundo.com>
78950
78951         * MODULES.html.sh (func_all_modules): Move gethostname from section
78952         'based on' to section 'lacking' POSIX:2001.
78953
78954 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78955
78956         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78957         to output mode on the same stream.
78958
78959 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78960
78961         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78962         Fix arg typo in previous patch.
78963
78964 2003-09-28  Jim Meyering  <jim@meyering.net>
78965
78966         * lib/error.c: Correct cpp indentation.
78967
78968 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78969
78970         * modules/free: New file.
78971
78972 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78973
78974         * m4/free.m4: New file.
78975
78976 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78977
78978         * lib/minmax.h (MIN, MAX)
78979         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78980         Omit the special code that used __typeof__, since we worry that
78981         it could be more trouble than it's worth.  See:
78982         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78983         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78984
78985         * lib/free.c: New file.
78986
78987 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78988
78989         Trivial fixes to Makefile.am parts of module listings.
78990         * modules/strstr: Append strstr.h to lib_SOURCES.
78991         * modules/strcase: Likewise, for strcase.h.
78992
78993 2003-09-27  Karl Berry  <karl@gnu.org>
78994
78995         * config/mkinstalldirs: update from automake.
78996
78997 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78998
78999         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
79000         (error_tail): Do not loop, reallocating temporary buffer, since
79001         the output cannot contain more wide characters than the input
79002         contains bytes, the size must be big enough already.  This avoids
79003         one potential size overflow calculation.  Check for size overflow
79004         when calculating temporary buffer size.  Free temporary buffer
79005         when done, if it was allocated with malloc; this plugs a memory
79006         leak.  Remove casts from void * to pointers, that are no longer
79007         needed now that we're assuming C89 or better.
79008
79009         Merge error changes from glibc.
79010
79011         * lib/error.c, error.h: Update copyright notice header to match glibc.
79012         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
79013         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
79014         Disable cancellation while printing error.
79015         * lib/error.h: Prepend __ to parameter names.
79016
79017 2003-09-26  Jim Meyering  <jim@meyering.net>
79018
79019         * lib/error.c (error_tail): Move some declarations
79020         into inner scope where the local variables are used.
79021
79022 2003-09-26  Bruno Haible  <bruno@clisp.org>
79023
79024         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
79025         stpncpy().
79026         Don't define stpncpy through config.h; it's now done through stpncpy.h.
79027
79028 2003-09-26  Bruno Haible  <bruno@clisp.org>
79029
79030         * lib/stpncpy.h (gnu_stpncpy): New declaration.
79031         (stpncpy): Define as alias for gnu_stpncpy.
79032         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
79033
79034 2003-09-25  Simon Josefsson  <jas@extundo.com>
79035
79036         * lib/xgetdomainname.h: New file.
79037         * lib/xgetdomainname.c: New file.
79038
79039 2003-09-25  Simon Josefsson  <jas@extundo.com>
79040             Bruno Haible  <bruno@clisp.org>
79041
79042         * modules/getdomainname: New file.
79043         * modules/xgetdomainname: New file.
79044         * MODULES.html.sh (func_all_modules): Add getdomainname,
79045         xgetdomainname.
79046
79047 2003-09-25  Simon Josefsson  <jas@extundo.com>
79048             Bruno Haible  <bruno@clisp.org>
79049
79050         * m4/getdomainname.m4: New file.
79051
79052 2003-09-25  Simon Josefsson  <jas@extundo.com>
79053             Bruno Haible  <bruno@clisp.org>
79054
79055         * lib/getdomainname.h: New file.
79056         * lib/getdomainname.c: New file.
79057
79058 2003-09-25  Karl Berry  <karl@gnu.org>
79059
79060         * lib/argp-fmtstream.c, argp-help.c: update from libc.
79061
79062 2003-09-25  Karl Berry  <karl@gnu.org>
79063
79064         * config/install-sh: update from automake.
79065
79066 2003-09-25  Bruno Haible  <bruno@clisp.org>
79067
79068         * modules/version-etc-2: New file, from modules/version-etc with
79069         modifications.
79070         * MODULES.html.sh (func_all_modules): Add version-etc-2.
79071
79072 2003-09-25  Bruno Haible  <bruno@clisp.org>
79073
79074         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
79075         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
79076
79077 2003-09-24  Simon Josefsson  <jas@extundo.com>
79078
79079         * modules/xgethostname: Add xgethostname.h.
79080
79081 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79082
79083         * lib/linebuffer.c (freebuffer): Don't free the argument, just
79084         the buffer associated with the argument.  Bug reported by
79085         Simon Josefsson.
79086
79087 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79088
79089         * README: Document assumptions that 'int' is at least 32 bits
79090         wide, that integer arithmetic is 2's complement without overflow,
79091         that there are no holes in integer values, that adding sizes of
79092         two nonoverlapping objects can't overflow, and that all-bits-zero
79093         yields scalar zero.  Fix spelling and capitalization typos.
79094
79095 2003-09-19  Karl Berry  <karl@gnu.org>
79096
79097         * lib/argp.h: update from libc.
79098
79099 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79100
79101         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
79102         to avoid spurious warnings like "AC_RUN_IFELSE was called before
79103         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
79104
79105 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79106
79107         * gnulib-tool: Use "test -h", not "test -L", for portability
79108         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
79109         (tags_regexp): Remove, since \| doesn't conform to POSIX.
79110         (sed_extract_prog): Issue s commands one-by-one, rather than
79111         using \| in one s command.
79112
79113 2003-09-16  Paul Eggert  <eggert@twinsun.com>
79114
79115         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
79116         input error, instead of returning NULL the next time we are called
79117         (and therefore losing track of errno).
79118
79119 2003-09-16  Bruno Haible  <bruno@clisp.org>
79120
79121         * gnulib-tool (func_create_testdir): Warn about duplicated
79122         dependencies.
79123
79124 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79125
79126         * modules/argmatch, modules/fatal, modules/obstack,
79127         modules/xalloc, modules/xgethostname: Sort dependencies by
79128         importance, not alphabetically.
79129
79130 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79131
79132         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
79133         fails, so that the caller gets the proper errno.
79134
79135         * lib/readutmp.c (read_utmp): Likewise.
79136         Check for fstat error.  Close stream and free storage
79137         when failing.
79138
79139 2003-09-14  Karl Berry  <karl@gnu.org>
79140
79141         * config/srclist.txt (strdup.c): disable for c89 changes.
79142
79143 2003-09-14  Jim Meyering  <jim@meyering.net>
79144
79145         * lib/getloadavg.c: Correct cpp indentation.
79146         * lib/strdup.c: Likewise.
79147         * lib/vasnprintf.c: Likewise.
79148
79149 2003-09-14  Bruno Haible  <bruno@clisp.org>
79150
79151         * modules/fwriteerror: New file.
79152         * MODULES.html.sh (func_all_modules): Add fwriteerror.
79153
79154 2003-09-14  Bruno Haible  <bruno@clisp.org>
79155
79156         * lib/fwriteerror.h: New file.
79157         * lib/fwriteerror.c: New file.
79158
79159 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79160
79161         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
79162         modules/xgethostname, modules/xalloc: Depend on exit.
79163
79164 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79165
79166         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
79167
79168         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
79169         and AC_MINIX, too, so that their extensions are available.
79170
79171         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
79172         This macro has been superseded by gl_BACKUPFILE.
79173
79174         More patches to assume C89 or better.
79175
79176         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
79177
79178         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
79179         unconditionally.
79180         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
79181         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
79182         Include <string.h>, <stdlib.h> unconditionally.
79183         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
79184         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
79185         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
79186         headers or for string.h.
79187         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
79188         or strtoul.
79189
79190         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
79191         headers.
79192         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
79193         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79194         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
79195         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
79196         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79197         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
79198         memcpy, memset.
79199         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
79200         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
79201         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
79202         strtol.
79203         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
79204         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
79205         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
79206         strtoul.
79207
79208 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79209
79210         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
79211         * lib/obstack.c [!defined _LIBC]: Likewise.
79212         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
79213         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
79214         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
79215
79216         More changes to assume C89 or better.
79217
79218         * lib/error.c (error_tail): Assume vprintf.
79219
79220         * lib/argmatch.c (getenv): Remove decl.
79221         * lib/progreloc.c (get_full_program_name): Define via prototype.
79222         * lib/setenv.c (clearenv): Likewise.
79223         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
79224         needed.
79225         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
79226         (malloc, memcpy): Remove decls.
79227         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
79228         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
79229         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79230         (memcpy): Remove macro.
79231         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
79232         (__P): Remove.  All uses removed.
79233         (PTR): Remove.  All uses changed to void *.
79234         (CHAR_BIT, NULL): Remove.
79235         (spaces, zeros, memset_space, memset_zero)
79236         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
79237         Remove.
79238         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
79239         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
79240         Define with prototype.
79241         Remove now-unnecessary prototype decl.
79242         (extra_args_spec): Assume ANSI C.  All uses changed.
79243         (extra_args_spec_iso): Remove.
79244         (my_strftime, emacs_strftimeu): Define via prototype.
79245         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
79246         unconditionally.
79247         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
79248         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
79249         (strtoul, strtol): Remove decls.
79250         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
79251         LONG_MAX): Remove.
79252         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79253         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
79254         (LOCALE_PARAM_PROTO): New macro.
79255         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
79256         (INTERNAL (strtol), strtol): Define with a prototype.
79257         (PARAMS): Remove.  All uses removed.
79258         * lib/tempname.c: Include <string.h> unconditionally.
79259         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
79260         * lib/xgethostname.c (main): Define with a prototype.
79261         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
79262         Include <stdlib.h> unconditionally.
79263         (calloc, malloc, realloc, free): Remove decls.
79264         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
79265         Include <stdlib.h> unconditionally.  Sort include file names.
79266         (strtod): Remove.
79267         (xstrtod): Define with a prototype.
79268         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
79269         (strtol, strtoul): Remove decls.
79270
79271 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79272
79273         More patches to assume C89 or better.
79274         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
79275         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
79276         string.h, memchr, STDC_HEADERS.
79277
79278 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79279
79280         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
79281         Include <stdlib.h>, <string.h> unconditionally.
79282         Remove now-unnecessary cast to char *.
79283         * lib/strnlen.c: Include <string.h> unconditionally.
79284         * lib/yesno.c (yesno): Define with a prototype.
79285
79286 2003-09-11  Bruno Haible  <bruno@clisp.org>
79287
79288         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
79289
79290 2003-09-10  Jim Meyering  <jim@meyering.net>
79291
79292         * lib/error.c: Correct indentation of cpp directives.
79293
79294 2003-09-10  Bruno Haible  <bruno@clisp.org>
79295
79296         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
79297         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
79298         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
79299         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
79300         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
79301         <stdlib.h> and <string.h> checks.
79302         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
79303         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
79304
79305 2003-09-10  Bruno Haible  <bruno@clisp.org>
79306
79307         * lib/strcspn.c: Include <string.h> unconditionally.
79308         * lib/strpbrk.c: Include <string.h> unconditionally.
79309         * lib/strstr.c: Include <string.h> unconditionally.
79310         * lib/unicodeio.c: Include <string.h> unconditionally.
79311         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
79312         * lib/unsetenv.c: Likewise.
79313         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
79314         * lib/yesno.c: Include <stdlib.h> unconditionally.
79315         (rpmatch): Add prototype.
79316
79317 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79318
79319         More patches to assume C89 or better.
79320         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
79321         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
79322         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
79323         or for string.h.
79324         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
79325         stdlib.h.
79326         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
79327         C headers.
79328         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
79329         string.h.
79330         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
79331         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
79332         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
79333         or for string.h.
79334         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
79335         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
79336         C headers.
79337         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
79338         memcpy.
79339         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
79340         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
79341         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
79342         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
79343         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
79344         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
79345         string.h, free.
79346         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
79347         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
79348         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
79349         C headers, or for string.h.
79350         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
79351         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
79352         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
79353         headers, memory.h, stdlib.h, string.h, strings.h.
79354         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
79355         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
79356         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
79357         strchr.
79358         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
79359         headers, memory.h, string.h.
79360         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
79361         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
79362         free.
79363         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
79364         headers.
79365         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
79366         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
79367         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
79368         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
79369         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
79370
79371 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79372
79373         More K&R removal.
79374
79375         * lib/acosl.c (main): Use a prototype.
79376         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
79377         tanl.c: Likewise.
79378
79379         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
79380
79381         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
79382         (getopt, etopt_long, getopt_long_only, _getopt_internal)
79383         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
79384         with a prototype.
79385         * lib/getopt.c (const): Remove macro.
79386         Include <string.h> unconditionally.
79387         (my_index): Remove; all uses changed to strchr.
79388         (strlen): Remove decl.
79389         (exchange): Remove forward decl; no longer needed.
79390         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
79391         Define with prototype.
79392         * lib/getopt1.c (const): Remove macro.
79393         (getopt_long, getopt_long_only, main): Define with prototype.
79394
79395         * lib/getugroups.c: Include <string.h> unconditionally.
79396
79397         * lib/getusershell.c: Include <stdlib.h> unconditionally.
79398         (getusershell, setusershell, endusershell, readname, main):
79399         Define with prototypes.
79400
79401         * lib/group-member.c: Include group-member.h first.
79402         Include <stdlib.h> unconditionally.
79403
79404         * lib/hard-locale.c: Include hard-locale.h first.
79405         Include <stdlib.h>, <string.h> unconditionally.
79406
79407         * lib/hash.c (free, malloc): Remove decls.
79408         Include <stdlib.h> unconditionally.
79409
79410         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
79411         (getenv): Do not declare.
79412
79413         * lib/idcache.c: Include <string.h> unconditionally.
79414
79415         * lib/long-options.c: Include long-options.h first, to test interface.
79416         Include <stdlib.h> unconditionally.
79417
79418         * lib/makepath.c: Include makepath.h first, to test interface.
79419         Include <stdlib.h> and <string.h> unconditionally.
79420
79421         * lib/linebuffer.c: Include <stdlib.h>.
79422         (free): Remove decl.
79423
79424         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
79425         stddef.h. rpl_malloc returns void *, not char *.
79426         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
79427         prototype.
79428
79429         * lib/md5.h: Include <limits.h> unconditionally.
79430         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
79431         (__P): Remove; all uses removed.
79432         * lib/md5.c: Include "md5.h" first.
79433         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
79434         md5_buffer, md5_process_bytes, md5_process_block):
79435         Define with prototypes.
79436         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
79437         * lib/sha.c: Include "sha.h" first.
79438         Include <stdlib.h>, <string.h> unconditionally.
79439
79440         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
79441         * lib/memcmp.c (__ptr_t): Likewise.
79442         * lib/memrchr.c (__ptr_t): Likewise.
79443         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
79444         Include <string.h> unconditionally.
79445         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
79446         * lib/memchr.c: Include <stdlib.h> unconditionally.
79447         * lib/memchr.c (LONG_MAX): Remove.
79448         * lib/memrchr.c (LONG_MAX): Likewise.
79449         * lib/memchr.c (__memchr): Define via a prototype.
79450         * lib/memrchr.c (__memrchr): Likewise.
79451         * lib/memcmp.c (__P): Remove, and remove all uses.
79452         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
79453         Remove forward decls; no longer needed.
79454         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
79455         Use types required by C89 in prototype.
79456
79457         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
79458         * lib/savedir.c: Likewise.
79459         * lib/mkdir.c (free): Remove decl.
79460         * lib/rmdir.c (rmdir): Define with a prototype.
79461         * lib/savedir.c: Include savedir.h first, to test interface.
79462
79463         * lib/mktime.c (STDC_HEADERS): Remove.
79464         Include <stdlib.h>, <string.h> unconditionally.
79465
79466         * lib/modechange.c: Include <stdlib.h> unconditionally.
79467         (malloc): Remove decl.
79468
79469         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
79470         (free): Remove decl.
79471
79472         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
79473         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
79474         (This type really should be intptr_t, but that's a C99ism.)
79475         (_obstack_memcpy): Remove: all uses changed to memcpy.
79476         Include <string.h> unconditionally.
79477         (struct obstack): Assume __STDC__ for types of members
79478         chunkfun, freefun, extra_arg.
79479         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
79480         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
79481         obstack_begin, obstack_specify_allocation,
79482         obstack_specify_allocation_with_arg, obstack_chunkfun,
79483         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
79484         Remove unprototyped decls and the macros that use them.
79485         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
79486         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
79487         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
79488         (defined __STDC__ && __STDC__)]:
79489         Remove nonprototyped code.
79490         Include <stdlib.h> unconditionally.
79491         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
79492         _obstack_allocated_p, _obstack_free, obstack_free,
79493         _obstack_memory_used, print_and_abort):
79494         Define using prototypes.
79495         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
79496         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
79497         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
79498         obstack_next_free, obstack_object_size, obstack_room) [0]:
79499         Remove unused, unprototyped code.
79500
79501         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
79502
79503         * lib/physmem.c (physmem_total, physmem_available, main): Define
79504         with prototypes.
79505
79506         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
79507         (main): Define with a prototype.
79508
79509         * lib/posixver.c (getenv): Remove decl.
79510
79511         * lib/putenv.c (malloc): Returns void *, not char *.
79512         Include <string.h> unconditionally.
79513         (strchr, memcpy, NULL): Do not define.
79514
79515         * lib/readtokens.c: Include readtokens.h first, to test interface.
79516         Include <stdlib.h>, <string.h> unconditionally.
79517         (init_tokenbuffer): Define with a prototype.
79518
79519         * lib/regex.c (PARAMS): Remove.  All uses removed.
79520         All uses of _RE_ARGS removed, too.
79521         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79522         unconditionally.
79523         (bzero): Assume memset exists.
79524         (memcmp, memcpy, NULL): Remove.
79525         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79526         char, or assignments to local vars of type signed char.
79527         (init_syntax_once, PREFIX(extract_number_and_incr),
79528         PREFIX(print_partial_compiled_pattern),
79529         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79530         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79531         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79532         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79533         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79534         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79535         wcs_compile_range, byte_compile_range, truncate_wchar,
79536         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79537         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79538         count_mbs_length, wcs_re_match_2_internal,
79539         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79540         PREFIX(alt_match_null_string_p),
79541         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79542         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79543         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79544         now-unnecessary declaration, if any.
79545         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79546         regcomp, regexec):
79547         Remove now-unnecessary casts among pointer types.
79548         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79549
79550         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79551         (free): Remove decl.
79552
79553         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79554
79555         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79556         (free): Remove decl.
79557
79558         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79559         * lib/xgetcwd.c: Likewise.
79560
79561         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79562         (free): Remove decl.
79563
79564         * lib/strchrnul.c (strchrnul): Define with a prototype.
79565         Fix bug: c_in was not converted to char before searching.
79566
79567         The following changes are not K&R related:
79568
79569         * lib/group-member.h: Include <sys/types.h>, so that this file is
79570         self-contained.
79571         * lib/makepath.h: Likewise.
79572
79573         * lib/getusershell.c (readname, default_index, line_size, readname):
79574         Use size_t, not int, for sizes.
79575         (readname): If the size overflows, report an error instead of
79576         looping forever.
79577
79578 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79579
79580         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79581         libc.
79582
79583 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79584
79585         * README: New section: portability guidelines.
79586
79587 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79588
79589         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79590         C89 spec.
79591
79592 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79593
79594         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79595
79596 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79597
79598         Assume C89 or better; remove K&R cruft.
79599         A few of these changes were first proposed by Derek Robert Price
79600         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79601
79602         * lib/addext.c: Include <string.h> unconditionally.
79603         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79604         Don't declare getenv or malloc.
79605
79606         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79607         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79608         (NULL): Remove.
79609         (find_stack_direction, alloca): Use prototypes.
79610
79611         * lib/atexit.c (atexit): Define using a prototype.
79612
79613         * lib/basename.c, dirname.c, stripslash.c:
79614         Include <string.h> unconditionally.
79615
79616         * lib/bcopy.c: Include <stddef.h>.
79617         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79618
79619         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79620
79621         * lib/error.h (error, error_at_line, error_print_progname)
79622         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79623         * lib/error.c: Include error.h first, to check interface.
79624         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79625         (VA_START): Remove; all uses changeed to va_start.
79626         (exit, strerror): Remove decls.
79627         (error_print_progname): Prototype uncondionally.
79628         Don't include <errno.h>; no longer needed.
79629         (private_strerror): Remove.
79630         (error_tail): Always define.
79631         (error, error_at_line): Assume C89 or better; always use prototypes.
79632         * lib/fatal.c: Include "fatal.h" first, to test interface.
79633         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79634         (VA_START): Remove; all uses changed to va_start.
79635         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79636         this case.
79637         (exit): Remove decl.
79638         (fatal): Prototype unconditionally.  Assume va_start works.
79639         Abort at end, to pacify gcc.
79640
79641         * lib/euidaccess.c (main): Define with a prototype.
79642
79643         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79644
79645         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79646
79647         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79648         prototypes.
79649         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79650         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79651         (getenv): Remove decl.
79652         (fnmatch): Define using a prototype.
79653         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79654         (FCT): Define using a prototype.
79655
79656         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79657
79658         * lib/gethostname.c: Include <stddef.h>.
79659         (gethostname): Define with prototype.  Length is size_t, not int.
79660
79661 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79662
79663         Assume C89 or better; remove K&R cruft.
79664         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79665         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79666         string.h, getenv, malloc.
79667         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79668         headers.
79669         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79670         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79671         do not check for strerror.
79672         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79673         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79674         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79675         do not check for doprnt or vprintf.
79676         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79677         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79678
79679 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79680
79681         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79682         getversion.c should have been removed then, but was accidentally
79683         preserved.
79684
79685         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79686         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79687
79688 2003-09-08  Karl Berry  <karl@gnu.org>
79689
79690         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79691                 config, forget about prep.
79692
79693         * config/depcomp, missing: update from automake.
79694
79695 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79696
79697         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79698         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79699
79700 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79701
79702         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79703         copy_tm_result.  Bug reported by Simon Josefsson in
79704         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79705
79706 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79707
79708         * m4/time_r.m4: New file.
79709         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79710         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79711         is. Check for timegm declaration.
79712         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79713         Do not check for gmtime_r.
79714         Replace mktime if __mktime_internal does not exist and if mktime
79715         hasn't been replaced already.
79716
79717 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79718
79719         * lib/time_r.c, lib/time_r.h: New files.
79720
79721         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79722         __localtime_r.
79723         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79724         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79725
79726         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79727         __gmtime_r.
79728         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79729         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79730         Include <time_r.h>.
79731
79732         * lib/timegm.c: Switch to glibc implementation, with the following
79733         changes:
79734         [defined HAVE_CONFIG_H]: Include <config.h>.
79735         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79736         (__mktime_internal) [!defined _LIBC]: New decl.
79737         (__gmtime_r) [!defined _LIBC]: New macro and function.
79738         (timegm): Use a prototype, since gnulib assumes C89.
79739         Do not bother declaring tmp to be const, as it's not really usefu.
79740         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79741         (timegm): Declare only if HAVE_DECL_TIMEGM.
79742
79743 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79744
79745         * MODULES.html.sh (func_all_modules): Add time_r.
79746         * modules/time_r: New file.
79747         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79748         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79749
79750 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79751
79752         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79753         Bug reported by Lute Kamstra in
79754         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79755
79756         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79757         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79758         course with correspondingly smaller numbers for tomorrow and
79759         yesterday.  From Tadayoshi Funaba.  Originally installed into
79760         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79761         coreutils merge?).
79762
79763 2003-08-31  Simon Josefsson  <jas@extundo.com>
79764
79765         * modules/timegm: New file.
79766         * MODULES.html.sh (func_all_modules): Add timegm.
79767
79768 2003-08-31  Simon Josefsson  <jas@extundo.com>
79769
79770         * m4/timegm.m4: New file.
79771
79772 2003-08-31  Simon Josefsson  <jas@extundo.com>
79773
79774         * lib/timegm.h: New file.
79775         * lib/timegm.c: New file.  Based on
79776         wget-1.8.2/src/http.c:mktime_from_utc.
79777
79778 2003-08-31  Karl Berry  <karl@gnu.org>
79779
79780         * lib/argp.h: update from libc.
79781
79782 2003-08-28  Bruno Haible  <bruno@clisp.org>
79783
79784         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79785         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79786         followed by '#define fnmatch fnmatch_posix' gives an error.
79787
79788 2003-08-28  Bruno Haible  <bruno@clisp.org>
79789
79790         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79791         warning on QNX, which defines O_BINARY to 000000.
79792
79793 2003-08-27  Jim Meyering  <jim@meyering.net>
79794
79795         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79796         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79797         would fail after 32.  Reported by Danny Levinson.  Details here:
79798         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79799
79800 2003-08-24  Bruno Haible  <bruno@clisp.org>
79801
79802         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79803         MSVC7 <stdio.h> is included later.
79804
79805 2003-08-22  Simon Josefsson  <jas@extundo.com>
79806
79807         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79808
79809 2003-08-20  Karl Berry  <karl@gnu.org>
79810
79811         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79812
79813 2003-08-20  Bruno Haible  <bruno@clisp.org>
79814
79815         * modules/progname: New file.
79816         * MODULES.html.sh (func_all_modules): Add progname.
79817
79818 2003-08-20  Bruno Haible  <bruno@clisp.org>
79819
79820         * lib/progname.h: New file, from GNU gettext.
79821         * lib/progname.c: New file, from GNU gettext.
79822         * lib/progreloc.c: New file, from GNU gettext.
79823
79824 2003-08-19  Jim Meyering  <jim@meyering.net>
79825
79826         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79827         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79828
79829 2003-08-19  Bruno Haible  <bruno@clisp.org>
79830
79831         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79832         more.
79833
79834 2003-08-19  Bruno Haible  <bruno@clisp.org>
79835
79836         * lib/xstrdup.c: Assume <string.h> exists.
79837
79838 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79839
79840         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79841         in makefile rules.
79842
79843 2003-08-18  Jim Meyering  <jim@meyering.net>
79844
79845         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79846         * m4/lib-ld.m4: Likewise.
79847
79848 2003-08-18  Jim Meyering  <jim@meyering.net>
79849
79850         * lib/setenv.h: Indent nested cpp directive.
79851         * lib/vasnprintf.c: Remove trailing blanks.
79852
79853 2003-08-17  Simon Josefsson  <jas@extundo.com>
79854
79855         * modules/xstrndup: New file.
79856         * MODULES.html.sh (func_all_modules): Add xstrndup.
79857
79858 2003-08-17  Simon Josefsson  <jas@extundo.com>
79859
79860         * modules/argp: Fix autoconf macro name. Add more dependencies.
79861
79862 2003-08-17  Simon Josefsson  <jas@extundo.com>
79863
79864         * m4/xstrndup.m4: New file.
79865
79866 2003-08-17  Simon Josefsson  <jas@extundo.com>
79867
79868         * m4/argp.m4: New file.
79869
79870 2003-08-17  Simon Josefsson  <jas@extundo.com>
79871             Bruno Haible  <bruno@clisp.org>
79872
79873         * lib/xstrndup.h: New file.
79874         * lib/xstrndup.c: New file.
79875
79876 2003-08-17  Bruno Haible  <bruno@clisp.org>
79877
79878         * modules/strndup (Files, Include): Add lib/strndup.h.
79879
79880 2003-08-17  Bruno Haible  <bruno@clisp.org>
79881
79882         * modules/euidaccess (Files): Add lib/euidaccess.h.
79883
79884 2003-08-17  Bruno Haible  <bruno@clisp.org>
79885
79886         * lib/strndup.h: New file.
79887
79888 2003-08-17  Bruno Haible  <bruno@clisp.org>
79889
79890         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79891         like AC_GNU_SOURCE.
79892         * modules/extensions (configure.ac): Comment out the invocation of
79893         gl_USE_SYSTEM_EXTENSIONS.
79894
79895 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79896
79897         Merges from coreutils, etc.
79898         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79899         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79900         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79901         fixing a typo.
79902         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79903         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79904
79905 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79906
79907         Document merge from coreutils.
79908         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79909         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79910         * modules/utime: Add m4/utimes-null.m4.
79911
79912 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79913
79914         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79915         space, undoing this 2003-08-12 change:
79916         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79917
79918 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79919
79920         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79921         strtoul.c from libc, undoing this 2003-08-12 change:
79922         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79923
79924 2003-08-16  Jim Meyering  <jim@meyering.net>
79925
79926         Merges from coreutils.
79927         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79928         prefix.  Adjust cache variables similarly.  Create 500 rather than
79929         just 300 files, to exercise bug on Darwin6.5, too.
79930         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79931         $missing_dir.
79932         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79933         AM_SYS_POSIX_TERMIOS.
79934         Reported by mkc@mathdogs.com.
79935         Also change use of $am_cv_sys_posix_termios
79936         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79937         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79938         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79939         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79940         in /proc/mounts until it finds one with matching device number.  This
79941         is unnecessary when the FILE argument *is* a mount point.  No stat call
79942         is necessary in that case.  So, disable the statvfs-testing code on
79943         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79944         as RedHat bug# 84846.
79945         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79946         to 1MB, so as not to render systems with no stack size limit (e.g.,
79947         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79948         Include <unistd.h>.  On some systems,
79949         it is required for the definition of _SC_PAGESIZE.
79950
79951 2003-08-16  Jim Meyering  <jim@meyering.net>
79952
79953         Merge from coreutils.
79954         * lib/xstrtoimax.c: #else #if -> #elif.
79955         * lib/xstrtoumax.c: Likewise.
79956
79957 2003-08-16  Jim Meyering  <jim@meyering.net>
79958
79959         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79960         * m4/utimes.m4: Removed.
79961         * m4/utimes-null.m4: Renamed from utimes.m4.
79962
79963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79964         to 1MB, so as not to render systems with no stack size limit (e.g.,
79965         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79966         Include <unistd.h>.  On some systems,
79967         it is required for the definition of _SC_PAGESIZE.
79968
79969 2003-08-16  Jim Meyering  <jim@meyering.net>
79970         and Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         Merges from coreutils, etc.
79973
79974         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79975         using the latest version from cvs.  This avoids problems with #line
79976         directives using a vendor (Sun) compiler.
79977         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79978         Don't set GETGROUPS_LIB here; now it's
79979         done via getgroups.m4's wrapper function.
79980         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79981         rather than just in sh-util/configure.in, so that the
79982         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79983         same.
79984         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79985         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79986         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79987         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79988         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79989         Remove code that is now done by the newly-required macros.
79990         Append $(EXEEXT) to DF_PROG.
79991         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79992         Do not invoke or require the following here,
79993         since prereq.m4 or some gnulib .m4 now does this for us:
79994         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79995         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79996         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79997         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79998         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79999         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
80000         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
80001         AC_FUNC_OBSTACK.
80002         Do not replace the following functions, as this is now the job
80003         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
80004         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
80005         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
80006         atexit getpass, strdup, getpagesize.
80007         Replace 'raise'.
80008         Do not check for the following functions, as this is now the job
80009         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
80010         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
80011         setregid.
80012         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
80013         Check for sys/sysctl.h.
80014         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
80015         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
80016         of checking for ssize_t ourselves.
80017
80018         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
80019         Require every macro that gnulib/modules/* suggests for us.
80020         (jm_PREREQ_ADDEXT): New macro.
80021         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
80022         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
80023
80024         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
80025         (gl_PHYSMEM): Use it.
80026         Also check for `table' function.
80027         Check for new headers and functions.
80028         Add check for sys/sysmp.h.
80029         With suggestions from Kaveh Ghazi.
80030         Ignore headers that are present but cannot be compiled.  This
80031         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
80032         C 5.4.
80033
80034 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80035
80036         Document merge from coreutils.
80037         * modules/userspec: Depend on posixver.
80038         * modules/strftime: Depend on tzset.
80039
80040 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80041
80042         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
80043         rather than tab, after '#' in shell-script copyright notices.
80044         Suggested by Bruno Haible.
80045
80046 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80047
80048         * config/srclist-update: Use three spaces, rather than tab, after '#'
80049         in shell-script copyright notices.  Suggested by Bruno Haible.
80050         Remove unnecessary parenthesization in regular expression.
80051
80052 2003-08-15  Jim Meyering  <jim@meyering.net>
80053
80054         Merge from coreutils.
80055         * lib/xgethostname.c: Include <stdlib.h>.
80056         (xghostname): Don't exit for anything other than memory-related
80057         failure; just return NULL.
80058         * lib/userspec.c: Include "posixver.h".
80059         (parse_user_spec): Accept `.' as a separator only
80060         in pre-POSIX-200112 mode.
80061         * lib/strtoimax.c: Use #elif rather than #else #if.
80062         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
80063         Remove function, now that we can rely on a working tzset function.
80064         [!_LIBC]: Ensure that the required autoconf test has been run.
80065         [!defined _NL_CURRENT && HAVE_STRFTIME]:
80066         Use underlying_strftime for %r.
80067         * lib/sha.c: Merge in some clean-up and optimization changes from
80068         glibc.
80069         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
80070         Ensure that it is a multiple of 64.
80071         Rearrange loop exit tests so as to avoid performing an
80072         additional fread after encountering an error or EOF.
80073         * lib/realloc.c: Update copyright date.
80074
80075 2003-08-15  Jim Meyering  <jim@meyering.net>
80076         and Paul Eggert  <eggert@twinsun.com>
80077
80078         Merge from coreutils.
80079         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
80080         member but strut utmpx does not.  Needed for AIX 4.3.3.
80081         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
80082
80083 2003-08-15  Jim Meyering  <jim@meyering.net>
80084         and Paul Eggert  <eggert@cs.ucla.edu>
80085
80086         Merges from coreutils, etc.
80087         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
80088         Require gl_FUNC_TZSET_CLOBBER.
80089         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
80090         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
80091         members.
80092
80093 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80094
80095         Help the merge from coreutils.
80096         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
80097         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
80098         * m4/tzset.m4: Use it too.
80099
80100 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80101
80102         * modules/tzset: New file.
80103
80104 2003-08-14  Jim Meyering  <jim@meyering.net>
80105
80106         Merges from coreutils.
80107         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
80108         variable names, rather than @FNMATCH_H@.
80109         * modules/alloca: Likewise for $(ALLOCA_H).
80110
80111         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
80112         the three copies of the literal target, `fnmatch.h'.
80113         * modules/alloca (alloca.h): Likewise.
80114
80115 2003-08-14  Jim Meyering  <jim@meyering.net>
80116
80117         Merge from coreutils.
80118         * m4/tzset.m4: New file.
80119         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
80120         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
80121         otherwise, AIX 5.1 systems would end up using the latter.
80122         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
80123         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
80124         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
80125         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
80126
80127 2003-08-14  Jim Meyering  <jim@meyering.net>
80128
80129         Merge from coreutils.
80130         * lib/obstack.h: Whitespace changes.
80131         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
80132         and xcalloc return values.
80133         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
80134         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
80135         hang on OSF/1 5.1 for DIR on both local and remote file systems.
80136         Reported by (and fix confirmed by) Nelson H. F. Beebe.
80137         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80138         error from mntctl.
80139         Use mntctl's return value to drive the entry-processing loop, since
80140         we can't rely on the value of the vmt_length member in the last
80141         entry.  On some systems doing so could result in exhausting
80142         virtual memory.  Based in part on a patch from Mike Jetzer.
80143
80144 2003-08-14  Jim Meyering  <jim@meyering.net>
80145         and Paul Eggert  <eggert@twinsun.com>
80146
80147         Merges from coreutils, plus other fixes.
80148         * lib/physmem.c: Merge in portability changes from gcc/libiberty
80149         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
80150         for credits and details.  Thanks to Kaveh Ghazi for helping
80151         to keep these files in sync.
80152         (ARRAY_SIZE): Define it.
80153         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
80154         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
80155         (memcasecmp): Don't assume size_t fits in unsigned int.
80156         Remove casts and duplicate code.
80157         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
80158         (memcpy): Remove definition.
80159         Merge in some clean-up and optimization changes from glibc.
80160         [BLOCKSIZE]: Move definition to top of file.
80161         Ensure that it is a multiple of 64.
80162         Rearrange loop exit tests so as to avoid performing an
80163         additional fread after encountering an error or EOF.
80164         * lib/md5.h (md5_uintptr): Define.
80165         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
80166         return to the initial working directory.  Preserve errno
80167         for caller.
80168         * lib/idcache.c: Include "xalloc.h".
80169         (xmalloc, xrealloc): Remove decls.
80170         (getuser): Remove casts no longer required in C89.
80171         * lib/human.c: Include stdio.h, for sprintf.
80172         * lib/group-member.c: Include "xalloc.h".
80173         (xmalloc, xrealloc): Remove decls.
80174         (get_group_info): Remove casts no longer required in C89.
80175         * lib/getusershell.c (readname): Remove casts no longer required in
80176         C89.
80177         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
80178         * lib/getline.c: Whitespace fix, from coreutils.
80179
80180 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80181
80182         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
80183         Check for isascii.
80184
80185         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80186         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80187         Undo previous (whitespace-only) change.
80188
80189 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80190
80191         * lib/exclude.c: Include <ctype.h>
80192         (IN_CTYPE_DOMAIN): New macro.
80193         (is_space): New fn.
80194         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
80195         and empty lines.
80196
80197         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80198         Undo previous (whitespace-only) change.
80199
80200 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80201
80202         * config/srclist-update: Change update back to the old behavior,
80203         leaving whitespace alone.  Use one 'sed' command rather than a
80204         pipeline.
80205         (fixlicense): Now a variable, not a function.
80206         (remove_trailing_blanks): Remove.
80207         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
80208         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80209         Undo previous (whitespace-only) change.
80210
80211 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80212
80213         Merge from coreutils.
80214         * modules/euidaccess: Add lib_SOURCES, include for new
80215         file euidaccess.h
80216
80217 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80218
80219         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80220         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80221         Normalize leading white space and remove trailing white space.
80222
80223         Merge from coreutils
80224         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
80225
80226         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
80227         0.12.1.  These files are now being upgraded automatically by
80228         ../config/srclist-update.
80229
80230 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80231
80232         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80233         Normalize leading white space and remove trailing white space.
80234         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
80235         notice, as per ../config/srclist-update.
80236
80237         Merge from coreutils.
80238         * lib/euidaccess.h: New file.
80239         * lib/euidaccess.c: Include it.
80240         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
80241         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
80242         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
80243
80244 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80245
80246         * config/srclist-update: Add copyright notice.
80247         (remove_id_lines, remove_trailing_blanks): New constants.
80248         (fixfile): Use them to normalize spacing a bit in copied files.
80249         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80250         Normalize leading white space and remove trailing white space.
80251
80252         * config/texinfo.tex: Sync with texinfo.
80253
80254         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
80255         strtoul.c from libc, to merge coreutils whitespace changes.
80256
80257         * config/srclist.txt: Get the following m4 files from gettext:
80258         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80259         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
80260         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
80261         wint_t.m4.
80262
80263 2003-08-12  Karl Berry  <karl@gnu.org>
80264
80265         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
80266         been made.
80267
80268 2003-08-11  Paul Eggert  <eggert@twinsun.com>
80269
80270         * modules/gnu-source, m4/gnu-source.m4:
80271         Remove; we're assuming Autoconf 2.54 or later now.
80272         Suggested by Bruno Haible.
80273         * MODULES.html.sh (func_all_modules): Remove gnu-source.
80274
80275 2003-08-11  Bruno Haible  <bruno@clisp.org>
80276
80277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
80278
80279 2003-08-11  Bruno Haible  <bruno@clisp.org>
80280
80281         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
80282         (vasnprintf): Use it instead of wcslen.
80283
80284 2003-08-11  Bruno Haible  <bruno@clisp.org>
80285
80286         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
80287         value to ensure that _Bool promotes to int. Use #define for _Bool when
80288         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
80289
80290 2003-08-10  Karl Berry  <karl@gnu.org>
80291
80292         * lib/regex.h: update from libc (whitespace fix).
80293
80294 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80295
80296         Merge some files from coreutils.  These changes were
80297         originally made by Jim Meyering.
80298         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
80299         many older Unixes require this.
80300         * lib/alloca.c (alloca): Remove cast to argument of free;
80301         no longer needed in C89.
80302         * lib/alloca_.h, regex.h: Fix white space to match
80303         what GNU indent does.
80304
80305 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80306
80307         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
80308         apparently Emacs's Unicode mode got confused before my 2003-08-05
80309         checkin.
80310
80311 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80312
80313         * m4/extensions.m4: New file.
80314         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
80315         Require gl_USE_SYSTEM_EXTENSIONS.
80316         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
80317         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
80318
80319 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80320
80321         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
80322         * modules/extensions, modules/gnu-source: New files.
80323         * modules/timespec, modules/unlocked-io: Depend on extensions.
80324
80325 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80326
80327         * modules/restrict: New file.
80328         * MODULES.html.sh (func_all_modules): Add restrict.
80329         * modules/regex: Depend on restrict.
80330
80331 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80332
80333         * m4/restrict.m4: New file.
80334         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
80335
80336 2003-08-07  Bruno Haible  <bruno@clisp.org>
80337
80338         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
80339         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
80340
80341 2003-08-07  Bruno Haible  <bruno@clisp.org>
80342
80343         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
80344         makes the module 'getndelim2' compatible with the module 'getline'.
80345
80346 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80347
80348         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
80349         byte with "\201" to avoid glitches when editing that source file
80350         with multi-gnome-terminal.
80351
80352 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80353
80354         * lib/bumpalloc.h: Remove.
80355
80356 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80357
80358         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
80359         * modules/bumpalloc: Remove.
80360
80361 2003-08-04  Paul Eggert  <eggert@twinsun.com>
80362
80363         * lib/getloadavg.c: Change copyright notice and spacing to conform to
80364         GNU coding style.
80365
80366         Merge from coreutils.
80367         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
80368         1. From glibc.
80369         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
80370         from Karl Berry, implemented by Jim Meyering.
80371         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
80372         from Dmitry V. Levin.
80373         Remove anachronistic cast of xrealloc.
80374         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
80375         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
80376         type. Otherwise, it wouldn't compile with at least /bin/cc on
80377         ymp-cray-unicos9.0.2.X.
80378         Combine two mostly-identical uses of alloca into one.
80379         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
80380
80381 2003-08-04  Dave Love  <d.love@dl.ac.uk>
80382
80383         [From Emacs.]
80384
80385         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
80386         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
80387         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
80388         obsolete NLIST_NAME_UNION.
80389         [__GNU__]: Undef BSD and FSCALE.
80390         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
80391
80392 2003-08-03  Paul Eggert  <eggert@twinsun.com>
80393
80394         * lib/stdbool_.h (_Bool): Make it signed char, instead of
80395         an enum type, so that it's guaranteed to promote to int.  See:
80396         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
80397
80398 2003-08-03  Karl Berry  <karl@gnu.org>
80399
80400         * config/depcomp: update from automake.
80401
80402 2003-07-31  Paul Eggert  <eggert@twinsun.com>
80403
80404         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
80405         (strerror): Don't assume that a printable int fits in 14 bytes.
80406
80407 2003-07-31  Bruno Haible  <bruno@clisp.org>
80408
80409         * modules/getpass-gnu: New file.
80410         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
80411
80412 2003-07-31  Bruno Haible  <bruno@clisp.org>
80413
80414         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
80415
80416 2003-07-24  Karl Berry  <karl@gnu.org>
80417
80418         * config/missing: update from automake.
80419
80420 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
80421             Bruno Haible  <bruno@clisp.org>
80422
80423         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
80424         * lib/getline.c (getline, getdelim): Likewise.
80425         Remove _GNU_SOURCE define; now it's defined in config.h through
80426         m4/getline.m4.
80427
80428 2003-07-23  Karl Berry  <karl@gnu.org>
80429
80430         * config/config.sub: update from prep.
80431
80432 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80433
80434         * modules/xalloc (Depends-on): Add exitfail.
80435         * modules/xmemcoll: Likewise.
80436
80437 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80438
80439         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
80440         over-parenthesization in macros.
80441
80442         Sync with coreutils.
80443
80444         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
80445         required by C99.
80446
80447         Use `exit_failure' for xalloc and xmemcoll instead of their own
80448         private exit-failure variables.
80449         * lib/xalloc.h (xalloc_exit_failure): Remove.
80450         * lib/xmalloc.c: Likewise.  Include exitfail.h.
80451         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
80452         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
80453         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
80454         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
80455
80456 2003-07-20  Jim Meyering  <jim@meyering.net>
80457
80458         * modules/closeout (Depends-on): Add exitfail.
80459         Suggestion from Bruno Haible.
80460
80461 2003-07-19  Karl Berry  <karl@gnu.org>
80462
80463         * config/config.sub: update from prep.
80464
80465 2003-07-18  Paul Eggert  <eggert@twinsun.com>
80466
80467         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
80468         Remove.
80469         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
80470         to test that it can stand by itself.  Include "exitfail.h".
80471         Clients should set exit_failure instead.
80472         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
80473
80474 2003-07-18  Bruno Haible  <bruno@clisp.org>
80475
80476         * modules/getndelim2: New file.
80477         * modules/getline: Share files with module getndelim2.
80478         * modules/getnline: Depend on getndelim2 instead of sharing files with
80479         it. Add getnline.c to lib_SOURCES.
80480         * MODULES.html.sh (func_all_modules): Add getndelim2.
80481
80482 2003-07-18  Bruno Haible  <bruno@clisp.org>
80483
80484         * m4/getndelim2.m4: New file.
80485         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
80486         invoke gl_PREREQ_GETNDELIM2.
80487         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
80488         gl_PREREQ_GETNDELIM2.
80489         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
80490         gl_GETNDELIM2.
80491
80492 2003-07-18  Bruno Haible  <bruno@clisp.org>
80493
80494         * lib/getndelim2.h: New file.
80495         * lib/getndelim2.c: Make into a module of its own. Include config.h,
80496         getndelim2.h.
80497         (getndelim2): Make non-static. Change return type to ssize_t.
80498         * lib/getline.h: Change argument names.
80499         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
80500         * lib/getnline.c: Include getndelim2.h.
80501
80502 2003-07-18  Andreas Schwab  <schwab@suse.de>
80503
80504         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
80505
80506 2003-07-17  Karl Berry  <karl@gnu.org>
80507
80508         * config/config.sub: update from prep.
80509
80510 2003-07-17  Bruno Haible  <bruno@clisp.org>
80511
80512         * modules/getnline: New file.
80513         * modules/getline: Add lib/getndelim2.c to source file list.
80514         * MODULES.html.sh (func_all_modules): Add getnline.
80515
80516 2003-07-17  Bruno Haible  <bruno@clisp.org>
80517
80518         * m4/getnline.m4: New file.
80519
80520 2003-07-17  Bruno Haible  <bruno@clisp.org>
80521
80522         * m4/Makefile.am.in: Remove file.
80523         * m4/Makefile.am: Remove file.
80524         * m4/Makefile.in: Remove file.
80525
80526 2003-07-17  Bruno Haible  <bruno@clisp.org>
80527
80528         * lib/getnline.h: New file.
80529         * lib/getnline.c: New file.
80530         * lib/getndelim2.c: New file, extracted from getline.c.
80531         (getndelim2): Renamed from getdelim2, with added nmax argument.
80532         * lib/getline.c: Include getndelim2.c.
80533         (getdelim2): Moved out to getndelim2.c.
80534         (getline, getdelim): Update.
80535
80536 2003-07-17  Bruno Haible  <bruno@clisp.org>
80537
80538         * lib/Makefile.am: Remove file.
80539         * lib/Makefile.in: Remove file.
80540
80541 2003-07-17  Bruno Haible  <bruno@clisp.org>
80542
80543         * configure.in: Remove file.
80544         * Makefile.in: Remove file.
80545
80546 2003-07-17  Bruno Haible  <bruno@clisp.org>
80547
80548         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80549
80550 2003-07-16  Karl Berry  <karl@gnu.org>
80551
80552         * config/srclist-update: was running fixlicense twice, which caused
80553                 texinfo.tex to be nullified for some reason.  Simplify,
80554                 $gplsrc is no longer needed as far as I can see?
80555
80556 2003-07-16  Jim Meyering  <jim@meyering.net>
80557
80558         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80559
80560 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80561
80562         * config/srclist.txt: Get the following files from gettext-runtime/intl
80563         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80564         ref-del.sin.  From Bruno Haible.
80565         * config/srclist-update (fixfile): Change grep pattern again, since the
80566         previous fix didn't work (there was another trailing $).  Use
80567         '[$]' to escape the $s.
80568
80569 2003-07-15  Karl Berry  <karl@gnu.org>
80570
80571         * lib/vasnprintf.c: update from gettext.
80572
80573 2003-07-15  Karl Berry  <karl@gnu.org>
80574
80575         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80576         gets expanded when surrounded by '$'.
80577
80578 2003-07-15  Jim Meyering  <jim@meyering.net>
80579
80580         * modules/save-cwd: Don't depend on error.  From Derek Price.
80581
80582 2003-07-15  Jim Meyering  <jim@meyering.net>
80583
80584         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80585
80586 2003-07-14  Simon Josefsson  <jas@extundo.com>
80587
80588         * modules/mempcpy: New file.
80589         * MODULES.html.sh (func_all_modules): Add mempcpy.
80590
80591 2003-07-14  Simon Josefsson  <jas@extundo.com>
80592
80593         * m4/mempcpy.m4: New file.
80594
80595 2003-07-14  Simon Josefsson  <jas@extundo.com>
80596
80597         * lib/mempcpy.h: New file.
80598         * lib/mempcpy.c: New file.
80599
80600 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80601
80602         * modules/getdate, modules/posixtm: Depend on mktime.
80603
80604 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80605
80606         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80607         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80608         unicodeio.c, unicodeio.h, unlocked-io.h:
80609         Switch from LGPL to GPL.
80610
80611 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80612
80613         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80614         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80615         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80616         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80617         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80618         updated automatically by ../config/srclist-update.  This changes
80619         their license from LPGL to GPL.
80620
80621 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80622
80623         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80624         assumed to refer to the root of the most recent stable gettext version.
80625         * config/srclistvars.sh: Add defaults for eggert.
80626         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80627         Match "This program" as well as "The program".  This is needed
80628         for gettext.
80629
80630 2003-07-14  Jim Meyering  <jim@meyering.net>
80631
80632         Don't emit diagnostics.  Let callers do that.
80633         * lib/save-cwd.c: Don't include "error.h".
80634         (save_cwd): Don't call error.  Ensure that errno is valid
80635         when returning nonzero.
80636
80637         * lib/save-cwd.h (restore_cwd): Update prototype.
80638         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80639         Simplify.  Don't call error upon failure.  Let callers do that.
80640         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80641         when auditing is enabled.  But don't bother updating the #if.
80642
80643 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80644
80645         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80646         it breaks C++ compilation.
80647         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80648
80649 2003-07-10  Simon Josefsson  <jas@extundo.com>
80650
80651         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80652
80653 2003-07-10  Jim Meyering  <jim@meyering.net>
80654
80655         * m4/clock_time.m4: Remove trailing blank.
80656         * m4/intmax_t.m4: Likewise.
80657
80658 2003-07-10  Jim Meyering  <jim@meyering.net>
80659
80660         * lib/vasnprintf.c: Remove trailing blanks.
80661         Make cpp indentation consistent.
80662
80663 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80664
80665         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80666         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80667         Switch from LGPL to GPL.
80668
80669 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80670
80671         * config/srclist.txt: Sort sublists.  Add
80672         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80673         that differ from gnulib for one reason or another; we'd like this list
80674         to be smaller but for now let's document what we have.
80675
80676 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80677
80678         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80679         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80680         and sweeter "eval x=$x".
80681         * config/srclist.txt: Get lib/argp* from glibc.
80682
80683 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80684
80685         * lib/mktime.c: Fix some boundary cases and remove need for floating
80686         point.
80687
80688         Issue a compile-time diagnostic if time_t is floating point, or if
80689         two's complement arithmetic is not in effect, or if arithmetic
80690         right shift does not propagate the sign.  These assumptions were
80691         all in the original code but they weren't checked.
80692
80693         (TIME_T_MIDPOINT, verify): New macros.
80694         (__isleap): Remove; it has integer overflow problems.
80695         (leapyear): New function, without those problems.
80696         (ydhms_tm_diff): Remove; splitting into two parts.
80697         (ydhms_diff): New function, containing the arithmetic part of
80698         the old ydhms_tm_diff function.  Issue a compile-time
80699         diagnostic if we are not using C99 integer division.
80700         Avoid casts when possible.
80701         (guess_time_tm): New function, containing the checking part of
80702         the old ydhms_tm_diff function.  Return the new value, rather than
80703         the difference between it and the old.  Accept a new argument T
80704         so that *T specifies the old value.  Check for overflow in the result.
80705
80706         (__mktime_internal): Use a time_t offset, not a long int offset.
80707         This undoes the 2003-06-04 change, which is no longer needed now
80708         that we have better overflow checking.
80709         (localtime_offset): Likewise.
80710
80711         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80712         and long are 64-bit but int is only 32-bit.
80713         (ydhms_diff): Use long int to store year1 and yday1.
80714         Issue a compile-time diagnostic if long int is not wide enough.
80715
80716         (__mktime_internal): Use long int to store adjusted year and yday.
80717         Use plain C rather than preprocessor commands, if that doesn't
80718         affect efficiency.
80719         Check for overflow (and try to repair) after each probe
80720         rather than checking only at the very end.  This avoids some bugs
80721         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80722         does not equal GMT offset at maximum time).
80723         Use integer to check for overflow rather than floating point; this
80724         is more portable to non-IEEE hosts, and is a tad faster.
80725         When we detect that we are oscillating between two values,
80726         don't check whether tm_isdst has the requested value, since
80727         we already know the answer.  When tm_isdst has the wrong value,
80728         use a different heuristic to find the right one, based on the
80729         extreme values actually observed in practice in tz2003a,
80730         rather than the (overly optimistic) "previous 3 calendar quarters".
80731
80732         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80733         "T const" to accommodate glibc style.
80734         (check_result): Use less-confusing report format.  "long" -> "long int.
80735         (main): Likewise.
80736         Don't loop if the iteration overflows time_t.
80737         Allow a negative step in the iteration.
80738
80739 2003-07-06  Karl Berry  <karl@gnu.org>
80740
80741         * config/depcomp: update from automake.
80742         * config/config.sub: update from prep.
80743
80744 2003-07-03  Karl Berry  <karl@gnu.org>
80745
80746         * config/config.guess: update from prep.
80747
80748 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80749
80750         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80751         xreadlink.c now includes it unconditionally.
80752
80753 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80754
80755         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80756         having it depend on HAVE_SYS_TYPES_H.
80757
80758 2003-07-01  Bruno Haible  <bruno@clisp.org>
80759
80760         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80761         <sys/types.h> should be sufficient.
80762         Reported by Paul Eggert.
80763
80764 2003-06-26  Karl Berry  <karl@gnu.org>
80765
80766         * config/depcomp: update from automake.
80767
80768 2003-06-26  Bruno Haible  <bruno@clisp.org>
80769
80770         * modules/human: Depend on module stdbool.
80771
80772 2003-06-25  Bruno Haible  <bruno@clisp.org>
80773
80774         * modules/readlink: New file.
80775         * modules/xreadlink: Depend on it.
80776         * MODULES.html.sh (func_all_modules): Add readlink.
80777
80778 2003-06-25  Bruno Haible  <bruno@clisp.org>
80779
80780         * m4/readlink.m4: New file.
80781
80782 2003-06-25  Bruno Haible  <bruno@clisp.org>
80783
80784         * lib/readlink.c: New file.
80785
80786 2003-06-22  Karl Berry  <karl@gnu.org>
80787
80788         * config/srclist.txt: update mkinstalldirs from automake.
80789         * config/mkinstalldirs: update.
80790
80791 2003-06-22  Bruno Haible  <bruno@clisp.org>
80792
80793         Portability to mingw32.
80794         * m4/ssize_t.m4: New file, from GNU gettext.
80795         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80796         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80797
80798 2003-06-22  Bruno Haible  <bruno@clisp.org>
80799
80800         * modules/safe-read: Add m4/ssize_t.m4.
80801         * modules/xreadlink: Add m4/ssize_t.m4.
80802
80803 2003-06-20  Bruno Haible  <bruno@clisp.org>
80804
80805         Assume C89, so PARAMS isn't needed.
80806         * lib/unicodeio.h (PARAMS): Remove.
80807         * lib/unicodeio.c: Don't use PARAMS.
80808
80809 2003-06-18  Karl Berry  <karl@gnu.org>
80810
80811         * config/config.{guess,sub}: update from prep.
80812
80813 2003-06-18  Jim Meyering  <jim@meyering.net>
80814
80815         Merge changes from coreutils.
80816         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80817         Remove explicit declarations of xmalloc and realloc.
80818         Include xalloc.h.
80819         (read_utmp): Remove anachronistic cast of xmalloc.
80820
80821 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80822
80823         Assume C89, so PARAMS isn't needed.
80824         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80825         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80826         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80827         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80828         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80829         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80830         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80831         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80832         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80833         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80834         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80835         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80836         no longer needed. Anyway, config.h should always be included before any
80837         other file.
80838
80839 2003-06-11  Simon Josefsson  <jas@extundo.com>
80840
80841         * modules/sysexits: New file.
80842         * MODULES.html.sh (func_all_modules): Add sysexits.
80843
80844 2003-06-11  Simon Josefsson  <jas@extundo.com>
80845
80846         * lib/sysexit_.h: New file.
80847
80848 2003-06-11  Derek Price  <derek@ximbiot.com>
80849
80850         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80851         necessary.
80852
80853 2003-06-11  Bruno Haible  <bruno@clisp.org>
80854
80855         * m4/sysexits.m4: New file.
80856
80857 2003-06-10  Simon Josefsson  <jas@extundo.com>
80858
80859         * lib/argp.h: New file, from glibc.
80860         * lib/argp-ba.c: New file, from glibc.
80861         * lib/argp-eexst.c: New file, from glibc.
80862         * lib/argp-fmtstream.c: New file, from glibc.
80863         * lib/argp-fmtstream.h: New file, from glibc.
80864         * lib/argp-fs-xinl.c: New file, from glibc.
80865         * lib/argp-help.c: New file, from glibc.
80866         * lib/argp-namefrob.h: New file, from glibc.
80867         * lib/argp-parse.c: New file, from glibc.
80868         * lib/argp-pv.c: New file, from glibc.
80869         * lib/argp-pvh.c: New file, from glibc.
80870         * lib/argp-xinl.c: New file, from glibc.
80871
80872 2003-06-10  Simon Josefsson  <jas@extundo.com>
80873
80874         * modules/strchrnul: New file.
80875
80876 2003-06-10  Simon Josefsson  <jas@extundo.com>
80877
80878         * modules/argp: New file.
80879
80880 2003-06-10  Simon Josefsson  <jas@extundo.com>
80881
80882         * m4/strchrnul.m4: New file.
80883
80884 2003-06-10  Simon Josefsson  <jas@extundo.com>
80885
80886         * lib/strchrnul.h: New file.
80887         * lib/strchrnul.c: New file.
80888
80889 2003-06-10  Bruno Haible  <bruno@clisp.org>
80890
80891         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80892
80893 2003-06-07  Karl Berry  <karl@gnu.org>
80894
80895         * config/config.{guess,sub}: update from prep.
80896
80897 2003-06-07  Jim Meyering  <jim@meyering.net>
80898
80899         * modules/strtod: Use $(...) notation, not @...@ for
80900         AC_REPLACE'd variables.
80901         * modules/localcharset: Likewise.
80902
80903 2003-06-07  Jim Meyering  <jim@meyering.net>
80904
80905         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80906         in place of my name in the copyright comment.
80907         Remove definition and uses of __P.
80908
80909         From coreutils.
80910         * lib/stat.c: Don't declare xmalloc explicitly.
80911         Instead, include "xalloc.h".
80912         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80913         xrealloc, and xcalloc return values.
80914         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80915         Improve comment.
80916         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80917
80918 2003-06-07  Bruno Haible  <bruno@clisp.org>
80919
80920         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80921         avoid AC_CONFIG_LINKS.
80922         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80923         fnmatch.h, to avoid AC_CONFIG_LINKS.
80924         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80925
80926 2003-06-07  Bruno Haible  <bruno@clisp.org>
80927
80928         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80929         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80930         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80931         directory.
80932         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80933         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80934         directory.
80935
80936 2003-06-06  Jim Meyering  <jim@meyering.net>
80937
80938         Merge from coreutils.
80939         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80940         Consolidate declarations and initializations of *_base* locals.
80941
80942         Merge from coreutils.
80943         This avoids a core dump on systems without GNU putenv,
80944         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80945         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80946         (unsetenv): New static function, from GNU libc.
80947         (rpl_putenv): Use it.
80948
80949         * lib/modechange.c: Remove trailing blanks.
80950
80951         Merge from coreutils.
80952         * lib/fsusage.c: Remove declaration of statfs.
80953         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80954
80955         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80956
80957 2003-06-06  Jim Meyering  <jim@meyering.net>
80958
80959         * lib/stdbool_.h: Renamed from stdbool.h.in.
80960
80961 2003-06-06  Jim Meyering  <jim@meyering.net>
80962             Bruno Haible  <bruno@clisp.org>
80963
80964         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80965         Adjust Makefile.am snippet not to redirect directly to target.
80966         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80967
80968 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80969
80970         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80971         mismatch, look in future quarters as well as past.  This fixes a
80972         bug when processing fall-backwards gaps immediately after a long
80973         period of daylight-saving time.
80974
80975         * lib/mktime.c: Assume freestanding C89 or better.
80976         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80977         (__P): Remove; not used.
80978         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80979         (mktime, not_equal_tm, print_tm, check_result,
80980         main): Use prototypes.  Use const * where appropriate.
80981         (main): Fix typo in testing code that uncovered by above changes.
80982         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80983
80984 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80985
80986         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80987         locale.h, localeconv.  This merges changes from coreutils.
80988
80989         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80990         It can be removed after the next Autoconf is released.
80991         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80992         needed.
80993
80994 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80995
80996         * lib/mktime.c: Fix Debian bug 177940
80997         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80998         (localtime_offset): Now long int, not time_t, because we want it
80999         to be guaranteed to be signed.  All uses changed.
81000         (__mktime_internal): If overflow would occur when adding offset,
81001         don't add it.
81002
81003         Merge 'human' changes from coreutils.  Rewrite to support
81004         locale-specific notations like thousands separators.
81005         * lib/human.c: Simplify authorship notice.
81006         Include human.h immediately after config.h.
81007         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
81008         <limits.h>: Do not include, since human.h does.
81009         (SIZE_MAX, UINTMAX_MAX): New macros.
81010         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
81011         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
81012         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
81013         (power_letter): Renamed from suffixes.
81014         (generate_suffix_backwards): Remove.
81015         (adjust_value): Now takes int style (because of human.h changes)
81016         and long double value (for greater precision on some platforms).
81017         (group_number): New function.
81018         (human_readable): Use it.  Use integer options, not enum.
81019         Put the options before the sizes in the arg list.
81020         Support all the new options.
81021         The old human_readable function has been removed;
81022         use inttostr.h instead.
81023         (human_readable, default_block_size, humblock):
81024         Use uintmax_t, not int, for block sizes.
81025         (human_readable_inexact, block_size_types): Remove.
81026         (block_size_opts): New constant.
81027         (human_options): Renamed from human_block_size, with new signature
81028         that allows block sizes up to UINTMAX_MAX.  All callers changed.
81029         * lib/human.h: Add copyright and authorship notice.
81030         Include <limits.h> and <stdbool.h> unconditionally.
81031         (PARAMS): Remove.  All uses removed.
81032         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
81033         (enum human_inexact_style): Remove tag; now a nameless enum.
81034         (human_floor, human_ceiling, human_round_to_even): Now have
81035         values 2, 0, 1 rather than -1, 1, 0.
81036         (human_group_digits, human_suppress_point_zero, human_autoscale,
81037         human_base_1024, human_SI, human_B): New constants.
81038         (human_readable_inexact, human_block_size): Remove.
81039         (human_readable): Size args are now uintmax_t, not int.
81040         (human_options): New decl.
81041
81042         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
81043         unnecessary now that we assume C89 or better.  This change
81044         imported from coreutils.
81045
81046         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81047         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
81048         in the 2003-05-30 sync from glibc.
81049
81050         .h files should stand alone, but we shouldn't include <sys/types.h>
81051         if we can get away with just <stddef.h>.
81052
81053         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
81054         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
81055         rather than <sys/types.h>, as we merely need size_t.
81056         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
81057         to get size_t.
81058         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
81059         Include <stdio.h>, to get FILE.
81060         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
81061         memcasecmp.h has included <stddef.h> and all we need is size_t.
81062         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
81063         our interface, instead of including <sys/types.h>
81064
81065 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81066
81067         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
81068         now, as glibc mktime is buggy on non-glibc systems.
81069
81070 2003-06-03  Karl Berry  <karl@gnu.org>
81071
81072         * config/config.sub: update from prep.
81073
81074 2003-06-02  Paul Eggert  <eggert@twinsun.com>
81075
81076         [from coreutils]
81077         Fix some minor time-related bugs with POSIX time arguments.
81078         Some valid time stamps were being rejected (notably -1, and
81079         time stamps before 1900 on 64-bit hosts).  And some invalid
81080         time stamps were being accepted, e.g. September 31.
81081
81082         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
81083         that we can return (time_t) -1 successfully.
81084         * lib/posixtm.c: Likewise.
81085         [HAVE_STDBOOL_H]: Include <stdbool.h>.
81086         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
81087         (t): Remove static var.
81088         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
81089         of static var.  All uses changed.
81090         (year): Do not reject years before 1900; they can occur with
81091         64-bit time_t.
81092         (posix_time_parse): Do not check for out-of-range components;
81093         that is now the caller's responsibility, since our checks were
81094         only approximations.
81095         (posixtime): Use mktime to check for out-of-range components,
81096         since it knows them exactly.
81097         If mktime returns (time_t) -1, check whether an error actually occurred
81098         by invoking localtime on -1.
81099         (main) [TEST_POSIXTIME]: Check for input data errors, and report
81100         posixtime failures better.
81101         Improve the test data (in comments only).
81102
81103 2003-06-02  Karl Berry  <karl@gnu.org>
81104
81105         * config/mkinstalldirs (version): new variable.
81106         (--version): new option.
81107         (usage): improve message.
81108
81109 2003-05-30  Karl Berry  <karl@gnu.org>
81110
81111         * lib/mktime.c: update from libc.
81112
81113 2003-05-30  Bruno Haible  <bruno@clisp.org>
81114
81115         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
81116         * config/config.rpath: Upgrade to gettext-0.12.1.
81117
81118 2003-05-30  Bruno Haible  <bruno@clisp.org>
81119
81120         * m4/gettext.m4: Upgrade to gettext-0.12.1.
81121         * m4/nls.m4: New file, from gettext-0.12.1.
81122         * m4/po.m4: New file, from gettext-0.12.1.
81123         * m4/progtest.m4: Upgrade to gettext-0.12.1.
81124
81125 2003-05-30  Bruno Haible  <bruno@clisp.org>
81126
81127         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
81128         * lib/localcharset.h: Likewise.
81129         * lib/localcharset.c: Likewise.
81130
81131 2003-05-29  Karl Berry  <karl@gnu.org>
81132
81133         * config/config.rpath: update from gettext.
81134
81135 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81136
81137         Assume the headers required for C89 freestanding compilers.
81138         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
81139         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
81140         * m4/human.m4 (gl_HUMAN): Likewise.
81141         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
81142         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
81143         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81144         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
81145         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81146         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
81147
81148 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81149
81150         Assume the headers required for C89 freestanding compilers.
81151         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
81152         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
81153         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
81154         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
81155         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
81156         define, since <limits.h> is guaranteed to do that.
81157         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
81158         * lib/exclude.c: Include <stdbool.h> unconditionally.
81159         * lib/tempname.c: Include <stddef.h> unconditionally.
81160         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
81161         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
81162         <stddef.h> does that.
81163         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
81164         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
81165         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
81166         needed.
81167         * lib/xstrtol.c: Likewise.
81168         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
81169         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
81170
81171         * lib/addext.c (addext): Use assignment rather than cast, to avoid
81172         warnings on some platforms.
81173
81174         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81175         arbitrarily.
81176
81177 2003-05-26  Jim Meyering  <jim@meyering.net>
81178
81179         Merge in a change from coreutils:
81180         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
81181         that is guaranteed to be `no'.  Use `no_such_member' to indicate
81182         that condition, rather than `-1' which is slightly misleading.
81183         Change the name of the cache variable to have the gl_ prefix.
81184         Prompted by a patch from Richard Dawe for DJGPP.
81185
81186 2003-05-24  Karl Berry  <karl@gnu.org>
81187
81188         * config/config.guess: update from prep.
81189
81190 2003-05-22  Karl Berry  <karl@gnu.org>
81191
81192         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
81193
81194 2003-05-20  Karl Berry  <karl@gnu.org>
81195
81196         * config/config.guess: update from prep.
81197
81198 2003-05-18  Karl Berry  <karl@gnu.org>
81199
81200         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
81201         might actually be set by the user.
81202
81203         * config/depcomp, install-sh, mdate-sh: update from automake.
81204
81205 2003-05-17  Bruno Haible  <bruno@clisp.org>
81206
81207         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
81208         invalid expansion for AC_EGREP_CPP.
81209         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
81210         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
81211         Suggested by Akim Demaille <akim@epita.fr> in
81212         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
81213
81214 2003-05-12  Jim Meyering  <jim@meyering.net>
81215
81216         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
81217         the space-padded-by-default conversion specifiers, %e, %k, %l.
81218
81219 2003-05-12  Bruno Haible  <bruno@clisp.org>
81220
81221         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
81222         the string is longer than 4 KB.
81223
81224 2003-05-11  Karl Berry  <karl@gnu.org>
81225
81226         * config/config.{guess,sub}: update from prep.
81227
81228 2003-05-09  Bruno Haible  <bruno@clisp.org>
81229
81230         * modules/error: Add m4/strerror_r.m4 to file list.
81231
81232 2003-05-03  Bruno Haible  <bruno@clisp.org>
81233
81234         Upgrade to Unicode-4.0.
81235         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
81236         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
81237         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
81238         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
81239         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
81240         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
81241         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
81242         Change width of U+E0100..U+E01EF from 1 to 0.
81243
81244 2003-04-25  Jim Meyering  <jim@meyering.net>
81245
81246         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
81247         of type size_t, not int.
81248
81249 2003-04-25  Bruno Haible  <bruno@clisp.org>
81250
81251         * lib/copy-file.c: Include <stddef.h>, for size_t.
81252
81253 2003-04-21  Paul Eggert  <eggert@twinsun.com>
81254
81255         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
81256         code which expansion is under static control.  Patch imported from
81257         Akim Demaille's patch to Bison; see
81258         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81259
81260 2003-04-14  Bruno Haible  <bruno@clisp.org>
81261
81262         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
81263
81264 2003-04-11  Jim Meyering  <jim@meyering.net>
81265
81266         Merge changes from Coreutils.
81267
81268         2003-03-22  Jim Meyering  <jim@meyering.net>
81269
81270         * lib/strftime.c (widen): Cast alloca return value to proper type.
81271
81272         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
81273
81274         From GNU libc.
81275         * lib/strftime.c (my_strftime): Handle very large width
81276         specifications for numeric values correctly.  Improve checks for
81277         overflow.
81278
81279         2003-01-19  Jim Meyering  <jim@meyering.net>
81280
81281         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
81282         definitions.
81283         (nl_get_alt_digit) [! defined my_strftime]: Define.
81284         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
81285         _nl_get_alt_digit and _nl_get_walt_digit.
81286
81287         * lib/strftime.c (my_strftime): Merge in locale-related changes from
81288         libc. These changes have no effect outside of _LIBC.
81289
81290 2003-04-10  Bruno Haible  <bruno@clisp.org>
81291
81292         * modules/findprog: New file.
81293         * MODULES.html.sh (func_all_modules): Add it.
81294
81295 2003-04-10  Bruno Haible  <bruno@clisp.org>
81296
81297         * m4/findprog.m4: New file.
81298         * m4/eaccess.m4: New file.
81299
81300 2003-04-10  Bruno Haible  <bruno@clisp.org>
81301
81302         * lib/findprog.h: New file, from GNU gettext.
81303         * lib/findprog.c: New file, from GNU gettext.
81304
81305 2003-04-05  Jim Meyering  <jim@meyering.net>
81306
81307         Merge changes from Coreutils.
81308
81309         * lib/exclude.h (PARAMS): Remove definition and uses.
81310         * lib/exclude.c: Remove uses of `PARAMS'.
81311
81312         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
81313         Add test-cases for DOS filenames. Declare program_name.
81314         (main): Set up program_name.  Patch by Rich Dawe.
81315
81316         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81317         error from mntctl.
81318         Use mntctl's return value to drive the entry-processing loop, since
81319         we can't rely on the value of the vmt_length member in the last
81320         entry.  On some systems doing so could result in exhausting
81321         virtual memory.  Based in part on a patch from Mike Jetzer.
81322
81323 2003-04-04  Bruno Haible  <bruno@clisp.org>
81324
81325         * modules/linebreak: New file.
81326         * MODULES.html.sh (func_all_modules): Add it.
81327
81328 2003-04-04  Bruno Haible  <bruno@clisp.org>
81329
81330         * m4/linebreak.m4: New file.
81331
81332 2003-04-04  Bruno Haible  <bruno@clisp.org>
81333
81334         * lib/linebreak.h: New file, from GNU gettext.
81335         * lib/linebreak.c: New file, from GNU gettext with slight
81336         modifications.
81337         * lib/lbrkprop.h: New file, from GNU gettext.
81338
81339 2003-04-03  Bruno Haible  <bruno@clisp.org>
81340
81341         * modules/utf8-ucs4: New file.
81342         * modules/utf16-ucs4: New file.
81343         * modules/ucs4-utf8: New file.
81344         * modules/ucs4-utf16: New file.
81345         * MODULES.html.sh (func_all_modules): Add them.
81346
81347 2003-04-03  Bruno Haible  <bruno@clisp.org>
81348
81349         * m4/utf-ucs4.m4: New file.
81350         * m4/ucs4-utf.m4: New file.
81351
81352 2003-04-03  Bruno Haible  <bruno@clisp.org>
81353
81354         * lib/utf8-ucs4.h: New file, from GNU gettext.
81355         * lib/utf16-ucs4.h: New file, from GNU gettext.
81356         * lib/ucs4-utf8.h: New file, from GNU gettext.
81357         * lib/ucs4-utf16.h: New file, from GNU gettext.
81358
81359 2003-04-02  Bruno Haible  <bruno@clisp.org>
81360
81361         * modules/binary-io: New file.
81362         * MODULES.html.sh (func_all_modules): Add it.
81363
81364 2003-04-02  Bruno Haible  <bruno@clisp.org>
81365
81366         * lib/binary-io.h: New file, from GNU gettext.
81367
81368 2003-04-01  Bruno Haible  <bruno@clisp.org>
81369
81370         * modules/pathname: New file.
81371         * MODULES.html.sh (func_all_modules): Add it.
81372
81373 2003-04-01  Bruno Haible  <bruno@clisp.org>
81374
81375         * lib/pathname.h: New file, from GNU gettext.
81376         * lib/concatpath.c: New file, from GNU gettext.
81377
81378 2003-03-30  Bruno Haible  <bruno@clisp.org>
81379
81380         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
81381
81382 2003-03-30  Bruno Haible  <bruno@clisp.org>
81383
81384         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
81385         function chown() doesn't exist.
81386
81387 2003-03-28  Bruno Haible  <bruno@clisp.org>
81388
81389         * modules/copy-file: New file.
81390         * MODULES.html.sh (func_all_modules): Add it.
81391
81392 2003-03-28  Bruno Haible  <bruno@clisp.org>
81393
81394         * m4/copy-file.m4: New file.
81395
81396 2003-03-28  Bruno Haible  <bruno@clisp.org>
81397
81398         * lib/copy-file.h: New file, from GNU gettext.
81399         * lib/copy-file.c: New file, from GNU gettext.
81400
81401 2003-03-18  Jim Meyering  <jim@meyering.net>
81402
81403         * lib/quote.c (quote_n): Fix typo in comment.
81404
81405 2003-03-18  Bruno Haible  <bruno@clisp.org>
81406
81407         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
81408         checking.
81409         * m4/onceonly_2_57.m4: Likewise.
81410
81411 2003-03-17  Bruno Haible  <bruno@clisp.org>
81412
81413         * m4/onceonly.m4: Require autoconf 2.54 or newer.
81414         (m4_quote): Remove macro.
81415         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
81416
81417 2003-03-14  Jim Meyering  <jim@meyering.net>
81418
81419         Merge changes from Coreutils.
81420         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
81421         to be const, in order to avoid warnings.
81422         (obstack_room): Likewise.
81423         (obstack_empty_p): Likewise.
81424
81425 2003-03-14  Bruno Haible  <bruno@clisp.org>
81426
81427         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
81428         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
81429
81430 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81431
81432         Merge changes from Bison.
81433         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
81434         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
81435         when compiling Bison 1.875's `bitset bset = obstack_alloc
81436         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
81437         * lib/hash.c: Include <stdbool.h> unconditionally.
81438
81439 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81440
81441         * m4/onceonly.m4 (m4_quote): New macro.
81442         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
81443         Quote AC_FOREACH variable-expansions properly.
81444
81445 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81446
81447         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
81448
81449 2003-03-09  Paul Eggert  <eggert@twinsun.com>
81450
81451         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
81452         Reported by Bruce Becker; see:
81453         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
81454
81455 2003-03-03  Paul Eggert  <eggert@twinsun.com>
81456             Bruno Haible  <bruno@clisp.org>
81457
81458         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
81459         Reported by John Hughes, see
81460         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
81461
81462 2003-02-20  Bruno Haible  <bruno@clisp.org>
81463
81464         * MODULES.html.sh (func_all_modules): Add poll.
81465
81466 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81467
81468         * modules/poll: New file.
81469
81470 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81471
81472         * lib/poll_.h: New file.
81473         * lib/poll.c: New file.
81474
81475 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81476
81477         * m4/poll.m4: New file.
81478
81479 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81480
81481         * modules/mathl: New file.
81482
81483 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81484
81485         * lib/mathl.h: New file.
81486         * lib/acosl.c: New file.
81487         * lib/asinl.c: New file.
81488         * lib/atanl.c: New file.
81489         * lib/ceill.c: New file.
81490         * lib/cosl.c: New file.
81491         * lib/expl.c: New file.
81492         * lib/floorl.c: New file.
81493         * lib/frexpl.c: New file.
81494         * lib/ldexpl.c: New file.
81495         * lib/logl.c: New file.
81496         * lib/sincosl.c: New file.
81497         * lib/sinl.c: New file.
81498         * lib/sqrtl.c: New file.
81499         * lib/tanl.c: New file.
81500         * lib/trigl.c: New file.
81501         * lib/trigl.h: New file.
81502
81503 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81504
81505         * m4/mathl.m4: New file.
81506
81507 2003-02-18  Bruno Haible  <bruno@clisp.org>
81508
81509         * MODULES.html.sh (func_all_modules): Add mathl.
81510
81511 2003-02-17  Bruno Haible  <bruno@clisp.org>
81512
81513         * modules/mkdtemp: New module.
81514         * MODULES.html.sh (func_all_modules): Add it.
81515
81516 2003-02-17  Bruno Haible  <bruno@clisp.org>
81517
81518         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81519
81520 2003-02-17  Bruno Haible  <bruno@clisp.org>
81521
81522         * lib/mkdtemp.h: New file, from GNU gettext.
81523         * lib/mkdtemp.c: New file, from GNU gettext.
81524
81525 2003-02-02  Jim Meyering  <jim@meyering.net>
81526
81527         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81528         e.g. glibc-2.2.93.
81529
81530 2003-01-31  Bruno Haible  <bruno@clisp.org>
81531
81532         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81533         'rpl_rename'.
81534         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81535         'rpl_strnlen'.
81536         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81537         'rpl_strtod'.
81538         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81539         'rpl_utime'.
81540
81541 2003-01-31  Bruno Haible  <bruno@clisp.org>
81542
81543         * lib/rename.c: #undef rename before defining rpl_rename.
81544         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81545
81546 2003-01-30  Bruno Haible  <bruno@clisp.org>
81547
81548         * modules/vasnprintf, modules/vasprintf: New modules.
81549         * MODULES.html.sh (func_all_modules): Add them.
81550
81551 2003-01-30  Bruno Haible  <bruno@clisp.org>
81552
81553         * m4/signed.m4: New file, from GNU gettext.
81554         * m4/longdouble.m4: New file, from GNU gettext.
81555         * m4/wchar_t.m4: New file, from GNU gettext.
81556         * m4/wint_t.m4: New file, from GNU gettext.
81557         * m4/vasnprintf.m4: New file.
81558         * m4/vasprintf.m4: New file.
81559
81560 2003-01-30  Bruno Haible  <bruno@clisp.org>
81561
81562         * lib/printf-args.h: New file, from GNU gettext.
81563         * lib/printf-args.c: New file, from GNU gettext.
81564         * lib/printf-parse.h: New file, from GNU gettext.
81565         * lib/printf-parse.c: New file, from GNU gettext.
81566         * lib/vasnprintf.h: New file, from GNU gettext.
81567         * lib/vasnprintf.c: New file, from GNU gettext.
81568         * lib/asnprintf.c: New file, from GNU gettext.
81569         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81570         * lib/vasprintf.c: New file, from GNU gettext.
81571         * lib/asprintf.c: New file, from GNU gettext.
81572
81573 2003-01-29  Bruno Haible  <bruno@clisp.org>
81574
81575         * modules/stpncpy: New module.
81576         * MODULES.html.sh (func_all_modules): Add it.
81577
81578 2003-01-29  Bruno Haible  <bruno@clisp.org>
81579
81580         * m4/stpncpy.m4: New file.
81581
81582 2003-01-29  Bruno Haible  <bruno@clisp.org>
81583
81584         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81585         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81586
81587 2003-01-28  Bruno Haible  <bruno@clisp.org>
81588
81589         * modules/c-ctype: New module.
81590         * MODULES.html.sh (func_all_modules): Add it.
81591
81592 2003-01-28  Bruno Haible  <bruno@clisp.org>
81593
81594         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81595         Paul Eggert.
81596         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81597         Paul Eggert.
81598
81599 2003-01-27  Bruno Haible  <bruno@clisp.org>
81600
81601         * modules/xsetenv: New module.
81602         * MODULES.html.sh (func_all_modules): Add it.
81603
81604 2003-01-27  Bruno Haible  <bruno@clisp.org>
81605
81606         * lib/xsetenv.h: New file, from GNU gettext.
81607         * lib/xsetenv.c: New file, from GNU gettext.
81608
81609 2003-01-23  Jim Meyering  <jim@meyering.net>
81610
81611         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81612         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81613
81614 2003-01-23  Bruno Haible  <bruno@clisp.org>
81615
81616         * modules/minmax: New module.
81617         * MODULES.html.sh (func_all_modules): Add it.
81618
81619 2003-01-23  Bruno Haible  <bruno@clisp.org>
81620
81621         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81622         Eggert.
81623
81624 2003-01-22  Bruno Haible  <bruno@clisp.org>
81625
81626         * modules/exit: New module.
81627         * MODULES.html.sh (func_all_modules): Add it.
81628
81629 2003-01-22  Bruno Haible  <bruno@clisp.org>
81630
81631         * lib/exit.h: New file, from GNU gettext.
81632
81633 2003-01-19  Bruno Haible  <bruno@clisp.org>
81634
81635         * gnulib-tool: Recognize option --extract-maintainer.
81636         (func_get_maintainer): New function.
81637         * modules/*: Add Maintainer entry.
81638
81639 2003-01-16  Jim Meyering  <jim@meyering.net>
81640
81641         * m4/regex.m4: The `regex' struct is both input and output.
81642         Initialize it before each use.  Patch by Tim Waugh.
81643
81644 2003-01-16  Bruno Haible  <bruno@clisp.org>
81645
81646         * MODULES.html.sh: Add a table of contents. Add the module name as
81647         leftmost column. Add hyperlinks.
81648
81649 2003-01-15  Bruno Haible  <bruno@clisp.org>
81650
81651         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81652
81653 2003-01-15  Bruno Haible  <bruno@clisp.org>
81654
81655         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81656         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81657         suffix.
81658
81659 2003-01-15  Bruno Haible  <bruno@clisp.org>
81660
81661         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81662
81663 2003-01-15  Bruno Haible  <bruno@clisp.org>
81664
81665         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81666         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81667
81668 2003-01-14  Jim Meyering  <jim@meyering.net>
81669
81670         * lib/same.c (same_name): Tweak a comment.
81671
81672 2003-01-14  Bruno Haible  <bruno@clisp.org>
81673
81674         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81675         when a string comparison is sufficient.
81676
81677 2003-01-14  Bruno Haible  <bruno@clisp.org>
81678
81679         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81680         'unsigned int'.
81681
81682 2003-01-14  Bruno Haible  <bruno@clisp.org>
81683
81684         * lib/hash-pjw.c: Add comment about low quality of this function.
81685
81686 2003-01-13  Bruno Haible  <bruno@clisp.org>
81687
81688         * modules/stpcpy: Distribute lib/stpcpy.h.
81689         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81690
81691 2003-01-13  Bruno Haible  <bruno@clisp.org>
81692
81693         * modules/*: Add a description.
81694         * modules/strpbrk: Fix Makefile.am snippet.
81695         * modules/strtoimax: Fix dependencies.
81696         * modules/strtoumax: Likewise.
81697
81698 2003-01-13  Bruno Haible  <bruno@clisp.org>
81699
81700         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81701         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81702         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81703
81704 2003-01-13  Bruno Haible  <bruno@clisp.org>
81705
81706         * gnulib-tool (func_create_testdir): Store config/* files in the main
81707         directory.
81708         * config.rpath: Move to ...
81709         * config/config.rpath: ... here.
81710         * modules/gettext: Contains config/config.rpath, not config.rpath.
81711         * modules/iconv: Likewise.
81712
81713 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81714
81715         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81716         to avoid collisions with libcurses and libreadline.
81717
81718         * m4/getstr.m4: Remove.
81719         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81720
81721 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81722
81723         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81724         to avoid collisions with libcurses and libreadline.
81725
81726         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81727         * lib/getstr.h, getstr.c: Remove.
81728         * lib/getline.c: Include "getline.h", to check interface.
81729         Move body of old getstr.c here: this defines MIN_CHUNK and
81730         declares getdelim2, which is renamed from getstr.
81731         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81732
81733         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81734         All uses changed.
81735         * lib/linebuffer.h: Likewise.
81736         (readline): Remove backward-compatibility macro.
81737
81738 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81739
81740         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81741         to avoid collisions with libcurses and libreadline.
81742         * getstr: Remove.
81743         * MODULES.html.sh: Remove getstr.
81744         * modules/getline: Depend on unlocked-io, not getstr.
81745
81746 2003-01-12  Jim Meyering  <jim@meyering.net>
81747
81748         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81749
81750 2003-01-10  Bruno Haible  <bruno@clisp.org>
81751
81752         * modules/alloca: Change Makefile.am requirements. Simplify Include
81753         requirements. Add lib/alloca_.h to file list.
81754
81755 2003-01-10  Bruno Haible  <bruno@clisp.org>
81756
81757         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81758
81759 2003-01-10  Bruno Haible  <bruno@clisp.org>
81760
81761         * lib/alloca_.h: New file.
81762         * lib/getdate.y: Unconditionally include alloca.h.
81763         * lib/makepath.c: Likewise.
81764         * lib/setenv.c: Likewise.
81765         * lib/userspec.c: Likewise.
81766
81767 2003-01-09  Karl Berry  <karl@gnu.org>
81768
81769         * MODULES.html.sh: include `dirname $0` in PATH, to find
81770         gnulib-tool.
81771
81772 2003-01-09  Bruno Haible  <bruno@clisp.org>
81773
81774         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81775         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81776
81777 2003-01-09  Bruno Haible  <bruno@clisp.org>
81778
81779         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81780
81781 2003-01-09  Bruno Haible  <bruno@clisp.org>
81782
81783         * lib/stdbool.h.in: New file.
81784
81785 2003-01-09  Bruno Haible  <bruno@clisp.org>
81786
81787         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81788         * MODULES.html.sh: Likewise.
81789
81790 2003-01-08  Jim Meyering  <jim@meyering.net>
81791
81792         * lib/full-write.c: Undefine and define-away `const' after inclusion
81793         of errno.h, not before.  Suggestion from Bruno Haible.
81794
81795 2003-01-08  Bruno Haible  <bruno@clisp.org>
81796
81797         * modules/full-read: Depend on full-write.
81798
81799 2003-01-08  Bruno Haible  <bruno@clisp.org>
81800
81801         * lib/safe-read.c: Include specification header first, to ensure its
81802         selfcontainedness.
81803         * lib/full-write.c: Likewise.
81804
81805 2003-01-07  Jim Meyering  <jim@meyering.net>
81806
81807         * lib/full-write.c: Rework so that it may serve to define full_read,
81808         too.
81809         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81810
81811 2003-01-07  Bruno Haible  <bruno@clisp.org>
81812
81813         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81814         <inttypes.h>.
81815         * lib/xstrtol.h: Likewise.
81816         * lib/xstrtoimax.c: Likewise.
81817         * lib/xstrtoumax.c: Likewise.
81818         * lib/human.h: Likewise.
81819
81820         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81821         on systems that have <inttypes.h> but not <stdint.h>.
81822
81823 2003-01-07  Bruno Haible  <bruno@clisp.org>
81824
81825         * MODULES.html.sh: Add copyright notice.
81826         (missed_files): Omit CVS directory entries.
81827         (func_module): Make it work with sed-3.02.
81828         * MODULES.txt: Remove file.
81829
81830 2003-01-06  Jim Meyering  <jim@meyering.net>
81831
81832         * lib/version-etc.c: Update year in translatable copyright string.
81833
81834 2003-01-03  Karl Berry  <karl@gnu.org>
81835
81836         * config/config.{guess,sub}: update from prep.
81837
81838 2003-01-02  Karl Berry  <karl@gnu.org>
81839
81840         * doc/COPYING.DOC: belatedly updated to 1.2.
81841
81842 2003-01-01  Karl Berry  <karl@gnu.org>
81843
81844         * gnulib-tool (func_verify_module): report module name $module in
81845         error message, not $1.
81846         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81847         be created, only if it doesn't exist.
81848         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81849
81850 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81851
81852         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81853
81854 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81855
81856         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81857         memcmp if strcoll doesn't work.
81858
81859 2002-12-31  Bruno Haible  <bruno@clisp.org>
81860
81861         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81862         nonempty.
81863
81864 2002-12-31  Bruno Haible  <bruno@clisp.org>
81865
81866         * lib/memcoll.c (STRCOLL): New macro.
81867         (memcoll): Use it.
81868
81869 2002-12-31  Bruno Haible  <bruno@clisp.org>
81870
81871         * lib/localcharset.h: New file.
81872         * lib/localcharset.c: Include it.
81873         * lib/unicodeio.c: Likewise.
81874
81875 2002-12-31  Bruno Haible  <bruno@clisp.org>
81876
81877         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81878         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81879
81880 2002-12-31  Bruno Haible  <bruno@clisp.org>
81881
81882         * lib/getline.h: Include <stddef.h>, for size_t.
81883
81884         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81885         * lib/unicodeio.c: Don't include <stddef.h>.
81886
81887 2002-12-31  Bruno Haible  <bruno@clisp.org>
81888
81889         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81890         HAVE_TM_ZONE.
81891
81892 2002-12-24  Karl Berry  <karl@gnu.org>
81893
81894         * config/config.guess: update from prep.
81895
81896 2002-12-24  Bruno Haible  <bruno@clisp.org>
81897
81898         General infrasructure.
81899         * m4/README: Rewritten.
81900         * m4/onceonly.m4: New file.
81901         * m4/onceonly_2_57.m4: New file.
81902
81903         Module atexit.
81904         * m4/atexit.m4: New file.
81905
81906         Module strtod.
81907         * m4/strtod.m4: New file.
81908
81909         Module strtol.
81910         * m4/strtol.m4: New file.
81911
81912         Module strtoul.
81913         * m4/strtoul.m4: New file.
81914
81915         Module memchr.
81916         * m4/memchr.m4: New file.
81917
81918         Module memcmp.
81919         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81920         (jm_FUNC_MEMCMP): Invoke it.
81921
81922         Module memcpy.
81923         * m4/memcpy.m4: New file.
81924
81925         Module memmove.
81926         * m4/memmove.m4: New file.
81927
81928         Module memset.
81929         * m4/memset.m4: New file.
81930
81931         Module strcspn.
81932         * m4/strcspn.m4: New file.
81933
81934         Module strpbrk.
81935         * m4/strpbrk.m4: New file.
81936
81937         Module strstr.
81938         * m4/strstr.m4: New file.
81939
81940         Module strerror.
81941         * m4/strerror.m4: New file.
81942
81943         Module mktime.
81944         * m4/mktime.m4: Renamed from jm-mktime.m4.
81945         (gl_PREREQ_MKTIME): New macro.
81946         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81947
81948         Module malloc.
81949         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81950         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81951         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81952
81953         Module realloc.
81954         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81955         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81956         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81957
81958         Module strftime.
81959         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81960         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81961         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81962         gl_TM_GMTOFF.
81963         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81964
81965         Module xalloc.
81966         * m4/xalloc.m4: New file.
81967
81968         Module alloca.
81969         * m4/alloca.m4: New file.
81970
81971         Module putenv.
81972         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81973         (jm_FUNC_PUTENV): Invoke it.
81974
81975         Module setenv.
81976         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81977         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81978         when invoked twice.
81979         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81980         gt_FUNC_SETENV.
81981
81982         Module memrchr.
81983         * m4/memrchr.m4: New file.
81984
81985         Module stpcpy.
81986         * m4/stpcpy.m4: New file.
81987
81988         Module strcase.
81989         * m4/strcase.m4: New file.
81990
81991         Module strdup.
81992         * m4/strdup.m4: New file.
81993
81994         Module strnlen.
81995         * m4/strnlen.m4: New file.
81996
81997         Module strndup.
81998         * m4/strndup.m4: New file.
81999
82000         Module xstrtod.
82001         * m4/xstrtod.m4: New file.
82002
82003         Module xstrtol.
82004         * m4/xstrtol.m4: New file.
82005
82006         Module getdate.
82007         * m4/getdate.m4: New file.
82008
82009         Module unlocked-io.
82010         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
82011         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
82012         * m4/jm-glibc-io.m4n: Remove file.
82013
82014         Module long-options.
82015         * m4/long-options.m4: New file.
82016
82017         Module md5.
82018         * m4/md5.m4: New file.
82019
82020         Module sha.
82021         * m4/sha.m4: New file.
82022
82023         Module getstr.
82024         * m4/getstr.m4: New file.
82025
82026         Module getline.
82027         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
82028         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
82029         <sys/types.h>, for size_t. Use the function name gnu_getline, not
82030         simply getline. Infoke gl_PREREQ_GETLINE.
82031
82032         Module obstack.
82033         * m4/obstack.m4: New file.
82034
82035         Module hash.
82036         * m4/hash.m4: New file.
82037
82038         Module readtokens.
82039         * m4/readtokens.m4: New file.
82040
82041         Module strverscmp.
82042         * m4/strverscmp.m4: New file.
82043
82044         Module stdbool.
82045         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
82046         OSF/1.
82047
82048         Module strtoll.
82049         * m4/strtoll.m4: New file.
82050
82051         Module strtoull.
82052         * m4/strtoull.m4: New file.
82053
82054         Module strtoimax.
82055         * m4/strtoimax.m4: New file.
82056
82057         Module strtoumax.
82058         * m4/strtoumax.m4: New file.
82059
82060         Module xstrtoimax.
82061         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
82062         jm_AC_PREREQ_XSTRTOIMAX.
82063         Moved the strtol prerequisites to strtol.m4.
82064         Moved the strtoll prerequisites to strtoll.m4.
82065         Moved the strtoimax prerequisites to strtoimax.m4.
82066
82067         Module xstrtoumax.
82068         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
82069         jm_AC_PREREQ_XSTRTOUMAX.
82070         Moved the strtoul prerequisites to strtoul.m4.
82071         Moved the strtoull prerequisites to strtoull.m4.
82072         Moved the strtoumax prerequisites to strtoumax.m4.
82073
82074         Module chown.
82075         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
82076         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
82077
82078         Module dup2.
82079         * m4/dup2.m4: New file.
82080
82081         Module ftruncate.
82082         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
82083         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
82084
82085         Module getgroups.
82086         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
82087         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
82088
82089         Module gettimeofday.
82090         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
82091         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
82092         gl_PREREQ_GETTIMEOFDAY.
82093
82094         Module mkdir.
82095         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
82096         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
82097
82098         Module mkstemp.
82099         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
82100         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
82101         jm_AC_TYPE_UINTMAX_T.
82102         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
82103
82104         Module stat.
82105         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
82106         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
82107
82108         Module lstat.
82109         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
82110         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
82111
82112         Module timespec.
82113         * m4/timespec.m4 (gl_TIMESPEC): New macro.
82114         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
82115         * m4/st_mtim.m4: Indentation.
82116
82117         Module nanosleep.
82118         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
82119         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
82120         gl_PREREQ_NANOSLEEP.
82121
82122         Module regex.
82123         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
82124         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
82125         (gl_REGEX): New macro.
82126
82127         Module rename.
82128         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
82129         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
82130
82131         Module rmdir.
82132         * m4/rmdir.m4: New file.
82133
82134         Module utime.
82135         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
82136         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
82137         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
82138
82139         Module dirname.
82140         * m4/dirname.m4: New file.
82141
82142         Module getopt.
82143         * m4/getopt.m4: New file.
82144
82145         Module unistd-safer.
82146         * m4/unistd-safer.m4: New file.
82147
82148         Module fnmatch.
82149         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
82150         declaration.
82151         (gl_PREREQ_FNMATCH_EXTRA): New macro.
82152         (gl_FUNC_FNMATCH_POSIX): New macro.
82153         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
82154         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
82155         simply fnmatch.
82156
82157         Module exclude.
82158         * m4/exclude.m4: New file.
82159
82160         Module human.
82161         * m4/human.m4: New file.
82162
82163         Module acl.
82164         * m4/acl.m4: Nop.
82165
82166         Module backupfile.
82167         * m4/backupfile.m4: New file.
82168         * m4/d-ino.m4: Indentation.
82169
82170         Module fsusage.
82171         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
82172         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
82173         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
82174
82175         Module dirfd.
82176         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
82177         requirements.
82178
82179         Module euidaccess.
82180         * m4/euidaccess.m4: New file.
82181
82182         Module file-type.
82183         * m4/file-type.m4: New file.
82184
82185         Module fileblocks.
82186         * m4/fileblocks.m4: New file.
82187
82188         Module filemode.
82189         * m4/filemode.m4: New file.
82190
82191         Module isdir.
82192         * m4/isdir.m4: New file.
82193
82194         Module lchown.
82195         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
82196         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
82197
82198         Module makepath.
82199         * m4/makepath.m4: New file.
82200
82201         Module modechange.
82202         * m4/modechange.m4: New file.
82203
82204         Module mountlist.
82205         * m4/mountlist.m4: New file.
82206         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
82207         Indentation.
82208
82209         Module path-concat.
82210         * m4/path-concat.m4: New file.
82211
82212         Module pathmax.
82213         * m4/pathmax.m4: New file.
82214
82215         Module same.
82216         * m4/same.m4: New file.
82217
82218         Module save-cwd.
82219         * m4/save-cwd.m4: New file.
82220
82221         Module savedir.
82222         * m4/savedir.m4: New file.
82223
82224         Module xgetcwd.
82225         * m4/xgetcwd.m4: New file.
82226         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
82227
82228         Module xreadlink.
82229         * m4/xreadlink.m4: New file.
82230
82231         Module safe-read.
82232         * m4/safe-read.m4: New file.
82233
82234         Module safe-write.
82235         * m4/safe-write.m4: New file.
82236
82237         Module closeout.
82238         * m4/closeout.m4: New file.
82239
82240         Module stdio-safer.
82241         * m4/stdio-safer.m4: New file.
82242
82243         Module getpass.
82244         * m4/getpass.m4: New file.
82245
82246         Module getugroups.
82247         * m4/getugroups.m4: New file.
82248
82249         Module group-member.
82250         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
82251         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
82252
82253         Module idcache.
82254         * m4/idcache.m4: New file.
82255
82256         Module userspec.
82257         * m4/userspec.m4: New file.
82258
82259         Module gettime.
82260         * m4/clock_time.m4: New file.
82261         * m4/gettime.m4: New file.
82262
82263         Module settime.
82264         * m4/settime.m4: New file.
82265
82266         Module posixtm.
82267         * m4/posixtm.m4: New file.
82268
82269         Module gethostname.
82270         * m4/gethostname.m4: New file.
82271
82272         Module canon-host.
82273         * m4/canon-host.m4: New file.
82274
82275         Module gettext.
82276         * m4/codeset.m4: New file, from gettext-0.11.5.
82277         * m4/gettext.m4: New file, from gettext-0.11.5.
82278         * m4/glibc21.m4: New file, from gettext-0.11.5.
82279         * m4/iconv.m4: New file, from gettext-0.11.5.
82280         * m4/intdiv0.m4: New file, from gettext-0.11.5.
82281         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
82282         * m4/inttypes.m4: New file, from gettext-0.11.5.
82283         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
82284         * m4/isc-posix.m4: New file, from gettext-0.11.5.
82285         * m4/lcmessage.m4: New file, from gettext-0.11.5.
82286         * m4/lib-ld.m4: New file, from gettext-0.11.5.
82287         * m4/lib-link.m4: New file, from gettext-0.11.5.
82288         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
82289         * m4/progtest.m4: New file, from gettext-0.11.5.
82290         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
82291         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
82292         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
82293
82294         Module localcharset.
82295         * m4/localcharset.m4: New file.
82296
82297         Module hard-locale.
82298         * m4/hard-locale.m4: New file.
82299
82300         Module mbswidth.
82301         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
82302         onceonly macros.
82303         * m4/mbrtowc.m4: Add comment.
82304
82305         Module memcasecmp.
82306         * m4/memcasecmp.m4: New file.
82307
82308         Module memcoll.
82309         * m4/memcoll.m4: New file.
82310
82311         Module unicodeio.
82312         * m4/unicodeio.m4: New file.
82313
82314         Module rpmatch.
82315         * m4/rpmatch.m4: New file.
82316
82317         Module yesno.
82318         * m4/yesno.m4: New file.
82319
82320         Module exitfail.
82321         * m4/exitfail.m4: New file.
82322
82323         Module c-stack.
82324         * m4/c-stack.m4 (gl_C_STACK): New macro.
82325         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
82326
82327         Module error.
82328         * m4/error.m4 (gl_ERROR): New macro.
82329         (jm_PREREQ_ERROR): Use onceonly macros.
82330
82331         Module fatal.
82332         * m4/fatal.m4: New file.
82333
82334         Module getloadavg.
82335         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
82336         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
82337
82338         Module getpagesize.
82339         * m4/getpagesize.m4: New file.
82340
82341         Module getusershell.
82342         * m4/getusershell.m4: New file.
82343
82344         Module physmem.
82345         * m4/physmem.m4: New file.
82346
82347         Module posixver.
82348         * m4/posixver.m4: New file.
82349
82350         Module quotearg.
82351         * m4/quotearg.m4: New file.
82352
82353         Module quote.
82354         * m4/quote.m4: New file.
82355
82356         Module readutmp.
82357         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
82358
82359         Module sig2str.
82360         * m4/sig2str.m4: New file.
82361
82362         Other.
82363         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
82364         ulonglong.m4.
82365         * m4/intmax_t.m4: New file.
82366         * m4/d-type.m4: Indentation.
82367         * m4/jm-macros.m4: Update.
82368         * m4/prereq.m4 (jm_PREREQ): Update.
82369         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
82370         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
82371         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
82372         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
82373         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
82374         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
82375         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
82376         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
82377         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
82378         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
82379         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
82380         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
82381         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
82382         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
82383         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
82384         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
82385         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
82386         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
82387         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
82388
82389 2002-12-24  Bruno Haible  <bruno@clisp.org>
82390
82391         * MODULES.txt: Update according to m4/ changes.
82392
82393         Module gettext.
82394         * config.rpath: New file, from gettext-0.11.5.
82395
82396         * modules/*: New module descriptions.
82397         * gnulib-tool: New file.
82398         * MODULES.html.sh: New file.
82399
82400 2002-12-21  Karl Berry  <karl@gnu.org>
82401
82402         * doc/fdl.texi: update to version 1.2.
82403
82404 2002-12-19  Karl Berry  <karl@gnu.org>
82405
82406         * config/config.guess: update from prep.
82407
82408 2002-12-18  Bruno Haible  <bruno@clisp.org>
82409
82410         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
82411         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
82412
82413 2002-12-17  Bruno Haible  <bruno@clisp.org>
82414
82415         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
82416         stdlib.h, string.h.
82417
82418 2002-12-17  Bruno Haible  <bruno@clisp.org>
82419
82420         * lib/canon-host.c (strdup): Remove unused declaration.
82421
82422         * lib/fsusage.c: Include full_read.h.
82423         (get_fs_usage): Use full_read instead of safe_read.
82424
82425         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
82426
82427 2002-12-12  Karl Berry  <karl@gnu.org>
82428
82429         * config/config.guess: update from prep.
82430
82431 2002-12-11  Bruno Haible  <bruno@clisp.org>
82432
82433         * m4/setenv.m4: New file, from gettext-0.11.5.
82434
82435 2002-12-11  Bruno Haible  <bruno@clisp.org>
82436
82437         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
82438         not unsetenv().
82439         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
82440         modifications:
82441
82442         2002-12-11  Bruno Haible  <bruno@clisp.org>
82443
82444                 * setenv.c (alloca): Fall back to malloc.
82445                 (freea): New macro.
82446                 (setenv): Use freea() to free memory allocated with alloca().
82447
82448         2002-11-13  Bruno Haible  <bruno@clisp.org>
82449
82450                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
82451                 function declarations.
82452                 * unsetenv.c (unsetenv): Likewise.
82453
82454         2002-03-04  Bruno Haible  <bruno@clisp.org>
82455
82456                 Portability to AIX 4.3.3.
82457                 * unsetenv.c: New file, extracted from setenv.c.
82458                 * setenv.c: Move the unsetenv() function to unsetenv.c.
82459
82460         2001-12-20  Bruno Haible  <bruno@clisp.org>
82461
82462                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
82463                 use malloc instead. For SunOS 4.
82464
82465         2001-12-11  Bruno Haible  <bruno@clisp.org>
82466
82467                 * setenv.c: Declare alloca.
82468                 (compar_fn_t): New typedef.
82469                 (KNOWN_VALUE, STORE_VALUE): Use it.
82470
82471         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
82472         setenv.h.
82473
82474 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82475
82476         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
82477         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
82478         Choose values that are less likely to collide with system fnmatch
82479         options.
82480         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
82481         defined (e.g., a pure POSIX system).
82482         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
82483         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
82484
82485 2002-12-06  Paul Eggert  <eggert@twinsun.com>
82486
82487         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
82488         a pain in practice to deal with generated m4 files.  This change
82489         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
82490
82491         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
82492         and jm-glibc-io.m4, as they are no longer a special case.
82493         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
82494         kludge and the auto-generation stuff.  Check only whether the
82495         functions are declared, not whether they exist, since older hosts
82496         that don't declare the functions can't use the optimization anyway.
82497
82498 2002-12-06  Jim Meyering  <jim@meyering.net>
82499
82500         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
82501
82502         Merge in changes from libc's misc/error.c, in preparation
82503         for the merge of gnulib's changes back into libc.
82504
82505         * lib/error.c (_): Define only if not already defined.
82506         Move definition to follow all #include directives.
82507         Include unlocked-io.h only if !_LIBC.
82508         [_LIBC]: Include <libio/libioP.h>.
82509         [USE_IN_LIBIO]: Include <libio/iolibio.h>
82510         (fflush): Tweak definition to use INTUSE.
82511         (putc): Define.
82512
82513 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82514
82515         * lib/alloca.c [defined emacs]: Include "lisp.h".
82516         (xalloc_die) [defined emacs]: New macro.
82517         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82518         [! defined emacs]: Include <xalloc.h>.
82519         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82520         (pointer): Typedef to POINTER_TYPE *.
82521         (malloc): Remove decl; we now always use xmalloc.
82522         (alloca): Use old-style definition, since Emacs needs this.
82523         Check for arithmetic overflow when computing combined size.
82524
82525 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82526
82527         Do not generate unlocked-io.h automatically, since it's easier to
82528         maintain it by hand.
82529
82530         * lib/unlocked-io.h: New file, from GNU diffutils,
82531         but with proper copyright notice and attribution.
82532         * lib/gen-uio: Remove.
82533         * lib/Makefile.am: Add copyright notice.
82534         (libfetish_a_SOURCES): Add unlocked-io.h.
82535         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82536         (DISTCLEANFILES, io_functions): Remove macros.
82537         (EXTRA_DIST): Remove gen_uio.
82538         (unlocked-io.h): Remove rule.
82539
82540 2002-12-04  Jim Meyering  <jim@meyering.net>
82541
82542         Reflect the fact that stat.c and lstat.c are no longer generated.
82543         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82544         (DISTCLEANFILES): Likewise.
82545         (EXTRA_DIST): Likewise.
82546         (all_local): Don't depend on stat.c or lstat.c.
82547         (stat.c, lstat.c): Remove rules.
82548         (EXTRA_DIST): Remove xstat.in.
82549
82550         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82551         * lib/stat.c: New file.  Contents mostly from xstat.in.
82552         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82553         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82554
82555         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82556         too.
82557         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82558
82559 2002-12-03  Jim Meyering  <jim@meyering.net>
82560
82561         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82562         but not semantics, to minimize the differences between these two files.
82563         (safe_read): Change comment to mention SAFE_READ_ERROR.
82564
82565         * lib/safe-read.c (IS_EINTR): Define.
82566         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82567
82568 2002-12-02  Jim Meyering  <jim@meyering.net>
82569
82570         * lib/safe-read.c (EINTR): Define.
82571         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82572         (INT_MAX): Provide fallback.
82573         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82574
82575         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82576
82577 2002-12-02  Bruno Haible  <bruno@clisp.org>
82578
82579         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82580         Define, taken from safe-read.c.
82581         (INT_MAX): Provide fallback.
82582         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82583         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82584
82585         * lib/safe-read.c (EINTR): Remove definition.
82586         (safe_read): Don't use EINTR if it is absent.
82587
82588 2002-12-01  Jim Meyering  <jim@meyering.net>
82589
82590         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82591         zero.
82592         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82593
82594 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82595
82596         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82597         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82598         with `if (! (value < limit)) abort ();', for readability.
82599
82600 2002-11-26  Karl Berry  <karl@gnu.org>
82601
82602         * lib/strdup.c: copy from libc again, with jim's ok.
82603         * lib/.cppi-disable: re-add strdup.c
82604
82605 2002-11-25  Karl Berry  <karl@gnu.org>
82606
82607         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82608         instead of "strtol.c".
82609
82610 2002-11-25  Karl Berry  <karl@gnu.org>
82611
82612         * config/install-sh: update from automake for variable quoting, $0 in
82613         error msgs, etc.
82614
82615         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82616         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82617         entry.
82618
82619 2002-11-25  Jim Meyering  <jim@meyering.net>
82620
82621         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82622
82623 2002-11-24  Karl Berry  <karl@gnu.org>
82624
82625         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82626         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82627
82628 2002-11-24  Jim Meyering  <jim@meyering.net>
82629
82630         Update from coreutils:
82631
82632         * lib/mktime.c: Merge in changes from libc.
82633
82634         Avoid a link-time failure on some Linux systems.
82635         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82636         (otherwise).
82637         (__mon_yday): Declare with the STATIC attribute.
82638         (__mktime_internal): Likewise.
82639         Based on a report from Greg Schafer.
82640
82641 2002-11-23  Jim Meyering  <jim@meyering.net>
82642
82643         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82644         Use `unsigned', not `int', as type of index.
82645
82646         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82647
82648         * lib/fsusage.c: Remove unneeded parentheses around operands of
82649         `defined'.
82650
82651 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82652
82653         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82654         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82655         so that we can be included first.
82656         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82657         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82658         No need to include stddef.h or sys/types.h any more.
82659         Surround local include files with "", not "<>".
82660         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82661         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82662         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82663         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82664         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82665         (ISPRINT): Remove; no longer needed now that we assume C89.
82666
82667         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82668         Preserve errno.
82669
82670         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82671         quotearg_char): Use SIZE_MAX rather than
82672         (size_t) -1 when we are talking about "infinity".
82673
82674         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82675
82676 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82677
82678         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82679         hint that one should use `if (! x) abort ();' rather than `assert
82680         (x);', and anyway it's one less thing to worry about configuring.
82681         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82682         hash_rehash, hash_insert): Use abort rather than assert.
82683
82684 2002-11-22  Bruno Haible  <bruno@clisp.org>
82685
82686         * lib/safe-read.h: Assume C89. Add comments.
82687         (safe_read): Change return type to size_t.
82688         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82689         byte counts > SSIZE_MAX correctly.
82690         * lib/safe-write.h: New file.
82691         * lib/safe-write.c: New file.
82692         * lib/full-read.h: New file.
82693         * lib/full-read.c: New file.
82694         * lib/full-write.h: Assume C89. Add comments.
82695         * lib/full-write.c: Include safe-write.h.
82696         (full_write): Rewritten to use safe_write.
82697         Suggested by Jim Meyering and Paul Eggert.
82698
82699 2002-11-21  Jim Meyering  <jim@meyering.net>
82700
82701         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82702
82703         Merge in changes from the coreutils.
82704
82705         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82706         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82707         <stdint.h>.
82708         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82709         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82710         int.  Work more efficiently if X is the same width as uintmax_t.
82711         Do not compare X to -1, to avoid bogus compiler warning.
82712         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82713         Don't assume that f_frsize and f_bsize are the same type.
82714
82715         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82716         warning on FreeBSD.
82717
82718         * lib/makepath.c (make_path): Restore umask *before* creating the final
82719         component.
82720         (make_path): Minor reformatting.
82721
82722         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82723         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82724         HAVE_MALLOC/HAVE_REALLOC.
82725
82726         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82727         dummy ones.  At least on GNU/Linux systems, `auto' means something
82728         else.
82729         From Michael Stone.
82730
82731 2002-11-21  Bruno Haible  <bruno@clisp.org>
82732
82733         Remove case insensitive option matching.
82734         * lib/argmatch.h (argcasematch): Remove declaration.
82735         (ARGCASEMATCH): Remove macro.
82736         (__xargmatch_internal): Remove case_sensitive argument.
82737         (XARGMATCH): Update.
82738         (XARGCASEMATCH): Remove macro.
82739         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82740         case_sensitive argument.
82741         (argcasematch): Remove function.
82742         (__xargmatch_internal): Remove case_sensitive argument.
82743         (main): Use XARGMATCH instead of XARGCASEMATCH.
82744
82745         * lib/xmalloc.c: Change compile-time error message. Add comment about
82746         required autoconf version.
82747
82748 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82749
82750         Merge argmatch cleanups from Bison.  Assume C89.
82751
82752         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82753         Include stdlib.h, for EXIT_FAILURE.
82754         Always include <string.h>, since we assume C89.
82755         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82756         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82757         Include <stddef.h> instead, since it's all we need for size_t.
82758         (PARAMS): Remove.  All uses removed.
82759         (ARRAY_CARDINALITY): Do not bother to #undef.
82760         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82761         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82762         Remove unnecessary parentheses.
82763         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82764         Insert necessary parentheses.
82765         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82766         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82767
82768 2002-11-19  Bruno Haible  <bruno@clisp.org>
82769
82770         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82771         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82772
82773         * lib/mbswidth.h (PARAMS): Remove macro.
82774         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82775         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82776
82777         * lib/gcd.h (PARAMS): Remove macro.
82778         (gcd): Use ANSI C function declarations.
82779         * lib/gcd.c (gcd): Likewise.
82780
82781 2002-11-15  Bruno Haible  <bruno@clisp.org>
82782
82783         * lib/strcspn.c: Include <stddef.h>.
82784         (strcspn): Use ANSI C function declaration. Change return type to
82785         size_t. Use NULL.
82786         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82787         (strpbrk): Use NULL.
82788         * lib/strpbrk.h (PARAMS): Remove macro.
82789         (strpbrk): Use ANSI C function declaration.
82790         * lib/strstr.c: Don't include <sys/types.h>.
82791         * lib/strstr.h (PARAMS): Remove macro.
82792         (strstr): Use ANSI C function declarations.
82793
82794 2002-11-14  Karl Berry  <karl@gnu.org>
82795
82796         * config/mkinstalldirs: `do' on separate line, instead of
82797         `for var; do'.
82798
82799 2002-11-06  Bruno Haible  <bruno@clisp.org>
82800
82801         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82802         * lib/gcd.c (gcd): Likewise.
82803
82804 2002-11-05  Bruno Haible  <bruno@clisp.org>
82805
82806         * lib/gcd.h: New file, from gettext-0.11.5.
82807         * lib/gcd.c: New file, from gettext-0.11.5.
82808
82809 2002-11-05  Bruno Haible  <bruno@clisp.org>
82810
82811         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82812         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82813         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82814         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82815
82816         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82817         <libintl.h>.
82818         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82819         <libintl.h>.
82820
82821         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82822         * lib/human.c: Include gettext.h instead of <libintl.h>.
82823         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82824         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82825         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82826         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82827         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82828         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82829         (textdomain): Remove definition.
82830         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82831
82832         * lib/long-options.c: Remove include of <libintl.h> and definition of
82833         _.
82834         * lib/same.c: Remove include of <libintl.h> and definition of _.
82835
82836 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82837
82838         * lib/config.charset: A few additions for Solaris.
82839
82840 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82841
82842         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82843         * lib/localcharset.c (locale_charset): Declare as extern "C".
82844
82845 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82846
82847         * lib/config.charset: msdos in uk_UA uses CP1125.
82848
82849 2002-11-04  Bruno Haible  <bruno@clisp.org>
82850
82851         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82852         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82853         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82854         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82855         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82856
82857 2002-11-04  Bruno Haible  <bruno@clisp.org>
82858
82859         * lib/localcharset.c (locale_charset): Don't return an empty string.
82860
82861 2002-11-04  Bruno Haible  <bruno@clisp.org>
82862
82863         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82864         aliases.
82865
82866 2002-11-04  Bruno Haible  <bruno@clisp.org>
82867
82868         * lib/config.charset: Update for newest glibc. Add canonical names
82869         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82870
82871 2002-11-04  Bruno Haible  <bruno@clisp.org>
82872
82873         * lib/config.charset: Add support for NetBSD.
82874
82875 2002-11-04  Bruno Haible  <bruno@clisp.org>
82876
82877         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82878
82879 2002-11-01  Bruno Haible  <bruno@clisp.org>
82880
82881         * configure.in: Add AC_CONFIG_AUX_DIR call.
82882         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82883         test/Makefile.
82884         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82885
82886 2002-09-28  Karl Berry  <karl@gnu.org>
82887
82888         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82889         installed automake until the next release, since changes have been
82890         made.
82891
82892 2002-09-25  Karl Berry  <karl@gnu.org>
82893
82894         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82895         * lib/getopt*: copy from libc/posix.
82896         * lib/gettext.h: copy from gettext.
82897         * lib/.cppi-disable: add strdup.c, gettext.h.
82898
82899 2002-09-25  Karl Berry  <karl@gnu.org>
82900
82901         * config/srclist.txt: enable gettext.h check.
82902         * config/config.{guess,sub}: update from prep.
82903         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82904                 from automake 1.6.3.
82905         See srclist*.
82906
82907 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82908
82909         * regex.c (PATFETCH): Remove the translating fetch.
82910         (PATFETCH_RAW): Rename to PATFETCH.
82911         (set_image_of_range): New fun.
82912         (SET_RANGE_TABLE_WORK_AREA): Use it.
82913         (regex_compile): Don't translate the pattern chars so eagerly.
82914         Only do it when inserting an `exactn' bytecode or when handling
82915         a char-range.
82916         (mutually_exclusive_p): Avoid empty statement.
82917
82918 2002-07-06  Jim Meyering  <meyering@lucent.com>
82919
82920         * m4/README: Don't mention Makefile.am.in.
82921         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82922
82923 2002-07-01  Jim Meyering  <meyering@lucent.com>
82924
82925         * lib/c-stack.c: Include sys/time.h.
82926         From Volker Borchert.
82927
82928 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82929
82930         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82931
82932 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82933
82934         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82935         New macro.  Use it uniformly instead of
82936         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82937         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82938         reported by Vin Shelton.
82939
82940 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82941
82942         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82943         Do not assume SA_SIGINFO behavior.
82944         Bug reported by Jim Meyering on NetBSD 1.5.2.
82945
82946 2002-06-22  Jim Meyering  <meyering@lucent.com>
82947
82948         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82949         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82950
82951         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82952         now that configure.ac uses AC_GNU_SOURCE.
82953         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82954         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82955
82956         Update to latest tools.  Suggestions from Paul Eggert.
82957         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82958         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82959         * m4/fnmatch.m4: Likewise.
82960         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82961         to AC_HEADER_STDBOOL
82962
82963 2002-06-22  Jim Meyering  <meyering@lucent.com>
82964
82965         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82966         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82967
82968 2002-06-22  Jim Meyering  <meyering@lucent.com>
82969
82970         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82971
82972         * lib/exitfail.c, exitfail.h: Likewise.
82973         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82974
82975         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82976         of fnmatch.h.
82977         (EXTRA_DIST): Add fnmatch_loop.c.
82978         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82979
82980         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82981         * lib/fnmatch.c: Update from diffutils-2.8.2.
82982         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82983         * lib/fnmatch.h: Remove file.
82984
82985 2002-06-21  Jim Meyering  <meyering@lucent.com>
82986
82987         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82988         * m4/mbrtowc.m4: Likewise.
82989
82990         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82991         * m4/mbswidth.m4: Reflect name change:
82992         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82993         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82994
82995         * m4/lib-link.m4: Update from gettext-0.11.2.
82996         * m4/gettext.m4: Likewise.
82997
82998         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82999         From Alfred M. Szmidt.
83000
83001 2002-06-18  Paul Eggert  <eggert@twinsun.com>
83002
83003         * lib/file-type.h: Report an error if neither S_ISREG nor
83004         S_IFREG is defined, instead of using a test specific to glibc
83005         2.2.  This should be safe, since POSIX requires S_ISREG and
83006         Unix Version 7 had S_IFREG.  We don't need to check for
83007         <sys/types.h> since we don't use any symbols that it defines.
83008
83009 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
83010
83011         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
83012         $@-t, so that each temporary file name is unique and valid in the first
83013         8 characters, for operation under DOS.
83014
83015 2002-06-15  Paul Eggert  <eggert@twinsun.com>
83016
83017         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
83018
83019 2002-06-15  Jim Meyering  <meyering@lucent.com>
83020
83021         Work even with DJGPP 2.03, which lacks support for symlinks.
83022         From Richard Dawe.
83023         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
83024         is defined.
83025         * lib/lchown.c (S_ISLNK): Likewise.
83026
83027 2002-06-15  Jim Meyering  <meyering@lucent.com>
83028
83029         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
83030         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
83031         have been included before this file.
83032
83033 2002-06-14  Jim Meyering  <meyering@lucent.com>
83034
83035         * lib/file-type.h: Use the version from diffutils-2.8.2.
83036         * lib/file-type.c: Likewise.
83037
83038 2002-06-07  Jim Meyering  <meyering@lucent.com>
83039
83040         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
83041         They're needed at least for NetBSD 1.5.2.
83042         ($statxfs_includes): Include those same headers.
83043         ($statxfs_includes): Include sys/vfs.h if available.
83044         ($statxfs_includes): Likewise for sys/statvfs.h.
83045         Check for the following members in both structs statfs and statvfs:
83046         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
83047
83048 2002-06-01  Jim Meyering  <meyering@lucent.com>
83049
83050         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
83051         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
83052
83053 2002-05-28  Jim Meyering  <meyering@lucent.com>
83054
83055         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
83056         Reported by Volker Borchert.
83057
83058 2002-05-27  Jim Meyering  <meyering@lucent.com>
83059
83060         Fix a problem seen only on nonconforming systems whereby ls.c's
83061         use of localtime, and then of gettimeofday would cause trouble:
83062         the localtime call used to initialize rpl_gettimeofday's save
83063         mechanism would clobber ls's current local time information so
83064         that in any long listing the first file would always be listed
83065         with date 1970-01-01.  Analysis by Volker Borchert.
83066
83067         * lib/gettimeofday.c (localtime): Undefine.
83068         (rpl_localtime): New function.
83069
83070 2002-05-27  Jim Meyering  <meyering@lucent.com>
83071
83072         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
83073         localtime.
83074
83075         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
83076         use the replacement function; it wouldn't resolve at link time.
83077         Reported by Volker Borchert.
83078
83079 2002-05-22  Jim Meyering  <meyering@lucent.com>
83080
83081         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
83082         file-type.h.
83083         * lib/file-type.h: New file.
83084         * lib/file-type.c (file_type): New file/function.  Extracted from
83085         diffutils.
83086
83087 2002-04-30  Jim Meyering  <meyering@lucent.com>
83088
83089         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
83090
83091 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83092
83093         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
83094
83095 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83096
83097         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
83098         Do not check for alloca.h (no longer used) or stdbool.h (was never
83099         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
83100
83101 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83102
83103         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
83104
83105 2002-04-29  Jim Meyering  <meyering@lucent.com>
83106
83107         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
83108         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
83109         Use AC_FUNC_STRNLEN here instead.
83110
83111         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
83112         With autoconf-2.53a, it's part of AC_PROG_CC.
83113
83114 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83115
83116         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
83117         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
83118
83119 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83120
83121         * lib/sig2str.h, lib/sig2str.c: New files.
83122         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
83123
83124 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83125
83126         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
83127         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
83128         of 127, since 64 is the largest conceivable number for ancient
83129         nonstandard hosts.
83130         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
83131
83132 2002-04-28  Jim Meyering  <meyering@lucent.com>
83133
83134         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
83135
83136 2002-04-24  Jim Meyering  <meyering@lucent.com>
83137
83138         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
83139         (jm_PREREQ): Use it.
83140
83141         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
83142         mach/mach.h fcntl.h.
83143         Check for this function: setlocale.
83144
83145 2002-04-24  Jim Meyering  <meyering@lucent.com>
83146
83147         * lib/gettext.h: New file, from Gettext.
83148         * lib/Makefile.am (INCLUDES): Remove -I../intl.
83149         (libfetish_a_SOURCES): Add gettext.h.
83150
83151 2002-04-16  Jim Meyering  <meyering@lucent.com>
83152
83153         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
83154         ut_pid, ut_id, ut_exit.
83155
83156 2002-04-16  Jim Meyering  <meyering@lucent.com>
83157
83158         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
83159         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
83160         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
83161
83162 2002-04-12  Jim Meyering  <meyering@lucent.com>
83163
83164         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
83165         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
83166         existence of the getmntinfo function.  Needed for Darwin 5.3.
83167
83168         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
83169         This is necessary at least on Darwin 5.3.
83170
83171         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
83172         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
83173         strnlen.o in the library, and that makes some versions of ranlib
83174         object.
83175
83176 2002-04-12  Jim Meyering  <meyering@lucent.com>
83177
83178         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
83179
83180 2002-04-09  Jim Meyering  <meyering@lucent.com>
83181
83182         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
83183         to be more precise.  Rather than saying we're checking whether the
83184         function `works', say what we're testing.
83185         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
83186         Reported by Bruno Haible.
83187
83188 2002-03-10  Jim Meyering  <meyering@lucent.com>
83189
83190         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
83191         Suggestion from Santiago Vila.
83192
83193 2002-03-08  Jim Meyering  <meyering@lucent.com>
83194
83195         * lib/rename.c: Mention that this wrapper is needed also on
83196         mips-dec-ultrix4.4 systems.
83197
83198 2002-03-02  Jim Meyering  <meyering@lucent.com>
83199
83200         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
83201         not HAVE_CLOCK_SETTIME.
83202
83203 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83204
83205         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
83206         Check for clock_settime.
83207
83208 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83209
83210         * lib/nanosleep.h: Rename to....
83211         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
83212
83213         * lib/gettime.c: New file.
83214         * lib/settime.c: New file.
83215         * lib/stime.c: Remove.
83216
83217         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
83218         timespec.h.  Remove nanosleep.h.
83219
83220 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83221
83222         * m4/acl.m4: New file.
83223         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
83224         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
83225
83226 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83227
83228         * lib/acl.c, lib/acl.h: New files.
83229         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
83230
83231 2002-02-24  Jim Meyering  <meyering@lucent.com>
83232
83233         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
83234         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
83235         cause trouble.  Reported by Nelson Beebe.
83236
83237 2002-02-23  Paul Eggert  <eggert@twinsun.com>
83238
83239         * lib/path-concat.c (xpath_concat): Reorder code to pacify
83240         compilers that don't know that xalloc_die never returns.
83241
83242 2002-02-20  Jim Meyering  <meyering@lucent.com>
83243
83244         * lib/getdate.c: Regenerate using bison-1.33.
83245
83246 2002-02-17  Jim Meyering  <meyering@lucent.com>
83247
83248         * config/config.guess (main): Don't use `head -1'; it's no longer
83249         portable. Use `sed 1q' instead.
83250
83251 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
83252
83253         * m4/codeset.m4: Upgrade to gettext-0.11.
83254         * m4/gettext.m4: Upgrade to gettext-0.11.
83255         * m4/glibc21.m4: Upgrade to gettext-0.11.
83256         * m4/iconv.m4: Upgrade to gettext-0.11.
83257         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83258         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83259         * m4/lib-ld.m4: New file, from gettext-0.11.
83260         * m4/lib-link.m4: New file, from gettext-0.11.
83261         * m4/lib-prefix.m4: New file, from gettext-0.11.
83262         * m4/progtest.m4: Upgrade to gettext-0.11.
83263
83264 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83265
83266         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
83267         (jm_PREREQ): Use it.
83268
83269 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83270
83271         * lib/posixver.c, lib/posixver.h: New files.
83272         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83273
83274 2002-02-02  Paul Eggert  <eggert@twinsun.com>
83275             Bruno Haible  <bruno@clisp.org>
83276
83277         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
83278         (fwrite_success_callback): New declaration.
83279         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
83280         print_unicode_char. Call failure callback instead of error.
83281         (fwrite_success_callback): New function.
83282         (exit_failure_callback): New function.
83283         (fallback_failure_callback): New function.
83284         (print_unicode_char): Call unicode_to_mb.
83285
83286 2002-01-26  Jim Meyering  <meyering@lucent.com>
83287
83288         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
83289         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
83290
83291 2002-01-26  Jim Meyering  <meyering@lucent.com>
83292
83293         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
83294
83295 2002-01-22  Paul Eggert  <eggert@twinsun.com>
83296
83297         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
83298
83299 2002-01-22  Jim Meyering  <meyering@lucent.com>
83300
83301         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
83302         Otherwise, some versions of automake would omit the rule that makes
83303         Makefile from Makefile.in.
83304
83305 2002-01-21  Paul Eggert  <eggert@twinsun.com>
83306
83307         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
83308         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83309         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
83310         (memcoll): Set errno to zero if there is no error.
83311
83312         * lib/quotearg.c (quotearg_buffer_restyled):
83313         Fix bug with quoting buffers containing NUL when backslashing escapes.
83314         This bug was exposed by the other changes in this patch.
83315         (quotearg_n_options): New arg ARGSIZE.
83316         All callers changed.
83317         (quoting_options_from_style): New function.
83318         (quotearg_n_style): Use it.
83319         (quotearg_n_style_mem): New function.
83320
83321         * lib/quotearg.h (quotearg_n_style_mem): New function.
83322
83323 2002-01-19  Jim Meyering  <meyering@lucent.com>
83324
83325         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
83326         Remove useless quotes: DF_PROG="df".
83327         * m4/strnlen.m4: New file.
83328
83329 2002-01-16  Paul Eggert  <eggert@twinsun.com>
83330
83331         * lib/backupfile.c (ISDIGIT): Comment fix.
83332         * lib/getdate.y (ISDIGIT): Likewise.
83333         * lib/posixtm.c (ISDIGIT, year): Likewise.
83334         * lib/strverscmp.c (ISDIGIT): Likewise.
83335         * lib/userspec.c (ISDIGIT): Likewise.
83336
83337 2002-01-16  Jim Meyering  <meyering@lucent.com>
83338
83339         * lib/getdate.y: Add three semicolons, each just before a closing
83340         brace. Bison (as of version 1.31) no longer papers over that mistake.
83341
83342 2002-01-05  Jim Meyering  <meyering@lucent.com>
83343
83344         * lib/version-etc.c (version_etc_copyright): Update copyright year.
83345
83346 2001-12-19  Paul Eggert  <eggert@twinsun.com>
83347
83348         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
83349         not silently exit merely because the output buffer happens to
83350         have nothing pending.
83351
83352 2001-12-18  Paul Eggert  <eggert@twinsun.com>
83353
83354         See the big note in ../ChangeLog.
83355         * lib/human.c (suffixes): Prefer K to k for 1024.
83356         (generate_suffix_backwards): New function.
83357         (human_readable_inexact): Use it.
83358         * lib/xstrtol.c (__xstrtol): If there is no number but there
83359         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
83360         Accept 'K' as well as 'k'.
83361
83362 2001-12-15  Jim Meyering  <meyering@lucent.com>
83363
83364         * lib/regex.h (__restrict_arr): Update from libc.
83365
83366         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
83367         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
83368         (STREQ): Define.
83369
83370 2001-12-14  Jim Meyering  <meyering@lucent.com>
83371
83372         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
83373         Suggestion from Bruno Haible.
83374
83375 2001-12-10  Jim Meyering  <meyering@lucent.com>
83376
83377         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
83378         xrealloc, Instead, include "xalloc.h".
83379         (initbuffer): Don't cast xmalloc return value to char*.
83380         (readline): Reword comment.
83381         Don't cast xrealloc return value to char*
83382         Return NULL, not 0.
83383
83384 2001-12-09  Jim Meyering  <meyering@lucent.com>
83385
83386         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
83387         about `signed and unsigned type in conditional expression'.
83388         * lib/posixtm.c (posix_time_parse): Likewise.
83389
83390         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
83391
83392         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
83393         to avoid a pedantic warning.
83394
83395         * lib/getstr.c: Don't include assert.h.
83396         (getstr): Remove warning-evoking assertions.
83397         Return -1 if offset parameter is out of bounds.
83398         Change the type of a local from int to size_t.
83399
83400         * lib/strftime.c (my_strftime_localtime_r): Include this function
83401         definition in the `#if ! HAVE_TM_GMTOFF' block.
83402
83403         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
83404         Include xalloc.h instead.
83405
83406 2001-12-02  Jim Meyering  <meyering@lucent.com>
83407
83408         * lib/tempname.c: Don't declare getenv, thus reverting the change of
83409         2001-11-18.  It's no longer necessary, now that stdlib.h is always
83410         included.
83411
83412         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
83413         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
83414
83415 2001-11-30  Akim Demaille  <akim@epita.fr>
83416
83417         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
83418         before being defined.
83419
83420 2001-11-27  Paul Eggert  <eggert@twinsun.com>
83421
83422         * lib/quotearg.h (quotearg_n, quotearg_n_style):
83423         First arg is int, not unsigned.
83424         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
83425         (SIZE_MAX, UINT_MAX): New macros.
83426         (quotearg_n_options): Abort if N is negative.
83427         Avoid overflow check on hosts where size_t is 64 bits and int
83428         is 32 bits, as overflow is impossible there.
83429         Fix off-by-one typo that caused unnecessary reallocation.
83430
83431 2001-11-27  Jim Meyering  <meyering@lucent.com>
83432
83433         * lib/tempname.c: Merge with version from libc.
83434         * lib/regex.c: Likewise.
83435
83436         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
83437         systems for which STDC_HEADERS is 0, it was not included, resulting in
83438         a warning about an integer-to-pointer conversion problem with getenv.
83439         Reported by Volker Borchert.
83440
83441 2001-11-26  Jim Meyering  <meyering@lucent.com>
83442
83443         * lib/gtod.h: Remove file.
83444         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
83445         * lib/gettimeofday.c: Don't include gtod.h.
83446         (GTOD_init): Remove function.
83447         (rpl_gettimeofday): Do its job here instead, rather than aborting.
83448         Suggestion from Volker Borchert.
83449
83450 2001-11-23  Jim Meyering  <meyering@lucent.com>
83451
83452         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
83453         it.
83454         * lib/hash.c (struct hash_table): Define it here instead.
83455
83456 2001-11-22  Jim Meyering  <meyering@lucent.com>
83457
83458         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
83459
83460 2001-11-20  Jim Meyering  <meyering@lucent.com>
83461
83462         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
83463         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
83464
83465 2001-11-19  Jim Meyering  <meyering@lucent.com>
83466
83467         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
83468         directory.  Use "conftestXXXXXX" as the template.
83469         Suggestion from Paul Eggert.
83470
83471         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
83472         immediately, so the test doesn't mistakenly hit the max-open-files
83473         limit.
83474
83475 2001-11-18  Paul Eggert  <eggert@twinsun.com>
83476
83477         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
83478         (TEMPORARIES): New macro.
83479         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
83480         removes an artificial limitation (e.g. HP-UX 10.20, where
83481         TMP_MAX is 17576).
83482
83483 2001-11-18  Jim Meyering  <meyering@lucent.com>
83484
83485         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
83486
83487 2001-11-18  Jim Meyering  <meyering@lucent.com>
83488
83489         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
83490         on SunOS 4.
83491
83492         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
83493         files will be created before anything else.
83494
83495 2001-11-17  Paul Eggert  <eggert@twinsun.com>
83496
83497         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
83498         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
83499
83500 2001-11-17  Jim Meyering  <meyering@lucent.com>
83501
83502         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
83503         Prompted by a report from Bob Proulx.
83504
83505         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
83506         Instead, require UTILS_FUNC_MKSTEMP.
83507
83508 2001-11-17  Jim Meyering  <meyering@lucent.com>
83509
83510         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
83511         Now, that's done as part of AC_FUNC_STRTOD.
83512
83513 2001-11-17  Jim Meyering  <meyering@lucent.com>
83514
83515         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83516         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83517         rather than group writable.  Patch by Juan F. Codagnone.
83518
83519         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83520         xrealloc, Instead, include "xalloc.h".
83521
83522         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83523         Remove explicit declarations of xmalloc, xrealloc,
83524         and xstrdup.  Instead, include "xalloc.h".
83525
83526         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83527         unlocked-io.h.
83528         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83529         Likewise.
83530         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83531
83532         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83533         Reported by Padraig Brady.
83534
83535         * lib/mkstemp.c: #undef mkstemp.
83536         Include config.h.
83537         (rpl_mkstemp): Rename from mkstemp.
83538         Protoize.
83539
83540 2001-11-16  Jim Meyering  <meyering@lucent.com>
83541
83542         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83543         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83544         determine the amount of total physical memory, use pstat_getstatic.
83545         HPUX-11 doesn't define _SC_PHYS_PAGES.
83546         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83547         If sysconf couldn't be used to determine the amount of available
83548         physical memory, use both pstat_getstatic and pstat_getdynamic.
83549         Based on a patch from Bob Proulx.
83550
83551 2001-11-10  Jim Meyering  <meyering@lucent.com>
83552
83553         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83554         (jm_PREREQ): Use it.
83555
83556 2001-11-09  Jim Meyering  <meyering@lucent.com>
83557
83558         * m4/jm-macros.m4: Require autoconf-2.52f.
83559         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83560         Use these AC_-prefixed names, not the AM_-prefixed ones.
83561
83562         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83563
83564 2001-11-05  Jim Meyering  <meyering@lucent.com>
83565
83566         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83567
83568 2001-11-04  Jim Meyering  <meyering@lucent.com>
83569
83570         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83571         $DEFS.
83572
83573 2001-11-03  Jim Meyering  <meyering@lucent.com>
83574
83575         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83576         of AC_DEFUN.
83577
83578         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83579         know the name of the variable in the macro definition.
83580
83581 2001-11-03  Jim Meyering  <meyering@lucent.com>
83582
83583         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83584         in argmatch_to_argument call.
83585
83586         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83587         argument.
83588
83589         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83590         e.g., a fault due to an attempt to free a NULL pointer.
83591
83592 2001-11-01  Jim Meyering  <meyering@lucent.com>
83593
83594         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83595         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83596
83597 2001-11-01  Jim Meyering  <meyering@lucent.com>
83598
83599         * lib/dirfd.c, lib/dirfd.h: New files.
83600         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83601
83602         * lib/hash.c (hash_print) [TESTING]: Clean up.
83603
83604 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83605
83606         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83607         to avoid a warning if -Wall.
83608
83609 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83610
83611         * README: New file
83612         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83613         (per RMS's instructions, this is now the canonical source)
83614         * lgpl/, gpl/: New directories.
83615
83616 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83617
83618         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83619
83620 2001-10-21  Jim Meyering  <meyering@lucent.com>
83621
83622         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83623         this code would end up calling gettext even in packages built
83624         with --disable-nls.
83625         * lib/getopt.c (_): Likewise.
83626         * lib/regex.c (_): Likewise.
83627
83628 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83629
83630         * m4/error.m4 (jm_PREREQ_ERROR):
83631         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83632         AC_FUNC_STRERROR_R does that.
83633         Check for strerror declaration.
83634
83635         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83636         are supposed to have them these days.
83637         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83638         Merge changes from latest Autoconf CVS.
83639         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83640         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83641         POSIX decided to standardize on the int flavor of strerror_r.
83642
83643 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83644
83645         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83646         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83647         Use strerror_r that is only a macro, even if it is not a function.
83648         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83649         (private_strerror): Use prototypes, not old-style function definition.
83650         (print_errno_message): New function.
83651         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83652         char*-flavored one.
83653         (error_tail, error, error_at_line): Use it.
83654
83655 2001-10-11  Jim Meyering  <meyering@lucent.com>
83656
83657         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83658         and quote_n (1, ... to avoid clobbering a buffer.
83659
83660 2001-10-05  Jim Meyering  <meyering@lucent.com>
83661
83662         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83663         hash-pjw.h.
83664         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83665         * lib/hash-pjw.h: New file.
83666
83667 2001-09-30  Jim Meyering  <meyering@lucent.com>
83668
83669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83670         `struct fsstat' has the `f_fstypename' member.
83671         Use that to define FS_TYPE, which is now used to make
83672         the getfsstat link test tighter.
83673
83674 2001-09-30  Jim Meyering  <meyering@lucent.com>
83675
83676         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83677         Include <sys/ucred.h>, for Apple Darwin.
83678         Include sys/mount.h and sys/fs_types.h only if available.
83679         (FS_TYPE): Define.
83680         (read_filesystem_list): Use FS_TYPE.
83681
83682 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83683
83684         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83685         a boolean context.
83686
83687 2001-09-29  Jim Meyering  <meyering@lucent.com>
83688
83689         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83690         [one-argument getmntent function]): Include stdio.h before mntent.h.
83691         SunOS 4.1.x needs it for the declaration of `FILE'.
83692         Patch by Volker Borchert.
83693
83694         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83695         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83696         sys/fs_types.h, and make the link-test for getfsstat guard #include
83697         directives with appropriate #if HAVE_*_H tests so that we can
83698         detect getfsstat on Apple Darwin1.3.7 systems.
83699         Reported by Nelson Beebe.
83700         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83701
83702 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83703
83704         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83705         #defines strtoimax.  Also treat the other strto* functions
83706         like strtoimax.
83707
83708         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83709         Check for strtoul and strtoumax,
83710         as those declarations are made even in the signed case.
83711         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83712         Likewise, for strtol and strtoimax.
83713
83714 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83715
83716         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83717         #defines strtoimax.  Also treat the other strto* functions
83718         like strtoimax.
83719
83720         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83721         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83722         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83723
83724 2001-09-26  Jim Meyering  <meyering@lucent.com>
83725
83726         Most macros in unlocked-io.h had the wrong number of arguments.
83727         * lib/gen-uio: New script.
83728         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83729         * lib/unlocked-io.hin: Remove file.
83730         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83731         rather than trying to embed it here.
83732         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83733         Reported by Padraig Brady.
83734
83735 2001-09-25  Volker Borchert  <bt@teknon.de>
83736
83737         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83738         `result'.
83739
83740 2001-09-24  Jim Meyering  <meyering@lucent.com>
83741
83742         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83743
83744 2001-09-23  Jim Meyering  <meyering@lucent.com>
83745
83746         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83747         instead of the mere test for existence of mntent.h.  The latter
83748         would get a false-positive on AIX 3.4 systems.
83749         In the outer getmntent if-block, don't die if neither of the getmntent
83750         tests succeeds.  Instead, just fall through and continue with the
83751         remaining tests.
83752
83753 2001-09-23  Jim Meyering  <meyering@lucent.com>
83754
83755         * lib/mountlist.c: Remove useless parentheses in #if directives.
83756         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83757         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83758
83759 2001-09-22  Jim Meyering  <meyering@lucent.com>
83760
83761         * m4/gettext.m4: New file.  From gettext.
83762         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83763         * m4/progtest.m4: Likewise
83764         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83765         * m4/glibc21.m4: Likewise.
83766
83767         * m4/libintl.m4: Remove.  No longer used.
83768
83769 2001-09-22  Jim Meyering  <meyering@lucent.com>
83770
83771         * lib/localcharset.c: Update from latest gettext.
83772         * lib/config.charset: Likewise.
83773
83774 2001-09-20  Jim Meyering  <meyering@lucent.com>
83775
83776         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83777         strtoimax.
83778         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83779         strtoumax.
83780
83781 2001-09-20  Jim Meyering  <meyering@lucent.com>
83782
83783         * lib/xstrtol.c (strtoimax): Guard declaration with
83784         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83785         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83786         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83787         (strtoumax): Likewise, for completeness (it wasn't necessary).
83788
83789 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83790
83791         * lib/strtoimax.c (HAVE_LONG_LONG):
83792         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83793         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83794         to work around bug in IBM C compiler.
83795
83796 2001-09-17  Jim Meyering  <meyering@lucent.com>
83797
83798         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83799         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83800         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83801         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83802         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83803         whenever the right hand side need not be expanded by the shell.
83804
83805 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83806
83807         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83808         library.  It's not correct, as some older glibcs are buggy.
83809         fnmatch wasn't fixed until glibc 2.2.
83810
83811         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83812         special shell magic here.
83813
83814 2001-09-16  Jim Meyering  <meyering@lucent.com>
83815
83816         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83817         * m4/jm-macros.m4: Require it.
83818
83819 2001-09-16  Jim Meyering  <meyering@lucent.com>
83820
83821         * lib/mkdir.c: New file.
83822
83823 2001-09-15  Jim Meyering  <meyering@lucent.com>
83824
83825         * m4/jm-macros.m4: Check for help2man.
83826
83827 2001-09-11  Jim Meyering  <meyering@lucent.com>
83828
83829         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83830         The body, by Paul Eggert, was moved here from configure.in.
83831         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83832
83833 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83834
83835         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83836         (jm_PREREQ): Use it.
83837
83838 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83839
83840         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83841         Use ssize_t, not int, to store result of readlink.
83842         Check for ssize_t overflow as well as size_t overflow,
83843         as POSIX says the result of readlink is implementation-defined
83844         when ssize_t overflows.
83845         Remove unnecessary cast to char*.
83846         Use free+malloc instead of realloc, as the storage doesn't need
83847         to be preserved and it's clearer and can be more efficient that way.
83848         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83849         * lib/xreadlink.h (xreadlink): Update prototype.
83850
83851 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83852
83853         * lib/xgetcwd.c: Revert some of the previous change; intead,
83854         fix the HAVE_GETCWD_NULL code to behave more like the
83855         !HAVE_GETCWD_NULL code used to.
83856
83857         Include "xalloc.h".
83858         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83859         invoke xalloc_die.
83860
83861 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83862
83863         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83864         sys/param.h, as pathmax.h includes them.
83865
83866 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83867
83868         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83869         (jm_PREREQ_XGETCWD): New macro.
83870
83871         * m4/getcwd.m4: New file.
83872
83873 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83874
83875         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83876         like the HAVE_GETCWD_NULL code.
83877         Include pathmax.h if not HAVE_GETCWD.
83878         Do not include xalloc.h.
83879         (INITIAL_BUFFER_SIZE): New symbol.
83880         Do not use xmalloc / xrealloc, since the caller is responsible for
83881         handling errors.  Preserve errno around `free' during failure.
83882         Do not overrun buffer when using getwd.
83883
83884 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83885
83886         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83887         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83888         getcwd (NULL, 0).
83889
83890 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83891
83892         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83893         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83894         spotted by Jim Meyering.
83895
83896 2001-09-03  Jim Meyering  <meyering@lucent.com>
83897
83898         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83899         failure.
83900
83901 2001-09-02  Jim Meyering  <meyering@lucent.com>
83902
83903         * lib/error.c: Update from GNU libc.
83904
83905 2001-09-01  Jim Meyering  <meyering@lucent.com>
83906
83907         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83908         Used by df.
83909
83910 2001-09-01  Jim Meyering  <meyering@lucent.com>
83911
83912         * lib/xreadlink.c: New file.
83913         * lib/xreadlink.h: New file.
83914         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83915         xreadlink.h.
83916
83917         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83918         doesn't conflict with sparc Solaris 7's definition in
83919         /usr/include/sys/int_types.h.
83920
83921         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83922         files.
83923         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83924         and strncasecmp as r-values.  Unixware didn't have declarations.
83925
83926 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83927
83928         * lib/xstrtol.h: Add copyright notice.
83929         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83930         LONGINT_INVALID_SUFFIX_CHAR.
83931
83932 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83933
83934         * lib/xstrtol.c (strtoimax): New decl.
83935
83936 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83937
83938         * lib/xgetcwd.c: Don't include pathmax.h.
83939         Include stdlib.h and unistd.h if available.
83940         Include xalloc.h.
83941         (xmalloc, xstrdup, free): Remove decls.
83942         (xgetcwd): Don't assume sizes fit in unsigned.
83943         Check for overflow when computing sizes.
83944         Simplify reallocation code.
83945
83946 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83947
83948         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83949         a directory's st_size can have an arbitrary value, so the old
83950         usage could waste an arbitrary amount of memory.  All uses
83951         changed.
83952         * lib/savedir.h: Update prototype.
83953
83954 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83955
83956         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83957
83958         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83959         old strtoimax.c.
83960
83961         Also, make the following further changes to make this file's
83962         configuration more similar to that of strtol.c:
83963         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83964         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83965         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83966         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83967         changed to signed values.
83968
83969         And make the following changes as well:
83970         Fix copyright notice, as 1999 was missing.
83971         (verify): New macro.
83972         (strtoimax): Check sizes at compile-time, not run-time.
83973         Prefer strtol to strtoll if both work.
83974         (main): Remove; it was not that useful and was a pain to maintain.
83975
83976         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83977
83978 2001-08-31  Jim Meyering  <meyering@lucent.com>
83979
83980         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83981         Use an initial, malloc'd, buffer of length 128 rather than
83982         a statically allocated one of length 1024.
83983
83984 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83985
83986         Simplify code, partly by assuming autoconf 2.52 semantics.
83987
83988         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83989
83990         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83991         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83992         All uses removed.
83993         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83994         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83995         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83996         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83997         jm_AC_HEADER_INTTYPES_H.
83998         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83999
84000         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
84001
84002         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84003         Quote first arg of AC_DEFUN.
84004         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
84005         since they are needed to parse the include file even if we need
84006         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
84007         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
84008         but with opposite signedness.
84009
84010 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84011
84012         Merge 'exclude' changes from tar 1.13.22.
84013         This fixes one or two unlikely storage allocation overflow bugs,
84014         but doesn't change user-visible behavior otherwise.
84015
84016 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84017
84018         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
84019         (jm_PREREQ_EXCLUDE): New macro.
84020
84021 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84022
84023         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
84024         tm to be declared.
84025
84026 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84027
84028         * lib/hash.c: Remove '2001' from copyright notice.
84029
84030 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84031
84032         * lib/full-write.h: New file.
84033         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
84034         * lib/full-write.c: Correct credits, as cccp.c no longer
84035         exists and anyway it was so heavily changed from the old cccp
84036         code as to be unrecognizable.  Include full-write.h.
84037         (full_write): Return size_t, with short writes meaning failure.
84038         All callers changed.  This fixes a bug with large buffers
84039         on 64-bit hosts.
84040         * lib/utime.c: Include full-write.h.
84041
84042 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84043
84044         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
84045         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
84046         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
84047         Include if available.
84048         (<xalloc.h>): Include
84049         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
84050         (verify): New macro.  Use it to verify that EXCLUDE macros do not
84051         collide with FNM macros.
84052         (struct patopts): New struct.
84053         (struct exclude): Use it, as exclude patterns now come with options.
84054         (new_exclude): Support above changes.
84055         (new_exclude, add_exclude_file):
84056         Initial size must now be a power of two to simplify overflow checking.
84057         (free_exclude, fnmatch_no_wildcards): New function.
84058         (excluded_filename): No longer requires options arg, as the options
84059         are determined by add_exclude.  Now returns bool, not int.
84060         (excluded_filename, add_exclude):
84061         Add support for the fancy new exclusion options.
84062         (add_exclude, add_exclude_file): Now takes int options arg.
84063         Check for arithmetic overflow when computing sizes.
84064         (add_exclude_file): xrealloc might modify errno, so don't
84065         realloc until after errno might be used.
84066
84067         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
84068         New macros.
84069         (free_exclude): New decl.
84070         (add_exclude, add_exclude_file): Now takes int options arg.
84071         (excluded_filename): No longer requires options arg, as the options
84072         are determined by add_exclude.  Now returns bool, not int.
84073
84074 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84075
84076         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
84077
84078 2001-08-27  Jim Meyering  <meyering@lucent.com>
84079
84080         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
84081
84082         * lib/version-etc.c (N_): Remove definition.
84083         Revert most of last change.
84084         Instead, simply don't mark the `Copyright...' string for translation.
84085         Based on advice from Paul Eggert.
84086
84087         * lib/strtoxmax.c: Tweak comment.
84088
84089 2001-08-26  Jim Meyering  <meyering@lucent.com>
84090
84091         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
84092
84093         * m4/xstrtoimax.m4: New file.
84094         * m4/xstrtoumax.m4: Add comments explaining why we
84095         AC_REPLACE_FUNCS(strtol).
84096
84097 2001-08-26  Jim Meyering  <meyering@lucent.com>
84098
84099         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
84100         of copyright with `%s' so translators don't get an untranslated
84101         message in 2002.
84102         (COPYRIGHT_YEAR): Define.
84103         (version_etc): Use fprintf rather than fputs.
84104         Suggestion from Ulrich Drepper.
84105
84106         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
84107
84108         * lib/strtoll.c: New file, from GNU libc.
84109         * lib/xstrtoimax.c: New file.
84110
84111         * lib/xstrtol.h: Add xstrtoimax.
84112         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
84113         * lib/strtoimax.c: New file.  Likewise, but first define
84114         STRTOUXMAX_SIGNED.
84115
84116         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
84117         ...
84118         * lib/strtoxmax.c: ... then renamed to this.
84119
84120 2001-08-18  Paul Eggert  <eggert@twinsun.com>
84121
84122         * m4/inttypes.m4: Add AC_PREREQ(2.13).
84123         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
84124         (jm_AC_TYPE_INTMAX_T): New macro.
84125         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
84126
84127         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
84128
84129         * m4/longlong.m4: Renamed from ulonglong.m4.
84130         * m4/inttypes.m4: Renamed from inttypes_h.m4.
84131         * m4/uintmax_t.m4: Removed.
84132
84133 2001-08-13  Paul Eggert  <eggert@twinsun.com>
84134
84135         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
84136         Port to Solaris 8, where 'sed' requires a space after the 'r'
84137         command, and where sh dislikes "$/".  Clean up the spacing a bit.
84138         Redirect output to $tmp just once.
84139
84140 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
84141
84142         * lib/addext.c (<errno.h>): Include.
84143         (errno): Declare if not defined.
84144         (addext): Work correctly when pathconf returns -1 and leaves
84145         errno alone because there is no limit.  Also, work even if
84146         pathconf returns a value greater than SIZE_MAX.
84147
84148 2001-08-12  Jim Meyering  <meyering@lucent.com>
84149
84150         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
84151         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
84152         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
84153         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
84154         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
84155         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
84156         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
84157         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
84158         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
84159         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
84160         utime.m4, utimes.m4, xstrtoumax.m4:
84161         Quote the first argument in each use of AC_DEFUN.
84162
84163 2001-08-12  Jim Meyering  <meyering@lucent.com>
84164
84165         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
84166         Simply `return getcwd (NULL, 0);'.
84167         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
84168         Use 1300 as initial value for length, not PATH_MAX.
84169
84170         * lib/pathmax.h: Clean up cpp syntax.
84171
84172 2001-08-12  Jim Meyering  <meyering@lucent.com>
84173
84174         * lib/gettimeofday.c: New file.
84175         * lib/gtod.h: New file.
84176         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
84177
84178 2001-08-05  Jim Meyering  <meyering@lucent.com>
84179
84180         * m4/jm-macros.m4: Require autoconf-2.52.
84181
84182 2001-08-04  Jim Meyering  <meyering@lucent.com>
84183
84184         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
84185         stmt, to get in sync with glibc.
84186
84187 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84188
84189         The following changes are from gettext 0.10.39 as maintained by
84190         Bruno Haible.
84191
84192         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
84193         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
84194         with inverted sense.  All uses changed.
84195
84196         * lib/mbswidth.c: Don't include <limits.h>.
84197         Include <stdlib.h> and <string.h> unconditionally.
84198         (iswcntrl, mbsinit, ISCNTRL): New macros.
84199         (mbsnwidth): Use K&R style function declarations.
84200         Don't bother checking for MB_LEN_MAX == 1, since the compiler
84201         can optimize it when MB_CUR_MAX == 1.
84202         The width of control characters is zero, not 1.
84203
84204 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84205
84206         The following changes are from gettext 0.10.39 as maintained by
84207         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
84208
84209         * m4/codeset.m4: Upgrade to serial AM1.
84210         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
84211         all uses changed.  Quote first arg of AC_DEFUN.
84212         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
84213
84214         * m4/iconv.m4: Upgrade to serial AM2.
84215         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
84216         Add --with-libconv-prefix.
84217         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
84218         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
84219         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
84220         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
84221         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
84222
84223         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
84224         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
84225         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
84226         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
84227         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
84228         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
84229         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84230         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
84231         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
84232
84233         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
84234         string.h any more.
84235
84236         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
84237         not the default value.
84238
84239         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
84240         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
84241         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
84242         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
84243         Also check for iswcntrl, used for wcwidth fallback.
84244         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
84245         to Autoconf 2.13.
84246
84247 2001-08-03  Jim Meyering  <meyering@lucent.com>
84248
84249         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
84250         as it was in the original.  Reported by Paul Eggert.
84251
84252 2001-07-16  Jim Meyering  <meyering@lucent.com>
84253
84254         * m4/gettimeofday.m4: New file.
84255         Prompted by a report from Bernhard Baehr.
84256
84257 2001-07-15  Jim Meyering  <meyering@lucent.com>
84258
84259         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
84260         stuff. Now it's in ../Makefile.cfg.
84261
84262 2001-07-15  Jim Meyering  <meyering@lucent.com>
84263
84264         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
84265         (BUILT_SOURCES): Add unlocked-io.h.
84266         (io_functions): Define.
84267         (unlocked-io.h): New rule.
84268         (DISTCLEANFILES): Add unlocked-io.h.
84269         (all-local): Depend on unlocked-io.h, to ensure it is created.
84270
84271         * lib/unlocked-io.hin: New file
84272
84273         * lib/regex.c: Update from glibc.
84274
84275 2001-07-05  Jim Meyering  <meyering@lucent.com>
84276
84277         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
84278         recommendation.
84279         (libfetish_a_SOURCES): Put all .h files here instead.
84280         Remove a thus-exposed (better checks in automake) duplicate and
84281         two unnecessary .h files.
84282
84283 2001-07-04  Jim Meyering  <meyering@lucent.com>
84284
84285         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
84286         that generates jm-glibc-io.m4 so that it doesn't trigger any make
84287         distcheck failure.
84288
84289 2001-07-02  Jim Meyering  <meyering@lucent.com>
84290
84291         The following changes were prompted by suggestions from Bruno Haible.
84292
84293         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
84294         is now generated.
84295         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
84296         definition of EXTRA_DIST.
84297         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
84298         ensure that the generated file is created/updated whenever the list
84299         of $(unlocked_functions) is changed.
84300         (jm-glibc-io.m4): New rule.
84301         (unlocked-io.h): New rule -- currently unused.
84302
84303 2001-06-24  Jim Meyering  <meyering@lucent.com>
84304
84305         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
84306         unmatched right bracket, rather than kludging it with an extra,
84307         falsely-matching quote in a comment.  Patch by Akim Demaille.
84308
84309 2001-06-11  Jim Meyering  <meyering@lucent.com>
84310
84311         * lib/regex.c: Update from GNU libc.
84312
84313 2001-05-27  Jim Meyering  <meyering@lucent.com>
84314
84315         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
84316         Check for ut_type in struct utmp.
84317
84318 2001-05-27  Jim Meyering  <meyering@lucent.com>
84319
84320         * lib/readutmp.h (UT_TYPE): Define.
84321
84322 2001-05-24  Jim Meyering  <meyering@lucent.com>
84323
84324         * lib/argmatch.c: Include "quote.h".
84325         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
84326         quote function.  Reported by Göran Uddeborg.
84327
84328 2001-05-22  Jim Meyering  <meyering@lucent.com>
84329
84330         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
84331         now that we use the package-supplied version unconditionally.
84332         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
84333
84334 2001-05-21  Jim Meyering  <meyering@lucent.com>
84335
84336         * m4/regex.m4: Change a couple backticks to single quotes to avoid
84337         shell syntax errors.
84338
84339 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84340
84341         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
84342
84343 2001-05-20  Paul Eggert  <eggert@twinsun.com>
84344
84345         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
84346         Don't bother to check library strftime, since
84347         we'll be using our own my_strftime function anyway.
84348         Define my_strftime instead of strftime.
84349
84350 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
84351
84352         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
84353         which is not yet declared.
84354
84355 2001-05-15  Jim Meyering  <meyering@lucent.com>
84356
84357         * m4/regex.m4: Use proper quoting so brackets appear in the test
84358         program.
84359         Reported by, and with help from, Bruno Haible.
84360
84361 2001-05-13  Jim Meyering  <meyering@lucent.com>
84362
84363         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
84364         undefined.
84365
84366 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84367
84368         dirname code cleanup.  base_name now behaves more compatibly
84369         with POSIX basename when given file names that have trailing
84370         slashes, and similarly for dir_name.  Add new primitives
84371         base_len and dir_len.  Put the directory-name-related decls
84372         into dirname.h.
84373
84374         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
84375         * lib/backupfile.c (base_name): Likewise.
84376         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
84377         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
84378         * lib/makepath.c (strip_trailing_slashes): Likewise.
84379         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
84380         ISSLASH): Likewise.
84381         * lib/rename.c (strip_trailing_slashes): Likewise.
84382         * lib/same.c (base_name): Likewise.
84383         * lib/stripslash.c (ISSLASH): Likewise.
84384
84385         * lib/addext.c: Include <dirname.h> after size_t is defined.
84386         * lib/backupfile.c: Likewise.
84387
84388         * lib/addext.c (addext): Use base_len to trim redundant
84389         trailing slashes instead of doing it ourselves.
84390         But do not trim the last slash if it is not redundant.
84391
84392         * lib/backupfile.c (find_backup_file_name,
84393         max_backup_version): Use base_len instead of rolling it ourselves.
84394         Handle the case of "" and (on DOS) "C:" correctly.
84395
84396         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
84397         needed. Include <string.h>, <dirname.h>.
84398         (base_name): Allow file names ending in slashes, other than names
84399         that are all slashes.  In this case, return the basename followed
84400         by the slashes.  This is more general, and can be used in places
84401         where the original base_name purposely had an assertion failure.
84402         (base_len): New function.
84403
84404         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
84405         Do not include <assert.h>; no longer needed.
84406         Include xalloc.h.
84407         (memrchr): Remove decl.
84408         (dir_name_r): Remove.
84409         (dir_len): Renamed from dirlen.  All callers changed.
84410         Rewrite in terms of base_name, for simplicity and consistency.
84411         (dir_name): Never return NULL.  All callers changed.
84412         Do not include <stdlib.h> in test program; no longer needed.
84413         return 0; is fine for test program.
84414
84415         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
84416         New macros.
84417         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
84418
84419         * lib/path-concat.c (path_concat): Use base_len to compute
84420         base length, not strlen; this means we cannot rely on memcpy
84421         to null-terminate.
84422
84423         * lib/same.c (STREQ): Remove.
84424         (same_name): Handle the case where the basename ends in trailing '/'.
84425
84426         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
84427         a slash was stripped.  Do not strip the last slash after a
84428         file system prefix.
84429
84430 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84431
84432         * lib/Makefile.am (libfetish_a_SOURCES):
84433         Add strftime.c, since we now compile it on all hosts.
84434
84435         * lib/strftime.c (my_strftime):
84436         Define to nstrftime if emacs, but only if my_strftime is not defined.
84437         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
84438         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
84439         Add one more extra argument: a nanoseconds value.
84440         All uses changed.
84441         (ns): New macro.
84442         (my_strftime function): Add %N format.
84443         (emacs_strftimeu): Renamed from emacs_strftime,
84444         with extra ut argument.
84445
84446 2001-05-09  Paul Eggert  <eggert@twinsun.com>
84447
84448         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
84449
84450 2001-04-21  Jim Meyering  <meyering@lucent.com>
84451
84452         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
84453         doesn't interfere.
84454
84455 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84456
84457         * m4/ftruncate.m4: Check for chsize.
84458         Link with ftruncate.o unconditionally if ftruncate is missing.
84459         This was required when cross-compiling to i586-mingw32msvc.
84460
84461 2001-04-08  Jim Meyering  <meyering@lucent.com>
84462
84463         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
84464         recomputed; that's necessary when the offset spans a DST transition.
84465         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
84466
84467 2001-04-02  Jim Meyering  <meyering@lucent.com>
84468
84469         * lib/regex.h, regex.c: Update from GNU libc.
84470
84471 2001-03-24  Jim Meyering  <meyering@lucent.com>
84472
84473         * m4/jm-macros.m4: Require autoconf-2.49d.
84474
84475 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
84476
84477         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
84478
84479 2001-03-19  Paul Eggert  <eggert@twinsun.com>
84480
84481         * lib/version-etc.c (version_etc_copyright): Update to 2001.
84482
84483 2001-03-17  Jim Meyering  <meyering@lucent.com>
84484
84485         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
84486         now that the version in autoconf is equivalent.
84487         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
84488
84489         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
84490         Suggestion from Akim Demaille.
84491
84492         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
84493         (jm_PREREQ_TEMPNAME): New function.
84494
84495 2001-03-16  Paul Eggert  <eggert@twinsun.com>
84496
84497         * lib/tempname.c (uint64_t): Define to uintmax_t if
84498         not defined, and if UINT64_MAX is not defined.
84499         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
84500         Reported by John David Anglin.
84501
84502 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
84503
84504         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
84505         resolve alias if codeset is empty.
84506         * lib/config.charset (BeOS): Use wildcard syntax.
84507
84508 2001-03-13  Jim Meyering  <meyering@lucent.com>
84509
84510         * lib/path-concat.c (path_concat)
84511         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84512         concatenating e.g., `C:' and `foo'.
84513         From Bruno Haible.
84514
84515 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84516
84517         * lib/localcharset.c (locale_charset): Don't use
84518         setlocale(LC_CTYPE,NULL). Don't return NULL.
84519         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84520
84521 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84522
84523         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84524         support for DOS/DJGPP.
84525
84526 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84527
84528         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84529         lacks mkstemp.  Compile our own tempname.c if we compile our own
84530         mkstemp.c, as mkstemp relies on tempname.
84531
84532 2001-03-01  Jim Meyering  <meyering@lucent.com>
84533
84534         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84535         AH_VERBATIM really does output its argument verbatim.
84536
84537 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84538
84539         * lib/Makefile.am (libfetish_a_SOURCES):
84540         Add dup-safer.c, fopen-safer.c.
84541         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84542
84543         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84544         * lib/unistd-safer.h: New files.
84545
84546 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84547
84548         The mkstemp replacement is taken from glibc 2.2.2, with some
84549         portability fixes for use outside glibc, as follows:
84550
84551         * lib/tempname.c (struct_stat64): New macro.
84552         (direxists, __gen_tempname): Use it.
84553         This avoids a portability problem with Solaris 8.
84554
84555         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84556         (<stddef.h>, <stdint.h>, <string.h>):
84557         Include only if STDC_HEADERS || _LIBC.
84558         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84559         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84560         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84561         (__set_errno): Define this macro if <errno.h> doesn't.
84562         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84563         Define these macros if <stdio.h> doesn't.
84564         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84565         Define these macros if <sys/stat.h>
84566         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84567         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84568         __xstat64): Define if not _LIBC.
84569         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84570         (__gen_tempname): Invoke gettimeofday only if
84571         HAVE_GETTIMEOFDAY || _LIBC;
84572         otherwise, fall back on plain "time".
84573         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84574
84575         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84576
84577         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84578
84579 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84580
84581         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84582
84583 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84584
84585         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84586         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84587         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84588         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84589
84590 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84591
84592         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84593         Remove workaround macros for hosts that have mbrtowc but not
84594         mbstate_t, as we now insist on proper declarations for both
84595         before using mbrtowc.
84596
84597 2001-02-17  Jim Meyering  <meyering@lucent.com>
84598
84599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84600         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84601         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84602         UnixWare 7.1.1.
84603
84604         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84605         rather than AC_CACHE_VAL.
84606
84607 2001-02-17  Jim Meyering  <meyering@lucent.com>
84608
84609         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84610         around included file name.
84611
84612         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84613
84614         * lib/strftime.c: Update from GNU libc (the only changes were to
84615         comments).
84616
84617 2001-02-17  Jim Meyering  <meyering@lucent.com>
84618
84619         * lib/regex.c: Update from libc.
84620
84621 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84622
84623         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84624         clash.
84625
84626 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84627
84628         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84629         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84630         Reported by Mark Hounschell via Paul Eggert.
84631
84632 2001-02-07  Jim Meyering  <meyering@lucent.com>
84633
84634         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84635
84636 2001-02-05  Jim Meyering  <meyering@lucent.com>
84637
84638         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84639         it includes the patch required for `large file' support with at least
84640         HP-UX's 10.20 /bin/cc.
84641
84642 2001-02-03  Jim Meyering  <meyering@lucent.com>
84643
84644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84645         AS_IF, now that it works once again (mysteriously).
84646         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84647
84648 2001-01-30  Jim Meyering  <meyering@lucent.com>
84649
84650         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84651         * m4/chown.m4: Rename conftestchown to conftest.chown.
84652         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84653         s/conftestdir2/conftest.d2/.
84654         * m4/utimes.m4: s/conftestdata/conftest.data/
84655         Inspired by Pavel Roskin's change in autoconf.
84656
84657 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84658
84659         * lib/config.charset: Update for FreeBSD 4.2.
84660
84661 2001-01-27  Jim Meyering  <meyering@lucent.com>
84662
84663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84664         a use of AS_IF.
84665         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84666
84667 2001-01-26  Jim Meyering  <meyering@lucent.com>
84668
84669         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84670         quotearg.c includes it.
84671
84672 2001-01-26  Jim Meyering  <meyering@lucent.com>
84673
84674         * lib/quotearg.c: Include stddef.h.
84675         * lib/quote.c: Include stddef.h.
84676         Reported by Axel Kittenberger.
84677
84678         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84679         line in double quotes so that it evokes a better diagnostic.
84680         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84681         Reported by Axel Kittenberger.
84682
84683 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84684
84685         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84686         as if it was a `charset'.
84687
84688 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84689
84690         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84691         has const.
84692
84693 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84694
84695         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84696         to avoid a warning.  Add back 'const' to inptr.
84697
84698 2001-01-20  Jim Meyering  <meyering@lucent.com>
84699
84700         Be sure that headers are checked before used in code compiled
84701         for the type checks.
84702         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84703         In place of that, invoke jm_CHECK_ALL_TYPES.
84704         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84705         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84706         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84707         The check for ssize_t was mistakenly run before the test for unistd.h.
84708
84709         The configure-time check for stdbool.h was missing.
84710         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84711         (jm_PREREQ_HASH): New function.
84712
84713 2001-01-17  Jim Meyering  <meyering@lucent.com>
84714
84715         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84716         for autoconf-2.49c.
84717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84718
84719 2001-01-16  Jim Meyering  <meyering@lucent.com>
84720
84721         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84722         From Bruno Haible.
84723
84724 2001-01-14  Jim Meyering  <meyering@lucent.com>
84725
84726         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84727         foo and bar.  Create conftestdir/ in the script, not in the C code.
84728         Remove directories in the script, not in the C code.
84729         Remove conftestdir{,2} before trying to create the directory.
84730         Make the entire configure script fail if the mkdir fails.
84731
84732 2001-01-14  Jim Meyering  <meyering@lucent.com>
84733
84734         * lib/rename.c: New file.  From Volker Borchert.
84735         Include stdlib.h, string.h or strings.h, and xalloc.h.
84736         Use strip_trailing_slashes rather than open-coding it.
84737
84738 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84739
84740         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84741
84742 2001-01-03  Jim Meyering  <meyering@lucent.com>
84743
84744         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84745         of local `inptr' to avoid warning with some system declarations of
84746         iconv.
84747
84748 2001-01-02  Volker Borchert  <bt@teknon.de>
84749
84750         * m4/rename.m4: New file.
84751         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84752
84753 2001-01-01  Jim Meyering  <meyering@lucent.com>
84754
84755         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84756         even on systems with utmpx.h.  It's necessary for the declaration of
84757         utmp's ut_user member.  Reported by Andreas Jaeger.
84758
84759         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84760         available. They are required for the declarations of getgrgid and
84761         getpwuid resp.
84762         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84763         Reported by Andreas Jaeger.
84764
84765 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84766
84767         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84768         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84769         so `make install' also works in VPATH builds.
84770
84771 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84772
84773         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84774         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84775         can be used in subdirectories.
84776
84777 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84778
84779         * lib/modechange.c: Do not assume that mode_t uses the
84780         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84781         the other-execute bit of FOO even if S_IXOTH != 1.
84782
84783         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84784         WOTH, XOTH, ALLM): New macros.
84785         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84786          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84787         Use them.
84788         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84789         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84790         (mode_compile):
84791         No need to use uintmax_t; unsigned long is long enough.
84792         Don't bother to get suffix since we don't use it.
84793
84794 2000-12-26  Jim Meyering  <meyering@lucent.com>
84795
84796         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84797         better with autoheader.
84798
84799 2000-12-24  Jim Meyering  <meyering@lucent.com>
84800
84801         * lib/hash.c (is_prime): Return explicit boolean values.
84802         (hash_get_first): Return NULL to appease Irix5.6's 89.
84803         Reported by Nelson Beebe.
84804
84805 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84806
84807         * lib/localcharset.c (locale_charset): Add support for Win32.
84808
84809 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84810
84811         * lib/physmem.h, lib/physmem.c: New files.
84812
84813         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84814         (noinst_HEADERS): Add physmem.h.
84815
84816         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84817         't' for compatibility with Solaris 8 sort.
84818
84819 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84820
84821         * lib/config.charset: Add support for BeOS.
84822
84823 2000-12-17  Jim Meyering  <meyering@lucent.com>
84824
84825         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84826         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84827
84828 2000-12-16  Jim Meyering  <meyering@lucent.com>
84829
84830         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84831         N and M) would have treated it like `chown N:N FILE'.
84832
84833         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84834
84835 2000-12-16  Jim Meyering  <meyering@lucent.com>
84836
84837         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84838         SHELLS_FILE to a file name that's useful on djgpp systems.
84839         Include stdlib.h.
84840         (ADDITIONAL_DEFAULT_SHELLS): Define.
84841         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84842         Based mostly on a patch from Prashant TR.
84843
84844 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84845
84846         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84847         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84848         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84849
84850 2000-12-08  Andreas Schwab  <schwab@suse.de>
84851
84852         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84853         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84854
84855 2000-12-07  Jim Meyering  <meyering@lucent.com>
84856
84857         * lib/stripslash.c (ISSLASH): Define.
84858         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84859         `/'.
84860         From Prashant TR.
84861
84862         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84863         (dir_name_r): Declare this function as static.
84864         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84865         manifest itself on a name containing a mix of slashes and
84866         backslashes.
84867         Make this function work with names starting with a DOS-style
84868         drive letter and colon prefix.
84869         (dir_name): Append `.' if necessary.
84870         Based mostly on patches from Prashant TR and Eli Zaretskii.
84871
84872         * lib/dirname.h (dir_name_r): Remove prototype.
84873
84874 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84875
84876         * m4/off_t-format.m4: Remove this file.
84877         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84878
84879 2000-12-06  Jim Meyering  <meyering@lucent.com>
84880
84881         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84882         replacement strtoull, we may well need the replacement strtoul, too.
84883         Check for declarations of strtoul and strtoull.
84884         Check for strtol.  Mainly as a cue to cause automake to include
84885         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84886         Check for limits.h -- strtol.c needs it.
84887
84888 2000-12-05  Jim Meyering  <meyering@lucent.com>
84889
84890         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84891
84892 2000-12-04  Jim Meyering  <meyering@lucent.com>
84893
84894         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84895         Also include memory.h, stdlib.h, unistd.h if appropriate.
84896         Reported by Andreas Jaeger (conflicting declaration of malloc).
84897
84898 2000-12-02  Jim Meyering  <meyering@lucent.com>
84899
84900         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84901         * m4/jm-macros.m4 (jm_MACROS): require it.
84902
84903 2000-12-02  Jim Meyering  <meyering@lucent.com>
84904
84905         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84906
84907 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84908
84909         * lib/memrchr.c: Include <config.h> before any system include file.
84910
84911 2000-11-30  Jim Meyering  <meyering@lucent.com>
84912
84913         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84914
84915 2000-11-30  Jim Meyering  <meyering@lucent.com>
84916
84917         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84918
84919 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84920
84921         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84922
84923 2000-11-26  Jim Meyering  <meyering@lucent.com>
84924
84925         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84926
84927 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84928
84929         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84930         size of (size_t) -1; it's not portable.
84931
84932 2000-11-17  Jim Meyering  <meyering@lucent.com>
84933
84934         * lib/strstr.c: Update from GNU libc.
84935
84936 2000-11-17  Akim Demaille  <akim@epita.fr>
84937
84938         * lib/obstack.h: Formatting changes.
84939         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84940         prevent type checking.
84941         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84942         cast the value to (void *): assigning a `foo *' to a `void *'
84943         variable is valid.
84944         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84945
84946 2000-11-16  Jim Meyering  <meyering@lucent.com>
84947
84948         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84949
84950 2000-11-11  Jim Meyering  <meyering@lucent.com>
84951
84952         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84953
84954 2000-11-10  Jim Meyering  <meyering@lucent.com>
84955
84956         * lib/obstack.h: Update from GNU libc.
84957         * lib/obstack.c: Likewise.
84958
84959 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84960
84961         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84962
84963 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84964
84965         * lib/getusershell.c (setusershell): Use rewind rather than
84966         fseek/fseeko, to avoid configuration hassles with fseeko.
84967         Don't bother opening SHELLS_FILE if shellstream is NULL;
84968         it's not necessary.
84969
84970 2000-11-05  Jim Meyering  <meyering@lucent.com>
84971
84972         * lib/makepath.h (make_dir): Declare.
84973         * lib/makepath.c (make_dir): Remove `static' attribute.
84974         Tweak a comment.
84975
84976 2000-11-04  Jim Meyering  <meyering@lucent.com>
84977
84978         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84979
84980 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84981
84982         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84983         last one in a bucket, advance to the next bucket.
84984
84985 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84986
84987         * lib/fnmatch.c: Do not comment out all the code if we are using
84988         the GNU C library, because in some cases we are replacing buggy
84989         code in the GNU C library itself.
84990
84991 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84992
84993         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84994         (regex_compile): Catch bogus \(\1\).
84995
84996 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84997
84998         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84999         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
85000         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
85001
85002 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85003
85004         * lib/error.h, getline.h, modechange.h:
85005         Remove "2000" from Copyright line, as the file hasn't been
85006         changed this year other than in the copyright notice.
85007
85008         * lib/xalloc.h: Add "2000" to Copyright line, as this file
85009         was changed this year.
85010
85011 2000-10-29  Jim Meyering  <meyering@lucent.com>
85012
85013         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
85014         renaming.
85015         * m4/ls-mntd-fs.m4: Likewise
85016
85017 2000-10-29  Jim Meyering  <meyering@lucent.com>
85018
85019         * lib/xstat.in: Fix grammar in comment.
85020
85021 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
85022
85023         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
85024         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
85025         doesn't define __restrict_arr.
85026
85027 2000-10-28  Jim Meyering  <meyering@lucent.com>
85028
85029         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
85030         (jm_PREREQ_MEMCHR): New function.
85031
85032 2000-10-28  Jim Meyering  <meyering@lucent.com>
85033
85034         * lib/memchr.c: Update from libc.
85035         Adjust for portability:
85036         [HAVE_STDLIB_H]: Include stdlib.h.
85037         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
85038         Undef __memchr, too.
85039         [!weak_alias]: Define __memchr to memchr.
85040
85041         * lib/regex.c: Update from libc.
85042         * lib/regex.h: Likewise.
85043         * lib/getopt1.c: Likewise.
85044         * lib/memcmp.c: Likewise.
85045
85046         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
85047         Avoid using fseek, when possible -- it's broken by design.
85048         Patch by Ulrich Drepper.
85049
85050 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
85051
85052         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
85053         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
85054         Giving in to popular pressure to shut up the compiler with casts.
85055
85056 2000-10-26  Jim Meyering  <meyering@lucent.com>
85057
85058         * lib/strftime.c: Update from libc.
85059
85060 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
85061
85062         * regex.c: More `unsigned char' -> `re_char' changes.
85063         Also change several `int' into `re_wchar_t'.
85064         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
85065         (PUSH_FAILURE_POINTER): Don't cast any more.
85066         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
85067         We want GCC to complain, since this piece of code makes
85068         re_match non-reentrant, which *should* be fixed.
85069         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
85070         (EXTEND_BUFFER): Use RETALLOC.
85071         (SET_LIST_BIT): Don't cast.
85072         (re_wchar_t): New type.
85073         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
85074         that those two functions will always properly return.
85075         (IMMEDIATE_QUIT_CHECK): Cast to void.
85076         (analyse_first): Use recursion rather than an explicit stack.
85077         (re_compile_fastmap): Can't fail anymore.
85078         (re_search_2): Don't check re_compile_fastmap for failure.
85079         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
85080         Now also sets the new value (passed in a new argument).
85081         (re_match_2_internal): Use it.
85082         Also, use a new var `reg' of type size_t when looping through regs
85083         rather than reuse the inappropriate `mcnt'.
85084
85085 2000-10-25  Jim Meyering  <meyering@lucent.com>
85086
85087         * lib/obstack.c: Update from libc.
85088
85089 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
85090
85091         * regex.c (regex_compile): Change the way of handling a range from
85092         a char less than 256 to a char not less than 256.
85093
85094 2000-10-24  Andrew Innes  <andrewi@gnu.org>
85095
85096         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
85097         NT-Emacs only.
85098         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
85099         so that re_search functions only quit when callers expect them to.
85100
85101 2000-10-23  Jim Meyering  <meyering@lucent.com>
85102
85103         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
85104         wrong.  That set_locale call must not have any side effects.
85105         From Paul Eggert.
85106
85107 2000-10-22  Jim Meyering  <meyering@lucent.com>
85108
85109         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
85110         [CYCLIC]: Remove now-unused definition.
85111
85112         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
85113         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
85114         Suggestion from Ulrich Drepper.
85115
85116 2000-10-21  Jim Meyering  <meyering@lucent.com>
85117
85118         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
85119         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
85120         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
85121
85122 2000-10-21  Jim Meyering  <meyering@lucent.com>
85123
85124         * lib/dirname.c (memrchr): Declare if necessary.
85125         (dir_name): Remove the restriction that there be no
85126         trailing slashes.  Now, this code skips past them, effectively
85127         ignoring them.
85128         [TEST_DIRNAME] (main): New unit tests.
85129
85130         * lib/memrchr.c: New file from GNU libc.
85131         Undef __memrchr, too.
85132         [!weak_alias]: Define __memrchr to memrchr.
85133         Guard weak_alias use with `#ifdef weak_alias'.
85134
85135 2000-10-21  Jim Meyering  <meyering@lucent.com>
85136
85137         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
85138         (dir_name): Use dir_name_r.
85139         * lib/dirname.h (dir_name_r): Declare it.
85140
85141 2000-10-17  Jim Meyering  <meyering@lucent.com>
85142
85143         * lib/quote.h (PARAMS): Define and use.
85144         Reported by Akim Demaille.
85145
85146         * lib/getopt.c: Update from libc.
85147
85148 2000-10-16  Jim Meyering  <meyering@lucent.com>
85149
85150         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
85151         setlocale.
85152         From Jan Fedak.
85153
85154 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
85155
85156         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
85157
85158 2000-09-25  Jim Meyering  <meyering@lucent.com>
85159
85160         * lib/md5.h (rol): Define (from GnuPG).
85161
85162         * lib/sha.c: Give credit (GnuPG) where due.
85163         (M): Use rol rather than open-coding it.
85164         Add a FIXME comment.
85165
85166 2000-09-21  Jim Meyering  <meyering@lucent.com>
85167
85168         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
85169         Reported by Michael Stone.
85170
85171 2000-09-20  Jim Meyering  <meyering@lucent.com>
85172
85173         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
85174         (noinst_HEADERS): Add sha.h.
85175         Based on code from Scott G. Miller and from GnuPG.
85176
85177 2000-09-18  Jim Meyering  <meyering@lucent.com>
85178
85179         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
85180         LIBS. Otherwise, everyone ends up linking with -lelf for some
85181         configurations.
85182         Reported by Mike Stone.
85183
85184 2000-09-15  Jim Meyering  <meyering@lucent.com>
85185
85186         * lib/regex.c: Update from libc.
85187
85188 2000-09-10  Jim Meyering  <meyering@lucent.com>
85189
85190         * lib/getopt.c (_getopt_internal): Update from glibc.
85191
85192 2000-09-09  Jim Meyering  <meyering@lucent.com>
85193
85194         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
85195         think it should be used as a general replacement for isascii.
85196         * lib/fnmatch.c: Likewise.
85197         * lib/mbswidth.c: Likewise
85198         * lib/regex.c: Likewise.
85199
85200         Don't use atoi.
85201         * lib/userspec.c: Include sys/param.h and limits.h.
85202         Include xstrtol.h.
85203         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85204         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
85205         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
85206         UID, GID.  Check range.
85207
85208 2000-09-06  Jim Meyering  <meyering@lucent.com>
85209
85210         * lib/getopt.c (_getopt_internal): Update from glibc.
85211
85212 2000-08-30  Jim Meyering  <meyering@lucent.com>
85213
85214         * lib/strftime.c: Merge in changes from GNU libc.
85215
85216 2000-08-26  Jim Meyering  <meyering@lucent.com>
85217
85218         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
85219         * m4/fpending.m4: New file.
85220
85221 2000-08-26  Jim Meyering  <meyering@lucent.com>
85222
85223         * lib/closeout.c: Include "__fpending.h".
85224         (close_stdout_status): Return right away if there's nothing to flush.
85225
85226         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
85227         * lib/__fpending.c: New file.
85228         * lib/__fpending.h: New file.
85229
85230 2000-08-20  Jim Meyering  <meyering@lucent.com>
85231
85232         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
85233         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
85234         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
85235
85236 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
85237
85238         Improve fileutils installation on systems where running
85239         programs (like install) can't be unlinked.
85240         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
85241         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
85242
85243 2000-08-07  Paul Eggert  <eggert@twinsun.com>
85244
85245         Standardize on "memory exhausted" instead of "Memory exhausted"
85246         or "virtual memory exhausted".
85247         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
85248         "virtual memory exhausted".
85249         * lib/same.c (same_name): Invoke xalloc_die instead of printing
85250         our own message.
85251         * lib/userspec.c (parse_user_spec): Likewise.
85252         * lib/bumpalloc.h: comment fix
85253         * lib/same.c, userspec.c: Include xalloc.h.
85254
85255         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
85256         not char *const and pointing to a constant array.
85257         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85258         (xrealloc): Comment fix.
85259
85260         * lib/userspec.c (parse_user_spec):
85261         Don't translate a message until just before returning,
85262         to avoid unnecessary translation.
85263
85264 2000-08-07  Jim Meyering  <meyering@lucent.com>
85265
85266         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
85267         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
85268         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
85269         getgroups.c, gethostname.c, getopt.h, group-member.c,
85270         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
85271         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
85272         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
85273         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
85274         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
85275         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
85276         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
85277         yesno.c: Back out Copyright date changes for each file with no change
85278         this year.  This eases coordination with other programs using the same
85279         source code modules.  From Paul Eggert.
85280
85281 2000-08-06  Paul Eggert  <eggert@twinsun.com>
85282
85283         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
85284         not char, for compatibility with glibc 2.1.3 strftime.c.
85285
85286 2000-08-03  Greg McGary  <greg@mcgary.org>
85287
85288         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
85289         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
85290         (EXTEND_BUFFER): Use them.
85291
85292 2000-08-01  Jim Meyering  <meyering@lucent.com>
85293
85294         * lib/dirname.c (ISSLASH): Define.
85295         (BACKSLASH_IS_PATH_SEPARATOR): Define.
85296         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
85297         both `\' and `/' may be use as path separators.
85298         Based on a patch from Prashant TR.
85299
85300 2000-07-31  Paul Eggert  <eggert@twinsun.com>
85301
85302         * lib/quotearg.c (quotearg_n_options): Don't make the initial
85303         slot vector a constant, since it might get modified.
85304
85305 2000-07-31  Jim Meyering  <meyering@lucent.com>
85306
85307         * lib/xmalloc.c: Use `virtual memory exhausted', not
85308         `Memory exhausted'.
85309         * lib/obstack.c (print_and_abort): Likewise.
85310
85311 2000-07-30  Paul Eggert  <eggert@twinsun.com>
85312
85313         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
85314         buffer, so that the caller can always quote one small
85315         component of a "memory exhausted" message in slot 0.
85316         From a suggestion by Jim Meyering.
85317
85318 2000-07-30  Jim Meyering  <meyering@lucent.com>
85319
85320         * lib/makepath.c (make_path): Quote the other instance, too.
85321
85322         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
85323         (STATIC_BUF_SIZE): Define.
85324         (quotearg_n_options): Use only statically allocated storage when
85325         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
85326         than STATIC_BUF_SIZE.
85327
85328 2000-07-29  Jim Meyering  <meyering@lucent.com>
85329
85330         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
85331         * lib/dirname.c (dir_name): Likewise.
85332
85333         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
85334         `/'.
85335
85336         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
85337         (dir_name): Assert that there are no trailing slashes.
85338
85339 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
85340
85341         * lib/mbswidth.h (mbswidth): Add a flags argument.
85342         (mbswidth): New declaration.
85343         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
85344         * lib/mbswidth.c (mbswidth): Add a flags argument.
85345         (mbsnwidth): New function.
85346
85347 2000-07-24  Jim Meyering  <meyering@lucent.com>
85348
85349         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
85350
85351 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85352
85353         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
85354
85355 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85356
85357         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
85358         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
85359         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
85360         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
85361         invoke multibyte primitives.
85362
85363 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85364
85365         * lib/quotearg.c:
85366         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
85367         so that mbstate_t is always defined.
85368
85369         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
85370         be 1 in at least one GCC installation, and this configuration
85371         error is likely to be common.  Ignoring MB_LEN_MAX hurts
85372         performance on hosts that have mbrtowc but have only unibyte
85373         locales, but I assume these hosts are rare.
85374
85375 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85376
85377         * lib/mbswidth.c (_XOPEN_SOURCE):
85378         Don't define; this causes problems on Solaris 7.
85379         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
85380
85381 2000-07-23  Jim Meyering  <meyering@lucent.com>
85382
85383         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
85384         too: getgrgid, getpwuid, getuid.
85385
85386 2000-07-23  Jim Meyering  <meyering@lucent.com>
85387
85388         * lib/basename.c (base_name): Add an assertion.
85389
85390 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
85391
85392         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
85393         shadow its mbsinit function.
85394
85395 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85396
85397         * lib/mbswidth.h: New file.
85398         * lib/mbswidth.c: New file.
85399         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
85400         (noinst_HEADERS): Add mbswidth.h.
85401
85402 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85403
85404         * lib/config.charset: Add support for FreeBSD. Improve support for
85405         HP-UX and IRIX 6.
85406
85407 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
85408
85409         * m4/mbswidth.m4: New file.
85410         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
85411
85412 2000-07-15  Jim Meyering  <meyering@lucent.com>
85413
85414         * lib/makepath.c: Include quote.h.
85415         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
85416         corresponding argument in a `quote (...)' call.
85417         Give better diagnostics.
85418
85419         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
85420         (noinst_HEADERS): Add quote.h.
85421
85422         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
85423         from tar's src/misc.c.
85424         * lib/quote.h: New file.  Prototypes for same.
85425
85426 2000-07-14  Paul Eggert  <eggert@twinsun.com>
85427
85428         From a suggestion by Bruno Haible.
85429         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
85430         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
85431         to decide whether to define the BeOS workaround macro;
85432         this adjusts to the change to AC_MBSTATE_T.
85433
85434 2000-07-14  Jim Meyering  <meyering@lucent.com>
85435
85436         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
85437         jm_AC_TYPE_UINTMAX_T.
85438
85439 2000-07-13  Paul Eggert  <eggert@twinsun.com>
85440
85441         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
85442
85443         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
85444         quotearg_buffer_restyled): Add support for
85445         clocale_quoting_style.  Undo previous change to
85446         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
85447         and "{RIGHT QUOTATION MARK}" msgids.
85448
85449 2000-07-10  Paul Eggert  <eggert@twinsun.com>
85450
85451         From a suggestion by Bruno Haible.
85452         * m4/mbstate_t.m4 (AC_MBSTATE_T):
85453         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
85454         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
85455         and mbstate_t, to a single-part test that simply defines mbstate_t.
85456         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
85457         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
85458
85459 2000-07-10  Jim Meyering  <meyering@lucent.com>
85460
85461         * m4/strerror_r.m4: Mirror the correction made in autoconf.
85462
85463         * m4/gnu-source.m4: Output to confdefs.h directly.
85464         Suggestion from Akim Demaille.
85465
85466 2000-07-09  Paul Eggert  <eggert@twinsun.com>
85467
85468         The old behavior of quoting `like this' doesn't look good with
85469         newer, ISO-style fonts.  See:
85470         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85471
85472         Instead, quote "like this" by default.  Let the translator
85473         tailor the locale-specific quoting behavior by providing
85474         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
85475
85476         * lib/quotearg.c (N_): New macro.
85477         (gettext_default): New function.
85478         (quotearg_buffer_restyled): Use
85479         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
85480         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
85481
85482 2000-07-09  Jim Meyering  <meyering@lucent.com>
85483
85484         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
85485         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
85486
85487         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
85488         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
85489
85490 2000-07-09  Jim Meyering  <meyering@lucent.com>
85491
85492         * lib/Most files: Update copyright dates to include 2000.
85493
85494 2000-07-08  Jim Meyering  <meyering@lucent.com>
85495
85496         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
85497         if not defined.
85498         (xgethostname): Remove now-unnecessary #ifdef.
85499         Move declaration of `err' into loop where it's used.
85500
85501 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85502         and Bruno Haible  <haible@clisp.cons.org>
85503
85504         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
85505         only if the test for an object-type mbstate_t fails.  This
85506         prevents us from mistakenly reporting that mbstate_t is a
85507         system object type after we "#define mbstate_t int" to work
85508         around its lack.
85509
85510 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85511         and Bruno Haible  <haible@clisp.cons.org>
85512
85513         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85514
85515 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85516
85517         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85518         to strerror_r.
85519         Include <ctype.h> for use of isalpha.
85520
85521 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85522
85523         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85524         by allocating a larger buffer. Test the gethostname return value for
85525         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85526         returns an error and ENAMETOOLONG isn't defined.
85527
85528 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85529
85530         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85531         dimension.
85532
85533 2000-07-04  Jim Meyering  <meyering@lucent.com>
85534
85535         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85536         of the deprecated AC_CHECKING.
85537
85538 2000-07-04  Jim Meyering  <meyering@lucent.com>
85539
85540         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85541         Reported by Bruno Haible.
85542
85543 2000-07-04  Jim Meyering  <meyering@lucent.com>
85544
85545         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85546         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85547         lacks mbrtowc.
85548
85549 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85550
85551         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85552         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85553
85554 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85555         and Bruno Haible  <haible@clisp.cons.org>
85556
85557         * lib/quotearg.c (mbrtowc):
85558         Assign to *pwc, and return 1 only if result is nonzero.
85559         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85560
85561 2000-07-03  Jim Meyering  <meyering@lucent.com>
85562
85563         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85564
85565 2000-07-03  Jim Meyering  <meyering@lucent.com>
85566
85567         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85568         This is necessary to get a definition of e.g., UTMP_FILE on
85569         HP-UX 10.20.
85570         From Bob Proulx.
85571
85572 2000-07-02  Jim Meyering  <meyering@lucent.com>
85573
85574         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85575
85576         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85577         AC_LIBOBJ(function_name).
85578         * m4/chown.m4: Likewise.
85579         * m4/fnmatch.m4: Likewise.
85580         * m4/ftruncate.m4: Likewise.
85581         * m4/getgroups.m4: Likewise.
85582         * m4/getline.m4: Likewise.
85583         * m4/group-member.m4: Likewise.
85584         * m4/jm-macros.m4: Likewise.
85585         * m4/lstat.m4: Likewise.
85586         * m4/malloc.m4: Likewise.
85587         * m4/memcmp.m4: Likewise.
85588         * m4/nanosleep.m4: Likewise.
85589         * m4/putenv.m4: Likewise.
85590         * m4/realloc.m4: Likewise.
85591         * m4/regex.m4: Likewise.
85592         * m4/stat.m4: Likewise.
85593         * m4/strftime.m4: Likewise.
85594
85595 2000-07-02  Jim Meyering  <meyering@lucent.com>
85596
85597         * lib/quotearg.c (mbstate_t): Don't define here.
85598
85599 2000-07-02  Jim Meyering  <meyering@lucent.com>
85600
85601         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85602
85603 2000-07-01  Jim Meyering  <meyering@lucent.com>
85604
85605         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85606
85607 2000-07-01  Jim Meyering  <meyering@lucent.com>
85608
85609         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85610         problem.
85611
85612 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85613
85614         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85615         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85616
85617 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85618
85619         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85620         per change in ../m4/ls-mntd-fs.m4.
85621         (read_filesystem_list): Ignore symbolic links.
85622
85623 2000-06-29  Jim Meyering  <meyering@lucent.com>
85624
85625         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85626         for declaration of strcmp.
85627
85628         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85629
85630         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85631         Avoid warning by casting result to `char *' to remove `const'.
85632
85633 2000-06-28  Jim Meyering  <meyering@lucent.com>
85634
85635         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85636         included by quotearg.c, for which we perform this test.  From
85637         Bruno Haible.
85638
85639 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85640
85641         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85642         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85643         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85644
85645 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85646
85647         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85648
85649 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85650
85651         savedir now sets errno on failure and invokes xmalloc to get memory.
85652         Fix a couple of other minor bugs while we're at it.
85653
85654         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85655         (NAMLEN): Remove macro.
85656         (malloc, realloc): Remove decls.
85657         (stpcpy): Likewise.
85658         ("xalloc.h"): Include.
85659         (NAME_SIZE_DEFAULT): New macro.
85660         (savedir): Use xmalloc / xrealloc to allocate memory.
85661         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85662         Skip "" directory entries.
85663         Use strlen to calculate directory entry length, since the old method
85664         is rarely used these days and isn't worth supporting.
85665         Don't use a pointer after freeing it.
85666         Check for integer overflow when calculating allocation size.
85667         Use memcpy to copy entries, instead of stpcpy.
85668         Set errno properly when returning NULL.
85669         Check for readdir error.
85670
85671 2000-06-26  Jim Meyering  <meyering@lucent.com>
85672
85673         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85674
85675 2000-06-25  Jim Meyering  <meyering@lucent.com>
85676
85677         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85678         Linux header bug when _XOPEN_SOURCE is defined to 500.
85679
85680 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85681
85682         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85683         deficiency.
85684
85685 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85686
85687         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85688         Include xalloc.h.
85689         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85690
85691 2000-06-24  Jim Meyering  <meyering@lucent.com>
85692
85693         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85694         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85695         for which strerror does return char*, but which lacks a conveniently
85696         accessible declaration of the function.  If the compile-test says
85697         strerror_r doesn't work, then resort to a `run'-test that works on
85698         BeOS and segfaults on DEC Unix.
85699
85700 2000-06-24  Jim Meyering  <meyering@lucent.com>
85701
85702         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85703
85704 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85705
85706         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85707         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85708
85709 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85710
85711         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85712         (mbrtowc, mbstate_t): Define substitutes if
85713         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85714         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85715         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85716
85717 2000-06-23  Jim Meyering  <meyering@lucent.com>
85718
85719         * m4/afs.m4: Add missing AC_MSG_RESULT.
85720         Reported by Bruno Haible.
85721
85722         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85723         Suggestion from Bruno Haible.
85724
85725 2000-06-23  Jim Meyering  <meyering@lucent.com>
85726
85727         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85728
85729 2000-06-21  Jim Meyering  <meyering@lucent.com>
85730
85731         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85732
85733 2000-06-21  Jim Meyering  <meyering@lucent.com>
85734
85735         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85736         (noinst_HEADERS): Add getstr.h.
85737
85738         * lib/getline.c (getstr): Move into a separate file.
85739         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85740         the following changes: new parameter, delim2; both delim[12]
85741         parameters have type `int', not `char'.  The latter would lose
85742         with 8-bit delimiters.
85743         * lib/getstr.h: New file.
85744
85745 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85746
85747         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85748         than 1024, return a memory chunk of least possible size, instead
85749         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85750         Use free/xmalloc instead of xrealloc to avoid copying for very long
85751         paths.
85752
85753 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85754
85755         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85756         the empty string.
85757
85758 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85759
85760         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85761         address, not strdup.  Include <stdlib.h> and don't declare free().
85762
85763 2000-06-19  Jim Meyering  <meyering@lucent.com>
85764
85765         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85766
85767 2000-06-18  Jim Meyering  <meyering@lucent.com>
85768
85769         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85770
85771         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85772         `checking whether...' message to be consistent with that of the
85773         lstat test.
85774
85775 2000-06-18  Jim Meyering  <meyering@lucent.com>
85776
85777         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85778         Besides, these days every porting target provides a mkdir function.
85779
85780         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85781         needed. (this snippet comes from src/system.h).
85782
85783 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85784
85785         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85786
85787 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85788
85789         * lib/human.c (adjust_value): New function.
85790         (human_readable_inexact): Apply rounding style even when
85791         printing approximate values.
85792
85793 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85794
85795         * lib/human.c (human_readable_inexact): Allow an input block
85796         size that is not a multiple of the output block size, and vice versa.
85797         Reported by Piergiorgio Sartor.
85798
85799 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85800
85801         * lib/getdate.y (get_date): Apply relative times after time
85802         zone indicator, not before.  Reported by Todd A. Jacobs.
85803
85804 2000-06-13  Jim Meyering  <meyering@lucent.com>
85805
85806         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85807
85808         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85809
85810 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85811
85812         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85813
85814 2000-06-12  Jim Meyering  <meyering@lucent.com>
85815
85816         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85817         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85818         optional argument.
85819         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85820         the optional argument, `lib'.
85821
85822 2000-06-08  Jim Meyering  <meyering@lucent.com>
85823
85824         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85825
85826 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85827
85828         Rewrite largefile configuration so that we don't need to run
85829         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85830         AC_CANONICAL_HOST in configure.in -- jmm]
85831
85832         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85833         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85834         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85835         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85836         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85837         All uses changed.
85838         Instead of inspecting the output of getconf, try to compile the
85839         test program without and with the macro definition.
85840         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85841         for getconf.  Instead, check for the needed flags by compiling
85842         test programs.
85843
85844 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85845
85846         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85847
85848 2000-06-04  Jim Meyering  <meyering@lucent.com>
85849
85850         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85851         SunOS 4.1.4 for which gid_t is an unsigned type.
85852
85853 2000-06-03  Jim Meyering  <meyering@lucent.com>
85854
85855         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85856         now that autoconf requires that.
85857
85858         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85859         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85860         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85861
85862 2000-06-03  Jim Meyering  <meyering@lucent.com>
85863
85864         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85865
85866 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85867
85868         * m4/glibc21.m4: New file.
85869         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85870
85871 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85872
85873         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85874         newer, don't install charset.alias.
85875         * lib/config.charset: Change the Linux/glibc rules so they become empty
85876         on glibc-2.1 or newer.
85877
85878 2000-06-02  Jim Meyering  <meyering@lucent.com>
85879
85880         * lib/mountlist.c: Back out last change.  Instead, do this...
85881         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85882         me_dummy member using the same `ignore'-testing code.
85883         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85884         fs_type strings.
85885         From Mark D. Roth.
85886
85887 2000-05-29  Jim Meyering  <meyering@lucent.com>
85888
85889         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85890         mounts with the `ignore' attribute.  Based on a patch from
85891         Mark D. Roth.
85892
85893 2000-05-28  Jim Meyering  <meyering@lucent.com>
85894
85895         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85896         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85897         * m4/stat.m4: Likewise.
85898         * m4/lstat.m4: Likewise.
85899         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85900
85901         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85902         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85903
85904 2000-05-26  Jim Meyering  <meyering@lucent.com>
85905
85906         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85907
85908 2000-05-24  Jim Meyering  <meyering@lucent.com>
85909
85910         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85911         autoconf requires that.
85912         * m4/lib-check.m4: Likewise.
85913         * m4/jm-macros.m4: Likewise.
85914         * m4/strftime.m4: Likewise.
85915
85916         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85917         AC_CHECK_DECLS, now that autoconf requires that.
85918
85919 2000-05-22  Jim Meyering  <meyering@lucent.com>
85920
85921         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85922         * m4/lstat.m4: Likewise.
85923
85924 2000-05-22  Jim Meyering  <meyering@lucent.com>
85925
85926         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85927
85928 2000-05-20  Jim Meyering  <meyering@lucent.com>
85929
85930         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85931         (jm_PREREQ): Use it.
85932
85933 2000-05-18  Jim Meyering  <meyering@lucent.com>
85934
85935         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85936         back, too, since it may have been modified by allocate_entry.
85937         (hash_delete): Rewrite to use neither the assignment operator
85938         nor the comma operator in an if-expression.
85939
85940 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85941
85942         * lib/closeout.c:
85943         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85944         Remove; no longer needed.
85945         "quotearg.h": Add include.
85946         (file_name): Do not bother to explicitly initialize to NULL; it's less
85947         efficient on some hosts.
85948         (close_stdout_status): Remove test as to whether stdout was already
85949         closed; it breaks for the case "echo x | sort >&-".
85950         Quote file name colons.
85951         Do not assume that _("write error") lacks format strings.
85952
85953 2000-05-15  Jim Meyering  <meyering@lucent.com>
85954
85955         * lib/version-etc.c (version_etc_copyright): Update the copyright
85956         string used in all --version output.
85957
85958 2000-05-14  Jim Meyering  <meyering@lucent.com>
85959
85960         * lib/closeout.c (close_stdout_set_file_name): New function.
85961         (close_stdout_status): Use new file-scoped global.
85962         Return right away if fstat says the stdout file descriptor is invalid.
85963         * lib/closeout.h (close_stdout_set_file_name): Declare.
85964
85965 2000-05-10  Jim Meyering  <meyering@lucent.com>
85966
85967         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85968         (close_stdout_set_status): New function.
85969         * lib/closeout.h (close_stdout_set_status): Declare.
85970
85971 2000-05-09  Jim Meyering  <meyering@lucent.com>
85972
85973         * m4/gettext.m4: Rename this...
85974         * m4/libintl.m4: ...to this.
85975
85976 2000-05-08  Jim Meyering  <meyering@lucent.com>
85977
85978         * lib/long-options.c: Don't include closeout.h.
85979         (parse_long_options): Don't call close_stdout for --version.
85980
85981 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85982
85983         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85984         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85985         2.1.3 bug.  This avoids a clash when files like regex.c define
85986         _GNU_SOURCE.
85987
85988 2000-05-06  Jim Meyering  <meyering@lucent.com>
85989
85990         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85991         (AC_REPLACE_FUNCS): Add strnlen.
85992
85993         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85994         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85995
85996         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85997         AC_SEARCH_LIBS call for nanosleep.
85998         (LIB_NANOSLEEP): Set and AC_SUBST.
85999
86000 2000-05-06  Jim Meyering  <meyering@lucent.com>
86001
86002         * lib/strnlen.c: Undefine __strnlen and strnlen.
86003         [!weak_alias]: Define __strnlen to strnlen.
86004
86005         * lib/atexit.c: New file, from libiberty.
86006
86007 2000-05-06  Jim Meyering  <meyering@lucent.com>
86008
86009         * lib/closeout.c (close_stdout_status): Also check for errors on the
86010         stderr stream.
86011
86012 2000-05-05  Jim Meyering  <meyering@lucent.com>
86013
86014         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
86015         AC_SEARCH_LIBS call for clock_gettime.
86016         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
86017
86018         * m4/search-libs.m4: Update from autoconf.
86019
86020         su doesn't work on Solaris 2.6.
86021         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
86022         <shadow.h>.  Reported by Dragos Harabor.
86023
86024 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
86025
86026         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
86027         memcpy instead of xmalloc, xrealloc, path_concat.
86028         (locale_charset): Treat empty environment variables as absent.
86029         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
86030
86031 2000-05-04  Jim Meyering  <meyering@lucent.com>
86032
86033         * lib/getopt.c: Update from glibc.
86034         * lib/obstack.c: Likewise.
86035         * lib/obstack.h: Likewise.
86036         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
86037         file
86038
86039         * lib/regex.h: Likewise.
86040         * lib/strndup.c: Likewise.
86041         * lib/strnlen.c: New file, from glibc.
86042
86043 2000-05-03  Jim Meyering  <meyering@lucent.com>
86044
86045         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
86046
86047 2000-05-02  Paul Eggert  <eggert@twinsun.com>
86048
86049         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
86050         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
86051         compile-time test, rather than inspecting host and OS, to
86052         decide whether to define _LARGEFILE_SOURCE.
86053
86054 2000-05-01  Jim Meyering  <meyering@lucent.com>
86055
86056         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
86057
86058         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
86059         Based on a patch from Bruno Haible.
86060
86061 2000-05-01  Jim Meyering  <meyering@lucent.com>
86062
86063         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
86064
86065 2000-04-29  Jim Meyering  <meyering@lucent.com>
86066
86067         * lib/path-concat.c: Declare strdup only if it's not defined.
86068         * lib/canon-host.c: Likewise.
86069
86070 2000-04-28  Jim Meyering  <meyering@lucent.com>
86071
86072         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
86073         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
86074         is included first, then limits.h is included by locale.h by libintl.h.
86075         From John David Anglin.
86076
86077 2000-04-25  Jim Meyering  <meyering@lucent.com>
86078
86079         * lib/makepath.c (S_IRWXUGO): Define.
86080         (make_path): Always perform explicit chmod if MODE specifies any
86081         of the `special' permission bits.  Prompted by a bug report against
86082         install from Mate Wierdl and Joost van Baal.
86083
86084 2000-04-18  Jim Meyering  <meyering@lucent.com>
86085
86086         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
86087         (jm_PREREQ): Use it.
86088
86089 2000-04-18  Jim Meyering  <meyering@lucent.com>
86090
86091         * lib/README: New file.
86092
86093         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
86094         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
86095
86096 2000-04-17  Jim Meyering  <meyering@lucent.com>
86097
86098         Get it right :-)
86099         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
86100         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
86101         Suggestion from Akim Demaille.
86102
86103 2000-04-17  Jim Meyering  <meyering@lucent.com>
86104
86105         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
86106         the definition of it to rpl_strftime also defined-away the system's
86107         declaration.
86108
86109 2000-04-15  Jim Meyering  <meyering@lucent.com>
86110
86111         Use `C' to denote so-called `contiguous' files, the same way
86112         that tar does.
86113         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
86114         (ftypelet): Use S_ISCTG.
86115         From Michael Deutschmann.
86116
86117 2000-04-14  Jim Meyering  <meyering@lucent.com>
86118
86119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
86120         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
86121         clobbered.
86122
86123 2000-04-14  Jim Meyering  <meyering@lucent.com>
86124
86125         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
86126
86127 2000-04-13  Jim Meyering  <meyering@lucent.com>
86128
86129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
86130         AH_VERBATIM to insert required #ifndef into config.h.in.
86131         Suggestion from Akim Demaille.
86132
86133 2000-04-12  Jim Meyering  <meyering@lucent.com>
86134
86135         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
86136         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
86137         Christian Krackowizer.
86138
86139         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
86140         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
86141         (AC_SYS_LARGEFILE): Require.
86142         (AM_C_PROTOTYPES): Require.
86143
86144 2000-04-08  Jim Meyering  <meyering@lucent.com>
86145
86146         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
86147         names don't conflict.  Reported by Eli Zaretskii.
86148
86149 2000-04-07  Jim Meyering  <meyering@lucent.com>
86150
86151         * lib/putenv.c: Move inclusion of errno.h so it follows that of
86152         sys/types.h, to work around system header problems on AIX 3.2.5.
86153         From Bruno Haible.
86154
86155 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
86156
86157         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
86158         bug.  Deal with the different error behavior of Irix iconv.
86159
86160 2000-04-05  Paul Eggert  <eggert@twinsun.com>
86161
86162         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
86163         IRIX if the installer said otherwise.
86164
86165 2000-04-05  Jim Meyering  <meyering@lucent.com>
86166
86167         Portability tweaks required for ultrix4.3.
86168         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
86169         (jm_CHECK_DECLS): Add getutent to the list of functions.
86170         (_jm_DECL_HEADERS): Add utmpx.h.
86171         From John David Anglin.
86172
86173         * m4/strftime.m4: Back out the 2000-04-02 change.
86174         Instead of that change, simply undefine putenv in the test program.
86175
86176 2000-04-05  Jim Meyering  <meyering@lucent.com>
86177
86178         Portability tweaks required for ultrix4.3.
86179         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
86180         getutent.
86181         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
86182         * lib/canon-host.c: Declare strdup.
86183         * lib/path-concat.c: Likewise.
86184         From John David Anglin.
86185
86186 2000-04-04  Jim Meyering  <meyering@lucent.com>
86187
86188         Be more DOS 8.3-friendly.
86189         * lib/ref-add.sin: Renamed from ref-add.sed.in.
86190         * lib/ref-del.sin: Renamed from ref-del.sed.in.
86191         * lib/Makefile.am: Reflect renaming.
86192         Reported by Eli Zaretskii.
86193
86194         Use a temporary file name that won't clash with `charset.alias'
86195         in the DOS 8.3 name space.
86196         * lib/Makefile.am (charset_tmp): Define.
86197         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
86198         (uninstall-local): Likewise.
86199         Reported by Eli Zaretskii.
86200
86201 2000-04-03  Jim Meyering  <meyering@lucent.com>
86202
86203         * m4/gettext.m4: Fix typo in comment.
86204
86205         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
86206         textutils/configure.in).  Suggestion from Paul Eggert.
86207         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
86208
86209 2000-04-02  Paul Eggert  <eggert@twinsun.com>
86210
86211         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
86212         variable in the shell rather than using putenv, which isn't
86213         portable.  This avoids the configure-time inter-test dependency
86214         on the potentially-renamed putenv function.
86215
86216 2000-03-30  Paul Eggert  <eggert@twinsun.com>
86217
86218         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
86219         before checking struct stat.st_blksize, so that
86220         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
86221
86222 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86223
86224         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
86225         since strftime.c uses HAVE_STRFTIME to decide whether to use
86226         the underlying strftime.
86227
86228 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86229
86230         * lib/time/strftime.c (my_strftime): Make sure we call the system
86231         strftime, not ourselves, when invoking the underlying strftime.
86232
86233 2000-03-24  Jim Meyering  <meyering@lucent.com>
86234
86235         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
86236         (charset_alias): Define.
86237         (install-exec-local): Factor out common code.
86238         (uninstall-local): Split lines longer than 80.
86239         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
86240         (SUFFIXES): Define.
86241         (.sed.in.sed): New rule.  Don't redirect directly to $@.
86242         (CLEANFILES): Add ref-add.sed and ref-del.sed.
86243
86244 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
86245
86246         * lib/config.charset: Output a line containing "Packages using this
86247         file".
86248         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
86249         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
86250         ref-del.sed): New rules.
86251
86252 2000-03-17  Jim Meyering  <meyering@lucent.com>
86253
86254         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
86255         Otherwise, include <strings.h>
86256
86257 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86258
86259         * lib/unicodeio.c (utf8_wctomb): New function.
86260         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
86261         format instead of in UCS-4 with platform dependent endianness.
86262
86263 2000-03-10  Jim Meyering  <meyering@lucent.com>
86264
86265         * m4/lib-check.m4: Look for getspnam in -lgen, too.
86266         From Marco Franzen.
86267
86268 2000-03-07  Paul Eggert  <eggert@twinsun.com>
86269
86270         * lib/savedir.c (savedir): Work even if directory size is
86271         negative; this can happen with some screwy NFS configurations.
86272
86273 2000-03-06  Jim Meyering  <meyering@lucent.com>
86274
86275         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
86276         if it's NULL (because we ran out of memory).  From Bruno Haible.
86277
86278 2000-03-05  Jim Meyering  <meyering@lucent.com>
86279
86280         * lib/localcharset.c ("path-concat.h"): Include.
86281         (get_charset_aliases): Use path_concat instead of ANSI string
86282         concatenation.
86283
86284         * lib/unicodeio.h (PARAMS): Define.
86285         Use it to guard prototype.
86286
86287 2000-03-04  Jim Meyering  <meyering@lucent.com>
86288
86289         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
86290         for lib/localcharset.c.
86291
86292 2000-03-04  Jim Meyering  <meyering@lucent.com>
86293
86294         * lib/Makefile.am (install-exec-local): Create $(libdir) before
86295         installing into it.
86296         (uninstall-local): Uncomment this rule so `make distcheck' works
86297         once again.
86298
86299         * lib/unicodeio.c (<errno.h>): Include it.
86300         (errno): Declare if not defined.
86301
86302         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
86303
86304         * lib/config.charset: New version, incorporating remarks from a linux
86305         i18n mailing list.  From Bruno Haible.
86306
86307 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
86308
86309         * m4/codeset.m4: New file.
86310         * m4/iconv.m4: New file.
86311         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
86312
86313 2000-03-03  Jim Meyering  <meyering@lucent.com>
86314
86315         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
86316
86317 2000-03-02  Jim Meyering  <meyering@lucent.com>
86318
86319         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
86320         the messages come out on separate lines.
86321
86322         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
86323         rather than jm_CHECK_DECLARATIONS.
86324         * m4/decl.m4: Remove now-unused file.
86325
86326         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
86327         geteuid.
86328
86329 2000-03-02  Jim Meyering  <meyering@lucent.com>
86330
86331         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
86332
86333 2000-03-01  Jim Meyering  <meyering@lucent.com>
86334
86335         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
86336         * lib/unicodeio.c: Likewise.
86337
86338 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
86339
86340         * lib/config.charset: New file.
86341         * lib/localcharset.c: New file.
86342         * lib/unicodeio.h, lib/unicodeio.c: New files.
86343         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
86344         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
86345         (noinst_HEADERS): Add unicodeio.h.
86346         (all-local, install-exec-local, charset.alias): New targets.
86347
86348 2000-02-28  Paul Eggert  <eggert@twinsun.com>
86349
86350         * lib/quotearg.c (ALERT_CHAR): New macro.
86351         (quotearg_buffer_restyled): Use it.
86352
86353 2000-02-27  Jim Meyering  <meyering@lucent.com>
86354
86355         * m4/check-decl.m4: Add getenv to the list.
86356
86357 2000-02-27  Jim Meyering  <meyering@lucent.com>
86358
86359         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
86360         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
86361
86362         * lib/backupfile.c: Guard inclusion of stdlib.h with
86363         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
86364         Declare malloc if needed.
86365
86366         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
86367         `#ifndef HAVE_DECL..'
86368         now that autoconf always defines the HAVE_DECL_ symbols.
86369         * lib/human.c: Likewise.
86370         * lib/same.c: Likewise.
86371         * lib/strtoumax.c: Likewise.
86372
86373         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
86374         declaration check was not run.
86375         * lib/hash.c: Likewise.
86376         * lib/human.c: Likewise.
86377         * lib/same.c: Likewise.
86378         * lib/strtoumax.c: Likewise.
86379
86380         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
86381         `.', then first look up the entire `.'-containing string as a login
86382         name.
86383
86384 2000-02-23  Jim Meyering  <meyering@lucent.com>
86385
86386         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
86387         in place of my hack.
86388
86389 2000-02-18  Paul Eggert  <eggert@twinsun.com>
86390
86391         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
86392         (textint): New typedef.
86393         (parser_control): Member year changed from int to textint.
86394         All uses changed.
86395         (YYSTYPE): Removed; replaced by %union with int and textint members.
86396         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
86397         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
86398         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
86399         (tSNUMBER, tUNUMBER): Now of type <textintval>.
86400         (date, number, to_year): Use width of number in digits, not its value,
86401         to determine whether it's a 2-digit year, or a 2-digit time.
86402         (yylex): Store number of digits of numeric tokens.
86403         Reported by John Kendall.
86404
86405         (parser_control): Changed from struct parser_control to typedef (for
86406         consistency).  All uses changed.
86407
86408         (tID): Removed; not used.
86409         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
86410
86411 2000-02-14  Paul Eggert  <eggert@twinsun.com>
86412
86413         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
86414         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
86415
86416 2000-02-12  Jim Meyering  <meyering@lucent.com>
86417
86418         * lib/userspec.c (ISDIGIT): Define it.
86419         (isdigit): Remove definition.
86420         (is_number): Use ISDIGIT, not isdigit.
86421         <libintl.h>: Include.
86422         (_ and N_): Define.
86423         (parse_user_spec): Mark translatable strings.
86424
86425 2000-02-10  Jim Meyering  <meyering@lucent.com>
86426
86427         With these changes, nanosleep.[ch] are finally enough like the other
86428         lib/* replacement files to compile on a few more losing systems.
86429
86430         * lib/nanosleep.h: Don't include config.h.
86431         Remove prototype from declaration of nanosleep.
86432         (PARAMS): Remove now-unneeded definition.
86433         * lib/nanosleep.c: #undef nanosleep.
86434         (rpl_nanosleep): Rename from nanosleep.
86435
86436 2000-02-10  Jim Meyering  <meyering@lucent.com>
86437
86438         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
86439         gnu_nanosleep to rpl_nanosleep.
86440
86441 2000-02-09  Jim Meyering  <meyering@lucent.com>
86442
86443         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
86444         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
86445
86446 2000-02-08  Akim Demaille  <akim@epita.fr>
86447
86448         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
86449         `[' and `]' and remove uses of `changequote'.
86450         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
86451         (AC_SYS_LARGEFILE): Likewise.
86452         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86453         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
86454         of changequote.
86455         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
86456         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
86457         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
86458         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
86459
86460 2000-02-05  Jim Meyering  <meyering@lucent.com>
86461
86462         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
86463         Remove explicit use of AC_HEADER_TIME.  It is required by
86464         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
86465         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
86466         in autoconf whereby the expansion of the latter ended up preceding
86467         the expansion of its prerequisite, AC_HEADER_TIME.
86468         Reported by Volker Borchert.
86469
86470 2000-02-03  Jim Meyering  <meyering@lucent.com>
86471
86472         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
86473
86474 2000-02-03  Jim Meyering  <meyering@lucent.com>
86475
86476         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
86477         rather than with `#if HAVE_UTMPNAME'.
86478
86479 2000-02-02  Jim Meyering  <meyering@lucent.com>
86480
86481         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
86482         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
86483         Reported by Eli Zaretskii.
86484
86485 2000-02-01  Jim Meyering  <meyering@lucent.com>
86486
86487         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
86488
86489 2000-01-31  Jim Meyering  <meyering@lucent.com>
86490
86491         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
86492         functions.  Add the time.h and sys/time.h headers along with the
86493         AC_REQUIRE'ment of AC_HEADER_TIME.
86494
86495 2000-01-31  Jim Meyering  <meyering@lucent.com>
86496
86497         * lib/nanosleep.h (nanosleep): Guard declaration with
86498         `#if ! HAVE_DECL_NANOSLEEP'.
86499         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
86500         the declaration in that vendor's sys/timers.h.
86501         Reported by Christian Krackowizer.
86502
86503         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
86504         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
86505         (ISPRINT): Likewise.
86506         Reported by Tom Tromey.
86507
86508 2000-01-30  Jim Meyering  <meyering@lucent.com>
86509
86510         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
86511
86512         * m4/prereq.m4 (utmp_includes): Define.
86513         Check for ut_user and ut_name members in both struct utmpx
86514         and struct utmp.
86515
86516 2000-01-30  Jim Meyering  <meyering@lucent.com>
86517
86518         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86519         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86520         header files where only utmpx.ut_user is declared.
86521
86522         * lib/readutmp.h (UT_USER): Define.
86523
86524 2000-01-29  Jim Meyering  <meyering@lucent.com>
86525
86526         * m4/lib-check.m4: New file containing library-related checks from
86527         fileutils and sh-utils (textutils had none).
86528
86529 2000-01-28  Jim Meyering  <meyering@lucent.com>
86530
86531         * m4/perl.m4: Change format of warning message to look more like that
86532         from the missing script.  Suggestion from François Pinard.
86533
86534 2000-01-25  Jim Meyering  <meyering@lucent.com>
86535
86536         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86537         well as time.h in the compile check.
86538         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86539         Fix typo in cross-compiling case: s/yes/no/.
86540
86541 2000-01-23  Jim Meyering  <meyering@lucent.com>
86542
86543         * m4/jm-macros.m4: Move df-related tests here from
86544         fileutils/configure.in
86545
86546         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86547         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86548
86549         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86550         s/space/ac_fsusage_space/.
86551         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86552
86553         * m4/ftruncate.m4: New file (derived from part of
86554         fileutils/configure.in).
86555         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86556         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86557
86558         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86559         AC_SUBST these here, rather than just in sh-util/configure.in, so
86560         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86561         all the same.
86562         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86563         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86564         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86565         (AC_SUBST(POW_LIBM)): Likewise.
86566         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86567
86568 2000-01-23  Jim Meyering  <meyering@lucent.com>
86569
86570         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86571         obstack.c.
86572
86573 2000-01-22  Jim Meyering  <meyering@lucent.com>
86574
86575         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86576
86577         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86578
86579         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86580         configure.in
86581         (AC_CHECK_HEADERS): Likewise for sh-utils.
86582         (AC_CHECK_HEADERS): Likewise for textutils.
86583         Merge the three lists of headers.
86584
86585         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86586         from fileutils' configure.in.
86587
86588         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86589         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86590         check-decl.m4.
86591
86592         * m4/check-decl.m4: Use #if rather than #ifdef.
86593         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86594         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86595         (_jm_DECL_HEADERS): Define new function.
86596         (jm_CHECK_DECLARATIONS): Require it.
86597
86598 2000-01-22  Jim Meyering  <meyering@lucent.com>
86599
86600         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86601         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86602         Required for some AIX systems.  Reported by Christian Krackowizer.
86603         [TESTING] (main): New function.
86604
86605         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86606         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86607         letters.
86608
86609         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86610         iswprint.
86611
86612         * lib/strverscmp.c (ISDIGIT): Define.
86613         (strverscmp): Use ISDIGIT, not isdigit.
86614
86615 2000-01-19  Jim Meyering  <meyering@lucent.com>
86616
86617         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86618         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86619         defines `struct timespec' in <sys/time.h>
86620
86621         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86622         Thanks to Akim for explaining.
86623
86624 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86625
86626         * lib/nanosleep.c (nanosleep):
86627         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86628         POSIX.1 doesn't require SA_INTERRUPT and some systems
86629         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86630         it's been part of POSIX.1 since day 1 (in 1988).
86631
86632 2000-01-17  Jim Meyering  <meyering@lucent.com>
86633
86634         * lib/interlock: Remove unused file.  Reported by François Pinard.
86635
86636 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86637
86638         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86639         alert, backslash, formfeed, and vertical tab unnecessarily in
86640         shell quoting style.
86641
86642 2000-01-16  Jim Meyering  <meyering@lucent.com>
86643
86644         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86645         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86646         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86647         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86648
86649 2000-01-16  Jim Meyering  <meyering@lucent.com>
86650
86651         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86652         because the latter didn't work.
86653
86654 2000-01-15  Jim Meyering  <meyering@lucent.com>
86655
86656         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86657         (AC_REPLACE_FUNCS): Add memcpy and memset.
86658         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86659         Add strpbrk.
86660         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86661
86662 2000-01-12  Jim Meyering  <meyering@lucent.com>
86663
86664         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86665         (jm_PREREQ): Use it.
86666         (jm_PREREQ_READUTMP): New macro.
86667         (jm_PREREQ): Use it.
86668
86669 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86670
86671         Quote multibyte characters correctly.
86672         * m4/c-bs-a.m4: New file.
86673         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86674         (jm_PREREQ): Use it.
86675
86676 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86677
86678         * m4/uintmax_t.m4: Port to autoconf 2.13.
86679
86680 2000-01-08  Jim Meyering  <meyering@ascend.com>
86681
86682         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86683         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86684
86685 2000-01-04  Jim Meyering  <meyering@ascend.com>
86686
86687         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86688         jm_STRUCT_DIRENT_D_TYPE.
86689         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86690         jm_STRUCT_DIRENT_D_INO.
86691         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86692         jm_STRUCT_UTIMBUF.
86693         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86694         renamings.
86695         * m4/utime.m4: Likewise.
86696
86697         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86698         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86699
86700 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86701
86702         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86703         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86704
86705 2000-01-02  Jim Meyering  <meyering@ascend.com>
86706
86707         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86708         remember if this is necessary.
86709
86710 1999-12-26  Jim Meyering  <meyering@ascend.com>
86711
86712         * m4/jm-macros.m4: Use it here.
86713         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86714
86715 1999-12-23  Jim Meyering  <meyering@ascend.com>
86716
86717         * m4/jm-macros.m4: Check for clock_gettime (moved from
86718         fileutils/configure.in)
86719         Check for gettimeofday.
86720
86721 1999-12-20  Jim Meyering  <meyering@ascend.com>
86722
86723         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86724         autoconf-2.14a-1999-12-20.
86725
86726 1999-12-19  Jim Meyering  <meyering@ascend.com>
86727
86728         * m4/lstat-slash.m4: New file.
86729         * m4/jm-macros.m4: Use the new macro:
86730         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86731
86732 1999-12-07  Jim Meyering  <meyering@ascend.com>
86733
86734         * m4/perl.m4: Require that File::Compare be available, too.
86735         Too many systems seem to lack it.
86736
86737         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86738         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86739
86740 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86741
86742         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86743         problem with the QNX 4.25 shell, which doesn't propagate exit
86744         status of failed commands inside shell assignments.
86745
86746 1999-11-17  Jim Meyering  <meyering@ascend.com>
86747
86748         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86749
86750 1999-11-07  Jim Meyering  <meyering@ascend.com>
86751
86752         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86753
86754 1999-11-06  Jim Meyering  <meyering@ascend.com>
86755
86756         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86757         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86758
86759 1999-11-05  Jim Meyering  <meyering@ascend.com>
86760
86761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86762         configure.in of textutils, fileutils, and sh-utils into this one
86763         (shared between those packages) file.
86764         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86765         AC_STRUCT_ST_BLKSIZE.
86766
86767 1999-11-03  Jim Meyering  <meyering@ascend.com>
86768
86769         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86770         of AC_CHECK_TYPE checks includes unistd.h.
86771         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86772         Suggestion from Akim Demaille.
86773
86774 1999-10-30  Jim Meyering  <meyering@ascend.com>
86775
86776         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86777         m4-quoted string.
86778         * m4/ls-mntd-fs.m4: Likewise.
86779         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86780         * m4/jm-winsz1.m4: Likewise.
86781
86782         * m4/const.m4: Remove file, since the fix made it into the experimental
86783         version of autoconf.
86784         * m4/mktime.m4: Likewise.
86785
86786         * m4/check-type.m4: Remove file, now that the latest version of
86787         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86788
86789         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86790         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86791         AC_CHECK_TYPE.
86792
86793 1999-10-04  Jim Meyering  <meyering@ascend.com>
86794
86795         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86796
86797 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86798
86799         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86800         2.95.1 bug with HP-UX 10.20.
86801
86802 1999-09-17  Jim Meyering  <meyering@ascend.com>
86803
86804         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86805         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86806         due to missing strdup (against sh-utils-2.0).
86807
86808 1999-08-29  Jim Meyering  <meyering@ascend.com>
86809
86810         * m4/jm-macros.m4: Require jm_BISON.
86811         * m4/bison.m4: New file.
86812
86813 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86814
86815         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86816         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86817
86818 1999-08-05  Jim Meyering  <meyering@ascend.com>
86819
86820         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86821         to avoid conflicts with `conftest' on 8+3 filesystems.
86822         Suggestion from Eli Zaretskii.
86823
86824 1999-08-04  Jim Meyering  <meyering@ascend.com>
86825
86826         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86827         fileutils and sh-utils (textutils's getline test was inadequate).
86828         (AM_FUNC_GETLINE): Run this test.
86829         (AC_CHECK_FUNCS): Check for getdelim.
86830         Reported by Bob Proulx.
86831
86832 1999-08-02  Jim Meyering  <meyering@ascend.com>
86833
86834         * m4/jm-macros.m4: Add a comment.
86835
86836 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86837
86838         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86839         <inttypes.h> defines strtoumax as a macro (and not as a
86840         function).
86841
86842 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86843
86844         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86845         that we can shift, multiply and divide unsigned long long
86846         values; Ultrix cc can't do it.
86847
86848 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86849
86850         * m4/mktime.m4: New file, which is a preview of what should appear
86851         in the next public autoconf release.
86852
86853 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86854
86855         * m4/lfs.m4: Remove this file.
86856         * m4/largefile.m4: New file.  It contains the old contents of
86857         lfs.m4, except that all names with prefix AC_LFS have been
86858         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86859         compatible with future autoconf versions.  Also, some minor m4
86860         quoting problems have been fixed.
86861
86862 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86863
86864         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86865         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86866         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86867         and simplify the shell code.
86868
86869 1999-08-01  Jim Meyering  <meyering@ascend.com>
86870
86871         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86872         m4.
86873
86874 1999-07-20  Jim Meyering  <meyering@ascend.com>
86875
86876         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86877
86878 1999-07-15  Jim Meyering  <meyering@ascend.com>
86879
86880         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86881
86882 1999-05-22  Jim Meyering  <meyering@ascend.com>
86883
86884         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86885
86886 1999-05-20  Jim Meyering  <meyering@ascend.com>
86887
86888         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86889         Add a colon after each `then' in case $4 is empty.
86890
86891 1999-05-16  Jim Meyering  <meyering@ascend.com>
86892
86893         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86894
86895 1999-05-10  Jim Meyering  <meyering@ascend.com>
86896
86897         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86898
86899         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86900         AC_FUNC_MKTIME.
86901
86902 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86903
86904         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86905
86906 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86907
86908         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86909         not CPPFLAGS, so that linking works correctly in IRIX.
86910
86911 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86912
86913         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86914
86915 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86916
86917         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86918         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86920         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86921         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86922
86923         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86924
86925 1999-04-20  Jim Meyering  <meyering@ascend.com>
86926
86927         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86928         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86929         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86930
86931 1999-04-18  Jim Meyering  <meyering@ascend.com>
86932
86933         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86934         * m4/jm-macros.m4: Use it.
86935
86936 1999-04-06  Jim Meyering  <meyering@ascend.com>
86937
86938         * m4/strftime.m4: Remove test for %f.
86939
86940 1999-03-29  Jim Meyering  <meyering@ascend.com>
86941
86942         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86943         superset of the AC_TYPE_* checks in the textutils, fileutils,
86944         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86945         AC_TYPE_PID_T.
86946
86947 1999-03-28  Jim Meyering  <meyering@ascend.com>
86948
86949         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86950         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86951         replaced e.g., in the *.sh files of the sh-utils.
86952
86953 1999-03-20  Jim Meyering  <meyering@ascend.com>
86954
86955         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86956         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86957         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86958
86959 1999-03-19  Jim Meyering  <meyering@ascend.com>
86960
86961         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86962
86963 1999-03-12  Jim Meyering  <meyering@ascend.com>
86964
86965         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86966
86967 1999-03-07  Jim Meyering  <meyering@ascend.com>
86968
86969         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86970         declared.
86971
86972 1999-02-17  Jim Meyering  <meyering@ascend.com>
86973
86974         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86975         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86976
86977 1999-02-07  Jim Meyering  <meyering@ascend.com>
86978
86979         * m4/group-member.m4: New file -- extracted from sh-utils'
86980         configure.in.
86981
86982         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86983         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86984
86985 1999-02-06  Jim Meyering  <meyering@ascend.com>
86986
86987         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86988         * m4/fnmatch.m4: Likewise.
86989         * m4/getgroups.m4: Likewise.
86990         * m4/lstat.m4: Likewise.
86991         * m4/malloc.m4: Likewise.
86992         * m4/putenv.m4: Likewise.
86993         * m4/realloc.m4: Likewise.
86994         * m4/regex.m4: Likewise.
86995         * m4/stat.m4: Likewise.
86996         * m4/strftime.m4: Likewise.
86997         Suggestion from Alain Magloire.
86998
86999         * m4/chown.m4: Use `.$ac_objext', not `.o'.
87000         * m4/fnmatch.m4: Likewise.
87001         * m4/getgroups.m4: Likewise.
87002         * m4/getline.m4: Likewise.
87003         * m4/lstat.m4: Likewise.
87004         * m4/malloc.m4: Likewise.
87005         * m4/memcmp.m4: Likewise.
87006         * m4/putenv.m4: Likewise.
87007         * m4/realloc.m4: Likewise.
87008         * m4/regex.m4: Likewise.
87009         * m4/stat.m4: Likewise.
87010         * m4/strftime.m4: Likewise.
87011         Suggestion from Alain Magloire.
87012
87013         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
87014         an argument.
87015
87016         * m4/regex.m4: Add a run-time Test for proper operation of
87017         re_compile_pattern.
87018
87019 1999-01-31  Jim Meyering  <meyering@ascend.com>
87020
87021         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
87022
87023 1999-01-30  Jim Meyering  <meyering@ascend.com>
87024
87025         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
87026
87027         * m4/jm-mktime.m4: Make this a wrapper around the official
87028         AM_FUNC_MKTIME rather than my private copy, now that the official one
87029         is up to date.
87030         * m4/mktime.m4: Remove file.
87031
87032         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
87033         * m4/uptime.m4: Likewise.
87034         * m4/uintmax_t.m4: Likewise.
87035
87036 1999-01-28  Jim Meyering  <meyering@ascend.com>
87037
87038         * m4/jm-macros.m4: Use jm_AFS.
87039         * m4/afs.m4: New file (from fileutils' configure.in).
87040
87041         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
87042         * m4/chown.m4: Likewise.
87043         * m4/d-ino.m4: Likewise.
87044         * m4/d-type.m4: Likewise.
87045         * m4/fnmatch.m4: Likewise.
87046         * m4/getgroups.m4: Likewise.
87047         * m4/gettext.m4: Likewise.
87048         * m4/jm-mktime.m4: Likewise.
87049         * m4/jm-winsz2.m4: Likewise.
87050         * m4/lcmessage.m4: Likewise.
87051         * m4/ls-mntd-fs.m4: Likewise.
87052         * m4/malloc.m4: Likewise.
87053         * m4/memcmp.m4: Likewise.
87054         * m4/putenv.m4: Likewise.
87055         * m4/realloc.m4: Likewise.
87056         * m4/st_mtim.m4: Likewise.
87057         * m4/strftime.m4: Likewise.
87058
87059 1999-01-16  Jim Meyering  <meyering@ascend.com>
87060
87061         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
87062         (ARGMATCH_DIE_DECL): Define.
87063
87064 1999-01-12  Jim Meyering  <meyering@ascend.com>
87065
87066         * m4/Makefile.am.in: Rewrite to avoid using fmt.
87067         Reported by Lars Hecking.
87068
87069 1999-01-10  Jim Meyering  <meyering@ascend.com>
87070
87071         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
87072         gross kludge.
87073         * m4/inttypes_h.m4: Likewise.
87074         * m4/lstat.m4: Likewise.
87075         * m4/malloc.m4: Likewise.
87076         * m4/readdir.m4: Likewise.
87077         * m4/realloc.m4: Likewise.
87078         * m4/st_dm_mode.m4: Likewise.
87079         * m4/stat.m4: Likewise.
87080         * m4/utimbuf.m4: Likewise.
87081         * m4/utimes.m4: Likewise.
87082
87083         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
87084         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
87085         comments in config.h.in are meaningful.
87086
87087         * m4/jm-macros.m4: Require autoconf-2.13 here.
87088
87089         * m4/regex.m4: By default, don't use the included regex.c on systems
87090         with glibc 2.  Suggestion from Uli Drepper.
87091
87092 1999-01-02  Jim Meyering  <meyering@ascend.com>
87093
87094         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
87095
87096 1998-12-18  Jim Meyering  <meyering@ascend.com>
87097
87098         * m4/Makefile.am.in (Makefile.am): Simplify rule.
87099         Based on a suggestion from Lars Hecking.
87100
87101 1998-11-16  Paul Eggert  <eggert@twinsun.com>
87102
87103         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
87104
87105 1998-11-16  Jim Meyering  <meyering@ascend.com>
87106
87107         * m4/lfs.m4: Double-quote the `uname...` expression.
87108
87109 1998-11-14  Jim Meyering  <meyering@ascend.com>
87110
87111         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
87112         * m4/stat.m4: Likewise.
87113
87114 1998-11-03  Jim Meyering  <meyering@ascend.com>
87115
87116         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
87117         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
87118
87119 1998-10-18  Jim Meyering  <meyering@ascend.com>
87120
87121         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
87122
87123 1998-10-17  Jim Meyering  <meyering@ascend.com>
87124
87125         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
87126         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
87127         calls for those previously hard-coded headers.  Instead, take a new
87128         parameter.
87129         (jm_CHECK_DECLARATIONS): Reflect interface change.
87130         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
87131         (jm_CHECK_DECL_LOCALTIME_R): New macro.
87132
87133         * m4/mktime.m4: Test for spring-forward gap before long-running test.
87134
87135 1998-10-14  Jim Meyering  <meyering@ascend.com>
87136
87137         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
87138         instead of "TZ=America/Vancouver".  From Paul Eggert.
87139
87140 1998-10-11  Jim Meyering  <meyering@ascend.com>
87141
87142         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
87143         This adds a test for a recently added compatibility fix for mktime.c.
87144         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
87145
87146 1998-09-27  Jim Meyering  <meyering@ascend.com>
87147
87148         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
87149
87150         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
87151         ../configure.in, including a change from Gordon Matzigkeit to allow
87152         cross-compiling for the Hurd.
87153
87154         * m4/glibc.m4: New file/macro to test for the GNU C Library
87155         versions 1 and 2.  From Gordon Matzigkeit.
87156         Indent.
87157
87158 1998-09-21  Jim Meyering  <meyering@ascend.com>
87159
87160         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
87161
87162 1998-08-18  Paul Eggert  <eggert@twinsun.com>
87163
87164         Port nanosecond-resolution times to UnixWare 2.1.2 and
87165         pedantic Solaris 2.6.
87166
87167         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
87168         AC_STRUCT_ST_MTIM.
87169         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
87170         Generate name of ns member, instead of just 1 or undef.
87171         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
87172
87173 1998-08-15  Jim Meyering  <meyering@ascend.com>
87174
87175         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
87176         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
87177         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
87178         instead of jm_TYPE_SSIZE_T.
87179
87180 1998-08-12  Jim Meyering  <meyering@ascend.com>
87181
87182         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
87183
87184 1998-08-02  Jim Meyering  <meyering@ascend.com>
87185
87186         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
87187         in acconfig.h manually.
87188
87189 1998-07-31  Paul Eggert  <eggert@twinsun.com>
87190
87191         * m4/st_mtim.m4: New file.
87192
87193 1998-07-28  Jim Meyering  <meyering@ascend.com>
87194
87195         * m4/utimes.m4: Undef stat.
87196
87197 1998-07-25  Jim Meyering  <meyering@ascend.com>
87198
87199         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
87200         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
87201
87202 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
87203
87204         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
87205         uid and gid actually remain unchanged.
87206
87207 1998-07-07  Jim Meyering  <meyering@ascend.com>
87208
87209         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
87210
87211 1998-07-04  Jim Meyering  <meyering@ascend.com>
87212
87213         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
87214         to prove that this macro can be used in packages without regex.c.
87215
87216 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87217
87218         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
87219         is to be used.
87220
87221 1998-07-03  Jim Meyering  <meyering@ascend.com>
87222
87223         * m4/gettext.m4: Add -lintl if it's found to be necessary.
87224
87225         * m4/gettext.m4: New file -- from gettext-0.10.35.
87226         * m4/lcmessage.m4: Likewise.
87227         * m4/progtest.m4: Likewise.
87228
87229         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
87230         * m4/jm-macros.m4: Require the new macro.
87231
87232 1998-06-29  Jim Meyering  <meyering@ascend.com>
87233
87234         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
87235         for the definition of NGROUPS (used in a system header included
87236         by sys/mount.h).
87237
87238 1998-06-28  Jim Meyering  <meyering@ascend.com>
87239
87240         * m4/ls-mntd-fs.m4: New file.
87241         * m4/fstypename.m4: New file.
87242
87243         * m4/jm-macros.m4: Require the new macro.
87244         * m4/jm-glibc-io.m4: New file.
87245
87246 1998-05-19  Jim Meyering  <meyering@ascend.com>
87247
87248         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
87249         * m4/lchown.m4: New file.
87250
87251         * m4/Makefile.am.in: New file.
87252         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
87253
87254 1998-05-14  Jim Meyering  <meyering@ascend.com>
87255
87256         * m4/Makefile.am (EXTRA_DIST): Add them.
87257         * m4/jm-macros.m4: New file.
87258         * m4/utimbuf.m4: New file.
87259
87260 1998-05-12  Jim Meyering  <meyering@ascend.com>
87261
87262         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
87263
87264 1998-05-11  Jim Meyering  <meyering@ascend.com>
87265
87266         * m4/isc-posix.m4: New file.
87267
87268 1998-05-10  Jim Meyering  <meyering@ascend.com>
87269
87270         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
87271
87272 1998-05-09  Jim Meyering  <meyering@ascend.com>
87273
87274         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
87275         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
87276         with automake.
87277
87278         * m4/ssize_t.m4: New file.
87279         * m4/mktime.m4: Remove file -- the new automake has this now.
87280
87281 1998-04-26  Jim Meyering  <meyering@ascend.com>
87282
87283         * m4/assert.m4: New file.
87284         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
87285
87286 1998-04-05  Jim Meyering  <meyering@ascend.com>
87287
87288         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
87289         (jm_PREREQ): Use it here.
87290
87291 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
87292
87293         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
87294         in acconfig.h.
87295
87296 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
87297
87298         * m4/prereq.m4: New file.
87299         * m4/error.m4: New file.
87300         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
87301
87302 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
87303
87304         * m4/getline.m4: Don't set am_cv_func_working_getline before the
87305         cache-check for the same variable -- that defeated the purpose of
87306         the test; the test program was never run.  This was a problem only
87307         on systems with losing getline functions -- HP-UX 10.20 is one.
87308         Reported by Bjorn Helgaas.
87309
87310 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
87311
87312         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
87313
87314 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
87315
87316         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
87317
87318         * m4/const.m4: New file.  Use an initializer in this declaration
87319         typedef int charset[2]; const charset x;
87320         Reported by Bob Glickstein.
87321
87322 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
87323
87324         * m4/chown.m4: Fix reversed types on -1 args to chown.
87325         From Kaveh Ghazi.
87326
87327 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
87328
87329         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
87330         Add lseek and memchr.
87331
87332         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
87333         T.E.Dickey <dickey@clark.net> said that some older preprocessors
87334         have a 20-character limit on names.
87335
87336 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
87337
87338         * m4/inttypes_h.m4: New file.
87339         * m4/uintmax_t.m4: New file.
87340         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
87341
87342
87343         -----
87344
87345         Local Variables:
87346         coding: utf-8
87347         End:
87348
87349         Copyright (C) 1997-2011 Free Software Foundation, Inc.
87350
87351         Copying and distribution of this file, with or without
87352         modification, are permitted provided the copyright notice
87353         and this notice are preserved.